reshaped 2.4.4 → 2.4.7
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/CHANGELOG.md +8 -0
- package/bundle.css +1 -1
- package/bundle.js +9 -9
- package/cli/theming/index.js +2 -2
- package/cli/theming/reshaped.config.js +3 -3
- package/components/Accordion/AccordionContent.js +3 -1
- package/components/Accordion/tests/Accordion.stories.js +3 -2
- package/components/Actionable/Actionable.js +4 -4
- package/components/Actionable/Actionable.module.css +1 -1
- package/components/Autocomplete/Autocomplete.js +8 -2
- package/components/Button/Button.js +1 -1
- package/components/Button/Button.module.css +1 -1
- package/components/Button/ButtonAligner.d.ts +4 -2
- package/components/Button/ButtonAligner.js +2 -8
- package/components/Checkbox/tests/Checkbox.stories.js +1 -1
- package/components/FormControl/FormControl.context.d.ts +53 -53
- package/components/MenuItem/MenuItem.js +1 -1
- package/components/MenuItem/MenuItem.module.css +1 -1
- package/components/MenuItem/MenuItemAligner.d.ts +2 -2
- package/components/MenuItem/MenuItemAligner.js +2 -4
- package/components/MenuItem/tests/MenuItem.stories.js +1 -1
- package/components/TextArea/TextArea.d.ts +5 -1
- package/components/TextArea/TextArea.js +3 -1
- package/components/TextArea/TextArea.module.css +1 -1
- package/components/TextArea/tests/TextArea.stories.d.ts +1 -0
- package/components/TextArea/tests/TextArea.stories.js +16 -0
- package/components/TextField/TextField.d.ts +5 -1
- package/components/TextField/TextField.js +3 -1
- package/components/TextField/TextField.module.css +1 -1
- package/components/TextField/tests/TextField.stories.d.ts +1 -0
- package/components/TextField/tests/TextField.stories.js +16 -0
- package/components/Toast/tests/Toast.stories.js +0 -1
- package/components/View/tests/View.stories.js +1 -1
- package/components/_private/Aligner/Aligner.d.ts +12 -0
- package/components/_private/Aligner/Aligner.js +18 -0
- package/components/_private/Aligner/Aligner.module.css +1 -0
- package/components/_private/Aligner/Aligner.types.d.ts +9 -0
- package/components/_private/Aligner/Aligner.types.js +1 -0
- package/components/_private/Aligner/index.d.ts +2 -0
- package/components/_private/Aligner/index.js +1 -0
- package/components/_private/Flyout/FlyoutTrigger.js +3 -12
- package/components/_private/Portal/Portal.d.ts +1 -1
- package/config/tailwind.js +2 -2
- package/package.json +26 -21
- package/themes/_generator/definitions/base.d.ts +3 -0
- package/themes/_generator/definitions/figma.d.ts +3 -0
- package/themes/_generator/definitions/reshaped.d.ts +3 -0
- package/{cli/theming → themes/_generator}/definitions/reshaped.js +5 -38
- package/themes/_generator/definitions/slate.d.ts +3 -0
- package/themes/_generator/tests/themes.stories.d.ts +2 -1
- package/themes/_generator/tests/themes.stories.js +75 -2
- package/themes/_generator/utilities/generateColors.d.ts +20 -0
- package/themes/_generator/utilities/generateColors.js +422 -0
- package/themes/figma/theme.css +1 -1
- package/themes/index.d.ts +11 -0
- package/themes/index.js +8 -0
- package/themes/reshaped/theme.css +1 -1
- package/themes/slate/theme.css +1 -1
- package/types/global.d.ts +1 -1
- package/cli/theming/definitions/base.d.ts +0 -3
- package/cli/theming/definitions/figma.d.ts +0 -3
- package/cli/theming/definitions/reshaped.d.ts +0 -3
- package/cli/theming/definitions/slate.d.ts +0 -3
- package/config/next.d.ts +0 -4
- package/config/next.js +0 -22
- /package/{cli/theming → themes/_generator}/definitions/base.js +0 -0
- /package/{cli/theming → themes/_generator}/definitions/figma.js +0 -0
- /package/{cli/theming → themes/_generator}/definitions/slate.js +0 -0
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,_e){"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,_e){"use strict";var _a=Object.defineProperty,ma=Object.defineProperties;var fa=Object.getOwnPropertyDescriptors;var ln=Object.getOwnPropertySymbols;var bo=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable;var vo=(N,c,_e)=>c in N?_a(N,c,{enumerable:!0,configurable:!0,writable:!0,value:_e}):N[c]=_e,g=(N,c)=>{for(var _e in c||(c={}))bo.call(c,_e)&&vo(N,_e,c[_e]);if(ln)for(var _e of ln(c))po.call(c,_e)&&vo(N,_e,c[_e]);return N},C=(N,c)=>ma(N,fa(c));var Fe=(N,c)=>{var _e={};for(var xe in N)bo.call(N,xe)&&c.indexOf(xe)<0&&(_e[xe]=N[xe]);if(N!=null&&ln)for(var xe of ln(N))c.indexOf(xe)<0&&po.call(N,xe)&&(_e[xe]=N[xe]);return _e};var xe={exports:{}},wt={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.min.js
|
4
4
|
*
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var
|
9
|
+
*/var Gn;function xo(){if(Gn)return wt;Gn=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,d,f){var m,h={},_=null,v=null;f!==void 0&&(_=""+f),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(v=d.ref);for(m in d)r.call(d,m)&&!i.hasOwnProperty(m)&&(h[m]=d[m]);if(l&&l.defaultProps)for(m in d=l.defaultProps,d)h[m]===void 0&&(h[m]=d[m]);return{$$typeof:t,type:l,key:_,ref:v,props:h,_owner:o.current}}return wt.Fragment=n,wt.jsx=a,wt.jsxs=a,wt}var yt={};/**
|
10
10
|
* @license React
|
11
11
|
* react-jsx-runtime.development.js
|
12
12
|
*
|
@@ -14,14 +14,14 @@
|
|
14
14
|
*
|
15
15
|
* This source code is licensed under the MIT license found in the
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var
|
18
|
-
`+ye+u}}var pe=!1,
|
17
|
+
*/var Xn;function wo(){return Xn||(Xn=1,process.env.NODE_ENV!=="production"&&function(){var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),p=Symbol.iterator,x="@@iterator";function y(u){if(u===null||typeof u!="object")return null;var k=p&&u[p]||u[x];return typeof k=="function"?k:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(u){{for(var k=arguments.length,I=new Array(k>1?k-1:0),F=1;F<k;F++)I[F-1]=arguments[F];j("error",u,I)}}function j(u,k,I){{var F=w.ReactDebugCurrentFrame,R=F.getStackAddendum();R!==""&&(k+="%s",I=I.concat([R]));var J=I.map(function(B){return String(B)});J.unshift("Warning: "+k),Function.prototype.apply.call(console[u],console,J)}}var $=!1,E=!1,T=!1,z=!1,S=!1,O;O=Symbol.for("react.module.reference");function P(u){return!!(typeof u=="string"||typeof u=="function"||u===r||u===i||S||u===o||u===f||u===m||z||u===v||$||E||T||typeof u=="object"&&u!==null&&(u.$$typeof===_||u.$$typeof===h||u.$$typeof===a||u.$$typeof===l||u.$$typeof===d||u.$$typeof===O||u.getModuleId!==void 0))}function A(u,k,I){var F=u.displayName;if(F)return F;var R=k.displayName||k.name||"";return R!==""?I+"("+R+")":I}function q(u){return u.displayName||"Context"}function V(u){if(u==null)return null;if(typeof u.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case m:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case l:var k=u;return q(k)+".Consumer";case a:var I=u;return q(I._context)+".Provider";case d:return A(u,u.render,"ForwardRef");case h:var F=u.displayName||null;return F!==null?F:V(u.type)||"Memo";case _:{var R=u,J=R._payload,B=R._init;try{return V(B(J))}catch(D){return null}}}return null}var L=Object.assign,Q=0,fe,he,oe,Z,He,Ce,se;function H(){}H.__reactDisabledLog=!0;function Y(){{if(Q===0){fe=console.log,he=console.info,oe=console.warn,Z=console.error,He=console.group,Ce=console.groupCollapsed,se=console.groupEnd;var u={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}Q++}}function G(){{if(Q--,Q===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},u,{value:fe}),info:L({},u,{value:he}),warn:L({},u,{value:oe}),error:L({},u,{value:Z}),group:L({},u,{value:He}),groupCollapsed:L({},u,{value:Ce}),groupEnd:L({},u,{value:se})})}Q<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=w.ReactCurrentDispatcher,ye;function X(u,k,I){{if(ye===void 0)try{throw Error()}catch(R){var F=R.stack.trim().match(/\n( *(at )?)/);ye=F&&F[1]||""}return`
|
18
|
+
`+ye+u}}var pe=!1,ge;{var Me=typeof WeakMap=="function"?WeakMap:Map;ge=new Me}function Re(u,k){if(!u||pe)return"";{var I=ge.get(u);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(u,[],B)}else{try{B.call()}catch(Ke){F=Ke}u.call(B.prototype)}}else{try{throw Error()}catch(Ke){F=Ke}u()}}catch(Ke){if(Ke&&F&&typeof Ke.stack=="string"){for(var D=Ke.stack.split(`
|
19
19
|
`),be=F.stack.split(`
|
20
|
-
`),re=
|
21
|
-
`+
|
20
|
+
`),re=D.length-1,ae=be.length-1;re>=1&&ae>=0&&D[re]!==be[ae];)ae--;for(;re>=1&&ae>=0;re--,ae--)if(D[re]!==be[ae]){if(re!==1||ae!==1)do if(re--,ae--,ae<0||D[re]!==be[ae]){var Ne=`
|
21
|
+
`+D[re].replace(" at new "," at ");return u.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",u.displayName)),typeof u=="function"&&ge.set(u,Ne),Ne}while(re>=1&&ae>=0);break}}}finally{pe=!1,ie.current=J,G(),Error.prepareStackTrace=R}var xt=u?u.displayName||u.name:"",go=xt?X(xt):"";return typeof u=="function"&&ge.set(u,go),go}function et(u,k,I){return Re(u,!1)}function tt(u){var k=u.prototype;return!!(k&&k.isReactComponent)}function Se(u,k,I){if(u==null)return"";if(typeof u=="function")return Re(u,tt(u));if(typeof u=="string")return X(u);switch(u){case f:return X("Suspense");case m:return X("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case d:return et(u.render);case h:return Se(u.type,k,I);case _:{var F=u,R=F._payload,J=F._init;try{return Se(J(R),k,I)}catch(B){}}}return""}var Pe=Object.prototype.hasOwnProperty,At={},st=w.ReactDebugCurrentFrame;function bt(u){if(u){var k=u._owner,I=Se(u.type,u._source,k?k.type:null);st.setExtraStackFrame(I)}else st.setExtraStackFrame(null)}function sn(u,k,I,F,R){{var J=Function.call.bind(Pe);for(var B in u)if(J(u,B)){var D=void 0;try{if(typeof u[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 u[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}D=u[B](k,B,F,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(re){D=re}D&&!(D instanceof Error)&&(bt(R),b("%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 D),bt(null)),D instanceof Error&&!(D.message in At)&&(At[D.message]=!0,bt(R),b("Failed %s type: %s",I,D.message),bt(null))}}}var Hn=Array.isArray;function Ft(u){return Hn(u)}function Rn(u){{var k=typeof Symbol=="function"&&Symbol.toStringTag,I=k&&u[Symbol.toStringTag]||u.constructor.name||"Object";return I}}function ve(u){try{return ue(u),!1}catch(k){return!0}}function ue(u){return""+u}function qe(u){if(ve(u))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rn(u)),ue(u)}var me=w.ReactCurrentOwner,it={key:!0,ref:!0,__self:!0,__source:!0},Ue,ke,Ae;Ae={};function an(u){if(Pe.call(u,"ref")){var k=Object.getOwnPropertyDescriptor(u,"ref").get;if(k&&k.isReactWarning)return!1}return u.ref!==void 0}function Qi(u){if(Pe.call(u,"key")){var k=Object.getOwnPropertyDescriptor(u,"key").get;if(k&&k.isReactWarning)return!1}return u.key!==void 0}function Zi(u,k){if(typeof u.ref=="string"&&me.current&&k&&me.current.stateNode!==k){var I=V(me.current.type);Ae[I]||(b('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(me.current.type),u.ref),Ae[I]=!0)}}function ea(u,k){{var I=function(){Ue||(Ue=!0,b("%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(u,"key",{get:I,configurable:!0})}}function ta(u,k){{var I=function(){ke||(ke=!0,b("%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(u,"ref",{get:I,configurable:!0})}}var na=function(u,k,I,F,R,J,B){var D={$$typeof:t,type:u,key:k,ref:I,props:B,_owner:J};return D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(D,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(D,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D};function ra(u,k,I,F,R){{var J,B={},D=null,be=null;I!==void 0&&(qe(I),D=""+I),Qi(k)&&(qe(k.key),D=""+k.key),an(k)&&(be=k.ref,Zi(k,R));for(J in k)Pe.call(k,J)&&!it.hasOwnProperty(J)&&(B[J]=k[J]);if(u&&u.defaultProps){var re=u.defaultProps;for(J in re)B[J]===void 0&&(B[J]=re[J])}if(D||be){var ae=typeof u=="function"?u.displayName||u.name||"Unknown":u;D&&ea(B,ae),be&&ta(B,ae)}return na(u,D,be,R,F,me.current,B)}}var Un=w.ReactCurrentOwner,co=w.ReactDebugCurrentFrame;function pt(u){if(u){var k=u._owner,I=Se(u.type,u._source,k?k.type:null);co.setExtraStackFrame(I)}else co.setExtraStackFrame(null)}var Kn;Kn=!1;function Yn(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function uo(){{if(Un.current){var u=V(Un.current.type);if(u)return`
|
22
22
|
|
23
|
-
Check the render method of \``+u+"`."}return""}}function
|
23
|
+
Check the render method of \``+u+"`."}return""}}function oa(u){{if(u!==void 0){var k=u.fileName.replace(/^.*[\\\/]/,""),I=u.lineNumber;return`
|
24
24
|
|
25
|
-
Check your code at `+
|
25
|
+
Check your code at `+k+":"+I+"."}return""}}var _o={};function sa(u){{var k=uo();if(!k){var I=typeof u=="string"?u:u.displayName||u.name;I&&(k=`
|
26
26
|
|
27
|
-
Check the top-level render call using <`+T+">.")}return C}}function co(u,C){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var T=ra(C);if(lo[T])return;lo[T]=!0;var F="";u&&u._owner&&u._owner!==Hn.current&&(F=" It was passed a child from "+q(u._owner.type)+"."),pt(u),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,F),pt(null)}}function uo(u,C){{if(typeof u!="object")return;if(Ft(u))for(var T=0;T<u.length;T++){var F=u[T];Un(F)&&co(F,C)}else if(Un(u))u._store&&(u._store.validated=!0);else if(u){var R=y(u);if(typeof R=="function"&&R!==u.entries)for(var J=R.call(u),B;!(B=J.next()).done;)Un(B.value)&&co(B.value,C)}}}function oa(u){{var C=u.type;if(C==null||typeof C=="string")return;var T;if(typeof C=="function")T=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===d||C.$$typeof===h))T=C.propTypes;else return;if(T){var F=q(C);on(T,u.props,"prop",F,u)}else if(C.PropTypes!==void 0&&!Rn){Rn=!0;var R=q(C);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sa(u){{for(var C=Object.keys(u.props),T=0;T<C.length;T++){var F=C[T];if(F!=="children"&&F!=="key"){pt(u),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),pt(null);break}}u.ref!==null&&(pt(u),w("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}function _o(u,C,T,F,R,J){{var B=S(u);if(!B){var O="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).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=na(R);be?O+=be:O+=ao();var re;u===null?re="null":Ft(u)?re="array":u!==void 0&&u.$$typeof===t?(re="<"+(q(u.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):re=typeof u,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",re,O)}var ae=ta(u,C,T,R,J);if(ae==null)return ae;if(B){var Ne=C.children;if(Ne!==void 0)if(F)if(Ft(Ne)){for(var xt=0;xt<Ne.length;xt++)uo(Ne[xt],u);Object.freeze&&Object.freeze(Ne)}else w("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 uo(Ne,u)}return u===r?sa(ae):oa(ae),ae}}function ia(u,C,T){return _o(u,C,T,!0)}function aa(u,C,T){return _o(u,C,T,!1)}var la=aa,ca=ia;yt.Fragment=r,yt.jsx=la,yt.jsxs=ca}()),yt}process.env.NODE_ENV==="production"?xe.exports=go():xe.exports=bo();var i=xe.exports;const Gn=(e,t=20)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}};function po(e,t){const n=Gn(e,t);return r=>("persist"in r&&r.persist(),n(r))}const xo=(e,t)=>{let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...r)},t)},t))}},M=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const r=M(...n);return r?`${t} ${r}`:t}return n?`${t} ${n}`:t},""),Xn=(e,t,n)=>{const{base:r,excludeValueFromClassName:o}=n||{},s=typeof e=="string"?e:e(t);return t===!0&&r||o?s:t===!0&&!r?`${s}-true`:t===!1&&!r?`${s}-false`:t!==void 0?`${s}-${t}`:null},W=(e,t,n,r)=>{if(typeof n!="object"){const o=Xn(t,n,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return o?[e[o]]:[]}return Object.keys(n).reduce((o,s)=>{const a=s==="s",l=Xn(t,n[s],{base:a,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=a?"":`--${s}`;return[...o,e[`${l}${d}`]]},[])},ee=(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:k(g({},n),{[`${e}-${r}`]:o})},{}),wo=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Le=(e,t)=>wo(e)?Object.keys(e).reduce((r,o)=>{const s=e[o];return s==null?r:k(g({},r),{[o]:t(s,o)})},{}):t(e,"s"),$e=e=>{const t=c.useId();return e||t},ln=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Jn=e=>{const{children:t,onToggle:n,active:r,iconPosition:o,iconSize:s,className:a,attributes:l}=e,d=M(a),f=$e(),_=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:r,onToggle:n,iconPosition:o,iconSize:s}),[r]);return i.jsx("div",k(g({},l),{className:d,children:i.jsx(ln.Provider,{value:_,children:t})}))},yo=e=>{const l=e,{defaultActive:t,onToggle:n}=l,r=Fe(l,["defaultActive","onToggle"]),[o,s]=c.useState(t||!1),a=d=>{s(d),n==null||n(d)};return i.jsx(Jn,k(g({},r),{onToggle:a,active:o}))},jt={root:"_root_1e7nv_1","--disabled":"_--disabled_1e7nv_28","--full-width":"_--full-width_1e7nv_37","--inset":"_--inset_1e7nv_45","--radius-inherit":"_--radius-inherit_1e7nv_49"},jo=(e,t)=>{const{children:n,href:r,onClick:o,type:s,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:_,className:h,attributes:m}=e,v=M(jt.root,h,a&&jt["--disabled"],d&&jt[`--radius-${d}`],l&&jt["--inset"],_&&jt["--full-width"]),p=g({},m),x=c.useRef(!1),y=o||(m==null?void 0:m.onClick),b=(m==null?void 0:m.onFocus)||(m==null?void 0:m.onBlur),w=!!(r||m!=null&&m.href),j=!!(y||b||s);let $;if(w)p.href=a?void 0:r||(m==null?void 0:m.href),$="a";else if(j&&(!f||f==="button"))$="button",p.type=s||(m==null?void 0:m.type)||"button",p.disabled=a||(m==null?void 0:m.disabled);else if(j){const V=!(f==="label")||y||b;$=f||"span",p.role=V?"button":void 0,p.tabIndex=V?0:void 0}else $=f||"span";const z=I=>{var V;a||x.current||(o==null||o(I),(V=m==null?void 0:m.onClick)==null||V.call(m,I))},E=I=>{if(p.role==="button"||w)return;const S=I.key===" ",A=I.key==="Enter";!S&&!A||(I.preventDefault(),z(I),x.current=!0)},P=()=>{x.current=!1};return i.jsx($,k(g({ref:t},p),{className:v,onClick:z,onKeyDown:E,onKeyUp:P,children:n}))},qe=c.forwardRef(jo),cn={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"},Qn=e=>{const{vertical:t,blank:n,className:r,attributes:o}=e,s=M(cn.root,r,n&&cn["--blank"],...W(cn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),i.jsx("div",k(g({},o),{role:"separator","aria-orientation":a,className:s}))},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"},dn=e=>{const{as:t="div",children:n,visibility:r,hide:o,displayStyle:s}=e,a=M(Lt.root,...W(Lt,"--hidden",o),r&&Lt["--visibility"],s&&Lt[`--display-${s}`]);return typeof n=="function"?i.jsx(i.Fragment,{children:n(a)}):i.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"},Zn={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"},un=e=>e?{classNames:[Zn.root,...W(Zn,"--radius",e)]}:null,er={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"},tr=e=>{if(e===void 0)return null;const t=[er.root,...W(er,"--bleed",Le(e,r=>typeof r=="number"&&r>0))],n=ee("--rs-bleed",e);return{classNames:t,variables:n}},Co={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"},_n=e=>{if(!e)return null;const t=ee("--rs-w",e);return{classNames:W(Co,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},ko={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"},Ct=e=>{if(!e)return null;const t=ee("--rs-h",e);return{classNames:W(ko,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},No={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"},$o=e=>{if(!e)return null;const t=ee("--rs-max-w",e);return{classNames:W(No,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Eo={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"},zo=e=>{if(!e)return null;const t=ee("--rs-max-h",e);return{classNames:W(Eo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},To={"--position-relative":"_--position-relative_eidrq_1","--position-absolute":"_--position-absolute_eidrq_1","--position-fixed":"_--position-fixed_eidrq_1","--position-sticky":"_--position-sticky_eidrq_1","--position-relative--m":"_--position-relative--m_eidrq_1","--position-absolute--m":"_--position-absolute--m_eidrq_1","--position-fixed--m":"_--position-fixed--m_eidrq_1","--position-sticky--m":"_--position-sticky--m_eidrq_1","--position-relative--l":"_--position-relative--l_eidrq_1","--position-absolute--l":"_--position-absolute--l_eidrq_1","--position-fixed--l":"_--position-fixed--l_eidrq_1","--position-sticky--l":"_--position-sticky--l_eidrq_1","--position-relative--xl":"_--position-relative--xl_eidrq_1","--position-absolute--xl":"_--position-absolute--xl_eidrq_1","--position-fixed--xl":"_--position-fixed--xl_eidrq_1","--position-sticky--xl":"_--position-sticky--xl_eidrq_1"},Io=e=>e?{classNames:W(To,"--position",e)}:null,Mo={"--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"},kt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",r=`--rs-inset${n}`,o=ee(r,e);return{classNames:W(Mo,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:o}},So={root:"_root_i342i_1"},Po=e=>{if(!e)return null;const t=ee("--rs-ratio",e);return{classNames:So.root,variables:t}},nr=e=>{const{columns:t,grow:n,gapBefore:r,as:o="div",order:s,children:a,className:l,attributes:d}=e,f=M(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)),_=g(g({},ee("--rs-view-item-order",s)),ee("--rs-view-item-gap-before",r));return i.jsx(o,k(g({},d),{style:g(g({},d==null?void 0:d.style),_),className:f,children:a}))},U=e=>{const{align:t,justify:n,wrap:r,gap:o,height:s,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:_,paddingInline:h,paddingBlock:m,paddingBottom:v,paddingEnd:p,paddingStart:x,paddingTop:y,bleed:b,animated:w,backgroundColor:j,borderColor:$,borderRadius:z,shadow:E,textAlign:P,overflow:I,position:V="relative",inset:S,insetTop:A,insetBottom:D,insetStart:q,insetEnd:L,zIndex:Q,grow:fe,as:he="div",children:oe,divided:Z,className:He,attributes:Ce}=e,se=!!t||!!n||!!o||!!e.direction,H=e.direction||(se?"column":void 0),Y=un(z),G=tr(b),ie=_n(a),ye=Ct(s),X=$o(f),pe=zo(d),ve=Io(V),Me=kt(S),Re=kt(A,"top"),et=kt(D,"bottom"),tt=kt(q,"start"),Se=kt(L,"end"),Pe=Po(l);let At=0,st;const bt=({className:ge,key:ue})=>{const De=M(K.divider,ge);let me=!1;return typeof H=="string"&&H.startsWith("row")?me=!0:H&&(me=Object.keys(H).reduce((Ue,ke)=>{const Ae=H[ke];return Ae?k(g({},Ue),{[ke]:Ae.startsWith("row")}):Ue},{})),i.jsx("div",{className:De,children:i.jsx(Qn,{vertical:me,blank:!0})},`${ue}-divider`)},on=({className:ge,child:ue,index:De})=>{var Ae,sn;const me=ue.type===nr,it=ue.key||De,Ue=!!De&&Z&&bt({className:ge,key:it});let ke;return me?ke=c.cloneElement(ue,{className:M(ge,ue.props.className)}):ge||!c.isValidElement(ue)?ke=i.jsx("div",{className:ge,children:ue},it):ke=ue,me&&((Ae=ue.props)!=null&&Ae.grow)&&(st=ue.props.grow),me&&((sn=ue.props)==null?void 0:sn.gap)==="auto"&&(st=!0),[Ue,ke]},Bn=c.Children.map(oe,(ge,ue)=>{if(!ge)return null;const De=At;if(At+=1,ge.type===dn&&typeof ge.props.children!="function"){const me=ge.props,{children:it}=me,Ue=Fe(me,["children"]),ke=ge.key||ue;return c.createElement(dn,k(g({},Ue),{key:ke}),Ae=>on({className:Ae,child:it,index:De}))}return on({child:ge,index:De})}),Ft=M(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,P&&K[`--align-text-${P}`],j&&K[`--bg-${j}`],$&&K[`--bd-${$}`],$&&K["--bd"],E&&K[`--shadow-${E}`],I&&K[`--overflow-${I}`],w&&K["--animated"],Z&&K["--divided"],(_!==void 0||h!==void 0||m!==void 0)&&K["--padding"],v!==void 0&&K["--padding-bottom"],p!==void 0&&K["--padding-end"],x!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(se||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)),Wn=g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g({},Ce==null?void 0:Ce.style),ee("--rs-view-gap",o)),ee("--rs-view-p-vertical",m||_)),ee("--rs-view-p-horizontal",h||_)),ee("--rs-view-p-bottom",v)),ee("--rs-view-p-top",y)),ee("--rs-view-p-start",x)),ee("--rs-view-p-end",p)),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),Q?{"--rs-view-z":Q}:{});return i.jsx(he,k(g({},Ce),{className:Ft,style:Wn,children:Bn}))};U.Item=nr;const mn={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"},de=e=>{const{svg:t,className:n,color:r,size:o="1em",autoWidth:s,attributes:a}=e,l=Ct(o),d=M(mn.root,n,l==null?void 0:l.classNames,r&&mn[`--color-${r}`],s&&mn["--auto"]),f=typeof t=="object"?t:i.jsx(t,{}),_=g(g({},a==null?void 0:a.style),l==null?void 0:l.variables);return i.jsx("span",k(g({},a),{"aria-hidden":"true",className:d,style:_,children:c.cloneElement(f,{focusable:!1})}))},Ao=()=>i.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:i.jsx("polyline",{points:"6 9 12 15 18 9"})}),Nt={content:"_content_fcvpf_1","content--animated":"_content--animated_fcvpf_6",icon:"_icon_fcvpf_13","icon--active":"_icon--active_fcvpf_17"},Fo=e=>{const{children:t}=e,{active:n,onToggle:r,triggerId:o,contentId:s,iconPosition:a="end",iconSize:l}=c.useContext(ln),d=M(Nt.icon,n&&Nt["icon--active"]),f=()=>{r==null||r(!n)},_={"aria-expanded":n,"aria-controls":s,id:o};return typeof t=="function"?i.jsx(i.Fragment,{children:t(k(g({},_),{onClick:f}),{active:n})}):i.jsx(qe,{onClick:f,fullWidth:!0,attributes:_,children:i.jsxs(U,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[i.jsx(U.Item,{grow:!0,children:t}),i.jsx(de,{size:l||4,svg:Ao,className:d})]})})},$t=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},fn="data-rs-no-transition",Lo=()=>{document.documentElement.setAttribute(fn,"true")},qo=()=>{document.documentElement.removeAttribute(fn)},Vo=()=>!document.documentElement.hasAttribute(fn),Oo=e=>{const{children:t}=e,{active:n,triggerId:r,contentId:o}=c.useContext(ln),s=c.useRef(null),a=c.useRef(!1),[l,d]=c.useState(n?"auto":null),f=M(Nt.content,a.current&&l!=="auto"&&Nt["content--animated"],n&&Nt["content--active"]),_=h=>{h.propertyName==="height"&&d(n?"auto":null)};return c.useEffect(()=>{$t(()=>{a.current=!0})},[]),c.useEffect(()=>{const h=s.current;if(!h||!a.current)return;let m=0;n&&(h.style.height="auto",m=h.clientHeight,h.style.height="0"),n||(h.style.height=`${h.clientHeight}px`),d(m)},[n]),i.jsx("div",{className:f,ref:s,style:l!==null?{height:l}:void 0,onTransitionEnd:_,"aria-labelledby":r,id:o,role:"region",hidden:!n&&l===null,children:t})},hn=e=>{const{active:t}=e;return t!==void 0?i.jsx(Jn,g({},e)):i.jsx(yo,g({},e))};hn.Trigger=Fo,hn.Content=Oo;const vn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Do=e=>{const{position:t="bottom",padding:n,paddingBlock:r=3,paddingInline:o=4,children:s,elevated:a,className:l,attributes:d}=e,f=M(vn.root,a&&vn["--elevated"],t&&vn[`--position-${t}`],l);return i.jsx(U,{className:f,attributes:d,paddingBlock:n||r,paddingInline:n||o,children:s})},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"},Bo={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},te=e=>{const{variant:t,color:n,weight:r,align:o,decoration:s,maxLines:a,children:l,className:d,attributes:f}=e,_=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||_&&Bo[_]||"div",m=M(nt.root,n&&nt[`--color-${n}`],...W(nt,"--variant",t),...W(nt,"--align",o),r&&nt[`--weight-${r}`],s&&nt[`--decoration-${s}`],a!==void 0&&nt["--clamp"],d),v=k(g({},f==null?void 0:f.style),{"--rs-text-lines":a});return i.jsx(h,k(g({},f),{className:m,style:v,children:l}))},Wo=e=>{const{title:t,children:n,icon:r,actionsSlot:o,color:s="neutral",inline:a,bleed:l,className:d,attributes:f}=e,_=s==="neutral",h=()=>a?i.jsxs(i.Fragment,{children:[t&&i.jsx(te,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&i.jsx(te,{variant:"body-3",as:"span",children:n})]}):i.jsxs(U,{gap:1,children:[t&&i.jsx(te,{variant:"body-3",weight:"medium",children:t}),n&&i.jsx(te,{variant:"body-3",children:n})]}),m=v=>o?i.jsxs(U,{gap:2,direction:a?"row":"column",children:[a?i.jsx(U.Item,{grow:!0,children:v}):v,o&&i.jsx(te,{variant:"body-3",weight:"medium",children:i.jsx(U,{direction:"row",gap:3,children:o})})]}):v;return i.jsx(U,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:d,attributes:k(g({},f),{role:s==="critical"?"alert":"status"}),children:r?i.jsxs(i.Fragment,{children:[i.jsx(de,{svg:r,size:5,color:_?"primary":s}),i.jsx(U.Item,{grow:!0,children:m(h())})]}):m(h())})},rr=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Ho=rr.Provider,Et=()=>c.useContext(rr),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:r}=Et();return{attributes:e,required:t,hasError:n,disabled:r}},or={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},gn=(e,t)=>`${e}-${t||"caption"}`,qt=e=>{const{children:t,id:n,required:r,hasError:o,group:s,disabled:a,size:l}=e,d=$e(n),f=s?"fieldset":"div",[_,h]=c.useState(!1),[m,v]=c.useState(!1),p=[_&&gn(d),m&&gn(d,"error")].filter(Boolean).join(" "),x={id:d,"aria-describedby":p},y=()=>{v(!0)},b=()=>{h(!0)};return i.jsx(f,{children:i.jsx(Ho,{value:{required:r,hasError:o,errorRef:y,helperRef:b,attributes:x,group:s,disabled:a,size:l},children:t})})},Ro=e=>{const{children:t}=e,{attributes:n,required:r,group:o,disabled:s,size:a}=Et(),l=`${n.id}-label`,d=o?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return i.jsxs(te,k(g({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:or.label,color:s?"disabled":void 0,children:[t,r&&i.jsx(te,{color:s?"disabled":"critical",as:"span",children:"*"})]}))},sr=e=>{const{children:t,variant:n,disabled:r}=e,{attributes:o,size:s,helperRef:a,errorRef:l}=Et(),d=gn(o.id,n),f=n==="error"?"critical":"neutral-faded",_=n==="error"?l:a;return i.jsx(te,{as:"span",variant:s==="large"?"body-3":"caption-1",color:r&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:_},className:or.caption,children:t})},Uo=e=>{const{children:t}=e,{disabled:n}=Et();return i.jsx(sr,{disabled:n,children:t})},Ko=e=>{const{children:t}=e,{hasError:n}=Et();return n?i.jsx(sr,{variant:"error",children:t}):null};qt.Label=Ro,qt.Helper=Uo,qt.Error=Ko;const Ee={root:"_root_wfqr1_1",input:"_input_wfqr1_16",slot:"_slot_wfqr1_43",icon:"_icon_wfqr1_44",affix:"_affix_wfqr1_45",attachment:"_attachment_wfqr1_61","attachment--position-start":"_attachment--position-start_wfqr1_66","attachment--position-end":"_attachment--position-end_wfqr1_79","--disabled":"_--disabled_wfqr1_92","--size-medium":"_--size-medium_wfqr1_1","--size-large":"_--size-large_wfqr1_1","--size-xlarge":"_--size-xlarge_wfqr1_1","--variant-faded":"_--variant-faded_wfqr1_156","--variant-headless":"_--variant-headless_wfqr1_165","--status-error":"_--status-error_wfqr1_170","--size-medium--m":"_--size-medium--m_wfqr1_1","--size-large--m":"_--size-large--m_wfqr1_1","--size-xlarge--m":"_--size-xlarge--m_wfqr1_1","--size-medium--l":"_--size-medium--l_wfqr1_1","--size-large--l":"_--size-large--l_wfqr1_1","--size-xlarge--l":"_--size-xlarge--l_wfqr1_1","--size-medium--xl":"_--size-medium--xl_wfqr1_1","--size-large--xl":"_--size-large--xl_wfqr1_1","--size-xlarge--xl":"_--size-xlarge--xl_wfqr1_1"},ir=e=>{const{slot:t,icon:n,size:r,affix:o,position:s}=e;if(!n&&!t&&!o)return null;const a=M(Ee.attachment,Ee[`attachment--position-${s}`]),l=[t&&i.jsx("div",{className:Ee.slot,children:t},"slot"),n&&i.jsx("div",{className:Ee.icon,children:i.jsx(de,{size:Le(r,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),o&&i.jsx("div",{className:Ee.affix,children:o},"affix")].filter(Boolean);return i.jsx("span",{className:a,children:s==="end"?l.reverse():l})},ar=e=>{var S;const{onChange:t,onFocus:n,onBlur:r,name:o,value:s,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:_,endSlot:h,prefix:m,suffix:v,size:p="medium",variant:x="outline",className:y,attributes:b}=e,w=Ye(),j=$e(e.id),$=(w==null?void 0:w.attributes.id)||((S=e.inputAttributes)==null?void 0:S.id)||j,z=(w==null?void 0:w.disabled)||e.disabled,E=(w==null?void 0:w.hasError)||e.hasError,P=g(g({},e.inputAttributes),w==null?void 0:w.attributes),I=M(Ee.root,y,p&&W(Ee,"--size",p),E&&Ee["--status-error"],z&&Ee["--disabled"],x&&Ee[`--variant-${x}`]),V=A=>{t&&t({name:o,value:A.target.value,event:A})};return i.jsxs("div",k(g({},b),{className:I,children:[i.jsx(ir,{position:"start",icon:d,slot:_,size:p,affix:m}),i.jsx("input",k(g({},P),{className:Ee.input,disabled:z,name:o,placeholder:l,value:s,defaultValue:a,onChange:V,onFocus:n||(P==null?void 0:P.onFocus),onBlur:r||(P==null?void 0:P.onBlur),id:$})),i.jsx(ir,{position:"end",icon:f,slot:h,size:p,affix:v})]}))},Yo="Enter",Go="Tab",lr="ArrowUp",cr="ArrowDown",dr="ArrowRight",ur="ArrowLeft",bn="data-rs-keyboard",Vt="data-rs-focus";class Xo{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),s=n.nextId,a=s&&this.get(s);o&&(o.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),s||(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 _r=()=>document.documentElement.hasAttribute(bn),mr='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Ot=()=>document.querySelector(`[${Vt}]`)||document.activeElement,pn=(e,t)=>{const r=Array.from(e.querySelectorAll(mr)).filter(o=>!o.hasAttribute("disabled")&&o.clientHeight>0);return t&&r.length&&r.unshift(t),r},fr=e=>{const{root:t,extraElement:n,target:r,mode:o}=e,s=pn(t,n),a=s.length-1,l=Ot(),d=s.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let _=f[r];const h=_>a||_<0;return h&&(o==="action-menu"?_=r==="prev"?f.first:f.last:_=r==="prev"?f.last:f.first),{overflow:h,el:s[_]}},Dt=(e,t)=>{var n;(n=document.querySelector(`[${Vt}]`))==null||n.removeAttribute(Vt),t==="selection-menu"?e.setAttribute(Vt,"true"):e.focus()},Bt=(e,t)=>{const n=fr({root:e,target:t});Dt(n.el)},Jo=e=>Bt(e,"next"),Qo=e=>Bt(e,"prev"),Zo=e=>Bt(e,"first"),es=e=>Bt(e,"last"),ts=(()=>{let e=[];const t=r=>{let o=r.parentNode&&r.parentNode.firstChild;for(;o;){const s=o!==r,a=o.nodeType===1&&!o.hasAttribute("aria-hidden");s&&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}}})(),Wt=(()=>{let e=null,t=null;const n=new Xo;return(r,o={})=>{const{mode:s="dialog",onNavigateOutside:a,includeTrigger:l}=o,d=Ot(),f=s==="dialog",_=s==="content-menu",h=s==="selection-menu",m=f||_,v=s==="action-menu"||h,p=pn(r,l?d:void 0);let x;const y=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const $=pn(r,l?d:void 0);$.length&&Dt($[0],s)}),b=($={})=>{const{withoutFocusReturn:z}=$;n.removePreviousTill(x,P=>document.body.contains(P.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:z||!_r()}),e&&(e(),t&&t.release(),e=null,t=null);const E=n.tailId&&n.get(n.tailId);E&&Wt(E.data.root,E.data.options)},w=$=>{const z=$.key,E=z===Go,P=E&&!$.shiftKey,I=E&&$.shiftKey,V=v&&z===lr,S=v&&z===cr,A=I&&m||V,D=P&&m||S,q=Ot()===d,L=fr({root:r,target:A?"prev":"next",extraElement:l?d:void 0,mode:s});if(E&&v||_&&E&&L.overflow){I&&!q&&$.preventDefault(),b(),a==null||a();return}!A&&!D||($.preventDefault(),L.el&&Dt(L.el,s))};if(e&&e(),f&&(t=ts(r)),y.observe(r,{childList:!0,subtree:!0}),!p.length)return null;document.addEventListener("keydown",w),e=()=>document.removeEventListener("keydown",w);const j=n.tailId&&n.get(n.tailId);return(!j||r!==j.data.root)&&(x=n.add({root:r,trigger:d,options:o}),Dt(p[0],s)),b}})(),ns=100,rs=150;let at={},Ve=null;const hr=e=>{at[e]&&(e===Ve&&(Ve=at[e].parentId),delete at[e],Ve===null&&(at={}))},os=(e,t,n)=>{var s;const r=Ve?at[Ve]:void 0;!((n==null?void 0:n.current)&&r&&((s=r.contentRef.current)==null?void 0:s.contains(n.current)))&&n&&Ve&&hr(Ve),at[e]={parentId:Ve,triggerRef:n,contentRef:t},Ve=e},vr=(e=!1,t,n)=>{const r=$e(),o=c.useCallback(()=>Ve===r,[r]);return c.useEffect(()=>{e?os(r,t,n):hr(r)},[e,r,t,n]),o},le=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,lt="+",ze={},xn=[],gr=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),wn=e=>gr(e).split(lt).sort().join(lt),br=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},ss=e=>{const t=[],n=e.join(lt),o=wn(n).split(lt),s=(a,l)=>{l.forEach((d,f)=>{const _=a?`${a}+${d}`:d;t.push(_),s(_,l.slice(f+1))})};return s("",o),t},is=(e,t)=>{const n=Object.keys(e);n.length&&ss(n).forEach(r=>{t(r)})},yn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(r=>{const o=e[n];o&&t(wn(r),o)})})};class as{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{yn(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=>{yn(t,(n,r)=>{var o,s;r&&((o=this.hotkeyMap[n])==null||o.data.forEach(a=>{a.callback===r&&this.hotkeyMap[n].data.delete(a)}),(s=this.hotkeyMap[n])!=null&&s.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{is(t,r=>{const o=this.hotkeyMap[r];!o||o.used||o!=null&&o.data.size&&o.data.forEach(s=>{var a;(a=s.ref)!=null&&a.current&&!(n.target===s.ref.current||s.ref.current.contains(n.target))||(s.callback(t[r]),this.hotkeyMap[r].used=!0)})})},this.handleKeyUp=t=>{const n=wn(t.key);yn(this.hotkeyMap,(r,o)=>{r.split(lt).includes(n)&&(o.used=!1)})}}}const Ht=new as,pr=c.createContext({}),ls=e=>{const{children:t}=e,[n,r]=c.useState(0),[o,s]=c.useState(0),a=c.useCallback(m=>{if(m.repeat||o===0)return;const v=br(m);v&&(ze[v]=m,(v==="meta"||v==="control")&&(ze.mod=m),r(Object.keys(ze).length),v==="meta"&&xn.push(...Object.keys(ze)),ze.Meta&&xn.push(v))},[o]),l=c.useCallback(m=>{if(o===0)return;const v=br(m);v&&(delete ze[v],(v==="meta"||v==="control")&&delete ze.mod,v==="meta"&&xn.forEach(p=>{delete ze[p]}),r(Object.keys(ze).length))},[o]),d=m=>!gr(m).split(lt).some(p=>!ze[p]),f=c.useCallback((m,v)=>(s(p=>p+1),Ht.bindHotkeys(m,v),()=>{s(p=>p-1),Ht.unbindHotkeys(m)}),[]),_=c.useCallback(m=>{m.key&&(a(m),Ht.handleKeyDown(ze,m))},[a]),h=c.useCallback(m=>{m.key&&(l(m),Ht.handleKeyUp(m))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",_),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",h)}),[_,h]),i.jsx(pr.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},cs=()=>c.useContext(pr),rt=(e,t=[],n)=>{const{addHotkeys:r,isPressed:o}=cs(),s=c.useRef(null),a=(n==null?void 0:n.ref)||s;return c.useEffect(()=>{const l=r(e,a);return()=>l==null?void 0:l()},[r,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:o}},jn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ds=e=>{const t=c.useState(e||!1),[n,r]=t;return le(()=>{const o=new MutationObserver(s=>{s.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]),le(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(jn).rtl,Cn=e=>{const t=e&&window.getComputedStyle(e).overflowY,n=t==null?void 0:t.includes("scroll");return e===document.body||!e?document.body:n&&e.scrollHeight>e.clientHeight?e:Cn(e.parentElement)},xr=16,Rt=["top-start","top","top-end"],Ut=["bottom-start","bottom","bottom-end"],Kt=["start","start-bottom","start-top"],Yt=["end","end-bottom","end-top"],us={top:[...Rt,...Ut,...Yt,...Kt],bottom:[...Ut,...Rt,...Yt,...Kt],start:[...Kt,...Yt,...Rt,...Ut],end:[...Yt,...Kt,...Rt,...Ut]},_s=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,wr=(e,t)=>Math.floor(e/2-t/2),ms=e=>{const n=["top","bottom","start","end"].find(r=>e.startsWith(r))||"bottom";return us[n]},kn=e=>{const t=document.documentElement,n=t.scrollLeft,r=n+t.clientWidth,o=t.scrollTop,s=o+t.clientHeight;return e.left>=n&&e.left+e.width<=r&&e.top>=o&&e.top+e.height<=s},yr=(e,t,n,r)=>{const{position:o,rtl:s,width:a}=r;let l=0,d=0,f=o;switch(s&&(f=_s(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=wr(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=wr(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 _=Math.ceil(t.width);const h=Math.ceil(t.height);return a==="full"?(l=xr,_=window.innerWidth-xr*2):a==="trigger"&&(_=e.width),{styles:{left:l,top:d,width:_,height:h},position:f}},jr={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},Nn={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},fs=(e,t,n)=>{const{position:r,forcePosition:o,width:s}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(Nn).forEach(v=>{const p=Nn[v];a.style[v]=p.toString()}),s&&(s==="trigger"?a.style.width=`${l.width}px`:s!=="full"&&(a.style.width=s)),document.body.appendChild(a);const d=a.getBoundingClientRect(),f=Cn(e),_=f.getBoundingClientRect(),h={top:_.top+document.documentElement.scrollTop-f.scrollTop,left:_.left+document.documentElement.scrollLeft-f.scrollLeft};let m=yr(l,d,h,n);if(!kn(m.styles)&&!o){const v=ms(r),p=v.filter(y=>y==="top"||y==="bottom"),x=(y,b={})=>{const{fullWidth:w}=b;y.some(j=>{const $=k(g({},n),{width:w?"full":n.width,position:j}),z=yr(l,d,h,$);return kn(z.styles)?(m=z,!0):!1})};x(v),kn(m.styles)||x(p,{fullWidth:!0})}return a.parentNode.removeChild(a),m},hs=(e,t)=>{switch(t.type){case"render":return k(g({},e),{status:"rendered",styles:{pointerEvents:"none"}});case"position":return k(g({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:g(g({},jr),t.payload.styles)});case"show":return k(g({},e),{status:"visible"});case"hide":return k(g({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return k(g({},e),{status:"idle",styles:Nn});default:throw new Error("Invalid reducer type")}},vs=(e,t,n)=>{const{position:r="bottom",forcePosition:o,width:s}=n,[a]=Ge(),[l,d]=c.useReducer(hs,{position:r,styles:jr,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),_=c.useCallback(()=>{d({type:"show"})},[]),h=c.useCallback(()=>{d({type:"hide"})},[]),m=c.useCallback(()=>{d({type:"remove"})},[]),v=c.useCallback(()=>{if(!e.current||!t.current)return;const p=fs(e.current,t.current,{width:s,position:r,forcePosition:o,rtl:a});d({type:"position",payload:p})},[e,t,r,a,o,s]);return c.useEffect(()=>{l.status==="rendered"&&v(),l.status==="positioned"&&$t(()=>_())},[l.status,v,_]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:v,render:f,hide:h,remove:m}),[f,v,h,m,l.position,l.styles,l.status])},gs=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=r=>{let o=!1;e.forEach(s=>{(!s.current||s.current===r.target||s.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])},Cr=c.createContext({}),Gt=()=>c.useContext(Cr),bs=Cr.Provider,kr=e=>{const{triggerType:t="click",onOpen:n,onClose:r,children:o,forcePosition:s,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:_,contentAttributes:h,position:m,active:v,id:p,instanceRef:x}=e,[y]=Ge(),b=c.useRef(null),w=c.useRef(null),j=$e(p),$=c.useRef(),z=c.useRef(null),E=c.useRef(!1),P=c.useRef(!1),I=c.useRef(!0),V=vs(b,w,{width:l,position:m,defaultActive:v,forcePosition:s}),S=Gt(),{status:A,updatePosition:D,render:q,hide:L,remove:Q}=V,fe=vr(t!=="hover"&&A!=="idle",w,b),he=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),oe=c.useCallback(()=>{!E.current&&A==="idle"&&(n==null||n())},[A]),Z=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&A!=="idle"&&(r==null||r(),X!=null&&X.closeParents&&((Me=S==null?void 0:S.handleClose)==null||Me.call(S)))},[A,fe,t]),He=c.useCallback(X=>{var ve;(ve=w.current)!=null&&ve.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||P.current||Z()},[Z,t,a]),Ce=c.useCallback(()=>{oe()},[oe]),se=c.useCallback(()=>{he(),$.current=setTimeout(oe,ns)},[he,$,oe]),H=c.useCallback(()=>{he(),$.current=setTimeout(()=>Z(),rs)},[he,$,Z]),Y=c.useCallback(()=>{A==="idle"?oe():Z()},[A,oe,Z]),G=()=>P.current=!0,ie=()=>P.current=!1;le(()=>{if(v){q();return}Vo()&&!d?L():Q()},[v,q,L,d]);const ye=c.useCallback(X=>{w.current!==X.currentTarget||X.propertyName!=="transform"||A==="hidden"&&Q()},[Q,A]);return le(()=>{A!=="visible"||!w.current||(z.current=Wt(w.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{z.current=null,Z()}}))},[A,t,Z,a]),c.useEffect(()=>{!d&&A!=="hidden"||d&&A!=="idle"||z.current&&(t==="hover"&&(E.current=!0,setTimeout(()=>{E.current=!1},100)),z.current({withoutFocusReturn:!I.current}),z.current=null,I.current=!0)},[A,t,d]),c.useEffect(()=>()=>{z.current&&z.current(),z.current=null},[]),c.useEffect(()=>{const X=Gn(D,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[D]),c.useEffect(()=>{D()},[y,D]),c.useImperativeHandle(x,()=>({open:oe,close:Z}),[oe,Z]),rt({Escape:()=>Z()},[Z]),gs([w,b],()=>{I.current=!1,Z()}),i.jsx(bs,{value:{id:j,flyout:V,triggerElRef:b,flyoutElRef:w,handleClose:Z,handleOpen:oe,handleFocus:Ce,handleBlur:He,handleMouseEnter:se,handleMouseLeave:H,handleTransitionEnd:ye,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:_,contentAttributes:h},children:o})},ps=e=>{const{defaultActive:t,onClose:n,onOpen:r}=e,[o,s]=c.useState(t||!1),a=()=>{s(!1),n&&n()},l=()=>{s(!0),r&&r()};return i.jsx(kr,k(g({},e),{defaultActive:void 0,active:o,onClose:a,onOpen:l}))},xs=e=>{const{children:t}=e,{id:n,triggerElRef:r,triggerType:o,flyout:s,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:_,handleOpen:h,trapFocusMode:m}=Gt();rt({[`${lr},${cr}`]:()=>{s.status==="idle"&&h()}},[h,s.status],{ref:r});let v={onBlur:l,ref:r};return o==="click"&&(v.onClick=_),o==="hover"&&(v.onMouseEnter=d,v.onMouseLeave=f),(o==="hover"||o==="focus")&&(v.onFocus=a,v["aria-describedby"]=n),(o==="click"||o==="focus"||m==="action-menu")&&(m==="dialog"?v["aria-haspopup"]="dialog":m==="selection-menu"?(v["aria-haspopup"]="listbox",v["aria-autocomplete"]="list"):v["aria-haspopup"]="menu",v["aria-expanded"]=s.status!=="idle",v["aria-controls"]=s.status!=="idle"?n:void 0),i.jsx(i.Fragment,{children:t(v)})},Nr=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),$n=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),ws=()=>{const{mode:e}=c.useContext($n);return e},$r=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Nr),{mode:r,setMode:o,invertMode:s}=c.useContext($n);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||r,setColorMode:o,invertColorMode:s}),[e,r,o,s,t,n])},ys={root:"_root_r30zs_1"},ct=e=>{const{name:t,defaultName:n,colorMode:r,children:o,className:s}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),_=ws(),h=$r(),m=!h.theme,v=t||d||h.theme,p=m?_:h.colorMode,y=r==="inverted"?p==="light"?"dark":"light":r||p,b=M(ys.root,s),w=j=>{f(j)};return le(()=>{l(!0)},[]),le(()=>{if(!document||!m)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",v),j||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[v,y,m]),i.jsx(Nr.Provider,{value:{theme:v,colorMode:y,setTheme:w},children:i.jsx("div",{className:b,"data-rs-theme":m?void 0:v,"data-rs-color-mode":m||!r&&!a?void 0:y,children:o})})},js=e=>{const{defaultMode:t,children:n}=e,[r,o]=c.useState(t||"light"),s=c.useCallback(l=>{Lo(),document.documentElement.setAttribute("data-rs-color-mode",l),o(l)},[]);le(()=>{$t(()=>{qo()})},[r]),le(()=>{const l=document.documentElement.getAttribute("data-rs-color-mode");l&&s(l)},[]);const a=c.useMemo(()=>({mode:r,setMode:s,invertMode:()=>{s(r==="light"?"dark":"light")}}),[r,s]);return i.jsx($n.Provider,{value:a,children:n})},Er=c.createContext({}),Cs=()=>c.useContext(Er),Xt=e=>{const{children:t,targetRef:n}=e,r=Cs(),o=n||r.scopeRef;return _e.createPortal(i.jsx(ct,{children:t}),(o==null?void 0:o.current)||document.body)};function ks(e){const{children:t}=e,n=c.useRef(null);return i.jsx(Er.Provider,{value:{scopeRef:n},children:t(n)})}Xt.Scope=ks;const zt={content:"_content_u88xy_1",inner:"_inner_u88xy_5","--position-top":"_--position-top_u88xy_9","--position-top-end":"_--position-top-end_u88xy_10","--position-top-start":"_--position-top-start_u88xy_11","--position-bottom":"_--position-bottom_u88xy_15","--position-bottom-end":"_--position-bottom-end_u88xy_16","--position-bottom-start":"_--position-bottom-start_u88xy_17","--position-start":"_--position-start_u88xy_21","--position-start-top":"_--position-start-top_u88xy_22","--position-start-bottom":"_--position-start-bottom_u88xy_23","--position-end":"_--position-end_u88xy_27","--position-end-top":"_--position-end-top_u88xy_28","--position-end-bottom":"_--position-end-bottom_u88xy_29","--visible":"_--visible_u88xy_57","--animated":"_--animated_u88xy_62"},Ns=e=>{const{children:t,className:n,attributes:r}=e,{flyout:o,id:s,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:_,handleMouseLeave:h,handleContentMouseDown:m,handleContentMouseUp:v,contentGap:p,contentClassName:x,contentAttributes:y,trapFocusMode:b}=Gt(),{styles:w,status:j,position:$}=o,[z,E]=c.useState(!1);if(le(()=>{E(!0)},[]),j==="idle"||!z)return null;const P=M(zt.content,j==="visible"&&zt["--visible"],["visible","hidden"].includes(j)&&zt["--animated"],$&&zt[`--position-${$}`]),I=M(zt.inner,n,x);let V;f==="hover"?V="tooltip":b==="dialog"?V="dialog":b==="selection-menu"?V="listbox":b==="action-menu"&&(V="menu");const S=i.jsx("div",{className:P,style:k(g({},w),{"--rs-flyout-gap":p}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?_:void 0,onMouseLeave:f==="hover"?h:void 0,onMouseDown:m,onTouchStart:m,onMouseUp:v,onTouchEnd:v,children:i.jsx("div",k(g({role:V},r),{id:s,"aria-modal":f==="click",style:y==null?void 0:y.style,className:I,children:t}))}),A=Cn(l.current);return i.jsx(Xt,{targetRef:A===document.body?void 0:{current:A},children:S})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(kr,g({},e)):i.jsx(ps,g({},e))};Xe.Trigger=xs,Xe.Content=Ns;const En={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},$s={root:"_root_e7w6q_1"},zn=e=>{if(!e)return null;const t=ee("--rs-p",e);return{classNames:$s.root,variables:t}},dt=e=>{var j;const{id:t,forcePosition:n,onOpen:r,onClose:o,active:s,defaultActive:a,children:l,width:d,contentGap:f,variant:_="elevated",triggerType:h="click",position:m="bottom",disableHideAnimation:v,instanceRef:p}=e,x=(j=e.padding)!=null?j:_==="headless"?0:4,y=e.trapFocusMode||(h==="hover"?"content-menu":void 0),b=zn(x),w=M(En.content,!!d&&En["content--has-width"],_&&En[`content--variant-${_}`],b==null?void 0:b.classNames);return i.jsx(Xe,{id:t,instanceRef:p,position:m,forcePosition:n,onOpen:r,onClose:o,trapFocusMode:y,triggerType:h,active:s,defaultActive:a,width:d,disableHideAnimation:v,contentGap:f,contentClassName:w,contentAttributes:{style:g({},b==null?void 0:b.variables)},children:l})};dt.Trigger=Xe.Trigger,dt.Content=Xe.Content;const Be={root:"_root_177la_1",icon:"_icon_177la_17",content:"_content_177la_22","--rounded-corners":"_--rounded-corners_177la_27","--size-small":"_--size-small_177la_1","--size-medium":"_--size-medium_177la_1","--size-large":"_--size-large_177la_1","--color-neutral":"_--color-neutral_177la_66","--selected":"_--selected_177la_70","--color-critical":"_--color-critical_177la_76","--color-primary":"_--color-primary_177la_86","--disabled":"_--disabled_177la_107",aligner:"_aligner_177la_115","--rounded-corners-true--m":"_--rounded-corners-true--m_177la_1","--rounded-corners-false--m":"_--rounded-corners-false--m_177la_1","--size-small--m":"_--size-small--m_177la_1","--size-medium--m":"_--size-medium--m_177la_1","--size-large--m":"_--size-large--m_177la_1","--rounded-corners-true--l":"_--rounded-corners-true--l_177la_1","--rounded-corners-false--l":"_--rounded-corners-false--l_177la_1","--size-small--l":"_--size-small--l_177la_1","--size-medium--l":"_--size-medium--l_177la_1","--size-large--l":"_--size-large--l_177la_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_177la_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_177la_1","--size-small--xl":"_--size-small--xl_177la_1","--size-medium--xl":"_--size-medium--xl_177la_1","--size-large--xl":"_--size-large--xl_177la_1"},Es=e=>{const{children:t,className:n,attributes:r}=e,o=M(Be.aligner,n);return i.jsx("div",k(g({},r),{className:o,children:t}))},zs=(e,t)=>{const{icon:n,startSlot:r,endSlot:o,children:s,color:a="primary",selected:l,disabled:d,onClick:f,href:_,size:h="medium",roundedCorners:m,className:v,attributes:p}=e,x=M(Be.root,v,W(Be,"--size",h),W(Be,"--rounded-corners",m),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=Le(h,w=>w==="large"?3:2),b=Le(h,w=>w==="large"?5:4);return i.jsx(qe,{disabled:d,className:x,attributes:p,onClick:f,href:_,ref:t,children:i.jsxs(U,{direction:"row",gap:y,align:"center",children:[n&&i.jsx(de,{svg:n,className:Be.icon,size:b}),!n&&r,s&&i.jsx(U.Item,{grow:!0,className:Be.content,children:s}),o]})})},Tn=c.forwardRef(zs);Tn.Aligner=Es;const Jt=()=>i.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:i.jsx("polyline",{points:"9 18 15 12 9 6"})}),Qt={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},In=c.createContext(null),we=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:r="click",trapFocusMode:o="action-menu"}=a,s=Fe(a,["children","position","triggerType","trapFocusMode"]);return i.jsx(dt,k(g({},s),{position:n,padding:0,trapFocusMode:o,triggerType:r,children:t}))},Ts=e=>{const{children:t,attributes:n,className:r}=e,o=c.useContext(In),[s]=Ge(),{ref:a}=rt({[s?dr:ur]:()=>{var d;(d=o==null?void 0:o.current)==null||d.close()},[Yo]:()=>{const d=Ot();d==null||d.click()}},[o==null?void 0:o.current]),l=M(Qt.menu,r);return i.jsx(dt.Content,{className:l,attributes:k(g({},n),{ref:a}),children:t})},Is=e=>{const{children:t}=e;return i.jsx("div",{className:Qt.section,role:"group",children:t})},zr=e=>{const{onClick:t}=e,{handleClose:n}=Gt(),r=o=>{n&&n({closeParents:!0}),t&&t(o)};return i.jsx(Tn,k(g({},e),{roundedCorners:!0,className:Qt.item,attributes:g({role:"menuitem"},e.attributes),onClick:r}))},Ms=e=>{const{children:t}=e,n=c.useRef();return i.jsx(In.Provider,{value:n,children:i.jsx(we,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Ss=e=>{const l=e,{children:t,attributes:n}=l,r=Fe(l,["children","attributes"]),o=c.useContext(In),[s]=Ge(),{ref:a}=rt({[s?ur:dr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return i.jsx(zr,k(g({},r),{attributes:k(g({},n),{ref:a}),endSlot:i.jsx(de,{autoWidth:!0,svg:Jt,className:Qt.arrow}),children:t}))},Ps=e=>{const{children:t}=e;return i.jsx(we.Trigger,{children:n=>i.jsx(Ss,{attributes:n,children:t})})};we.Trigger=dt.Trigger,we.Content=Ts,we.Section=Is,we.Item=zr,we.SubMenu=Ms,we.SubTrigger=Ps;const Tr=c.createContext({}),Ir=e=>{const y=e,{children:t,onChange:n,onItemSelect:r,name:o}=y,s=Fe(y,["children","onChange","onItemSelect","name"]),[a,l]=c.useState(!1),[d,f]=c.useState(!1),_=!!c.Children.toArray(t).filter(Boolean).length,h=()=>l(!0),m=()=>l(!1),v=b=>{n==null||n(b),f(!1),h()},p=b=>{n==null||n({value:b.value,name:o}),r==null||r({value:b.value}),f(!0)},x=b=>{var w;requestAnimationFrame(()=>{d&&(l(!1),f(!1))}),(w=s.onFocus)==null||w.call(s,b)};return i.jsx(Tr.Provider,{value:{onItemClick:p},children:i.jsxs(we,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!d&&_&&a,onClose:m,onOpen:h,disableHideAnimation:!0,children:[i.jsx(we.Trigger,{children:j=>{var $=j,{ref:b}=$,w=Fe($,["ref"]);return i.jsx(ar,k(g({},s),{name:o,onChange:v,attributes:k(g({},s.attributes),{ref:b}),inputAttributes:k(g({},w),{onFocus:z=>{var E;(E=w.onFocus)==null||E.call(w),x(z)},role:"combobox"})}))}}),i.jsx(we.Content,{children:t})]})})},As=e=>{const a=e,{value:t,onClick:n}=a,r=Fe(a,["value","onClick"]),{onItemClick:o}=c.useContext(Tr),s=l=>{n==null||n(l),o({value:t})};return i.jsx(we.Item,k(g({},r),{attributes:k(g({},r.attributes),{role:"option"}),onClick:s}))};Ir.Item=As;const Zt={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"},Fs=e=>{const{color:t="neutral",variant:n,src:r,size:o=12,squared:s,initials:a,icon:l,alt:d,className:f,attributes:_}=e,h=s?Le(o,x=>x>=24?"large":x>=12?"medium":"small"):"circular",m=Ct(o),v=M(Zt.root,f,m==null?void 0:m.classNames,t&&Zt[`--color-${t}`],n&&Zt[`--variant-${n}`]),p=()=>r?i.jsx("img",{role:a?void 0:"presentation",src:r,alt:d,className:Zt.img}):l?i.jsx(de,{svg:l,size:Le(o,x=>Math.ceil(x*.4))}):a;return i.jsx(U,{borderRadius:h,attributes:k(g({},_),{style:g({},m==null?void 0:m.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:v,children:p()})},Mr=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Te={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"},Ls=e=>{const{children:t,position:n="top-end",overlap:r,className:o,attributes:s}=e,a=M(Te.container,o,r&&Te["--container-overlap"],n&&Te[`--container-position-${n}`]);return i.jsx("div",k(g({},s),{className:a,children:t}))},Sr=e=>{const{children:t,color:n,rounded:r,size:o="medium",icon:s,endIcon:a,variant:l,hidden:d,href:f,onClick:_,onDismiss:h,dismissAriaLabel:m,className:v,attributes:p}=e,x=!!(_||f),y=o==="large"?4:3.5,b=M(Te.root,v,r&&Te["--rounded"],d&&Te["--hidden"],o&&Te[`--size-${o}`],n&&Te[`--color-${n}`],l&&Te[`--variant-${l}`],x&&Te["--actionable"]);return i.jsxs(qe,{onClick:_,href:f,className:b,attributes:p,children:[s&&i.jsx(de,{svg:s,autoWidth:!0,size:y}),t&&i.jsx(te,{variant:o==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&i.jsx(de,{svg:a,autoWidth:!0,size:y}),h&&i.jsx(qe,{onClick:h,className:Te.dismiss,as:"span",attributes:{"aria-label":m},children:i.jsx(de,{svg:Mr,size:y})})]})};Sr.Container=Ls;const en={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"},Pr=e=>{const{size:t="small",color:n="primary",className:r,attributes:o}=e,s=o==null?void 0:o["aria-label"],a=M(en.root,r,W(en,"--size",t),n&&en[`--color-${n}`]);return i.jsx("span",k(g({},o),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:a,children:i.jsx("span",{className:en.inner})}))},ce={root:"_root_nv3u4_1",loader:"_loader_nv3u4_33",icon:"_icon_nv3u4_41","--icon-position-end":"_--icon-position-end_nv3u4_45",text:"_text_nv3u4_56","--loading":"_--loading_nv3u4_62","--elevated":"_--elevated_nv3u4_79","--icon-only":"_--icon-only_nv3u4_83","--rounded":"_--rounded_nv3u4_89","--size-small":"_--size-small_nv3u4_1","--size-medium":"_--size-medium_nv3u4_1","--size-large":"_--size-large_nv3u4_1","--size-xlarge":"_--size-xlarge_nv3u4_1","--full-width":"_--full-width_nv3u4_135","--variant-solid":"_--variant-solid_nv3u4_149","--color-black":"_--color-black_nv3u4_149","--color-white":"_--color-white_nv3u4_150","--variant-faded":"_--variant-faded_nv3u4_151","--color-neutral":"_--color-neutral_nv3u4_151","--color-primary":"_--color-primary_nv3u4_152","--color-critical":"_--color-critical_nv3u4_153","--color-positive":"_--color-positive_nv3u4_154","--color-inherit":"_--color-inherit_nv3u4_155","--variant-outline":"_--variant-outline_nv3u4_156","--variant-ghost":"_--variant-ghost_nv3u4_157","--highlighted":"_--highlighted_nv3u4_176","--disabled":"_--disabled_nv3u4_531",group:"_group_nv3u4_563",aligner:"_aligner_nv3u4_624","--aligner-position-all":"_--aligner-position-all_nv3u4_628","--aligner-position-start":"_--aligner-position-start_nv3u4_636","--aligner-position-end":"_--aligner-position-end_nv3u4_644","--aligner-position-top":"_--aligner-position-top_nv3u4_652","--aligner-position-bottom":"_--aligner-position-bottom_nv3u4_656","--size-small--m":"_--size-small--m_nv3u4_1","--size-medium--m":"_--size-medium--m_nv3u4_1","--size-large--m":"_--size-large--m_nv3u4_1","--size-xlarge--m":"_--size-xlarge--m_nv3u4_1","--full-width-true--m":"_--full-width-true--m_nv3u4_1","--full-width-false--m":"_--full-width-false--m_nv3u4_1","--size-small--l":"_--size-small--l_nv3u4_1","--size-medium--l":"_--size-medium--l_nv3u4_1","--size-large--l":"_--size-large--l_nv3u4_1","--size-xlarge--l":"_--size-xlarge--l_nv3u4_1","--full-width-true--l":"_--full-width-true--l_nv3u4_1","--full-width-false--l":"_--full-width-false--l_nv3u4_1","--size-small--xl":"_--size-small--xl_nv3u4_1","--size-medium--xl":"_--size-medium--xl_nv3u4_1","--size-large--xl":"_--size-large--xl_nv3u4_1","--size-xlarge--xl":"_--size-xlarge--xl_nv3u4_1","--full-width-true--xl":"_--full-width-true--xl_nv3u4_1","--full-width-false--xl":"_--full-width-false--xl_nv3u4_1"},qs=e=>{const{children:t,className:n,attributes:r}=e,o=M(ce.group,n);return i.jsx("div",k(g({},r),{className:o,role:"group",children:t}))},Vs=e=>{const{children:t,position:n,className:r,attributes:o}=e,s=typeof n=="string"?[n]:n,a=s?s.map(d=>ce[`--aligner-position-${d}`]):[ce["--aligner-position-all"]],l=M(ce.aligner,r,...a);return i.jsx("div",k(g({},o),{className:l,children:t}))},Os=(e,t)=>{const{variant:n="solid",color:r="neutral",elevated:o,highlighted:s,fullWidth:a,loading:l,disabled:d,type:f,href:_,size:h="medium",className:m,children:v,rounded:p,attributes:x,onClick:y,icon:b,endIcon:w}=e,j=(b||w)&&!v,$=M(ce.root,m,r&&ce[`--color-${r}`],n&&ce[`--variant-${n}`],W(ce,"--size",h),W(ce,"--full-width",a),o&&n!=="ghost"&&ce["--elevated"],p&&ce["--rounded"],d&&ce["--disabled"],l&&ce["--loading"],s&&ce["--highlighted"],j&&ce["--icon-only"]),z=E=>{if(!(E==="start"&&b||E==="end"&&w))return null;const S=M(ce.icon,E==="end"&&ce["--icon-position-end"]),A=Le(h,D=>D==="large"?5:D==="xlarge"?6:4);return i.jsx(de,{className:S,svg:E==="start"?b:w,size:A,autoWidth:!0})};return i.jsxs(qe,{disabled:d||l,className:$,attributes:x,type:f,onClick:y,href:_,ref:t,children:[l&&i.jsx("div",{className:ce.loader,children:i.jsx(Pr,{size:"small",color:"inherit"})}),z("start"),v&&i.jsx("span",{className:ce.text,children:v}),z("end")]})},je=c.forwardRef(Os);je.Group=qs,je.Aligner=Vs;const Tt={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"},Ds=(e,t)=>{const{icon:n,disabled:r,href:o,color:s="primary",variant:a="underline",className:l,children:d,attributes:f,type:_,onClick:h}=e,m=M(Tt.root,l,r&&Tt["--disabled"],a&&Tt[`--variant-${a}`],s&&Tt[`--color-${s}`],n&&Tt["--with-icon"]);return i.jsxs(qe,{href:o,disabled:r,className:m,attributes:f,type:_,onClick:h,ref:t,children:[n&&i.jsx(de,{svg:n}),d]})},Ar=c.forwardRef(Ds),Bs=()=>i.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.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"}),i.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"}),i.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"})]}),Ws=e=>{const{children:t,onClick:n,href:r,icon:o,disabled:s}=e;return!r&&!n&&!s?i.jsx(te,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(Ar,{onClick:n,href:r,icon:o,disabled:s,variant:"plain",color:"inherit",children:t})},Fr=e=>{const{children:t,separator:n,color:r,defaultVisibleItems:o,ariaLabel:s,className:a,attributes:l}=e,d=o&&o>=2?o:null,[f,_]=c.useState(!1),h=M(a),m=c.Children.count(t);let v=0;const p=()=>{_(!0)};return i.jsx("nav",k(g({},l),{"aria-label":s||(l==null?void 0:l["aria-label"]),className:h,children:i.jsx(U,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,y)=>{if(!x)return null;const b=m-(d||0),w=v===0,j=v>b,$=!d||w||j||f,z=v===b;v+=1;let E=null;return $?E=x:z&&(E=i.jsx(je.Aligner,{children:i.jsx(je,{variant:"ghost",size:"small",icon:Bs,onClick:p})})),E===null?null:i.jsxs(U,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||z)&&i.jsx(te,{color:"neutral-faded",children:n||i.jsx(de,{svg:Jt,size:3})}),i.jsx(te,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:E})]},y)})})}))};Fr.Item=Ws;const ut={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},Hs=(e,t)=>{const{padding:n=4}=e,{selected:r,elevated:o,bleed:s,height:a,onClick:l,href:d,children:f,className:_,attributes:h,as:m="div"}=e,v=!!d||!!l,p=un("medium"),x=tr(s),y=zn(n),b=Ct(a),w=M(ut.root,p==null?void 0:p.classNames,x==null?void 0:x.classNames,y==null?void 0:y.classNames,b==null?void 0:b.classNames,v&&ut["--actionable"],o&&ut["--elevated"],r&&ut["--selected"],_),j=g(g(g(g({},h==null?void 0:h.style),x==null?void 0:x.variables),y==null?void 0:y.variables),b==null?void 0:b.variables);return v?i.jsx(qe,{className:w,attributes:k(g({},h),{style:j}),href:d,as:m,onClick:l,ref:t,children:i.jsx("span",{className:ut.content,children:f})}):i.jsx(m,k(g({},h),{onClick:l,href:d,ref:t,className:w,style:j,children:i.jsx("span",{className:ut.content,children:f})}))},Rs=c.forwardRef(Hs),Lr=()=>i.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:i.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"},qr=e=>{const{type:t,scrollElRef:n,scrollPosition:r,onClick:o,isRTL:s,mounted:a}=e,[l,d]=c.useState(!1),[f,_]=c.useState(!1),h=t===_t.forward,m=t===(s?_t.back:_t.forward),v=M(We.control,m?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return le(()=>{const p=n.current;if(!p||!a)return;let x;const y=Math.abs(r),b=y<=0,w=y+p.clientWidth>=p.scrollWidth-1;return(h?w:b)?(d(!1),x=setTimeout(()=>_(!1),1500)):(_(!0),d(!0)),()=>{x&&clearTimeout(x)}},[r,n.current,a]),i.jsx("div",{className:v,"aria-hidden":"true",children:i.jsx(je,{onClick:o,icon:m?Jt:Lr,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},Us=e=>{const{children:t,gap:n=3,visibleItems:r,bleed:o,navigationDisplay:s,instanceRef:a,className:l,attributes:d}=e,[f,_]=c.useState(!1),[h,m]=c.useState(0),[v]=Ge(),p=c.useRef(null),x={};typeof o=="object"&&Object.entries(o).forEach(([P,I])=>{x[P]=typeof I=="number"&&I>0});const y=M(We.root,l,...W(We,"--bleed",typeof o=="number"?!0:x)),b=po(P=>{const I=P.target;m(I.scrollLeft)},16),w=()=>{const I=getComputedStyle(p.current).gap.split(" ")[0];return Number(I.replace("px",""))},j=()=>{const P=p.current;P.scrollBy({left:P.clientWidth+w(),top:0,behavior:"smooth"})},$=()=>{const P=p.current;P.scrollBy({left:-P.clientWidth-w(),top:0,behavior:"smooth"})},z=v?j:$,E=v?$:j;return c.useImperativeHandle(a,()=>({navigateBack:z,navigateForward:E})),le(()=>{_(!0)},[]),i.jsxs("section",k(g({},d),{className:y,style:g(g({},ee("--rs-carousel-items",r)),ee("--rs-carousel-bleed",o)),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(qr,{isRTL:v,type:_t.back,scrollElRef:p,scrollPosition:h,onClick:z,mounted:f}),i.jsx(qr,{isRTL:v,type:_t.forward,scrollElRef:p,scrollPosition:h,onClick:E,mounted:f})]}),i.jsx(U,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:p,onScroll:b},children:c.Children.map(t,P=>i.jsx(U.Item,{className:We.item,as:"li",children:P}))})]}))},Ks={root:"_root_1feer_1"},Mn=e=>{const{name:t,value:n,type:r,onChange:o,onFocus:s,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:_,attributes:h}=e,m=M(Ks.root,_);return i.jsx("input",k(g({},h),{className:m,type:r,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:o,onFocus:s||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},Vr=c.createContext(null),Ys=()=>c.useContext(Vr),Or=e=>{const{onChange:t,name:n,disabled:r,value:o,children:s,hasError:a}=e,l=d=>{const{event:f,value:_,checked:h}=d;if(!_)return;let m=[...o];h?m.push(_):m=m.filter(v=>v!==_),t&&t({name:n,value:m,event:f})};return i.jsx(Vr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:s})},Gs=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||[]),s=a=>{a.value&&(o(a.value),n&&n(a))};return i.jsx(Or,k(g({},e),{value:r,defaultValue:void 0,onChange:s}))},Xs=e=>{const{value:t}=e;return t!==void 0?i.jsx(Or,g({},e)):i.jsx(Gs,g({},e))},Js=()=>i.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:i.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"},Qs=e=>{var $;const{children:t,value:n,onChange:r,onFocus:o,onBlur:s,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,_=Ys(),h=Ye(),m=(h==null?void 0:h.hasError)||e.hasError||(_==null?void 0:_.hasError),v=(h==null?void 0:h.disabled)||e.disabled||(_==null?void 0:_.disabled),p=_?($=_.value)==null?void 0:$.includes(n):e.checked,x=_?void 0:e.defaultChecked,y=_?_.name:e.name,b=c.useRef(null),w=M(Je.root,l,m&&Je["--error"],v&&Je["--disabled"]),j=z=>{if(!y)return;const{checked:E}=z.target,P={name:y,value:n,checked:E,event:z};r&&r(P),_!=null&&_.onChange&&_.onChange(P)};return le(()=>{b.current.indeterminate=a||!1},[a,p]),i.jsxs("label",k(g({},d),{className:w,children:[i.jsxs("span",{className:Je.field,children:[i.jsx(Mn,{className:Je.input,type:"checkbox",checked:p,defaultChecked:x,name:y,disabled:v,value:n,onChange:j,onFocus:o,onBlur:s,attributes:k(g({},f),{ref:b})}),i.jsx("div",{className:Je.decorator,children:i.jsx(de,{svg:Js,className:Je.icon})})]}),t&&i.jsx("span",{className:Je.text,children:t})]}))},Zs={root:"_root_1c40o_1"},ei=e=>{const{children:t,padding:n=4,width:r,className:o,attributes:s}=e,a=M(Zs.root,o);return i.jsx(U,{attributes:s,className:a,paddingInline:n,width:r,maxWidth:"100%",children:t})},It={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"},ti=e=>{const{children:t,align:n,onClose:r,hideCloseButton:o,variant:s,closeAriaLabel:a,className:l,attributes:d}=e,f=M(It.root,l,s&&It[`--variant-${s}`],n&&It[`--align-${n}`],o&&It["--hide-close"]),_=s==="media"?"div":je.Aligner;return i.jsxs("div",k(g({},d),{className:f,children:[t,!o&&i.jsx(_,{className:It.close,children:i.jsx(je,k(g({size:"small"},s==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:r,attributes:{"aria-label":r?a:void 0},icon:Mr}))})]}))},ni={root:"_root_r7flr_1"},ri=e=>{const{children:t}=e;return i.jsx("div",{className:ni.root,children:t})},Dr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},oi=e=>{const{children:t,active:n,className:r,attributes:o}=e,s=M(Dr.root,n&&Dr["--active"],r);return i.jsx(te,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:o,children:t})},tn={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},si=e=>{const{src:t,alt:n,width:r,height:o,onLoad:s,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:_,attributes:h,imageAttributes:m}=e,[v,p]=c.useState("loading"),x=un(f),y=_n(r),b=Ct(o),w=M(tn.root,x==null?void 0:x.classNames,y==null?void 0:y.classNames,b==null?void 0:b.classNames,d&&tn[`--display-mode-${d}`],_),j=M(tn.image,w),$=M(tn.fallback,w),z=g(g({},y==null?void 0:y.variables),b==null?void 0:b.variables),E=I=>{p("success"),s==null||s(I)},P=I=>{p("error"),a==null||a(I)};return c.useEffect(()=>{p("loading")},[t]),(v==="error"||!t)&&l?typeof l=="string"?i.jsx("img",k(g({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:z})):i.jsx("div",k(g({},h),{className:$,style:z,children:l})):i.jsx("img",k(g(g({},h),m),{src:t,alt:n,role:n?void 0:"presentation",onLoad:E,onError:P,className:j,style:z}))},Sn=e=>{const[t,n]=c.useState(e||!1),r=c.useCallback(()=>{n(!0)},[]),o=c.useCallback(()=>{n(!1)},[]),s=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:r,deactivate:o,toggle:s}},ii=(()=>{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}})(),Br=()=>{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=ii();document.body.style.paddingRight=`${d}px`}t(!0)},[t,r,n]),s=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:s}},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"},Wr=e=>{const{active:t,children:n,transparent:r,onClose:o,className:s,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),_=c.useRef(!1),h=c.useRef(null),{lockScroll:m,unlockScroll:v}=Br(),{active:p,activate:x,deactivate:y}=Sn(t||!1),{active:b,activate:w,deactivate:j}=Sn(t||!1),$=vr(t,f),z=M(mt.root,b&&mt["--visible"],r&&mt["--transparent"],s),E=q=>{if(!f.current)return;const L=f.current.firstChild;if(L)return L.contains(q)},P=()=>{f.current&&(h.current=Wt(f.current))},I=()=>{h.current&&(h.current(),h.current=null)},V=c.useCallback(()=>{!b||!$()||o&&o()},[b,$]),S=q=>{_.current=!E(q.target)},A=q=>{const L=!E(q.target);_.current&&L&&!r&&V()},D=q=>{q.propertyName!=="opacity"||q.target!==q.currentTarget||b||(r||v(),y())};return rt({Escape:V},[V]),c.useEffect(()=>{t&&!p&&x(),!t&&p&&j()},[t,x,j,p]),c.useEffect(()=>{p&&(r||m(),$t(()=>w()))},[p,w,m,r]),c.useEffect(()=>{if(p)return P(),()=>I()},[p]),c.useEffect(()=>()=>{r||v()},[v,r]),le(()=>{d(!0)},[]),!p||!l?null:i.jsx(Xt,{children:i.jsx(Xt.Scope,{children:q=>i.jsx("div",k(g({},a),{ref:q,role:"button",tabIndex:-1,className:z,onMouseDown:S,onMouseUp:A,onTransitionEnd:D,children:i.jsx("div",{className:mt.wrapper,children:i.jsx("div",{className:mt.inner,children:i.jsx("div",{className:mt.content,ref:f,children:typeof n=="function"?n({active:b}):n})})})}))})})},Pn={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"},Hr=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Rr=()=>c.useContext(Hr),ai=e=>{const{children:t}=e,{id:n,setTitleMounted:r}=Rr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(te,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},li=e=>{const{children:t}=e,{id:n,setSubtitleMounted:r}=Rr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(te,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},An=e=>{const{children:t,onClose:n,active:r,size:o,padding:s=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,_=$e(),[h,m]=c.useState(!1),[v,p]=c.useState(!1),x=zn(s),y=c.useMemo(()=>({titleMounted:h,setTitleMounted:m,subtitleMounted:v,setSubtitleMounted:p,id:_}),[_,v,h]);return i.jsx(Wr,{onClose:n,active:r,transparent:l,children:({active:b})=>{const w=M(Pn.root,d,x==null?void 0:x.classNames,b&&Pn["--active"],W(Pn,"--position",a));return i.jsx(Hr.Provider,{value:y,children:i.jsx("div",k(g({},f),{style:g(g({},x==null?void 0:x.variables),ee("--rs-modal-size",o)),"aria-labelledby":h?`${_}-title`:void 0,"aria-describedby":v?`${_}-subtitle`:void 0,className:w,"aria-modal":"true",role:"dialog",children:t}))})}})};An.Title=ai,An.Subtitle=li;const Mt={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"},ci=e=>{const{value:t=0,min:n=0,max:r=100,color:o="primary",size:s="medium",duration:a,className:l,attributes:d}=e,f=M(Mt.root,l,o&&Mt[`--color-${o}`],s&&Mt[`--size-${s}`],!!a&&Mt["--duration"]),_=r-n,h=t-n,p=`${Math.max(n,Math.min(r,h))/_*100-100}%`;return i.jsx("div",k(g({role:"progressbar"},d),{className:f,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":t,children:i.jsx("div",{className:Mt.value,style:{"--rs-progress-value":p,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Ur=c.createContext(null),di=()=>c.useContext(Ur),Kr=e=>{const{onChange:t,name:n,disabled:r,value:o,children:s,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return i.jsx(Ur.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:s})},ui=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||null),s=a=>{a.value&&(o(a.value),n&&n(a))};return i.jsx(Kr,k(g({},e),{value:r,defaultValue:void 0,onChange:s}))},_i=e=>{const{value:t}=e;return t!==void 0?i.jsx(Kr,g({},e)):i.jsx(ui,g({},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"},mi=e=>{const{children:t,value:n,onChange:r,onFocus:o,onBlur:s,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),_=di(),h=(f==null?void 0:f.hasError)||e.hasError||(_==null?void 0:_.hasError),m=(f==null?void 0:f.disabled)||e.disabled||(_==null?void 0:_.disabled),v=_?_.value===n:e.checked,p=_?void 0:e.defaultChecked,x=_?_.name:e.name,y=M(ot.root,a,h&&ot["--error"],m&&ot["--disabled"]),b=w=>{if(!x)return;const{checked:j}=w.target,$={name:x,value:n,checked:j,event:w};r&&r($),_!=null&&_.onChange&&_.onChange($)};return i.jsxs("label",k(g({},l),{className:y,children:[i.jsxs("span",{className:ot.field,children:[i.jsx(Mn,{className:ot.input,type:"radio",checked:v,defaultChecked:p,name:x,disabled:m,value:n,onChange:b,onFocus:o,onBlur:s,attributes:d}),i.jsx("div",{className:ot.decorator})]}),t&&i.jsx("span",{className:ot.text,children:t})]}))},Yr={short:4e3,long:8e3},St=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Gr={queues:St.reduce((e,t)=>g({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},nn=c.createContext(Gr),fi=()=>{const{add:e,hide:t}=c.useContext(nn);return c.useMemo(()=>({show:e,hide:t}),[e,t])},Oe={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"},hi=e=>{const{size:t="small",text:n,children:r,color:o="inverted",icon:s,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:_}=e;let h=o==="inverted"||o==="neutral"?"elevation-overlay":o;o==="neutral"&&(h=f?"neutral":"elevation-overlay");const m=o==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",p=t==="large";let x=[];l&&(x=Array.isArray(l)?l:[l]);const y=(a||n)&&i.jsxs(i.Fragment,{children:[a&&i.jsxs(te,{variant:"body-3",weight:"bold",as:v,children:[a," "]}),i.jsx(te,{variant:"body-3",as:v,children:n})]}),b=i.jsxs(U,{backgroundColor:h,borderColor:m,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:p?"start":"center",className:Oe.toast,attributes:_,children:[s&&i.jsx(de,{size:5,svg:s,className:Oe.icon}),d&&!s&&i.jsx(U.Item,{children:d}),i.jsx(U.Item,{grow:!0,children:i.jsxs(U,{direction:p?"column":"row",align:p?"start":"center",gap:3,children:[i.jsx(U.Item,{grow:!0,children:y&&r||t!=="small"?i.jsxs(U,{gap:.5,children:[y,r&&i.jsx(U,{gap:3,children:r})]}):y||r}),x.length&&i.jsx(U,{direction:"row",align:"center",gap:2,children:x.map((w,j)=>{const $=t==="large"?j===0:j===x.length-1,E={variant:$?"solid":"ghost",size:"small",color:$?o==="neutral"||o==="inverted"?"neutral":"white":"inherit",elevated:o!=="neutral"};return w.type===je?c.createElement(je,k(g(g({},E),w.props),{key:j})):w})})]})})]});return o==="inverted"?i.jsx(ct,{colorMode:"inverted",children:b}):b},vi=e=>{const{toastProps:t,id:n,status:r,inspected:o,index:s}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(nn),[_,h]=c.useState(),m=c.useRef(),v=c.useRef(!1),p=c.useRef(null),x=c.useRef(null),y=r==="entered",b=M(Oe.container,y&&Oe["container--visible"],s===0&&Oe[`container--index-${s}`],!o&&(s===1||s===2)&&Oe[`container--index-${s}`],!o&&s>=3&&Oe["container--index-overflow"]),w=c.useCallback(()=>{m.current&&clearTimeout(m.current)},[]),j=c.useCallback(()=>{w();const z=typeof a=="string"?Yr[a]:a;a!==0&&(m.current=setTimeout(()=>{d(n)},z!=null?z:Yr.short))},[d,n,a,w]),$=z=>{z.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(o?w():j())},[o,j,w,y]),c.useEffect(()=>{x.current&&h(x.current.clientHeight),l(n),j()},[l,n,j]),c.useEffect(()=>{x.current&&(y?p.current=Wt(x.current,{includeTrigger:!0,mode:"content-menu"}):p.current&&_r()&&(p.current(),p.current=null))},[y]),c.useEffect(()=>{if(!y||s>0)return;const z=()=>{v.current=!0,$t(()=>{v.current=!1}),x.current&&h(x.current.clientHeight)};return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[y,s]),i.jsx("li",{className:b,style:{height:r==="entered"?`calc(${_}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:v.current?"0s":void 0},onTransitionEnd:$,onFocus:w,onBlur:j,children:i.jsx("span",{className:Oe.wrapper,children:i.jsx(hi,k(g({},t),{collapsed:s>0&&!o,attributes:{ref:x}}))})})},gi=e=>{const{position:t}=e,{queues:n,options:r}=c.useContext(nn),[o,s]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:_}=(r==null?void 0:r[t])||{},h=M(Oe.region,Oe[`region--position-${t}`]),m=d.filter(w=>w.status==="entered").length;let v=0;const p=()=>{a.current=!0},x=w=>{let j=w.target,$=!1;for(;j&&j!==l.current&&!$;)$=j.matches(mr),j=j.parentElement;$||s(z=>!z),a.current=!1},y=()=>{a.current||s(!0)},b=()=>{a.current||s(!1)};return c.useEffect(()=>{d.length===0&&s(!1)},[d.length]),d.length?i.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:l,onTouchStart:p,onClick:x,onMouseEnter:y,onMouseLeave:b,style:{width:f},children:d.map((w,j)=>{const $=m-j+v-1;return w.status!=="entered"&&(v+=1),i.jsx(vi,k(g({},w),{index:$,inspected:o||!!_}),w.id)})}):null};let bi=0;const pi=()=>`__rs-toast-${bi++}`,xi=(e,t)=>{let n;switch(t.type){case"add":const r=t.payload.toastProps||{},{position:o="bottom-end"}=r,s=Fe(r,["position"]);return k(g({},e),{[o]:[...e[o],{id:t.payload.id,toastProps:s,status:"entering"}]});case"show":const{id:a}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(_=>_.status!=="entering"?_:_.id===a?k(g({},_),{status:"entered"}):_)}),n;case"hide":const{id:l}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(_=>_.id===l?k(g({},_),{status:"exiting"}):_)}),n;case"remove":const{id:d}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].filter(_=>_.id!==d)}),n}},wi=e=>{const{children:t,options:n}=e,[r,o]=c.useReducer(xi,Gr.queues),s=c.useCallback(_=>{const h=pi();return console.log("add"),o({type:"add",payload:{toastProps:_,id:h}}),h},[]),a=c.useCallback(_=>{o({type:"show",payload:{id:_}})},[]),l=c.useCallback(_=>{console.log("hide"),o({type:"hide",payload:{id:_}})},[]),d=c.useCallback(_=>{o({type:"remove",payload:{id:_}})},[]),f=c.useMemo(()=>({queues:r,add:s,show:a,hide:l,remove:d,inspecting:!1,options:n}),[r,a,l,s,d,n]);return i.jsxs(nn.Provider,{value:f,children:[t,St.map(_=>i.jsx(gi,{position:_},_))]})},yi=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(bn,"true")},t=()=>{document.documentElement.removeAttribute(bn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},Ql="",ji={root:"_root_18j53_1"},Ci=e=>{const{children:t,defaultRTL:n,defaultViewport:r="s",toastOptions:o}=e,s=ds(n);return yi(),i.jsx(jn.Provider,{value:{rtl:s,defaultViewport:r},children:i.jsx(ls,{children:i.jsx(wi,{options:o,children:t})})})},ki=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:r,className:o}=e,s=M(ji.root,o);return i.jsx(js,{defaultMode:r,children:i.jsx(ct,{name:t,defaultName:n,className:s,children:i.jsx(Ci,k(g({},e),{children:e.children}))})})},Pt={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"},Ni=e=>{const{children:t,backgroundSlot:n,position:r="cover",attributes:o,className:s,scrimClassName:a}=e,l=M(Pt.root,!!n&&Pt["--with-background"],r&&Pt[`--position-${r}`],s),d=M(Pt.scrim,a);return i.jsxs("div",k(g({},o),{className:l,children:[n,i.jsx("div",{className:d,children:i.jsx("div",{className:Pt.content,children:t})})]}))},$i=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ie={root:"_root_t5eyu_1",input:"_input_t5eyu_18",slot:"_slot_t5eyu_48",icon:"_icon_t5eyu_56",arrow:"_arrow_t5eyu_68","--size-medium":"_--size-medium_t5eyu_1","--size-large":"_--size-large_t5eyu_1","--size-xlarge":"_--size-xlarge_t5eyu_1","--variant-faded":"_--variant-faded_t5eyu_123","--variant-headless":"_--variant-headless_t5eyu_132","--status-error":"_--status-error_t5eyu_137","--placeholder":"_--placeholder_t5eyu_152","--disabled":"_--disabled_t5eyu_156","--size-medium--m":"_--size-medium--m_t5eyu_1","--size-large--m":"_--size-large--m_t5eyu_1","--size-xlarge--m":"_--size-xlarge--m_t5eyu_1","--size-medium--l":"_--size-medium--l_t5eyu_1","--size-large--l":"_--size-large--l_t5eyu_1","--size-xlarge--l":"_--size-xlarge--l_t5eyu_1","--size-medium--xl":"_--size-medium--xl_t5eyu_1","--size-large--xl":"_--size-large--xl_t5eyu_1","--size-xlarge--xl":"_--size-xlarge--xl_t5eyu_1"},Ei=e=>{var D,q;const{onChange:t,onClick:n,onFocus:r,onBlur:o,name:s,value:a,defaultValue:l,placeholder:d,options:f,children:_,icon:h,startSlot:m,size:v="medium",variant:p="outline",className:x,attributes:y}=e,[b,w]=c.useState(a===void 0?!l:!a),j=Ye(),$=$e(e.id),z=((D=j==null?void 0:j.attributes)==null?void 0:D.id)||((q=e.inputAttributes)==null?void 0:q.id)||$,E=(j==null?void 0:j.disabled)||e.disabled,P=(j==null?void 0:j.hasError)||e.hasError,I=g(g({},e.inputAttributes),j==null?void 0:j.attributes),V=M(Ie.root,x,v&&W(Ie,"--size",v),P&&Ie["--status-error"],E&&Ie["--disabled"],b&&f&&Ie["--placeholder"],p&&Ie[`--variant-${p}`]),S=L=>{const Q=L.target.value;a===void 0&&w(!Q),t&&t({name:s,value:Q,event:L})};c.useEffect(()=>{a!==void 0&&w(!a)},[a]);const A=(m||h)&&i.jsx("div",{className:Ie.slot,children:h?i.jsx(de,{size:Le(v,L=>L==="large"?5:L==="xlarge"?6:4),svg:h,className:Ie.icon}):m});return i.jsxs("div",k(g({},y),{className:V,children:[f?i.jsxs(i.Fragment,{children:[A,i.jsxs("select",k(g({},I),{className:Ie.input,disabled:E,name:s,value:a,defaultValue:l,onChange:S,onFocus:r||(I==null?void 0:I.onFocus),onBlur:o||(I==null?void 0:I.onBlur),id:z,children:[d&&i.jsx("option",{value:"",children:d}),f.map(L=>i.jsx("option",{value:L.value,disabled:L.disabled,children:L.label},L.value))]}))]}):i.jsxs(i.Fragment,{children:[i.jsxs(qe,{className:Ie.input,disabled:E,onClick:n,attributes:k(g({},I),{onFocus:r||(I==null?void 0:I.onFocus),onBlur:o||(I==null?void 0:I.onBlur)}),children:[A,_||(d?i.jsx(te,{color:"neutral-faded",children:d}):null)]}),i.jsx("input",{type:"hidden",value:a,name:s})]}),i.jsx("div",{className:Ie.arrow,children:i.jsx(de,{svg:$i,color:E?"disabled":"neutral-faded",size:Le(v,L=>L==="large"||L==="xlarge"?5:4)})})]}))},zi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Ti=e=>{const{borderRadius:t="small",width:n,height:r,className:o,attributes:s}=e,a=M(zi.root,o);return i.jsx(U,{backgroundColor:"disabled",width:n,height:r,borderRadius:t,className:a,attributes:s})},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"},Ii=(e,t)=>{const{name:n,value:r,disabled:o,active:s,position:a,max:l,min:d,onChange:f,onDragStart:_,renderValue:h}=e,m=c.useId(),v=M(Qe.thumb,s&&Qe["thumb--active"]),p=h?h({value:r}):r,x=y=>{f(+y.target.value)};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:Qe.input,type:"range",name:n,value:r,onChange:x,disabled:o,max:l,min:d,"aria-labelledby":m}),i.jsx("div",{ref:t,className:v,onMouseDown:_,onTouchStart:_,style:{insetInlineStart:`${a}%`},id:m,"aria-hidden":"true",children:i.jsx(ct,{className:Qe.tooltip,colorMode:"inverted",children:i.jsx(te,{variant:"caption-1",weight:"medium",children:p})})})]})},Xr=c.forwardRef(Ii),Jr=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,Fn=(e,t)=>Math.round(e/t)*t,Ln=e=>{var Ce;const{name:t,range:n,max:r,min:o,step:s=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:_}=e,h=n&&e.minValue!==void 0?Fn(e.minValue,s):void 0,m=Fn(n?e.maxValue:e.value,s),v=c.useRef(null),p=c.useRef(null),x=c.useRef(null),[y,b]=c.useState(null),[w]=Ge(),j=Ye(),$=$e(),z=((Ce=j==null?void 0:j.attributes)==null?void 0:Ce.id)||$,E=`${z}-min`,P=`${z}-max`,I=(j==null?void 0:j.disabled)||e.disabled,V=M(Qe.root,I&&Qe["--disabled"],f),S=c.useCallback(se=>{if(!v.current)return;const H=v.current.clientWidth;let G=(se-v.current.getBoundingClientRect().left)/H;w&&(G=1-G);let ie=(r-o)*G+o;return ie=Math.max(o,Math.min(r,ie)),Fn(ie,s)},[r,o,w,s]),A=se=>(se-o)/(r-o)*100,D=c.useCallback((se,H)=>{if(!n)return;const Y=H!=null&&H.commit?l:a;Y==null||Y({minValue:se,maxValue:m,name:t})},[m,t,n]),q=c.useCallback((se,H)=>{if(n){const G=H!=null&&H.commit?l:a;G==null||G({minValue:h,maxValue:se,name:t});return}const Y=H!=null&&H.commit?l:a;Y==null||Y({value:se,name:t})},[h,t,n]),L=({nativeEvent:se})=>{if(I)return;let H,Y;const G=Jr(se),ie=S(G);[{ref:p,id:E},{ref:x,id:P}].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===E&&D(ie),Y===P&&q(ie),b(Y))},Q=()=>{I||b(E)},fe=()=>{I||b(P)},he=c.useCallback(()=>{y===E&&h!==void 0&&D(h,{commit:!0}),y===P&&q(m,{commit:!0}),b(null)},[h,m,D,q,y,E,P]),oe=c.useCallback(se=>{if(!y)return;const H=Jr(se),Y=S(H);if(Y===void 0)return;let G=y;y===E&&Y>m&&(G=P),y===P&&h&&Y<h&&(G=E),G===E&&D(Y),G===P&&q(Y),y!==G&&b(G)},[y,h,m,S,q,D,P,E]);c.useEffect(()=>(window.addEventListener("mouseup",he),window.addEventListener("touchend",he),window.addEventListener("mousemove",oe),window.addEventListener("touchmove",oe),()=>{window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe)}),[he,oe]);const Z=h&&A(h),He=A(m);return i.jsxs("div",k(g({},_),{className:V,onMouseDown:L,onTouchStart:L,children:[i.jsx("div",{className:Qe.bar,ref:v,children:i.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${Z||0}%`,width:`${He-(Z||0)}%`}})}),h!==void 0&&Z!==void 0&&i.jsx(Xr,{id:E,active:E===y,name:t,disabled:I,onChange:D,value:h,onDragStart:Q,position:Z,max:r,min:o,ref:p,renderValue:d}),i.jsx(Xr,{id:P,active:P===y,name:t,disabled:I,onChange:q,value:m,onDragStart:fe,position:He,max:r,min:o,ref:x,renderValue:d})]}))},Mi=e=>{const{min:t,max:n,onChange:r,range:o}=e,s="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(s),[f,_]=c.useState(a),h=v=>{o||(_(v.value),r==null||r(v))},m=v=>{o&&(d(v.minValue),_(v.maxValue),r==null||r(v))};return o?i.jsx(Ln,k(g({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:m})):i.jsx(Ln,k(g({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Si=e=>{const o=e,{min:t=0,max:n=100}=o,r=Fe(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?i.jsx(Ln,k(g({},r),{min:t,max:n})):i.jsx(Mi,k(g({},r),{min:t,max:n}))},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"},Pi=e=>{var w;const{children:t,name:n,checked:r,size:o,reversed:s,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:_,attributes:h}=e,m=M(ft.root,o&&ft[`root--size-${o}`],s&&ft["root--reversed"],_),v=Ye(),p=$e((v==null?void 0:v.attributes.id)||e.id||((w=e.inputAttributes)==null?void 0:w.id)),x=g(g({},e.inputAttributes),v==null?void 0:v.attributes),y=(v==null?void 0:v.disabled)||e.disabled,b=j=>{l&&l({name:n,event:j,checked:j.target.checked})};return i.jsxs("label",k(g({},h),{className:m,children:[i.jsx("input",k(g({type:"checkbox"},x),{className:ft.input,name:n,checked:r,defaultChecked:a,disabled:y,onChange:b,onFocus:d||(x==null?void 0:x.onFocus),onBlur:f||(x==null?void 0:x.onBlur),id:p})),i.jsx("span",{className:ft.area,"aria-hidden":"true",children:i.jsx("span",{className:ft.thumb})}),t&&i.jsx(te,{variant:"body-3",weight:"medium",children:t})]}))},Ai={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"},Fi=e=>{if(!e)return null;const t=ee("--rs-min-w",e);return{classNames:W(Ai,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"},Qr=e=>{const{minWidth:t,rowSpan:n,colSpan:r,align:o,tagName:s,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:_}=e,h=e.width==="auto"?"0px":e.width,m=_n(h),v=Fi(t||h),p=M(Ze.cell,m==null?void 0:m.classNames,v==null?void 0:v.classNames,o&&Ze[`cell--align-${o}`]),x=g(g(g(g({},m==null?void 0:m.variables),v==null?void 0:v.variables),ee("--rs-table-p-vertical",d!=null?d:a)),ee("--rs-table-p-horizontal",l!=null?l:a));return i.jsx(s,k(g({},_),{className:p,rowSpan:n,colSpan:r,style:x,children:f}))},Li=e=>i.jsx(Qr,k(g({},e),{tagName:"td"})),qi=e=>i.jsx(Qr,k(g({},e),{tagName:"th"})),Vi=e=>{const{highlighted:t,children:n,attributes:r}=e,o=M(Ze.row,t&&Ze["--row-highlighted"]);return i.jsx("tr",k(g({},r),{className:o,children:n}))},qn=e=>i.jsx("tbody",{children:e.children}),Zr=e=>i.jsx("thead",{children:e.children}),ht=e=>{const{children:t,border:n,columnBorder:r,className:o,attributes:s}=e,a=M(Ze.root,o,n&&Ze["--border-outer"],r&&Ze["--border-column"]),[l]=c.Children.toArray(t);return i.jsx("div",k(g({},s),{className:a,children:i.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===qn||l.type===Zr)?t:i.jsx(qn,{children:t})})}))};ht.Cell=Li,ht.Heading=qi,ht.Row=Vi,ht.Body=qn,ht.Head=Zr;const eo=c.createContext({}),Oi=eo.Provider,Vn=e=>{const r=c.useContext(eo),{id:t}=r,n=Fe(r,["id"]);return k(g({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},to=e=>{const{children:t,value:n,onChange:r,onSilentChange:o,itemWidth:s,variant:a,name:l,direction:d="row",size:f="medium"}=e,_=$e(),h=c.useRef(null),m=c.useRef(h.current),v=c.useRef(null),[p,x]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=b=>{b!==void 0&&o&&o({value:b,name:l})};return i.jsx(Oi,{value:{value:n,name:l,size:f,direction:d,itemWidth:s,variant:a,onChange:r,id:_,setDefaultValue:y,elActiveRef:h,elPrevActiveRef:m,elScrollableRef:v,selection:p,setSelection:x},children:t})},Di=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t),s=({value:l})=>{o(l),n&&n({value:l})},a=({value:l})=>{o(l)};return i.jsx(to,k(g({},e),{onChange:s,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"},Bi=(e,t)=>{const{value:n,children:r,icon:o,href:s,attributes:a}=e,{onChange:l,panelId:d,name:f,size:_,value:h,selection:m,elActiveRef:v,elPrevActiveRef:p,elScrollableRef:x}=Vn(n),y=c.useRef(null),b=h===n,w=b&&m.status==="idle",j=M(ne.item,w&&ne["--item-active"]),$=!!f,z={role:"tab",tabIndex:b?0:-1,"aria-selected":b},E=c.useCallback(()=>{if(!("current"in y))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");p.current=v.current,v.current=y.current},[v,p]),P=()=>{var L,Q,fe;if(s&&!l)return;const I=x.current,V=(L=y.current)==null?void 0:L.parentElement,S=(Q=v.current)==null?void 0:Q.parentElement;if(E(),l&&l({value:n,name:f}),!I||!V||!S||I.scrollWidth===I.clientWidth)return;const A=V.offsetLeft<S.offsetLeft,D=(V.offsetLeft-I.scrollLeft)/I.clientWidth;(A?D<.3:D>.5)&&((fe=y.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{b&&E()},[b,E]),i.jsx("div",k(g({},a),{className:j,ref:y,role:"presentation",children:i.jsxs(qe,{ref:t,href:s,insetFocus:!0,onClick:f?void 0:P,className:ne.button,as:f?"label":void 0,attributes:k(g({},!$&&z),{"aria-controls":d}),children:[f&&i.jsx(Mn,{type:"radio",name:f,value:n,checked:w,onChange:P,className:ne.radio}),i.jsxs("span",{className:ne.buttonContent,children:[o&&i.jsx(de,{svg:o,className:ne.icon,size:4}),r&&i.jsx(te,{variant:_==="large"?"body-2":"body-3",children:r})]})]})}))},no=c.forwardRef(Bi),ro=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:ro(e.parentElement,t),Wi=e=>{const{children:t,className:n,attributes:r}=e,{value:o,setDefaultValue:s,itemWidth:a,variant:l,name:d,direction:f,size:_,selection:h,setSelection:m,elActiveRef:v,elPrevActiveRef:p,elScrollableRef:x}=Vn(),[y]=Ge(),[b,w]=c.useState(null),j=M(ne.root,_&&ne[`--size-${_}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],b&&ne[`--cut-off-${b}`],n),$=M(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"})},E=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},P=()=>{m(S=>k(g({},S),{status:"idle"}))},I=c.useCallback(S=>{if(!x.current)return null;const A=ro(S,x.current);return A?{scaleX:A.clientWidth,scaleY:A.clientHeight,top:A.offsetTop,left:A.offsetLeft}:null},[x]),{ref:V}=rt({"ArrowLeft, ArrowUp":S=>{d||(S.preventDefault(),Qo(x.current))},"ArrowRight, ArrowDown":S=>{d||(S.preventDefault(),Jo(x.current))},Home:S=>{d||(S.preventDefault(),Zo(x.current))},End:S=>{d||(S.preventDefault(),es(x.current))}});return le(()=>{if(o)return;const S=c.Children.toArray(t)[0];!S||S.type!==no||s(S.props.value)},[o]),le(()=>{if(!p.current||p.current===v.current)return;const S=I(p.current);S&&m(k(g({},S),{status:"prepared"}))},[o,I]),le(()=>{if(h.status!=="prepared"||!v.current)return;const S=I(v.current);S&&m(k(g({},S),{status:"animated"}))},[h]),le(()=>{const S=x.current;if(!S||f==="column")return;const A=()=>{S.clientWidth<S.scrollWidth||w(null);const L=S.scrollLeft*(y?-1:1),Q=L>1,fe=L+S.clientWidth<S.scrollWidth-1;if(fe&&Q)return w("both");if(Q)return w("start");if(fe)return w("end")},D=xo(A,100);return requestAnimationFrame(()=>{A()}),window.addEventListener("resize",D),S.addEventListener("scroll",D),()=>{window.removeEventListener("resize",D),S.removeEventListener("scroll",D)}},[y]),i.jsxs("div",k(g({},r),{className:j,children:[i.jsx("div",{className:ne.inner,ref:x,children:i.jsxs("div",{className:ne.list,role:"tablist",ref:V,children:[c.Children.map(t,(S,A)=>S?i.jsx("div",{className:ne.listItem,children:S},S.props.value||S.key||A):null),i.jsx("div",{onTransitionEnd:P,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}})]})}),(b==="start"||b==="both")&&i.jsx("span",{className:ne.prev,children:i.jsx(je,{onClick:E,size:"small",icon:Lr,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(b==="end"||b==="both")&&i.jsx("span",{className:ne.next,children:i.jsx(je,{onClick:z,size:"small",icon:Jt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},Hi=e=>{const{value:t,children:n}=e,{value:r,panelId:o,buttonId:s}=Vn(t),a=t===r,l=M(ne.panel,!a&&ne["--panel-hidden"]);return i.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:o,"aria-labelledby":s,children:a&&n})},rn=e=>{const{value:t}=e;return t!==void 0?i.jsx(to,g({},e)):i.jsx(Di,g({},e))};rn.Item=no,rn.List=Wi,rn.Panel=Hi;const vt={root:"_root_16y23_1",input:"_input_16y23_5","--size-medium":"_--size-medium_16y23_1","--size-large":"_--size-large_16y23_1","--size-xlarge":"_--size-xlarge_16y23_1","--variant-faded":"_--variant-faded_16y23_69","--variant-headless":"_--variant-headless_16y23_80","--status-error":"_--status-error_16y23_87","--size-medium--m":"_--size-medium--m_16y23_1","--size-large--m":"_--size-large--m_16y23_1","--size-xlarge--m":"_--size-xlarge--m_16y23_1","--size-medium--l":"_--size-medium--l_16y23_1","--size-large--l":"_--size-large--l_16y23_1","--size-xlarge--l":"_--size-xlarge--l_16y23_1","--size-medium--xl":"_--size-medium--xl_16y23_1","--size-large--xl":"_--size-large--xl_16y23_1","--size-xlarge--xl":"_--size-xlarge--xl_16y23_1"},Ri=e=>{var $,z;const{onChange:t,onFocus:n,onBlur:r,name:o,value:s,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:_,attributes:h}=e,m=Ye(),v=$e(e.id),p=(($=m==null?void 0:m.attributes)==null?void 0:$.id)||((z=e.inputAttributes)==null?void 0:z.id)||v,x=(m==null?void 0:m.disabled)||e.disabled,y=(m==null?void 0:m.hasError)||e.hasError,b=g(g({},e.inputAttributes),m==null?void 0:m.attributes),w=M(vt.root,d&&W(vt,"--size",d),y&&vt["--status-error"],x&&vt["--disabled"],f&&vt[`--variant-${f}`],_),j=E=>{t&&t({name:o,value:E.target.value,event:E})};return i.jsx("div",k(g({},h),{className:w,children:i.jsx("textarea",k(g({},b),{className:vt.input,rows:3,disabled:x,name:o,placeholder:l,value:s,defaultValue:a,onChange:j,onFocus:n||(b==null?void 0:b.onFocus),onBlur:r||(b==null?void 0:b.onBlur),id:p}))}))},On={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Dn=e=>{const{children:t,markerSlot:n,className:r,attributes:o}=e,s=n!==null,a=M(On.item,!s&&On["item--full-width"],r);return i.jsxs(U,{as:"li",direction:"row",align:"stretch",gap:3,attributes:o,className:a,children:[s&&i.jsx("span",{className:On.marker,children:n}),i.jsx(U.Item,{grow:!0,children:t})]})},oo=e=>{const{children:t,className:n,attributes:r}=e,o=M(n);return i.jsx("ul",k(g({},r),{className:o,children:c.Children.map(t,(s,a)=>(s==null?void 0:s.type)===Dn?s:i.jsx(Dn,{children:s},a))}))};oo.Item=Dn;const Ui={root:"_root_9090g_1"},Ki=e=>{const{id:t,text:n,children:r,onOpen:o,onClose:s,position:a="bottom",active:l}=e;return i.jsxs(Xe,{id:t,active:l,position:a,onOpen:o,onClose:s,triggerType:"hover",children:[i.jsx(Xe.Trigger,{children:r}),i.jsx(Xe.Content,{children:i.jsx(ct,{colorMode:"inverted",children:i.jsx(te,{variant:"caption-1",className:Ui.root,children:n})})})]})},gt={m:660,l:900,xl:1280},so={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)`},Yi=e=>{const{defaultViewport:t}=c.useContext(jn),[n,r]=c.useState(t);return le(()=>{const s=Object.keys(so).map(a=>{const l=window.matchMedia(so[a]);return{mq:l,handler:()=>l.matches&&r(a)}});return s.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{s.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},Gi=e=>{const{w:t="auto",h:n=50,children:r}=e;return i.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=hn,N.ActionBar=Do,N.Actionable=qe,N.Alert=Wo,N.Autocomplete=Ir,N.Avatar=Fs,N.Badge=Sr,N.Breadcrumbs=Fr,N.Button=je,N.Card=Rs,N.Carousel=Us,N.Checkbox=Qs,N.CheckboxGroup=Xs,N.Container=ei,N.Dismissible=ti,N.Divider=Qn,N.DropdownMenu=we,N.FormControl=qt,N.Hidden=dn,N.HiddenVisually=ri,N.Hotkey=oi,N.Icon=de,N.Image=si,N.Link=Ar,N.Loader=Pr,N.MenuItem=Tn,N.Modal=An,N.Overlay=Wr,N.Placeholder=Gi,N.Popover=dt,N.Progress=ci,N.Radio=mi,N.RadioGroup=_i,N.Reshaped=ki,N.Scrim=Ni,N.Select=Ei,N.Skeleton=Ti,N.Slider=Si,N.Switch=Pi,N.Table=ht,N.Tabs=rn,N.Text=te,N.TextArea=Ri,N.TextField=ar,N.Theme=ct,N.Timeline=oo,N.Tooltip=Ki,N.View=U,N.classNames=M,N.responsiveClassNames=W,N.responsivePropDependency=Le,N.useFormControl=Ye,N.useHotkeys=rt,N.useIsomorphicLayoutEffect=le,N.useRTL=Ge,N.useResponsiveClientValue=Yi,N.useScrollLock=Br,N.useTheme=$r,N.useToast=fi,N.useToggle=Sn,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
27
|
+
Check the top-level render call using <`+I+">.")}return k}}function mo(u,k){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var I=sa(k);if(_o[I])return;_o[I]=!0;var F="";u&&u._owner&&u._owner!==Un.current&&(F=" It was passed a child from "+V(u._owner.type)+"."),pt(u),b('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),pt(null)}}function fo(u,k){{if(typeof u!="object")return;if(Ft(u))for(var I=0;I<u.length;I++){var F=u[I];Yn(F)&&mo(F,k)}else if(Yn(u))u._store&&(u._store.validated=!0);else if(u){var R=y(u);if(typeof R=="function"&&R!==u.entries)for(var J=R.call(u),B;!(B=J.next()).done;)Yn(B.value)&&mo(B.value,k)}}}function ia(u){{var k=u.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);sn(I,u.props,"prop",F,u)}else if(k.PropTypes!==void 0&&!Kn){Kn=!0;var R=V(k);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function aa(u){{for(var k=Object.keys(u.props),I=0;I<k.length;I++){var F=k[I];if(F!=="children"&&F!=="key"){pt(u),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),pt(null);break}}u.ref!==null&&(pt(u),b("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}function ho(u,k,I,F,R,J){{var B=P(u);if(!B){var D="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(D+=" 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=oa(R);be?D+=be:D+=uo();var re;u===null?re="null":Ft(u)?re="array":u!==void 0&&u.$$typeof===t?(re="<"+(V(u.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):re=typeof u,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",re,D)}var ae=ra(u,k,I,R,J);if(ae==null)return ae;if(B){var Ne=k.children;if(Ne!==void 0)if(F)if(Ft(Ne)){for(var xt=0;xt<Ne.length;xt++)fo(Ne[xt],u);Object.freeze&&Object.freeze(Ne)}else b("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 fo(Ne,u)}return u===r?aa(ae):ia(ae),ae}}function la(u,k,I){return ho(u,k,I,!0)}function ca(u,k,I){return ho(u,k,I,!1)}var da=ca,ua=la;yt.Fragment=r,yt.jsx=da,yt.jsxs=ua}()),yt}process.env.NODE_ENV==="production"?xe.exports=xo():xe.exports=wo();var s=xe.exports;const Jn=(e,t=20)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}};function yo(e,t){const n=Jn(e,t);return r=>("persist"in r&&r.persist(),n(r))}const jo=(e,t)=>{let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...r)},t)},t))}},M=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const r=M(...n);return r?`${t} ${r}`:t}return n?`${t} ${n}`:t},""),Qn=(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=Qn(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=Qn(t,n[i],{base:a,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=a?"":`--${i}`;return[...o,e[`${l}${d}`]]},[])},ee=(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(g({},n),{[`${e}-${r}`]:o})},{}),Co=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Le=(e,t)=>Co(e)?Object.keys(e).reduce((r,o)=>{const i=e[o];return i==null?r:C(g({},r),{[o]:t(i,o)})},{}):t(e,"s"),$e=e=>{const t=c.useId();return e||t},cn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Zn=e=>{const{children:t,onToggle:n,active:r,iconPosition:o,iconSize:i,className:a,attributes:l}=e,d=M(a),f=$e(),m=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:r,onToggle:n,iconPosition:o,iconSize:i}),[r]);return s.jsx("div",C(g({},l),{className:d,children:s.jsx(cn.Provider,{value:m,children:t})}))},ko=e=>{const l=e,{defaultActive:t,onToggle:n}=l,r=Fe(l,["defaultActive","onToggle"]),[o,i]=c.useState(t||!1),a=d=>{i(d),n==null||n(d)};return s.jsx(Zn,C(g({},r),{onToggle:a,active:o}))},jt={root:"_root_1ao0i_1","--disabled":"_--disabled_1ao0i_28","--full-width":"_--full-width_1ao0i_37","--inset":"_--inset_1ao0i_45","--radius-inherit":"_--radius-inherit_1ao0i_49"},No=(e,t)=>{const{children:n,href:r,onClick:o,type:i,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:m,className:h,attributes:_}=e,v=M(jt.root,h,a&&jt["--disabled"],d&&jt[`--radius-${d}`],l&&jt["--inset"],m&&jt["--full-width"]),p=g({},_),x=c.useRef(!1),y=o||(_==null?void 0:_.onClick),w=(_==null?void 0:_.onFocus)||(_==null?void 0:_.onBlur),b=!!(r||_!=null&&_.href),j=!!(y||w||i);let $;if(b)p.href=a?void 0:r||(_==null?void 0:_.href),$="a";else if(j&&(!f||f==="button"))$="button",p.type=i||(_==null?void 0:_.type)||"button",p.disabled=a||(_==null?void 0:_.disabled);else if(j){const S=!(f==="label")||y||w;$=f||"span",p.role=S?"button":void 0,p.tabIndex=S?0:void 0}else $=f||"span";const E=z=>{var S;a||x.current||(o==null||o(z),(S=_==null?void 0:_.onClick)==null||S.call(_,z))},T=z=>{if(p.role==="button"||b)return;const O=z.key===" ",P=z.key==="Enter";!O&&!P||(z.preventDefault(),E(z),x.current=!0,requestAnimationFrame(()=>{x.current=!1}))};return s.jsx($,C(g({ref:t},p),{className:v,onClick:E,onKeyDown:T,children:n}))},Ve=c.forwardRef(No),dn={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"},er=e=>{const{vertical:t,blank:n,className:r,attributes:o}=e,i=M(dn.root,r,n&&dn["--blank"],...W(dn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),s.jsx("div",C(g({},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"},un=e=>{const{as:t="div",children:n,visibility:r,hide:o,displayStyle:i}=e,a=M(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"},tr={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"},_n=e=>e?{classNames:[tr.root,...W(tr,"--radius",e)]}:null,nr={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"},rr=e=>{if(e===void 0)return null;const t=[nr.root,...W(nr,"--bleed",Le(e,r=>typeof r=="number"&&r>0))],n=ee("--rs-bleed",e);return{classNames:t,variables:n}},$o={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"},mn=e=>{if(!e)return null;const t=ee("--rs-w",e);return{classNames:W($o,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Eo={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"},Ct=e=>{if(!e)return null;const t=ee("--rs-h",e);return{classNames:W(Eo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},zo={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"},To=e=>{if(!e)return null;const t=ee("--rs-max-w",e);return{classNames:W(zo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Io={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"},Mo=e=>{if(!e)return null;const t=ee("--rs-max-h",e);return{classNames:W(Io,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},So={"--position-relative":"_--position-relative_eidrq_1","--position-absolute":"_--position-absolute_eidrq_1","--position-fixed":"_--position-fixed_eidrq_1","--position-sticky":"_--position-sticky_eidrq_1","--position-relative--m":"_--position-relative--m_eidrq_1","--position-absolute--m":"_--position-absolute--m_eidrq_1","--position-fixed--m":"_--position-fixed--m_eidrq_1","--position-sticky--m":"_--position-sticky--m_eidrq_1","--position-relative--l":"_--position-relative--l_eidrq_1","--position-absolute--l":"_--position-absolute--l_eidrq_1","--position-fixed--l":"_--position-fixed--l_eidrq_1","--position-sticky--l":"_--position-sticky--l_eidrq_1","--position-relative--xl":"_--position-relative--xl_eidrq_1","--position-absolute--xl":"_--position-absolute--xl_eidrq_1","--position-fixed--xl":"_--position-fixed--xl_eidrq_1","--position-sticky--xl":"_--position-sticky--xl_eidrq_1"},Po=e=>e?{classNames:W(So,"--position",e)}:null,Ao={"--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"},kt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",r=`--rs-inset${n}`,o=ee(r,e);return{classNames:W(Ao,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:o}},Fo={root:"_root_i342i_1"},Lo=e=>{if(!e)return null;const t=ee("--rs-ratio",e);return{classNames:Fo.root,variables:t}},or=e=>{const{columns:t,grow:n,gapBefore:r,as:o="div",order:i,children:a,className:l,attributes:d}=e,f=M(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)),m=g(g({},ee("--rs-view-item-order",i)),ee("--rs-view-item-gap-before",r));return s.jsx(o,C(g({},d),{style:g(g({},d==null?void 0:d.style),m),className:f,children:a}))},U=e=>{const{align:t,justify:n,wrap:r,gap:o,height:i,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:m,paddingInline:h,paddingBlock:_,paddingBottom:v,paddingEnd:p,paddingStart:x,paddingTop:y,bleed:w,animated:b,backgroundColor:j,borderColor:$,borderRadius:E,shadow:T,textAlign:z,overflow:S,position:O="relative",inset:P,insetTop:A,insetBottom:q,insetStart:V,insetEnd:L,zIndex:Q,grow:fe,as:he="div",children:oe,divided:Z,className:He,attributes:Ce}=e,se=!!t||!!n||!!o||!!e.direction,H=e.direction||(se?"column":void 0),Y=_n(E),G=rr(w),ie=mn(a),ye=Ct(i),X=To(f),pe=Mo(d),ge=Po(O),Me=kt(P),Re=kt(A,"top"),et=kt(q,"bottom"),tt=kt(V,"start"),Se=kt(L,"end"),Pe=Lo(l);let At=0,st;const bt=({className:ve,key:ue})=>{const qe=M(K.divider,ve);let me=!1;return typeof H=="string"&&H.startsWith("row")?me=!0:H&&(me=Object.keys(H).reduce((Ue,ke)=>{const Ae=H[ke];return Ae?C(g({},Ue),{[ke]:Ae.startsWith("row")}):Ue},{})),s.jsx("div",{className:qe,children:s.jsx(er,{vertical:me,blank:!0})},`${ue}-divider`)},sn=({className:ve,child:ue,index:qe})=>{var Ae,an;const me=ue.type===or,it=ue.key||qe,Ue=!!qe&&Z&&bt({className:ve,key:it});let ke;return me?ke=c.cloneElement(ue,{className:M(ve,ue.props.className)}):ve||!c.isValidElement(ue)?ke=s.jsx("div",{className:ve,children:ue},it):ke=ue,me&&((Ae=ue.props)!=null&&Ae.grow)&&(st=ue.props.grow),me&&((an=ue.props)==null?void 0:an.gap)==="auto"&&(st=!0),[Ue,ke]},Hn=c.Children.map(oe,(ve,ue)=>{if(!ve)return null;const qe=At;if(At+=1,ve.type===un&&typeof ve.props.children!="function"){const me=ve.props,{children:it}=me,Ue=Fe(me,["children"]),ke=ve.key||ue;return c.createElement(un,C(g({},Ue),{key:ke}),Ae=>sn({className:Ae,child:it,index:qe}))}return sn({child:ve,index:qe})}),Ft=M(K.root,He,Y==null?void 0:Y.classNames,ge==null?void 0:ge.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,z&&K[`--align-text-${z}`],j&&K[`--bg-${j}`],$&&K[`--bd-${$}`],$&&K["--bd"],T&&K[`--shadow-${T}`],S&&K[`--overflow-${S}`],b&&K["--animated"],Z&&K["--divided"],(m!==void 0||h!==void 0||_!==void 0)&&K["--padding"],v!==void 0&&K["--padding-bottom"],p!==void 0&&K["--padding-end"],x!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(se||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)),Rn=g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g({},Ce==null?void 0:Ce.style),ee("--rs-view-gap",o)),ee("--rs-view-p-vertical",_||m)),ee("--rs-view-p-horizontal",h||m)),ee("--rs-view-p-bottom",v)),ee("--rs-view-p-top",y)),ee("--rs-view-p-start",x)),ee("--rs-view-p-end",p)),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),Q?{"--rs-view-z":Q}:{});return s.jsx(he,C(g({},Ce),{className:Ft,style:Rn,children:Hn}))};U.Item=or;const fn={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"},ce=e=>{const{svg:t,className:n,color:r,size:o="1em",autoWidth:i,attributes:a}=e,l=Ct(o),d=M(fn.root,n,l==null?void 0:l.classNames,r&&fn[`--color-${r}`],i&&fn["--auto"]),f=typeof t=="object"?t:s.jsx(t,{}),m=g(g({},a==null?void 0:a.style),l==null?void 0:l.variables);return s.jsx("span",C(g({},a),{"aria-hidden":"true",className:d,style:m,children:c.cloneElement(f,{focusable:!1})}))},Vo=()=>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"})}),Nt={content:"_content_fcvpf_1","content--animated":"_content--animated_fcvpf_6",icon:"_icon_fcvpf_13","icon--active":"_icon--active_fcvpf_17"},Do=e=>{const{children:t}=e,{active:n,onToggle:r,triggerId:o,contentId:i,iconPosition:a="end",iconSize:l}=c.useContext(cn),d=M(Nt.icon,n&&Nt["icon--active"]),f=()=>{r==null||r(!n)},m={"aria-expanded":n,"aria-controls":i,id:o};return typeof t=="function"?s.jsx(s.Fragment,{children:t(C(g({},m),{onClick:f}),{active:n})}):s.jsx(Ve,{onClick:f,fullWidth:!0,attributes:m,children:s.jsxs(U,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[s.jsx(U.Item,{grow:!0,children:t}),s.jsx(ce,{size:l||4,svg:Vo,className:d})]})})},$t=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},hn="data-rs-no-transition",Oo=()=>{document.documentElement.setAttribute(hn,"true")},qo=()=>{document.documentElement.removeAttribute(hn)},Bo=()=>!document.documentElement.hasAttribute(hn),Wo=e=>{const{children:t}=e,{active:n,triggerId:r,contentId:o}=c.useContext(cn),i=c.useRef(null),a=c.useRef(!1),[l,d]=c.useState(n?"auto":null),f=M(Nt.content,a.current&&l!=="auto"&&Nt["content--animated"],n&&Nt["content--active"]),m=h=>{h.propertyName==="height"&&d(n?"auto":null)};return c.useEffect(()=>{$t(()=>{a.current=!0})},[]),c.useEffect(()=>{const h=i.current;if(!h||!a.current)return;let _=0;n&&(h.style.height="auto",_=h.clientHeight,h.style.height="0"),n||(h.style.height=`${h.clientHeight}px`),d(_)},[n]),s.jsx("div",{className:f,ref:i,style:l!==null?{height:l,overflow:l==="auto"?"visible":void 0}:void 0,onTransitionEnd:m,"aria-labelledby":r,id:o,role:"region",hidden:!n&&l===null,children:t})},gn=e=>{const{active:t}=e;return t!==void 0?s.jsx(Zn,g({},e)):s.jsx(ko,g({},e))};gn.Trigger=Do,gn.Content=Wo;const vn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Ho=e=>{const{position:t="bottom",padding:n,paddingBlock:r=3,paddingInline:o=4,children:i,elevated:a,className:l,attributes:d}=e,f=M(vn.root,a&&vn["--elevated"],t&&vn[`--position-${t}`],l);return s.jsx(U,{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"},Ro={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},te=e=>{const{variant:t,color:n,weight:r,align:o,decoration:i,maxLines:a,children:l,className:d,attributes:f}=e,m=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||m&&Ro[m]||"div",_=M(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),v=C(g({},f==null?void 0:f.style),{"--rs-text-lines":a});return s.jsx(h,C(g({},f),{className:_,style:v,children:l}))},Uo=e=>{const{title:t,children:n,icon:r,actionsSlot:o,color:i="neutral",inline:a,bleed:l,className:d,attributes:f}=e,m=i==="neutral",h=()=>a?s.jsxs(s.Fragment,{children:[t&&s.jsx(te,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&s.jsx(te,{variant:"body-3",as:"span",children:n})]}):s.jsxs(U,{gap:1,children:[t&&s.jsx(te,{variant:"body-3",weight:"medium",children:t}),n&&s.jsx(te,{variant:"body-3",children:n})]}),_=v=>o?s.jsxs(U,{gap:2,direction:a?"row":"column",children:[a?s.jsx(U.Item,{grow:!0,children:v}):v,o&&s.jsx(te,{variant:"body-3",weight:"medium",children:s.jsx(U,{direction:"row",gap:3,children:o})})]}):v;return s.jsx(U,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:C(g({},f),{role:i==="critical"?"alert":"status"}),children:r?s.jsxs(s.Fragment,{children:[s.jsx(ce,{svg:r,size:5,color:m?"primary":i}),s.jsx(U.Item,{grow:!0,children:_(h())})]}):_(h())})},sr=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Ko=sr.Provider,Et=()=>c.useContext(sr),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:r}=Et();return{attributes:e,required:t,hasError:n,disabled:r}},ir={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},bn=(e,t)=>`${e}-${t||"caption"}`,Vt=e=>{const{children:t,id:n,required:r,hasError:o,group:i,disabled:a,size:l}=e,d=$e(n),f=i?"fieldset":"div",[m,h]=c.useState(!1),[_,v]=c.useState(!1),p=[m&&bn(d),_&&bn(d,"error")].filter(Boolean).join(" "),x={id:d,"aria-describedby":p},y=()=>{v(!0)},w=()=>{h(!0)};return s.jsx(f,{children:s.jsx(Ko,{value:{required:r,hasError:o,errorRef:y,helperRef:w,attributes:x,group:i,disabled:a,size:l},children:t})})},Yo=e=>{const{children:t}=e,{attributes:n,required:r,group:o,disabled:i,size:a}=Et(),l=`${n.id}-label`,d=o?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return s.jsxs(te,C(g({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:ir.label,color:i?"disabled":void 0,children:[t,r&&s.jsx(te,{color:i?"disabled":"critical",as:"span",children:"*"})]}))},ar=e=>{const{children:t,variant:n,disabled:r}=e,{attributes:o,size:i,helperRef:a,errorRef:l}=Et(),d=bn(o.id,n),f=n==="error"?"critical":"neutral-faded",m=n==="error"?l:a;return s.jsx(te,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:m},className:ir.caption,children:t})},Go=e=>{const{children:t}=e,{disabled:n}=Et();return s.jsx(ar,{disabled:n,children:t})},Xo=e=>{const{children:t}=e,{hasError:n}=Et();return n?s.jsx(ar,{variant:"error",children:t}):null};Vt.Label=Yo,Vt.Helper=Go,Vt.Error=Xo;const lr={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"},Dt=e=>{const{side:t="all",children:n,className:r,attributes:o}=e,i=typeof t=="string"?[t]:t,a=M(lr.root,i.map(l=>lr[`--side-${l}`]),r);return s.jsx("div",C(g({},o),{className:a,children:n}))},Ee={root:"_root_1riga_1",input:"_input_1riga_21",slot:"_slot_1riga_42",icon:"_icon_1riga_43",affix:"_affix_1riga_44",attachment:"_attachment_1riga_60","attachment--position-start":"_attachment--position-start_1riga_65","attachment--position-end":"_attachment--position-end_1riga_78","--disabled":"_--disabled_1riga_91","--size-medium":"_--size-medium_1riga_1","--size-large":"_--size-large_1riga_1","--size-xlarge":"_--size-xlarge_1riga_1","--variant-faded":"_--variant-faded_1riga_155","--variant-headless":"_--variant-headless_1riga_164","--status-error":"_--status-error_1riga_169","--size-medium--m":"_--size-medium--m_1riga_1","--size-large--m":"_--size-large--m_1riga_1","--size-xlarge--m":"_--size-xlarge--m_1riga_1","--size-medium--l":"_--size-medium--l_1riga_1","--size-large--l":"_--size-large--l_1riga_1","--size-xlarge--l":"_--size-xlarge--l_1riga_1","--size-medium--xl":"_--size-medium--xl_1riga_1","--size-large--xl":"_--size-large--xl_1riga_1","--size-xlarge--xl":"_--size-xlarge--xl_1riga_1"},cr=e=>{const{slot:t,icon:n,size:r,affix:o,position:i}=e;if(!n&&!t&&!o)return null;const a=M(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(ce,{size:Le(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})},pn=e=>{var P;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:m,endSlot:h,prefix:_,suffix:v,size:p="medium",variant:x="outline",className:y,attributes:w}=e,b=Ye(),j=$e(e.id),$=(b==null?void 0:b.attributes.id)||((P=e.inputAttributes)==null?void 0:P.id)||j,E=(b==null?void 0:b.disabled)||e.disabled,T=(b==null?void 0:b.hasError)||e.hasError,z=g(g({},e.inputAttributes),b==null?void 0:b.attributes),S=M(Ee.root,y,p&&W(Ee,"--size",p),T&&Ee["--status-error"],E&&Ee["--disabled"],x&&Ee[`--variant-${x}`]),O=A=>{t&&t({name:o,value:A.target.value,event:A})};return s.jsxs("div",C(g({},w),{"data-rs-aligner-target":!0,className:S,children:[s.jsx(cr,{position:"start",icon:d,slot:m,size:p,affix:_}),s.jsx("input",C(g({},z),{className:Ee.input,disabled:E,name:o,placeholder:l,value:i,defaultValue:a,onChange:O,onFocus:n||(z==null?void 0:z.onFocus),onBlur:r||(z==null?void 0:z.onBlur),id:$})),s.jsx(cr,{position:"end",icon:f,slot:h,size:p,affix:v})]}))};pn.Aligner=e=>s.jsx(Dt,g({},e));const Jo="Enter",Qo="Tab",dr="ArrowUp",ur="ArrowDown",_r="ArrowRight",mr="ArrowLeft",xn="data-rs-keyboard",Ot="data-rs-focus";class Zo{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 fr=()=>document.documentElement.hasAttribute(xn),hr='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',qt=()=>document.querySelector(`[${Ot}]`)||document.activeElement,wn=(e,t)=>{const r=Array.from(e.querySelectorAll(hr)).filter(o=>!o.hasAttribute("disabled")&&o.clientHeight>0);return t&&r.length&&r.unshift(t),r},gr=e=>{const{root:t,extraElement:n,target:r,mode:o}=e,i=wn(t,n),a=i.length-1,l=qt(),d=i.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let m=f[r];const h=m>a||m<0;return h&&(o==="action-menu"?m=r==="prev"?f.first:f.last:m=r==="prev"?f.last:f.first),{overflow:h,el:i[m]}},Bt=(e,t)=>{var n;(n=document.querySelector(`[${Ot}]`))==null||n.removeAttribute(Ot),t==="selection-menu"?e.setAttribute(Ot,"true"):e.focus()},Wt=(e,t)=>{const n=gr({root:e,target:t});Bt(n.el)},es=e=>Wt(e,"next"),ts=e=>Wt(e,"prev"),ns=e=>Wt(e,"first"),rs=e=>Wt(e,"last"),os=(()=>{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}}})(),Ht=(()=>{let e=null,t=null;const n=new Zo;return(r,o={})=>{const{mode:i="dialog",onNavigateOutside:a,includeTrigger:l}=o,d=qt(),f=i==="dialog",m=i==="content-menu",h=i==="selection-menu",_=f||m,v=i==="action-menu"||h,p=wn(r,l?d:void 0);let x;const y=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const $=wn(r,l?d:void 0);$.length&&Bt($[0],i)}),w=($={})=>{const{withoutFocusReturn:E}=$;n.removePreviousTill(x,z=>document.body.contains(z.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:E||!fr()}),e&&(e(),t&&t.release(),e=null,t=null);const T=n.tailId&&n.get(n.tailId);T&&Ht(T.data.root,T.data.options)},b=$=>{const E=$.key,T=E===Qo,z=T&&!$.shiftKey,S=T&&$.shiftKey,O=v&&E===dr,P=v&&E===ur,A=S&&_||O,q=z&&_||P,V=qt()===d,L=gr({root:r,target:A?"prev":"next",extraElement:l?d:void 0,mode:i});if(T&&v||m&&T&&L.overflow){S&&!V&&$.preventDefault(),w(),a==null||a();return}!A&&!q||($.preventDefault(),L.el&&Bt(L.el,i))};if(e&&e(),f&&(t=os(r)),y.observe(r,{childList:!0,subtree:!0}),!p.length)return null;document.addEventListener("keydown",b),e=()=>document.removeEventListener("keydown",b);const j=n.tailId&&n.get(n.tailId);return(!j||r!==j.data.root)&&(x=n.add({root:r,trigger:d,options:o}),Bt(p[0],i)),w}})(),ss=100,is=150;let at={},De=null;const vr=e=>{at[e]&&(e===De&&(De=at[e].parentId),delete at[e],De===null&&(at={}))},as=(e,t,n)=>{var i;const r=De?at[De]:void 0;!((n==null?void 0:n.current)&&r&&((i=r.contentRef.current)==null?void 0:i.contains(n.current)))&&n&&De&&vr(De),at[e]={parentId:De,triggerRef:n,contentRef:t},De=e},br=(e=!1,t,n)=>{const r=$e(),o=c.useCallback(()=>De===r,[r]);return c.useEffect(()=>{e?as(r,t,n):vr(r)},[e,r,t,n]),o},le=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,lt="+",ze={},yn=[],pr=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),jn=e=>pr(e).split(lt).sort().join(lt),xr=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},ls=e=>{const t=[],n=e.join(lt),o=jn(n).split(lt),i=(a,l)=>{l.forEach((d,f)=>{const m=a?`${a}+${d}`:d;t.push(m),i(m,l.slice(f+1))})};return i("",o),t},cs=(e,t)=>{const n=Object.keys(e);n.length&&ls(n).forEach(r=>{t(r)})},Cn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(r=>{const o=e[n];o&&t(jn(r),o)})})};class ds{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{Cn(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=>{Cn(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)=>{cs(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=jn(t.key);Cn(this.hotkeyMap,(r,o)=>{r.split(lt).includes(n)&&(o.used=!1)})}}}const Rt=new ds,wr=c.createContext({}),us=e=>{const{children:t}=e,[n,r]=c.useState(0),[o,i]=c.useState(0),a=c.useCallback(_=>{if(_.repeat||o===0)return;const v=xr(_);v&&(ze[v]=_,(v==="meta"||v==="control")&&(ze.mod=_),r(Object.keys(ze).length),v==="meta"&&yn.push(...Object.keys(ze)),ze.Meta&&yn.push(v))},[o]),l=c.useCallback(_=>{if(o===0)return;const v=xr(_);v&&(delete ze[v],(v==="meta"||v==="control")&&delete ze.mod,v==="meta"&&yn.forEach(p=>{delete ze[p]}),r(Object.keys(ze).length))},[o]),d=_=>!pr(_).split(lt).some(p=>!ze[p]),f=c.useCallback((_,v)=>(i(p=>p+1),Rt.bindHotkeys(_,v),()=>{i(p=>p-1),Rt.unbindHotkeys(_)}),[]),m=c.useCallback(_=>{_.key&&(a(_),Rt.handleKeyDown(ze,_))},[a]),h=c.useCallback(_=>{_.key&&(l(_),Rt.handleKeyUp(_))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",m),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",m),window.removeEventListener("keyup",h)}),[m,h]),s.jsx(wr.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},_s=()=>c.useContext(wr),rt=(e,t=[],n)=>{const{addHotkeys:r,isPressed:o}=_s(),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}},kn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ms=e=>{const t=c.useState(e||!1),[n,r]=t;return le(()=>{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]),le(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(kn).rtl,Nn=e=>{const t=e&&window.getComputedStyle(e).overflowY,n=t==null?void 0:t.includes("scroll");return e===document.body||!e?document.body:n&&e.scrollHeight>e.clientHeight?e:Nn(e.parentElement)},yr=16,Ut=["top-start","top","top-end"],Kt=["bottom-start","bottom","bottom-end"],Yt=["start","start-bottom","start-top"],Gt=["end","end-bottom","end-top"],fs={top:[...Ut,...Kt,...Gt,...Yt],bottom:[...Kt,...Ut,...Gt,...Yt],start:[...Yt,...Gt,...Ut,...Kt],end:[...Gt,...Yt,...Ut,...Kt]},hs=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,jr=(e,t)=>Math.floor(e/2-t/2),gs=e=>{const n=["top","bottom","start","end"].find(r=>e.startsWith(r))||"bottom";return fs[n]},$n=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},Cr=(e,t,n,r)=>{const{position:o,rtl:i,width:a}=r;let l=0,d=0,f=o;switch(i&&(f=hs(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=jr(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=jr(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 m=Math.ceil(t.width);const h=Math.ceil(t.height);return a==="full"?(l=yr,m=window.innerWidth-yr*2):a==="trigger"&&(m=e.width),{styles:{left:l,top:d,width:m,height:h},position:f}},kr={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},En={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},vs=(e,t,n)=>{const{position:r,forcePosition:o,width:i}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(En).forEach(v=>{const p=En[v];a.style[v]=p.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=Nn(e),m=f.getBoundingClientRect(),h={top:m.top+document.documentElement.scrollTop-f.scrollTop,left:m.left+document.documentElement.scrollLeft-f.scrollLeft};let _=Cr(l,d,h,n);if(!$n(_.styles)&&!o){const v=gs(r),p=v.filter(y=>y==="top"||y==="bottom"),x=(y,w={})=>{const{fullWidth:b}=w;y.some(j=>{const $=C(g({},n),{width:b?"full":n.width,position:j}),E=Cr(l,d,h,$);return $n(E.styles)?(_=E,!0):!1})};x(v),$n(_.styles)||x(p,{fullWidth:!0})}return a.parentNode.removeChild(a),_},bs=(e,t)=>{switch(t.type){case"render":return C(g({},e),{status:"rendered",styles:{pointerEvents:"none"}});case"position":return C(g({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:g(g({},kr),t.payload.styles)});case"show":return C(g({},e),{status:"visible"});case"hide":return C(g({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return C(g({},e),{status:"idle",styles:En});default:throw new Error("Invalid reducer type")}},ps=(e,t,n)=>{const{position:r="bottom",forcePosition:o,width:i}=n,[a]=Ge(),[l,d]=c.useReducer(bs,{position:r,styles:kr,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),m=c.useCallback(()=>{d({type:"show"})},[]),h=c.useCallback(()=>{d({type:"hide"})},[]),_=c.useCallback(()=>{d({type:"remove"})},[]),v=c.useCallback(()=>{if(!e.current||!t.current)return;const p=vs(e.current,t.current,{width:i,position:r,forcePosition:o,rtl:a});d({type:"position",payload:p})},[e,t,r,a,o,i]);return c.useEffect(()=>{l.status==="rendered"&&v(),l.status==="positioned"&&$t(()=>m())},[l.status,v,m]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:v,render:f,hide:h,remove:_}),[f,v,h,_,l.position,l.styles,l.status])},xs=(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])},Nr=c.createContext({}),Xt=()=>c.useContext(Nr),ws=Nr.Provider,$r=e=>{const{triggerType:t="click",onOpen:n,onClose:r,children:o,forcePosition:i,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:m,contentAttributes:h,position:_,active:v,id:p,instanceRef:x}=e,[y]=Ge(),w=c.useRef(null),b=c.useRef(null),j=$e(p),$=c.useRef(),E=c.useRef(null),T=c.useRef(!1),z=c.useRef(!1),S=c.useRef(!0),O=ps(w,b,{width:l,position:_,defaultActive:v,forcePosition:i}),P=Xt(),{status:A,updatePosition:q,render:V,hide:L,remove:Q}=O,fe=br(t!=="hover"&&A!=="idle",b,w),he=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),oe=c.useCallback(()=>{!T.current&&A==="idle"&&(n==null||n())},[A]),Z=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&A!=="idle"&&(r==null||r(),X!=null&&X.closeParents&&((Me=P==null?void 0:P.handleClose)==null||Me.call(P)))},[A,fe,t]),He=c.useCallback(X=>{var ge;(ge=b.current)!=null&&ge.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||z.current||Z()},[Z,t,a]),Ce=c.useCallback(()=>{oe()},[oe]),se=c.useCallback(()=>{he(),$.current=setTimeout(oe,ss)},[he,$,oe]),H=c.useCallback(()=>{he(),$.current=setTimeout(()=>Z(),is)},[he,$,Z]),Y=c.useCallback(()=>{A==="idle"?oe():Z()},[A,oe,Z]),G=()=>z.current=!0,ie=()=>z.current=!1;le(()=>{if(v){V();return}Bo()&&!d?L():Q()},[v,V,L,d]);const ye=c.useCallback(X=>{b.current!==X.currentTarget||X.propertyName!=="transform"||A==="hidden"&&Q()},[Q,A]);return le(()=>{A!=="visible"||!b.current||(E.current=Ht(b.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{E.current=null,Z()}}))},[A,t,Z,a]),c.useEffect(()=>{!d&&A!=="hidden"||d&&A!=="idle"||E.current&&(t==="hover"&&(T.current=!0,setTimeout(()=>{T.current=!1},100)),E.current({withoutFocusReturn:!S.current}),E.current=null,S.current=!0)},[A,t,d]),c.useEffect(()=>()=>{E.current&&E.current(),E.current=null},[]),c.useEffect(()=>{const X=Jn(q,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[q]),c.useEffect(()=>{q()},[y,q]),c.useImperativeHandle(x,()=>({open:oe,close:Z}),[oe,Z]),rt({Escape:()=>Z()},[Z]),xs([b,w],()=>{S.current=!1,Z()}),s.jsx(ws,{value:{id:j,flyout:O,triggerElRef:w,flyoutElRef:b,handleClose:Z,handleOpen:oe,handleFocus:Ce,handleBlur:He,handleMouseEnter:se,handleMouseLeave:H,handleTransitionEnd:ye,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:m,contentAttributes:h},children:o})},ys=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($r,C(g({},e),{defaultActive:void 0,active:o,onClose:a,onOpen:l}))},js=e=>{const{children:t}=e,{id:n,triggerElRef:r,triggerType:o,flyout:i,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:m,trapFocusMode:h}=Xt();let _={onBlur:l,ref:r};return(o==="click"||h==="action-menu")&&(_.onClick=m),o==="hover"&&(_.onMouseEnter=d,_.onMouseLeave=f),(o==="hover"&&h!=="action-menu"||o==="focus")&&(_.onFocus=a,_["aria-describedby"]=n),(o==="click"||o==="focus"||h==="action-menu")&&(h==="dialog"?_["aria-haspopup"]="dialog":h==="selection-menu"?(_["aria-haspopup"]="listbox",_["aria-autocomplete"]="list"):_["aria-haspopup"]="menu",_["aria-expanded"]=i.status!=="idle",_["aria-controls"]=i.status!=="idle"?n:void 0),s.jsx(s.Fragment,{children:t(_)})},Er=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),zn=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),Cs=()=>{const{mode:e}=c.useContext(zn);return e},zr=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Er),{mode:r,setMode:o,invertMode:i}=c.useContext(zn);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||r,setColorMode:o,invertColorMode:i}),[e,r,o,i,t,n])},ks={root:"_root_r30zs_1"},ct=e=>{const{name:t,defaultName:n,colorMode:r,children:o,className:i}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),m=Cs(),h=zr(),_=!h.theme,v=t||d||h.theme,p=_?m:h.colorMode,y=r==="inverted"?p==="light"?"dark":"light":r||p,w=M(ks.root,i),b=j=>{f(j)};return le(()=>{l(!0)},[]),le(()=>{if(!document||!_)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",v),j||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[v,y,_]),s.jsx(Er.Provider,{value:{theme:v,colorMode:y,setTheme:b},children:s.jsx("div",{className:w,"data-rs-theme":_?void 0:v,"data-rs-color-mode":_||!r&&!a?void 0:y,children:o})})},Ns=e=>{const{defaultMode:t,children:n}=e,[r,o]=c.useState(t||"light"),i=c.useCallback(l=>{Oo(),document.documentElement.setAttribute("data-rs-color-mode",l),o(l)},[]);le(()=>{$t(()=>{qo()})},[r]),le(()=>{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(zn.Provider,{value:a,children:n})},Tr=c.createContext({}),$s=()=>c.useContext(Tr),Jt=e=>{const{children:t,targetRef:n}=e,r=$s(),o=n||r.scopeRef;return _e.createPortal(s.jsx(ct,{children:t}),(o==null?void 0:o.current)||document.body)};function Es(e){const{children:t}=e,n=c.useRef(null);return s.jsx(Tr.Provider,{value:{scopeRef:n},children:t(n)})}Jt.Scope=Es;const zt={content:"_content_u88xy_1",inner:"_inner_u88xy_5","--position-top":"_--position-top_u88xy_9","--position-top-end":"_--position-top-end_u88xy_10","--position-top-start":"_--position-top-start_u88xy_11","--position-bottom":"_--position-bottom_u88xy_15","--position-bottom-end":"_--position-bottom-end_u88xy_16","--position-bottom-start":"_--position-bottom-start_u88xy_17","--position-start":"_--position-start_u88xy_21","--position-start-top":"_--position-start-top_u88xy_22","--position-start-bottom":"_--position-start-bottom_u88xy_23","--position-end":"_--position-end_u88xy_27","--position-end-top":"_--position-end-top_u88xy_28","--position-end-bottom":"_--position-end-bottom_u88xy_29","--visible":"_--visible_u88xy_57","--animated":"_--animated_u88xy_62"},zs=e=>{const{children:t,className:n,attributes:r}=e,{flyout:o,id:i,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:m,handleMouseLeave:h,handleContentMouseDown:_,handleContentMouseUp:v,contentGap:p,contentClassName:x,contentAttributes:y,trapFocusMode:w}=Xt(),{styles:b,status:j,position:$}=o,[E,T]=c.useState(!1);if(le(()=>{T(!0)},[]),j==="idle"||!E)return null;const z=M(zt.content,j==="visible"&&zt["--visible"],["visible","hidden"].includes(j)&&zt["--animated"],$&&zt[`--position-${$}`]),S=M(zt.inner,n,x);let O;f==="hover"?O="tooltip":w==="dialog"?O="dialog":w==="selection-menu"?O="listbox":w==="action-menu"&&(O="menu");const P=s.jsx("div",{className:z,style:C(g({},b),{"--rs-flyout-gap":p}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?m:void 0,onMouseLeave:f==="hover"?h:void 0,onMouseDown:_,onTouchStart:_,onMouseUp:v,onTouchEnd:v,children:s.jsx("div",C(g({role:O},r),{id:i,"aria-modal":f==="click",style:y==null?void 0:y.style,className:S,children:t}))}),A=Nn(l.current);return s.jsx(Jt,{targetRef:A===document.body?void 0:{current:A},children:P})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?s.jsx($r,g({},e)):s.jsx(ys,g({},e))};Xe.Trigger=js,Xe.Content=zs;const Tn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},Ts={root:"_root_e7w6q_1"},In=e=>{if(!e)return null;const t=ee("--rs-p",e);return{classNames:Ts.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:m="elevated",triggerType:h="click",position:_="bottom",disableHideAnimation:v,instanceRef:p}=e,x=(j=e.padding)!=null?j:m==="headless"?0:4,y=e.trapFocusMode||(h==="hover"?"content-menu":void 0),w=In(x),b=M(Tn.content,!!d&&Tn["content--has-width"],m&&Tn[`content--variant-${m}`],w==null?void 0:w.classNames);return s.jsx(Xe,{id:t,instanceRef:p,position:_,forcePosition:n,onOpen:r,onClose:o,trapFocusMode:y,triggerType:h,active:i,defaultActive:a,width:d,disableHideAnimation:v,contentGap:f,contentClassName:b,contentAttributes:{style:g({},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"},Is=e=>s.jsx(Dt,C(g({},e),{side:"inline",className:[Be.aligner,e.className]})),Ms=(e,t)=>{const{icon:n,startSlot:r,endSlot:o,children:i,color:a="primary",selected:l,disabled:d,onClick:f,href:m,size:h="medium",roundedCorners:_,className:v,attributes:p}=e,x=M(Be.root,v,W(Be,"--size",h),W(Be,"--rounded-corners",_),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=Le(h,b=>b==="large"?3:2),w=Le(h,b=>b==="large"?5:4);return s.jsx(Ve,{disabled:d,className:x,attributes:C(g({},p),{"data-rs-aligner-target":!0}),onClick:f,href:m,ref:t,children:s.jsxs(U,{direction:"row",gap:y,align:"center",children:[n&&s.jsx(ce,{svg:n,className:Be.icon,size:w}),!n&&r,i&&s.jsx(U.Item,{grow:!0,className:Be.content,children:i}),o]})})},Mn=c.forwardRef(Ms);Mn.Aligner=Is;const Qt=()=>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"})}),Zt={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},Sn=c.createContext(null),we=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:r="click",trapFocusMode:o="action-menu"}=a,i=Fe(a,["children","position","triggerType","trapFocusMode"]);return s.jsx(dt,C(g({},i),{position:n,padding:0,trapFocusMode:o,triggerType:r,children:t}))},Ss=e=>{const{children:t,attributes:n,className:r}=e,o=c.useContext(Sn),[i]=Ge(),{ref:a}=rt({[i?_r:mr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.close()},[Jo]:()=>{const d=qt();d==null||d.click()}},[o==null?void 0:o.current]),l=M(Zt.menu,r);return s.jsx(dt.Content,{className:l,attributes:C(g({},n),{ref:a}),children:t})},Ps=e=>{const{children:t}=e;return s.jsx("div",{className:Zt.section,role:"group",children:t})},Ir=e=>{const{onClick:t}=e,{handleClose:n}=Xt(),r=o=>{n&&n({closeParents:!0}),t&&t(o)};return s.jsx(Mn,C(g({},e),{roundedCorners:!0,className:Zt.item,attributes:g({role:"menuitem"},e.attributes),onClick:r}))},As=e=>{const{children:t}=e,n=c.useRef();return s.jsx(Sn.Provider,{value:n,children:s.jsx(we,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Fs=e=>{const l=e,{children:t,attributes:n}=l,r=Fe(l,["children","attributes"]),o=c.useContext(Sn),[i]=Ge(),{ref:a}=rt({[i?mr:_r]:()=>{var d;(d=o==null?void 0:o.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return s.jsx(Ir,C(g({},r),{attributes:C(g({},n),{ref:a}),endSlot:s.jsx(ce,{autoWidth:!0,svg:Qt,className:Zt.arrow}),children:t}))},Ls=e=>{const{children:t}=e;return s.jsx(we.Trigger,{children:n=>s.jsx(Fs,{attributes:n,children:t})})};we.Trigger=dt.Trigger,we.Content=Ss,we.Section=Ps,we.Item=Ir,we.SubMenu=As,we.SubTrigger=Ls;const Mr=c.createContext({}),Sr=e=>{const w=e,{children:t,onChange:n,onItemSelect:r,name:o}=w,i=Fe(w,["children","onChange","onItemSelect","name"]),a=c.useRef(null),[l,d]=c.useState(!1),[f,m]=c.useState(!1),h=!!c.Children.toArray(t).filter(Boolean).length,_=c.useCallback(()=>d(!0),[]),v=()=>d(!1);rt({[`${dr},${ur}`]:()=>_()},[_],{ref:a});const p=b=>{n==null||n(b),m(!1),_()},x=b=>{n==null||n({value:b.value,name:o}),r==null||r({value:b.value}),m(!0)},y=b=>{var j;requestAnimationFrame(()=>{f&&(d(!1),m(!1))}),(j=i.onFocus)==null||j.call(i,b)};return s.jsx(Mr.Provider,{value:{onItemClick:x},children:s.jsxs(we,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!f&&h&&l,onClose:v,onOpen:_,disableHideAnimation:!0,children:[s.jsx(we.Trigger,{children:$=>{var E=$,{ref:b}=E,j=Fe(E,["ref"]);return s.jsx(pn,C(g({},i),{name:o,onChange:p,attributes:C(g({},i.attributes),{ref:b}),inputAttributes:C(g({},j),{onFocus:T=>{var z;(z=j.onFocus)==null||z.call(j),y(T)},ref:a,role:"combobox"})}))}}),s.jsx(we.Content,{children:t})]})})},Vs=e=>{const a=e,{value:t,onClick:n}=a,r=Fe(a,["value","onClick"]),{onItemClick:o}=c.useContext(Mr),i=l=>{n==null||n(l),o({value:t})};return s.jsx(we.Item,C(g({},r),{attributes:C(g({},r.attributes),{role:"option"}),onClick:i}))};Sr.Item=Vs;const en={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"},Ds=e=>{const{color:t="neutral",variant:n,src:r,size:o=12,squared:i,initials:a,icon:l,alt:d,className:f,attributes:m}=e,h=i?Le(o,x=>x>=24?"large":x>=12?"medium":"small"):"circular",_=Ct(o),v=M(en.root,f,_==null?void 0:_.classNames,t&&en[`--color-${t}`],n&&en[`--variant-${n}`]),p=()=>r?s.jsx("img",{role:a?void 0:"presentation",src:r,alt:d,className:en.img}):l?s.jsx(ce,{svg:l,size:Le(o,x=>Math.ceil(x*.4))}):a;return s.jsx(U,{borderRadius:h,attributes:C(g({},m),{style:g({},_==null?void 0:_.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:v,children:p()})},Pr=()=>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"})]}),Te={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"},Os=e=>{const{children:t,position:n="top-end",overlap:r,className:o,attributes:i}=e,a=M(Te.container,o,r&&Te["--container-overlap"],n&&Te[`--container-position-${n}`]);return s.jsx("div",C(g({},i),{className:a,children:t}))},Ar=e=>{const{children:t,color:n,rounded:r,size:o="medium",icon:i,endIcon:a,variant:l,hidden:d,href:f,onClick:m,onDismiss:h,dismissAriaLabel:_,className:v,attributes:p}=e,x=!!(m||f),y=o==="large"?4:3.5,w=M(Te.root,v,r&&Te["--rounded"],d&&Te["--hidden"],o&&Te[`--size-${o}`],n&&Te[`--color-${n}`],l&&Te[`--variant-${l}`],x&&Te["--actionable"]);return s.jsxs(Ve,{onClick:m,href:f,className:w,attributes:p,children:[i&&s.jsx(ce,{svg:i,autoWidth:!0,size:y}),t&&s.jsx(te,{variant:o==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&s.jsx(ce,{svg:a,autoWidth:!0,size:y}),h&&s.jsx(Ve,{onClick:h,className:Te.dismiss,as:"span",attributes:{"aria-label":_},children:s.jsx(ce,{svg:Pr,size:y})})]})};Ar.Container=Os;const tn={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"},Fr=e=>{const{size:t="small",color:n="primary",className:r,attributes:o}=e,i=o==null?void 0:o["aria-label"],a=M(tn.root,r,W(tn,"--size",t),n&&tn[`--color-${n}`]);return s.jsx("span",C(g({},o),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:a,children:s.jsx("span",{className:tn.inner})}))},de={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"},qs=e=>{const{children:t,className:n,attributes:r}=e,o=M(de.group,n);return s.jsx("div",C(g({},r),{className:o,role:"group",children:t}))},Bs=e=>s.jsx(Dt,C(g({},e),{side:e.position,className:[de.aligner,e.className]})),Ws=(e,t)=>{const{variant:n="solid",color:r="neutral",elevated:o,highlighted:i,fullWidth:a,loading:l,disabled:d,type:f,href:m,size:h="medium",className:_,children:v,rounded:p,attributes:x,onClick:y,icon:w,endIcon:b}=e,j=(w||b)&&!v,$=M(de.root,_,r&&de[`--color-${r}`],n&&de[`--variant-${n}`],W(de,"--size",h),W(de,"--full-width",a),o&&n!=="ghost"&&de["--elevated"],p&&de["--rounded"],d&&de["--disabled"],l&&de["--loading"],i&&de["--highlighted"],j&&de["--icon-only"]),E=T=>{if(!(T==="start"&&w||T==="end"&&b))return null;const P=M(de.icon,T==="end"&&de["--icon-position-end"]),A=Le(h,q=>q==="large"?5:q==="xlarge"?6:4);return s.jsx(ce,{className:P,svg:T==="start"?w:b,size:A,autoWidth:!0})};return s.jsxs(Ve,{disabled:d||l,className:$,attributes:C(g({},x),{"data-rs-aligner-target":!0}),type:f,onClick:y,href:m,ref:t,children:[l&&s.jsx("div",{className:de.loader,children:s.jsx(Fr,{size:"small",color:"inherit"})}),E("start"),v&&s.jsx("span",{className:de.text,children:v}),E("end")]})},je=c.forwardRef(Ws);je.Group=qs,je.Aligner=Bs;const Tt={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"},Hs=(e,t)=>{const{icon:n,disabled:r,href:o,color:i="primary",variant:a="underline",className:l,children:d,attributes:f,type:m,onClick:h}=e,_=M(Tt.root,l,r&&Tt["--disabled"],a&&Tt[`--variant-${a}`],i&&Tt[`--color-${i}`],n&&Tt["--with-icon"]);return s.jsxs(Ve,{href:o,disabled:r,className:_,attributes:f,type:m,onClick:h,ref:t,children:[n&&s.jsx(ce,{svg:n}),d]})},Lr=c.forwardRef(Hs),Rs=()=>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"})]}),Us=e=>{const{children:t,onClick:n,href:r,icon:o,disabled:i}=e;return!r&&!n&&!i?s.jsx(te,{variant:"body-3",weight:"medium",color:"neutral",children:t}):s.jsx(Lr,{onClick:n,href:r,icon:o,disabled:i,variant:"plain",color:"inherit",children:t})},Vr=e=>{const{children:t,separator:n,color:r,defaultVisibleItems:o,ariaLabel:i,className:a,attributes:l}=e,d=o&&o>=2?o:null,[f,m]=c.useState(!1),h=M(a),_=c.Children.count(t);let v=0;const p=()=>{m(!0)};return s.jsx("nav",C(g({},l),{"aria-label":i||(l==null?void 0:l["aria-label"]),className:h,children:s.jsx(U,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,y)=>{if(!x)return null;const w=_-(d||0),b=v===0,j=v>w,$=!d||b||j||f,E=v===w;v+=1;let T=null;return $?T=x:E&&(T=s.jsx(je.Aligner,{children:s.jsx(je,{variant:"ghost",size:"small",icon:Rs,onClick:p})})),T===null?null:s.jsxs(U,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||E)&&s.jsx(te,{color:"neutral-faded",children:n||s.jsx(ce,{svg:Qt,size:3})}),s.jsx(te,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:T})]},y)})})}))};Vr.Item=Us;const ut={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},Ks=(e,t)=>{const{padding:n=4}=e,{selected:r,elevated:o,bleed:i,height:a,onClick:l,href:d,children:f,className:m,attributes:h,as:_="div"}=e,v=!!d||!!l,p=_n("medium"),x=rr(i),y=In(n),w=Ct(a),b=M(ut.root,p==null?void 0:p.classNames,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,v&&ut["--actionable"],o&&ut["--elevated"],r&&ut["--selected"],m),j=g(g(g(g({},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 v?s.jsx(Ve,{className:b,attributes:C(g({},h),{style:j}),href:d,as:_,onClick:l,ref:t,children:s.jsx("span",{className:ut.content,children:f})}):s.jsx(_,C(g({},h),{onClick:l,href:d,ref:t,className:b,style:j,children:s.jsx("span",{className:ut.content,children:f})}))},Ys=c.forwardRef(Ks),Dr=()=>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"},Or=e=>{const{type:t,scrollElRef:n,scrollPosition:r,onClick:o,isRTL:i,mounted:a}=e,[l,d]=c.useState(!1),[f,m]=c.useState(!1),h=t===_t.forward,_=t===(i?_t.back:_t.forward),v=M(We.control,_?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return le(()=>{const p=n.current;if(!p||!a)return;let x;const y=Math.abs(r),w=y<=0,b=y+p.clientWidth>=p.scrollWidth-1;return(h?b:w)?(d(!1),x=setTimeout(()=>m(!1),1500)):(m(!0),d(!0)),()=>{x&&clearTimeout(x)}},[r,n.current,a]),s.jsx("div",{className:v,"aria-hidden":"true",children:s.jsx(je,{onClick:o,icon:_?Qt:Dr,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},Gs=e=>{const{children:t,gap:n=3,visibleItems:r,bleed:o,navigationDisplay:i,instanceRef:a,className:l,attributes:d}=e,[f,m]=c.useState(!1),[h,_]=c.useState(0),[v]=Ge(),p=c.useRef(null),x={};typeof o=="object"&&Object.entries(o).forEach(([z,S])=>{x[z]=typeof S=="number"&&S>0});const y=M(We.root,l,...W(We,"--bleed",typeof o=="number"?!0:x)),w=yo(z=>{const S=z.target;_(S.scrollLeft)},16),b=()=>{const S=getComputedStyle(p.current).gap.split(" ")[0];return Number(S.replace("px",""))},j=()=>{const z=p.current;z.scrollBy({left:z.clientWidth+b(),top:0,behavior:"smooth"})},$=()=>{const z=p.current;z.scrollBy({left:-z.clientWidth-b(),top:0,behavior:"smooth"})},E=v?j:$,T=v?$:j;return c.useImperativeHandle(a,()=>({navigateBack:E,navigateForward:T})),le(()=>{m(!0)},[]),s.jsxs("section",C(g({},d),{className:y,style:g(g({},ee("--rs-carousel-items",r)),ee("--rs-carousel-bleed",o)),children:[i!=="hidden"&&s.jsxs(s.Fragment,{children:[s.jsx(Or,{isRTL:v,type:_t.back,scrollElRef:p,scrollPosition:h,onClick:E,mounted:f}),s.jsx(Or,{isRTL:v,type:_t.forward,scrollElRef:p,scrollPosition:h,onClick:T,mounted:f})]}),s.jsx(U,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:p,onScroll:w},children:c.Children.map(t,z=>s.jsx(U.Item,{className:We.item,as:"li",children:z}))})]}))},Xs={root:"_root_1feer_1"},Pn=e=>{const{name:t,value:n,type:r,onChange:o,onFocus:i,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:m,attributes:h}=e,_=M(Xs.root,m);return s.jsx("input",C(g({},h),{className:_,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)}))},qr=c.createContext(null),Js=()=>c.useContext(qr),Br=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=d=>{const{event:f,value:m,checked:h}=d;if(!m)return;let _=[...o];h?_.push(m):_=_.filter(v=>v!==m),t&&t({name:n,value:_,event:f})};return s.jsx(qr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},Qs=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(Br,C(g({},e),{value:r,defaultValue:void 0,onChange:i}))},Zs=e=>{const{value:t}=e;return t!==void 0?s.jsx(Br,g({},e)):s.jsx(Qs,g({},e))},ei=()=>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"},ti=e=>{var $;const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,m=Js(),h=Ye(),_=(h==null?void 0:h.hasError)||e.hasError||(m==null?void 0:m.hasError),v=(h==null?void 0:h.disabled)||e.disabled||(m==null?void 0:m.disabled),p=m?($=m.value)==null?void 0:$.includes(n):e.checked,x=m?void 0:e.defaultChecked,y=m?m.name:e.name,w=c.useRef(null),b=M(Je.root,l,_&&Je["--error"],v&&Je["--disabled"]),j=E=>{if(!y)return;const{checked:T}=E.target,z={name:y,value:n,checked:T,event:E};r&&r(z),m!=null&&m.onChange&&m.onChange(z)};return le(()=>{w.current.indeterminate=a||!1},[a,p]),s.jsxs("label",C(g({},d),{className:b,children:[s.jsxs("span",{className:Je.field,children:[s.jsx(Pn,{className:Je.input,type:"checkbox",checked:p,defaultChecked:x,name:y,disabled:v,value:n,onChange:j,onFocus:o,onBlur:i,attributes:C(g({},f),{ref:w})}),s.jsx("div",{className:Je.decorator,children:s.jsx(ce,{svg:ei,className:Je.icon})})]}),t&&s.jsx("span",{className:Je.text,children:t})]}))},ni={root:"_root_1c40o_1"},ri=e=>{const{children:t,padding:n=4,width:r,className:o,attributes:i}=e,a=M(ni.root,o);return s.jsx(U,{attributes:i,className:a,paddingInline:n,width:r,maxWidth:"100%",children:t})},It={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"},oi=e=>{const{children:t,align:n,onClose:r,hideCloseButton:o,variant:i,closeAriaLabel:a,className:l,attributes:d}=e,f=M(It.root,l,i&&It[`--variant-${i}`],n&&It[`--align-${n}`],o&&It["--hide-close"]),m=i==="media"?"div":je.Aligner;return s.jsxs("div",C(g({},d),{className:f,children:[t,!o&&s.jsx(m,{className:It.close,children:s.jsx(je,C(g({size:"small"},i==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:r,attributes:{"aria-label":r?a:void 0},icon:Pr}))})]}))},si={root:"_root_r7flr_1"},ii=e=>{const{children:t}=e;return s.jsx("div",{className:si.root,children:t})},Wr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},ai=e=>{const{children:t,active:n,className:r,attributes:o}=e,i=M(Wr.root,n&&Wr["--active"],r);return s.jsx(te,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:o,children:t})},nn={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},li=e=>{const{src:t,alt:n,width:r,height:o,onLoad:i,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:m,attributes:h,imageAttributes:_}=e,[v,p]=c.useState("loading"),x=_n(f),y=mn(r),w=Ct(o),b=M(nn.root,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,d&&nn[`--display-mode-${d}`],m),j=M(nn.image,b),$=M(nn.fallback,b),E=g(g({},y==null?void 0:y.variables),w==null?void 0:w.variables),T=S=>{p("success"),i==null||i(S)},z=S=>{p("error"),a==null||a(S)};return c.useEffect(()=>{p("loading")},[t]),(v==="error"||!t)&&l?typeof l=="string"?s.jsx("img",C(g({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:E})):s.jsx("div",C(g({},h),{className:$,style:E,children:l})):s.jsx("img",C(g(g({},h),_),{src:t,alt:n,role:n?void 0:"presentation",onLoad:T,onError:z,className:j,style:E}))},An=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}},ci=(()=>{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}})(),Hr=()=>{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=ci();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"},Rr=e=>{const{active:t,children:n,transparent:r,onClose:o,className:i,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),m=c.useRef(!1),h=c.useRef(null),{lockScroll:_,unlockScroll:v}=Hr(),{active:p,activate:x,deactivate:y}=An(t||!1),{active:w,activate:b,deactivate:j}=An(t||!1),$=br(t,f),E=M(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)},z=()=>{f.current&&(h.current=Ht(f.current))},S=()=>{h.current&&(h.current(),h.current=null)},O=c.useCallback(()=>{!w||!$()||o&&o()},[w,$]),P=V=>{m.current=!T(V.target)},A=V=>{const L=!T(V.target);m.current&&L&&!r&&O()},q=V=>{V.propertyName!=="opacity"||V.target!==V.currentTarget||w||(r||v(),y())};return rt({Escape:O},[O]),c.useEffect(()=>{t&&!p&&x(),!t&&p&&j()},[t,x,j,p]),c.useEffect(()=>{p&&(r||_(),$t(()=>b()))},[p,b,_,r]),c.useEffect(()=>{if(p)return z(),()=>S()},[p]),c.useEffect(()=>()=>{r||v()},[v,r]),le(()=>{d(!0)},[]),!p||!l?null:s.jsx(Jt,{children:s.jsx(Jt.Scope,{children:V=>s.jsx("div",C(g({},a),{ref:V,role:"button",tabIndex:-1,className:E,onMouseDown:P,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})})})}))})})},Fn={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"},Ur=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Kr=()=>c.useContext(Ur),di=e=>{const{children:t}=e,{id:n,setTitleMounted:r}=Kr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(te,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},ui=e=>{const{children:t}=e,{id:n,setSubtitleMounted:r}=Kr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(te,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},Ln=e=>{const{children:t,onClose:n,active:r,size:o,padding:i=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,m=$e(),[h,_]=c.useState(!1),[v,p]=c.useState(!1),x=In(i),y=c.useMemo(()=>({titleMounted:h,setTitleMounted:_,subtitleMounted:v,setSubtitleMounted:p,id:m}),[m,v,h]);return s.jsx(Rr,{onClose:n,active:r,transparent:l,children:({active:w})=>{const b=M(Fn.root,d,x==null?void 0:x.classNames,w&&Fn["--active"],W(Fn,"--position",a));return s.jsx(Ur.Provider,{value:y,children:s.jsx("div",C(g({},f),{style:g(g({},x==null?void 0:x.variables),ee("--rs-modal-size",o)),"aria-labelledby":h?`${m}-title`:void 0,"aria-describedby":v?`${m}-subtitle`:void 0,className:b,"aria-modal":"true",role:"dialog",children:t}))})}})};Ln.Title=di,Ln.Subtitle=ui;const Mt={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"},_i=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=M(Mt.root,l,o&&Mt[`--color-${o}`],i&&Mt[`--size-${i}`],!!a&&Mt["--duration"]),m=r-n,h=t-n,p=`${Math.max(n,Math.min(r,h))/m*100-100}%`;return s.jsx("div",C(g({role:"progressbar"},d),{className:f,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":t,children:s.jsx("div",{className:Mt.value,style:{"--rs-progress-value":p,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Yr=c.createContext(null),mi=()=>c.useContext(Yr),Gr=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(Yr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},fi=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(Gr,C(g({},e),{value:r,defaultValue:void 0,onChange:i}))},hi=e=>{const{value:t}=e;return t!==void 0?s.jsx(Gr,g({},e)):s.jsx(fi,g({},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"},gi=e=>{const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),m=mi(),h=(f==null?void 0:f.hasError)||e.hasError||(m==null?void 0:m.hasError),_=(f==null?void 0:f.disabled)||e.disabled||(m==null?void 0:m.disabled),v=m?m.value===n:e.checked,p=m?void 0:e.defaultChecked,x=m?m.name:e.name,y=M(ot.root,a,h&&ot["--error"],_&&ot["--disabled"]),w=b=>{if(!x)return;const{checked:j}=b.target,$={name:x,value:n,checked:j,event:b};r&&r($),m!=null&&m.onChange&&m.onChange($)};return s.jsxs("label",C(g({},l),{className:y,children:[s.jsxs("span",{className:ot.field,children:[s.jsx(Pn,{className:ot.input,type:"radio",checked:v,defaultChecked:p,name:x,disabled:_,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})]}))},Xr={short:4e3,long:8e3},St=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Jr={queues:St.reduce((e,t)=>g({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},rn=c.createContext(Jr),vi=()=>{const{add:e,hide:t}=c.useContext(rn);return c.useMemo(()=>({show:e,hide:t}),[e,t])},Oe={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"},bi=e=>{const{size:t="small",text:n,children:r,color:o="inverted",icon:i,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:m}=e;let h=o==="inverted"||o==="neutral"?"elevation-overlay":o;o==="neutral"&&(h=f?"neutral":"elevation-overlay");const _=o==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",p=t==="large";let x=[];l&&(x=Array.isArray(l)?l:[l]);const y=(a||n)&&s.jsxs(s.Fragment,{children:[a&&s.jsxs(te,{variant:"body-3",weight:"bold",as:v,children:[a," "]}),s.jsx(te,{variant:"body-3",as:v,children:n})]}),w=s.jsxs(U,{backgroundColor:h,borderColor:_,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:p?"start":"center",className:Oe.toast,attributes:m,children:[i&&s.jsx(ce,{size:5,svg:i,className:Oe.icon}),d&&!i&&s.jsx(U.Item,{children:d}),s.jsx(U.Item,{grow:!0,children:s.jsxs(U,{direction:p?"column":"row",align:p?"start":"center",gap:3,children:[s.jsx(U.Item,{grow:!0,children:y&&r||t!=="small"?s.jsxs(U,{gap:.5,children:[y,r&&s.jsx(U,{gap:3,children:r})]}):y||r}),x.length&&s.jsx(U,{direction:"row",align:"center",gap:2,children:x.map((b,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 b.type===je?c.createElement(je,C(g(g({},T),b.props),{key:j})):b})})]})})]});return o==="inverted"?s.jsx(ct,{colorMode:"inverted",children:w}):w},pi=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(rn),[m,h]=c.useState(),_=c.useRef(),v=c.useRef(!1),p=c.useRef(null),x=c.useRef(null),y=r==="entered",w=M(Oe.container,y&&Oe["container--visible"],i===0&&Oe[`container--index-${i}`],!o&&(i===1||i===2)&&Oe[`container--index-${i}`],!o&&i>=3&&Oe["container--index-overflow"]),b=c.useCallback(()=>{_.current&&clearTimeout(_.current)},[]),j=c.useCallback(()=>{b();const E=typeof a=="string"?Xr[a]:a;a!==0&&(_.current=setTimeout(()=>{d(n)},E!=null?E:Xr.short))},[d,n,a,b]),$=E=>{E.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(o?b():j())},[o,j,b,y]),c.useEffect(()=>{x.current&&h(x.current.clientHeight),l(n),j()},[l,n,j]),c.useEffect(()=>{x.current&&(y?p.current=Ht(x.current,{includeTrigger:!0,mode:"content-menu"}):p.current&&fr()&&(p.current(),p.current=null))},[y]),c.useEffect(()=>{if(!y||i>0)return;const E=()=>{v.current=!0,$t(()=>{v.current=!1}),x.current&&h(x.current.clientHeight)};return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[y,i]),s.jsx("li",{className:w,style:{height:r==="entered"?`calc(${m}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:v.current?"0s":void 0},onTransitionEnd:$,onFocus:b,onBlur:j,children:s.jsx("span",{className:Oe.wrapper,children:s.jsx(bi,C(g({},t),{collapsed:i>0&&!o,attributes:{ref:x}}))})})},xi=e=>{const{position:t}=e,{queues:n,options:r}=c.useContext(rn),[o,i]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:m}=(r==null?void 0:r[t])||{},h=M(Oe.region,Oe[`region--position-${t}`]),_=d.filter(b=>b.status==="entered").length;let v=0;const p=()=>{a.current=!0},x=b=>{let j=b.target,$=!1;for(;j&&j!==l.current&&!$;)$=j.matches(hr),j=j.parentElement;$||i(E=>!E),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:p,onClick:x,onMouseEnter:y,onMouseLeave:w,style:{width:f},children:d.map((b,j)=>{const $=_-j+v-1;return b.status!=="entered"&&(v+=1),s.jsx(pi,C(g({},b),{index:$,inspected:o||!!m}),b.id)})}):null};let wi=0;const yi=()=>`__rs-toast-${wi++}`,ji=(e,t)=>{let n;switch(t.type){case"add":const r=t.payload.toastProps||{},{position:o="bottom-end"}=r,i=Fe(r,["position"]);return C(g({},e),{[o]:[...e[o],{id:t.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:a}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(m=>m.status!=="entering"?m:m.id===a?C(g({},m),{status:"entered"}):m)}),n;case"hide":const{id:l}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(m=>m.id===l?C(g({},m),{status:"exiting"}):m)}),n;case"remove":const{id:d}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].filter(m=>m.id!==d)}),n}},Ci=e=>{const{children:t,options:n}=e,[r,o]=c.useReducer(ji,Jr.queues),i=c.useCallback(m=>{const h=yi();return console.log("add"),o({type:"add",payload:{toastProps:m,id:h}}),h},[]),a=c.useCallback(m=>{o({type:"show",payload:{id:m}})},[]),l=c.useCallback(m=>{console.log("hide"),o({type:"hide",payload:{id:m}})},[]),d=c.useCallback(m=>{o({type:"remove",payload:{id:m}})},[]),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(rn.Provider,{value:f,children:[t,St.map(m=>s.jsx(xi,{position:m},m))]})},ki=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(xn,"true")},t=()=>{document.documentElement.removeAttribute(xn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},tc="",Ni={root:"_root_18j53_1"},$i=e=>{const{children:t,defaultRTL:n,defaultViewport:r="s",toastOptions:o}=e,i=ms(n);return ki(),s.jsx(kn.Provider,{value:{rtl:i,defaultViewport:r},children:s.jsx(us,{children:s.jsx(Ci,{options:o,children:t})})})},Ei=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:r,className:o}=e,i=M(Ni.root,o);return s.jsx(Ns,{defaultMode:r,children:s.jsx(ct,{name:t,defaultName:n,className:i,children:s.jsx($i,C(g({},e),{children:e.children}))})})},Pt={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"},zi=e=>{const{children:t,backgroundSlot:n,position:r="cover",attributes:o,className:i,scrimClassName:a}=e,l=M(Pt.root,!!n&&Pt["--with-background"],r&&Pt[`--position-${r}`],i),d=M(Pt.scrim,a);return s.jsxs("div",C(g({},o),{className:l,children:[n,s.jsx("div",{className:d,children:s.jsx("div",{className:Pt.content,children:t})})]}))},Ti=()=>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"})]}),Ie={root:"_root_t5eyu_1",input:"_input_t5eyu_18",slot:"_slot_t5eyu_48",icon:"_icon_t5eyu_56",arrow:"_arrow_t5eyu_68","--size-medium":"_--size-medium_t5eyu_1","--size-large":"_--size-large_t5eyu_1","--size-xlarge":"_--size-xlarge_t5eyu_1","--variant-faded":"_--variant-faded_t5eyu_123","--variant-headless":"_--variant-headless_t5eyu_132","--status-error":"_--status-error_t5eyu_137","--placeholder":"_--placeholder_t5eyu_152","--disabled":"_--disabled_t5eyu_156","--size-medium--m":"_--size-medium--m_t5eyu_1","--size-large--m":"_--size-large--m_t5eyu_1","--size-xlarge--m":"_--size-xlarge--m_t5eyu_1","--size-medium--l":"_--size-medium--l_t5eyu_1","--size-large--l":"_--size-large--l_t5eyu_1","--size-xlarge--l":"_--size-xlarge--l_t5eyu_1","--size-medium--xl":"_--size-medium--xl_t5eyu_1","--size-large--xl":"_--size-large--xl_t5eyu_1","--size-xlarge--xl":"_--size-xlarge--xl_t5eyu_1"},Ii=e=>{var q,V;const{onChange:t,onClick:n,onFocus:r,onBlur:o,name:i,value:a,defaultValue:l,placeholder:d,options:f,children:m,icon:h,startSlot:_,size:v="medium",variant:p="outline",className:x,attributes:y}=e,[w,b]=c.useState(a===void 0?!l:!a),j=Ye(),$=$e(e.id),E=((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,z=(j==null?void 0:j.hasError)||e.hasError,S=g(g({},e.inputAttributes),j==null?void 0:j.attributes),O=M(Ie.root,x,v&&W(Ie,"--size",v),z&&Ie["--status-error"],T&&Ie["--disabled"],w&&f&&Ie["--placeholder"],p&&Ie[`--variant-${p}`]),P=L=>{const Q=L.target.value;a===void 0&&b(!Q),t&&t({name:i,value:Q,event:L})};c.useEffect(()=>{a!==void 0&&b(!a)},[a]);const A=(_||h)&&s.jsx("div",{className:Ie.slot,children:h?s.jsx(ce,{size:Le(v,L=>L==="large"?5:L==="xlarge"?6:4),svg:h,className:Ie.icon}):_});return s.jsxs("div",C(g({},y),{className:O,children:[f?s.jsxs(s.Fragment,{children:[A,s.jsxs("select",C(g({},S),{className:Ie.input,disabled:T,name:i,value:a,defaultValue:l,onChange:P,onFocus:r||(S==null?void 0:S.onFocus),onBlur:o||(S==null?void 0:S.onBlur),id:E,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(Ve,{className:Ie.input,disabled:T,onClick:n,attributes:C(g({},S),{onFocus:r||(S==null?void 0:S.onFocus),onBlur:o||(S==null?void 0:S.onBlur)}),children:[A,m||(d?s.jsx(te,{color:"neutral-faded",children:d}):null)]}),s.jsx("input",{type:"hidden",value:a,name:i})]}),s.jsx("div",{className:Ie.arrow,children:s.jsx(ce,{svg:Ti,color:T?"disabled":"neutral-faded",size:Le(v,L=>L==="large"||L==="xlarge"?5:4)})})]}))},Mi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Si=e=>{const{borderRadius:t="small",width:n,height:r,className:o,attributes:i}=e,a=M(Mi.root,o);return s.jsx(U,{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"},Pi=(e,t)=>{const{name:n,value:r,disabled:o,active:i,position:a,max:l,min:d,onChange:f,onDragStart:m,renderValue:h}=e,_=c.useId(),v=M(Qe.thumb,i&&Qe["thumb--active"]),p=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":_}),s.jsx("div",{ref:t,className:v,onMouseDown:m,onTouchStart:m,style:{insetInlineStart:`${a}%`},id:_,"aria-hidden":"true",children:s.jsx(ct,{className:Qe.tooltip,colorMode:"inverted",children:s.jsx(te,{variant:"caption-1",weight:"medium",children:p})})})]})},Qr=c.forwardRef(Pi),Zr=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,Vn=(e,t)=>Math.round(e/t)*t,Dn=e=>{var Ce;const{name:t,range:n,max:r,min:o,step:i=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:m}=e,h=n&&e.minValue!==void 0?Vn(e.minValue,i):void 0,_=Vn(n?e.maxValue:e.value,i),v=c.useRef(null),p=c.useRef(null),x=c.useRef(null),[y,w]=c.useState(null),[b]=Ge(),j=Ye(),$=$e(),E=((Ce=j==null?void 0:j.attributes)==null?void 0:Ce.id)||$,T=`${E}-min`,z=`${E}-max`,S=(j==null?void 0:j.disabled)||e.disabled,O=M(Qe.root,S&&Qe["--disabled"],f),P=c.useCallback(se=>{if(!v.current)return;const H=v.current.clientWidth;let G=(se-v.current.getBoundingClientRect().left)/H;b&&(G=1-G);let ie=(r-o)*G+o;return ie=Math.max(o,Math.min(r,ie)),Vn(ie,i)},[r,o,b,i]),A=se=>(se-o)/(r-o)*100,q=c.useCallback((se,H)=>{if(!n)return;const Y=H!=null&&H.commit?l:a;Y==null||Y({minValue:se,maxValue:_,name:t})},[_,t,n]),V=c.useCallback((se,H)=>{if(n){const G=H!=null&&H.commit?l:a;G==null||G({minValue:h,maxValue:se,name:t});return}const Y=H!=null&&H.commit?l:a;Y==null||Y({value:se,name:t})},[h,t,n]),L=({nativeEvent:se})=>{if(S)return;let H,Y;const G=Zr(se),ie=P(G);[{ref:p,id:T},{ref:x,id:z}].forEach(X=>{if(!X.ref.current)return;const pe=X.ref.current,ge=Math.abs(pe.getBoundingClientRect().left-G);(H===void 0||ge<=H)&&(H=ge,Y=X.id)}),!(!Y||ie===void 0)&&(Y===T&&q(ie),Y===z&&V(ie),w(Y))},Q=()=>{S||w(T)},fe=()=>{S||w(z)},he=c.useCallback(()=>{y===T&&h!==void 0&&q(h,{commit:!0}),y===z&&V(_,{commit:!0}),w(null)},[h,_,q,V,y,T,z]),oe=c.useCallback(se=>{if(!y)return;const H=Zr(se),Y=P(H);if(Y===void 0)return;let G=y;y===T&&Y>_&&(G=z),y===z&&h&&Y<h&&(G=T),G===T&&q(Y),G===z&&V(Y),y!==G&&w(G)},[y,h,_,P,V,q,z,T]);c.useEffect(()=>(window.addEventListener("mouseup",he),window.addEventListener("touchend",he),window.addEventListener("mousemove",oe),window.addEventListener("touchmove",oe),()=>{window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe)}),[he,oe]);const Z=h&&A(h),He=A(_);return s.jsxs("div",C(g({},m),{className:O,onMouseDown:L,onTouchStart:L,children:[s.jsx("div",{className:Qe.bar,ref:v,children:s.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${Z||0}%`,width:`${He-(Z||0)}%`}})}),h!==void 0&&Z!==void 0&&s.jsx(Qr,{id:T,active:T===y,name:t,disabled:S,onChange:q,value:h,onDragStart:Q,position:Z,max:r,min:o,ref:p,renderValue:d}),s.jsx(Qr,{id:z,active:z===y,name:t,disabled:S,onChange:V,value:_,onDragStart:fe,position:He,max:r,min:o,ref:x,renderValue:d})]}))},Ai=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,m]=c.useState(a),h=v=>{o||(m(v.value),r==null||r(v))},_=v=>{o&&(d(v.minValue),m(v.maxValue),r==null||r(v))};return o?s.jsx(Dn,C(g({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:_})):s.jsx(Dn,C(g({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Fi=e=>{const o=e,{min:t=0,max:n=100}=o,r=Fe(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(Dn,C(g({},r),{min:t,max:n})):s.jsx(Ai,C(g({},r),{min:t,max:n}))},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"},Li=e=>{var b;const{children:t,name:n,checked:r,size:o,reversed:i,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:m,attributes:h}=e,_=M(ft.root,o&&ft[`root--size-${o}`],i&&ft["root--reversed"],m),v=Ye(),p=$e((v==null?void 0:v.attributes.id)||e.id||((b=e.inputAttributes)==null?void 0:b.id)),x=g(g({},e.inputAttributes),v==null?void 0:v.attributes),y=(v==null?void 0:v.disabled)||e.disabled,w=j=>{l&&l({name:n,event:j,checked:j.target.checked})};return s.jsxs("label",C(g({},h),{className:_,children:[s.jsx("input",C(g({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:p})),s.jsx("span",{className:ft.area,"aria-hidden":"true",children:s.jsx("span",{className:ft.thumb})}),t&&s.jsx(te,{variant:"body-3",weight:"medium",children:t})]}))},Vi={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"},Di=e=>{if(!e)return null;const t=ee("--rs-min-w",e);return{classNames:W(Vi,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"},eo=e=>{const{minWidth:t,rowSpan:n,colSpan:r,align:o,tagName:i,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:m}=e,h=e.width==="auto"?"0px":e.width,_=mn(h),v=Di(t||h),p=M(Ze.cell,_==null?void 0:_.classNames,v==null?void 0:v.classNames,o&&Ze[`cell--align-${o}`]),x=g(g(g(g({},_==null?void 0:_.variables),v==null?void 0:v.variables),ee("--rs-table-p-vertical",d!=null?d:a)),ee("--rs-table-p-horizontal",l!=null?l:a));return s.jsx(i,C(g({},m),{className:p,rowSpan:n,colSpan:r,style:x,children:f}))},Oi=e=>s.jsx(eo,C(g({},e),{tagName:"td"})),qi=e=>s.jsx(eo,C(g({},e),{tagName:"th"})),Bi=e=>{const{highlighted:t,children:n,attributes:r}=e,o=M(Ze.row,t&&Ze["--row-highlighted"]);return s.jsx("tr",C(g({},r),{className:o,children:n}))},On=e=>s.jsx("tbody",{children:e.children}),to=e=>s.jsx("thead",{children:e.children}),ht=e=>{const{children:t,border:n,columnBorder:r,className:o,attributes:i}=e,a=M(Ze.root,o,n&&Ze["--border-outer"],r&&Ze["--border-column"]),[l]=c.Children.toArray(t);return s.jsx("div",C(g({},i),{className:a,children:s.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===On||l.type===to)?t:s.jsx(On,{children:t})})}))};ht.Cell=Oi,ht.Heading=qi,ht.Row=Bi,ht.Body=On,ht.Head=to;const no=c.createContext({}),Wi=no.Provider,qn=e=>{const r=c.useContext(no),{id:t}=r,n=Fe(r,["id"]);return C(g({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},ro=e=>{const{children:t,value:n,onChange:r,onSilentChange:o,itemWidth:i,variant:a,name:l,direction:d="row",size:f="medium"}=e,m=$e(),h=c.useRef(null),_=c.useRef(h.current),v=c.useRef(null),[p,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(Wi,{value:{value:n,name:l,size:f,direction:d,itemWidth:i,variant:a,onChange:r,id:m,setDefaultValue:y,elActiveRef:h,elPrevActiveRef:_,elScrollableRef:v,selection:p,setSelection:x},children:t})},Hi=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(ro,C(g({},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"},Ri=(e,t)=>{const{value:n,children:r,icon:o,href:i,attributes:a}=e,{onChange:l,panelId:d,name:f,size:m,value:h,selection:_,elActiveRef:v,elPrevActiveRef:p,elScrollableRef:x}=qn(n),y=c.useRef(null),w=h===n,b=w&&_.status==="idle",j=M(ne.item,b&&ne["--item-active"]),$=!!f,E={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");p.current=v.current,v.current=y.current},[v,p]),z=()=>{var L,Q,fe;if(i&&!l)return;const S=x.current,O=(L=y.current)==null?void 0:L.parentElement,P=(Q=v.current)==null?void 0:Q.parentElement;if(T(),l&&l({value:n,name:f}),!S||!O||!P||S.scrollWidth===S.clientWidth)return;const A=O.offsetLeft<P.offsetLeft,q=(O.offsetLeft-S.scrollLeft)/S.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(g({},a),{className:j,ref:y,role:"presentation",children:s.jsxs(Ve,{ref:t,href:i,insetFocus:!0,onClick:f?void 0:z,className:ne.button,as:f?"label":void 0,attributes:C(g({},!$&&E),{"aria-controls":d}),children:[f&&s.jsx(Pn,{type:"radio",name:f,value:n,checked:b,onChange:z,className:ne.radio}),s.jsxs("span",{className:ne.buttonContent,children:[o&&s.jsx(ce,{svg:o,className:ne.icon,size:4}),r&&s.jsx(te,{variant:m==="large"?"body-2":"body-3",children:r})]})]})}))},oo=c.forwardRef(Ri),so=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:so(e.parentElement,t),Ui=e=>{const{children:t,className:n,attributes:r}=e,{value:o,setDefaultValue:i,itemWidth:a,variant:l,name:d,direction:f,size:m,selection:h,setSelection:_,elActiveRef:v,elPrevActiveRef:p,elScrollableRef:x}=qn(),[y]=Ge(),[w,b]=c.useState(null),j=M(ne.root,m&&ne[`--size-${m}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],w&&ne[`--cut-off-${w}`],n),$=M(ne.selector,h.status==="idle"&&ne["--selector-hidden"],h.status==="animated"&&ne["--selector-animated"]),E=()=>{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"})},z=()=>{_(P=>C(g({},P),{status:"idle"}))},S=c.useCallback(P=>{if(!x.current)return null;const A=so(P,x.current);return A?{scaleX:A.clientWidth,scaleY:A.clientHeight,top:A.offsetTop,left:A.offsetLeft}:null},[x]),{ref:O}=rt({"ArrowLeft, ArrowUp":P=>{d||(P.preventDefault(),ts(x.current))},"ArrowRight, ArrowDown":P=>{d||(P.preventDefault(),es(x.current))},Home:P=>{d||(P.preventDefault(),ns(x.current))},End:P=>{d||(P.preventDefault(),rs(x.current))}});return le(()=>{if(o)return;const P=c.Children.toArray(t)[0];!P||P.type!==oo||i(P.props.value)},[o]),le(()=>{if(!p.current||p.current===v.current)return;const P=S(p.current);P&&_(C(g({},P),{status:"prepared"}))},[o,S]),le(()=>{if(h.status!=="prepared"||!v.current)return;const P=S(v.current);P&&_(C(g({},P),{status:"animated"}))},[h]),le(()=>{const P=x.current;if(!P||f==="column")return;const A=()=>{P.clientWidth<P.scrollWidth||b(null);const L=P.scrollLeft*(y?-1:1),Q=L>1,fe=L+P.clientWidth<P.scrollWidth-1;if(fe&&Q)return b("both");if(Q)return b("start");if(fe)return b("end")},q=jo(A,100);return requestAnimationFrame(()=>{A()}),window.addEventListener("resize",q),P.addEventListener("scroll",q),()=>{window.removeEventListener("resize",q),P.removeEventListener("scroll",q)}},[y]),s.jsxs("div",C(g({},r),{className:j,children:[s.jsx("div",{className:ne.inner,ref:x,children:s.jsxs("div",{className:ne.list,role:"tablist",ref:O,children:[c.Children.map(t,(P,A)=>P?s.jsx("div",{className:ne.listItem,children:P},P.props.value||P.key||A):null),s.jsx("div",{onTransitionEnd:z,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(je,{onClick:T,size:"small",icon:Dr,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(w==="end"||w==="both")&&s.jsx("span",{className:ne.next,children:s.jsx(je,{onClick:E,size:"small",icon:Qt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},Ki=e=>{const{value:t,children:n}=e,{value:r,panelId:o,buttonId:i}=qn(t),a=t===r,l=M(ne.panel,!a&&ne["--panel-hidden"]);return s.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:o,"aria-labelledby":i,children:a&&n})},on=e=>{const{value:t}=e;return t!==void 0?s.jsx(ro,g({},e)):s.jsx(Hi,g({},e))};on.Item=oo,on.List=Ui,on.Panel=Ki;const gt={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"},io=e=>{var $,E;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:m,attributes:h}=e,_=Ye(),v=$e(e.id),p=(($=_==null?void 0:_.attributes)==null?void 0:$.id)||((E=e.inputAttributes)==null?void 0:E.id)||v,x=(_==null?void 0:_.disabled)||e.disabled,y=(_==null?void 0:_.hasError)||e.hasError,w=g(g({},e.inputAttributes),_==null?void 0:_.attributes),b=M(gt.root,d&&W(gt,"--size",d),y&>["--status-error"],x&>["--disabled"],f&>[`--variant-${f}`],m),j=T=>{t&&t({name:o,value:T.target.value,event:T})};return s.jsx("div",C(g({},h),{"data-rs-aligner-target":!0,className:b,children:s.jsx("textarea",C(g({},w),{className:gt.input,rows:3,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:p}))}))};io.Aligner=e=>s.jsx(Dt,g({},e));const Bn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Wn=e=>{const{children:t,markerSlot:n,className:r,attributes:o}=e,i=n!==null,a=M(Bn.item,!i&&Bn["item--full-width"],r);return s.jsxs(U,{as:"li",direction:"row",align:"stretch",gap:3,attributes:o,className:a,children:[i&&s.jsx("span",{className:Bn.marker,children:n}),s.jsx(U.Item,{grow:!0,children:t})]})},ao=e=>{const{children:t,className:n,attributes:r}=e,o=M(n);return s.jsx("ul",C(g({},r),{className:o,children:c.Children.map(t,(i,a)=>(i==null?void 0:i.type)===Wn?i:s.jsx(Wn,{children:i},a))}))};ao.Item=Wn;const Yi={root:"_root_9090g_1"},Gi=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(ct,{colorMode:"inverted",children:s.jsx(te,{variant:"caption-1",className:Yi.root,children:n})})})]})},vt={m:660,l:900,xl:1280},lo={s:`(max-width: ${vt.m-1}px)`,m:`(min-width: ${vt.m}px) and (max-width: ${vt.l-1}px)`,l:`(min-width: ${vt.l}px) and (max-width: ${vt.xl-1}px)`,xl:`(min-width: ${vt.xl}px)`},Xi=e=>{const{defaultViewport:t}=c.useContext(kn),[n,r]=c.useState(t);return le(()=>{const i=Object.keys(lo).map(a=>{const l=window.matchMedia(lo[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},Ji=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=gn,N.ActionBar=Ho,N.Actionable=Ve,N.Alert=Uo,N.Autocomplete=Sr,N.Avatar=Ds,N.Badge=Ar,N.Breadcrumbs=Vr,N.Button=je,N.Card=Ys,N.Carousel=Gs,N.Checkbox=ti,N.CheckboxGroup=Zs,N.Container=ri,N.Dismissible=oi,N.Divider=er,N.DropdownMenu=we,N.FormControl=Vt,N.Hidden=un,N.HiddenVisually=ii,N.Hotkey=ai,N.Icon=ce,N.Image=li,N.Link=Lr,N.Loader=Fr,N.MenuItem=Mn,N.Modal=Ln,N.Overlay=Rr,N.Placeholder=Ji,N.Popover=dt,N.Progress=_i,N.Radio=gi,N.RadioGroup=hi,N.Reshaped=Ei,N.Scrim=zi,N.Select=Ii,N.Skeleton=Si,N.Slider=Fi,N.Switch=Li,N.Table=ht,N.Tabs=on,N.Text=te,N.TextArea=io,N.TextField=pn,N.Theme=ct,N.Timeline=ao,N.Tooltip=Gi,N.View=U,N.classNames=M,N.responsiveClassNames=W,N.responsivePropDependency=Le,N.useFormControl=Ye,N.useHotkeys=rt,N.useIsomorphicLayoutEffect=le,N.useRTL=Ge,N.useResponsiveClientValue=Xi,N.useScrollLock=Hr,N.useTheme=zr,N.useToast=vi,N.useToggle=An,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|