reshaped 2.5.8 → 2.5.9
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/bundle.js +5 -5
- package/components/Breadcrumbs/Breadcrumbs.d.ts +1 -4
- package/components/Breadcrumbs/Breadcrumbs.js +0 -9
- package/components/Breadcrumbs/BreadcrumbsItem.d.ts +4 -0
- package/components/Breadcrumbs/BreadcrumbsItem.js +11 -0
- package/components/Breadcrumbs/index.d.ts +7 -1
- package/components/Breadcrumbs/index.js +5 -1
- package/components/FormControl/FormControl.context.d.ts +1 -1
- package/package.json +13 -13
- package/themes/_generator/tests/themes.stories.d.ts +1 -0
- package/themes/_generator/tests/themes.stories.js +24 -0
- package/themes/_generator/tokens/types.d.ts +1 -0
- package/themes/_generator/utilities/generateBackgroundColors.js +10 -12
- package/themes/index.d.ts +1 -1
- package/themes/index.js +2 -2
- package/types/config.d.ts +7 -1
package/bundle.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(N,c){typeof exports=="object"&&typeof module!="undefined"?c(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],c):(N=typeof globalThis!="undefined"?globalThis:N||self,c(N.Reshaped={},N.React,N.ReactDOM))})(this,function(N,c,me){"use strict";var
|
1
|
+
(function(N,c){typeof exports=="object"&&typeof module!="undefined"?c(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],c):(N=typeof globalThis!="undefined"?globalThis:N||self,c(N.Reshaped={},N.React,N.ReactDOM))})(this,function(N,c,me){"use strict";var pa=Object.defineProperty,xa=Object.defineProperties;var wa=Object.getOwnPropertyDescriptors;var _n=Object.getOwnPropertySymbols;var Co=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable;var jo=(N,c,me)=>c in N?pa(N,c,{enumerable:!0,configurable:!0,writable:!0,value:me}):N[c]=me,v=(N,c)=>{for(var me in c||(c={}))Co.call(c,me)&&jo(N,me,c[me]);if(_n)for(var me of _n(c))ko.call(c,me)&&jo(N,me,c[me]);return N},C=(N,c)=>xa(N,wa(c));var Ae=(N,c)=>{var me={};for(var xe in N)Co.call(N,xe)&&c.indexOf(xe)<0&&(me[xe]=N[xe]);if(N!=null&&_n)for(var xe of _n(N))c.indexOf(xe)<0&&ko.call(N,xe)&&(me[xe]=N[xe]);return me};var xe={exports:{}},yt={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.min.js
|
4
4
|
*
|
@@ -18,10 +18,10 @@
|
|
18
18
|
`+ye+_}}var pe=!1,ve;{var Me=typeof WeakMap=="function"?WeakMap:Map;ve=new Me}function Re(_,k){if(!_||pe)return"";{var I=ve.get(_);if(I!==void 0)return I}var F;pe=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=ie.current,ie.current=null,Y();try{if(k){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(Ke){F=Ke}Reflect.construct(_,[],B)}else{try{B.call()}catch(Ke){F=Ke}_.call(B.prototype)}}else{try{throw Error()}catch(Ke){F=Ke}_()}}catch(Ke){if(Ke&&F&&typeof Ke.stack=="string"){for(var O=Ke.stack.split(`
|
19
19
|
`),be=F.stack.split(`
|
20
20
|
`),oe=O.length-1,ae=be.length-1;oe>=1&&ae>=0&&O[oe]!==be[ae];)ae--;for(;oe>=1&&ae>=0;oe--,ae--)if(O[oe]!==be[ae]){if(oe!==1||ae!==1)do if(oe--,ae--,ae<0||O[oe]!==be[ae]){var Ne=`
|
21
|
-
`+O[oe].replace(" at new "," at ");return _.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",_.displayName)),typeof _=="function"&&ve.set(_,Ne),Ne}while(oe>=1&&ae>=0);break}}}finally{pe=!1,ie.current=J,G(),Error.prepareStackTrace=R}var wt=_?_.displayName||_.name:"",yo=wt?X(wt):"";return typeof _=="function"&&ve.set(_,yo),yo}function et(_,k,I){return Re(_,!1)}function tt(_){var k=_.prototype;return!!(k&&k.isReactComponent)}function Se(_,k,I){if(_==null)return"";if(typeof _=="function")return Re(_,tt(_));if(typeof _=="string")return X(_);switch(_){case f:return X("Suspense");case u:return X("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case d:return et(_.render);case h:return Se(_.type,k,I);case m:{var F=_,R=F._payload,J=F._init;try{return Se(J(R),k,I)}catch(B){}}}return""}var Pe=Object.prototype.hasOwnProperty,Pt={},st=w.ReactDebugCurrentFrame;function bt(_){if(_){var k=_._owner,I=Se(_.type,_._source,k?k.type:null);st.setExtraStackFrame(I)}else st.setExtraStackFrame(null)}function ln(_,k,I,F,R){{var J=Function.call.bind(Pe);for(var B in _)if(J(_,B)){var O=void 0;try{if(typeof _[B]!="function"){var be=Error((F||"React class")+": "+I+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}O=_[B](k,B,F,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){O=oe}O&&!(O instanceof Error)&&(bt(R),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",I,B,typeof O),bt(null)),O instanceof Error&&!(O.message in Pt)&&(Pt[O.message]=!0,bt(R),p("Failed %s type: %s",I,O.message),bt(null))}}}var Un=Array.isArray;function At(_){return Un(_)}function Kn(_){{var k=typeof Symbol=="function"&&Symbol.toStringTag,I=k&&_[Symbol.toStringTag]||_.constructor.name||"Object";return I}}function ge(_){try{return de(_),!1}catch(k){return!0}}function de(_){return""+_}function qe(_){if(ge(_))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Kn(_)),de(_)}var _e=w.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Oe,Ue,je;je={};function cn(_){if(Pe.call(_,"ref")){var k=Object.getOwnPropertyDescriptor(_,"ref").get;if(k&&k.isReactWarning)return!1}return _.ref!==void 0}function dn(_){if(Pe.call(_,"key")){var k=Object.getOwnPropertyDescriptor(_,"key").get;if(k&&k.isReactWarning)return!1}return _.key!==void 0}function un(_,k){if(typeof _.ref=="string"&&_e.current&&k&&_e.current.stateNode!==k){var I=V(_e.current.type);je[I]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',V(_e.current.type),_.ref),je[I]=!0)}}function
|
21
|
+
`+O[oe].replace(" at new "," at ");return _.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",_.displayName)),typeof _=="function"&&ve.set(_,Ne),Ne}while(oe>=1&&ae>=0);break}}}finally{pe=!1,ie.current=J,G(),Error.prepareStackTrace=R}var wt=_?_.displayName||_.name:"",yo=wt?X(wt):"";return typeof _=="function"&&ve.set(_,yo),yo}function et(_,k,I){return Re(_,!1)}function tt(_){var k=_.prototype;return!!(k&&k.isReactComponent)}function Se(_,k,I){if(_==null)return"";if(typeof _=="function")return Re(_,tt(_));if(typeof _=="string")return X(_);switch(_){case f:return X("Suspense");case u:return X("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case d:return et(_.render);case h:return Se(_.type,k,I);case m:{var F=_,R=F._payload,J=F._init;try{return Se(J(R),k,I)}catch(B){}}}return""}var Pe=Object.prototype.hasOwnProperty,Pt={},st=w.ReactDebugCurrentFrame;function bt(_){if(_){var k=_._owner,I=Se(_.type,_._source,k?k.type:null);st.setExtraStackFrame(I)}else st.setExtraStackFrame(null)}function ln(_,k,I,F,R){{var J=Function.call.bind(Pe);for(var B in _)if(J(_,B)){var O=void 0;try{if(typeof _[B]!="function"){var be=Error((F||"React class")+": "+I+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}O=_[B](k,B,F,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){O=oe}O&&!(O instanceof Error)&&(bt(R),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",I,B,typeof O),bt(null)),O instanceof Error&&!(O.message in Pt)&&(Pt[O.message]=!0,bt(R),p("Failed %s type: %s",I,O.message),bt(null))}}}var Un=Array.isArray;function At(_){return Un(_)}function Kn(_){{var k=typeof Symbol=="function"&&Symbol.toStringTag,I=k&&_[Symbol.toStringTag]||_.constructor.name||"Object";return I}}function ge(_){try{return de(_),!1}catch(k){return!0}}function de(_){return""+_}function qe(_){if(ge(_))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Kn(_)),de(_)}var _e=w.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Oe,Ue,je;je={};function cn(_){if(Pe.call(_,"ref")){var k=Object.getOwnPropertyDescriptor(_,"ref").get;if(k&&k.isReactWarning)return!1}return _.ref!==void 0}function dn(_){if(Pe.call(_,"key")){var k=Object.getOwnPropertyDescriptor(_,"key").get;if(k&&k.isReactWarning)return!1}return _.key!==void 0}function un(_,k){if(typeof _.ref=="string"&&_e.current&&k&&_e.current.stateNode!==k){var I=V(_e.current.type);je[I]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',V(_e.current.type),_.ref),je[I]=!0)}}function aa(_,k){{var I=function(){Oe||(Oe=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};I.isReactWarning=!0,Object.defineProperty(_,"key",{get:I,configurable:!0})}}function la(_,k){{var I=function(){Ue||(Ue=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};I.isReactWarning=!0,Object.defineProperty(_,"ref",{get:I,configurable:!0})}}var ca=function(_,k,I,F,R,J,B){var O={$$typeof:t,type:_,key:k,ref:I,props:B,_owner:J};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function da(_,k,I,F,R){{var J,B={},O=null,be=null;I!==void 0&&(qe(I),O=""+I),dn(k)&&(qe(k.key),O=""+k.key),cn(k)&&(be=k.ref,un(k,R));for(J in k)Pe.call(k,J)&&!pt.hasOwnProperty(J)&&(B[J]=k[J]);if(_&&_.defaultProps){var oe=_.defaultProps;for(J in oe)B[J]===void 0&&(B[J]=oe[J])}if(O||be){var ae=typeof _=="function"?_.displayName||_.name||"Unknown":_;O&&aa(B,ae),be&&la(B,ae)}return ca(_,O,be,R,F,_e.current,B)}}var Yn=w.ReactCurrentOwner,vo=w.ReactDebugCurrentFrame;function xt(_){if(_){var k=_._owner,I=Se(_.type,_._source,k?k.type:null);vo.setExtraStackFrame(I)}else vo.setExtraStackFrame(null)}var Gn;Gn=!1;function Xn(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function go(){{if(Yn.current){var _=V(Yn.current.type);if(_)return`
|
22
22
|
|
23
|
-
Check the render method of \``+_+"`."}return""}}function
|
23
|
+
Check the render method of \``+_+"`."}return""}}function ua(_){{if(_!==void 0){var k=_.fileName.replace(/^.*[\\\/]/,""),I=_.lineNumber;return`
|
24
24
|
|
25
|
-
Check your code at `+k+":"+I+"."}return""}}var bo={};function
|
25
|
+
Check your code at `+k+":"+I+"."}return""}}var bo={};function _a(_){{var k=go();if(!k){var I=typeof _=="string"?_:_.displayName||_.name;I&&(k=`
|
26
26
|
|
27
|
-
Check the top-level render call using <`+I+">.")}return k}}function po(_,k){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var I=ua(k);if(bo[I])return;bo[I]=!0;var F="";_&&_._owner&&_._owner!==Yn.current&&(F=" It was passed a child from "+V(_._owner.type)+"."),xt(_),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,F),xt(null)}}function xo(_,k){{if(typeof _!="object")return;if(At(_))for(var I=0;I<_.length;I++){var F=_[I];Xn(F)&&po(F,k)}else if(Xn(_))_._store&&(_._store.validated=!0);else if(_){var R=y(_);if(typeof R=="function"&&R!==_.entries)for(var J=R.call(_),B;!(B=J.next()).done;)Xn(B.value)&&po(B.value,k)}}}function _a(_){{var k=_.type;if(k==null||typeof k=="string")return;var I;if(typeof k=="function")I=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===d||k.$$typeof===h))I=k.propTypes;else return;if(I){var F=V(k);ln(I,_.props,"prop",F,_)}else if(k.PropTypes!==void 0&&!Gn){Gn=!0;var R=V(k);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ma(_){{for(var k=Object.keys(_.props),I=0;I<k.length;I++){var F=k[I];if(F!=="children"&&F!=="key"){xt(_),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),xt(null);break}}_.ref!==null&&(xt(_),p("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}function wo(_,k,I,F,R,J){{var B=M(_);if(!B){var O="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var be=da(R);be?O+=be:O+=go();var oe;_===null?oe="null":At(_)?oe="array":_!==void 0&&_.$$typeof===t?(oe="<"+(V(_.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof _,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,O)}var ae=ca(_,k,I,R,J);if(ae==null)return ae;if(B){var Ne=k.children;if(Ne!==void 0)if(F)if(At(Ne)){for(var wt=0;wt<Ne.length;wt++)xo(Ne[wt],_);Object.freeze&&Object.freeze(Ne)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xo(Ne,_)}return _===r?ma(ae):_a(ae),ae}}function fa(_,k,I){return wo(_,k,I,!0)}function ha(_,k,I){return wo(_,k,I,!1)}var va=ha,ga=fa;jt.Fragment=r,jt.jsx=va,jt.jsxs=ga}()),jt}process.env.NODE_ENV==="production"?xe.exports=No():xe.exports=$o();var s=xe.exports;const Zn=(e,t=20)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}};function zo(e,t){const n=Zn(e,t);return r=>("persist"in r&&r.persist(),n(r))}const Eo=(e,t)=>{let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...r)},t)},t))}},S=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const r=S(...n);return r?`${t} ${r}`:t}return n?`${t} ${n}`:t},""),er=(e,t,n)=>{const{base:r,excludeValueFromClassName:o}=n||{},i=typeof e=="string"?e:e(t);return t===!0&&r||o?i:t===!0&&!r?`${i}-true`:t===!1&&!r?`${i}-false`:t!==void 0?`${i}-${t}`:null},W=(e,t,n,r)=>{if(typeof n!="object"){const o=er(t,n,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return o?[e[o]]:[]}return Object.keys(n).reduce((o,i)=>{const a=i==="s",l=er(t,n[i],{base:a,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=a?"":`--${i}`;return[...o,e[`${l}${d}`]]},[])},te=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,r)=>{const o=t[r];return o===void 0||o===!1?n:C(v({},n),{[`${e}-${r}`]:o})},{}),To=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,$e=(e,t)=>To(e)?Object.keys(e).reduce((r,o)=>{const i=e[o];return i==null?r:C(v({},r),{[o]:t(i,o)})},{}):t(e,"s"),ze=e=>{const t=c.useId();return e||t},mn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),tr=e=>{const{children:t,onToggle:n,active:r,iconPosition:o,iconSize:i,className:a,attributes:l}=e,d=S(a),f=ze(),u=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:r,onToggle:n,iconPosition:o,iconSize:i}),[r]);return s.jsx("div",C(v({},l),{className:d,children:s.jsx(mn.Provider,{value:u,children:t})}))},Io=e=>{const l=e,{defaultActive:t,onToggle:n}=l,r=Ae(l,["defaultActive","onToggle"]),[o,i]=c.useState(t||!1),a=d=>{i(d),n==null||n(d)};return s.jsx(tr,C(v({},r),{onToggle:a,active:o}))},Ct={root:"_root_1ao0i_1","--disabled":"_--disabled_1ao0i_28","--full-width":"_--full-width_1ao0i_37","--inset":"_--inset_1ao0i_45","--radius-inherit":"_--radius-inherit_1ao0i_49"},Mo=(e,t)=>{const{children:n,href:r,onClick:o,type:i,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:u,className:h,attributes:m}=e,g=S(Ct.root,h,a&&Ct["--disabled"],d&&Ct[`--radius-${d}`],l&&Ct["--inset"],u&&Ct["--full-width"]),b=v({},m),x=c.useRef(!1),y=o||(m==null?void 0:m.onClick),w=(m==null?void 0:m.onFocus)||(m==null?void 0:m.onBlur),p=!!(r||m!=null&&m.href),j=!!(y||w||i);let $;if(p)b.href=a?void 0:r||(m==null?void 0:m.href),$="a";else if(j&&(!f||f==="button"))$="button",b.type=i||(m==null?void 0:m.type)||"button",b.disabled=a||(m==null?void 0:m.disabled);else if(j){const P=!(f==="label")||y||w;$=f||"span",b.role=P?"button":void 0,b.tabIndex=P?0:void 0}else $=f||"span";const z=E=>{var P;a||x.current||(o==null||o(E),(P=m==null?void 0:m.onClick)==null||P.call(m,E))},T=E=>{if(b.role==="button"||p)return;const U=E.key===" ",M=E.key==="Enter";!U&&!M||(E.preventDefault(),z(E),x.current=!0,requestAnimationFrame(()=>{x.current=!1}))};return s.jsx($,C(v({ref:t},b),{className:g,onClick:z,onKeyDown:T,children:n}))},Fe=c.forwardRef(Mo),fn={root:"_root_m2bn1_1","--blank":"_--blank_m2bn1_8","--vertical":"_--vertical_m2bn1_15","--vertical-true--m":"_--vertical-true--m_m2bn1_1","--vertical-false--m":"_--vertical-false--m_m2bn1_1","--vertical-true--l":"_--vertical-true--l_m2bn1_1","--vertical-false--l":"_--vertical-false--l_m2bn1_1","--vertical-true--xl":"_--vertical-true--xl_m2bn1_1","--vertical-false--xl":"_--vertical-false--xl_m2bn1_1"},Ft=e=>{const{vertical:t,blank:n,className:r,attributes:o}=e,i=S(fn.root,r,n&&fn["--blank"],...W(fn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),s.jsx("div",C(v({},o),{role:"separator","aria-orientation":a,className:i}))},Lt={root:"_root_1sx8x_6","--display-inline":"_--display-inline_1sx8x_12","--display-flex":"_--display-flex_1sx8x_16","--hidden":"_--hidden_1sx8x_20","--visibility":"_--visibility_1sx8x_24","--hidden-true--m":"_--hidden-true--m_1sx8x_1","--hidden-false--m":"_--hidden-false--m_1sx8x_1","--hidden-true--l":"_--hidden-true--l_1sx8x_1","--hidden-false--l":"_--hidden-false--l_1sx8x_1","--hidden-true--xl":"_--hidden-true--xl_1sx8x_1","--hidden-false--xl":"_--hidden-false--xl_1sx8x_1"},Dt=e=>{const{as:t="div",children:n,visibility:r,hide:o,displayStyle:i}=e,a=S(Lt.root,...W(Lt,"--hidden",o),r&&Lt["--visibility"],i&&Lt[`--display-${i}`]);return typeof n=="function"?s.jsx(s.Fragment,{children:n(a)}):s.jsx(t,{className:a,children:n})},K={root:"_root_ewdir_1",item:"_item_ewdir_10","--padding":"_--padding_ewdir_18","--padding-top":"_--padding-top_ewdir_23","--padding-bottom":"_--padding-bottom_ewdir_27","--padding-start":"_--padding-start_ewdir_31","--padding-end":"_--padding-end_ewdir_35","--animated":"_--animated_ewdir_39","--align-text-start":"_--align-text-start_ewdir_1","--align-text-center":"_--align-text-center_ewdir_1","--align-text-end":"_--align-text-end_ewdir_1","--bg-neutral":"_--bg-neutral_ewdir_1","--bg-positive":"_--bg-positive_ewdir_1","--bg-critical":"_--bg-critical_ewdir_1","--bg-primary":"_--bg-primary_ewdir_1","--bg-neutral-faded":"_--bg-neutral-faded_ewdir_1","--bg-positive-faded":"_--bg-positive-faded_ewdir_1","--bg-critical-faded":"_--bg-critical-faded_ewdir_1","--bg-primary-faded":"_--bg-primary-faded_ewdir_1","--bg-page":"_--bg-page_ewdir_1","--bg-page-faded":"_--bg-page-faded_ewdir_1","--bg-disabled":"_--bg-disabled_ewdir_1","--bg-disabled-faded":"_--bg-disabled-faded_ewdir_1","--bg-elevation-base":"_--bg-elevation-base_ewdir_1","--bg-elevation-raised":"_--bg-elevation-raised_ewdir_1","--bg-elevation-overlay":"_--bg-elevation-overlay_ewdir_1","--bg-white":"_--bg-white_ewdir_65","--bg-black":"_--bg-black_ewdir_70","--shadow-raised":"_--shadow-raised_ewdir_75","--shadow-overlay":"_--shadow-overlay_ewdir_79","--bd":"_--bd_ewdir_83","--bd-neutral-faded":"_--bd-neutral-faded_ewdir_1","--bd-neutral":"_--bd-neutral_ewdir_1","--bd-positive":"_--bd-positive_ewdir_1","--bd-positive-faded":"_--bd-positive-faded_ewdir_1","--bd-critical":"_--bd-critical_ewdir_1","--bd-critical-faded":"_--bd-critical-faded_ewdir_1","--bd-primary":"_--bd-primary_ewdir_1","--bd-primary-faded":"_--bd-primary-faded_ewdir_1","--bd-disabled":"_--bd-disabled_ewdir_1","--bd-transparent":"_--bd-transparent_ewdir_94","--overflow-hidden":"_--overflow-hidden_ewdir_98","--divided":"_--divided_ewdir_102","--flex":"_--flex_ewdir_106","--direction-column":"_--direction-column_ewdir_1","item--gap-before":"_item--gap-before_ewdir_118","item--gap-auto":"_item--gap-auto_ewdir_122","--direction-column-reverse":"_--direction-column-reverse_ewdir_1","--direction-row":"_--direction-row_ewdir_1","--direction-row-reverse":"_--direction-row-reverse_ewdir_1","--nowrap":"_--nowrap_ewdir_177","--wrap":"_--wrap_ewdir_185","--nowrap-false--m":"_--nowrap-false--m_ewdir_1","--wrap-true--m":"_--wrap-true--m_ewdir_1","--nowrap-true--m":"_--nowrap-true--m_ewdir_1","--wrap-false--m":"_--wrap-false--m_ewdir_1","--nowrap-false--l":"_--nowrap-false--l_ewdir_1","--wrap-true--l":"_--wrap-true--l_ewdir_1","--nowrap-true--l":"_--nowrap-true--l_ewdir_1","--wrap-false--l":"_--wrap-false--l_ewdir_1","--nowrap-false--xl":"_--nowrap-false--xl_ewdir_1","--wrap-true--xl":"_--wrap-true--xl_ewdir_1","--nowrap-true--xl":"_--nowrap-true--xl_ewdir_1","--wrap-false--xl":"_--wrap-false--xl_ewdir_1","--align-start":"_--align-start_ewdir_1","--align-end":"_--align-end_ewdir_1","--align-center":"_--align-center_ewdir_1","--align-stretch":"_--align-stretch_ewdir_1","--align-baseline":"_--align-baseline_ewdir_1","--justify-start":"_--justify-start_ewdir_1","--justify-end":"_--justify-end_ewdir_1","--justify-center":"_--justify-center_ewdir_1","--justify-space-between":"_--justify-space-between_ewdir_1",divider:"_divider_ewdir_244","item--grow":"_item--grow_ewdir_248","item--columns":"_item--columns_ewdir_266","item--columns-1":"_item--columns-1_ewdir_1","item--columns-2":"_item--columns-2_ewdir_1","item--columns-3":"_item--columns-3_ewdir_1","item--columns-4":"_item--columns-4_ewdir_1","item--columns-5":"_item--columns-5_ewdir_1","item--columns-6":"_item--columns-6_ewdir_1","item--columns-7":"_item--columns-7_ewdir_1","item--columns-8":"_item--columns-8_ewdir_1","item--columns-9":"_item--columns-9_ewdir_1","item--columns-10":"_item--columns-10_ewdir_1","item--columns-11":"_item--columns-11_ewdir_1","item--columns-12":"_item--columns-12_ewdir_1","item--columns-auto":"_item--columns-auto_ewdir_287","item--columns-1--m":"_item--columns-1--m_ewdir_1","item--columns-auto--m":"_item--columns-auto--m_ewdir_1","item--columns-2--m":"_item--columns-2--m_ewdir_1","item--columns-3--m":"_item--columns-3--m_ewdir_1","item--columns-4--m":"_item--columns-4--m_ewdir_1","item--columns-5--m":"_item--columns-5--m_ewdir_1","item--columns-6--m":"_item--columns-6--m_ewdir_1","item--columns-7--m":"_item--columns-7--m_ewdir_1","item--columns-8--m":"_item--columns-8--m_ewdir_1","item--columns-9--m":"_item--columns-9--m_ewdir_1","item--columns-10--m":"_item--columns-10--m_ewdir_1","item--columns-11--m":"_item--columns-11--m_ewdir_1","item--columns-12--m":"_item--columns-12--m_ewdir_1","item--columns-1--l":"_item--columns-1--l_ewdir_1","item--columns-auto--l":"_item--columns-auto--l_ewdir_1","item--columns-2--l":"_item--columns-2--l_ewdir_1","item--columns-3--l":"_item--columns-3--l_ewdir_1","item--columns-4--l":"_item--columns-4--l_ewdir_1","item--columns-5--l":"_item--columns-5--l_ewdir_1","item--columns-6--l":"_item--columns-6--l_ewdir_1","item--columns-7--l":"_item--columns-7--l_ewdir_1","item--columns-8--l":"_item--columns-8--l_ewdir_1","item--columns-9--l":"_item--columns-9--l_ewdir_1","item--columns-10--l":"_item--columns-10--l_ewdir_1","item--columns-11--l":"_item--columns-11--l_ewdir_1","item--columns-12--l":"_item--columns-12--l_ewdir_1","item--columns-1--xl":"_item--columns-1--xl_ewdir_1","item--columns-auto--xl":"_item--columns-auto--xl_ewdir_1","item--columns-2--xl":"_item--columns-2--xl_ewdir_1","item--columns-3--xl":"_item--columns-3--xl_ewdir_1","item--columns-4--xl":"_item--columns-4--xl_ewdir_1","item--columns-5--xl":"_item--columns-5--xl_ewdir_1","item--columns-6--xl":"_item--columns-6--xl_ewdir_1","item--columns-7--xl":"_item--columns-7--xl_ewdir_1","item--columns-8--xl":"_item--columns-8--xl_ewdir_1","item--columns-9--xl":"_item--columns-9--xl_ewdir_1","item--columns-10--xl":"_item--columns-10--xl_ewdir_1","item--columns-11--xl":"_item--columns-11--xl_ewdir_1","item--columns-12--xl":"_item--columns-12--xl_ewdir_1","--direction-column--m":"_--direction-column--m_ewdir_1","--direction-column-reverse--m":"_--direction-column-reverse--m_ewdir_1","--direction-row--m":"_--direction-row--m_ewdir_1","--direction-row-reverse--m":"_--direction-row-reverse--m_ewdir_1","--align-start--m":"_--align-start--m_ewdir_1","--align-end--m":"_--align-end--m_ewdir_1","--align-center--m":"_--align-center--m_ewdir_1","--align-stretch--m":"_--align-stretch--m_ewdir_1","--align-baseline--m":"_--align-baseline--m_ewdir_1","--justify-start--m":"_--justify-start--m_ewdir_1","--justify-end--m":"_--justify-end--m_ewdir_1","--justify-center--m":"_--justify-center--m_ewdir_1","--justify-space-between--m":"_--justify-space-between--m_ewdir_1","item--grow-true--m":"_item--grow-true--m_ewdir_1","item--grow-false--m":"_item--grow-false--m_ewdir_1","--direction-column--l":"_--direction-column--l_ewdir_1","--direction-column-reverse--l":"_--direction-column-reverse--l_ewdir_1","--direction-row--l":"_--direction-row--l_ewdir_1","--direction-row-reverse--l":"_--direction-row-reverse--l_ewdir_1","--align-start--l":"_--align-start--l_ewdir_1","--align-end--l":"_--align-end--l_ewdir_1","--align-center--l":"_--align-center--l_ewdir_1","--align-stretch--l":"_--align-stretch--l_ewdir_1","--align-baseline--l":"_--align-baseline--l_ewdir_1","--justify-start--l":"_--justify-start--l_ewdir_1","--justify-end--l":"_--justify-end--l_ewdir_1","--justify-center--l":"_--justify-center--l_ewdir_1","--justify-space-between--l":"_--justify-space-between--l_ewdir_1","item--grow-true--l":"_item--grow-true--l_ewdir_1","item--grow-false--l":"_item--grow-false--l_ewdir_1","--direction-column--xl":"_--direction-column--xl_ewdir_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_ewdir_1","--direction-row--xl":"_--direction-row--xl_ewdir_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_ewdir_1","--align-start--xl":"_--align-start--xl_ewdir_1","--align-end--xl":"_--align-end--xl_ewdir_1","--align-center--xl":"_--align-center--xl_ewdir_1","--align-stretch--xl":"_--align-stretch--xl_ewdir_1","--align-baseline--xl":"_--align-baseline--xl_ewdir_1","--justify-start--xl":"_--justify-start--xl_ewdir_1","--justify-end--xl":"_--justify-end--xl_ewdir_1","--justify-center--xl":"_--justify-center--xl_ewdir_1","--justify-space-between--xl":"_--justify-space-between--xl_ewdir_1","item--grow-true--xl":"_item--grow-true--xl_ewdir_1","item--grow-false--xl":"_item--grow-false--xl_ewdir_1"},nr={root:"_root_fjri8_1","--radius-none":"_--radius-none_fjri8_1","--radius-small":"_--radius-small_fjri8_1","--radius-medium":"_--radius-medium_fjri8_1","--radius-large":"_--radius-large_fjri8_1","--radius-circular":"_--radius-circular_fjri8_1","--radius-none--m":"_--radius-none--m_fjri8_1","--radius-small--m":"_--radius-small--m_fjri8_1","--radius-medium--m":"_--radius-medium--m_fjri8_1","--radius-large--m":"_--radius-large--m_fjri8_1","--radius-circular--m":"_--radius-circular--m_fjri8_1","--radius-none--l":"_--radius-none--l_fjri8_1","--radius-small--l":"_--radius-small--l_fjri8_1","--radius-medium--l":"_--radius-medium--l_fjri8_1","--radius-large--l":"_--radius-large--l_fjri8_1","--radius-circular--l":"_--radius-circular--l_fjri8_1","--radius-none--xl":"_--radius-none--xl_fjri8_1","--radius-small--xl":"_--radius-small--xl_fjri8_1","--radius-medium--xl":"_--radius-medium--xl_fjri8_1","--radius-large--xl":"_--radius-large--xl_fjri8_1","--radius-circular--xl":"_--radius-circular--xl_fjri8_1"},hn=e=>e?{classNames:[nr.root,...W(nr,"--radius",e)]}:null,rr={root:"_root_o5mer_1","--bleed":"_--bleed_o5mer_10","--bleed-true--m":"_--bleed-true--m_o5mer_1","--bleed-false--m":"_--bleed-false--m_o5mer_1","--bleed-true--l":"_--bleed-true--l_o5mer_1","--bleed-false--l":"_--bleed-false--l_o5mer_1","--bleed-true--xl":"_--bleed-true--xl_o5mer_1","--bleed-false--xl":"_--bleed-false--xl_o5mer_1"},or=e=>{if(e===void 0)return null;const t=[rr.root,...W(rr,"--bleed",$e(e,r=>typeof r=="number"&&r>0))],n=te("--rs-bleed",e);return{classNames:t,variables:n}},So={literal:"_literal_1a6gk_1",unit:"_unit_1a6gk_5","literal--m":"_literal--m_1a6gk_1","unit--m":"_unit--m_1a6gk_1","literal--l":"_literal--l_1a6gk_1","unit--l":"_unit--l_1a6gk_1","literal--xl":"_literal--xl_1a6gk_1","unit--xl":"_unit--xl_1a6gk_1"},vn=e=>{if(!e)return null;const t=te("--rs-w",e);return{classNames:W(So,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Po={literal:"_literal_ea0g1_1",unit:"_unit_ea0g1_2","literal--m":"_literal--m_ea0g1_1","unit--m":"_unit--m_ea0g1_1","literal--l":"_literal--l_ea0g1_1","unit--l":"_unit--l_ea0g1_1","literal--xl":"_literal--xl_ea0g1_1","unit--xl":"_unit--xl_ea0g1_1"},kt=e=>{if(!e)return null;const t=te("--rs-h",e);return{classNames:W(Po,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ao={literal:"_literal_ezw0c_1",unit:"_unit_ezw0c_5","literal--m":"_literal--m_ezw0c_1","unit--m":"_unit--m_ezw0c_1","literal--l":"_literal--l_ezw0c_1","unit--l":"_unit--l_ezw0c_1","literal--xl":"_literal--xl_ezw0c_1","unit--xl":"_unit--xl_ezw0c_1"},Fo=e=>{if(!e)return null;const t=te("--rs-max-w",e);return{classNames:W(Ao,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Lo={literal:"_literal_kt8jw_1",unit:"_unit_kt8jw_5","literal--m":"_literal--m_kt8jw_1","unit--m":"_unit--m_kt8jw_1","literal--l":"_literal--l_kt8jw_1","unit--l":"_unit--l_kt8jw_1","literal--xl":"_literal--xl_kt8jw_1","unit--xl":"_unit--xl_kt8jw_1"},Do=e=>{if(!e)return null;const t=te("--rs-max-h",e);return{classNames:W(Lo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Vo={"--position-static":"_--position-static_1qpz9_1","--position-relative":"_--position-relative_1qpz9_1","--position-absolute":"_--position-absolute_1qpz9_1","--position-fixed":"_--position-fixed_1qpz9_1","--position-sticky":"_--position-sticky_1qpz9_1","--position-static--m":"_--position-static--m_1qpz9_1","--position-relative--m":"_--position-relative--m_1qpz9_1","--position-absolute--m":"_--position-absolute--m_1qpz9_1","--position-fixed--m":"_--position-fixed--m_1qpz9_1","--position-sticky--m":"_--position-sticky--m_1qpz9_1","--position-static--l":"_--position-static--l_1qpz9_1","--position-relative--l":"_--position-relative--l_1qpz9_1","--position-absolute--l":"_--position-absolute--l_1qpz9_1","--position-fixed--l":"_--position-fixed--l_1qpz9_1","--position-sticky--l":"_--position-sticky--l_1qpz9_1","--position-static--xl":"_--position-static--xl_1qpz9_1","--position-relative--xl":"_--position-relative--xl_1qpz9_1","--position-absolute--xl":"_--position-absolute--xl_1qpz9_1","--position-fixed--xl":"_--position-fixed--xl_1qpz9_1","--position-sticky--xl":"_--position-sticky--xl_1qpz9_1"},qo=e=>e?{classNames:W(Vo,"--position",e)}:null,Oo={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},Nt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",r=`--rs-inset${n}`,o=te(r,e);return{classNames:W(Oo,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:o}},Bo={root:"_root_i342i_1"},Wo=e=>{if(!e)return null;const t=te("--rs-ratio",e);return{classNames:Bo.root,variables:t}},sr=e=>{const{columns:t,grow:n,gapBefore:r,as:o="div",order:i,children:a,className:l,attributes:d}=e,f=S(K.item,l,r==="auto"&&K["item--gap-auto"],r!==void 0&&K["item--gap-before"],t&&K["item--columns"],...W(K,"item--grow",n),...W(K,"item--columns",t)),u=v(v({},te("--rs-view-item-order",i)),te("--rs-view-item-gap-before",r));return s.jsx(o,C(v({},d),{style:v(v({},d==null?void 0:d.style),u),className:f,children:a}))},D=e=>{const{align:t,justify:n,wrap:r,gap:o,height:i,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:u,paddingInline:h,paddingBlock:m,paddingBottom:g,paddingEnd:b,paddingStart:x,paddingTop:y,bleed:w,animated:p,backgroundColor:j,borderColor:$,borderRadius:z,shadow:T,textAlign:E,overflow:P,position:U="relative",inset:M,insetTop:A,insetBottom:q,insetStart:V,insetEnd:L,zIndex:Z,grow:fe,as:he="div",children:se,divided:ee,className:He,attributes:ke}=e;let re=!!t||!!n||!!o||!!e.direction;const H=e.direction||(re?"column":void 0),Y=hn(z),G=or(w),ie=vn(a),ye=kt(i),X=Fo(f),pe=Do(d),ve=qo(U),Me=Nt(M),Re=Nt(A,"top"),et=Nt(q,"bottom"),tt=Nt(V,"start"),Se=Nt(L,"end"),Pe=Wo(l);let Pt=0,st;const bt=({className:ge,key:de})=>{const qe=S(K.divider,ge);let _e=!1;return typeof H=="string"&&H.startsWith("row")?_e=!0:H&&(_e=Object.keys(H).reduce((Oe,Ue)=>{const je=H[Ue];return je?C(v({},Oe),{[Ue]:je.startsWith("row")}):Oe},{})),s.jsx("div",{className:qe,children:s.jsx(Ft,{vertical:_e,blank:!0})},`${de}-divider`)},ln=({className:ge,child:de,index:qe})=>{var cn,dn,un;const _e=de.type===sr,pt=de.type===D,Oe=de.key||qe,Ue=!!qe&&ee&&bt({className:ge,key:Oe});let je;return _e?je=c.cloneElement(de,{className:S(ge,de.props.className)}):ge||!c.isValidElement(de)?je=s.jsx("div",{className:ge,children:de},Oe):je=de,_e&&((cn=de.props)!=null&&cn.grow)&&(st=de.props.grow),_e&&((dn=de.props)==null?void 0:dn.gap)==="auto"&&(st=!0),(_e||pt)&&((un=de.props)!=null&&un.grow)&&(re=!0),[Ue,je]},Un=c.Children.map(se,(ge,de)=>{if(!ge)return null;const qe=Pt;if(Pt+=1,ge.type===Dt&&typeof ge.props.children!="function"){const _e=ge.props,{children:pt}=_e,Oe=Ae(_e,["children"]),Ue=ge.key||de;return c.createElement(Dt,C(v({},Oe),{key:Ue}),je=>ln({className:je,child:pt,index:qe}))}return ln({child:ge,index:qe})}),At=S(K.root,He,Y==null?void 0:Y.classNames,ve==null?void 0:ve.classNames,G==null?void 0:G.classNames,ie==null?void 0:ie.classNames,ye==null?void 0:ye.classNames,Pe==null?void 0:Pe.classNames,X==null?void 0:X.classNames,pe==null?void 0:pe.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,et==null?void 0:et.classNames,tt==null?void 0:tt.classNames,Se==null?void 0:Se.classNames,E&&K[`--align-text-${E}`],j&&K[`--bg-${j}`],$&&K[`--bd-${$}`],$&&K["--bd"],T&&K[`--shadow-${T}`],P&&K[`--overflow-${P}`],p&&K["--animated"],ee&&K["--divided"],(u!==void 0||h!==void 0||m!==void 0)&&K["--padding"],g!==void 0&&K["--padding-bottom"],b!==void 0&&K["--padding-end"],x!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(re||st)&&K["--flex"],...W(K,"--direction",H),...W(K,"--align",t),...W(K,"--justify",n),...W(K,"--nowrap",st||r===!1),...W(K,"--wrap",r),...W(K,"item--grow",fe)),Kn=v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v({},ke==null?void 0:ke.style),te("--rs-view-gap",o)),te("--rs-view-p-vertical",m||u)),te("--rs-view-p-horizontal",h||u)),te("--rs-view-p-bottom",g)),te("--rs-view-p-top",y)),te("--rs-view-p-start",x)),te("--rs-view-p-end",b)),G==null?void 0:G.variables),ie==null?void 0:ie.variables),ye==null?void 0:ye.variables),Pe==null?void 0:Pe.variables),X==null?void 0:X.variables),pe==null?void 0:pe.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),et==null?void 0:et.variables),tt==null?void 0:tt.variables),Se==null?void 0:Se.variables),Z?{"--rs-view-z":Z}:{});return s.jsx(he,C(v({},ke),{className:At,style:Kn,children:Un}))};D.Item=sr;const gn={root:"_root_1f0uh_1","--auto":"_--auto_1f0uh_8","--color-neutral":"_--color-neutral_1f0uh_1","--color-neutral-faded":"_--color-neutral-faded_1f0uh_1","--color-primary":"_--color-primary_1f0uh_1","--color-positive":"_--color-positive_1f0uh_1","--color-critical":"_--color-critical_1f0uh_1","--color-disabled":"_--color-disabled_1f0uh_1"},le=e=>{const{svg:t,className:n,color:r,size:o="1em",autoWidth:i,attributes:a}=e,l=kt(o),d=S(gn.root,n,l==null?void 0:l.classNames,r&&gn[`--color-${r}`],i&&gn["--auto"]),f=typeof t=="object"?t:s.jsx(t,{}),u=v(v({},a==null?void 0:a.style),l==null?void 0:l.variables);return s.jsx("span",C(v({},a),{"aria-hidden":"true",className:d,style:u,children:c.cloneElement(f,{focusable:!1})}))},Ho=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),ir={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ro=e=>{const{children:t}=e,{active:n,onToggle:r,triggerId:o,contentId:i,iconPosition:a="end",iconSize:l}=c.useContext(mn),d=S(ir.icon,n&&ir["icon--active"]),f=()=>{r==null||r(!n)},u={"aria-expanded":n,"aria-controls":i,id:o};return typeof t=="function"?s.jsx(s.Fragment,{children:t(C(v({},u),{onClick:f}),{active:n})}):s.jsx(Fe,{onClick:f,fullWidth:!0,attributes:u,children:s.jsxs(D,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[s.jsx(D.Item,{grow:!0,children:t}),s.jsx(le,{size:l||4,svg:Ho,className:d})]})})},$t=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},bn="data-rs-no-transition",Uo=()=>{document.documentElement.setAttribute(bn,"true")},Ko=()=>{document.documentElement.removeAttribute(bn)},Yo=()=>!document.documentElement.hasAttribute(bn),ar={root:"_root_14pfm_1","--animated":"_--animated_14pfm_9"},lr=e=>{const{children:t,active:n,attributes:r}=e,o=c.useRef(null),i=c.useRef(!1),[a,l]=c.useState(n?"auto":null),d=S(ar.root,i.current&&a!=="auto"&&ar["--animated"]),f=u=>{u.propertyName==="height"&&l(n?"auto":null)};return c.useEffect(()=>{$t(()=>{i.current=!0})},[]),c.useEffect(()=>{const u=o.current;if(!u||!i.current)return;let h=0;n&&(u.style.height="auto",h=u.clientHeight,u.style.height="0"),n||(u.style.height=`${u.clientHeight}px`),l(h)},[n]),s.jsx("div",C(v({},r),{className:d,ref:o,style:a!==null?{height:a,overflow:a==="auto"?"visible":void 0}:void 0,onTransitionEnd:f,role:"region",hidden:!n&&a===null,children:t}))},Go=e=>{const{children:t}=e,{active:n,triggerId:r,contentId:o}=c.useContext(mn);return s.jsx(lr,{active:n,attributes:{"aria-labelledby":r,id:o},children:t})},pn=e=>{const{active:t}=e;return t!==void 0?s.jsx(tr,v({},e)):s.jsx(Io,v({},e))};pn.Trigger=Ro,pn.Content=Go;const xn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Xo=e=>{const{position:t="bottom",padding:n,paddingBlock:r=3,paddingInline:o=4,children:i,elevated:a,className:l,attributes:d}=e,f=S(xn.root,a&&xn["--elevated"],t&&xn[`--position-${t}`],l);return s.jsx(D,{className:f,attributes:d,paddingBlock:n||r,paddingInline:n||o,children:i})},nt={root:"_root_gm5sj_1","--clamp":"_--clamp_gm5sj_6","--align-start":"_--align-start_gm5sj_1","--align-center":"_--align-center_gm5sj_1","--align-end":"_--align-end_gm5sj_1","--variant-title-1":"_--variant-title-1_gm5sj_1","--variant-title-2":"_--variant-title-2_gm5sj_1","--variant-title-3":"_--variant-title-3_gm5sj_1","--variant-title-4":"_--variant-title-4_gm5sj_1","--variant-title-5":"_--variant-title-5_gm5sj_1","--variant-title-6":"_--variant-title-6_gm5sj_1","--variant-featured-1":"_--variant-featured-1_gm5sj_1","--variant-featured-2":"_--variant-featured-2_gm5sj_1","--variant-featured-3":"_--variant-featured-3_gm5sj_1","--variant-body-1":"_--variant-body-1_gm5sj_1","--variant-body-2":"_--variant-body-2_gm5sj_1","--variant-body-3":"_--variant-body-3_gm5sj_1","--variant-caption-1":"_--variant-caption-1_gm5sj_1","--variant-caption-2":"_--variant-caption-2_gm5sj_1","--weight-regular":"_--weight-regular_gm5sj_1","--weight-medium":"_--weight-medium_gm5sj_1","--weight-bold":"_--weight-bold_gm5sj_1","--color-neutral":"_--color-neutral_gm5sj_1","--color-neutral-faded":"_--color-neutral-faded_gm5sj_1","--color-primary":"_--color-primary_gm5sj_1","--color-positive":"_--color-positive_gm5sj_1","--color-critical":"_--color-critical_gm5sj_1","--color-disabled":"_--color-disabled_gm5sj_1","--decoration-line-through":"_--decoration-line-through_gm5sj_139","--align-start--m":"_--align-start--m_gm5sj_1","--align-center--m":"_--align-center--m_gm5sj_1","--align-end--m":"_--align-end--m_gm5sj_1","--variant-title-1--m":"_--variant-title-1--m_gm5sj_1","--variant-title-2--m":"_--variant-title-2--m_gm5sj_1","--variant-title-3--m":"_--variant-title-3--m_gm5sj_1","--variant-title-4--m":"_--variant-title-4--m_gm5sj_1","--variant-title-5--m":"_--variant-title-5--m_gm5sj_1","--variant-title-6--m":"_--variant-title-6--m_gm5sj_1","--variant-featured-1--m":"_--variant-featured-1--m_gm5sj_1","--variant-featured-2--m":"_--variant-featured-2--m_gm5sj_1","--variant-featured-3--m":"_--variant-featured-3--m_gm5sj_1","--variant-body-1--m":"_--variant-body-1--m_gm5sj_1","--variant-body-2--m":"_--variant-body-2--m_gm5sj_1","--variant-body-3--m":"_--variant-body-3--m_gm5sj_1","--variant-caption-1--m":"_--variant-caption-1--m_gm5sj_1","--variant-caption-2--m":"_--variant-caption-2--m_gm5sj_1","--align-start--l":"_--align-start--l_gm5sj_1","--align-center--l":"_--align-center--l_gm5sj_1","--align-end--l":"_--align-end--l_gm5sj_1","--variant-title-1--l":"_--variant-title-1--l_gm5sj_1","--variant-title-2--l":"_--variant-title-2--l_gm5sj_1","--variant-title-3--l":"_--variant-title-3--l_gm5sj_1","--variant-title-4--l":"_--variant-title-4--l_gm5sj_1","--variant-title-5--l":"_--variant-title-5--l_gm5sj_1","--variant-title-6--l":"_--variant-title-6--l_gm5sj_1","--variant-featured-1--l":"_--variant-featured-1--l_gm5sj_1","--variant-featured-2--l":"_--variant-featured-2--l_gm5sj_1","--variant-featured-3--l":"_--variant-featured-3--l_gm5sj_1","--variant-body-1--l":"_--variant-body-1--l_gm5sj_1","--variant-body-2--l":"_--variant-body-2--l_gm5sj_1","--variant-body-3--l":"_--variant-body-3--l_gm5sj_1","--variant-caption-1--l":"_--variant-caption-1--l_gm5sj_1","--variant-caption-2--l":"_--variant-caption-2--l_gm5sj_1","--align-start--xl":"_--align-start--xl_gm5sj_1","--align-center--xl":"_--align-center--xl_gm5sj_1","--align-end--xl":"_--align-end--xl_gm5sj_1","--variant-title-1--xl":"_--variant-title-1--xl_gm5sj_1","--variant-title-2--xl":"_--variant-title-2--xl_gm5sj_1","--variant-title-3--xl":"_--variant-title-3--xl_gm5sj_1","--variant-title-4--xl":"_--variant-title-4--xl_gm5sj_1","--variant-title-5--xl":"_--variant-title-5--xl_gm5sj_1","--variant-title-6--xl":"_--variant-title-6--xl_gm5sj_1","--variant-featured-1--xl":"_--variant-featured-1--xl_gm5sj_1","--variant-featured-2--xl":"_--variant-featured-2--xl_gm5sj_1","--variant-featured-3--xl":"_--variant-featured-3--xl_gm5sj_1","--variant-body-1--xl":"_--variant-body-1--xl_gm5sj_1","--variant-body-2--xl":"_--variant-body-2--xl_gm5sj_1","--variant-body-3--xl":"_--variant-body-3--xl_gm5sj_1","--variant-caption-1--xl":"_--variant-caption-1--xl_gm5sj_1","--variant-caption-2--xl":"_--variant-caption-2--xl_gm5sj_1"},Jo={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},Q=e=>{const{variant:t,color:n,weight:r,align:o,decoration:i,maxLines:a,children:l,className:d,attributes:f}=e,u=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),h=e.as||u&&Jo[u]||"div",m=S(nt.root,n&&nt[`--color-${n}`],...W(nt,"--variant",t),...W(nt,"--align",o),r&&nt[`--weight-${r}`],i&&nt[`--decoration-${i}`],a!==void 0&&nt["--clamp"],d),g=C(v({},f==null?void 0:f.style),{"--rs-text-lines":a});return s.jsx(h,C(v({},f),{className:m,style:g,children:l}))},Qo=e=>{const{title:t,children:n,icon:r,actionsSlot:o,color:i="neutral",inline:a,bleed:l,className:d,attributes:f}=e,u=i==="neutral",h=()=>a?s.jsxs(s.Fragment,{children:[t&&s.jsx(Q,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&s.jsx(Q,{variant:"body-3",as:"span",children:n})]}):s.jsxs(D,{gap:1,children:[t&&s.jsx(Q,{variant:"body-3",weight:"medium",children:t}),n&&s.jsx(Q,{variant:"body-3",children:n})]}),m=g=>o?s.jsxs(D,{gap:2,direction:a?"row":"column",children:[a?s.jsx(D.Item,{grow:!0,children:g}):g,o&&s.jsx(Q,{variant:"body-3",weight:"medium",children:s.jsx(D,{direction:"row",gap:3,children:o})})]}):g;return s.jsx(D,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:C(v({},f),{role:i==="critical"?"alert":"status"}),children:r?s.jsxs(s.Fragment,{children:[s.jsx(le,{svg:r,size:5,color:u?"primary":i}),s.jsx(D.Item,{grow:!0,children:m(h())})]}):m(h())})},cr=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Zo=cr.Provider,zt=()=>c.useContext(cr),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:r}=zt();return{attributes:e,required:t,hasError:n,disabled:r}},dr={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},wn=(e,t)=>`${e}-${t||"caption"}`,Vt=e=>{const{children:t,id:n,required:r,hasError:o,group:i,disabled:a,size:l}=e,d=ze(n),f=i?"fieldset":"div",[u,h]=c.useState(!1),[m,g]=c.useState(!1),b=[u&&wn(d),m&&wn(d,"error")].filter(Boolean).join(" "),x={id:d,"aria-describedby":b},y=()=>{g(!0)},w=()=>{h(!0)};return s.jsx(f,{children:s.jsx(Zo,{value:{required:r,hasError:o,errorRef:y,helperRef:w,attributes:x,group:i,disabled:a,size:l},children:t})})},es=e=>{const{children:t}=e,{attributes:n,required:r,group:o,disabled:i,size:a}=zt(),l=`${n.id}-label`,d=o?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return s.jsxs(Q,C(v({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:dr.label,color:i?"disabled":void 0,children:[t,r&&s.jsx(Q,{color:i?"disabled":"critical",as:"span",children:"*"})]}))},ur=e=>{const{children:t,variant:n,disabled:r}=e,{attributes:o,size:i,helperRef:a,errorRef:l}=zt(),d=wn(o.id,n),f=n==="error"?"critical":"neutral-faded",u=n==="error"?l:a;return s.jsx(Q,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:u},className:dr.caption,children:t})},ts=e=>{const{children:t}=e,{disabled:n}=zt();return s.jsx(ur,{disabled:n,children:t})},ns=e=>{const{children:t}=e,{hasError:n}=zt();return n?s.jsx(ur,{variant:"error",children:t}):null};Vt.Label=es,Vt.Helper=ts,Vt.Error=ns;const _r={root:"_root_1q3jm_1","--side-all":"_--side-all_1q3jm_6","--side-start":"_--side-start_1q3jm_10","--side-inline":"_--side-inline_1q3jm_11","--side-end":"_--side-end_1q3jm_15","--side-top":"_--side-top_1q3jm_20","--side-block":"_--side-block_1q3jm_21","--side-bottom":"_--side-bottom_1q3jm_25"},qt=e=>{const{side:t="all",children:n,className:r,attributes:o}=e,i=typeof t=="string"?[t]:t,a=S(_r.root,i.map(l=>_r[`--side-${l}`]),r);return s.jsx("div",C(v({},o),{className:a,children:n}))},Ee={root:"_root_16c4t_1",input:"_input_16c4t_21",slot:"_slot_16c4t_42",icon:"_icon_16c4t_43",affix:"_affix_16c4t_44",attachment:"_attachment_16c4t_60","attachment--position-start":"_attachment--position-start_16c4t_66","attachment--position-end":"_attachment--position-end_16c4t_76","--disabled":"_--disabled_16c4t_91","--size-medium":"_--size-medium_16c4t_1","--size-large":"_--size-large_16c4t_1","--size-xlarge":"_--size-xlarge_16c4t_1","--variant-faded":"_--variant-faded_16c4t_155","--variant-headless":"_--variant-headless_16c4t_164","--status-error":"_--status-error_16c4t_169","--size-medium--m":"_--size-medium--m_16c4t_1","--size-large--m":"_--size-large--m_16c4t_1","--size-xlarge--m":"_--size-xlarge--m_16c4t_1","--size-medium--l":"_--size-medium--l_16c4t_1","--size-large--l":"_--size-large--l_16c4t_1","--size-xlarge--l":"_--size-xlarge--l_16c4t_1","--size-medium--xl":"_--size-medium--xl_16c4t_1","--size-large--xl":"_--size-large--xl_16c4t_1","--size-xlarge--xl":"_--size-xlarge--xl_16c4t_1"},mr=e=>{const{slot:t,icon:n,size:r,affix:o,position:i}=e;if(!n&&!t&&!o)return null;const a=S(Ee.attachment,Ee[`attachment--position-${i}`]),l=[t&&s.jsx("div",{className:Ee.slot,children:t},"slot"),n&&s.jsx("div",{className:Ee.icon,children:s.jsx(le,{size:$e(r,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),o&&s.jsx("div",{className:Ee.affix,children:o},"affix")].filter(Boolean);return s.jsx("span",{className:a,children:i==="end"?l.reverse():l})},yn=e=>{var M;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:u,endSlot:h,prefix:m,suffix:g,size:b="medium",variant:x="outline",className:y,attributes:w}=e,p=Ye(),j=ze(e.id),$=(p==null?void 0:p.attributes.id)||((M=e.inputAttributes)==null?void 0:M.id)||j,z=(p==null?void 0:p.disabled)||e.disabled,T=(p==null?void 0:p.hasError)||e.hasError,E=v(v({},e.inputAttributes),p==null?void 0:p.attributes),P=S(Ee.root,y,b&&W(Ee,"--size",b),T&&Ee["--status-error"],z&&Ee["--disabled"],x&&Ee[`--variant-${x}`]),U=A=>{t&&t({name:o,value:A.target.value,event:A})};return s.jsxs("div",C(v({},w),{"data-rs-aligner-target":!0,className:P,children:[s.jsx(mr,{position:"start",icon:d,slot:u,size:b,affix:m}),s.jsx("input",C(v({},E),{className:Ee.input,disabled:z,name:o,placeholder:l,value:i,defaultValue:a,onChange:U,onFocus:n||(E==null?void 0:E.onFocus),onBlur:r||(E==null?void 0:E.onBlur),id:$})),s.jsx(mr,{position:"end",icon:f,slot:h,size:b,affix:g})]}))};yn.Aligner=qt;const rs="Enter",os="Tab",fr="ArrowUp",hr="ArrowDown",vr="ArrowRight",gr="ArrowLeft",jn="data-rs-keyboard",Ot="data-rs-focus";class ss{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const n=this.tailId,r=n&&this.get(n),o=this.generateId();return this.chain[o]={previousId:n,data:t},r&&(r.nextId=o),this.tailId=o,o}remove(t){var d,f;const n=this.chain[t];if(!n)return;const r=n.previousId,o=r&&this.get(r),i=n.nextId,a=i&&this.get(i);o&&(o.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),i||(this.tailId=r!=null?r:null);const l=this.get(t).data;return delete this.chain[t],l}removePreviousTill(t,n){const r=this.get(t),o=this.remove(t);return!r||!r.previousId||n(r)?o:this.removePreviousTill(r.previousId,n)}}const br=()=>document.documentElement.hasAttribute(jn),pr='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Bt=()=>document.querySelector(`[${Ot}]`)||document.activeElement,Cn=(e,t)=>{const r=Array.from(e.querySelectorAll(pr)).filter(o=>!o.hasAttribute("disabled")&&o.clientHeight>0);return t&&r.length&&r.unshift(t),r},xr=e=>{const{root:t,extraElement:n,target:r,mode:o}=e,i=Cn(t,n),a=i.length-1,l=Bt(),d=i.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let u=f[r];const h=u>a||u<0;return h&&(o==="action-menu"?u=r==="prev"?f.first:f.last:u=r==="prev"?f.last:f.first),{overflow:h,el:i[u]}},Wt=(e,t)=>{var n;(n=document.querySelector(`[${Ot}]`))==null||n.removeAttribute(Ot),t==="selection-menu"?e.setAttribute(Ot,"true"):e.focus()},Ht=(e,t)=>{const n=xr({root:e,target:t});Wt(n.el)},is=e=>Ht(e,"next"),as=e=>Ht(e,"prev"),ls=e=>Ht(e,"first"),cs=e=>Ht(e,"last"),ds=(()=>{let e=[];const t=r=>{let o=r.parentNode&&r.parentNode.firstChild;for(;o;){const i=o!==r,a=o.nodeType===1&&!o.hasAttribute("aria-hidden");i&&a&&(o.setAttribute("aria-hidden","true"),e.push(o)),o=o.nextSibling}},n=()=>{e.forEach(r=>{r.removeAttribute("aria-hidden")}),e=[]};return r=>{let o=r;for(e.length&&n();o!==document.body;)t(o),o=o.parentElement;return{release:n}}})(),Rt=(()=>{let e=null,t=null;const n=new ss;return(r,o={})=>{const{mode:i="dialog",onNavigateOutside:a,includeTrigger:l}=o,d=Bt(),f=i==="dialog",u=i==="content-menu",h=i==="selection-menu",m=f||u,g=i==="action-menu"||h,b=Cn(r,l?d:void 0);let x;const y=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const $=Cn(r,l?d:void 0);$.length&&Wt($[0],i)}),w=($={})=>{const{withoutFocusReturn:z}=$;n.removePreviousTill(x,E=>document.body.contains(E.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:z||!br()}),e&&(e(),t&&t.release(),e=null,t=null);const T=n.tailId&&n.get(n.tailId);T&&Rt(T.data.root,T.data.options)},p=$=>{const z=$.key,T=z===os,E=T&&!$.shiftKey,P=T&&$.shiftKey,U=g&&z===fr,M=g&&z===hr,A=P&&m||U,q=E&&m||M,V=Bt()===d,L=xr({root:r,target:A?"prev":"next",extraElement:l?d:void 0,mode:i});if(T&&g||u&&T&&L.overflow){P&&!V&&$.preventDefault(),w(),a==null||a();return}!A&&!q||($.preventDefault(),L.el&&Wt(L.el,i))};if(e&&e(),f&&(t=ds(r)),y.observe(r,{childList:!0,subtree:!0}),!b.length)return null;document.addEventListener("keydown",p),e=()=>document.removeEventListener("keydown",p);const j=n.tailId&&n.get(n.tailId);return(!j||r!==j.data.root)&&(x=n.add({root:r,trigger:d,options:o}),Wt(b[0],i)),w}})(),us=100,_s=150;let it={},Le=null;const wr=e=>{it[e]&&(e===Le&&(Le=it[e].parentId),delete it[e],Le===null&&(it={}))},ms=(e,t,n)=>{var i;const r=Le?it[Le]:void 0;!((n==null?void 0:n.current)&&r&&((i=r.contentRef.current)==null?void 0:i.contains(n.current)))&&n&&Le&&wr(Le),it[e]={parentId:Le,triggerRef:n,contentRef:t},Le=e},yr=(e=!1,t,n)=>{const r=ze(),o=c.useCallback(()=>Le===r,[r]);return c.useEffect(()=>{e?ms(r,t,n):wr(r)},[e,r,t,n]),o},ce=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,at="+",Te={},kn=[],jr=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),Nn=e=>jr(e).split(at).sort().join(at),Cr=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},fs=e=>{const t=[],n=e.join(at),o=Nn(n).split(at),i=(a,l)=>{l.forEach((d,f)=>{const u=a?`${a}+${d}`:d;t.push(u),i(u,l.slice(f+1))})};return i("",o),t},hs=(e,t)=>{const n=Object.keys(e);n.length&&fs(n).forEach(r=>{t(r)})},$n=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(r=>{const o=e[n];o&&t(Nn(r),o)})})};class vs{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{$n(t,(r,o)=>{o&&(this.hotkeyMap[r]||(this.hotkeyMap[r]={data:new Set,used:!1}),this.hotkeyMap[r].data.add({callback:o,ref:n}))})},this.unbindHotkeys=t=>{$n(t,(n,r)=>{var o,i;r&&((o=this.hotkeyMap[n])==null||o.data.forEach(a=>{a.callback===r&&this.hotkeyMap[n].data.delete(a)}),(i=this.hotkeyMap[n])!=null&&i.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{hs(t,r=>{const o=this.hotkeyMap[r];!o||o.used||o!=null&&o.data.size&&o.data.forEach(i=>{var a;(a=i.ref)!=null&&a.current&&!(n.target===i.ref.current||i.ref.current.contains(n.target))||(i.callback(t[r]),this.hotkeyMap[r].used=!0)})})},this.handleKeyUp=t=>{const n=Nn(t.key);$n(this.hotkeyMap,(r,o)=>{r.split(at).includes(n)&&(o.used=!1)})}}}const Ut=new vs,kr=c.createContext({}),gs=e=>{const{children:t}=e,[n,r]=c.useState(0),[o,i]=c.useState(0),a=c.useCallback(m=>{if(m.repeat||o===0)return;const g=Cr(m);g&&(Te[g]=m,(g==="meta"||g==="control")&&(Te.mod=m),r(Object.keys(Te).length),g==="meta"&&kn.push(...Object.keys(Te)),Te.Meta&&kn.push(g))},[o]),l=c.useCallback(m=>{if(o===0)return;const g=Cr(m);g&&(delete Te[g],(g==="meta"||g==="control")&&delete Te.mod,g==="meta"&&kn.forEach(b=>{delete Te[b]}),r(Object.keys(Te).length))},[o]),d=m=>!jr(m).split(at).some(b=>!Te[b]),f=c.useCallback((m,g)=>(i(b=>b+1),Ut.bindHotkeys(m,g),()=>{i(b=>b-1),Ut.unbindHotkeys(m)}),[]),u=c.useCallback(m=>{m.key&&(a(m),Ut.handleKeyDown(Te,m))},[a]),h=c.useCallback(m=>{m.key&&(l(m),Ut.handleKeyUp(m))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",u),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",u),window.removeEventListener("keyup",h)}),[u,h]),s.jsx(kr.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},bs=()=>c.useContext(kr),rt=(e,t=[],n)=>{const{addHotkeys:r,isPressed:o}=bs(),i=c.useRef(null),a=(n==null?void 0:n.ref)||i;return c.useEffect(()=>{const l=r(e,a);return()=>l==null?void 0:l()},[r,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:o}},zn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ps=e=>{const t=c.useState(e||!1),[n,r]=t;return ce(()=>{const o=new MutationObserver(i=>{i.forEach(a=>{if(a.attributeName!=="dir")return;const l=a.target.dir==="rtl";n!==l&&r(l)})});return o.observe(document.documentElement,{attributes:!0}),()=>o.disconnect()},[n]),ce(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(zn).rtl,En=e=>{const t=e&&window.getComputedStyle(e),n=t==null?void 0:t.overflowY,r=t==null?void 0:t.position,o=n==null?void 0:n.includes("scroll"),i=r==="fixed";return e===document.body||!e?document.body:o&&e.scrollHeight>e.clientHeight||i?e:En(e.parentElement)},Nr=16,Kt=["top-start","top","top-end"],Yt=["bottom-start","bottom","bottom-end"],Gt=["start","start-bottom","start-top"],Xt=["end","end-bottom","end-top"],xs={top:[...Kt,...Yt,...Xt,...Gt],bottom:[...Yt,...Kt,...Xt,...Gt],start:[...Gt,...Xt,...Kt,...Yt],end:[...Xt,...Gt,...Kt,...Yt]},ws=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,$r=(e,t)=>Math.floor(e/2-t/2),ys=e=>{const n=["top","bottom","start","end"].find(r=>e.startsWith(r))||"bottom";return xs[n]},Tn=e=>{const t=document.documentElement,n=t.scrollLeft,r=n+t.clientWidth,o=t.scrollTop,i=o+t.clientHeight;return e.left>=n&&e.left+e.width<=r&&e.top>=o&&e.top+e.height<=i},zr=(e,t,n,r)=>{const{position:o,rtl:i,width:a}=r;let l=0,d=0,f=o;switch(i&&(f=ws(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=$r(e.width,t.width)+e.left;break;case"start":case"start-top":case"start-bottom":l=e.left-t.width;break;case"end":case"end-top":case"end-bottom":l=e.right;break;case"top-start":case"bottom-start":l=e.left;break;case"top-end":case"bottom-end":l=e.right-t.width;break}switch(f){case"top":case"top-start":case"top-end":d=e.top-t.height;break;case"bottom":case"bottom-start":case"bottom-end":d=e.bottom;break;case"start":case"end":d=$r(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||l===void 0)throw Error(`[Reshaped, flyout]: ${f} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),l=Math.round(l+(window.scrollX||0)-n.left);let u=Math.ceil(t.width);const h=Math.ceil(t.height);return a==="full"?(l=Nr,u=window.innerWidth-Nr*2):a==="trigger"&&(u=e.width),{styles:{left:l,top:d,width:u,height:h},position:f}},Er={left:0,top:0,width:"auto",height:"auto",zIndex:"var(--rs-z-index-flyout)"},Jt={left:0,top:0,position:"fixed",visibility:"hidden",animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},js=(e,t,n)=>{const{position:r,forcePosition:o,width:i}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(Jt).forEach(g=>{const b=Jt[g];a.style[g]=b.toString()}),i&&(i==="trigger"?a.style.width=`${l.width}px`:i!=="full"&&(a.style.width=i)),document.body.appendChild(a);const d=a.getBoundingClientRect(),f=En(e),u=f.getBoundingClientRect(),h={top:u.top+document.documentElement.scrollTop-f.scrollTop,left:u.left+document.documentElement.scrollLeft-f.scrollLeft};let m=zr(l,d,h,n);if(!Tn(m.styles)&&!o){const g=ys(r),b=g.filter(y=>y==="top"||y==="bottom"),x=(y,w={})=>{const{fullWidth:p}=w;y.some(j=>{const $=C(v({},n),{width:p?"full":n.width,position:j}),z=zr(l,d,h,$);return Tn(z.styles)?(m=z,!0):!1})};x(g),Tn(m.styles)||x(b,{fullWidth:!0})}return a.parentNode.removeChild(a),m},Cs=(e,t)=>{switch(t.type){case"render":return C(v({},e),{status:"rendered",styles:v({pointerEvents:"none"},Jt)});case"position":return C(v({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:v(v({},Er),t.payload.styles)});case"show":return C(v({},e),{status:"visible"});case"hide":return C(v({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return C(v({},e),{status:"idle",styles:Jt});default:throw new Error("Invalid reducer type")}},ks=(e,t,n)=>{const{position:r="bottom",forcePosition:o,width:i}=n,[a]=Ge(),[l,d]=c.useReducer(Cs,{position:r,styles:Er,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),u=c.useCallback(()=>{d({type:"show"})},[]),h=c.useCallback(()=>{d({type:"hide"})},[]),m=c.useCallback(()=>{d({type:"remove"})},[]),g=c.useCallback(()=>{if(!e.current||!t.current)return;const b=js(e.current,t.current,{width:i,position:r,forcePosition:o,rtl:a});d({type:"position",payload:b})},[e,t,r,a,o,i]);return c.useEffect(()=>{l.status==="rendered"&&g(),l.status==="positioned"&&$t(()=>u())},[l.status,g,u]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:g,render:f,hide:h,remove:m}),[f,g,h,m,l.position,l.styles,l.status])},Ns=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=r=>{let o=!1;e.forEach(i=>{(!i.current||i.current===r.target||i.current.contains(r.target))&&(o=!0)}),!o&&t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},Tr=c.createContext({}),Qt=()=>c.useContext(Tr),$s=Tr.Provider,Ir=e=>{const{triggerType:t="click",onOpen:n,onClose:r,children:o,forcePosition:i,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:u,contentAttributes:h,position:m,active:g,id:b,instanceRef:x}=e,[y]=Ge(),w=c.useRef(null),p=c.useRef(null),j=ze(b),$=c.useRef(),z=c.useRef(null),T=c.useRef(!1),E=c.useRef(!1),P=c.useRef(!0),U=ks(w,p,{width:l,position:m,defaultActive:g,forcePosition:i}),M=Qt(),{status:A,updatePosition:q,render:V,hide:L,remove:Z}=U,fe=yr(t!=="hover"&&A!=="idle",p,w),he=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),se=c.useCallback(()=>{!T.current&&A==="idle"&&(n==null||n())},[A]),ee=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&A!=="idle"&&(r==null||r(),X!=null&&X.closeParents&&((Me=M==null?void 0:M.handleClose)==null||Me.call(M)))},[A,fe,t]),He=c.useCallback(X=>{var ve;(ve=p.current)!=null&&ve.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||E.current||ee()},[ee,t,a]),ke=c.useCallback(()=>{se()},[se]),re=c.useCallback(()=>{he(),$.current=setTimeout(se,us)},[he,$,se]),H=c.useCallback(()=>{he(),$.current=setTimeout(()=>ee(),_s)},[he,$,ee]),Y=c.useCallback(()=>{A==="idle"?se():ee()},[A,se,ee]),G=()=>E.current=!0,ie=()=>E.current=!1;ce(()=>{if(g){V();return}Yo()&&!d?L():Z()},[g,V,L,d]);const ye=c.useCallback(X=>{p.current!==X.currentTarget||X.propertyName!=="transform"||A==="hidden"&&Z()},[Z,A]);return ce(()=>{A!=="visible"||!p.current||(z.current=Rt(p.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{z.current=null,ee()}}))},[A,t,ee,a]),c.useEffect(()=>{!d&&A!=="hidden"||d&&A!=="idle"||z.current&&(t==="hover"&&(T.current=!0,setTimeout(()=>{T.current=!1},100)),z.current({withoutFocusReturn:!P.current}),z.current=null,P.current=!0)},[A,t,d]),c.useEffect(()=>()=>{z.current&&z.current(),z.current=null},[]),c.useEffect(()=>{const X=Zn(q,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[q]),c.useEffect(()=>{q()},[y,q]),c.useImperativeHandle(x,()=>({open:se,close:ee}),[se,ee]),rt({Escape:()=>ee()},[ee]),Ns([p,w],()=>{P.current=!1,ee()}),s.jsx($s,{value:{id:j,flyout:U,width:l,triggerElRef:w,flyoutElRef:p,handleClose:ee,handleOpen:se,handleFocus:ke,handleBlur:He,handleMouseEnter:re,handleMouseLeave:H,handleTransitionEnd:ye,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:u,contentAttributes:h},children:o})},zs=e=>{const{defaultActive:t,onClose:n,onOpen:r}=e,[o,i]=c.useState(t||!1),a=()=>{i(!1),n&&n()},l=()=>{i(!0),r&&r()};return s.jsx(Ir,C(v({},e),{defaultActive:void 0,active:o,onClose:a,onOpen:l}))},Es=e=>{const{children:t}=e,{id:n,triggerElRef:r,triggerType:o,flyout:i,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:u,trapFocusMode:h}=Qt();let m={onBlur:l,ref:r};return(o==="click"||h==="action-menu")&&(m.onClick=u),o==="hover"&&(m.onMouseEnter=d,m.onMouseLeave=f),(o==="hover"&&h!=="action-menu"||o==="focus")&&(m.onFocus=a,m["aria-describedby"]=n),(o==="click"||o==="focus"||h==="action-menu")&&(h==="dialog"?m["aria-haspopup"]="dialog":h==="selection-menu"?(m["aria-haspopup"]="listbox",m["aria-autocomplete"]="list"):m["aria-haspopup"]="menu",m["aria-expanded"]=i.status!=="idle",m["aria-controls"]=i.status!=="idle"?n:void 0),s.jsx(s.Fragment,{children:t(m)})},Mr=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),In=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),Ts=()=>{const{mode:e}=c.useContext(In);return e},Sr=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Mr),{mode:r,setMode:o,invertMode:i}=c.useContext(In);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||r,setColorMode:o,invertColorMode:i}),[e,r,o,i,t,n])},Is={root:"_root_r30zs_1"},lt=e=>{const{name:t,defaultName:n,colorMode:r,children:o,className:i}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),u=Ts(),h=Sr(),m=!h.theme,g=t||d||h.theme,b=m?u:h.colorMode,y=r==="inverted"?b==="light"?"dark":"light":r||b,w=S(Is.root,i),p=j=>{f(j)};return ce(()=>{l(!0)},[]),ce(()=>{if(!document||!m)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",g),j||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[g,y,m]),s.jsx(Mr.Provider,{value:{theme:g,colorMode:y,setTheme:p},children:s.jsx("div",{className:w,"data-rs-theme":m?void 0:g,"data-rs-color-mode":m||!r&&!a?void 0:y,children:o})})},Ms=e=>{const{defaultMode:t,children:n}=e,[r,o]=c.useState(t||"light"),i=c.useCallback(l=>{document.documentElement.setAttribute("data-rs-color-mode",l),o(d=>(d!==l&&Uo(),l))},[]);ce(()=>{$t(()=>{Ko()})},[r]),ce(()=>{const l=document.documentElement.getAttribute("data-rs-color-mode");l&&i(l)},[]);const a=c.useMemo(()=>({mode:r,setMode:i,invertMode:()=>{i(r==="light"?"dark":"light")}}),[r,i]);return s.jsx(In.Provider,{value:a,children:n})},Pr=c.createContext({}),Ss=()=>c.useContext(Pr),Zt=e=>{const{children:t,targetRef:n}=e,r=Ss(),o=n||r.scopeRef;return me.createPortal(s.jsx(lt,{children:t}),(o==null?void 0:o.current)||document.body)};function Ps(e){const{children:t}=e,n=c.useRef(null);return s.jsx(Pr.Provider,{value:{scopeRef:n},children:t(n)})}Zt.Scope=Ps;const ct={content:"_content_12uuh_1",inner:"_inner_12uuh_9","--width-trigger":"_--width-trigger_12uuh_15","--position-top":"_--position-top_12uuh_19","--position-top-end":"_--position-top-end_12uuh_20","--position-top-start":"_--position-top-start_12uuh_21","--position-bottom":"_--position-bottom_12uuh_27","--position-bottom-end":"_--position-bottom-end_12uuh_28","--position-bottom-start":"_--position-bottom-start_12uuh_29","--position-start":"_--position-start_12uuh_45","--position-start-top":"_--position-start-top_12uuh_46","--position-start-bottom":"_--position-start-bottom_12uuh_47","--position-end":"_--position-end_12uuh_53","--position-end-top":"_--position-end-top_12uuh_54","--position-end-bottom":"_--position-end-bottom_12uuh_55","--visible":"_--visible_12uuh_71","--animated":"_--animated_12uuh_76"},As=e=>{const{children:t,className:n,attributes:r}=e,{flyout:o,id:i,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:u,handleMouseLeave:h,handleContentMouseDown:m,handleContentMouseUp:g,contentGap:b,contentClassName:x,contentAttributes:y,trapFocusMode:w,width:p}=Qt(),{styles:j,status:$,position:z}=o,[T,E]=c.useState(!1);if(ce(()=>{E(!0)},[]),$==="idle"||!T)return null;const P=S(ct.content,$==="visible"&&ct["--visible"],["visible","hidden"].includes($)&&ct["--animated"],z&&ct[`--position-${z}`],p==="trigger"&&ct["--width-trigger"]),U=S(ct.inner,n,x);let M;f==="hover"?M="tooltip":w==="dialog"?M="dialog":w==="selection-menu"?M="listbox":w==="action-menu"&&(M="menu");const A=s.jsx("div",{className:P,style:C(v({},j),{"--rs-flyout-gap":b}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?u:void 0,onMouseLeave:f==="hover"?h:void 0,onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g,children:s.jsx("div",C(v({role:M},r),{id:i,"aria-modal":f==="click",style:y==null?void 0:y.style,className:U,children:t}))}),q=En(l.current);return s.jsx(Zt,{targetRef:q===document.body?void 0:{current:q},children:A})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?s.jsx(Ir,v({},e)):s.jsx(zs,v({},e))};Xe.Trigger=Es,Xe.Content=As;const Mn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},Fs={root:"_root_e7w6q_1"},Sn=e=>{if(!e)return null;const t=te("--rs-p",e);return{classNames:Fs.root,variables:t}},dt=e=>{var j;const{id:t,forcePosition:n,onOpen:r,onClose:o,active:i,defaultActive:a,children:l,width:d,contentGap:f,variant:u="elevated",triggerType:h="click",position:m="bottom",disableHideAnimation:g,instanceRef:b}=e,x=(j=e.padding)!=null?j:u==="headless"?0:4,y=e.trapFocusMode||(h==="hover"?"content-menu":void 0),w=Sn(x),p=S(Mn.content,!!d&&Mn["content--has-width"],u&&Mn[`content--variant-${u}`],w==null?void 0:w.classNames);return s.jsx(Xe,{id:t,instanceRef:b,position:m,forcePosition:n,onOpen:r,onClose:o,trapFocusMode:y,triggerType:h,active:i,defaultActive:a,width:d,disableHideAnimation:g,contentGap:f,contentClassName:p,contentAttributes:{style:v({},w==null?void 0:w.variables)},children:l})};dt.Trigger=Xe.Trigger,dt.Content=Xe.Content;const Be={root:"_root_13dku_1",icon:"_icon_13dku_12",content:"_content_13dku_17","--rounded-corners":"_--rounded-corners_13dku_22","--size-small":"_--size-small_13dku_1","--size-medium":"_--size-medium_13dku_1","--size-large":"_--size-large_13dku_1","--color-neutral":"_--color-neutral_13dku_61","--selected":"_--selected_13dku_65","--color-critical":"_--color-critical_13dku_71","--color-primary":"_--color-primary_13dku_81","--disabled":"_--disabled_13dku_102",aligner:"_aligner_13dku_123","--rounded-corners-true--m":"_--rounded-corners-true--m_13dku_1","--rounded-corners-false--m":"_--rounded-corners-false--m_13dku_1","--size-small--m":"_--size-small--m_13dku_1","--size-medium--m":"_--size-medium--m_13dku_1","--size-large--m":"_--size-large--m_13dku_1","--rounded-corners-true--l":"_--rounded-corners-true--l_13dku_1","--rounded-corners-false--l":"_--rounded-corners-false--l_13dku_1","--size-small--l":"_--size-small--l_13dku_1","--size-medium--l":"_--size-medium--l_13dku_1","--size-large--l":"_--size-large--l_13dku_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_13dku_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_13dku_1","--size-small--xl":"_--size-small--xl_13dku_1","--size-medium--xl":"_--size-medium--xl_13dku_1","--size-large--xl":"_--size-large--xl_13dku_1"},Ls=e=>s.jsx(qt,C(v({},e),{side:e.side||"inline",className:[Be.aligner,e.className]})),Ds=(e,t)=>{const{icon:n,startSlot:r,endSlot:o,children:i,color:a="primary",selected:l,disabled:d,onClick:f,href:u,size:h="medium",roundedCorners:m,className:g,attributes:b}=e,x=S(Be.root,g,W(Be,"--size",h),W(Be,"--rounded-corners",m),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=$e(h,p=>p==="large"?3:2),w=$e(h,p=>p==="large"?5:4);return s.jsx(Fe,{disabled:d,className:x,attributes:C(v({},b),{"data-rs-aligner-target":!0}),onClick:f,href:u,ref:t,children:s.jsxs(D,{direction:"row",gap:y,align:"center",children:[n&&s.jsx(le,{svg:n,className:Be.icon,size:w}),!n&&r,i&&s.jsx(D.Item,{grow:!0,className:Be.content,children:i}),o]})})},Pn=c.forwardRef(Ds);Pn.Aligner=Ls;const en=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),tn={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},An=c.createContext(null),we=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:r="click",trapFocusMode:o="action-menu"}=a,i=Ae(a,["children","position","triggerType","trapFocusMode"]);return s.jsx(dt,C(v({},i),{position:n,padding:0,trapFocusMode:o,triggerType:r,children:t}))},Vs=e=>{const{children:t,attributes:n,className:r}=e,o=c.useContext(An),[i]=Ge(),{ref:a}=rt({[i?vr:gr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.close()},[rs]:()=>{const d=Bt();d==null||d.click()}},[o==null?void 0:o.current]),l=S(tn.menu,r);return s.jsx(dt.Content,{className:l,attributes:C(v({},n),{ref:a}),children:t})},qs=e=>{const{children:t}=e;return s.jsx("div",{className:tn.section,role:"group",children:t})},Ar=e=>{const{onClick:t}=e,{handleClose:n}=Qt(),r=o=>{n&&n({closeParents:!0}),t&&t(o)};return s.jsx(Pn,C(v({},e),{roundedCorners:!0,className:tn.item,attributes:v({role:"menuitem"},e.attributes),onClick:r}))},Os=e=>{const{children:t}=e,n=c.useRef();return s.jsx(An.Provider,{value:n,children:s.jsx(we,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Bs=e=>{const l=e,{children:t,attributes:n}=l,r=Ae(l,["children","attributes"]),o=c.useContext(An),[i]=Ge(),{ref:a}=rt({[i?gr:vr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return s.jsx(Ar,C(v({},r),{attributes:C(v({},n),{ref:a}),endSlot:s.jsx(le,{autoWidth:!0,svg:en,className:tn.arrow}),children:t}))},Ws=e=>{const{children:t}=e;return s.jsx(we.Trigger,{children:n=>s.jsx(Bs,{attributes:n,children:t})})};we.Trigger=dt.Trigger,we.Content=Vs,we.Section=qs,we.Item=Ar,we.SubMenu=Os,we.SubTrigger=Ws;const Fr=c.createContext({}),Lr=e=>{const w=e,{children:t,onChange:n,onItemSelect:r,name:o}=w,i=Ae(w,["children","onChange","onItemSelect","name"]),a=c.useRef(null),[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=!!c.Children.toArray(t).filter(Boolean).length,m=c.useCallback(()=>d(!0),[]),g=()=>d(!1);rt({[`${fr},${hr}`]:()=>m()},[m],{ref:a});const b=p=>{n==null||n(p),u(!1),m()},x=p=>{n==null||n({value:p.value,name:o}),r==null||r({value:p.value}),u(!0)},y=p=>{var j;requestAnimationFrame(()=>{f&&(d(!1),u(!1))}),(j=i.onFocus)==null||j.call(i,p)};return s.jsx(Fr.Provider,{value:{onItemClick:x},children:s.jsxs(we,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!f&&h&&l,onClose:g,onOpen:m,disableHideAnimation:!0,children:[s.jsx(we.Trigger,{children:$=>{var z=$,{ref:p}=z,j=Ae(z,["ref"]);return s.jsx(yn,C(v({},i),{name:o,onChange:b,attributes:C(v({},i.attributes),{ref:p}),inputAttributes:C(v({},j),{onFocus:T=>{var E;(E=j.onFocus)==null||E.call(j),y(T)},ref:a,role:"combobox"})}))}}),s.jsx(we.Content,{children:t})]})})},Hs=e=>{const a=e,{value:t,onClick:n}=a,r=Ae(a,["value","onClick"]),{onItemClick:o}=c.useContext(Fr),i=l=>{n==null||n(l),o({value:t})};return s.jsx(we.Item,C(v({},r),{attributes:C(v({},r.attributes),{role:"option"}),onClick:i}))};Lr.Item=Hs;const nn={root:"_root_1m0a1_1",img:"_img_1m0a1_13","--variant-faded":"_--variant-faded_1m0a1_20","--color-neutral":"_--color-neutral_1m0a1_21","--color-critical":"_--color-critical_1m0a1_25","--color-positive":"_--color-positive_1m0a1_29","--color-primary":"_--color-primary_1m0a1_33"},Rs=e=>{const{color:t="neutral",variant:n,src:r,size:o=12,squared:i,initials:a,icon:l,alt:d,className:f,attributes:u}=e,h=i?$e(o,x=>x>=24?"large":x>=12?"medium":"small"):"circular",m=kt(o),g=S(nn.root,f,m==null?void 0:m.classNames,t&&nn[`--color-${t}`],n&&nn[`--variant-${n}`]),b=()=>r?s.jsx("img",{role:a?void 0:"presentation",src:r,alt:d,className:nn.img}):l?s.jsx(le,{svg:l,size:$e(o,x=>Math.ceil(x*.4))}):a;return s.jsx(D,{borderRadius:h,attributes:C(v({},u),{style:v({},m==null?void 0:m.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:g,children:b()})},Dr=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Ie={root:"_root_xbb1o_1",dismiss:"_dismiss_xbb1o_21","--actionable":"_--actionable_xbb1o_26","--variant-faded":"_--variant-faded_xbb1o_1","--variant-outline":"_--variant-outline_xbb1o_1","--color-positive":"_--color-positive_xbb1o_47","--color-critical":"_--color-critical_xbb1o_67","--color-primary":"_--color-primary_xbb1o_87","--size-small":"_--size-small_xbb1o_1","--size-medium":"_--size-medium_xbb1o_1","--size-large":"_--size-large_xbb1o_1","--rounded":"_--rounded_xbb1o_133","--hidden":"_--hidden_xbb1o_145",container:"_container_xbb1o_152","--container-overlap":"_--container-overlap_xbb1o_177","--container-position-top-end":"_--container-position-top-end_xbb1o_181","--container-position-bottom-end":"_--container-position-bottom-end_xbb1o_193"},Us=e=>{const{children:t,position:n="top-end",overlap:r,className:o,attributes:i}=e,a=S(Ie.container,o,r&&Ie["--container-overlap"],n&&Ie[`--container-position-${n}`]);return s.jsx("div",C(v({},i),{className:a,children:t}))},Vr=e=>{const{children:t,color:n,rounded:r,size:o="medium",icon:i,endIcon:a,variant:l,hidden:d,href:f,onClick:u,onDismiss:h,dismissAriaLabel:m,className:g,attributes:b}=e,x=!!(u||f),y=o==="large"?4:3.5,w=S(Ie.root,g,r&&Ie["--rounded"],d&&Ie["--hidden"],o&&Ie[`--size-${o}`],n&&Ie[`--color-${n}`],l&&Ie[`--variant-${l}`],x&&Ie["--actionable"]);return s.jsxs(Fe,{onClick:u,href:f,className:w,attributes:b,children:[i&&s.jsx(le,{svg:i,autoWidth:!0,size:y}),t&&s.jsx(Q,{variant:o==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&s.jsx(le,{svg:a,autoWidth:!0,size:y}),h&&s.jsx(Fe,{onClick:h,className:Ie.dismiss,as:"span",attributes:{"aria-label":m},children:s.jsx(le,{svg:Dr,size:y})})]})};Vr.Container=Us;const rn={root:"_root_1ty16_15","rs-reshaped-loader":"_rs-reshaped-loader_1ty16_1",inner:"_inner_1ty16_44","--color-inherit":"_--color-inherit_1ty16_63","--color-primary":"_--color-primary_1ty16_67","--color-positive":"_--color-positive_1ty16_71","--color-critical":"_--color-critical_1ty16_75","--size-small":"_--size-small_1ty16_1","--size-medium":"_--size-medium_1ty16_1","--size-small--m":"_--size-small--m_1ty16_1","--size-medium--m":"_--size-medium--m_1ty16_1","--size-small--l":"_--size-small--l_1ty16_1","--size-medium--l":"_--size-medium--l_1ty16_1","--size-small--xl":"_--size-small--xl_1ty16_1","--size-medium--xl":"_--size-medium--xl_1ty16_1"},qr=e=>{const{size:t="small",color:n="primary",className:r,attributes:o}=e,i=o==null?void 0:o["aria-label"],a=S(rn.root,r,W(rn,"--size",t),n&&rn[`--color-${n}`]);return s.jsx("span",C(v({},o),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:a,children:s.jsx("span",{className:rn.inner})}))},ue={root:"_root_6msy8_1",loader:"_loader_6msy8_37",icon:"_icon_6msy8_45","--icon-position-end":"_--icon-position-end_6msy8_49",text:"_text_6msy8_60","--loading":"_--loading_6msy8_66","--elevated":"_--elevated_6msy8_83","--icon-only":"_--icon-only_6msy8_87","--rounded":"_--rounded_6msy8_93","--size-small":"_--size-small_6msy8_1","--size-medium":"_--size-medium_6msy8_1","--size-large":"_--size-large_6msy8_1","--size-xlarge":"_--size-xlarge_6msy8_1","--full-width":"_--full-width_6msy8_135","--variant-solid":"_--variant-solid_6msy8_149","--color-black":"_--color-black_6msy8_149","--color-white":"_--color-white_6msy8_150","--variant-faded":"_--variant-faded_6msy8_151","--color-neutral":"_--color-neutral_6msy8_151","--color-primary":"_--color-primary_6msy8_152","--color-critical":"_--color-critical_6msy8_153","--color-positive":"_--color-positive_6msy8_154","--color-inherit":"_--color-inherit_6msy8_155","--variant-outline":"_--variant-outline_6msy8_156","--variant-ghost":"_--variant-ghost_6msy8_157","--highlighted":"_--highlighted_6msy8_176","--disabled":"_--disabled_6msy8_529",group:"_group_6msy8_561",aligner:"_aligner_6msy8_622","--size-small--m":"_--size-small--m_6msy8_1","--size-medium--m":"_--size-medium--m_6msy8_1","--size-large--m":"_--size-large--m_6msy8_1","--size-xlarge--m":"_--size-xlarge--m_6msy8_1","--full-width-true--m":"_--full-width-true--m_6msy8_1","--full-width-false--m":"_--full-width-false--m_6msy8_1","--size-small--l":"_--size-small--l_6msy8_1","--size-medium--l":"_--size-medium--l_6msy8_1","--size-large--l":"_--size-large--l_6msy8_1","--size-xlarge--l":"_--size-xlarge--l_6msy8_1","--full-width-true--l":"_--full-width-true--l_6msy8_1","--full-width-false--l":"_--full-width-false--l_6msy8_1","--size-small--xl":"_--size-small--xl_6msy8_1","--size-medium--xl":"_--size-medium--xl_6msy8_1","--size-large--xl":"_--size-large--xl_6msy8_1","--size-xlarge--xl":"_--size-xlarge--xl_6msy8_1","--full-width-true--xl":"_--full-width-true--xl_6msy8_1","--full-width-false--xl":"_--full-width-false--xl_6msy8_1"},Ks=e=>{const{children:t,className:n,attributes:r}=e,o=S(ue.group,n);return s.jsx("div",C(v({},r),{className:o,role:"group",children:t}))},Ys=e=>s.jsx(qt,C(v({},e),{side:e.side||e.position,className:[ue.aligner,e.className]})),Gs=(e,t)=>{const{variant:n="solid",color:r="neutral",elevated:o,highlighted:i,fullWidth:a,loading:l,disabled:d,type:f,href:u,size:h="medium",className:m,children:g,rounded:b,attributes:x,onClick:y,icon:w,endIcon:p}=e,j=(w||p)&&!g,$=S(ue.root,m,r&&ue[`--color-${r}`],n&&ue[`--variant-${n}`],W(ue,"--size",h),W(ue,"--full-width",a),o&&n!=="ghost"&&ue["--elevated"],b&&ue["--rounded"],d&&ue["--disabled"],l&&ue["--loading"],i&&ue["--highlighted"],j&&ue["--icon-only"]),z=T=>{if(!(T==="start"&&w||T==="end"&&p))return null;const M=S(ue.icon,T==="end"&&ue["--icon-position-end"]),A=$e(h,q=>q==="large"?5:q==="xlarge"?6:4);return s.jsx(le,{className:M,svg:T==="start"?w:p,size:A,autoWidth:!0})};return s.jsxs(Fe,{disabled:d||l,className:$,attributes:C(v({},x),{"data-rs-aligner-target":!0}),type:f,onClick:y,href:u,ref:t,children:[l&&s.jsx("div",{className:ue.loader,children:s.jsx(qr,{size:"small",color:"inherit"})}),z("start"),g&&s.jsx("span",{className:ue.text,children:g}),z("end")]})},Ce=c.forwardRef(Gs);Ce.Group=Ks,Ce.Aligner=Ys;const Et={root:"_root_def7r_1","--color-primary":"_--color-primary_def7r_6","--color-critical":"_--color-critical_def7r_10","--color-positive":"_--color-positive_def7r_14","--color-inherit":"_--color-inherit_def7r_18","--variant-plain":"_--variant-plain_def7r_22","--disabled":"_--disabled_def7r_26","--variant-underline":"_--variant-underline_def7r_32","--with-icon":"_--with-icon_def7r_48"},Xs=(e,t)=>{const{icon:n,disabled:r,href:o,color:i="primary",variant:a="underline",className:l,children:d,attributes:f,type:u,onClick:h}=e,m=S(Et.root,l,r&&Et["--disabled"],a&&Et[`--variant-${a}`],i&&Et[`--color-${i}`],n&&Et["--with-icon"]);return s.jsxs(Fe,{href:o,disabled:r,className:m,attributes:f,type:u,onClick:h,ref:t,children:[n&&s.jsx(le,{svg:n}),d]})},Or=c.forwardRef(Xs),Js=()=>s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),s.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),s.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Qs=e=>{const{children:t,onClick:n,href:r,icon:o,disabled:i}=e;return!r&&!n&&!i?s.jsx(Q,{variant:"body-3",weight:"medium",color:"neutral",children:t}):s.jsx(Or,{onClick:n,href:r,icon:o,disabled:i,variant:"plain",color:"inherit",children:t})},Br=e=>{const{children:t,separator:n,color:r,defaultVisibleItems:o,ariaLabel:i,className:a,attributes:l}=e,d=o&&o>=2?o:null,[f,u]=c.useState(!1),h=S(a),m=c.Children.count(t);let g=0;const b=()=>{u(!0)};return s.jsx("nav",C(v({},l),{"aria-label":i||(l==null?void 0:l["aria-label"]),className:h,children:s.jsx(D,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,y)=>{if(!x)return null;const w=m-(d||0),p=g===0,j=g>w,$=!d||p||j||f,z=g===w;g+=1;let T=null;return $?T=x:z&&(T=s.jsx(Ce.Aligner,{children:s.jsx(Ce,{variant:"ghost",size:"small",icon:Js,onClick:b})})),T===null?null:s.jsxs(D,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||z)&&s.jsx(Q,{color:"neutral-faded",children:n||s.jsx(le,{svg:en,size:3})}),s.jsx(Q,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:T})]},y)})})}))};Br.Item=Qs;const ut={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},Zs=(e,t)=>{const{padding:n=4}=e,{selected:r,elevated:o,bleed:i,height:a,onClick:l,href:d,children:f,className:u,attributes:h,as:m="div"}=e,g=!!d||!!l,b=hn("medium"),x=or(i),y=Sn(n),w=kt(a),p=S(ut.root,b==null?void 0:b.classNames,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,g&&ut["--actionable"],o&&ut["--elevated"],r&&ut["--selected"],u),j=v(v(v(v({},h==null?void 0:h.style),x==null?void 0:x.variables),y==null?void 0:y.variables),w==null?void 0:w.variables);return g?s.jsx(Fe,{className:p,attributes:C(v({},h),{style:j}),href:d,as:m,onClick:l,ref:t,children:s.jsx("span",{className:ut.content,children:f})}):s.jsx(m,C(v({},h),{onClick:l,href:d,ref:t,className:p,style:j,children:s.jsx("span",{className:ut.content,children:f})}))},ei=c.forwardRef(Zs),Wr=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"15 18 9 12 15 6"})});var _t=(e=>(e.back="back",e.forward="forward",e))(_t||{});const We={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},Hr=e=>{const{type:t,scrollElRef:n,scrollPosition:r,onClick:o,isRTL:i,mounted:a}=e,[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=t===_t.forward,m=t===(i?_t.back:_t.forward),g=S(We.control,m?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return ce(()=>{const b=n.current;if(!b||!a)return;let x;const y=Math.abs(r),w=y<=0,p=y+b.clientWidth>=b.scrollWidth-1;return(h?p:w)?(d(!1),x=setTimeout(()=>u(!1),1500)):(u(!0),d(!0)),()=>{x&&clearTimeout(x)}},[r,n.current,a]),s.jsx("div",{className:g,"aria-hidden":"true",children:s.jsx(Ce,{onClick:o,icon:m?en:Wr,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},ti=e=>{const{children:t,gap:n=3,visibleItems:r,bleed:o,navigationDisplay:i,instanceRef:a,className:l,attributes:d}=e,[f,u]=c.useState(!1),[h,m]=c.useState(0),[g]=Ge(),b=c.useRef(null),x={};typeof o=="object"&&Object.entries(o).forEach(([E,P])=>{x[E]=typeof P=="number"&&P>0});const y=S(We.root,l,...W(We,"--bleed",typeof o=="number"?!0:x)),w=zo(E=>{const P=E.target;m(P.scrollLeft)},16),p=()=>{const P=getComputedStyle(b.current).gap.split(" ")[0];return Number(P.replace("px",""))},j=()=>{const E=b.current;E.scrollBy({left:E.clientWidth+p(),top:0,behavior:"smooth"})},$=()=>{const E=b.current;E.scrollBy({left:-E.clientWidth-p(),top:0,behavior:"smooth"})},z=g?j:$,T=g?$:j;return c.useImperativeHandle(a,()=>({navigateBack:z,navigateForward:T})),ce(()=>{u(!0)},[]),s.jsxs("section",C(v({},d),{className:y,style:v(v({},te("--rs-carousel-items",r)),te("--rs-carousel-bleed",o)),children:[i!=="hidden"&&s.jsxs(s.Fragment,{children:[s.jsx(Hr,{isRTL:g,type:_t.back,scrollElRef:b,scrollPosition:h,onClick:z,mounted:f}),s.jsx(Hr,{isRTL:g,type:_t.forward,scrollElRef:b,scrollPosition:h,onClick:T,mounted:f})]}),s.jsx(D,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:b,onScroll:w},children:c.Children.map(t,E=>s.jsx(D.Item,{className:We.item,as:"li",children:E}))})]}))},ni={root:"_root_1feer_1"},Fn=e=>{const{name:t,value:n,type:r,onChange:o,onFocus:i,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:u,attributes:h}=e,m=S(ni.root,u);return s.jsx("input",C(v({},h),{className:m,type:r,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:o,onFocus:i||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},Rr=c.createContext(null),ri=()=>c.useContext(Rr),Ur=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=d=>{const{event:f,value:u,checked:h}=d;if(!u)return;let m=[...o];h?m.push(u):m=m.filter(g=>g!==u),t&&t({name:n,value:m,event:f})};return s.jsx(Rr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},oi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||[]),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(Ur,C(v({},e),{value:r,defaultValue:void 0,onChange:i}))},si=e=>{const{value:t}=e;return t!==void 0?s.jsx(Ur,v({},e)):s.jsx(oi,v({},e))},Kr=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}),Je={root:"_root_187rd_1",decorator:"_decorator_187rd_11",field:"_field_187rd_15",icon:"_icon_187rd_44",input:"_input_187rd_54","--error":"_--error_187rd_60","--disabled":"_--disabled_187rd_91"},ii=e=>{var $;const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,u=ri(),h=Ye(),m=(h==null?void 0:h.hasError)||e.hasError||(u==null?void 0:u.hasError),g=(h==null?void 0:h.disabled)||e.disabled||(u==null?void 0:u.disabled),b=u?($=u.value)==null?void 0:$.includes(n):e.checked,x=u?void 0:e.defaultChecked,y=u?u.name:e.name,w=c.useRef(null),p=S(Je.root,l,m&&Je["--error"],g&&Je["--disabled"]),j=z=>{if(!y)return;const{checked:T}=z.target,E={name:y,value:n,checked:T,event:z};r&&r(E),u!=null&&u.onChange&&u.onChange(E)};return ce(()=>{w.current.indeterminate=a||!1},[a,b]),s.jsxs("label",C(v({},d),{className:p,children:[s.jsxs("span",{className:Je.field,children:[s.jsx(Fn,{className:Je.input,type:"checkbox",checked:b,defaultChecked:x,name:y,disabled:g,value:n,onChange:j,onFocus:o,onBlur:i,attributes:C(v({},f),{ref:w})}),s.jsx("div",{className:Je.decorator,children:s.jsx(le,{svg:Kr,className:Je.icon})})]}),t&&s.jsx("span",{className:Je.text,children:t})]}))},ai={root:"_root_1c40o_1"},li=e=>{const{children:t,padding:n=4,width:r,className:o,attributes:i}=e,a=S(ai.root,o);return s.jsx(D,{attributes:i,className:a,paddingInline:n,width:r,maxWidth:"100%",children:t})},Tt={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},ci=e=>{const{children:t,align:n,onClose:r,hideCloseButton:o,variant:i,closeAriaLabel:a,className:l,attributes:d}=e,f=S(Tt.root,l,i&&Tt[`--variant-${i}`],n&&Tt[`--align-${n}`],o&&Tt["--hide-close"]),u=i==="media"?"div":Ce.Aligner;return s.jsxs("div",C(v({},d),{className:f,children:[t,!o&&s.jsx(u,{className:Tt.close,children:s.jsx(Ce,C(v({size:"small"},i==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:r,attributes:{"aria-label":r?a:void 0},icon:Dr}))})]}))},di={root:"_root_r7flr_1"},ui=e=>{const{children:t}=e;return s.jsx("div",{className:di.root,children:t})},Yr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},_i=e=>{const{children:t,active:n,className:r,attributes:o}=e,i=S(Yr.root,n&&Yr["--active"],r);return s.jsx(Q,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:o,children:t})},on={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},mi=e=>{const{src:t,alt:n,width:r,height:o,onLoad:i,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:u,attributes:h,imageAttributes:m}=e,[g,b]=c.useState("loading"),x=hn(f),y=vn(r),w=kt(o),p=S(on.root,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,d&&on[`--display-mode-${d}`],u),j=S(on.image,p),$=S(on.fallback,p),z=v(v({},y==null?void 0:y.variables),w==null?void 0:w.variables),T=P=>{b("success"),i==null||i(P)},E=P=>{b("error"),a==null||a(P)};return c.useEffect(()=>{b("loading")},[t]),(g==="error"||!t)&&l?typeof l=="string"?s.jsx("img",C(v({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:z})):s.jsx("div",C(v({},h),{className:$,style:z,children:l})):s.jsx("img",C(v(v({},h),m),{src:t,alt:n,role:n?void 0:"presentation",onLoad:T,onError:E,className:j,style:z}))},Ln=e=>{const[t,n]=c.useState(e||!1),r=c.useCallback(()=>{n(!0)},[]),o=c.useCallback(()=>{n(!1)},[]),i=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:r,deactivate:o,toggle:i}},fi=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),Gr=()=>{const[e,t]=c.useState(!1),n=c.useRef(),r=c.useRef(!1),o=c.useCallback(()=>{const{body:a}=document,l=a.getBoundingClientRect();if(r.current=l.left+l.right<window.innerWidth,n.current=a.style.overflow,a.style.overflow="hidden",r.current){const d=fi();document.body.style.paddingRight=`${d}px`}t(!0)},[t,r,n]),i=c.useCallback(()=>{document.body.style.overflow=n.current||"",r.current&&(document.body.style.paddingRight=""),t(!1)},[t,r,n]);return{scrollLocked:e,lockScroll:o,unlockScroll:i}},mt={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Xr=e=>{const{active:t,children:n,transparent:r,onClose:o,className:i,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),u=c.useRef(!1),h=c.useRef(null),{lockScroll:m,unlockScroll:g}=Gr(),{active:b,activate:x,deactivate:y}=Ln(t||!1),{active:w,activate:p,deactivate:j}=Ln(t||!1),$=yr(t,f),z=S(mt.root,w&&mt["--visible"],r&&mt["--transparent"],i),T=V=>{if(!f.current)return;const L=f.current.firstChild;if(L)return L.contains(V)},E=()=>{f.current&&(h.current=Rt(f.current))},P=()=>{h.current&&(h.current(),h.current=null)},U=c.useCallback(()=>{!w||!$()||o&&o()},[w,$]),M=V=>{u.current=!T(V.target)},A=V=>{const L=!T(V.target);u.current&&L&&!r&&U()},q=V=>{V.propertyName!=="opacity"||V.target!==V.currentTarget||w||(r||g(),y())};return rt({Escape:U},[U]),c.useEffect(()=>{t&&!b&&x(),!t&&b&&j()},[t,x,j,b]),c.useEffect(()=>{b&&(r||m(),$t(()=>p()))},[b,p,m,r]),c.useEffect(()=>{if(b)return E(),()=>P()},[b]),c.useEffect(()=>()=>{r||g()},[g,r]),ce(()=>{d(!0)},[]),!b||!l?null:s.jsx(Zt,{children:s.jsx(Zt.Scope,{children:V=>s.jsx("div",C(v({},a),{ref:V,role:"button",tabIndex:-1,className:z,onMouseDown:M,onMouseUp:A,onTransitionEnd:q,children:s.jsx("div",{className:mt.wrapper,children:s.jsx("div",{className:mt.inner,children:s.jsx("div",{className:mt.content,ref:f,children:typeof n=="function"?n({active:w}):n})})})}))})})},Dn={root:"_root_1cqfg_1","--position-center":"_--position-center_1cqfg_1","--position-bottom":"_--position-bottom_1cqfg_1","--position-start":"_--position-start_1cqfg_1","--position-end":"_--position-end_1cqfg_1","--active":"_--active_1cqfg_88","--position-center--m":"_--position-center--m_1cqfg_1","--position-bottom--m":"_--position-bottom--m_1cqfg_1","--position-start--m":"_--position-start--m_1cqfg_1","--position-end--m":"_--position-end--m_1cqfg_1","--position-center--l":"_--position-center--l_1cqfg_1","--position-bottom--l":"_--position-bottom--l_1cqfg_1","--position-start--l":"_--position-start--l_1cqfg_1","--position-end--l":"_--position-end--l_1cqfg_1","--position-center--xl":"_--position-center--xl_1cqfg_1","--position-bottom--xl":"_--position-bottom--xl_1cqfg_1","--position-start--xl":"_--position-start--xl_1cqfg_1","--position-end--xl":"_--position-end--xl_1cqfg_1"},Jr=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Qr=()=>c.useContext(Jr),hi=e=>{const{children:t}=e,{id:n,setTitleMounted:r}=Qr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(Q,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},vi=e=>{const{children:t}=e,{id:n,setSubtitleMounted:r}=Qr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(Q,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},Vn=e=>{const{children:t,onClose:n,active:r,size:o,padding:i=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,u=ze(),[h,m]=c.useState(!1),[g,b]=c.useState(!1),x=Sn(i),y=c.useMemo(()=>({titleMounted:h,setTitleMounted:m,subtitleMounted:g,setSubtitleMounted:b,id:u}),[u,g,h]);return s.jsx(Xr,{onClose:n,active:r,transparent:l,children:({active:w})=>{const p=S(Dn.root,d,x==null?void 0:x.classNames,w&&Dn["--active"],W(Dn,"--position",a));return s.jsx(Jr.Provider,{value:y,children:s.jsx("div",C(v({},f),{style:v(v({},x==null?void 0:x.variables),te("--rs-modal-size",o)),"aria-labelledby":h?`${u}-title`:void 0,"aria-describedby":g?`${u}-subtitle`:void 0,className:p,"aria-modal":"true",role:"dialog",children:t}))})}})};Vn.Title=hi,Vn.Subtitle=vi;const It={root:"_root_1ux6v_1",value:"_value_1ux6v_9","--duration":"_--duration_1ux6v_23","--size-small":"_--size-small_1ux6v_27","--size-medium":"_--size-medium_1ux6v_31","--color-primary":"_--color-primary_1ux6v_35","--color-critical":"_--color-critical_1ux6v_39","--color-positive":"_--color-positive_1ux6v_43","--color-white":"_--color-white_1ux6v_47"},gi=e=>{const{value:t=0,min:n=0,max:r=100,color:o="primary",size:i="medium",duration:a,className:l,attributes:d}=e,f=S(It.root,l,o&&It[`--color-${o}`],i&&It[`--size-${i}`],!!a&&It["--duration"]),u=r-n,h=t-n,b=`${Math.max(n,Math.min(r,h))/u*100-100}%`;return s.jsx("div",C(v({role:"progressbar"},d),{className:f,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":t,children:s.jsx("div",{className:It.value,style:{"--rs-progress-value":b,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Zr=c.createContext(null),bi=()=>c.useContext(Zr),eo=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return s.jsx(Zr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},pi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||null),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(eo,C(v({},e),{value:r,defaultValue:void 0,onChange:i}))},xi=e=>{const{value:t}=e;return t!==void 0?s.jsx(eo,v({},e)):s.jsx(pi,v({},e))},ot={root:"_root_1o7zq_1",input:"_input_1o7zq_10",decorator:"_decorator_1o7zq_10",field:"_field_1o7zq_14","--error":"_--error_1o7zq_48",text:"_text_1o7zq_60","--disabled":"_--disabled_1o7zq_71"},wi=e=>{const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),u=bi(),h=(f==null?void 0:f.hasError)||e.hasError||(u==null?void 0:u.hasError),m=(f==null?void 0:f.disabled)||e.disabled||(u==null?void 0:u.disabled),g=u?u.value===n:e.checked,b=u?void 0:e.defaultChecked,x=u?u.name:e.name,y=S(ot.root,a,h&&ot["--error"],m&&ot["--disabled"]),w=p=>{if(!x)return;const{checked:j}=p.target,$={name:x,value:n,checked:j,event:p};r&&r($),u!=null&&u.onChange&&u.onChange($)};return s.jsxs("label",C(v({},l),{className:y,children:[s.jsxs("span",{className:ot.field,children:[s.jsx(Fn,{className:ot.input,type:"radio",checked:g,defaultChecked:b,name:x,disabled:m,value:n,onChange:w,onFocus:o,onBlur:i,attributes:d}),s.jsx("div",{className:ot.decorator})]}),t&&s.jsx("span",{className:ot.text,children:t})]}))},to={short:4e3,long:8e3},Mt=["top-start","top","top-end","bottom-start","bottom","bottom-end"],no={queues:Mt.reduce((e,t)=>v({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},sn=c.createContext(no),yi=()=>{const{add:e,hide:t}=c.useContext(sn);return c.useMemo(()=>({show:e,hide:t}),[e,t])},De={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},ji=e=>{const{size:t="small",text:n,children:r,color:o="inverted",icon:i,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:u}=e;let h=o==="inverted"||o==="neutral"?"elevation-overlay":o;o==="neutral"&&(h=f?"neutral":"elevation-overlay");const m=o==="neutral"?"neutral-faded":"transparent",g=t==="small"?"span":"div",b=t==="large";let x=[];l&&(x=Array.isArray(l)?l:[l]);const y=(a||n)&&s.jsxs(s.Fragment,{children:[a&&s.jsxs(Q,{variant:"body-3",weight:"bold",as:g,children:[a," "]}),s.jsx(Q,{variant:"body-3",as:g,children:n})]}),w=s.jsxs(D,{backgroundColor:h,borderColor:m,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:b?"start":"center",className:De.toast,attributes:u,children:[i&&s.jsx(le,{size:5,svg:i,className:De.icon}),d&&!i&&s.jsx(D.Item,{children:d}),s.jsx(D.Item,{grow:!0,children:s.jsxs(D,{direction:b?"column":"row",align:b?"start":"center",gap:3,children:[s.jsx(D.Item,{grow:!0,children:y&&r||t!=="small"?s.jsxs(D,{gap:.5,children:[y,r&&s.jsx(D,{gap:3,children:r})]}):y||r}),x.length&&s.jsx(D,{direction:"row",align:"center",gap:2,children:x.map((p,j)=>{const $=t==="large"?j===0:j===x.length-1,T={variant:$?"solid":"ghost",size:"small",color:$?o==="neutral"||o==="inverted"?"neutral":"white":"inherit",elevated:o!=="neutral"};return p.type===Ce?c.createElement(Ce,C(v(v({},T),p.props),{key:j})):p})})]})})]});return o==="inverted"?s.jsx(lt,{colorMode:"inverted",children:w}):w},Ci=e=>{const{toastProps:t,id:n,status:r,inspected:o,index:i}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(sn),[u,h]=c.useState(),m=c.useRef(),g=c.useRef(!1),b=c.useRef(null),x=c.useRef(null),y=r==="entered",w=S(De.container,y&&De["container--visible"],i===0&&De[`container--index-${i}`],!o&&(i===1||i===2)&&De[`container--index-${i}`],!o&&i>=3&&De["container--index-overflow"]),p=c.useCallback(()=>{m.current&&clearTimeout(m.current)},[]),j=c.useCallback(()=>{p();const z=typeof a=="string"?to[a]:a;a!==0&&(m.current=setTimeout(()=>{d(n)},z!=null?z:to.short))},[d,n,a,p]),$=z=>{z.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(o?p():j())},[o,j,p,y]),c.useEffect(()=>{x.current&&h(x.current.clientHeight),l(n),j()},[l,n,j]),c.useEffect(()=>{x.current&&(y?b.current=Rt(x.current,{includeTrigger:!0,mode:"content-menu"}):b.current&&br()&&(b.current(),b.current=null))},[y]),c.useEffect(()=>{if(!y||i>0)return;const z=()=>{g.current=!0,$t(()=>{g.current=!1}),x.current&&h(x.current.clientHeight)};return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[y,i]),s.jsx("li",{className:w,style:{height:r==="entered"?`calc(${u}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:g.current?"0s":void 0},onTransitionEnd:$,onFocus:p,onBlur:j,children:s.jsx("span",{className:De.wrapper,children:s.jsx(ji,C(v({},t),{collapsed:i>0&&!o,attributes:{ref:x}}))})})},ki=e=>{const{position:t}=e,{queues:n,options:r}=c.useContext(sn),[o,i]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:u}=(r==null?void 0:r[t])||{},h=S(De.region,De[`region--position-${t}`]),m=d.filter(p=>p.status==="entered").length;let g=0;const b=()=>{a.current=!0},x=p=>{let j=p.target,$=!1;for(;j&&j!==l.current&&!$;)$=j.matches(pr),j=j.parentElement;$||i(z=>!z),a.current=!1},y=()=>{a.current||i(!0)},w=()=>{a.current||i(!1)};return c.useEffect(()=>{d.length===0&&i(!1)},[d.length]),d.length?s.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:l,onTouchStart:b,onClick:x,onMouseEnter:y,onMouseLeave:w,style:{width:f},children:d.map((p,j)=>{const $=m-j+g-1;return p.status!=="entered"&&(g+=1),s.jsx(Ci,C(v({},p),{index:$,inspected:o||!!u}),p.id)})}):null};let Ni=0;const $i=()=>`__rs-toast-${Ni++}`,zi=(e,t)=>{let n;switch(t.type){case"add":const r=t.payload.toastProps||{},{position:o="bottom-end"}=r,i=Ae(r,["position"]);return C(v({},e),{[o]:[...e[o],{id:t.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:a}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].map(u=>u.status!=="entering"?u:u.id===a?C(v({},u),{status:"entered"}):u)}),n;case"hide":const{id:l}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].map(u=>u.id===l?C(v({},u),{status:"exiting"}):u)}),n;case"remove":const{id:d}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].filter(u=>u.id!==d)}),n}},Ei=e=>{const{children:t,options:n}=e,[r,o]=c.useReducer(zi,no.queues),i=c.useCallback(u=>{const h=$i();return o({type:"add",payload:{toastProps:u,id:h}}),h},[]),a=c.useCallback(u=>{o({type:"show",payload:{id:u}})},[]),l=c.useCallback(u=>{o({type:"hide",payload:{id:u}})},[]),d=c.useCallback(u=>{o({type:"remove",payload:{id:u}})},[]),f=c.useMemo(()=>({queues:r,add:i,show:a,hide:l,remove:d,inspecting:!1,options:n}),[r,a,l,i,d,n]);return s.jsxs(sn.Provider,{value:f,children:[t,Mt.map(u=>s.jsx(ki,{position:u},u))]})},Ti=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(jn,"true")},t=()=>{document.documentElement.removeAttribute(jn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},ac="",Ii={root:"_root_18j53_1"},Mi=e=>{const{children:t,defaultRTL:n,defaultViewport:r="s",toastOptions:o}=e,i=ps(n);return Ti(),s.jsx(zn.Provider,{value:{rtl:i,defaultViewport:r},children:s.jsx(gs,{children:s.jsx(Ei,{options:o,children:t})})})},Si=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:r,className:o}=e,i=S(Ii.root,o);return s.jsx(Ms,{defaultMode:r,children:s.jsx(lt,{name:t,defaultName:n,className:i,children:s.jsx(Mi,C(v({},e),{children:e.children}))})})},St={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},Pi=e=>{const{children:t,backgroundSlot:n,position:r="cover",attributes:o,className:i,scrimClassName:a}=e,l=S(St.root,!!n&&St["--with-background"],r&&St[`--position-${r}`],i),d=S(St.scrim,a);return s.jsxs("div",C(v({},o),{className:l,children:[n,s.jsx("div",{className:d,children:s.jsx("div",{className:St.content,children:t})})]}))},Ai=()=>s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ve={root:"_root_1jhw5_1",input:"_input_1jhw5_18",slot:"_slot_1jhw5_45",arrow:"_arrow_1jhw5_60","--size-medium":"_--size-medium_1jhw5_1","--size-large":"_--size-large_1jhw5_1","--size-xlarge":"_--size-xlarge_1jhw5_1","--variant-faded":"_--variant-faded_1jhw5_115","--variant-headless":"_--variant-headless_1jhw5_124","--status-error":"_--status-error_1jhw5_129","--placeholder":"_--placeholder_1jhw5_144","--disabled":"_--disabled_1jhw5_148","--size-medium--m":"_--size-medium--m_1jhw5_1","--size-large--m":"_--size-large--m_1jhw5_1","--size-xlarge--m":"_--size-xlarge--m_1jhw5_1","--size-medium--l":"_--size-medium--l_1jhw5_1","--size-large--l":"_--size-large--l_1jhw5_1","--size-xlarge--l":"_--size-xlarge--l_1jhw5_1","--size-medium--xl":"_--size-medium--xl_1jhw5_1","--size-large--xl":"_--size-large--xl_1jhw5_1","--size-xlarge--xl":"_--size-xlarge--xl_1jhw5_1"},Fi=e=>{var q,V;const{onChange:t,onClick:n,onFocus:r,onBlur:o,name:i,value:a,defaultValue:l,placeholder:d,options:f,children:u,icon:h,startSlot:m,size:g="medium",variant:b="outline",className:x,attributes:y}=e,[w,p]=c.useState(a===void 0?!l:!a),j=Ye(),$=ze(e.id),z=((q=j==null?void 0:j.attributes)==null?void 0:q.id)||((V=e.inputAttributes)==null?void 0:V.id)||$,T=(j==null?void 0:j.disabled)||e.disabled,E=(j==null?void 0:j.hasError)||e.hasError,P=v(v({},e.inputAttributes),j==null?void 0:j.attributes),U=S(Ve.root,x,g&&W(Ve,"--size",g),E&&Ve["--status-error"],T&&Ve["--disabled"],w&&f&&Ve["--placeholder"],b&&Ve[`--variant-${b}`]),M=L=>{const Z=L.target.value;a===void 0&&p(!Z),t&&t({name:i,value:Z,event:L})};c.useEffect(()=>{a!==void 0&&p(!a)},[a]);const A=(m||h)&&s.jsx("div",{className:Ve.slot,children:h?s.jsx(le,{size:$e(g,L=>L==="large"?5:L==="xlarge"?6:4),svg:h}):m});return s.jsxs("div",C(v({},y),{className:U,children:[f?s.jsxs(s.Fragment,{children:[A,s.jsxs("select",C(v({},P),{className:Ve.input,disabled:T,name:i,value:a,defaultValue:l,onChange:M,onFocus:r||(P==null?void 0:P.onFocus),onBlur:o||(P==null?void 0:P.onBlur),id:z,children:[d&&s.jsx("option",{value:"",children:d}),f.map(L=>s.jsx("option",{value:L.value,disabled:L.disabled,children:L.label},L.value))]}))]}):s.jsxs(s.Fragment,{children:[s.jsxs(Fe,{className:Ve.input,disabled:T,onClick:n,attributes:C(v({},P),{onFocus:r||(P==null?void 0:P.onFocus),onBlur:o||(P==null?void 0:P.onBlur)}),children:[A,u||(d?s.jsx(Q,{color:"neutral-faded",children:d}):null)]}),s.jsx("input",{type:"hidden",value:a,name:i})]}),s.jsx("div",{className:Ve.arrow,children:s.jsx(le,{svg:Ai,color:T?"disabled":"neutral-faded",size:$e(g,L=>L==="large"||L==="xlarge"?5:4)})})]}))},Li={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Di=e=>{const{borderRadius:t="small",width:n,height:r,className:o,attributes:i}=e,a=S(Li.root,o);return s.jsx(D,{backgroundColor:"disabled",width:n,height:r,borderRadius:t,className:a,attributes:i})},Qe={root:"_root_k9a0x_1",bar:"_bar_k9a0x_10",input:"_input_k9a0x_19",selection:"_selection_k9a0x_28",tooltip:"_tooltip_k9a0x_34",thumb:"_thumb_k9a0x_50","thumb--active":"_thumb--active_k9a0x_1","--disabled":"_--disabled_k9a0x_104"},Vi=(e,t)=>{const{name:n,value:r,disabled:o,active:i,position:a,max:l,min:d,onChange:f,onDragStart:u,renderValue:h}=e,m=c.useId(),g=S(Qe.thumb,i&&Qe["thumb--active"]),b=h?h({value:r}):r,x=y=>{f(+y.target.value)};return s.jsxs(s.Fragment,{children:[s.jsx("input",{className:Qe.input,type:"range",name:n,value:r,onChange:x,disabled:o,max:l,min:d,"aria-labelledby":m}),s.jsx("div",{ref:t,className:g,onMouseDown:u,onTouchStart:u,style:{insetInlineStart:`${a}%`},id:m,"aria-hidden":"true",children:s.jsx(lt,{className:Qe.tooltip,colorMode:"inverted",children:s.jsx(Q,{variant:"caption-1",weight:"medium",children:b})})})]})},ro=c.forwardRef(Vi),oo=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,qn=(e,t)=>Math.round(e/t)*t,On=e=>{var ke;const{name:t,range:n,max:r,min:o,step:i=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:u}=e,h=n&&e.minValue!==void 0?qn(e.minValue,i):void 0,m=qn(n?e.maxValue:e.value,i),g=c.useRef(null),b=c.useRef(null),x=c.useRef(null),[y,w]=c.useState(null),[p]=Ge(),j=Ye(),$=ze(),z=((ke=j==null?void 0:j.attributes)==null?void 0:ke.id)||$,T=`${z}-min`,E=`${z}-max`,P=(j==null?void 0:j.disabled)||e.disabled,U=S(Qe.root,P&&Qe["--disabled"],f),M=c.useCallback(re=>{if(!g.current)return;const H=g.current.clientWidth;let G=(re-g.current.getBoundingClientRect().left)/H;p&&(G=1-G);let ie=(r-o)*G+o;return ie=Math.max(o,Math.min(r,ie)),qn(ie,i)},[r,o,p,i]),A=re=>(re-o)/(r-o)*100,q=c.useCallback((re,H)=>{if(!n)return;const Y=H!=null&&H.commit?l:a;Y==null||Y({minValue:re,maxValue:m,name:t})},[m,t,n]),V=c.useCallback((re,H)=>{if(n){const G=H!=null&&H.commit?l:a;G==null||G({minValue:h,maxValue:re,name:t});return}const Y=H!=null&&H.commit?l:a;Y==null||Y({value:re,name:t})},[h,t,n]),L=({nativeEvent:re})=>{if(P)return;let H,Y;const G=oo(re),ie=M(G);[{ref:b,id:T},{ref:x,id:E}].forEach(X=>{if(!X.ref.current)return;const pe=X.ref.current,ve=Math.abs(pe.getBoundingClientRect().left-G);(H===void 0||ve<=H)&&(H=ve,Y=X.id)}),!(!Y||ie===void 0)&&(Y===T&&q(ie),Y===E&&V(ie),w(Y))},Z=()=>{P||w(T)},fe=()=>{P||w(E)},he=c.useCallback(()=>{y===T&&h!==void 0&&q(h,{commit:!0}),y===E&&V(m,{commit:!0}),w(null)},[h,m,q,V,y,T,E]),se=c.useCallback(re=>{if(!y)return;const H=oo(re),Y=M(H);if(Y===void 0)return;let G=y;y===T&&Y>m&&(G=E),y===E&&h&&Y<h&&(G=T),G===T&&q(Y),G===E&&V(Y),y!==G&&w(G)},[y,h,m,M,V,q,E,T]);c.useEffect(()=>(window.addEventListener("mouseup",he),window.addEventListener("touchend",he),window.addEventListener("mousemove",se),window.addEventListener("touchmove",se),()=>{window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),window.removeEventListener("mousemove",se),window.removeEventListener("touchmove",se)}),[he,se]);const ee=h&&A(h),He=A(m);return s.jsxs("div",C(v({},u),{className:U,onMouseDown:L,onTouchStart:L,children:[s.jsx("div",{className:Qe.bar,ref:g,children:s.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${ee||0}%`,width:`${He-(ee||0)}%`}})}),h!==void 0&&ee!==void 0&&s.jsx(ro,{id:T,active:T===y,name:t,disabled:P,onChange:q,value:h,onDragStart:Z,position:ee,max:r,min:o,ref:b,renderValue:d}),s.jsx(ro,{id:E,active:E===y,name:t,disabled:P,onChange:V,value:m,onDragStart:fe,position:He,max:r,min:o,ref:x,renderValue:d})]}))},qi=e=>{const{min:t,max:n,onChange:r,range:o}=e,i="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,a="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(o?n:t),[l,d]=c.useState(i),[f,u]=c.useState(a),h=g=>{o||(u(g.value),r==null||r(g))},m=g=>{o&&(d(g.minValue),u(g.maxValue),r==null||r(g))};return o?s.jsx(On,C(v({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:m})):s.jsx(On,C(v({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Oi=e=>{const o=e,{min:t=0,max:n=100}=o,r=Ae(o,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?s.jsx(On,C(v({},r),{min:t,max:n})):s.jsx(qi,C(v({},r),{min:t,max:n}))},Bi={verticalDivider:"_verticalDivider_oa23g_1"},Wi=e=>{const{title:t,subtitle:n,children:r,direction:o,className:i,attributes:a,labelDisplay:l,step:d,completed:f,active:u,last:h}=e,m=l&&$e(l,b=>b==="hidden"),g=s.jsx(D,{gap:3,grow:!0,children:s.jsxs(D.Item,{children:[s.jsx(Q,{variant:"body-3",weight:"medium",children:t}),s.jsx(Q,{variant:"caption-1",color:"neutral-faded",children:n})]})});return s.jsxs(D,{children:[s.jsxs(D,{attributes:a,className:i,direction:"row",gap:2,align:"center",position:"static",children:[s.jsxs(D.Item,{children:[s.jsx(D,{align:"center",justify:"center",backgroundColor:u||f?"primary":"neutral-faded",borderColor:u||f?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:s.jsx(Q,{variant:"body-3",weight:u?"bold":"medium",children:f?s.jsx(le,{svg:Kr,size:4}):d})}),o==="column"&&!h&&s.jsx(Ft,{vertical:!0,className:Bi.verticalDivider})]}),l?s.jsx(Dt,{hide:m,children:g}):g]}),o==="column"&&r&&s.jsx(lr,{active:u,children:s.jsx(D,{paddingStart:10,paddingTop:2,children:r})})]})},Hi=e=>null,so=e=>{const{children:t,direction:n="row",activeId:r,labelDisplay:o,className:i,attributes:a}=e,l=n==="column",d=c.Children.count(t);return s.jsx(D,{attributes:a,direction:n,align:l?"stretch":"center",className:i,gap:3,wrap:!1,children:c.Children.map(t,(f,u)=>{const h=f.props.id||`${u}`;return s.jsxs(c.Fragment,{children:[s.jsx(Wi,C(v({},f.props),{id:f.props.id||`${u}`,active:(r==null?void 0:r.toString())===h,step:u+1,last:u===d-1,direction:n,labelDisplay:o})),!l&&u<d-1&&s.jsx(D,{grow:!0,children:s.jsx(Ft,{})})]},u)})})};so.Item=Hi;const ft={root:"_root_1zzd0_1",input:"_input_1zzd0_10",area:"_area_1zzd0_22",thumb:"_thumb_1zzd0_26","root--size-small":"_root--size-small_1zzd0_82","root--reversed":"_root--reversed_1zzd0_102"},Ri=e=>{var p;const{children:t,name:n,checked:r,size:o,reversed:i,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:u,attributes:h}=e,m=S(ft.root,o&&ft[`root--size-${o}`],i&&ft["root--reversed"],u),g=Ye(),b=ze((g==null?void 0:g.attributes.id)||e.id||((p=e.inputAttributes)==null?void 0:p.id)),x=v(v({},e.inputAttributes),g==null?void 0:g.attributes),y=(g==null?void 0:g.disabled)||e.disabled,w=j=>{l&&l({name:n,event:j,checked:j.target.checked})};return s.jsxs("label",C(v({},h),{className:m,children:[s.jsx("input",C(v({type:"checkbox"},x),{className:ft.input,name:n,checked:r,defaultChecked:a,disabled:y,onChange:w,onFocus:d||(x==null?void 0:x.onFocus),onBlur:f||(x==null?void 0:x.onBlur),id:b})),s.jsx("span",{className:ft.area,"aria-hidden":"true",children:s.jsx("span",{className:ft.thumb})}),t&&s.jsx(Q,{variant:"body-3",weight:"medium",children:t})]}))},Ui={literal:"_literal_tfgjf_1",unit:"_unit_tfgjf_5","literal--m":"_literal--m_tfgjf_1","unit--m":"_unit--m_tfgjf_1","literal--l":"_literal--l_tfgjf_1","unit--l":"_unit--l_tfgjf_1","literal--xl":"_literal--xl_tfgjf_1","unit--xl":"_unit--xl_tfgjf_1"},Ki=e=>{if(!e)return null;const t=te("--rs-min-w",e);return{classNames:W(Ui,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ze={root:"_root_1we4q_1",table:"_table_1we4q_14",row:"_row_1we4q_21",cell:"_cell_1we4q_25","cell--align-start":"_cell--align-start_1we4q_1","cell--align-center":"_cell--align-center_1we4q_1","cell--align-end":"_cell--align-end_1we4q_1","--row-highlighted":"_--row-highlighted_1we4q_49","--border-outer":"_--border-outer_1we4q_53","--border-column":"_--border-column_1we4q_57"},io=e=>{const{minWidth:t,rowSpan:n,colSpan:r,align:o,tagName:i,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:u}=e,h=e.width==="auto"?"0px":e.width,m=vn(h),g=Ki(t||h),b=S(Ze.cell,m==null?void 0:m.classNames,g==null?void 0:g.classNames,o&&Ze[`cell--align-${o}`]),x=v(v(v(v({},m==null?void 0:m.variables),g==null?void 0:g.variables),te("--rs-table-p-vertical",d!=null?d:a)),te("--rs-table-p-horizontal",l!=null?l:a));return s.jsx(i,C(v({},u),{className:b,rowSpan:n,colSpan:r,style:x,children:f}))},Yi=e=>s.jsx(io,C(v({},e),{tagName:"td"})),Gi=e=>s.jsx(io,C(v({},e),{tagName:"th"})),Xi=e=>{const{highlighted:t,children:n,attributes:r}=e,o=S(Ze.row,t&&Ze["--row-highlighted"]);return s.jsx("tr",C(v({},r),{className:o,children:n}))},Bn=e=>s.jsx("tbody",{children:e.children}),ao=e=>s.jsx("thead",{children:e.children}),ht=e=>{const{children:t,border:n,columnBorder:r,className:o,attributes:i}=e,a=S(Ze.root,o,n&&Ze["--border-outer"],r&&Ze["--border-column"]),[l]=c.Children.toArray(t);return s.jsx("div",C(v({},i),{className:a,children:s.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===Bn||l.type===ao)?t:s.jsx(Bn,{children:t})})}))};ht.Cell=Yi,ht.Heading=Gi,ht.Row=Xi,ht.Body=Bn,ht.Head=ao;const lo=c.createContext({}),Ji=lo.Provider,Wn=e=>{const r=c.useContext(lo),{id:t}=r,n=Ae(r,["id"]);return C(v({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},co=e=>{const{children:t,value:n,onChange:r,onSilentChange:o,itemWidth:i,variant:a,name:l,direction:d="row",size:f="medium"}=e,u=ze(),h=c.useRef(null),m=c.useRef(h.current),g=c.useRef(null),[b,x]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=w=>{w!==void 0&&o&&o({value:w,name:l})};return s.jsx(Ji,{value:{value:n,name:l,size:f,direction:d,itemWidth:i,variant:a,onChange:r,id:u,setDefaultValue:y,elActiveRef:h,elPrevActiveRef:m,elScrollableRef:g,selection:b,setSelection:x},children:t})},Qi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t),i=({value:l})=>{o(l),n&&n({value:l})},a=({value:l})=>{o(l)};return s.jsx(co,C(v({},e),{onChange:i,onSilentChange:a,value:r,defaultValue:void 0}))},ne={root:"_root_mz4y6_1",list:"_list_mz4y6_12",inner:"_inner_mz4y6_16",listItem:"_listItem_mz4y6_23",button:"_button_mz4y6_30",buttonContent:"_buttonContent_mz4y6_46",icon:"_icon_mz4y6_59",radio:"_radio_mz4y6_64","--item-active":"_--item-active_mz4y6_72",selector:"_selector_mz4y6_77","--selector-hidden":"_--selector-hidden_mz4y6_95","--selector-animated":"_--selector-animated_mz4y6_99",next:"_next_mz4y6_104",prev:"_prev_mz4y6_105",panel:"_panel_mz4y6_125","--panel-hidden":"_--panel-hidden_mz4y6_133","--direction-row":"_--direction-row_mz4y6_137","--direction-column":"_--direction-column_mz4y6_205",item:"_item_mz4y6_223","--variant-borderless":"_--variant-borderless_mz4y6_258","--variant-pills":"_--variant-pills_mz4y6_259","--variant-pills-elevated":"_--variant-pills-elevated_mz4y6_260","--size-medium":"_--size-medium_mz4y6_331","--size-large":"_--size-large_mz4y6_336","--item-width-equal":"_--item-width-equal_mz4y6_341","--cut-off-start":"_--cut-off-start_mz4y6_360","--cut-off-end":"_--cut-off-end_mz4y6_361","--cut-off-both":"_--cut-off-both_mz4y6_382"},Zi=(e,t)=>{const{value:n,children:r,icon:o,href:i,attributes:a}=e,{onChange:l,panelId:d,name:f,size:u,value:h,selection:m,elActiveRef:g,elPrevActiveRef:b,elScrollableRef:x}=Wn(n),y=c.useRef(null),w=h===n,p=w&&m.status==="idle",j=S(ne.item,p&&ne["--item-active"]),$=!!f,z={role:"tab",tabIndex:w?0:-1,"aria-selected":w},T=c.useCallback(()=>{if(!("current"in y))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");b.current=g.current,g.current=y.current},[g,b]),E=()=>{var L,Z,fe;if(i&&!l)return;const P=x.current,U=(L=y.current)==null?void 0:L.parentElement,M=(Z=g.current)==null?void 0:Z.parentElement;if(T(),l&&l({value:n,name:f}),!P||!U||!M||P.scrollWidth===P.clientWidth)return;const A=U.offsetLeft<M.offsetLeft,q=(U.offsetLeft-P.scrollLeft)/P.clientWidth;(A?q<.3:q>.5)&&((fe=y.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{w&&T()},[w,T]),s.jsx("div",C(v({},a),{className:j,ref:y,role:"presentation",children:s.jsxs(Fe,{ref:t,href:i,insetFocus:!0,onClick:f?void 0:E,className:ne.button,as:f?"label":void 0,attributes:C(v({},!$&&z),{"aria-controls":d}),children:[f&&s.jsx(Fn,{type:"radio",name:f,value:n,checked:p,onChange:E,className:ne.radio}),s.jsxs("span",{className:ne.buttonContent,children:[o&&s.jsx(le,{svg:o,className:ne.icon,size:4}),r&&s.jsx(Q,{variant:u==="large"?"body-2":"body-3",children:r})]})]})}))},uo=c.forwardRef(Zi),_o=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:_o(e.parentElement,t),ea=e=>{const{children:t,className:n,attributes:r}=e,{value:o,setDefaultValue:i,itemWidth:a,variant:l,name:d,direction:f,size:u,selection:h,setSelection:m,elActiveRef:g,elPrevActiveRef:b,elScrollableRef:x}=Wn(),[y]=Ge(),[w,p]=c.useState(null),j=S(ne.root,u&&ne[`--size-${u}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],w&&ne[`--cut-off-${w}`],n),$=S(ne.selector,h.status==="idle"&&ne["--selector-hidden"],h.status==="animated"&&ne["--selector-animated"]),z=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},T=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},E=()=>{m(M=>C(v({},M),{status:"idle"}))},P=c.useCallback(M=>{if(!x.current)return null;const A=_o(M,x.current);return A?{scaleX:A.clientWidth,scaleY:A.clientHeight,top:A.offsetTop,left:A.offsetLeft}:null},[x]),{ref:U}=rt({"ArrowLeft, ArrowUp":M=>{d||(M.preventDefault(),as(x.current))},"ArrowRight, ArrowDown":M=>{d||(M.preventDefault(),is(x.current))},Home:M=>{d||(M.preventDefault(),ls(x.current))},End:M=>{d||(M.preventDefault(),cs(x.current))}});return ce(()=>{if(o)return;const M=c.Children.toArray(t)[0];!M||M.type!==uo||i(M.props.value)},[o]),ce(()=>{if(!b.current||b.current===g.current)return;const M=P(b.current);M&&m(C(v({},M),{status:"prepared"}))},[o,P]),ce(()=>{if(h.status!=="prepared"||!g.current)return;const M=P(g.current);M&&m(C(v({},M),{status:"animated"}))},[h]),ce(()=>{const M=x.current;if(!M||f==="column")return;const A=()=>{M.clientWidth<M.scrollWidth||p(null);const L=M.scrollLeft*(y?-1:1),Z=L>1,fe=L+M.clientWidth<M.scrollWidth-1;if(fe&&Z)return p("both");if(Z)return p("start");if(fe)return p("end")},q=Eo(A,100);return requestAnimationFrame(()=>{A()}),window.addEventListener("resize",q),M.addEventListener("scroll",q),()=>{window.removeEventListener("resize",q),M.removeEventListener("scroll",q)}},[y]),s.jsxs("div",C(v({},r),{className:j,children:[s.jsx("div",{className:ne.inner,ref:x,children:s.jsxs("div",{className:ne.list,role:"tablist",ref:U,children:[c.Children.map(t,(M,A)=>M?s.jsx("div",{className:ne.listItem,children:M},M.props.value||M.key||A):null),s.jsx("div",{onTransitionEnd:E,className:$,style:{"--rs-tab-selection-x":h.left,"--rs-tab-selection-y":h.top,"--rs-tab-selection-scale-x":h.scaleX,"--rs-tab-selection-scale-y":h.scaleY}})]})}),(w==="start"||w==="both")&&s.jsx("span",{className:ne.prev,children:s.jsx(Ce,{onClick:T,size:"small",icon:Wr,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(w==="end"||w==="both")&&s.jsx("span",{className:ne.next,children:s.jsx(Ce,{onClick:z,size:"small",icon:en,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},ta=e=>{const{value:t,children:n}=e,{value:r,panelId:o,buttonId:i}=Wn(t),a=t===r,l=S(ne.panel,!a&&ne["--panel-hidden"]);return s.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:o,"aria-labelledby":i,children:a&&n})},an=e=>{const{value:t}=e;return t!==void 0?s.jsx(co,v({},e)):s.jsx(Qi,v({},e))};an.Item=uo,an.List=ea,an.Panel=ta;const vt={root:"_root_13usd_1",input:"_input_13usd_5","--size-medium":"_--size-medium_13usd_1","--size-large":"_--size-large_13usd_1","--size-xlarge":"_--size-xlarge_13usd_1","--variant-faded":"_--variant-faded_13usd_69","--variant-headless":"_--variant-headless_13usd_80","--status-error":"_--status-error_13usd_87","--size-medium--m":"_--size-medium--m_13usd_1","--size-large--m":"_--size-large--m_13usd_1","--size-xlarge--m":"_--size-xlarge--m_13usd_1","--size-medium--l":"_--size-medium--l_13usd_1","--size-large--l":"_--size-large--l_13usd_1","--size-xlarge--l":"_--size-xlarge--l_13usd_1","--size-medium--xl":"_--size-medium--xl_13usd_1","--size-large--xl":"_--size-large--xl_13usd_1","--size-xlarge--xl":"_--size-xlarge--xl_13usd_1"},mo=e=>{var $,z;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:u,attributes:h}=e,m=Ye(),g=ze(e.id),b=(($=m==null?void 0:m.attributes)==null?void 0:$.id)||((z=e.inputAttributes)==null?void 0:z.id)||g,x=(m==null?void 0:m.disabled)||e.disabled,y=(m==null?void 0:m.hasError)||e.hasError,w=v(v({},e.inputAttributes),m==null?void 0:m.attributes),p=S(vt.root,d&&W(vt,"--size",d),y&&vt["--status-error"],x&&vt["--disabled"],f&&vt[`--variant-${f}`],u),j=T=>{t&&t({name:o,value:T.target.value,event:T})};return s.jsx("div",C(v({},h),{"data-rs-aligner-target":!0,className:p,children:s.jsx("textarea",C(v({rows:3},w),{className:vt.input,disabled:x,name:o,placeholder:l,value:i,defaultValue:a,onChange:j,onFocus:n||(w==null?void 0:w.onFocus),onBlur:r||(w==null?void 0:w.onBlur),id:b}))}))};mo.Aligner=qt;const Hn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Rn=e=>{const{children:t,markerSlot:n,className:r,attributes:o}=e,i=n!==null,a=S(Hn.item,!i&&Hn["item--full-width"],r);return s.jsxs(D,{as:"li",direction:"row",align:"stretch",gap:3,attributes:o,className:a,children:[i&&s.jsx("span",{className:Hn.marker,children:n}),s.jsx(D.Item,{grow:!0,children:t})]})},fo=e=>{const{children:t,className:n,attributes:r}=e,o=S(n);return s.jsx("ul",C(v({},r),{className:o,children:c.Children.map(t,(i,a)=>(i==null?void 0:i.type)===Rn?i:s.jsx(Rn,{children:i},a))}))};fo.Item=Rn;const na={root:"_root_9090g_1"},ra=e=>{const{id:t,text:n,children:r,onOpen:o,onClose:i,position:a="bottom",active:l}=e;return s.jsxs(Xe,{id:t,active:l,position:a,onOpen:o,onClose:i,triggerType:"hover",children:[s.jsx(Xe.Trigger,{children:r}),s.jsx(Xe.Content,{children:s.jsx(lt,{colorMode:"inverted",children:s.jsx(Q,{variant:"caption-1",className:na.root,children:n})})})]})},gt={m:660,l:900,xl:1280},ho={s:`(max-width: ${gt.m-1}px)`,m:`(min-width: ${gt.m}px) and (max-width: ${gt.l-1}px)`,l:`(min-width: ${gt.l}px) and (max-width: ${gt.xl-1}px)`,xl:`(min-width: ${gt.xl}px)`},oa=e=>{const{defaultViewport:t}=c.useContext(zn),[n,r]=c.useState(t);return ce(()=>{const i=Object.keys(ho).map(a=>{const l=window.matchMedia(ho[a]);return{mq:l,handler:()=>l.matches&&r(a)}});return i.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{i.forEach(({handler:a,mq:l})=>{l.removeEventListener("change",a)})}},[]),n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},sa=e=>{const{w:t="auto",h:n=50,children:r}=e;return s.jsx("div",{style:{width:t,height:n,minWidth:n,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-unit-radius-small)"},children:r})};N.Accordion=pn,N.ActionBar=Xo,N.Actionable=Fe,N.Alert=Qo,N.Autocomplete=Lr,N.Avatar=Rs,N.Badge=Vr,N.Breadcrumbs=Br,N.Button=Ce,N.Card=ei,N.Carousel=ti,N.Checkbox=ii,N.CheckboxGroup=si,N.Container=li,N.Dismissible=ci,N.Divider=Ft,N.DropdownMenu=we,N.FormControl=Vt,N.Hidden=Dt,N.HiddenVisually=ui,N.Hotkey=_i,N.Icon=le,N.Image=mi,N.Link=Or,N.Loader=qr,N.MenuItem=Pn,N.Modal=Vn,N.Overlay=Xr,N.Placeholder=sa,N.Popover=dt,N.Progress=gi,N.Radio=wi,N.RadioGroup=xi,N.Reshaped=Si,N.Scrim=Pi,N.Select=Fi,N.Skeleton=Di,N.Slider=Oi,N.Stepper=so,N.Switch=Ri,N.Table=ht,N.Tabs=an,N.Text=Q,N.TextArea=mo,N.TextField=yn,N.Theme=lt,N.Timeline=fo,N.Tooltip=ra,N.View=D,N.classNames=S,N.responsiveClassNames=W,N.responsivePropDependency=$e,N.useFormControl=Ye,N.useHotkeys=rt,N.useIsomorphicLayoutEffect=ce,N.useRTL=Ge,N.useResponsiveClientValue=oa,N.useScrollLock=Gr,N.useTheme=Sr,N.useToast=yi,N.useToggle=Ln,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
27
|
+
Check the top-level render call using <`+I+">.")}return k}}function po(_,k){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var I=_a(k);if(bo[I])return;bo[I]=!0;var F="";_&&_._owner&&_._owner!==Yn.current&&(F=" It was passed a child from "+V(_._owner.type)+"."),xt(_),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,F),xt(null)}}function xo(_,k){{if(typeof _!="object")return;if(At(_))for(var I=0;I<_.length;I++){var F=_[I];Xn(F)&&po(F,k)}else if(Xn(_))_._store&&(_._store.validated=!0);else if(_){var R=y(_);if(typeof R=="function"&&R!==_.entries)for(var J=R.call(_),B;!(B=J.next()).done;)Xn(B.value)&&po(B.value,k)}}}function ma(_){{var k=_.type;if(k==null||typeof k=="string")return;var I;if(typeof k=="function")I=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===d||k.$$typeof===h))I=k.propTypes;else return;if(I){var F=V(k);ln(I,_.props,"prop",F,_)}else if(k.PropTypes!==void 0&&!Gn){Gn=!0;var R=V(k);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(_){{for(var k=Object.keys(_.props),I=0;I<k.length;I++){var F=k[I];if(F!=="children"&&F!=="key"){xt(_),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),xt(null);break}}_.ref!==null&&(xt(_),p("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}function wo(_,k,I,F,R,J){{var B=M(_);if(!B){var O="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var be=ua(R);be?O+=be:O+=go();var oe;_===null?oe="null":At(_)?oe="array":_!==void 0&&_.$$typeof===t?(oe="<"+(V(_.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof _,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,O)}var ae=da(_,k,I,R,J);if(ae==null)return ae;if(B){var Ne=k.children;if(Ne!==void 0)if(F)if(At(Ne)){for(var wt=0;wt<Ne.length;wt++)xo(Ne[wt],_);Object.freeze&&Object.freeze(Ne)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xo(Ne,_)}return _===r?fa(ae):ma(ae),ae}}function ha(_,k,I){return wo(_,k,I,!0)}function va(_,k,I){return wo(_,k,I,!1)}var ga=va,ba=ha;jt.Fragment=r,jt.jsx=ga,jt.jsxs=ba}()),jt}process.env.NODE_ENV==="production"?xe.exports=No():xe.exports=$o();var s=xe.exports;const Zn=(e,t=20)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}};function zo(e,t){const n=Zn(e,t);return r=>("persist"in r&&r.persist(),n(r))}const Eo=(e,t)=>{let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...r)},t)},t))}},S=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const r=S(...n);return r?`${t} ${r}`:t}return n?`${t} ${n}`:t},""),er=(e,t,n)=>{const{base:r,excludeValueFromClassName:o}=n||{},i=typeof e=="string"?e:e(t);return t===!0&&r||o?i:t===!0&&!r?`${i}-true`:t===!1&&!r?`${i}-false`:t!==void 0?`${i}-${t}`:null},W=(e,t,n,r)=>{if(typeof n!="object"){const o=er(t,n,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return o?[e[o]]:[]}return Object.keys(n).reduce((o,i)=>{const a=i==="s",l=er(t,n[i],{base:a,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=a?"":`--${i}`;return[...o,e[`${l}${d}`]]},[])},te=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,r)=>{const o=t[r];return o===void 0||o===!1?n:C(v({},n),{[`${e}-${r}`]:o})},{}),To=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,$e=(e,t)=>To(e)?Object.keys(e).reduce((r,o)=>{const i=e[o];return i==null?r:C(v({},r),{[o]:t(i,o)})},{}):t(e,"s"),ze=e=>{const t=c.useId();return e||t},mn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),tr=e=>{const{children:t,onToggle:n,active:r,iconPosition:o,iconSize:i,className:a,attributes:l}=e,d=S(a),f=ze(),u=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:r,onToggle:n,iconPosition:o,iconSize:i}),[r]);return s.jsx("div",C(v({},l),{className:d,children:s.jsx(mn.Provider,{value:u,children:t})}))},Io=e=>{const l=e,{defaultActive:t,onToggle:n}=l,r=Ae(l,["defaultActive","onToggle"]),[o,i]=c.useState(t||!1),a=d=>{i(d),n==null||n(d)};return s.jsx(tr,C(v({},r),{onToggle:a,active:o}))},Ct={root:"_root_1ao0i_1","--disabled":"_--disabled_1ao0i_28","--full-width":"_--full-width_1ao0i_37","--inset":"_--inset_1ao0i_45","--radius-inherit":"_--radius-inherit_1ao0i_49"},Mo=(e,t)=>{const{children:n,href:r,onClick:o,type:i,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:u,className:h,attributes:m}=e,g=S(Ct.root,h,a&&Ct["--disabled"],d&&Ct[`--radius-${d}`],l&&Ct["--inset"],u&&Ct["--full-width"]),b=v({},m),x=c.useRef(!1),y=o||(m==null?void 0:m.onClick),w=(m==null?void 0:m.onFocus)||(m==null?void 0:m.onBlur),p=!!(r||m!=null&&m.href),j=!!(y||w||i);let $;if(p)b.href=a?void 0:r||(m==null?void 0:m.href),$="a";else if(j&&(!f||f==="button"))$="button",b.type=i||(m==null?void 0:m.type)||"button",b.disabled=a||(m==null?void 0:m.disabled);else if(j){const P=!(f==="label")||y||w;$=f||"span",b.role=P?"button":void 0,b.tabIndex=P?0:void 0}else $=f||"span";const z=E=>{var P;a||x.current||(o==null||o(E),(P=m==null?void 0:m.onClick)==null||P.call(m,E))},T=E=>{if(b.role==="button"||p)return;const U=E.key===" ",M=E.key==="Enter";!U&&!M||(E.preventDefault(),z(E),x.current=!0,requestAnimationFrame(()=>{x.current=!1}))};return s.jsx($,C(v({ref:t},b),{className:g,onClick:z,onKeyDown:T,children:n}))},Fe=c.forwardRef(Mo),fn={root:"_root_m2bn1_1","--blank":"_--blank_m2bn1_8","--vertical":"_--vertical_m2bn1_15","--vertical-true--m":"_--vertical-true--m_m2bn1_1","--vertical-false--m":"_--vertical-false--m_m2bn1_1","--vertical-true--l":"_--vertical-true--l_m2bn1_1","--vertical-false--l":"_--vertical-false--l_m2bn1_1","--vertical-true--xl":"_--vertical-true--xl_m2bn1_1","--vertical-false--xl":"_--vertical-false--xl_m2bn1_1"},Ft=e=>{const{vertical:t,blank:n,className:r,attributes:o}=e,i=S(fn.root,r,n&&fn["--blank"],...W(fn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),s.jsx("div",C(v({},o),{role:"separator","aria-orientation":a,className:i}))},Lt={root:"_root_1sx8x_6","--display-inline":"_--display-inline_1sx8x_12","--display-flex":"_--display-flex_1sx8x_16","--hidden":"_--hidden_1sx8x_20","--visibility":"_--visibility_1sx8x_24","--hidden-true--m":"_--hidden-true--m_1sx8x_1","--hidden-false--m":"_--hidden-false--m_1sx8x_1","--hidden-true--l":"_--hidden-true--l_1sx8x_1","--hidden-false--l":"_--hidden-false--l_1sx8x_1","--hidden-true--xl":"_--hidden-true--xl_1sx8x_1","--hidden-false--xl":"_--hidden-false--xl_1sx8x_1"},Dt=e=>{const{as:t="div",children:n,visibility:r,hide:o,displayStyle:i}=e,a=S(Lt.root,...W(Lt,"--hidden",o),r&&Lt["--visibility"],i&&Lt[`--display-${i}`]);return typeof n=="function"?s.jsx(s.Fragment,{children:n(a)}):s.jsx(t,{className:a,children:n})},K={root:"_root_ewdir_1",item:"_item_ewdir_10","--padding":"_--padding_ewdir_18","--padding-top":"_--padding-top_ewdir_23","--padding-bottom":"_--padding-bottom_ewdir_27","--padding-start":"_--padding-start_ewdir_31","--padding-end":"_--padding-end_ewdir_35","--animated":"_--animated_ewdir_39","--align-text-start":"_--align-text-start_ewdir_1","--align-text-center":"_--align-text-center_ewdir_1","--align-text-end":"_--align-text-end_ewdir_1","--bg-neutral":"_--bg-neutral_ewdir_1","--bg-positive":"_--bg-positive_ewdir_1","--bg-critical":"_--bg-critical_ewdir_1","--bg-primary":"_--bg-primary_ewdir_1","--bg-neutral-faded":"_--bg-neutral-faded_ewdir_1","--bg-positive-faded":"_--bg-positive-faded_ewdir_1","--bg-critical-faded":"_--bg-critical-faded_ewdir_1","--bg-primary-faded":"_--bg-primary-faded_ewdir_1","--bg-page":"_--bg-page_ewdir_1","--bg-page-faded":"_--bg-page-faded_ewdir_1","--bg-disabled":"_--bg-disabled_ewdir_1","--bg-disabled-faded":"_--bg-disabled-faded_ewdir_1","--bg-elevation-base":"_--bg-elevation-base_ewdir_1","--bg-elevation-raised":"_--bg-elevation-raised_ewdir_1","--bg-elevation-overlay":"_--bg-elevation-overlay_ewdir_1","--bg-white":"_--bg-white_ewdir_65","--bg-black":"_--bg-black_ewdir_70","--shadow-raised":"_--shadow-raised_ewdir_75","--shadow-overlay":"_--shadow-overlay_ewdir_79","--bd":"_--bd_ewdir_83","--bd-neutral-faded":"_--bd-neutral-faded_ewdir_1","--bd-neutral":"_--bd-neutral_ewdir_1","--bd-positive":"_--bd-positive_ewdir_1","--bd-positive-faded":"_--bd-positive-faded_ewdir_1","--bd-critical":"_--bd-critical_ewdir_1","--bd-critical-faded":"_--bd-critical-faded_ewdir_1","--bd-primary":"_--bd-primary_ewdir_1","--bd-primary-faded":"_--bd-primary-faded_ewdir_1","--bd-disabled":"_--bd-disabled_ewdir_1","--bd-transparent":"_--bd-transparent_ewdir_94","--overflow-hidden":"_--overflow-hidden_ewdir_98","--divided":"_--divided_ewdir_102","--flex":"_--flex_ewdir_106","--direction-column":"_--direction-column_ewdir_1","item--gap-before":"_item--gap-before_ewdir_118","item--gap-auto":"_item--gap-auto_ewdir_122","--direction-column-reverse":"_--direction-column-reverse_ewdir_1","--direction-row":"_--direction-row_ewdir_1","--direction-row-reverse":"_--direction-row-reverse_ewdir_1","--nowrap":"_--nowrap_ewdir_177","--wrap":"_--wrap_ewdir_185","--nowrap-false--m":"_--nowrap-false--m_ewdir_1","--wrap-true--m":"_--wrap-true--m_ewdir_1","--nowrap-true--m":"_--nowrap-true--m_ewdir_1","--wrap-false--m":"_--wrap-false--m_ewdir_1","--nowrap-false--l":"_--nowrap-false--l_ewdir_1","--wrap-true--l":"_--wrap-true--l_ewdir_1","--nowrap-true--l":"_--nowrap-true--l_ewdir_1","--wrap-false--l":"_--wrap-false--l_ewdir_1","--nowrap-false--xl":"_--nowrap-false--xl_ewdir_1","--wrap-true--xl":"_--wrap-true--xl_ewdir_1","--nowrap-true--xl":"_--nowrap-true--xl_ewdir_1","--wrap-false--xl":"_--wrap-false--xl_ewdir_1","--align-start":"_--align-start_ewdir_1","--align-end":"_--align-end_ewdir_1","--align-center":"_--align-center_ewdir_1","--align-stretch":"_--align-stretch_ewdir_1","--align-baseline":"_--align-baseline_ewdir_1","--justify-start":"_--justify-start_ewdir_1","--justify-end":"_--justify-end_ewdir_1","--justify-center":"_--justify-center_ewdir_1","--justify-space-between":"_--justify-space-between_ewdir_1",divider:"_divider_ewdir_244","item--grow":"_item--grow_ewdir_248","item--columns":"_item--columns_ewdir_266","item--columns-1":"_item--columns-1_ewdir_1","item--columns-2":"_item--columns-2_ewdir_1","item--columns-3":"_item--columns-3_ewdir_1","item--columns-4":"_item--columns-4_ewdir_1","item--columns-5":"_item--columns-5_ewdir_1","item--columns-6":"_item--columns-6_ewdir_1","item--columns-7":"_item--columns-7_ewdir_1","item--columns-8":"_item--columns-8_ewdir_1","item--columns-9":"_item--columns-9_ewdir_1","item--columns-10":"_item--columns-10_ewdir_1","item--columns-11":"_item--columns-11_ewdir_1","item--columns-12":"_item--columns-12_ewdir_1","item--columns-auto":"_item--columns-auto_ewdir_287","item--columns-1--m":"_item--columns-1--m_ewdir_1","item--columns-auto--m":"_item--columns-auto--m_ewdir_1","item--columns-2--m":"_item--columns-2--m_ewdir_1","item--columns-3--m":"_item--columns-3--m_ewdir_1","item--columns-4--m":"_item--columns-4--m_ewdir_1","item--columns-5--m":"_item--columns-5--m_ewdir_1","item--columns-6--m":"_item--columns-6--m_ewdir_1","item--columns-7--m":"_item--columns-7--m_ewdir_1","item--columns-8--m":"_item--columns-8--m_ewdir_1","item--columns-9--m":"_item--columns-9--m_ewdir_1","item--columns-10--m":"_item--columns-10--m_ewdir_1","item--columns-11--m":"_item--columns-11--m_ewdir_1","item--columns-12--m":"_item--columns-12--m_ewdir_1","item--columns-1--l":"_item--columns-1--l_ewdir_1","item--columns-auto--l":"_item--columns-auto--l_ewdir_1","item--columns-2--l":"_item--columns-2--l_ewdir_1","item--columns-3--l":"_item--columns-3--l_ewdir_1","item--columns-4--l":"_item--columns-4--l_ewdir_1","item--columns-5--l":"_item--columns-5--l_ewdir_1","item--columns-6--l":"_item--columns-6--l_ewdir_1","item--columns-7--l":"_item--columns-7--l_ewdir_1","item--columns-8--l":"_item--columns-8--l_ewdir_1","item--columns-9--l":"_item--columns-9--l_ewdir_1","item--columns-10--l":"_item--columns-10--l_ewdir_1","item--columns-11--l":"_item--columns-11--l_ewdir_1","item--columns-12--l":"_item--columns-12--l_ewdir_1","item--columns-1--xl":"_item--columns-1--xl_ewdir_1","item--columns-auto--xl":"_item--columns-auto--xl_ewdir_1","item--columns-2--xl":"_item--columns-2--xl_ewdir_1","item--columns-3--xl":"_item--columns-3--xl_ewdir_1","item--columns-4--xl":"_item--columns-4--xl_ewdir_1","item--columns-5--xl":"_item--columns-5--xl_ewdir_1","item--columns-6--xl":"_item--columns-6--xl_ewdir_1","item--columns-7--xl":"_item--columns-7--xl_ewdir_1","item--columns-8--xl":"_item--columns-8--xl_ewdir_1","item--columns-9--xl":"_item--columns-9--xl_ewdir_1","item--columns-10--xl":"_item--columns-10--xl_ewdir_1","item--columns-11--xl":"_item--columns-11--xl_ewdir_1","item--columns-12--xl":"_item--columns-12--xl_ewdir_1","--direction-column--m":"_--direction-column--m_ewdir_1","--direction-column-reverse--m":"_--direction-column-reverse--m_ewdir_1","--direction-row--m":"_--direction-row--m_ewdir_1","--direction-row-reverse--m":"_--direction-row-reverse--m_ewdir_1","--align-start--m":"_--align-start--m_ewdir_1","--align-end--m":"_--align-end--m_ewdir_1","--align-center--m":"_--align-center--m_ewdir_1","--align-stretch--m":"_--align-stretch--m_ewdir_1","--align-baseline--m":"_--align-baseline--m_ewdir_1","--justify-start--m":"_--justify-start--m_ewdir_1","--justify-end--m":"_--justify-end--m_ewdir_1","--justify-center--m":"_--justify-center--m_ewdir_1","--justify-space-between--m":"_--justify-space-between--m_ewdir_1","item--grow-true--m":"_item--grow-true--m_ewdir_1","item--grow-false--m":"_item--grow-false--m_ewdir_1","--direction-column--l":"_--direction-column--l_ewdir_1","--direction-column-reverse--l":"_--direction-column-reverse--l_ewdir_1","--direction-row--l":"_--direction-row--l_ewdir_1","--direction-row-reverse--l":"_--direction-row-reverse--l_ewdir_1","--align-start--l":"_--align-start--l_ewdir_1","--align-end--l":"_--align-end--l_ewdir_1","--align-center--l":"_--align-center--l_ewdir_1","--align-stretch--l":"_--align-stretch--l_ewdir_1","--align-baseline--l":"_--align-baseline--l_ewdir_1","--justify-start--l":"_--justify-start--l_ewdir_1","--justify-end--l":"_--justify-end--l_ewdir_1","--justify-center--l":"_--justify-center--l_ewdir_1","--justify-space-between--l":"_--justify-space-between--l_ewdir_1","item--grow-true--l":"_item--grow-true--l_ewdir_1","item--grow-false--l":"_item--grow-false--l_ewdir_1","--direction-column--xl":"_--direction-column--xl_ewdir_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_ewdir_1","--direction-row--xl":"_--direction-row--xl_ewdir_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_ewdir_1","--align-start--xl":"_--align-start--xl_ewdir_1","--align-end--xl":"_--align-end--xl_ewdir_1","--align-center--xl":"_--align-center--xl_ewdir_1","--align-stretch--xl":"_--align-stretch--xl_ewdir_1","--align-baseline--xl":"_--align-baseline--xl_ewdir_1","--justify-start--xl":"_--justify-start--xl_ewdir_1","--justify-end--xl":"_--justify-end--xl_ewdir_1","--justify-center--xl":"_--justify-center--xl_ewdir_1","--justify-space-between--xl":"_--justify-space-between--xl_ewdir_1","item--grow-true--xl":"_item--grow-true--xl_ewdir_1","item--grow-false--xl":"_item--grow-false--xl_ewdir_1"},nr={root:"_root_fjri8_1","--radius-none":"_--radius-none_fjri8_1","--radius-small":"_--radius-small_fjri8_1","--radius-medium":"_--radius-medium_fjri8_1","--radius-large":"_--radius-large_fjri8_1","--radius-circular":"_--radius-circular_fjri8_1","--radius-none--m":"_--radius-none--m_fjri8_1","--radius-small--m":"_--radius-small--m_fjri8_1","--radius-medium--m":"_--radius-medium--m_fjri8_1","--radius-large--m":"_--radius-large--m_fjri8_1","--radius-circular--m":"_--radius-circular--m_fjri8_1","--radius-none--l":"_--radius-none--l_fjri8_1","--radius-small--l":"_--radius-small--l_fjri8_1","--radius-medium--l":"_--radius-medium--l_fjri8_1","--radius-large--l":"_--radius-large--l_fjri8_1","--radius-circular--l":"_--radius-circular--l_fjri8_1","--radius-none--xl":"_--radius-none--xl_fjri8_1","--radius-small--xl":"_--radius-small--xl_fjri8_1","--radius-medium--xl":"_--radius-medium--xl_fjri8_1","--radius-large--xl":"_--radius-large--xl_fjri8_1","--radius-circular--xl":"_--radius-circular--xl_fjri8_1"},hn=e=>e?{classNames:[nr.root,...W(nr,"--radius",e)]}:null,rr={root:"_root_o5mer_1","--bleed":"_--bleed_o5mer_10","--bleed-true--m":"_--bleed-true--m_o5mer_1","--bleed-false--m":"_--bleed-false--m_o5mer_1","--bleed-true--l":"_--bleed-true--l_o5mer_1","--bleed-false--l":"_--bleed-false--l_o5mer_1","--bleed-true--xl":"_--bleed-true--xl_o5mer_1","--bleed-false--xl":"_--bleed-false--xl_o5mer_1"},or=e=>{if(e===void 0)return null;const t=[rr.root,...W(rr,"--bleed",$e(e,r=>typeof r=="number"&&r>0))],n=te("--rs-bleed",e);return{classNames:t,variables:n}},So={literal:"_literal_1a6gk_1",unit:"_unit_1a6gk_5","literal--m":"_literal--m_1a6gk_1","unit--m":"_unit--m_1a6gk_1","literal--l":"_literal--l_1a6gk_1","unit--l":"_unit--l_1a6gk_1","literal--xl":"_literal--xl_1a6gk_1","unit--xl":"_unit--xl_1a6gk_1"},vn=e=>{if(!e)return null;const t=te("--rs-w",e);return{classNames:W(So,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Po={literal:"_literal_ea0g1_1",unit:"_unit_ea0g1_2","literal--m":"_literal--m_ea0g1_1","unit--m":"_unit--m_ea0g1_1","literal--l":"_literal--l_ea0g1_1","unit--l":"_unit--l_ea0g1_1","literal--xl":"_literal--xl_ea0g1_1","unit--xl":"_unit--xl_ea0g1_1"},kt=e=>{if(!e)return null;const t=te("--rs-h",e);return{classNames:W(Po,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ao={literal:"_literal_ezw0c_1",unit:"_unit_ezw0c_5","literal--m":"_literal--m_ezw0c_1","unit--m":"_unit--m_ezw0c_1","literal--l":"_literal--l_ezw0c_1","unit--l":"_unit--l_ezw0c_1","literal--xl":"_literal--xl_ezw0c_1","unit--xl":"_unit--xl_ezw0c_1"},Fo=e=>{if(!e)return null;const t=te("--rs-max-w",e);return{classNames:W(Ao,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Lo={literal:"_literal_kt8jw_1",unit:"_unit_kt8jw_5","literal--m":"_literal--m_kt8jw_1","unit--m":"_unit--m_kt8jw_1","literal--l":"_literal--l_kt8jw_1","unit--l":"_unit--l_kt8jw_1","literal--xl":"_literal--xl_kt8jw_1","unit--xl":"_unit--xl_kt8jw_1"},Do=e=>{if(!e)return null;const t=te("--rs-max-h",e);return{classNames:W(Lo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Vo={"--position-static":"_--position-static_1qpz9_1","--position-relative":"_--position-relative_1qpz9_1","--position-absolute":"_--position-absolute_1qpz9_1","--position-fixed":"_--position-fixed_1qpz9_1","--position-sticky":"_--position-sticky_1qpz9_1","--position-static--m":"_--position-static--m_1qpz9_1","--position-relative--m":"_--position-relative--m_1qpz9_1","--position-absolute--m":"_--position-absolute--m_1qpz9_1","--position-fixed--m":"_--position-fixed--m_1qpz9_1","--position-sticky--m":"_--position-sticky--m_1qpz9_1","--position-static--l":"_--position-static--l_1qpz9_1","--position-relative--l":"_--position-relative--l_1qpz9_1","--position-absolute--l":"_--position-absolute--l_1qpz9_1","--position-fixed--l":"_--position-fixed--l_1qpz9_1","--position-sticky--l":"_--position-sticky--l_1qpz9_1","--position-static--xl":"_--position-static--xl_1qpz9_1","--position-relative--xl":"_--position-relative--xl_1qpz9_1","--position-absolute--xl":"_--position-absolute--xl_1qpz9_1","--position-fixed--xl":"_--position-fixed--xl_1qpz9_1","--position-sticky--xl":"_--position-sticky--xl_1qpz9_1"},qo=e=>e?{classNames:W(Vo,"--position",e)}:null,Oo={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},Nt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",r=`--rs-inset${n}`,o=te(r,e);return{classNames:W(Oo,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:o}},Bo={root:"_root_i342i_1"},Wo=e=>{if(!e)return null;const t=te("--rs-ratio",e);return{classNames:Bo.root,variables:t}},sr=e=>{const{columns:t,grow:n,gapBefore:r,as:o="div",order:i,children:a,className:l,attributes:d}=e,f=S(K.item,l,r==="auto"&&K["item--gap-auto"],r!==void 0&&K["item--gap-before"],t&&K["item--columns"],...W(K,"item--grow",n),...W(K,"item--columns",t)),u=v(v({},te("--rs-view-item-order",i)),te("--rs-view-item-gap-before",r));return s.jsx(o,C(v({},d),{style:v(v({},d==null?void 0:d.style),u),className:f,children:a}))},D=e=>{const{align:t,justify:n,wrap:r,gap:o,height:i,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:u,paddingInline:h,paddingBlock:m,paddingBottom:g,paddingEnd:b,paddingStart:x,paddingTop:y,bleed:w,animated:p,backgroundColor:j,borderColor:$,borderRadius:z,shadow:T,textAlign:E,overflow:P,position:U="relative",inset:M,insetTop:A,insetBottom:q,insetStart:V,insetEnd:L,zIndex:Z,grow:fe,as:he="div",children:se,divided:ee,className:He,attributes:ke}=e;let re=!!t||!!n||!!o||!!e.direction;const H=e.direction||(re?"column":void 0),Y=hn(z),G=or(w),ie=vn(a),ye=kt(i),X=Fo(f),pe=Do(d),ve=qo(U),Me=Nt(M),Re=Nt(A,"top"),et=Nt(q,"bottom"),tt=Nt(V,"start"),Se=Nt(L,"end"),Pe=Wo(l);let Pt=0,st;const bt=({className:ge,key:de})=>{const qe=S(K.divider,ge);let _e=!1;return typeof H=="string"&&H.startsWith("row")?_e=!0:H&&(_e=Object.keys(H).reduce((Oe,Ue)=>{const je=H[Ue];return je?C(v({},Oe),{[Ue]:je.startsWith("row")}):Oe},{})),s.jsx("div",{className:qe,children:s.jsx(Ft,{vertical:_e,blank:!0})},`${de}-divider`)},ln=({className:ge,child:de,index:qe})=>{var cn,dn,un;const _e=de.type===sr,pt=de.type===D,Oe=de.key||qe,Ue=!!qe&&ee&&bt({className:ge,key:Oe});let je;return _e?je=c.cloneElement(de,{className:S(ge,de.props.className)}):ge||!c.isValidElement(de)?je=s.jsx("div",{className:ge,children:de},Oe):je=de,_e&&((cn=de.props)!=null&&cn.grow)&&(st=de.props.grow),_e&&((dn=de.props)==null?void 0:dn.gap)==="auto"&&(st=!0),(_e||pt)&&((un=de.props)!=null&&un.grow)&&(re=!0),[Ue,je]},Un=c.Children.map(se,(ge,de)=>{if(!ge)return null;const qe=Pt;if(Pt+=1,ge.type===Dt&&typeof ge.props.children!="function"){const _e=ge.props,{children:pt}=_e,Oe=Ae(_e,["children"]),Ue=ge.key||de;return c.createElement(Dt,C(v({},Oe),{key:Ue}),je=>ln({className:je,child:pt,index:qe}))}return ln({child:ge,index:qe})}),At=S(K.root,He,Y==null?void 0:Y.classNames,ve==null?void 0:ve.classNames,G==null?void 0:G.classNames,ie==null?void 0:ie.classNames,ye==null?void 0:ye.classNames,Pe==null?void 0:Pe.classNames,X==null?void 0:X.classNames,pe==null?void 0:pe.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,et==null?void 0:et.classNames,tt==null?void 0:tt.classNames,Se==null?void 0:Se.classNames,E&&K[`--align-text-${E}`],j&&K[`--bg-${j}`],$&&K[`--bd-${$}`],$&&K["--bd"],T&&K[`--shadow-${T}`],P&&K[`--overflow-${P}`],p&&K["--animated"],ee&&K["--divided"],(u!==void 0||h!==void 0||m!==void 0)&&K["--padding"],g!==void 0&&K["--padding-bottom"],b!==void 0&&K["--padding-end"],x!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(re||st)&&K["--flex"],...W(K,"--direction",H),...W(K,"--align",t),...W(K,"--justify",n),...W(K,"--nowrap",st||r===!1),...W(K,"--wrap",r),...W(K,"item--grow",fe)),Kn=v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v({},ke==null?void 0:ke.style),te("--rs-view-gap",o)),te("--rs-view-p-vertical",m||u)),te("--rs-view-p-horizontal",h||u)),te("--rs-view-p-bottom",g)),te("--rs-view-p-top",y)),te("--rs-view-p-start",x)),te("--rs-view-p-end",b)),G==null?void 0:G.variables),ie==null?void 0:ie.variables),ye==null?void 0:ye.variables),Pe==null?void 0:Pe.variables),X==null?void 0:X.variables),pe==null?void 0:pe.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),et==null?void 0:et.variables),tt==null?void 0:tt.variables),Se==null?void 0:Se.variables),Z?{"--rs-view-z":Z}:{});return s.jsx(he,C(v({},ke),{className:At,style:Kn,children:Un}))};D.Item=sr;const gn={root:"_root_1f0uh_1","--auto":"_--auto_1f0uh_8","--color-neutral":"_--color-neutral_1f0uh_1","--color-neutral-faded":"_--color-neutral-faded_1f0uh_1","--color-primary":"_--color-primary_1f0uh_1","--color-positive":"_--color-positive_1f0uh_1","--color-critical":"_--color-critical_1f0uh_1","--color-disabled":"_--color-disabled_1f0uh_1"},le=e=>{const{svg:t,className:n,color:r,size:o="1em",autoWidth:i,attributes:a}=e,l=kt(o),d=S(gn.root,n,l==null?void 0:l.classNames,r&&gn[`--color-${r}`],i&&gn["--auto"]),f=typeof t=="object"?t:s.jsx(t,{}),u=v(v({},a==null?void 0:a.style),l==null?void 0:l.variables);return s.jsx("span",C(v({},a),{"aria-hidden":"true",className:d,style:u,children:c.cloneElement(f,{focusable:!1})}))},Ho=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),ir={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ro=e=>{const{children:t}=e,{active:n,onToggle:r,triggerId:o,contentId:i,iconPosition:a="end",iconSize:l}=c.useContext(mn),d=S(ir.icon,n&&ir["icon--active"]),f=()=>{r==null||r(!n)},u={"aria-expanded":n,"aria-controls":i,id:o};return typeof t=="function"?s.jsx(s.Fragment,{children:t(C(v({},u),{onClick:f}),{active:n})}):s.jsx(Fe,{onClick:f,fullWidth:!0,attributes:u,children:s.jsxs(D,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[s.jsx(D.Item,{grow:!0,children:t}),s.jsx(le,{size:l||4,svg:Ho,className:d})]})})},$t=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},bn="data-rs-no-transition",Uo=()=>{document.documentElement.setAttribute(bn,"true")},Ko=()=>{document.documentElement.removeAttribute(bn)},Yo=()=>!document.documentElement.hasAttribute(bn),ar={root:"_root_14pfm_1","--animated":"_--animated_14pfm_9"},lr=e=>{const{children:t,active:n,attributes:r}=e,o=c.useRef(null),i=c.useRef(!1),[a,l]=c.useState(n?"auto":null),d=S(ar.root,i.current&&a!=="auto"&&ar["--animated"]),f=u=>{u.propertyName==="height"&&l(n?"auto":null)};return c.useEffect(()=>{$t(()=>{i.current=!0})},[]),c.useEffect(()=>{const u=o.current;if(!u||!i.current)return;let h=0;n&&(u.style.height="auto",h=u.clientHeight,u.style.height="0"),n||(u.style.height=`${u.clientHeight}px`),l(h)},[n]),s.jsx("div",C(v({},r),{className:d,ref:o,style:a!==null?{height:a,overflow:a==="auto"?"visible":void 0}:void 0,onTransitionEnd:f,role:"region",hidden:!n&&a===null,children:t}))},Go=e=>{const{children:t}=e,{active:n,triggerId:r,contentId:o}=c.useContext(mn);return s.jsx(lr,{active:n,attributes:{"aria-labelledby":r,id:o},children:t})},pn=e=>{const{active:t}=e;return t!==void 0?s.jsx(tr,v({},e)):s.jsx(Io,v({},e))};pn.Trigger=Ro,pn.Content=Go;const xn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Xo=e=>{const{position:t="bottom",padding:n,paddingBlock:r=3,paddingInline:o=4,children:i,elevated:a,className:l,attributes:d}=e,f=S(xn.root,a&&xn["--elevated"],t&&xn[`--position-${t}`],l);return s.jsx(D,{className:f,attributes:d,paddingBlock:n||r,paddingInline:n||o,children:i})},nt={root:"_root_gm5sj_1","--clamp":"_--clamp_gm5sj_6","--align-start":"_--align-start_gm5sj_1","--align-center":"_--align-center_gm5sj_1","--align-end":"_--align-end_gm5sj_1","--variant-title-1":"_--variant-title-1_gm5sj_1","--variant-title-2":"_--variant-title-2_gm5sj_1","--variant-title-3":"_--variant-title-3_gm5sj_1","--variant-title-4":"_--variant-title-4_gm5sj_1","--variant-title-5":"_--variant-title-5_gm5sj_1","--variant-title-6":"_--variant-title-6_gm5sj_1","--variant-featured-1":"_--variant-featured-1_gm5sj_1","--variant-featured-2":"_--variant-featured-2_gm5sj_1","--variant-featured-3":"_--variant-featured-3_gm5sj_1","--variant-body-1":"_--variant-body-1_gm5sj_1","--variant-body-2":"_--variant-body-2_gm5sj_1","--variant-body-3":"_--variant-body-3_gm5sj_1","--variant-caption-1":"_--variant-caption-1_gm5sj_1","--variant-caption-2":"_--variant-caption-2_gm5sj_1","--weight-regular":"_--weight-regular_gm5sj_1","--weight-medium":"_--weight-medium_gm5sj_1","--weight-bold":"_--weight-bold_gm5sj_1","--color-neutral":"_--color-neutral_gm5sj_1","--color-neutral-faded":"_--color-neutral-faded_gm5sj_1","--color-primary":"_--color-primary_gm5sj_1","--color-positive":"_--color-positive_gm5sj_1","--color-critical":"_--color-critical_gm5sj_1","--color-disabled":"_--color-disabled_gm5sj_1","--decoration-line-through":"_--decoration-line-through_gm5sj_139","--align-start--m":"_--align-start--m_gm5sj_1","--align-center--m":"_--align-center--m_gm5sj_1","--align-end--m":"_--align-end--m_gm5sj_1","--variant-title-1--m":"_--variant-title-1--m_gm5sj_1","--variant-title-2--m":"_--variant-title-2--m_gm5sj_1","--variant-title-3--m":"_--variant-title-3--m_gm5sj_1","--variant-title-4--m":"_--variant-title-4--m_gm5sj_1","--variant-title-5--m":"_--variant-title-5--m_gm5sj_1","--variant-title-6--m":"_--variant-title-6--m_gm5sj_1","--variant-featured-1--m":"_--variant-featured-1--m_gm5sj_1","--variant-featured-2--m":"_--variant-featured-2--m_gm5sj_1","--variant-featured-3--m":"_--variant-featured-3--m_gm5sj_1","--variant-body-1--m":"_--variant-body-1--m_gm5sj_1","--variant-body-2--m":"_--variant-body-2--m_gm5sj_1","--variant-body-3--m":"_--variant-body-3--m_gm5sj_1","--variant-caption-1--m":"_--variant-caption-1--m_gm5sj_1","--variant-caption-2--m":"_--variant-caption-2--m_gm5sj_1","--align-start--l":"_--align-start--l_gm5sj_1","--align-center--l":"_--align-center--l_gm5sj_1","--align-end--l":"_--align-end--l_gm5sj_1","--variant-title-1--l":"_--variant-title-1--l_gm5sj_1","--variant-title-2--l":"_--variant-title-2--l_gm5sj_1","--variant-title-3--l":"_--variant-title-3--l_gm5sj_1","--variant-title-4--l":"_--variant-title-4--l_gm5sj_1","--variant-title-5--l":"_--variant-title-5--l_gm5sj_1","--variant-title-6--l":"_--variant-title-6--l_gm5sj_1","--variant-featured-1--l":"_--variant-featured-1--l_gm5sj_1","--variant-featured-2--l":"_--variant-featured-2--l_gm5sj_1","--variant-featured-3--l":"_--variant-featured-3--l_gm5sj_1","--variant-body-1--l":"_--variant-body-1--l_gm5sj_1","--variant-body-2--l":"_--variant-body-2--l_gm5sj_1","--variant-body-3--l":"_--variant-body-3--l_gm5sj_1","--variant-caption-1--l":"_--variant-caption-1--l_gm5sj_1","--variant-caption-2--l":"_--variant-caption-2--l_gm5sj_1","--align-start--xl":"_--align-start--xl_gm5sj_1","--align-center--xl":"_--align-center--xl_gm5sj_1","--align-end--xl":"_--align-end--xl_gm5sj_1","--variant-title-1--xl":"_--variant-title-1--xl_gm5sj_1","--variant-title-2--xl":"_--variant-title-2--xl_gm5sj_1","--variant-title-3--xl":"_--variant-title-3--xl_gm5sj_1","--variant-title-4--xl":"_--variant-title-4--xl_gm5sj_1","--variant-title-5--xl":"_--variant-title-5--xl_gm5sj_1","--variant-title-6--xl":"_--variant-title-6--xl_gm5sj_1","--variant-featured-1--xl":"_--variant-featured-1--xl_gm5sj_1","--variant-featured-2--xl":"_--variant-featured-2--xl_gm5sj_1","--variant-featured-3--xl":"_--variant-featured-3--xl_gm5sj_1","--variant-body-1--xl":"_--variant-body-1--xl_gm5sj_1","--variant-body-2--xl":"_--variant-body-2--xl_gm5sj_1","--variant-body-3--xl":"_--variant-body-3--xl_gm5sj_1","--variant-caption-1--xl":"_--variant-caption-1--xl_gm5sj_1","--variant-caption-2--xl":"_--variant-caption-2--xl_gm5sj_1"},Jo={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},Q=e=>{const{variant:t,color:n,weight:r,align:o,decoration:i,maxLines:a,children:l,className:d,attributes:f}=e,u=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),h=e.as||u&&Jo[u]||"div",m=S(nt.root,n&&nt[`--color-${n}`],...W(nt,"--variant",t),...W(nt,"--align",o),r&&nt[`--weight-${r}`],i&&nt[`--decoration-${i}`],a!==void 0&&nt["--clamp"],d),g=C(v({},f==null?void 0:f.style),{"--rs-text-lines":a});return s.jsx(h,C(v({},f),{className:m,style:g,children:l}))},Qo=e=>{const{title:t,children:n,icon:r,actionsSlot:o,color:i="neutral",inline:a,bleed:l,className:d,attributes:f}=e,u=i==="neutral",h=()=>a?s.jsxs(s.Fragment,{children:[t&&s.jsx(Q,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&s.jsx(Q,{variant:"body-3",as:"span",children:n})]}):s.jsxs(D,{gap:1,children:[t&&s.jsx(Q,{variant:"body-3",weight:"medium",children:t}),n&&s.jsx(Q,{variant:"body-3",children:n})]}),m=g=>o?s.jsxs(D,{gap:2,direction:a?"row":"column",children:[a?s.jsx(D.Item,{grow:!0,children:g}):g,o&&s.jsx(Q,{variant:"body-3",weight:"medium",children:s.jsx(D,{direction:"row",gap:3,children:o})})]}):g;return s.jsx(D,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:C(v({},f),{role:i==="critical"?"alert":"status"}),children:r?s.jsxs(s.Fragment,{children:[s.jsx(le,{svg:r,size:5,color:u?"primary":i}),s.jsx(D.Item,{grow:!0,children:m(h())})]}):m(h())})},cr=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Zo=cr.Provider,zt=()=>c.useContext(cr),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:r}=zt();return{attributes:e,required:t,hasError:n,disabled:r}},dr={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},wn=(e,t)=>`${e}-${t||"caption"}`,Vt=e=>{const{children:t,id:n,required:r,hasError:o,group:i,disabled:a,size:l}=e,d=ze(n),f=i?"fieldset":"div",[u,h]=c.useState(!1),[m,g]=c.useState(!1),b=[u&&wn(d),m&&wn(d,"error")].filter(Boolean).join(" "),x={id:d,"aria-describedby":b},y=()=>{g(!0)},w=()=>{h(!0)};return s.jsx(f,{children:s.jsx(Zo,{value:{required:r,hasError:o,errorRef:y,helperRef:w,attributes:x,group:i,disabled:a,size:l},children:t})})},es=e=>{const{children:t}=e,{attributes:n,required:r,group:o,disabled:i,size:a}=zt(),l=`${n.id}-label`,d=o?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return s.jsxs(Q,C(v({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:dr.label,color:i?"disabled":void 0,children:[t,r&&s.jsx(Q,{color:i?"disabled":"critical",as:"span",children:"*"})]}))},ur=e=>{const{children:t,variant:n,disabled:r}=e,{attributes:o,size:i,helperRef:a,errorRef:l}=zt(),d=wn(o.id,n),f=n==="error"?"critical":"neutral-faded",u=n==="error"?l:a;return s.jsx(Q,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:u},className:dr.caption,children:t})},ts=e=>{const{children:t}=e,{disabled:n}=zt();return s.jsx(ur,{disabled:n,children:t})},ns=e=>{const{children:t}=e,{hasError:n}=zt();return n?s.jsx(ur,{variant:"error",children:t}):null};Vt.Label=es,Vt.Helper=ts,Vt.Error=ns;const _r={root:"_root_1q3jm_1","--side-all":"_--side-all_1q3jm_6","--side-start":"_--side-start_1q3jm_10","--side-inline":"_--side-inline_1q3jm_11","--side-end":"_--side-end_1q3jm_15","--side-top":"_--side-top_1q3jm_20","--side-block":"_--side-block_1q3jm_21","--side-bottom":"_--side-bottom_1q3jm_25"},qt=e=>{const{side:t="all",children:n,className:r,attributes:o}=e,i=typeof t=="string"?[t]:t,a=S(_r.root,i.map(l=>_r[`--side-${l}`]),r);return s.jsx("div",C(v({},o),{className:a,children:n}))},Ee={root:"_root_16c4t_1",input:"_input_16c4t_21",slot:"_slot_16c4t_42",icon:"_icon_16c4t_43",affix:"_affix_16c4t_44",attachment:"_attachment_16c4t_60","attachment--position-start":"_attachment--position-start_16c4t_66","attachment--position-end":"_attachment--position-end_16c4t_76","--disabled":"_--disabled_16c4t_91","--size-medium":"_--size-medium_16c4t_1","--size-large":"_--size-large_16c4t_1","--size-xlarge":"_--size-xlarge_16c4t_1","--variant-faded":"_--variant-faded_16c4t_155","--variant-headless":"_--variant-headless_16c4t_164","--status-error":"_--status-error_16c4t_169","--size-medium--m":"_--size-medium--m_16c4t_1","--size-large--m":"_--size-large--m_16c4t_1","--size-xlarge--m":"_--size-xlarge--m_16c4t_1","--size-medium--l":"_--size-medium--l_16c4t_1","--size-large--l":"_--size-large--l_16c4t_1","--size-xlarge--l":"_--size-xlarge--l_16c4t_1","--size-medium--xl":"_--size-medium--xl_16c4t_1","--size-large--xl":"_--size-large--xl_16c4t_1","--size-xlarge--xl":"_--size-xlarge--xl_16c4t_1"},mr=e=>{const{slot:t,icon:n,size:r,affix:o,position:i}=e;if(!n&&!t&&!o)return null;const a=S(Ee.attachment,Ee[`attachment--position-${i}`]),l=[t&&s.jsx("div",{className:Ee.slot,children:t},"slot"),n&&s.jsx("div",{className:Ee.icon,children:s.jsx(le,{size:$e(r,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),o&&s.jsx("div",{className:Ee.affix,children:o},"affix")].filter(Boolean);return s.jsx("span",{className:a,children:i==="end"?l.reverse():l})},yn=e=>{var M;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:u,endSlot:h,prefix:m,suffix:g,size:b="medium",variant:x="outline",className:y,attributes:w}=e,p=Ye(),j=ze(e.id),$=(p==null?void 0:p.attributes.id)||((M=e.inputAttributes)==null?void 0:M.id)||j,z=(p==null?void 0:p.disabled)||e.disabled,T=(p==null?void 0:p.hasError)||e.hasError,E=v(v({},e.inputAttributes),p==null?void 0:p.attributes),P=S(Ee.root,y,b&&W(Ee,"--size",b),T&&Ee["--status-error"],z&&Ee["--disabled"],x&&Ee[`--variant-${x}`]),U=A=>{t&&t({name:o,value:A.target.value,event:A})};return s.jsxs("div",C(v({},w),{"data-rs-aligner-target":!0,className:P,children:[s.jsx(mr,{position:"start",icon:d,slot:u,size:b,affix:m}),s.jsx("input",C(v({},E),{className:Ee.input,disabled:z,name:o,placeholder:l,value:i,defaultValue:a,onChange:U,onFocus:n||(E==null?void 0:E.onFocus),onBlur:r||(E==null?void 0:E.onBlur),id:$})),s.jsx(mr,{position:"end",icon:f,slot:h,size:b,affix:g})]}))};yn.Aligner=qt;const rs="Enter",os="Tab",fr="ArrowUp",hr="ArrowDown",vr="ArrowRight",gr="ArrowLeft",jn="data-rs-keyboard",Ot="data-rs-focus";class ss{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const n=this.tailId,r=n&&this.get(n),o=this.generateId();return this.chain[o]={previousId:n,data:t},r&&(r.nextId=o),this.tailId=o,o}remove(t){var d,f;const n=this.chain[t];if(!n)return;const r=n.previousId,o=r&&this.get(r),i=n.nextId,a=i&&this.get(i);o&&(o.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),i||(this.tailId=r!=null?r:null);const l=this.get(t).data;return delete this.chain[t],l}removePreviousTill(t,n){const r=this.get(t),o=this.remove(t);return!r||!r.previousId||n(r)?o:this.removePreviousTill(r.previousId,n)}}const br=()=>document.documentElement.hasAttribute(jn),pr='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Bt=()=>document.querySelector(`[${Ot}]`)||document.activeElement,Cn=(e,t)=>{const r=Array.from(e.querySelectorAll(pr)).filter(o=>!o.hasAttribute("disabled")&&o.clientHeight>0);return t&&r.length&&r.unshift(t),r},xr=e=>{const{root:t,extraElement:n,target:r,mode:o}=e,i=Cn(t,n),a=i.length-1,l=Bt(),d=i.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let u=f[r];const h=u>a||u<0;return h&&(o==="action-menu"?u=r==="prev"?f.first:f.last:u=r==="prev"?f.last:f.first),{overflow:h,el:i[u]}},Wt=(e,t)=>{var n;(n=document.querySelector(`[${Ot}]`))==null||n.removeAttribute(Ot),t==="selection-menu"?e.setAttribute(Ot,"true"):e.focus()},Ht=(e,t)=>{const n=xr({root:e,target:t});Wt(n.el)},is=e=>Ht(e,"next"),as=e=>Ht(e,"prev"),ls=e=>Ht(e,"first"),cs=e=>Ht(e,"last"),ds=(()=>{let e=[];const t=r=>{let o=r.parentNode&&r.parentNode.firstChild;for(;o;){const i=o!==r,a=o.nodeType===1&&!o.hasAttribute("aria-hidden");i&&a&&(o.setAttribute("aria-hidden","true"),e.push(o)),o=o.nextSibling}},n=()=>{e.forEach(r=>{r.removeAttribute("aria-hidden")}),e=[]};return r=>{let o=r;for(e.length&&n();o!==document.body;)t(o),o=o.parentElement;return{release:n}}})(),Rt=(()=>{let e=null,t=null;const n=new ss;return(r,o={})=>{const{mode:i="dialog",onNavigateOutside:a,includeTrigger:l}=o,d=Bt(),f=i==="dialog",u=i==="content-menu",h=i==="selection-menu",m=f||u,g=i==="action-menu"||h,b=Cn(r,l?d:void 0);let x;const y=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const $=Cn(r,l?d:void 0);$.length&&Wt($[0],i)}),w=($={})=>{const{withoutFocusReturn:z}=$;n.removePreviousTill(x,E=>document.body.contains(E.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:z||!br()}),e&&(e(),t&&t.release(),e=null,t=null);const T=n.tailId&&n.get(n.tailId);T&&Rt(T.data.root,T.data.options)},p=$=>{const z=$.key,T=z===os,E=T&&!$.shiftKey,P=T&&$.shiftKey,U=g&&z===fr,M=g&&z===hr,A=P&&m||U,q=E&&m||M,V=Bt()===d,L=xr({root:r,target:A?"prev":"next",extraElement:l?d:void 0,mode:i});if(T&&g||u&&T&&L.overflow){P&&!V&&$.preventDefault(),w(),a==null||a();return}!A&&!q||($.preventDefault(),L.el&&Wt(L.el,i))};if(e&&e(),f&&(t=ds(r)),y.observe(r,{childList:!0,subtree:!0}),!b.length)return null;document.addEventListener("keydown",p),e=()=>document.removeEventListener("keydown",p);const j=n.tailId&&n.get(n.tailId);return(!j||r!==j.data.root)&&(x=n.add({root:r,trigger:d,options:o}),Wt(b[0],i)),w}})(),us=100,_s=150;let it={},Le=null;const wr=e=>{it[e]&&(e===Le&&(Le=it[e].parentId),delete it[e],Le===null&&(it={}))},ms=(e,t,n)=>{var i;const r=Le?it[Le]:void 0;!((n==null?void 0:n.current)&&r&&((i=r.contentRef.current)==null?void 0:i.contains(n.current)))&&n&&Le&&wr(Le),it[e]={parentId:Le,triggerRef:n,contentRef:t},Le=e},yr=(e=!1,t,n)=>{const r=ze(),o=c.useCallback(()=>Le===r,[r]);return c.useEffect(()=>{e?ms(r,t,n):wr(r)},[e,r,t,n]),o},ce=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,at="+",Te={},kn=[],jr=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),Nn=e=>jr(e).split(at).sort().join(at),Cr=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},fs=e=>{const t=[],n=e.join(at),o=Nn(n).split(at),i=(a,l)=>{l.forEach((d,f)=>{const u=a?`${a}+${d}`:d;t.push(u),i(u,l.slice(f+1))})};return i("",o),t},hs=(e,t)=>{const n=Object.keys(e);n.length&&fs(n).forEach(r=>{t(r)})},$n=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(r=>{const o=e[n];o&&t(Nn(r),o)})})};class vs{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{$n(t,(r,o)=>{o&&(this.hotkeyMap[r]||(this.hotkeyMap[r]={data:new Set,used:!1}),this.hotkeyMap[r].data.add({callback:o,ref:n}))})},this.unbindHotkeys=t=>{$n(t,(n,r)=>{var o,i;r&&((o=this.hotkeyMap[n])==null||o.data.forEach(a=>{a.callback===r&&this.hotkeyMap[n].data.delete(a)}),(i=this.hotkeyMap[n])!=null&&i.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{hs(t,r=>{const o=this.hotkeyMap[r];!o||o.used||o!=null&&o.data.size&&o.data.forEach(i=>{var a;(a=i.ref)!=null&&a.current&&!(n.target===i.ref.current||i.ref.current.contains(n.target))||(i.callback(t[r]),this.hotkeyMap[r].used=!0)})})},this.handleKeyUp=t=>{const n=Nn(t.key);$n(this.hotkeyMap,(r,o)=>{r.split(at).includes(n)&&(o.used=!1)})}}}const Ut=new vs,kr=c.createContext({}),gs=e=>{const{children:t}=e,[n,r]=c.useState(0),[o,i]=c.useState(0),a=c.useCallback(m=>{if(m.repeat||o===0)return;const g=Cr(m);g&&(Te[g]=m,(g==="meta"||g==="control")&&(Te.mod=m),r(Object.keys(Te).length),g==="meta"&&kn.push(...Object.keys(Te)),Te.Meta&&kn.push(g))},[o]),l=c.useCallback(m=>{if(o===0)return;const g=Cr(m);g&&(delete Te[g],(g==="meta"||g==="control")&&delete Te.mod,g==="meta"&&kn.forEach(b=>{delete Te[b]}),r(Object.keys(Te).length))},[o]),d=m=>!jr(m).split(at).some(b=>!Te[b]),f=c.useCallback((m,g)=>(i(b=>b+1),Ut.bindHotkeys(m,g),()=>{i(b=>b-1),Ut.unbindHotkeys(m)}),[]),u=c.useCallback(m=>{m.key&&(a(m),Ut.handleKeyDown(Te,m))},[a]),h=c.useCallback(m=>{m.key&&(l(m),Ut.handleKeyUp(m))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",u),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",u),window.removeEventListener("keyup",h)}),[u,h]),s.jsx(kr.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},bs=()=>c.useContext(kr),rt=(e,t=[],n)=>{const{addHotkeys:r,isPressed:o}=bs(),i=c.useRef(null),a=(n==null?void 0:n.ref)||i;return c.useEffect(()=>{const l=r(e,a);return()=>l==null?void 0:l()},[r,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:o}},zn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ps=e=>{const t=c.useState(e||!1),[n,r]=t;return ce(()=>{const o=new MutationObserver(i=>{i.forEach(a=>{if(a.attributeName!=="dir")return;const l=a.target.dir==="rtl";n!==l&&r(l)})});return o.observe(document.documentElement,{attributes:!0}),()=>o.disconnect()},[n]),ce(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(zn).rtl,En=e=>{const t=e&&window.getComputedStyle(e),n=t==null?void 0:t.overflowY,r=t==null?void 0:t.position,o=n==null?void 0:n.includes("scroll"),i=r==="fixed";return e===document.body||!e?document.body:o&&e.scrollHeight>e.clientHeight||i?e:En(e.parentElement)},Nr=16,Kt=["top-start","top","top-end"],Yt=["bottom-start","bottom","bottom-end"],Gt=["start","start-bottom","start-top"],Xt=["end","end-bottom","end-top"],xs={top:[...Kt,...Yt,...Xt,...Gt],bottom:[...Yt,...Kt,...Xt,...Gt],start:[...Gt,...Xt,...Kt,...Yt],end:[...Xt,...Gt,...Kt,...Yt]},ws=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,$r=(e,t)=>Math.floor(e/2-t/2),ys=e=>{const n=["top","bottom","start","end"].find(r=>e.startsWith(r))||"bottom";return xs[n]},Tn=e=>{const t=document.documentElement,n=t.scrollLeft,r=n+t.clientWidth,o=t.scrollTop,i=o+t.clientHeight;return e.left>=n&&e.left+e.width<=r&&e.top>=o&&e.top+e.height<=i},zr=(e,t,n,r)=>{const{position:o,rtl:i,width:a}=r;let l=0,d=0,f=o;switch(i&&(f=ws(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=$r(e.width,t.width)+e.left;break;case"start":case"start-top":case"start-bottom":l=e.left-t.width;break;case"end":case"end-top":case"end-bottom":l=e.right;break;case"top-start":case"bottom-start":l=e.left;break;case"top-end":case"bottom-end":l=e.right-t.width;break}switch(f){case"top":case"top-start":case"top-end":d=e.top-t.height;break;case"bottom":case"bottom-start":case"bottom-end":d=e.bottom;break;case"start":case"end":d=$r(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||l===void 0)throw Error(`[Reshaped, flyout]: ${f} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),l=Math.round(l+(window.scrollX||0)-n.left);let u=Math.ceil(t.width);const h=Math.ceil(t.height);return a==="full"?(l=Nr,u=window.innerWidth-Nr*2):a==="trigger"&&(u=e.width),{styles:{left:l,top:d,width:u,height:h},position:f}},Er={left:0,top:0,width:"auto",height:"auto",zIndex:"var(--rs-z-index-flyout)"},Jt={left:0,top:0,position:"fixed",visibility:"hidden",animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},js=(e,t,n)=>{const{position:r,forcePosition:o,width:i}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(Jt).forEach(g=>{const b=Jt[g];a.style[g]=b.toString()}),i&&(i==="trigger"?a.style.width=`${l.width}px`:i!=="full"&&(a.style.width=i)),document.body.appendChild(a);const d=a.getBoundingClientRect(),f=En(e),u=f.getBoundingClientRect(),h={top:u.top+document.documentElement.scrollTop-f.scrollTop,left:u.left+document.documentElement.scrollLeft-f.scrollLeft};let m=zr(l,d,h,n);if(!Tn(m.styles)&&!o){const g=ys(r),b=g.filter(y=>y==="top"||y==="bottom"),x=(y,w={})=>{const{fullWidth:p}=w;y.some(j=>{const $=C(v({},n),{width:p?"full":n.width,position:j}),z=zr(l,d,h,$);return Tn(z.styles)?(m=z,!0):!1})};x(g),Tn(m.styles)||x(b,{fullWidth:!0})}return a.parentNode.removeChild(a),m},Cs=(e,t)=>{switch(t.type){case"render":return C(v({},e),{status:"rendered",styles:v({pointerEvents:"none"},Jt)});case"position":return C(v({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:v(v({},Er),t.payload.styles)});case"show":return C(v({},e),{status:"visible"});case"hide":return C(v({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return C(v({},e),{status:"idle",styles:Jt});default:throw new Error("Invalid reducer type")}},ks=(e,t,n)=>{const{position:r="bottom",forcePosition:o,width:i}=n,[a]=Ge(),[l,d]=c.useReducer(Cs,{position:r,styles:Er,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),u=c.useCallback(()=>{d({type:"show"})},[]),h=c.useCallback(()=>{d({type:"hide"})},[]),m=c.useCallback(()=>{d({type:"remove"})},[]),g=c.useCallback(()=>{if(!e.current||!t.current)return;const b=js(e.current,t.current,{width:i,position:r,forcePosition:o,rtl:a});d({type:"position",payload:b})},[e,t,r,a,o,i]);return c.useEffect(()=>{l.status==="rendered"&&g(),l.status==="positioned"&&$t(()=>u())},[l.status,g,u]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:g,render:f,hide:h,remove:m}),[f,g,h,m,l.position,l.styles,l.status])},Ns=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=r=>{let o=!1;e.forEach(i=>{(!i.current||i.current===r.target||i.current.contains(r.target))&&(o=!0)}),!o&&t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},Tr=c.createContext({}),Qt=()=>c.useContext(Tr),$s=Tr.Provider,Ir=e=>{const{triggerType:t="click",onOpen:n,onClose:r,children:o,forcePosition:i,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:u,contentAttributes:h,position:m,active:g,id:b,instanceRef:x}=e,[y]=Ge(),w=c.useRef(null),p=c.useRef(null),j=ze(b),$=c.useRef(),z=c.useRef(null),T=c.useRef(!1),E=c.useRef(!1),P=c.useRef(!0),U=ks(w,p,{width:l,position:m,defaultActive:g,forcePosition:i}),M=Qt(),{status:A,updatePosition:q,render:V,hide:L,remove:Z}=U,fe=yr(t!=="hover"&&A!=="idle",p,w),he=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),se=c.useCallback(()=>{!T.current&&A==="idle"&&(n==null||n())},[A]),ee=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&A!=="idle"&&(r==null||r(),X!=null&&X.closeParents&&((Me=M==null?void 0:M.handleClose)==null||Me.call(M)))},[A,fe,t]),He=c.useCallback(X=>{var ve;(ve=p.current)!=null&&ve.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||E.current||ee()},[ee,t,a]),ke=c.useCallback(()=>{se()},[se]),re=c.useCallback(()=>{he(),$.current=setTimeout(se,us)},[he,$,se]),H=c.useCallback(()=>{he(),$.current=setTimeout(()=>ee(),_s)},[he,$,ee]),Y=c.useCallback(()=>{A==="idle"?se():ee()},[A,se,ee]),G=()=>E.current=!0,ie=()=>E.current=!1;ce(()=>{if(g){V();return}Yo()&&!d?L():Z()},[g,V,L,d]);const ye=c.useCallback(X=>{p.current!==X.currentTarget||X.propertyName!=="transform"||A==="hidden"&&Z()},[Z,A]);return ce(()=>{A!=="visible"||!p.current||(z.current=Rt(p.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{z.current=null,ee()}}))},[A,t,ee,a]),c.useEffect(()=>{!d&&A!=="hidden"||d&&A!=="idle"||z.current&&(t==="hover"&&(T.current=!0,setTimeout(()=>{T.current=!1},100)),z.current({withoutFocusReturn:!P.current}),z.current=null,P.current=!0)},[A,t,d]),c.useEffect(()=>()=>{z.current&&z.current(),z.current=null},[]),c.useEffect(()=>{const X=Zn(q,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[q]),c.useEffect(()=>{q()},[y,q]),c.useImperativeHandle(x,()=>({open:se,close:ee}),[se,ee]),rt({Escape:()=>ee()},[ee]),Ns([p,w],()=>{P.current=!1,ee()}),s.jsx($s,{value:{id:j,flyout:U,width:l,triggerElRef:w,flyoutElRef:p,handleClose:ee,handleOpen:se,handleFocus:ke,handleBlur:He,handleMouseEnter:re,handleMouseLeave:H,handleTransitionEnd:ye,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:u,contentAttributes:h},children:o})},zs=e=>{const{defaultActive:t,onClose:n,onOpen:r}=e,[o,i]=c.useState(t||!1),a=()=>{i(!1),n&&n()},l=()=>{i(!0),r&&r()};return s.jsx(Ir,C(v({},e),{defaultActive:void 0,active:o,onClose:a,onOpen:l}))},Es=e=>{const{children:t}=e,{id:n,triggerElRef:r,triggerType:o,flyout:i,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:u,trapFocusMode:h}=Qt();let m={onBlur:l,ref:r};return(o==="click"||h==="action-menu")&&(m.onClick=u),o==="hover"&&(m.onMouseEnter=d,m.onMouseLeave=f),(o==="hover"&&h!=="action-menu"||o==="focus")&&(m.onFocus=a,m["aria-describedby"]=n),(o==="click"||o==="focus"||h==="action-menu")&&(h==="dialog"?m["aria-haspopup"]="dialog":h==="selection-menu"?(m["aria-haspopup"]="listbox",m["aria-autocomplete"]="list"):m["aria-haspopup"]="menu",m["aria-expanded"]=i.status!=="idle",m["aria-controls"]=i.status!=="idle"?n:void 0),s.jsx(s.Fragment,{children:t(m)})},Mr=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),In=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),Ts=()=>{const{mode:e}=c.useContext(In);return e},Sr=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Mr),{mode:r,setMode:o,invertMode:i}=c.useContext(In);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||r,setColorMode:o,invertColorMode:i}),[e,r,o,i,t,n])},Is={root:"_root_r30zs_1"},lt=e=>{const{name:t,defaultName:n,colorMode:r,children:o,className:i}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),u=Ts(),h=Sr(),m=!h.theme,g=t||d||h.theme,b=m?u:h.colorMode,y=r==="inverted"?b==="light"?"dark":"light":r||b,w=S(Is.root,i),p=j=>{f(j)};return ce(()=>{l(!0)},[]),ce(()=>{if(!document||!m)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",g),j||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[g,y,m]),s.jsx(Mr.Provider,{value:{theme:g,colorMode:y,setTheme:p},children:s.jsx("div",{className:w,"data-rs-theme":m?void 0:g,"data-rs-color-mode":m||!r&&!a?void 0:y,children:o})})},Ms=e=>{const{defaultMode:t,children:n}=e,[r,o]=c.useState(t||"light"),i=c.useCallback(l=>{document.documentElement.setAttribute("data-rs-color-mode",l),o(d=>(d!==l&&Uo(),l))},[]);ce(()=>{$t(()=>{Ko()})},[r]),ce(()=>{const l=document.documentElement.getAttribute("data-rs-color-mode");l&&i(l)},[]);const a=c.useMemo(()=>({mode:r,setMode:i,invertMode:()=>{i(r==="light"?"dark":"light")}}),[r,i]);return s.jsx(In.Provider,{value:a,children:n})},Pr=c.createContext({}),Ss=()=>c.useContext(Pr),Zt=e=>{const{children:t,targetRef:n}=e,r=Ss(),o=n||r.scopeRef;return me.createPortal(s.jsx(lt,{children:t}),(o==null?void 0:o.current)||document.body)};function Ps(e){const{children:t}=e,n=c.useRef(null);return s.jsx(Pr.Provider,{value:{scopeRef:n},children:t(n)})}Zt.Scope=Ps;const ct={content:"_content_12uuh_1",inner:"_inner_12uuh_9","--width-trigger":"_--width-trigger_12uuh_15","--position-top":"_--position-top_12uuh_19","--position-top-end":"_--position-top-end_12uuh_20","--position-top-start":"_--position-top-start_12uuh_21","--position-bottom":"_--position-bottom_12uuh_27","--position-bottom-end":"_--position-bottom-end_12uuh_28","--position-bottom-start":"_--position-bottom-start_12uuh_29","--position-start":"_--position-start_12uuh_45","--position-start-top":"_--position-start-top_12uuh_46","--position-start-bottom":"_--position-start-bottom_12uuh_47","--position-end":"_--position-end_12uuh_53","--position-end-top":"_--position-end-top_12uuh_54","--position-end-bottom":"_--position-end-bottom_12uuh_55","--visible":"_--visible_12uuh_71","--animated":"_--animated_12uuh_76"},As=e=>{const{children:t,className:n,attributes:r}=e,{flyout:o,id:i,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:u,handleMouseLeave:h,handleContentMouseDown:m,handleContentMouseUp:g,contentGap:b,contentClassName:x,contentAttributes:y,trapFocusMode:w,width:p}=Qt(),{styles:j,status:$,position:z}=o,[T,E]=c.useState(!1);if(ce(()=>{E(!0)},[]),$==="idle"||!T)return null;const P=S(ct.content,$==="visible"&&ct["--visible"],["visible","hidden"].includes($)&&ct["--animated"],z&&ct[`--position-${z}`],p==="trigger"&&ct["--width-trigger"]),U=S(ct.inner,n,x);let M;f==="hover"?M="tooltip":w==="dialog"?M="dialog":w==="selection-menu"?M="listbox":w==="action-menu"&&(M="menu");const A=s.jsx("div",{className:P,style:C(v({},j),{"--rs-flyout-gap":b}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?u:void 0,onMouseLeave:f==="hover"?h:void 0,onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g,children:s.jsx("div",C(v({role:M},r),{id:i,"aria-modal":f==="click",style:y==null?void 0:y.style,className:U,children:t}))}),q=En(l.current);return s.jsx(Zt,{targetRef:q===document.body?void 0:{current:q},children:A})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?s.jsx(Ir,v({},e)):s.jsx(zs,v({},e))};Xe.Trigger=Es,Xe.Content=As;const Mn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},Fs={root:"_root_e7w6q_1"},Sn=e=>{if(!e)return null;const t=te("--rs-p",e);return{classNames:Fs.root,variables:t}},dt=e=>{var j;const{id:t,forcePosition:n,onOpen:r,onClose:o,active:i,defaultActive:a,children:l,width:d,contentGap:f,variant:u="elevated",triggerType:h="click",position:m="bottom",disableHideAnimation:g,instanceRef:b}=e,x=(j=e.padding)!=null?j:u==="headless"?0:4,y=e.trapFocusMode||(h==="hover"?"content-menu":void 0),w=Sn(x),p=S(Mn.content,!!d&&Mn["content--has-width"],u&&Mn[`content--variant-${u}`],w==null?void 0:w.classNames);return s.jsx(Xe,{id:t,instanceRef:b,position:m,forcePosition:n,onOpen:r,onClose:o,trapFocusMode:y,triggerType:h,active:i,defaultActive:a,width:d,disableHideAnimation:g,contentGap:f,contentClassName:p,contentAttributes:{style:v({},w==null?void 0:w.variables)},children:l})};dt.Trigger=Xe.Trigger,dt.Content=Xe.Content;const Be={root:"_root_13dku_1",icon:"_icon_13dku_12",content:"_content_13dku_17","--rounded-corners":"_--rounded-corners_13dku_22","--size-small":"_--size-small_13dku_1","--size-medium":"_--size-medium_13dku_1","--size-large":"_--size-large_13dku_1","--color-neutral":"_--color-neutral_13dku_61","--selected":"_--selected_13dku_65","--color-critical":"_--color-critical_13dku_71","--color-primary":"_--color-primary_13dku_81","--disabled":"_--disabled_13dku_102",aligner:"_aligner_13dku_123","--rounded-corners-true--m":"_--rounded-corners-true--m_13dku_1","--rounded-corners-false--m":"_--rounded-corners-false--m_13dku_1","--size-small--m":"_--size-small--m_13dku_1","--size-medium--m":"_--size-medium--m_13dku_1","--size-large--m":"_--size-large--m_13dku_1","--rounded-corners-true--l":"_--rounded-corners-true--l_13dku_1","--rounded-corners-false--l":"_--rounded-corners-false--l_13dku_1","--size-small--l":"_--size-small--l_13dku_1","--size-medium--l":"_--size-medium--l_13dku_1","--size-large--l":"_--size-large--l_13dku_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_13dku_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_13dku_1","--size-small--xl":"_--size-small--xl_13dku_1","--size-medium--xl":"_--size-medium--xl_13dku_1","--size-large--xl":"_--size-large--xl_13dku_1"},Ls=e=>s.jsx(qt,C(v({},e),{side:e.side||"inline",className:[Be.aligner,e.className]})),Ds=(e,t)=>{const{icon:n,startSlot:r,endSlot:o,children:i,color:a="primary",selected:l,disabled:d,onClick:f,href:u,size:h="medium",roundedCorners:m,className:g,attributes:b}=e,x=S(Be.root,g,W(Be,"--size",h),W(Be,"--rounded-corners",m),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=$e(h,p=>p==="large"?3:2),w=$e(h,p=>p==="large"?5:4);return s.jsx(Fe,{disabled:d,className:x,attributes:C(v({},b),{"data-rs-aligner-target":!0}),onClick:f,href:u,ref:t,children:s.jsxs(D,{direction:"row",gap:y,align:"center",children:[n&&s.jsx(le,{svg:n,className:Be.icon,size:w}),!n&&r,i&&s.jsx(D.Item,{grow:!0,className:Be.content,children:i}),o]})})},Pn=c.forwardRef(Ds);Pn.Aligner=Ls;const en=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),tn={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},An=c.createContext(null),we=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:r="click",trapFocusMode:o="action-menu"}=a,i=Ae(a,["children","position","triggerType","trapFocusMode"]);return s.jsx(dt,C(v({},i),{position:n,padding:0,trapFocusMode:o,triggerType:r,children:t}))},Vs=e=>{const{children:t,attributes:n,className:r}=e,o=c.useContext(An),[i]=Ge(),{ref:a}=rt({[i?vr:gr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.close()},[rs]:()=>{const d=Bt();d==null||d.click()}},[o==null?void 0:o.current]),l=S(tn.menu,r);return s.jsx(dt.Content,{className:l,attributes:C(v({},n),{ref:a}),children:t})},qs=e=>{const{children:t}=e;return s.jsx("div",{className:tn.section,role:"group",children:t})},Ar=e=>{const{onClick:t}=e,{handleClose:n}=Qt(),r=o=>{n&&n({closeParents:!0}),t&&t(o)};return s.jsx(Pn,C(v({},e),{roundedCorners:!0,className:tn.item,attributes:v({role:"menuitem"},e.attributes),onClick:r}))},Os=e=>{const{children:t}=e,n=c.useRef();return s.jsx(An.Provider,{value:n,children:s.jsx(we,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Bs=e=>{const l=e,{children:t,attributes:n}=l,r=Ae(l,["children","attributes"]),o=c.useContext(An),[i]=Ge(),{ref:a}=rt({[i?gr:vr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return s.jsx(Ar,C(v({},r),{attributes:C(v({},n),{ref:a}),endSlot:s.jsx(le,{autoWidth:!0,svg:en,className:tn.arrow}),children:t}))},Ws=e=>{const{children:t}=e;return s.jsx(we.Trigger,{children:n=>s.jsx(Bs,{attributes:n,children:t})})};we.Trigger=dt.Trigger,we.Content=Vs,we.Section=qs,we.Item=Ar,we.SubMenu=Os,we.SubTrigger=Ws;const Fr=c.createContext({}),Lr=e=>{const w=e,{children:t,onChange:n,onItemSelect:r,name:o}=w,i=Ae(w,["children","onChange","onItemSelect","name"]),a=c.useRef(null),[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=!!c.Children.toArray(t).filter(Boolean).length,m=c.useCallback(()=>d(!0),[]),g=()=>d(!1);rt({[`${fr},${hr}`]:()=>m()},[m],{ref:a});const b=p=>{n==null||n(p),u(!1),m()},x=p=>{n==null||n({value:p.value,name:o}),r==null||r({value:p.value}),u(!0)},y=p=>{var j;requestAnimationFrame(()=>{f&&(d(!1),u(!1))}),(j=i.onFocus)==null||j.call(i,p)};return s.jsx(Fr.Provider,{value:{onItemClick:x},children:s.jsxs(we,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!f&&h&&l,onClose:g,onOpen:m,disableHideAnimation:!0,children:[s.jsx(we.Trigger,{children:$=>{var z=$,{ref:p}=z,j=Ae(z,["ref"]);return s.jsx(yn,C(v({},i),{name:o,onChange:b,attributes:C(v({},i.attributes),{ref:p}),inputAttributes:C(v({},j),{onFocus:T=>{var E;(E=j.onFocus)==null||E.call(j),y(T)},ref:a,role:"combobox"})}))}}),s.jsx(we.Content,{children:t})]})})},Hs=e=>{const a=e,{value:t,onClick:n}=a,r=Ae(a,["value","onClick"]),{onItemClick:o}=c.useContext(Fr),i=l=>{n==null||n(l),o({value:t})};return s.jsx(we.Item,C(v({},r),{attributes:C(v({},r.attributes),{role:"option"}),onClick:i}))};Lr.Item=Hs;const nn={root:"_root_1m0a1_1",img:"_img_1m0a1_13","--variant-faded":"_--variant-faded_1m0a1_20","--color-neutral":"_--color-neutral_1m0a1_21","--color-critical":"_--color-critical_1m0a1_25","--color-positive":"_--color-positive_1m0a1_29","--color-primary":"_--color-primary_1m0a1_33"},Rs=e=>{const{color:t="neutral",variant:n,src:r,size:o=12,squared:i,initials:a,icon:l,alt:d,className:f,attributes:u}=e,h=i?$e(o,x=>x>=24?"large":x>=12?"medium":"small"):"circular",m=kt(o),g=S(nn.root,f,m==null?void 0:m.classNames,t&&nn[`--color-${t}`],n&&nn[`--variant-${n}`]),b=()=>r?s.jsx("img",{role:a?void 0:"presentation",src:r,alt:d,className:nn.img}):l?s.jsx(le,{svg:l,size:$e(o,x=>Math.ceil(x*.4))}):a;return s.jsx(D,{borderRadius:h,attributes:C(v({},u),{style:v({},m==null?void 0:m.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:g,children:b()})},Dr=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Ie={root:"_root_xbb1o_1",dismiss:"_dismiss_xbb1o_21","--actionable":"_--actionable_xbb1o_26","--variant-faded":"_--variant-faded_xbb1o_1","--variant-outline":"_--variant-outline_xbb1o_1","--color-positive":"_--color-positive_xbb1o_47","--color-critical":"_--color-critical_xbb1o_67","--color-primary":"_--color-primary_xbb1o_87","--size-small":"_--size-small_xbb1o_1","--size-medium":"_--size-medium_xbb1o_1","--size-large":"_--size-large_xbb1o_1","--rounded":"_--rounded_xbb1o_133","--hidden":"_--hidden_xbb1o_145",container:"_container_xbb1o_152","--container-overlap":"_--container-overlap_xbb1o_177","--container-position-top-end":"_--container-position-top-end_xbb1o_181","--container-position-bottom-end":"_--container-position-bottom-end_xbb1o_193"},Us=e=>{const{children:t,position:n="top-end",overlap:r,className:o,attributes:i}=e,a=S(Ie.container,o,r&&Ie["--container-overlap"],n&&Ie[`--container-position-${n}`]);return s.jsx("div",C(v({},i),{className:a,children:t}))},Vr=e=>{const{children:t,color:n,rounded:r,size:o="medium",icon:i,endIcon:a,variant:l,hidden:d,href:f,onClick:u,onDismiss:h,dismissAriaLabel:m,className:g,attributes:b}=e,x=!!(u||f),y=o==="large"?4:3.5,w=S(Ie.root,g,r&&Ie["--rounded"],d&&Ie["--hidden"],o&&Ie[`--size-${o}`],n&&Ie[`--color-${n}`],l&&Ie[`--variant-${l}`],x&&Ie["--actionable"]);return s.jsxs(Fe,{onClick:u,href:f,className:w,attributes:b,children:[i&&s.jsx(le,{svg:i,autoWidth:!0,size:y}),t&&s.jsx(Q,{variant:o==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&s.jsx(le,{svg:a,autoWidth:!0,size:y}),h&&s.jsx(Fe,{onClick:h,className:Ie.dismiss,as:"span",attributes:{"aria-label":m},children:s.jsx(le,{svg:Dr,size:y})})]})};Vr.Container=Us;const rn={root:"_root_1ty16_15","rs-reshaped-loader":"_rs-reshaped-loader_1ty16_1",inner:"_inner_1ty16_44","--color-inherit":"_--color-inherit_1ty16_63","--color-primary":"_--color-primary_1ty16_67","--color-positive":"_--color-positive_1ty16_71","--color-critical":"_--color-critical_1ty16_75","--size-small":"_--size-small_1ty16_1","--size-medium":"_--size-medium_1ty16_1","--size-small--m":"_--size-small--m_1ty16_1","--size-medium--m":"_--size-medium--m_1ty16_1","--size-small--l":"_--size-small--l_1ty16_1","--size-medium--l":"_--size-medium--l_1ty16_1","--size-small--xl":"_--size-small--xl_1ty16_1","--size-medium--xl":"_--size-medium--xl_1ty16_1"},qr=e=>{const{size:t="small",color:n="primary",className:r,attributes:o}=e,i=o==null?void 0:o["aria-label"],a=S(rn.root,r,W(rn,"--size",t),n&&rn[`--color-${n}`]);return s.jsx("span",C(v({},o),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:a,children:s.jsx("span",{className:rn.inner})}))},ue={root:"_root_6msy8_1",loader:"_loader_6msy8_37",icon:"_icon_6msy8_45","--icon-position-end":"_--icon-position-end_6msy8_49",text:"_text_6msy8_60","--loading":"_--loading_6msy8_66","--elevated":"_--elevated_6msy8_83","--icon-only":"_--icon-only_6msy8_87","--rounded":"_--rounded_6msy8_93","--size-small":"_--size-small_6msy8_1","--size-medium":"_--size-medium_6msy8_1","--size-large":"_--size-large_6msy8_1","--size-xlarge":"_--size-xlarge_6msy8_1","--full-width":"_--full-width_6msy8_135","--variant-solid":"_--variant-solid_6msy8_149","--color-black":"_--color-black_6msy8_149","--color-white":"_--color-white_6msy8_150","--variant-faded":"_--variant-faded_6msy8_151","--color-neutral":"_--color-neutral_6msy8_151","--color-primary":"_--color-primary_6msy8_152","--color-critical":"_--color-critical_6msy8_153","--color-positive":"_--color-positive_6msy8_154","--color-inherit":"_--color-inherit_6msy8_155","--variant-outline":"_--variant-outline_6msy8_156","--variant-ghost":"_--variant-ghost_6msy8_157","--highlighted":"_--highlighted_6msy8_176","--disabled":"_--disabled_6msy8_529",group:"_group_6msy8_561",aligner:"_aligner_6msy8_622","--size-small--m":"_--size-small--m_6msy8_1","--size-medium--m":"_--size-medium--m_6msy8_1","--size-large--m":"_--size-large--m_6msy8_1","--size-xlarge--m":"_--size-xlarge--m_6msy8_1","--full-width-true--m":"_--full-width-true--m_6msy8_1","--full-width-false--m":"_--full-width-false--m_6msy8_1","--size-small--l":"_--size-small--l_6msy8_1","--size-medium--l":"_--size-medium--l_6msy8_1","--size-large--l":"_--size-large--l_6msy8_1","--size-xlarge--l":"_--size-xlarge--l_6msy8_1","--full-width-true--l":"_--full-width-true--l_6msy8_1","--full-width-false--l":"_--full-width-false--l_6msy8_1","--size-small--xl":"_--size-small--xl_6msy8_1","--size-medium--xl":"_--size-medium--xl_6msy8_1","--size-large--xl":"_--size-large--xl_6msy8_1","--size-xlarge--xl":"_--size-xlarge--xl_6msy8_1","--full-width-true--xl":"_--full-width-true--xl_6msy8_1","--full-width-false--xl":"_--full-width-false--xl_6msy8_1"},Ks=e=>{const{children:t,className:n,attributes:r}=e,o=S(ue.group,n);return s.jsx("div",C(v({},r),{className:o,role:"group",children:t}))},Ys=e=>s.jsx(qt,C(v({},e),{side:e.side||e.position,className:[ue.aligner,e.className]})),Gs=(e,t)=>{const{variant:n="solid",color:r="neutral",elevated:o,highlighted:i,fullWidth:a,loading:l,disabled:d,type:f,href:u,size:h="medium",className:m,children:g,rounded:b,attributes:x,onClick:y,icon:w,endIcon:p}=e,j=(w||p)&&!g,$=S(ue.root,m,r&&ue[`--color-${r}`],n&&ue[`--variant-${n}`],W(ue,"--size",h),W(ue,"--full-width",a),o&&n!=="ghost"&&ue["--elevated"],b&&ue["--rounded"],d&&ue["--disabled"],l&&ue["--loading"],i&&ue["--highlighted"],j&&ue["--icon-only"]),z=T=>{if(!(T==="start"&&w||T==="end"&&p))return null;const M=S(ue.icon,T==="end"&&ue["--icon-position-end"]),A=$e(h,q=>q==="large"?5:q==="xlarge"?6:4);return s.jsx(le,{className:M,svg:T==="start"?w:p,size:A,autoWidth:!0})};return s.jsxs(Fe,{disabled:d||l,className:$,attributes:C(v({},x),{"data-rs-aligner-target":!0}),type:f,onClick:y,href:u,ref:t,children:[l&&s.jsx("div",{className:ue.loader,children:s.jsx(qr,{size:"small",color:"inherit"})}),z("start"),g&&s.jsx("span",{className:ue.text,children:g}),z("end")]})},Ce=c.forwardRef(Gs);Ce.Group=Ks,Ce.Aligner=Ys;const Xs=()=>s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),s.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),s.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Js=e=>{const{children:t,separator:n,color:r,defaultVisibleItems:o,ariaLabel:i,className:a,attributes:l}=e,d=o&&o>=2?o:null,[f,u]=c.useState(!1),h=S(a),m=c.Children.count(t);let g=0;const b=()=>{u(!0)};return s.jsx("nav",C(v({},l),{"aria-label":i||(l==null?void 0:l["aria-label"]),className:h,children:s.jsx(D,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,y)=>{if(!x)return null;const w=m-(d||0),p=g===0,j=g>w,$=!d||p||j||f,z=g===w;g+=1;let T=null;return $?T=x:z&&(T=s.jsx(Ce.Aligner,{children:s.jsx(Ce,{variant:"ghost",size:"small",icon:Xs,onClick:b})})),T===null?null:s.jsxs(D,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||z)&&s.jsx(Q,{color:"neutral-faded",children:n||s.jsx(le,{svg:en,size:3})}),s.jsx(Q,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:T})]},y)})})}))},Et={root:"_root_def7r_1","--color-primary":"_--color-primary_def7r_6","--color-critical":"_--color-critical_def7r_10","--color-positive":"_--color-positive_def7r_14","--color-inherit":"_--color-inherit_def7r_18","--variant-plain":"_--variant-plain_def7r_22","--disabled":"_--disabled_def7r_26","--variant-underline":"_--variant-underline_def7r_32","--with-icon":"_--with-icon_def7r_48"},Qs=(e,t)=>{const{icon:n,disabled:r,href:o,color:i="primary",variant:a="underline",className:l,children:d,attributes:f,type:u,onClick:h}=e,m=S(Et.root,l,r&&Et["--disabled"],a&&Et[`--variant-${a}`],i&&Et[`--color-${i}`],n&&Et["--with-icon"]);return s.jsxs(Fe,{href:o,disabled:r,className:m,attributes:f,type:u,onClick:h,ref:t,children:[n&&s.jsx(le,{svg:n}),d]})},Or=c.forwardRef(Qs),Zs=e=>{const{children:t,onClick:n,href:r,icon:o,disabled:i}=e;return!r&&!n&&!i?s.jsx(Q,{variant:"body-3",weight:"medium",color:"neutral",children:t}):s.jsx(Or,{onClick:n,href:r,icon:o,disabled:i,variant:"plain",color:"inherit",children:t})},Br=Js;Br.Item=Zs;const ut={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},ei=(e,t)=>{const{padding:n=4}=e,{selected:r,elevated:o,bleed:i,height:a,onClick:l,href:d,children:f,className:u,attributes:h,as:m="div"}=e,g=!!d||!!l,b=hn("medium"),x=or(i),y=Sn(n),w=kt(a),p=S(ut.root,b==null?void 0:b.classNames,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,g&&ut["--actionable"],o&&ut["--elevated"],r&&ut["--selected"],u),j=v(v(v(v({},h==null?void 0:h.style),x==null?void 0:x.variables),y==null?void 0:y.variables),w==null?void 0:w.variables);return g?s.jsx(Fe,{className:p,attributes:C(v({},h),{style:j}),href:d,as:m,onClick:l,ref:t,children:s.jsx("span",{className:ut.content,children:f})}):s.jsx(m,C(v({},h),{onClick:l,href:d,ref:t,className:p,style:j,children:s.jsx("span",{className:ut.content,children:f})}))},ti=c.forwardRef(ei),Wr=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"15 18 9 12 15 6"})});var _t=(e=>(e.back="back",e.forward="forward",e))(_t||{});const We={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},Hr=e=>{const{type:t,scrollElRef:n,scrollPosition:r,onClick:o,isRTL:i,mounted:a}=e,[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=t===_t.forward,m=t===(i?_t.back:_t.forward),g=S(We.control,m?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return ce(()=>{const b=n.current;if(!b||!a)return;let x;const y=Math.abs(r),w=y<=0,p=y+b.clientWidth>=b.scrollWidth-1;return(h?p:w)?(d(!1),x=setTimeout(()=>u(!1),1500)):(u(!0),d(!0)),()=>{x&&clearTimeout(x)}},[r,n.current,a]),s.jsx("div",{className:g,"aria-hidden":"true",children:s.jsx(Ce,{onClick:o,icon:m?en:Wr,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},ni=e=>{const{children:t,gap:n=3,visibleItems:r,bleed:o,navigationDisplay:i,instanceRef:a,className:l,attributes:d}=e,[f,u]=c.useState(!1),[h,m]=c.useState(0),[g]=Ge(),b=c.useRef(null),x={};typeof o=="object"&&Object.entries(o).forEach(([E,P])=>{x[E]=typeof P=="number"&&P>0});const y=S(We.root,l,...W(We,"--bleed",typeof o=="number"?!0:x)),w=zo(E=>{const P=E.target;m(P.scrollLeft)},16),p=()=>{const P=getComputedStyle(b.current).gap.split(" ")[0];return Number(P.replace("px",""))},j=()=>{const E=b.current;E.scrollBy({left:E.clientWidth+p(),top:0,behavior:"smooth"})},$=()=>{const E=b.current;E.scrollBy({left:-E.clientWidth-p(),top:0,behavior:"smooth"})},z=g?j:$,T=g?$:j;return c.useImperativeHandle(a,()=>({navigateBack:z,navigateForward:T})),ce(()=>{u(!0)},[]),s.jsxs("section",C(v({},d),{className:y,style:v(v({},te("--rs-carousel-items",r)),te("--rs-carousel-bleed",o)),children:[i!=="hidden"&&s.jsxs(s.Fragment,{children:[s.jsx(Hr,{isRTL:g,type:_t.back,scrollElRef:b,scrollPosition:h,onClick:z,mounted:f}),s.jsx(Hr,{isRTL:g,type:_t.forward,scrollElRef:b,scrollPosition:h,onClick:T,mounted:f})]}),s.jsx(D,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:b,onScroll:w},children:c.Children.map(t,E=>s.jsx(D.Item,{className:We.item,as:"li",children:E}))})]}))},ri={root:"_root_1feer_1"},Fn=e=>{const{name:t,value:n,type:r,onChange:o,onFocus:i,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:u,attributes:h}=e,m=S(ri.root,u);return s.jsx("input",C(v({},h),{className:m,type:r,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:o,onFocus:i||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},Rr=c.createContext(null),oi=()=>c.useContext(Rr),Ur=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=d=>{const{event:f,value:u,checked:h}=d;if(!u)return;let m=[...o];h?m.push(u):m=m.filter(g=>g!==u),t&&t({name:n,value:m,event:f})};return s.jsx(Rr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},si=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||[]),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(Ur,C(v({},e),{value:r,defaultValue:void 0,onChange:i}))},ii=e=>{const{value:t}=e;return t!==void 0?s.jsx(Ur,v({},e)):s.jsx(si,v({},e))},Kr=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}),Je={root:"_root_187rd_1",decorator:"_decorator_187rd_11",field:"_field_187rd_15",icon:"_icon_187rd_44",input:"_input_187rd_54","--error":"_--error_187rd_60","--disabled":"_--disabled_187rd_91"},ai=e=>{var $;const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,u=oi(),h=Ye(),m=(h==null?void 0:h.hasError)||e.hasError||(u==null?void 0:u.hasError),g=(h==null?void 0:h.disabled)||e.disabled||(u==null?void 0:u.disabled),b=u?($=u.value)==null?void 0:$.includes(n):e.checked,x=u?void 0:e.defaultChecked,y=u?u.name:e.name,w=c.useRef(null),p=S(Je.root,l,m&&Je["--error"],g&&Je["--disabled"]),j=z=>{if(!y)return;const{checked:T}=z.target,E={name:y,value:n,checked:T,event:z};r&&r(E),u!=null&&u.onChange&&u.onChange(E)};return ce(()=>{w.current.indeterminate=a||!1},[a,b]),s.jsxs("label",C(v({},d),{className:p,children:[s.jsxs("span",{className:Je.field,children:[s.jsx(Fn,{className:Je.input,type:"checkbox",checked:b,defaultChecked:x,name:y,disabled:g,value:n,onChange:j,onFocus:o,onBlur:i,attributes:C(v({},f),{ref:w})}),s.jsx("div",{className:Je.decorator,children:s.jsx(le,{svg:Kr,className:Je.icon})})]}),t&&s.jsx("span",{className:Je.text,children:t})]}))},li={root:"_root_1c40o_1"},ci=e=>{const{children:t,padding:n=4,width:r,className:o,attributes:i}=e,a=S(li.root,o);return s.jsx(D,{attributes:i,className:a,paddingInline:n,width:r,maxWidth:"100%",children:t})},Tt={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},di=e=>{const{children:t,align:n,onClose:r,hideCloseButton:o,variant:i,closeAriaLabel:a,className:l,attributes:d}=e,f=S(Tt.root,l,i&&Tt[`--variant-${i}`],n&&Tt[`--align-${n}`],o&&Tt["--hide-close"]),u=i==="media"?"div":Ce.Aligner;return s.jsxs("div",C(v({},d),{className:f,children:[t,!o&&s.jsx(u,{className:Tt.close,children:s.jsx(Ce,C(v({size:"small"},i==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:r,attributes:{"aria-label":r?a:void 0},icon:Dr}))})]}))},ui={root:"_root_r7flr_1"},_i=e=>{const{children:t}=e;return s.jsx("div",{className:ui.root,children:t})},Yr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},mi=e=>{const{children:t,active:n,className:r,attributes:o}=e,i=S(Yr.root,n&&Yr["--active"],r);return s.jsx(Q,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:o,children:t})},on={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},fi=e=>{const{src:t,alt:n,width:r,height:o,onLoad:i,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:u,attributes:h,imageAttributes:m}=e,[g,b]=c.useState("loading"),x=hn(f),y=vn(r),w=kt(o),p=S(on.root,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,d&&on[`--display-mode-${d}`],u),j=S(on.image,p),$=S(on.fallback,p),z=v(v({},y==null?void 0:y.variables),w==null?void 0:w.variables),T=P=>{b("success"),i==null||i(P)},E=P=>{b("error"),a==null||a(P)};return c.useEffect(()=>{b("loading")},[t]),(g==="error"||!t)&&l?typeof l=="string"?s.jsx("img",C(v({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:z})):s.jsx("div",C(v({},h),{className:$,style:z,children:l})):s.jsx("img",C(v(v({},h),m),{src:t,alt:n,role:n?void 0:"presentation",onLoad:T,onError:E,className:j,style:z}))},Ln=e=>{const[t,n]=c.useState(e||!1),r=c.useCallback(()=>{n(!0)},[]),o=c.useCallback(()=>{n(!1)},[]),i=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:r,deactivate:o,toggle:i}},hi=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),Gr=()=>{const[e,t]=c.useState(!1),n=c.useRef(),r=c.useRef(!1),o=c.useCallback(()=>{const{body:a}=document,l=a.getBoundingClientRect();if(r.current=l.left+l.right<window.innerWidth,n.current=a.style.overflow,a.style.overflow="hidden",r.current){const d=hi();document.body.style.paddingRight=`${d}px`}t(!0)},[t,r,n]),i=c.useCallback(()=>{document.body.style.overflow=n.current||"",r.current&&(document.body.style.paddingRight=""),t(!1)},[t,r,n]);return{scrollLocked:e,lockScroll:o,unlockScroll:i}},mt={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Xr=e=>{const{active:t,children:n,transparent:r,onClose:o,className:i,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),u=c.useRef(!1),h=c.useRef(null),{lockScroll:m,unlockScroll:g}=Gr(),{active:b,activate:x,deactivate:y}=Ln(t||!1),{active:w,activate:p,deactivate:j}=Ln(t||!1),$=yr(t,f),z=S(mt.root,w&&mt["--visible"],r&&mt["--transparent"],i),T=V=>{if(!f.current)return;const L=f.current.firstChild;if(L)return L.contains(V)},E=()=>{f.current&&(h.current=Rt(f.current))},P=()=>{h.current&&(h.current(),h.current=null)},U=c.useCallback(()=>{!w||!$()||o&&o()},[w,$]),M=V=>{u.current=!T(V.target)},A=V=>{const L=!T(V.target);u.current&&L&&!r&&U()},q=V=>{V.propertyName!=="opacity"||V.target!==V.currentTarget||w||(r||g(),y())};return rt({Escape:U},[U]),c.useEffect(()=>{t&&!b&&x(),!t&&b&&j()},[t,x,j,b]),c.useEffect(()=>{b&&(r||m(),$t(()=>p()))},[b,p,m,r]),c.useEffect(()=>{if(b)return E(),()=>P()},[b]),c.useEffect(()=>()=>{r||g()},[g,r]),ce(()=>{d(!0)},[]),!b||!l?null:s.jsx(Zt,{children:s.jsx(Zt.Scope,{children:V=>s.jsx("div",C(v({},a),{ref:V,role:"button",tabIndex:-1,className:z,onMouseDown:M,onMouseUp:A,onTransitionEnd:q,children:s.jsx("div",{className:mt.wrapper,children:s.jsx("div",{className:mt.inner,children:s.jsx("div",{className:mt.content,ref:f,children:typeof n=="function"?n({active:w}):n})})})}))})})},Dn={root:"_root_1cqfg_1","--position-center":"_--position-center_1cqfg_1","--position-bottom":"_--position-bottom_1cqfg_1","--position-start":"_--position-start_1cqfg_1","--position-end":"_--position-end_1cqfg_1","--active":"_--active_1cqfg_88","--position-center--m":"_--position-center--m_1cqfg_1","--position-bottom--m":"_--position-bottom--m_1cqfg_1","--position-start--m":"_--position-start--m_1cqfg_1","--position-end--m":"_--position-end--m_1cqfg_1","--position-center--l":"_--position-center--l_1cqfg_1","--position-bottom--l":"_--position-bottom--l_1cqfg_1","--position-start--l":"_--position-start--l_1cqfg_1","--position-end--l":"_--position-end--l_1cqfg_1","--position-center--xl":"_--position-center--xl_1cqfg_1","--position-bottom--xl":"_--position-bottom--xl_1cqfg_1","--position-start--xl":"_--position-start--xl_1cqfg_1","--position-end--xl":"_--position-end--xl_1cqfg_1"},Jr=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Qr=()=>c.useContext(Jr),vi=e=>{const{children:t}=e,{id:n,setTitleMounted:r}=Qr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(Q,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},gi=e=>{const{children:t}=e,{id:n,setSubtitleMounted:r}=Qr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(Q,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},Vn=e=>{const{children:t,onClose:n,active:r,size:o,padding:i=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,u=ze(),[h,m]=c.useState(!1),[g,b]=c.useState(!1),x=Sn(i),y=c.useMemo(()=>({titleMounted:h,setTitleMounted:m,subtitleMounted:g,setSubtitleMounted:b,id:u}),[u,g,h]);return s.jsx(Xr,{onClose:n,active:r,transparent:l,children:({active:w})=>{const p=S(Dn.root,d,x==null?void 0:x.classNames,w&&Dn["--active"],W(Dn,"--position",a));return s.jsx(Jr.Provider,{value:y,children:s.jsx("div",C(v({},f),{style:v(v({},x==null?void 0:x.variables),te("--rs-modal-size",o)),"aria-labelledby":h?`${u}-title`:void 0,"aria-describedby":g?`${u}-subtitle`:void 0,className:p,"aria-modal":"true",role:"dialog",children:t}))})}})};Vn.Title=vi,Vn.Subtitle=gi;const It={root:"_root_1ux6v_1",value:"_value_1ux6v_9","--duration":"_--duration_1ux6v_23","--size-small":"_--size-small_1ux6v_27","--size-medium":"_--size-medium_1ux6v_31","--color-primary":"_--color-primary_1ux6v_35","--color-critical":"_--color-critical_1ux6v_39","--color-positive":"_--color-positive_1ux6v_43","--color-white":"_--color-white_1ux6v_47"},bi=e=>{const{value:t=0,min:n=0,max:r=100,color:o="primary",size:i="medium",duration:a,className:l,attributes:d}=e,f=S(It.root,l,o&&It[`--color-${o}`],i&&It[`--size-${i}`],!!a&&It["--duration"]),u=r-n,h=t-n,b=`${Math.max(n,Math.min(r,h))/u*100-100}%`;return s.jsx("div",C(v({role:"progressbar"},d),{className:f,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":t,children:s.jsx("div",{className:It.value,style:{"--rs-progress-value":b,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Zr=c.createContext(null),pi=()=>c.useContext(Zr),eo=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return s.jsx(Zr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},xi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||null),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(eo,C(v({},e),{value:r,defaultValue:void 0,onChange:i}))},wi=e=>{const{value:t}=e;return t!==void 0?s.jsx(eo,v({},e)):s.jsx(xi,v({},e))},ot={root:"_root_1o7zq_1",input:"_input_1o7zq_10",decorator:"_decorator_1o7zq_10",field:"_field_1o7zq_14","--error":"_--error_1o7zq_48",text:"_text_1o7zq_60","--disabled":"_--disabled_1o7zq_71"},yi=e=>{const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),u=pi(),h=(f==null?void 0:f.hasError)||e.hasError||(u==null?void 0:u.hasError),m=(f==null?void 0:f.disabled)||e.disabled||(u==null?void 0:u.disabled),g=u?u.value===n:e.checked,b=u?void 0:e.defaultChecked,x=u?u.name:e.name,y=S(ot.root,a,h&&ot["--error"],m&&ot["--disabled"]),w=p=>{if(!x)return;const{checked:j}=p.target,$={name:x,value:n,checked:j,event:p};r&&r($),u!=null&&u.onChange&&u.onChange($)};return s.jsxs("label",C(v({},l),{className:y,children:[s.jsxs("span",{className:ot.field,children:[s.jsx(Fn,{className:ot.input,type:"radio",checked:g,defaultChecked:b,name:x,disabled:m,value:n,onChange:w,onFocus:o,onBlur:i,attributes:d}),s.jsx("div",{className:ot.decorator})]}),t&&s.jsx("span",{className:ot.text,children:t})]}))},to={short:4e3,long:8e3},Mt=["top-start","top","top-end","bottom-start","bottom","bottom-end"],no={queues:Mt.reduce((e,t)=>v({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},sn=c.createContext(no),ji=()=>{const{add:e,hide:t}=c.useContext(sn);return c.useMemo(()=>({show:e,hide:t}),[e,t])},De={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},Ci=e=>{const{size:t="small",text:n,children:r,color:o="inverted",icon:i,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:u}=e;let h=o==="inverted"||o==="neutral"?"elevation-overlay":o;o==="neutral"&&(h=f?"neutral":"elevation-overlay");const m=o==="neutral"?"neutral-faded":"transparent",g=t==="small"?"span":"div",b=t==="large";let x=[];l&&(x=Array.isArray(l)?l:[l]);const y=(a||n)&&s.jsxs(s.Fragment,{children:[a&&s.jsxs(Q,{variant:"body-3",weight:"bold",as:g,children:[a," "]}),s.jsx(Q,{variant:"body-3",as:g,children:n})]}),w=s.jsxs(D,{backgroundColor:h,borderColor:m,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:b?"start":"center",className:De.toast,attributes:u,children:[i&&s.jsx(le,{size:5,svg:i,className:De.icon}),d&&!i&&s.jsx(D.Item,{children:d}),s.jsx(D.Item,{grow:!0,children:s.jsxs(D,{direction:b?"column":"row",align:b?"start":"center",gap:3,children:[s.jsx(D.Item,{grow:!0,children:y&&r||t!=="small"?s.jsxs(D,{gap:.5,children:[y,r&&s.jsx(D,{gap:3,children:r})]}):y||r}),x.length&&s.jsx(D,{direction:"row",align:"center",gap:2,children:x.map((p,j)=>{const $=t==="large"?j===0:j===x.length-1,T={variant:$?"solid":"ghost",size:"small",color:$?o==="neutral"||o==="inverted"?"neutral":"white":"inherit",elevated:o!=="neutral"};return p.type===Ce?c.createElement(Ce,C(v(v({},T),p.props),{key:j})):p})})]})})]});return o==="inverted"?s.jsx(lt,{colorMode:"inverted",children:w}):w},ki=e=>{const{toastProps:t,id:n,status:r,inspected:o,index:i}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(sn),[u,h]=c.useState(),m=c.useRef(),g=c.useRef(!1),b=c.useRef(null),x=c.useRef(null),y=r==="entered",w=S(De.container,y&&De["container--visible"],i===0&&De[`container--index-${i}`],!o&&(i===1||i===2)&&De[`container--index-${i}`],!o&&i>=3&&De["container--index-overflow"]),p=c.useCallback(()=>{m.current&&clearTimeout(m.current)},[]),j=c.useCallback(()=>{p();const z=typeof a=="string"?to[a]:a;a!==0&&(m.current=setTimeout(()=>{d(n)},z!=null?z:to.short))},[d,n,a,p]),$=z=>{z.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(o?p():j())},[o,j,p,y]),c.useEffect(()=>{x.current&&h(x.current.clientHeight),l(n),j()},[l,n,j]),c.useEffect(()=>{x.current&&(y?b.current=Rt(x.current,{includeTrigger:!0,mode:"content-menu"}):b.current&&br()&&(b.current(),b.current=null))},[y]),c.useEffect(()=>{if(!y||i>0)return;const z=()=>{g.current=!0,$t(()=>{g.current=!1}),x.current&&h(x.current.clientHeight)};return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[y,i]),s.jsx("li",{className:w,style:{height:r==="entered"?`calc(${u}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:g.current?"0s":void 0},onTransitionEnd:$,onFocus:p,onBlur:j,children:s.jsx("span",{className:De.wrapper,children:s.jsx(Ci,C(v({},t),{collapsed:i>0&&!o,attributes:{ref:x}}))})})},Ni=e=>{const{position:t}=e,{queues:n,options:r}=c.useContext(sn),[o,i]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:u}=(r==null?void 0:r[t])||{},h=S(De.region,De[`region--position-${t}`]),m=d.filter(p=>p.status==="entered").length;let g=0;const b=()=>{a.current=!0},x=p=>{let j=p.target,$=!1;for(;j&&j!==l.current&&!$;)$=j.matches(pr),j=j.parentElement;$||i(z=>!z),a.current=!1},y=()=>{a.current||i(!0)},w=()=>{a.current||i(!1)};return c.useEffect(()=>{d.length===0&&i(!1)},[d.length]),d.length?s.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:l,onTouchStart:b,onClick:x,onMouseEnter:y,onMouseLeave:w,style:{width:f},children:d.map((p,j)=>{const $=m-j+g-1;return p.status!=="entered"&&(g+=1),s.jsx(ki,C(v({},p),{index:$,inspected:o||!!u}),p.id)})}):null};let $i=0;const zi=()=>`__rs-toast-${$i++}`,Ei=(e,t)=>{let n;switch(t.type){case"add":const r=t.payload.toastProps||{},{position:o="bottom-end"}=r,i=Ae(r,["position"]);return C(v({},e),{[o]:[...e[o],{id:t.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:a}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].map(u=>u.status!=="entering"?u:u.id===a?C(v({},u),{status:"entered"}):u)}),n;case"hide":const{id:l}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].map(u=>u.id===l?C(v({},u),{status:"exiting"}):u)}),n;case"remove":const{id:d}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].filter(u=>u.id!==d)}),n}},Ti=e=>{const{children:t,options:n}=e,[r,o]=c.useReducer(Ei,no.queues),i=c.useCallback(u=>{const h=zi();return o({type:"add",payload:{toastProps:u,id:h}}),h},[]),a=c.useCallback(u=>{o({type:"show",payload:{id:u}})},[]),l=c.useCallback(u=>{o({type:"hide",payload:{id:u}})},[]),d=c.useCallback(u=>{o({type:"remove",payload:{id:u}})},[]),f=c.useMemo(()=>({queues:r,add:i,show:a,hide:l,remove:d,inspecting:!1,options:n}),[r,a,l,i,d,n]);return s.jsxs(sn.Provider,{value:f,children:[t,Mt.map(u=>s.jsx(Ni,{position:u},u))]})},Ii=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(jn,"true")},t=()=>{document.documentElement.removeAttribute(jn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},lc="",Mi={root:"_root_18j53_1"},Si=e=>{const{children:t,defaultRTL:n,defaultViewport:r="s",toastOptions:o}=e,i=ps(n);return Ii(),s.jsx(zn.Provider,{value:{rtl:i,defaultViewport:r},children:s.jsx(gs,{children:s.jsx(Ti,{options:o,children:t})})})},Pi=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:r,className:o}=e,i=S(Mi.root,o);return s.jsx(Ms,{defaultMode:r,children:s.jsx(lt,{name:t,defaultName:n,className:i,children:s.jsx(Si,C(v({},e),{children:e.children}))})})},St={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},Ai=e=>{const{children:t,backgroundSlot:n,position:r="cover",attributes:o,className:i,scrimClassName:a}=e,l=S(St.root,!!n&&St["--with-background"],r&&St[`--position-${r}`],i),d=S(St.scrim,a);return s.jsxs("div",C(v({},o),{className:l,children:[n,s.jsx("div",{className:d,children:s.jsx("div",{className:St.content,children:t})})]}))},Fi=()=>s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ve={root:"_root_1jhw5_1",input:"_input_1jhw5_18",slot:"_slot_1jhw5_45",arrow:"_arrow_1jhw5_60","--size-medium":"_--size-medium_1jhw5_1","--size-large":"_--size-large_1jhw5_1","--size-xlarge":"_--size-xlarge_1jhw5_1","--variant-faded":"_--variant-faded_1jhw5_115","--variant-headless":"_--variant-headless_1jhw5_124","--status-error":"_--status-error_1jhw5_129","--placeholder":"_--placeholder_1jhw5_144","--disabled":"_--disabled_1jhw5_148","--size-medium--m":"_--size-medium--m_1jhw5_1","--size-large--m":"_--size-large--m_1jhw5_1","--size-xlarge--m":"_--size-xlarge--m_1jhw5_1","--size-medium--l":"_--size-medium--l_1jhw5_1","--size-large--l":"_--size-large--l_1jhw5_1","--size-xlarge--l":"_--size-xlarge--l_1jhw5_1","--size-medium--xl":"_--size-medium--xl_1jhw5_1","--size-large--xl":"_--size-large--xl_1jhw5_1","--size-xlarge--xl":"_--size-xlarge--xl_1jhw5_1"},Li=e=>{var q,V;const{onChange:t,onClick:n,onFocus:r,onBlur:o,name:i,value:a,defaultValue:l,placeholder:d,options:f,children:u,icon:h,startSlot:m,size:g="medium",variant:b="outline",className:x,attributes:y}=e,[w,p]=c.useState(a===void 0?!l:!a),j=Ye(),$=ze(e.id),z=((q=j==null?void 0:j.attributes)==null?void 0:q.id)||((V=e.inputAttributes)==null?void 0:V.id)||$,T=(j==null?void 0:j.disabled)||e.disabled,E=(j==null?void 0:j.hasError)||e.hasError,P=v(v({},e.inputAttributes),j==null?void 0:j.attributes),U=S(Ve.root,x,g&&W(Ve,"--size",g),E&&Ve["--status-error"],T&&Ve["--disabled"],w&&f&&Ve["--placeholder"],b&&Ve[`--variant-${b}`]),M=L=>{const Z=L.target.value;a===void 0&&p(!Z),t&&t({name:i,value:Z,event:L})};c.useEffect(()=>{a!==void 0&&p(!a)},[a]);const A=(m||h)&&s.jsx("div",{className:Ve.slot,children:h?s.jsx(le,{size:$e(g,L=>L==="large"?5:L==="xlarge"?6:4),svg:h}):m});return s.jsxs("div",C(v({},y),{className:U,children:[f?s.jsxs(s.Fragment,{children:[A,s.jsxs("select",C(v({},P),{className:Ve.input,disabled:T,name:i,value:a,defaultValue:l,onChange:M,onFocus:r||(P==null?void 0:P.onFocus),onBlur:o||(P==null?void 0:P.onBlur),id:z,children:[d&&s.jsx("option",{value:"",children:d}),f.map(L=>s.jsx("option",{value:L.value,disabled:L.disabled,children:L.label},L.value))]}))]}):s.jsxs(s.Fragment,{children:[s.jsxs(Fe,{className:Ve.input,disabled:T,onClick:n,attributes:C(v({},P),{onFocus:r||(P==null?void 0:P.onFocus),onBlur:o||(P==null?void 0:P.onBlur)}),children:[A,u||(d?s.jsx(Q,{color:"neutral-faded",children:d}):null)]}),s.jsx("input",{type:"hidden",value:a,name:i})]}),s.jsx("div",{className:Ve.arrow,children:s.jsx(le,{svg:Fi,color:T?"disabled":"neutral-faded",size:$e(g,L=>L==="large"||L==="xlarge"?5:4)})})]}))},Di={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Vi=e=>{const{borderRadius:t="small",width:n,height:r,className:o,attributes:i}=e,a=S(Di.root,o);return s.jsx(D,{backgroundColor:"disabled",width:n,height:r,borderRadius:t,className:a,attributes:i})},Qe={root:"_root_k9a0x_1",bar:"_bar_k9a0x_10",input:"_input_k9a0x_19",selection:"_selection_k9a0x_28",tooltip:"_tooltip_k9a0x_34",thumb:"_thumb_k9a0x_50","thumb--active":"_thumb--active_k9a0x_1","--disabled":"_--disabled_k9a0x_104"},qi=(e,t)=>{const{name:n,value:r,disabled:o,active:i,position:a,max:l,min:d,onChange:f,onDragStart:u,renderValue:h}=e,m=c.useId(),g=S(Qe.thumb,i&&Qe["thumb--active"]),b=h?h({value:r}):r,x=y=>{f(+y.target.value)};return s.jsxs(s.Fragment,{children:[s.jsx("input",{className:Qe.input,type:"range",name:n,value:r,onChange:x,disabled:o,max:l,min:d,"aria-labelledby":m}),s.jsx("div",{ref:t,className:g,onMouseDown:u,onTouchStart:u,style:{insetInlineStart:`${a}%`},id:m,"aria-hidden":"true",children:s.jsx(lt,{className:Qe.tooltip,colorMode:"inverted",children:s.jsx(Q,{variant:"caption-1",weight:"medium",children:b})})})]})},ro=c.forwardRef(qi),oo=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,qn=(e,t)=>Math.round(e/t)*t,On=e=>{var ke;const{name:t,range:n,max:r,min:o,step:i=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:u}=e,h=n&&e.minValue!==void 0?qn(e.minValue,i):void 0,m=qn(n?e.maxValue:e.value,i),g=c.useRef(null),b=c.useRef(null),x=c.useRef(null),[y,w]=c.useState(null),[p]=Ge(),j=Ye(),$=ze(),z=((ke=j==null?void 0:j.attributes)==null?void 0:ke.id)||$,T=`${z}-min`,E=`${z}-max`,P=(j==null?void 0:j.disabled)||e.disabled,U=S(Qe.root,P&&Qe["--disabled"],f),M=c.useCallback(re=>{if(!g.current)return;const H=g.current.clientWidth;let G=(re-g.current.getBoundingClientRect().left)/H;p&&(G=1-G);let ie=(r-o)*G+o;return ie=Math.max(o,Math.min(r,ie)),qn(ie,i)},[r,o,p,i]),A=re=>(re-o)/(r-o)*100,q=c.useCallback((re,H)=>{if(!n)return;const Y=H!=null&&H.commit?l:a;Y==null||Y({minValue:re,maxValue:m,name:t})},[m,t,n]),V=c.useCallback((re,H)=>{if(n){const G=H!=null&&H.commit?l:a;G==null||G({minValue:h,maxValue:re,name:t});return}const Y=H!=null&&H.commit?l:a;Y==null||Y({value:re,name:t})},[h,t,n]),L=({nativeEvent:re})=>{if(P)return;let H,Y;const G=oo(re),ie=M(G);[{ref:b,id:T},{ref:x,id:E}].forEach(X=>{if(!X.ref.current)return;const pe=X.ref.current,ve=Math.abs(pe.getBoundingClientRect().left-G);(H===void 0||ve<=H)&&(H=ve,Y=X.id)}),!(!Y||ie===void 0)&&(Y===T&&q(ie),Y===E&&V(ie),w(Y))},Z=()=>{P||w(T)},fe=()=>{P||w(E)},he=c.useCallback(()=>{y===T&&h!==void 0&&q(h,{commit:!0}),y===E&&V(m,{commit:!0}),w(null)},[h,m,q,V,y,T,E]),se=c.useCallback(re=>{if(!y)return;const H=oo(re),Y=M(H);if(Y===void 0)return;let G=y;y===T&&Y>m&&(G=E),y===E&&h&&Y<h&&(G=T),G===T&&q(Y),G===E&&V(Y),y!==G&&w(G)},[y,h,m,M,V,q,E,T]);c.useEffect(()=>(window.addEventListener("mouseup",he),window.addEventListener("touchend",he),window.addEventListener("mousemove",se),window.addEventListener("touchmove",se),()=>{window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),window.removeEventListener("mousemove",se),window.removeEventListener("touchmove",se)}),[he,se]);const ee=h&&A(h),He=A(m);return s.jsxs("div",C(v({},u),{className:U,onMouseDown:L,onTouchStart:L,children:[s.jsx("div",{className:Qe.bar,ref:g,children:s.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${ee||0}%`,width:`${He-(ee||0)}%`}})}),h!==void 0&&ee!==void 0&&s.jsx(ro,{id:T,active:T===y,name:t,disabled:P,onChange:q,value:h,onDragStart:Z,position:ee,max:r,min:o,ref:b,renderValue:d}),s.jsx(ro,{id:E,active:E===y,name:t,disabled:P,onChange:V,value:m,onDragStart:fe,position:He,max:r,min:o,ref:x,renderValue:d})]}))},Oi=e=>{const{min:t,max:n,onChange:r,range:o}=e,i="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,a="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(o?n:t),[l,d]=c.useState(i),[f,u]=c.useState(a),h=g=>{o||(u(g.value),r==null||r(g))},m=g=>{o&&(d(g.minValue),u(g.maxValue),r==null||r(g))};return o?s.jsx(On,C(v({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:m})):s.jsx(On,C(v({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Bi=e=>{const o=e,{min:t=0,max:n=100}=o,r=Ae(o,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?s.jsx(On,C(v({},r),{min:t,max:n})):s.jsx(Oi,C(v({},r),{min:t,max:n}))},Wi={verticalDivider:"_verticalDivider_oa23g_1"},Hi=e=>{const{title:t,subtitle:n,children:r,direction:o,className:i,attributes:a,labelDisplay:l,step:d,completed:f,active:u,last:h}=e,m=l&&$e(l,b=>b==="hidden"),g=s.jsx(D,{gap:3,grow:!0,children:s.jsxs(D.Item,{children:[s.jsx(Q,{variant:"body-3",weight:"medium",children:t}),s.jsx(Q,{variant:"caption-1",color:"neutral-faded",children:n})]})});return s.jsxs(D,{children:[s.jsxs(D,{attributes:a,className:i,direction:"row",gap:2,align:"center",position:"static",children:[s.jsxs(D.Item,{children:[s.jsx(D,{align:"center",justify:"center",backgroundColor:u||f?"primary":"neutral-faded",borderColor:u||f?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:s.jsx(Q,{variant:"body-3",weight:u?"bold":"medium",children:f?s.jsx(le,{svg:Kr,size:4}):d})}),o==="column"&&!h&&s.jsx(Ft,{vertical:!0,className:Wi.verticalDivider})]}),l?s.jsx(Dt,{hide:m,children:g}):g]}),o==="column"&&r&&s.jsx(lr,{active:u,children:s.jsx(D,{paddingStart:10,paddingTop:2,children:r})})]})},Ri=e=>null,so=e=>{const{children:t,direction:n="row",activeId:r,labelDisplay:o,className:i,attributes:a}=e,l=n==="column",d=c.Children.count(t);return s.jsx(D,{attributes:a,direction:n,align:l?"stretch":"center",className:i,gap:3,wrap:!1,children:c.Children.map(t,(f,u)=>{const h=f.props.id||`${u}`;return s.jsxs(c.Fragment,{children:[s.jsx(Hi,C(v({},f.props),{id:f.props.id||`${u}`,active:(r==null?void 0:r.toString())===h,step:u+1,last:u===d-1,direction:n,labelDisplay:o})),!l&&u<d-1&&s.jsx(D,{grow:!0,children:s.jsx(Ft,{})})]},u)})})};so.Item=Ri;const ft={root:"_root_1zzd0_1",input:"_input_1zzd0_10",area:"_area_1zzd0_22",thumb:"_thumb_1zzd0_26","root--size-small":"_root--size-small_1zzd0_82","root--reversed":"_root--reversed_1zzd0_102"},Ui=e=>{var p;const{children:t,name:n,checked:r,size:o,reversed:i,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:u,attributes:h}=e,m=S(ft.root,o&&ft[`root--size-${o}`],i&&ft["root--reversed"],u),g=Ye(),b=ze((g==null?void 0:g.attributes.id)||e.id||((p=e.inputAttributes)==null?void 0:p.id)),x=v(v({},e.inputAttributes),g==null?void 0:g.attributes),y=(g==null?void 0:g.disabled)||e.disabled,w=j=>{l&&l({name:n,event:j,checked:j.target.checked})};return s.jsxs("label",C(v({},h),{className:m,children:[s.jsx("input",C(v({type:"checkbox"},x),{className:ft.input,name:n,checked:r,defaultChecked:a,disabled:y,onChange:w,onFocus:d||(x==null?void 0:x.onFocus),onBlur:f||(x==null?void 0:x.onBlur),id:b})),s.jsx("span",{className:ft.area,"aria-hidden":"true",children:s.jsx("span",{className:ft.thumb})}),t&&s.jsx(Q,{variant:"body-3",weight:"medium",children:t})]}))},Ki={literal:"_literal_tfgjf_1",unit:"_unit_tfgjf_5","literal--m":"_literal--m_tfgjf_1","unit--m":"_unit--m_tfgjf_1","literal--l":"_literal--l_tfgjf_1","unit--l":"_unit--l_tfgjf_1","literal--xl":"_literal--xl_tfgjf_1","unit--xl":"_unit--xl_tfgjf_1"},Yi=e=>{if(!e)return null;const t=te("--rs-min-w",e);return{classNames:W(Ki,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ze={root:"_root_1we4q_1",table:"_table_1we4q_14",row:"_row_1we4q_21",cell:"_cell_1we4q_25","cell--align-start":"_cell--align-start_1we4q_1","cell--align-center":"_cell--align-center_1we4q_1","cell--align-end":"_cell--align-end_1we4q_1","--row-highlighted":"_--row-highlighted_1we4q_49","--border-outer":"_--border-outer_1we4q_53","--border-column":"_--border-column_1we4q_57"},io=e=>{const{minWidth:t,rowSpan:n,colSpan:r,align:o,tagName:i,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:u}=e,h=e.width==="auto"?"0px":e.width,m=vn(h),g=Yi(t||h),b=S(Ze.cell,m==null?void 0:m.classNames,g==null?void 0:g.classNames,o&&Ze[`cell--align-${o}`]),x=v(v(v(v({},m==null?void 0:m.variables),g==null?void 0:g.variables),te("--rs-table-p-vertical",d!=null?d:a)),te("--rs-table-p-horizontal",l!=null?l:a));return s.jsx(i,C(v({},u),{className:b,rowSpan:n,colSpan:r,style:x,children:f}))},Gi=e=>s.jsx(io,C(v({},e),{tagName:"td"})),Xi=e=>s.jsx(io,C(v({},e),{tagName:"th"})),Ji=e=>{const{highlighted:t,children:n,attributes:r}=e,o=S(Ze.row,t&&Ze["--row-highlighted"]);return s.jsx("tr",C(v({},r),{className:o,children:n}))},Bn=e=>s.jsx("tbody",{children:e.children}),ao=e=>s.jsx("thead",{children:e.children}),ht=e=>{const{children:t,border:n,columnBorder:r,className:o,attributes:i}=e,a=S(Ze.root,o,n&&Ze["--border-outer"],r&&Ze["--border-column"]),[l]=c.Children.toArray(t);return s.jsx("div",C(v({},i),{className:a,children:s.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===Bn||l.type===ao)?t:s.jsx(Bn,{children:t})})}))};ht.Cell=Gi,ht.Heading=Xi,ht.Row=Ji,ht.Body=Bn,ht.Head=ao;const lo=c.createContext({}),Qi=lo.Provider,Wn=e=>{const r=c.useContext(lo),{id:t}=r,n=Ae(r,["id"]);return C(v({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},co=e=>{const{children:t,value:n,onChange:r,onSilentChange:o,itemWidth:i,variant:a,name:l,direction:d="row",size:f="medium"}=e,u=ze(),h=c.useRef(null),m=c.useRef(h.current),g=c.useRef(null),[b,x]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=w=>{w!==void 0&&o&&o({value:w,name:l})};return s.jsx(Qi,{value:{value:n,name:l,size:f,direction:d,itemWidth:i,variant:a,onChange:r,id:u,setDefaultValue:y,elActiveRef:h,elPrevActiveRef:m,elScrollableRef:g,selection:b,setSelection:x},children:t})},Zi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t),i=({value:l})=>{o(l),n&&n({value:l})},a=({value:l})=>{o(l)};return s.jsx(co,C(v({},e),{onChange:i,onSilentChange:a,value:r,defaultValue:void 0}))},ne={root:"_root_mz4y6_1",list:"_list_mz4y6_12",inner:"_inner_mz4y6_16",listItem:"_listItem_mz4y6_23",button:"_button_mz4y6_30",buttonContent:"_buttonContent_mz4y6_46",icon:"_icon_mz4y6_59",radio:"_radio_mz4y6_64","--item-active":"_--item-active_mz4y6_72",selector:"_selector_mz4y6_77","--selector-hidden":"_--selector-hidden_mz4y6_95","--selector-animated":"_--selector-animated_mz4y6_99",next:"_next_mz4y6_104",prev:"_prev_mz4y6_105",panel:"_panel_mz4y6_125","--panel-hidden":"_--panel-hidden_mz4y6_133","--direction-row":"_--direction-row_mz4y6_137","--direction-column":"_--direction-column_mz4y6_205",item:"_item_mz4y6_223","--variant-borderless":"_--variant-borderless_mz4y6_258","--variant-pills":"_--variant-pills_mz4y6_259","--variant-pills-elevated":"_--variant-pills-elevated_mz4y6_260","--size-medium":"_--size-medium_mz4y6_331","--size-large":"_--size-large_mz4y6_336","--item-width-equal":"_--item-width-equal_mz4y6_341","--cut-off-start":"_--cut-off-start_mz4y6_360","--cut-off-end":"_--cut-off-end_mz4y6_361","--cut-off-both":"_--cut-off-both_mz4y6_382"},ea=(e,t)=>{const{value:n,children:r,icon:o,href:i,attributes:a}=e,{onChange:l,panelId:d,name:f,size:u,value:h,selection:m,elActiveRef:g,elPrevActiveRef:b,elScrollableRef:x}=Wn(n),y=c.useRef(null),w=h===n,p=w&&m.status==="idle",j=S(ne.item,p&&ne["--item-active"]),$=!!f,z={role:"tab",tabIndex:w?0:-1,"aria-selected":w},T=c.useCallback(()=>{if(!("current"in y))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");b.current=g.current,g.current=y.current},[g,b]),E=()=>{var L,Z,fe;if(i&&!l)return;const P=x.current,U=(L=y.current)==null?void 0:L.parentElement,M=(Z=g.current)==null?void 0:Z.parentElement;if(T(),l&&l({value:n,name:f}),!P||!U||!M||P.scrollWidth===P.clientWidth)return;const A=U.offsetLeft<M.offsetLeft,q=(U.offsetLeft-P.scrollLeft)/P.clientWidth;(A?q<.3:q>.5)&&((fe=y.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{w&&T()},[w,T]),s.jsx("div",C(v({},a),{className:j,ref:y,role:"presentation",children:s.jsxs(Fe,{ref:t,href:i,insetFocus:!0,onClick:f?void 0:E,className:ne.button,as:f?"label":void 0,attributes:C(v({},!$&&z),{"aria-controls":d}),children:[f&&s.jsx(Fn,{type:"radio",name:f,value:n,checked:p,onChange:E,className:ne.radio}),s.jsxs("span",{className:ne.buttonContent,children:[o&&s.jsx(le,{svg:o,className:ne.icon,size:4}),r&&s.jsx(Q,{variant:u==="large"?"body-2":"body-3",children:r})]})]})}))},uo=c.forwardRef(ea),_o=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:_o(e.parentElement,t),ta=e=>{const{children:t,className:n,attributes:r}=e,{value:o,setDefaultValue:i,itemWidth:a,variant:l,name:d,direction:f,size:u,selection:h,setSelection:m,elActiveRef:g,elPrevActiveRef:b,elScrollableRef:x}=Wn(),[y]=Ge(),[w,p]=c.useState(null),j=S(ne.root,u&&ne[`--size-${u}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],w&&ne[`--cut-off-${w}`],n),$=S(ne.selector,h.status==="idle"&&ne["--selector-hidden"],h.status==="animated"&&ne["--selector-animated"]),z=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},T=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},E=()=>{m(M=>C(v({},M),{status:"idle"}))},P=c.useCallback(M=>{if(!x.current)return null;const A=_o(M,x.current);return A?{scaleX:A.clientWidth,scaleY:A.clientHeight,top:A.offsetTop,left:A.offsetLeft}:null},[x]),{ref:U}=rt({"ArrowLeft, ArrowUp":M=>{d||(M.preventDefault(),as(x.current))},"ArrowRight, ArrowDown":M=>{d||(M.preventDefault(),is(x.current))},Home:M=>{d||(M.preventDefault(),ls(x.current))},End:M=>{d||(M.preventDefault(),cs(x.current))}});return ce(()=>{if(o)return;const M=c.Children.toArray(t)[0];!M||M.type!==uo||i(M.props.value)},[o]),ce(()=>{if(!b.current||b.current===g.current)return;const M=P(b.current);M&&m(C(v({},M),{status:"prepared"}))},[o,P]),ce(()=>{if(h.status!=="prepared"||!g.current)return;const M=P(g.current);M&&m(C(v({},M),{status:"animated"}))},[h]),ce(()=>{const M=x.current;if(!M||f==="column")return;const A=()=>{M.clientWidth<M.scrollWidth||p(null);const L=M.scrollLeft*(y?-1:1),Z=L>1,fe=L+M.clientWidth<M.scrollWidth-1;if(fe&&Z)return p("both");if(Z)return p("start");if(fe)return p("end")},q=Eo(A,100);return requestAnimationFrame(()=>{A()}),window.addEventListener("resize",q),M.addEventListener("scroll",q),()=>{window.removeEventListener("resize",q),M.removeEventListener("scroll",q)}},[y]),s.jsxs("div",C(v({},r),{className:j,children:[s.jsx("div",{className:ne.inner,ref:x,children:s.jsxs("div",{className:ne.list,role:"tablist",ref:U,children:[c.Children.map(t,(M,A)=>M?s.jsx("div",{className:ne.listItem,children:M},M.props.value||M.key||A):null),s.jsx("div",{onTransitionEnd:E,className:$,style:{"--rs-tab-selection-x":h.left,"--rs-tab-selection-y":h.top,"--rs-tab-selection-scale-x":h.scaleX,"--rs-tab-selection-scale-y":h.scaleY}})]})}),(w==="start"||w==="both")&&s.jsx("span",{className:ne.prev,children:s.jsx(Ce,{onClick:T,size:"small",icon:Wr,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(w==="end"||w==="both")&&s.jsx("span",{className:ne.next,children:s.jsx(Ce,{onClick:z,size:"small",icon:en,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},na=e=>{const{value:t,children:n}=e,{value:r,panelId:o,buttonId:i}=Wn(t),a=t===r,l=S(ne.panel,!a&&ne["--panel-hidden"]);return s.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:o,"aria-labelledby":i,children:a&&n})},an=e=>{const{value:t}=e;return t!==void 0?s.jsx(co,v({},e)):s.jsx(Zi,v({},e))};an.Item=uo,an.List=ta,an.Panel=na;const vt={root:"_root_13usd_1",input:"_input_13usd_5","--size-medium":"_--size-medium_13usd_1","--size-large":"_--size-large_13usd_1","--size-xlarge":"_--size-xlarge_13usd_1","--variant-faded":"_--variant-faded_13usd_69","--variant-headless":"_--variant-headless_13usd_80","--status-error":"_--status-error_13usd_87","--size-medium--m":"_--size-medium--m_13usd_1","--size-large--m":"_--size-large--m_13usd_1","--size-xlarge--m":"_--size-xlarge--m_13usd_1","--size-medium--l":"_--size-medium--l_13usd_1","--size-large--l":"_--size-large--l_13usd_1","--size-xlarge--l":"_--size-xlarge--l_13usd_1","--size-medium--xl":"_--size-medium--xl_13usd_1","--size-large--xl":"_--size-large--xl_13usd_1","--size-xlarge--xl":"_--size-xlarge--xl_13usd_1"},mo=e=>{var $,z;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:u,attributes:h}=e,m=Ye(),g=ze(e.id),b=(($=m==null?void 0:m.attributes)==null?void 0:$.id)||((z=e.inputAttributes)==null?void 0:z.id)||g,x=(m==null?void 0:m.disabled)||e.disabled,y=(m==null?void 0:m.hasError)||e.hasError,w=v(v({},e.inputAttributes),m==null?void 0:m.attributes),p=S(vt.root,d&&W(vt,"--size",d),y&&vt["--status-error"],x&&vt["--disabled"],f&&vt[`--variant-${f}`],u),j=T=>{t&&t({name:o,value:T.target.value,event:T})};return s.jsx("div",C(v({},h),{"data-rs-aligner-target":!0,className:p,children:s.jsx("textarea",C(v({rows:3},w),{className:vt.input,disabled:x,name:o,placeholder:l,value:i,defaultValue:a,onChange:j,onFocus:n||(w==null?void 0:w.onFocus),onBlur:r||(w==null?void 0:w.onBlur),id:b}))}))};mo.Aligner=qt;const Hn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Rn=e=>{const{children:t,markerSlot:n,className:r,attributes:o}=e,i=n!==null,a=S(Hn.item,!i&&Hn["item--full-width"],r);return s.jsxs(D,{as:"li",direction:"row",align:"stretch",gap:3,attributes:o,className:a,children:[i&&s.jsx("span",{className:Hn.marker,children:n}),s.jsx(D.Item,{grow:!0,children:t})]})},fo=e=>{const{children:t,className:n,attributes:r}=e,o=S(n);return s.jsx("ul",C(v({},r),{className:o,children:c.Children.map(t,(i,a)=>(i==null?void 0:i.type)===Rn?i:s.jsx(Rn,{children:i},a))}))};fo.Item=Rn;const ra={root:"_root_9090g_1"},oa=e=>{const{id:t,text:n,children:r,onOpen:o,onClose:i,position:a="bottom",active:l}=e;return s.jsxs(Xe,{id:t,active:l,position:a,onOpen:o,onClose:i,triggerType:"hover",children:[s.jsx(Xe.Trigger,{children:r}),s.jsx(Xe.Content,{children:s.jsx(lt,{colorMode:"inverted",children:s.jsx(Q,{variant:"caption-1",className:ra.root,children:n})})})]})},gt={m:660,l:900,xl:1280},ho={s:`(max-width: ${gt.m-1}px)`,m:`(min-width: ${gt.m}px) and (max-width: ${gt.l-1}px)`,l:`(min-width: ${gt.l}px) and (max-width: ${gt.xl-1}px)`,xl:`(min-width: ${gt.xl}px)`},sa=e=>{const{defaultViewport:t}=c.useContext(zn),[n,r]=c.useState(t);return ce(()=>{const i=Object.keys(ho).map(a=>{const l=window.matchMedia(ho[a]);return{mq:l,handler:()=>l.matches&&r(a)}});return i.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{i.forEach(({handler:a,mq:l})=>{l.removeEventListener("change",a)})}},[]),n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},ia=e=>{const{w:t="auto",h:n=50,children:r}=e;return s.jsx("div",{style:{width:t,height:n,minWidth:n,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-unit-radius-small)"},children:r})};N.Accordion=pn,N.ActionBar=Xo,N.Actionable=Fe,N.Alert=Qo,N.Autocomplete=Lr,N.Avatar=Rs,N.Badge=Vr,N.Breadcrumbs=Br,N.Button=Ce,N.Card=ti,N.Carousel=ni,N.Checkbox=ai,N.CheckboxGroup=ii,N.Container=ci,N.Dismissible=di,N.Divider=Ft,N.DropdownMenu=we,N.FormControl=Vt,N.Hidden=Dt,N.HiddenVisually=_i,N.Hotkey=mi,N.Icon=le,N.Image=fi,N.Link=Or,N.Loader=qr,N.MenuItem=Pn,N.Modal=Vn,N.Overlay=Xr,N.Placeholder=ia,N.Popover=dt,N.Progress=bi,N.Radio=yi,N.RadioGroup=wi,N.Reshaped=Pi,N.Scrim=Ai,N.Select=Li,N.Skeleton=Vi,N.Slider=Bi,N.Stepper=so,N.Switch=Ui,N.Table=ht,N.Tabs=an,N.Text=Q,N.TextArea=mo,N.TextField=yn,N.Theme=lt,N.Timeline=fo,N.Tooltip=oa,N.View=D,N.classNames=S,N.responsiveClassNames=W,N.responsivePropDependency=$e,N.useFormControl=Ye,N.useHotkeys=rt,N.useIsomorphicLayoutEffect=ce,N.useRTL=Ge,N.useResponsiveClientValue=sa,N.useScrollLock=Gr,N.useTheme=Sr,N.useToast=ji,N.useToggle=Ln,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
@@ -1,7 +1,4 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import * as T from "./Breadcrumbs.types";
|
3
|
-
declare const Breadcrumbs:
|
4
|
-
(props: T.Props): React.JSX.Element;
|
5
|
-
Item: (props: T.ItemProps) => React.JSX.Element;
|
6
|
-
};
|
3
|
+
declare const Breadcrumbs: (props: T.Props) => React.JSX.Element;
|
7
4
|
export default Breadcrumbs;
|
@@ -3,18 +3,10 @@ import React from "react";
|
|
3
3
|
import { classNames } from "../../utilities/helpers.js";
|
4
4
|
import View from "../View/index.js";
|
5
5
|
import Icon from "../Icon/index.js";
|
6
|
-
import Link from "../Link/index.js";
|
7
6
|
import Text from "../Text/index.js";
|
8
7
|
import Button from "../Button/index.js";
|
9
8
|
import IconChevronRight from "../../icons/ChevronRight.js";
|
10
9
|
import IconDotsHorizontal from "../../icons/DotsHorizontal.js";
|
11
|
-
const BreadcrumbsItem = (props) => {
|
12
|
-
const { children, onClick, href, icon, disabled } = props;
|
13
|
-
if (!href && !onClick && !disabled) {
|
14
|
-
return (React.createElement(Text, { variant: "body-3", weight: "medium", color: "neutral" }, children));
|
15
|
-
}
|
16
|
-
return (React.createElement(Link, { onClick: onClick, href: href, icon: icon, disabled: disabled, variant: "plain", color: "inherit" }, children));
|
17
|
-
};
|
18
10
|
const Breadcrumbs = (props) => {
|
19
11
|
const { children, separator, color, defaultVisibleItems, ariaLabel, className, attributes } = props;
|
20
12
|
const visibleItems = defaultVisibleItems && defaultVisibleItems >= 2 ? defaultVisibleItems : null;
|
@@ -50,5 +42,4 @@ const Breadcrumbs = (props) => {
|
|
50
42
|
React.createElement(Text, { variant: "body-3", color: color === "primary" ? "primary" : "neutral-faded" }, itemNode)));
|
51
43
|
}))));
|
52
44
|
};
|
53
|
-
Breadcrumbs.Item = BreadcrumbsItem;
|
54
45
|
export default Breadcrumbs;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import Text from "../Text/index.js";
|
3
|
+
import Link from "../Link/index.js";
|
4
|
+
const BreadcrumbsItem = (props) => {
|
5
|
+
const { children, onClick, href, icon, disabled } = props;
|
6
|
+
if (!href && !onClick && !disabled) {
|
7
|
+
return (React.createElement(Text, { variant: "body-3", weight: "medium", color: "neutral" }, children));
|
8
|
+
}
|
9
|
+
return (React.createElement(Link, { onClick: onClick, href: href, icon: icon, disabled: disabled, variant: "plain", color: "inherit" }, children));
|
10
|
+
};
|
11
|
+
export default BreadcrumbsItem;
|
@@ -1,2 +1,8 @@
|
|
1
|
-
|
1
|
+
import BreadcrumbsItem from "./BreadcrumbsItem";
|
2
|
+
type CompoundComponent = typeof Breadcrumbs & {
|
3
|
+
Item: typeof BreadcrumbsItem;
|
4
|
+
};
|
5
|
+
declare const Breadcrumbs: (props: import("./Breadcrumbs.types").Props) => import("react").JSX.Element;
|
2
6
|
export type { Props as BreadcrumbsProps } from "./Breadcrumbs.types";
|
7
|
+
declare const _default: CompoundComponent;
|
8
|
+
export default _default;
|
@@ -11,7 +11,7 @@ export declare const useFormControl: () => {
|
|
11
11
|
accessKey?: string | undefined;
|
12
12
|
autoFocus?: boolean | undefined;
|
13
13
|
className?: string | undefined;
|
14
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
14
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
15
15
|
contextMenu?: string | undefined;
|
16
16
|
dir?: string | undefined;
|
17
17
|
draggable?: (boolean | "true" | "false") | undefined;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "reshaped",
|
3
3
|
"description": "Professionally crafted design system in React & Figma for building products of any scale and complexity",
|
4
|
-
"version": "2.5.
|
4
|
+
"version": "2.5.9",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"email": "hello@reshaped.so",
|
7
7
|
"homepage": "https://reshaped.so",
|
@@ -84,28 +84,28 @@
|
|
84
84
|
"@commitlint/config-conventional": "18.1.0",
|
85
85
|
"@commitlint/types": "18.1.0",
|
86
86
|
"@size-limit/preset-big-lib": "9.0.0",
|
87
|
-
"@storybook/addon-a11y": "7.
|
88
|
-
"@storybook/react": "7.
|
89
|
-
"@storybook/react-vite": "7.
|
87
|
+
"@storybook/addon-a11y": "7.5.3",
|
88
|
+
"@storybook/react": "7.5.3",
|
89
|
+
"@storybook/react-vite": "7.5.3",
|
90
90
|
"@testing-library/jest-dom": "6.1.4",
|
91
91
|
"@testing-library/react": "14.0.0",
|
92
92
|
"@testing-library/user-event": "14.5.1",
|
93
|
-
"@types/events": "3.0.
|
94
|
-
"@types/jest": "29.5.
|
93
|
+
"@types/events": "3.0.3",
|
94
|
+
"@types/jest": "29.5.8",
|
95
95
|
"@types/node": "20.8.10",
|
96
|
-
"@types/react": "18.2.
|
97
|
-
"@types/react-dom": "18.2.
|
96
|
+
"@types/react": "18.2.37",
|
97
|
+
"@types/react-dom": "18.2.15",
|
98
98
|
"@typescript-eslint/eslint-plugin": "6.9.1",
|
99
99
|
"@typescript-eslint/parser": "6.9.1",
|
100
|
-
"@vitejs/plugin-react": "4.1.
|
100
|
+
"@vitejs/plugin-react": "4.1.1",
|
101
101
|
"chromatic": "7.6.0",
|
102
102
|
"cz-conventional-changelog": "3.3.0",
|
103
103
|
"eslint": "8.52.0",
|
104
104
|
"eslint-config-airbnb-typescript": "17.1.0",
|
105
105
|
"eslint-config-prettier": "9.0.0",
|
106
106
|
"eslint-plugin-import": "2.28.1",
|
107
|
-
"eslint-plugin-jsx-a11y": "6.
|
108
|
-
"eslint-plugin-prettier": "5.0.
|
107
|
+
"eslint-plugin-jsx-a11y": "6.8.0",
|
108
|
+
"eslint-plugin-prettier": "5.0.1",
|
109
109
|
"eslint-plugin-react": "7.33.2",
|
110
110
|
"eslint-plugin-react-hooks": "4.6.0",
|
111
111
|
"identity-obj-proxy": "3.0.0",
|
@@ -123,8 +123,8 @@
|
|
123
123
|
"react-dom": "18.2.0",
|
124
124
|
"resolve-tspaths": "0.8.17",
|
125
125
|
"size-limit": "9.0.0",
|
126
|
-
"storybook": "7.
|
127
|
-
"stylelint": "15.
|
126
|
+
"storybook": "7.5.3",
|
127
|
+
"stylelint": "15.11.0",
|
128
128
|
"stylelint-config-prettier": "9.0.5",
|
129
129
|
"stylelint-config-standard": "34.0.0",
|
130
130
|
"ts-jest": "29.1.1",
|
@@ -103,3 +103,27 @@ export const generation = () => (<Example>
|
|
103
103
|
</View>
|
104
104
|
</Example.Item>
|
105
105
|
</Example>);
|
106
|
+
const onColorsCss = getThemeCSS("on-color", {
|
107
|
+
color: {
|
108
|
+
backgroundPrimary: { hex: "#1abc9c", hexDark: "#16a085" },
|
109
|
+
backgroundPrimaryHighlighted: { hex: "#16a085", hexDark: "#1abc9c" },
|
110
|
+
},
|
111
|
+
}, {
|
112
|
+
onColorValues: {
|
113
|
+
primary: {
|
114
|
+
hexLight: "#d1fae5",
|
115
|
+
hexDark: "#022c22",
|
116
|
+
},
|
117
|
+
},
|
118
|
+
});
|
119
|
+
export const onColors = () => (<Example>
|
120
|
+
<Example.Item title="custom on color values">
|
121
|
+
<style>{onColorsCss}</style>
|
122
|
+
<Theme name="on-color">
|
123
|
+
<View gap={2} direction="row">
|
124
|
+
<Button color="primary">Primary button</Button>
|
125
|
+
<Button color="critical">Critical button</Button>
|
126
|
+
</View>
|
127
|
+
</Theme>
|
128
|
+
</Example.Item>
|
129
|
+
</Example>);
|
@@ -8,6 +8,7 @@ import type * as TShadow from "./shadow/shadow.types";
|
|
8
8
|
import type * as TUnit from "./unit/unit.types";
|
9
9
|
import type * as TViewport from "./viewport/viewport.types";
|
10
10
|
export type TokenType = "fontFamily" | "fontWeight" | "unit" | "viewport" | "font" | "color" | "duration" | "easing" | "shadow";
|
11
|
+
export type ColorHue = "primary" | "positive" | "critical" | "neutral";
|
11
12
|
export type BaseThemeDefinition = {
|
12
13
|
viewport: Record<TViewport.Name, TViewport.Token>;
|
13
14
|
};
|
@@ -24,18 +24,16 @@ const generateBackgroundColors = (definition, themeOptions) => {
|
|
24
24
|
if (!bgToken)
|
25
25
|
return;
|
26
26
|
if (needsDynamicForeground) {
|
27
|
-
const
|
28
|
-
|
29
|
-
|
30
|
-
lightHexColor: (_c = (_b =
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
darkHexColor: (_j = (_h = definition === null || definition === void 0 ? void 0 : definition.color) === null || _h === void 0 ? void 0 : _h.black) === null || _j === void 0 ? void 0 : _j.hex,
|
38
|
-
});
|
27
|
+
const overrideKeys = (themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.onColorValues) && Object.keys(themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.onColorValues);
|
28
|
+
const onColorKey = overrideKeys && overrideKeys.find((key) => tokenName.toLowerCase().includes(key));
|
29
|
+
const onColorHexMap = {
|
30
|
+
lightHexColor: (onColorKey && ((_c = (_b = themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.onColorValues) === null || _b === void 0 ? void 0 : _b[onColorKey]) === null || _c === void 0 ? void 0 : _c.hexLight)) ||
|
31
|
+
((_e = (_d = definition === null || definition === void 0 ? void 0 : definition.color) === null || _d === void 0 ? void 0 : _d.white) === null || _e === void 0 ? void 0 : _e.hex),
|
32
|
+
darkHexColor: (onColorKey && ((_g = (_f = themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.onColorValues) === null || _f === void 0 ? void 0 : _f[onColorKey]) === null || _g === void 0 ? void 0 : _g.hexDark)) ||
|
33
|
+
((_j = (_h = definition === null || definition === void 0 ? void 0 : definition.color) === null || _h === void 0 ? void 0 : _h.black) === null || _j === void 0 ? void 0 : _j.hex),
|
34
|
+
};
|
35
|
+
const hex = (0, color_1.getOnColor)(Object.assign({ bgHexColor: bgToken.hex, mode: "light" }, onColorHexMap));
|
36
|
+
const hexDark = (0, color_1.getOnColor)(Object.assign({ bgHexColor: bgToken.hexDark || bgToken.hex, mode: "dark" }, onColorHexMap));
|
39
37
|
// eslint-disable-next-line no-param-reassign
|
40
38
|
definition.color[generatedForegroundName] = {
|
41
39
|
hex,
|
package/themes/index.d.ts
CHANGED
@@ -9,4 +9,4 @@ export declare const generateThemeColors: (options: {
|
|
9
9
|
}) => Record<import("./_generator/tokens/color/color.types").Name, import("./_generator/tokens/color/color.types").Token> & {
|
10
10
|
[tokenName: string]: import("./_generator/tokens/color/color.types").Token;
|
11
11
|
};
|
12
|
-
export declare const getThemeCSS: (name: string, definition: T.PartialDeep<FullThemeDefinition
|
12
|
+
export declare const getThemeCSS: (name: string, definition: T.PartialDeep<FullThemeDefinition>, options?: T.PublicOptions["themeOptions"]) => string;
|
package/themes/index.js
CHANGED
@@ -14,8 +14,8 @@ const generateThemeColors = (options) => {
|
|
14
14
|
return (0, generateColors_1.default)(options);
|
15
15
|
};
|
16
16
|
exports.generateThemeColors = generateThemeColors;
|
17
|
-
const getThemeCSS = (name, definition) => {
|
18
|
-
const code = (0, transform_1.default)(name, definition, { isFragment: true });
|
17
|
+
const getThemeCSS = (name, definition, options) => {
|
18
|
+
const code = (0, transform_1.default)(name, definition, { themeOptions: options, isFragment: true });
|
19
19
|
return code.variables;
|
20
20
|
};
|
21
21
|
exports.getThemeCSS = getThemeCSS;
|
package/types/config.d.ts
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
-
import { PartialUserThemeDefinition } from "../themes/_generator/tokens/types";
|
1
|
+
import { PartialUserThemeDefinition, ColorHue } from "../themes/_generator/tokens/types";
|
2
2
|
export type ReshapedConfig = {
|
3
3
|
themes?: Record<string, PartialUserThemeDefinition>;
|
4
4
|
themeFragments?: Record<string, PartialUserThemeDefinition>;
|
5
5
|
themeOptions?: {
|
6
6
|
generateOnColorsFor?: string[];
|
7
|
+
onColorValues?: {
|
8
|
+
[key in ColorHue]?: {
|
9
|
+
hexDark: string;
|
10
|
+
hexLight: string;
|
11
|
+
};
|
12
|
+
};
|
7
13
|
};
|
8
14
|
};
|