reshaped 2.2.1 → 2.3.0
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 +16 -1
- package/bin/cli.js +1 -11
- package/bundle.css +1 -1
- package/bundle.js +10 -10
- package/cli/theming/definitions/base.d.ts +1 -1
- package/cli/theming/definitions/figma.d.ts +1 -1
- package/cli/theming/definitions/reshaped.d.ts +1 -1
- package/cli/theming/definitions/slate.d.ts +1 -1
- package/cli/theming/index.d.ts +4 -4
- package/cli/theming/index.js +7 -107
- package/components/Actionable/Actionable.js +14 -3
- package/components/Actionable/Actionable.module.css +1 -1
- package/components/Autocomplete/tests/Autocomplete.stories.js +27 -1
- package/components/Button/Button.js +2 -0
- package/components/Button/Button.module.css +1 -1
- package/components/Button/Button.types.d.ts +6 -0
- package/components/Button/ButtonGroup.d.ts +4 -0
- package/components/Button/ButtonGroup.js +9 -0
- package/components/Button/tests/Button.stories.d.ts +1 -0
- package/components/Button/tests/Button.stories.js +63 -0
- package/components/DropdownMenu/tests/DropdownMenu.stories.js +1 -0
- package/components/Overlay/Overlay.js +4 -4
- package/components/Tabs/Tabs.d.ts +1 -8
- package/components/Tabs/Tabs.module.css +1 -1
- package/components/Tabs/Tabs.types.d.ts +6 -7
- package/components/Tabs/TabsContext.d.ts +4 -0
- package/components/Tabs/TabsControlled.js +24 -1
- package/components/Tabs/TabsItem.d.ts +1 -8
- package/components/Tabs/TabsItem.js +22 -4
- package/components/Tabs/TabsList.js +30 -32
- package/components/Tabs/tests/Tabs.stories.d.ts +1 -0
- package/components/Tabs/tests/Tabs.stories.js +17 -0
- package/components/Toast/ToastContainer.js +1 -0
- package/components/Toast/ToastProvider.js +4 -0
- package/components/Toast/tests/Toast.stories.js +1 -0
- package/components/_private/Flyout/FlyoutContent.js +4 -2
- package/components/_private/Flyout/tests/Flyout.stories.d.ts +1 -0
- package/components/_private/Flyout/tests/Flyout.stories.js +25 -0
- package/components/_private/Portal/Portal.d.ts +8 -4
- package/components/_private/Portal/Portal.js +23 -11
- package/components/_private/Portal/Portal.types.d.ts +7 -2
- package/components/_private/Portal/index.d.ts +1 -1
- package/components/_private/Portal/index.js +1 -1
- package/components/_private/Portal/tests/Portal.stories.js +11 -12
- package/config/tailwind.d.ts +1 -1
- package/config/tailwind.js +3 -3
- package/hooks/_private/useFlyout.js +16 -13
- package/package.json +36 -28
- package/themes/_generator/tests/themes.stories.d.ts +6 -0
- package/themes/_generator/tests/themes.stories.js +32 -0
- package/{cli/theming → themes/_generator}/tokens/color/color.transforms.d.ts +1 -1
- package/{cli/theming → themes/_generator}/tokens/duration/duration.transforms.d.ts +1 -1
- package/{cli/theming → themes/_generator}/tokens/easing/easing.transforms.d.ts +1 -1
- package/{cli/theming → themes/_generator}/tokens/font/font.transforms.d.ts +1 -1
- package/{cli/theming → themes/_generator}/tokens/fontFamily/fontFamily.transforms.d.ts +1 -1
- package/{cli/theming → themes/_generator}/tokens/fontWeight/fontWeight.transforms.d.ts +1 -1
- package/{cli/theming → themes/_generator}/tokens/shadow/shadow.transforms.d.ts +1 -1
- package/{cli/theming → themes/_generator}/tokens/shadow/shadow.transforms.js +1 -1
- package/{cli/theming → themes/_generator}/tokens/unit/unit.transforms.d.ts +1 -1
- package/{cli/theming → themes/_generator}/tokens/viewport/viewport.transforms.d.ts +1 -1
- package/themes/_generator/transform.d.ts +7 -0
- package/themes/_generator/transform.js +57 -0
- package/{cli/theming → themes/_generator}/types.d.ts +3 -1
- package/{cli/theming → themes/_generator}/utilities/css.js +3 -1
- package/themes/_generator/utilities/generateBackgroundColors.d.ts +4 -0
- package/themes/_generator/utilities/generateBackgroundColors.js +54 -0
- package/themes/_generator/utilities/generateUnits.d.ts +4 -0
- package/themes/_generator/utilities/generateUnits.js +17 -0
- package/{cli/theming → themes/_generator}/utilities/mergeDeep.js +1 -3
- package/{cli/theming → themes/_generator}/utilities/resolveTokenReference.js +1 -3
- package/themes/index.d.ts +3 -0
- package/themes/index.js +5 -0
- package/types/config.d.ts +1 -1
- package/utilities/a11y.js +12 -3
- package/{cli/utilities → utilities}/color.d.ts +1 -1
- package/utilities/dom.d.ts +1 -0
- package/utilities/dom.js +9 -0
- package/cli/utilities/tests/color.test.d.ts +0 -1
- package/cli/utilities/tests/color.test.js +0 -63
- /package/{cli/theming → themes/_generator}/tokens/color/color.transforms.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/color/color.types.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/color/color.types.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/duration/duration.transforms.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/duration/duration.types.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/duration/duration.types.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/easing/easing.transforms.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/easing/easing.types.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/easing/easing.types.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/font/font.transforms.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/font/font.types.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/font/font.types.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/fontFamily/fontFamily.transforms.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/fontFamily/fontFamily.types.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/fontFamily/fontFamily.types.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/fontWeight/fontWeight.transforms.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/fontWeight/fontWeight.types.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/fontWeight/fontWeight.types.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/shadow/shadow.types.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/shadow/shadow.types.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/transforms.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/transforms.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/types.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/types.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/unit/unit.transforms.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/unit/unit.types.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/unit/unit.types.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/viewport/viewport.transforms.js +0 -0
- /package/{cli/theming → themes/_generator}/tokens/viewport/viewport.types.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/tokens/viewport/viewport.types.js +0 -0
- /package/{cli/theming → themes/_generator}/types.js +0 -0
- /package/{cli/theming → themes/_generator}/utilities/css.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/utilities/mergeDeep.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/utilities/mergeDefinitions.d.ts +0 -0
- /package/{cli/theming → themes/_generator}/utilities/mergeDefinitions.js +0 -0
- /package/{cli/theming → themes/_generator}/utilities/resolveTokenReference.d.ts +0 -0
- /package/{cli/utilities → utilities}/color.js +0 -0
- /package/{cli/utilities → utilities}/string.d.ts +0 -0
- /package/{cli/utilities → utilities}/string.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 ea=Object.defineProperty,ta=Object.defineProperties;var na=Object.getOwnPropertyDescriptors;var on=Object.getOwnPropertySymbols;var co=Object.prototype.hasOwnProperty,uo=Object.prototype.propertyIsEnumerable;var lo=(N,c,_e)=>c in N?ea(N,c,{enumerable:!0,configurable:!0,writable:!0,value:_e}):N[c]=_e,p=(N,c)=>{for(var _e in c||(c={}))co.call(c,_e)&&lo(N,_e,c[_e]);if(on)for(var _e of on(c))uo.call(c,_e)&&lo(N,_e,c[_e]);return N},k=(N,c)=>ta(N,na(c));var Ae=(N,c)=>{var _e={};for(var be in N)co.call(N,be)&&c.indexOf(be)<0&&(_e[be]=N[be]);if(N!=null&&on)for(var be of on(N))c.indexOf(be)<0&&uo.call(N,be)&&(_e[be]=N[be]);return _e};var be={exports:{}},bt={};/**
|
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 Wn;function _o(){if(Wn)return bt;Wn=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,s={key:!0,ref:!0,__self:!0,__source:!0};function a(l,u,m){var _,h={},f=null,v=null;m!==void 0&&(f=""+m),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(v=u.ref);for(_ in u)r.call(u,_)&&!s.hasOwnProperty(_)&&(h[_]=u[_]);if(l&&l.defaultProps)for(_ in u=l.defaultProps,u)h[_]===void 0&&(h[_]=u[_]);return{$$typeof:t,type:l,key:f,ref:v,props:h,_owner:o.current}}return bt.Fragment=n,bt.jsx=a,bt.jsxs=a,bt}var xt={};/**
|
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
|
-
`+
|
19
|
-
`),pe=
|
20
|
-
`),ne=
|
21
|
-
`+
|
17
|
+
*/var Hn;function mo(){return Hn||(Hn=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"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b=Symbol.iterator,w="@@iterator";function g(d){if(d===null||typeof d!="object")return null;var j=b&&d[b]||d[w];return typeof j=="function"?j:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(d){{for(var j=arguments.length,T=new Array(j>1?j-1:0),A=1;A<j;A++)T[A-1]=arguments[A];C("error",d,T)}}function C(d,j,T){{var A=y.ReactDebugCurrentFrame,R=A.getStackAddendum();R!==""&&(j+="%s",T=T.concat([R]));var J=T.map(function(q){return String(q)});J.unshift("Warning: "+j),Function.prototype.apply.call(console[d],console,J)}}var $=!1,E=!1,z=!1,P=!1,I=!1,O;O=Symbol.for("react.module.reference");function S(d){return!!(typeof d=="string"||typeof d=="function"||d===r||d===s||I||d===o||d===m||d===_||P||d===v||$||E||z||typeof d=="object"&&d!==null&&(d.$$typeof===f||d.$$typeof===h||d.$$typeof===a||d.$$typeof===l||d.$$typeof===u||d.$$typeof===O||d.getModuleId!==void 0))}function F(d,j,T){var A=d.displayName;if(A)return A;var R=j.displayName||j.name||"";return R!==""?T+"("+R+")":T}function W(d){return d.displayName||"Context"}function L(d){if(d==null)return null;if(typeof d.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case m:return"Suspense";case _:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case l:var j=d;return W(j)+".Consumer";case a:var T=d;return W(T._context)+".Provider";case u:return F(d,d.render,"ForwardRef");case h:var A=d.displayName||null;return A!==null?A:L(d.type)||"Memo";case f:{var R=d,J=R._payload,q=R._init;try{return L(q(J))}catch(D){return null}}}return null}var V=Object.assign,te=0,je,fe,oe,Q,He,Ce,se;function H(){}H.__reactDisabledLog=!0;function K(){{if(te===0){je=console.log,fe=console.info,oe=console.warn,Q=console.error,He=console.group,Ce=console.groupCollapsed,se=console.groupEnd;var d={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}te++}}function Y(){{if(te--,te===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},d,{value:je}),info:V({},d,{value:fe}),warn:V({},d,{value:oe}),error:V({},d,{value:Q}),group:V({},d,{value:He}),groupCollapsed:V({},d,{value:Ce}),groupEnd:V({},d,{value:se})})}te<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=y.ReactCurrentDispatcher,ye;function G(d,j,T){{if(ye===void 0)try{throw Error()}catch(R){var A=R.stack.trim().match(/\n( *(at )?)/);ye=A&&A[1]||""}return`
|
18
|
+
`+ye+d}}var ge=!1,he;{var Me=typeof WeakMap=="function"?WeakMap:Map;he=new Me}function Re(d,j){if(!d||ge)return"";{var T=he.get(d);if(T!==void 0)return T}var A;ge=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=ie.current,ie.current=null,K();try{if(j){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(Ke){A=Ke}Reflect.construct(d,[],q)}else{try{q.call()}catch(Ke){A=Ke}d.call(q.prototype)}}else{try{throw Error()}catch(Ke){A=Ke}d()}}catch(Ke){if(Ke&&A&&typeof Ke.stack=="string"){for(var D=Ke.stack.split(`
|
19
|
+
`),pe=A.stack.split(`
|
20
|
+
`),ne=D.length-1,ae=pe.length-1;ne>=1&&ae>=0&&D[ne]!==pe[ae];)ae--;for(;ne>=1&&ae>=0;ne--,ae--)if(D[ne]!==pe[ae]){if(ne!==1||ae!==1)do if(ne--,ae--,ae<0||D[ne]!==pe[ae]){var Ne=`
|
21
|
+
`+D[ne].replace(" at new "," at ");return d.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",d.displayName)),typeof d=="function"&&he.set(d,Ne),Ne}while(ne>=1&&ae>=0);break}}}finally{ge=!1,ie.current=J,Y(),Error.prepareStackTrace=R}var gt=d?d.displayName||d.name:"",ao=gt?G(gt):"";return typeof d=="function"&&he.set(d,ao),ao}function Ze(d,j,T){return Re(d,!1)}function et(d){var j=d.prototype;return!!(j&&j.isReactComponent)}function Se(d,j,T){if(d==null)return"";if(typeof d=="function")return Re(d,et(d));if(typeof d=="string")return G(d);switch(d){case m:return G("Suspense");case _:return G("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case u:return Ze(d.render);case h:return Se(d.type,j,T);case f:{var A=d,R=A._payload,J=A._init;try{return Se(J(R),j,T)}catch(q){}}}return""}var Pe=Object.prototype.hasOwnProperty,St={},ot=y.ReactDebugCurrentFrame;function vt(d){if(d){var j=d._owner,T=Se(d.type,d._source,j?j.type:null);ot.setExtraStackFrame(T)}else ot.setExtraStackFrame(null)}function nn(d,j,T,A,R){{var J=Function.call.bind(Pe);for(var q in d)if(J(d,q)){var D=void 0;try{if(typeof d[q]!="function"){var pe=Error((A||"React class")+": "+T+" type `"+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[q]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw pe.name="Invariant Violation",pe}D=d[q](j,q,A,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ne){D=ne}D&&!(D instanceof Error)&&(vt(R),x("%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).",A||"React class",T,q,typeof D),vt(null)),D instanceof Error&&!(D.message in St)&&(St[D.message]=!0,vt(R),x("Failed %s type: %s",T,D.message),vt(null))}}}var Vn=Array.isArray;function Pt(d){return Vn(d)}function Dn(d){{var j=typeof Symbol=="function"&&Symbol.toStringTag,T=j&&d[Symbol.toStringTag]||d.constructor.name||"Object";return T}}function ve(d){try{return de(d),!1}catch(j){return!0}}function de(d){return""+d}function qe(d){if(ve(d))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Dn(d)),de(d)}var me=y.ReactCurrentOwner,st={key:!0,ref:!0,__self:!0,__source:!0},Ue,ke,Fe;Fe={};function rn(d){if(Pe.call(d,"ref")){var j=Object.getOwnPropertyDescriptor(d,"ref").get;if(j&&j.isReactWarning)return!1}return d.ref!==void 0}function Oi(d){if(Pe.call(d,"key")){var j=Object.getOwnPropertyDescriptor(d,"key").get;if(j&&j.isReactWarning)return!1}return d.key!==void 0}function qi(d,j){if(typeof d.ref=="string"&&me.current&&j&&me.current.stateNode!==j){var T=L(me.current.type);Fe[T]||(x('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',L(me.current.type),d.ref),Fe[T]=!0)}}function Bi(d,j){{var T=function(){Ue||(Ue=!0,x("%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)",j))};T.isReactWarning=!0,Object.defineProperty(d,"key",{get:T,configurable:!0})}}function Wi(d,j){{var T=function(){ke||(ke=!0,x("%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)",j))};T.isReactWarning=!0,Object.defineProperty(d,"ref",{get:T,configurable:!0})}}var Hi=function(d,j,T,A,R,J,q){var D={$$typeof:t,type:d,key:j,ref:T,props:q,_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:A}),Object.defineProperty(D,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D};function Ri(d,j,T,A,R){{var J,q={},D=null,pe=null;T!==void 0&&(qe(T),D=""+T),Oi(j)&&(qe(j.key),D=""+j.key),rn(j)&&(pe=j.ref,qi(j,R));for(J in j)Pe.call(j,J)&&!st.hasOwnProperty(J)&&(q[J]=j[J]);if(d&&d.defaultProps){var ne=d.defaultProps;for(J in ne)q[J]===void 0&&(q[J]=ne[J])}if(D||pe){var ae=typeof d=="function"?d.displayName||d.name||"Unknown":d;D&&Bi(q,ae),pe&&Wi(q,ae)}return Hi(d,D,pe,R,A,me.current,q)}}var On=y.ReactCurrentOwner,to=y.ReactDebugCurrentFrame;function pt(d){if(d){var j=d._owner,T=Se(d.type,d._source,j?j.type:null);to.setExtraStackFrame(T)}else to.setExtraStackFrame(null)}var qn;qn=!1;function Bn(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function no(){{if(On.current){var d=L(On.current.type);if(d)return`
|
22
22
|
|
23
|
-
Check the render method of \``+
|
23
|
+
Check the render method of \``+d+"`."}return""}}function Ui(d){{if(d!==void 0){var j=d.fileName.replace(/^.*[\\\/]/,""),T=d.lineNumber;return`
|
24
24
|
|
25
|
-
Check your code at `+j+":"+
|
25
|
+
Check your code at `+j+":"+T+"."}return""}}var ro={};function Ki(d){{var j=no();if(!j){var T=typeof d=="string"?d:d.displayName||d.name;T&&(j=`
|
26
26
|
|
27
|
-
Check the top-level render call using <`+E+">.")}return j}}function rr(u,j){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var E=Wi(j);if(or[E])return;or[E]=!0;var F="";u&&u._owner&&u._owner!==qn.current&&(F=" It was passed a child from "+D(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.',E,F),pt(null)}}function sr(u,j){{if(typeof u!="object")return;if(Pt(u))for(var E=0;E<u.length;E++){var F=u[E];Vn(F)&&rr(F,j)}else if(Vn(u))u._store&&(u._store.validated=!0);else if(u){var H=w(u);if(typeof H=="function"&&H!==u.entries)for(var X=H.call(u),V;!(V=X.next()).done;)Vn(V.value)&&rr(V.value,j)}}}function Hi(u){{var j=u.type;if(j==null||typeof j=="string")return;var E;if(typeof j=="function")E=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===d||j.$$typeof===h))E=j.propTypes;else return;if(E){var F=D(j);tn(E,u.props,"prop",F,u)}else if(j.PropTypes!==void 0&&!On){On=!0;var H=D(j);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ri(u){{for(var j=Object.keys(u.props),E=0;E<j.length;E++){var F=j[E];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 ir(u,j,E,F,H,X){{var V=M(u);if(!V){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 pe=Bi(H);pe?O+=pe:O+=nr();var ne;u===null?ne="null":Pt(u)?ne="array":u!==void 0&&u.$$typeof===t?(ne="<"+(D(u.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):ne=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",ne,O)}var ae=Di(u,j,E,H,X);if(ae==null)return ae;if(V){var ke=j.children;if(ke!==void 0)if(F)if(Pt(ke)){for(var gt=0;gt<ke.length;gt++)sr(ke[gt],u);Object.freeze&&Object.freeze(ke)}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 sr(ke,u)}return u===o?Ri(ae):Hi(ae),ae}}function Ui(u,j,E){return ir(u,j,E,!0)}function Ki(u,j,E){return ir(u,j,E,!1)}var Yi=Ki,Gi=Ui;xt.Fragment=o,xt.jsx=Yi,xt.jsxs=Gi}()),xt}process.env.NODE_ENV==="production"?be.exports=ur():be.exports=_r();var i=be.exports;const Wn=(e,t=20)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}};function mr(e,t){const n=Wn(e,t);return o=>("persist"in o&&o.persist(),n(o))}const fr=(e,t)=>{let n=!1;return(...o)=>{n||(e(...o),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...o)},t)},t))}},S=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const o=S(...n);return o?`${t} ${o}`:t}return n?`${t} ${n}`:t},""),Hn=(e,t,n)=>{const{base:o,excludeValueFromClassName:r}=n||{},s=typeof e=="string"?e:e(t);return t===!0&&o||r?s:t===!0&&!o?`${s}-true`:t===!1&&!o?`${s}-false`:t!==void 0?`${s}-${t}`:null},B=(e,t,n,o)=>{if(typeof n!="object"){const r=Hn(t,n,{base:!0,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName});return r?[e[r]]:[]}return Object.keys(n).reduce((r,s)=>{const a=s==="s",l=Hn(t,n[s],{base:a,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName}),d=a?"":`--${s}`;return[...r,e[`${l}${d}`]]},[])},oe=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,o)=>{const r=t[o];return r===void 0||r===!1?n:k(p({},n),{[`${e}-${o}`]:r})},{}),hr=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Le=(e,t)=>hr(e)?Object.keys(e).reduce((o,r)=>{const s=e[r];return s==null?o:k(p({},o),{[r]:t(s,r)})},{}):t(e,"s"),Ne=e=>{const t=c.useId();return e||t},rn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Rn=e=>{const{children:t,onToggle:n,active:o,iconPosition:r,iconSize:s,className:a,attributes:l}=e,d=S(a),f=Ne(),_=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:o,onToggle:n,iconPosition:r,iconSize:s}),[o]);return i.jsx("div",k(p({},l),{className:d,children:i.jsx(rn.Provider,{value:_,children:t})}))},vr=e=>{const l=e,{defaultActive:t,onToggle:n}=l,o=Ae(l,["defaultActive","onToggle"]),[r,s]=c.useState(t||!1),a=d=>{s(d),n==null||n(d)};return i.jsx(Rn,k(p({},o),{onToggle:a,active:r}))},yt={root:"_root_zv8rq_1","--disabled":"_--disabled_zv8rq_27","--full-width":"_--full-width_zv8rq_36","--inset":"_--inset_zv8rq_44","--radius-inherit":"_--radius-inherit_zv8rq_48"},pr=(e,t)=>{const{children:n,href:o,onClick:r,type:s,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:_,className:h,attributes:m}=e,v=S(yt.root,h,a&&yt["--disabled"],d&&yt[`--radius-${d}`],l&&yt["--inset"],_&&yt["--full-width"]),x=p({},m),g=r||(m==null?void 0:m.onClick),w=(m==null?void 0:m.onFocus)||(m==null?void 0:m.onBlur),y=!!(o||m!=null&&m.href),b=!!(g||w||s);let C;if(y)x.href=a?void 0:o||(m==null?void 0:m.href),C="a";else if(b&&(!f||f==="button"))C="button",x.type=s||(m==null?void 0:m.type)||"button",x.disabled=a||(m==null?void 0:m.disabled);else if(b){const T=!(f==="label")||g||w;C=f||"span",x.role=T?"button":void 0,x.tabIndex=T?0:void 0}else C=f||"span";const I=z=>{var T;a||(r==null||r(z),(T=m==null?void 0:m.onClick)==null||T.call(m,z))},$=z=>I(z),P=z=>{if(!(x.role==="button")||y)return;const Z=z.key===" ",M=z.key==="Enter";!Z&&!M||(z.preventDefault(),I(z))};return i.jsx(C,k(p({ref:t},x),{className:v,onClick:$,onKeyDown:P,children:n}))},qe=c.forwardRef(pr),sn={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"},Un=e=>{const{vertical:t,blank:n,className:o,attributes:r}=e,s=S(sn.root,o,n&&sn["--blank"],...B(sn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),i.jsx("div",k(p({},r),{role:"separator","aria-orientation":a,className:s}))},Ft={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"},an=e=>{const{as:t="div",children:n,visibility:o,hide:r,displayStyle:s}=e,a=S(Ft.root,...B(Ft,"--hidden",r),o&&Ft["--visibility"],s&&Ft[`--display-${s}`]);return typeof n=="function"?i.jsx(i.Fragment,{children:n(a)}):i.jsx(t,{className:a,children:n})},G={root:"_root_18paf_1",item:"_item_18paf_10","--padding":"_--padding_18paf_18","--padding-top":"_--padding-top_18paf_23","--padding-bottom":"_--padding-bottom_18paf_27","--padding-start":"_--padding-start_18paf_31","--padding-end":"_--padding-end_18paf_35","--animated":"_--animated_18paf_39","--align-text-start":"_--align-text-start_18paf_1","--align-text-center":"_--align-text-center_18paf_1","--align-text-end":"_--align-text-end_18paf_1","--bg-neutral":"_--bg-neutral_18paf_1","--bg-positive":"_--bg-positive_18paf_1","--bg-critical":"_--bg-critical_18paf_1","--bg-primary":"_--bg-primary_18paf_1","--bg-neutral-faded":"_--bg-neutral-faded_18paf_1","--bg-positive-faded":"_--bg-positive-faded_18paf_1","--bg-critical-faded":"_--bg-critical-faded_18paf_1","--bg-primary-faded":"_--bg-primary-faded_18paf_1","--bg-page":"_--bg-page_18paf_1","--bg-page-faded":"_--bg-page-faded_18paf_1","--bg-disabled":"_--bg-disabled_18paf_1","--bg-disabled-faded":"_--bg-disabled-faded_18paf_1","--bg-elevation-base":"_--bg-elevation-base_18paf_1","--bg-elevation-raised":"_--bg-elevation-raised_18paf_1","--bg-elevation-overlay":"_--bg-elevation-overlay_18paf_1","--bg-white":"_--bg-white_18paf_66","--bg-black":"_--bg-black_18paf_71","--shadow-raised":"_--shadow-raised_18paf_76","--shadow-overlay":"_--shadow-overlay_18paf_80","--bd":"_--bd_18paf_84","--bd-neutral-faded":"_--bd-neutral-faded_18paf_1","--bd-neutral":"_--bd-neutral_18paf_1","--bd-positive":"_--bd-positive_18paf_1","--bd-positive-faded":"_--bd-positive-faded_18paf_1","--bd-critical":"_--bd-critical_18paf_1","--bd-critical-faded":"_--bd-critical-faded_18paf_1","--bd-primary":"_--bd-primary_18paf_1","--bd-primary-faded":"_--bd-primary-faded_18paf_1","--bd-transparent":"_--bd-transparent_18paf_96","--overflow-hidden":"_--overflow-hidden_18paf_100","--divided":"_--divided_18paf_104","--flex":"_--flex_18paf_108","--direction-column":"_--direction-column_18paf_1","item--gap-before":"_item--gap-before_18paf_120","item--gap-auto":"_item--gap-auto_18paf_124","--direction-column-reverse":"_--direction-column-reverse_18paf_1","--direction-row":"_--direction-row_18paf_1","--direction-row-reverse":"_--direction-row-reverse_18paf_1","--nowrap":"_--nowrap_18paf_179","--wrap":"_--wrap_18paf_187","--nowrap-false--m":"_--nowrap-false--m_18paf_1","--wrap-true--m":"_--wrap-true--m_18paf_1","--nowrap-true--m":"_--nowrap-true--m_18paf_1","--wrap-false--m":"_--wrap-false--m_18paf_1","--nowrap-false--l":"_--nowrap-false--l_18paf_1","--wrap-true--l":"_--wrap-true--l_18paf_1","--nowrap-true--l":"_--nowrap-true--l_18paf_1","--wrap-false--l":"_--wrap-false--l_18paf_1","--nowrap-false--xl":"_--nowrap-false--xl_18paf_1","--wrap-true--xl":"_--wrap-true--xl_18paf_1","--nowrap-true--xl":"_--nowrap-true--xl_18paf_1","--wrap-false--xl":"_--wrap-false--xl_18paf_1","--align-start":"_--align-start_18paf_1","--align-end":"_--align-end_18paf_1","--align-center":"_--align-center_18paf_1","--align-stretch":"_--align-stretch_18paf_1","--align-baseline":"_--align-baseline_18paf_1","--justify-start":"_--justify-start_18paf_1","--justify-end":"_--justify-end_18paf_1","--justify-center":"_--justify-center_18paf_1",divider:"_divider_18paf_242","item--grow":"_item--grow_18paf_246","item--columns-1":"_item--columns-1_18paf_1","item--columns-2":"_item--columns-2_18paf_1","item--columns-3":"_item--columns-3_18paf_1","item--columns-4":"_item--columns-4_18paf_1","item--columns-5":"_item--columns-5_18paf_1","item--columns-6":"_item--columns-6_18paf_1","item--columns-7":"_item--columns-7_18paf_1","item--columns-8":"_item--columns-8_18paf_1","item--columns-9":"_item--columns-9_18paf_1","item--columns-10":"_item--columns-10_18paf_1","item--columns-11":"_item--columns-11_18paf_1","item--columns-12":"_item--columns-12_18paf_1","item--columns-auto":"_item--columns-auto_18paf_279","item--columns-1--m":"_item--columns-1--m_18paf_1","item--columns-auto--m":"_item--columns-auto--m_18paf_1","item--columns-2--m":"_item--columns-2--m_18paf_1","item--columns-3--m":"_item--columns-3--m_18paf_1","item--columns-4--m":"_item--columns-4--m_18paf_1","item--columns-5--m":"_item--columns-5--m_18paf_1","item--columns-6--m":"_item--columns-6--m_18paf_1","item--columns-7--m":"_item--columns-7--m_18paf_1","item--columns-8--m":"_item--columns-8--m_18paf_1","item--columns-9--m":"_item--columns-9--m_18paf_1","item--columns-10--m":"_item--columns-10--m_18paf_1","item--columns-11--m":"_item--columns-11--m_18paf_1","item--columns-12--m":"_item--columns-12--m_18paf_1","item--columns-1--l":"_item--columns-1--l_18paf_1","item--columns-auto--l":"_item--columns-auto--l_18paf_1","item--columns-2--l":"_item--columns-2--l_18paf_1","item--columns-3--l":"_item--columns-3--l_18paf_1","item--columns-4--l":"_item--columns-4--l_18paf_1","item--columns-5--l":"_item--columns-5--l_18paf_1","item--columns-6--l":"_item--columns-6--l_18paf_1","item--columns-7--l":"_item--columns-7--l_18paf_1","item--columns-8--l":"_item--columns-8--l_18paf_1","item--columns-9--l":"_item--columns-9--l_18paf_1","item--columns-10--l":"_item--columns-10--l_18paf_1","item--columns-11--l":"_item--columns-11--l_18paf_1","item--columns-12--l":"_item--columns-12--l_18paf_1","item--columns-1--xl":"_item--columns-1--xl_18paf_1","item--columns-auto--xl":"_item--columns-auto--xl_18paf_1","item--columns-2--xl":"_item--columns-2--xl_18paf_1","item--columns-3--xl":"_item--columns-3--xl_18paf_1","item--columns-4--xl":"_item--columns-4--xl_18paf_1","item--columns-5--xl":"_item--columns-5--xl_18paf_1","item--columns-6--xl":"_item--columns-6--xl_18paf_1","item--columns-7--xl":"_item--columns-7--xl_18paf_1","item--columns-8--xl":"_item--columns-8--xl_18paf_1","item--columns-9--xl":"_item--columns-9--xl_18paf_1","item--columns-10--xl":"_item--columns-10--xl_18paf_1","item--columns-11--xl":"_item--columns-11--xl_18paf_1","item--columns-12--xl":"_item--columns-12--xl_18paf_1","--direction-column--m":"_--direction-column--m_18paf_1","--direction-column-reverse--m":"_--direction-column-reverse--m_18paf_1","--direction-row--m":"_--direction-row--m_18paf_1","--direction-row-reverse--m":"_--direction-row-reverse--m_18paf_1","--align-start--m":"_--align-start--m_18paf_1","--align-end--m":"_--align-end--m_18paf_1","--align-center--m":"_--align-center--m_18paf_1","--align-stretch--m":"_--align-stretch--m_18paf_1","--align-baseline--m":"_--align-baseline--m_18paf_1","--justify-start--m":"_--justify-start--m_18paf_1","--justify-end--m":"_--justify-end--m_18paf_1","--justify-center--m":"_--justify-center--m_18paf_1","item--grow-true--m":"_item--grow-true--m_18paf_1","item--grow-false--m":"_item--grow-false--m_18paf_1","--direction-column--l":"_--direction-column--l_18paf_1","--direction-column-reverse--l":"_--direction-column-reverse--l_18paf_1","--direction-row--l":"_--direction-row--l_18paf_1","--direction-row-reverse--l":"_--direction-row-reverse--l_18paf_1","--align-start--l":"_--align-start--l_18paf_1","--align-end--l":"_--align-end--l_18paf_1","--align-center--l":"_--align-center--l_18paf_1","--align-stretch--l":"_--align-stretch--l_18paf_1","--align-baseline--l":"_--align-baseline--l_18paf_1","--justify-start--l":"_--justify-start--l_18paf_1","--justify-end--l":"_--justify-end--l_18paf_1","--justify-center--l":"_--justify-center--l_18paf_1","item--grow-true--l":"_item--grow-true--l_18paf_1","item--grow-false--l":"_item--grow-false--l_18paf_1","--direction-column--xl":"_--direction-column--xl_18paf_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_18paf_1","--direction-row--xl":"_--direction-row--xl_18paf_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_18paf_1","--align-start--xl":"_--align-start--xl_18paf_1","--align-end--xl":"_--align-end--xl_18paf_1","--align-center--xl":"_--align-center--xl_18paf_1","--align-stretch--xl":"_--align-stretch--xl_18paf_1","--align-baseline--xl":"_--align-baseline--xl_18paf_1","--justify-start--xl":"_--justify-start--xl_18paf_1","--justify-end--xl":"_--justify-end--xl_18paf_1","--justify-center--xl":"_--justify-center--xl_18paf_1","item--grow-true--xl":"_item--grow-true--xl_18paf_1","item--grow-false--xl":"_item--grow-false--xl_18paf_1"},Kn={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"},ln=e=>e?{classNames:[Kn.root,...B(Kn,"--radius",e)]}:null,Yn={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"},Gn=e=>{if(e===void 0)return null;const t=[Yn.root,...B(Yn,"--bleed",Le(e,o=>typeof o=="number"&&o>0))],n=oe("--rs-bleed",e);return{classNames:t,variables:n}},gr={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"},Xn=e=>{if(!e)return null;const t=oe("--rs-w",e);return{classNames:B(gr,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},br={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"},wt=e=>{if(!e)return null;const t=oe("--rs-h",e);return{classNames:B(br,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},xr={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"},yr=e=>{if(!e)return null;const t=oe("--rs-max-w",e);return{classNames:B(xr,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},wr={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"},jr=e=>{if(!e)return null;const t=oe("--rs-max-h",e);return{classNames:B(wr,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Cr={"--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"},kr=e=>e?{classNames:B(Cr,"--position",e)}:null,Nr={"--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"},jt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",o=`--rs-inset${n}`,r=oe(o,e);return{classNames:B(Nr,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:r}},$r={root:"_root_i342i_1"},Er=e=>{if(!e)return null;const t=oe("--rs-ratio",e);return{classNames:$r.root,variables:t}},Jn=e=>{const{columns:t,grow:n,gapBefore:o,as:r="div",order:s,children:a,className:l,attributes:d}=e,f=S(G.item,l,o==="auto"&&G["item--gap-auto"],o!==void 0&&G["item--gap-before"],...B(G,"item--grow",n),...B(G,"item--columns",t)),_=p(p({},oe("--rs-view-item-order",s)),oe("--rs-view-item-gap-before",o));return i.jsx(r,k(p({},d),{style:p(p({},d==null?void 0:d.style),_),className:f,children:a}))},R=e=>{const{align:t,justify:n,wrap:o,gap:r,height:s,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:_,paddingInline:h,paddingBlock:m,paddingBottom:v,paddingEnd:x,paddingStart:g,paddingTop:w,bleed:y,animated:b,backgroundColor:C,borderColor:I,borderRadius:$,shadow:P,textAlign:z,overflow:T,position:Z="relative",inset:M,insetTop:L,insetBottom:q,insetStart:D,insetEnd:A,zIndex:J,grow:ye,as:fe="div",children:re,divided:Q,className:He,attributes:je}=e,se=!!t||!!n||!!r||!!e.direction,W=e.direction||(se?"column":void 0),U=ln($),K=Gn(y),ie=Xn(a),we=wt(s),Y=yr(f),ge=jr(d),he=kr(Z),Me=jt(M),Re=jt(L,"top"),Ze=jt(q,"bottom"),et=jt(D,"start"),Se=jt(A,"end"),Pe=Er(l);let St=0,rt;const vt=({className:ve,key:ue})=>{const De=S(G.divider,ve);let me=!1;return typeof W=="string"&&W.startsWith("row")?me=!0:W&&(me=Object.keys(W).reduce((Ue,Ce)=>{const Fe=W[Ce];return Fe?k(p({},Ue),{[Ce]:Fe.startsWith("row")}):Ue},{})),i.jsx("div",{className:De,children:i.jsx(Un,{vertical:me,blank:!0})},`${ue}-divider`)},tn=({className:ve,child:ue,index:De})=>{var Fe,nn;const me=ue.type===Jn,st=ue.key||De,Ue=!!De&&Q&&vt({className:ve,key:st});let Ce;return me?Ce=c.cloneElement(ue,{className:S(ve,ue.props.className)}):ve||!c.isValidElement(ue)?Ce=i.jsx("div",{className:ve,children:ue},st):Ce=ue,me&&((Fe=ue.props)!=null&&Fe.grow)&&(rt=ue.props.grow),me&&((nn=ue.props)==null?void 0:nn.gap)==="auto"&&(rt=!0),[Ue,Ce]},An=c.Children.map(re,(ve,ue)=>{if(!ve)return null;const De=St;if(St+=1,ve.type===an&&typeof ve.props.children!="function"){const me=ve.props,{children:st}=me,Ue=Ae(me,["children"]),Ce=ve.key||ue;return c.createElement(an,k(p({},Ue),{key:Ce}),Fe=>tn({className:Fe,child:st,index:De}))}return tn({child:ve,index:De})}),Pt=S(G.root,He,U==null?void 0:U.classNames,he==null?void 0:he.classNames,K==null?void 0:K.classNames,ie==null?void 0:ie.classNames,we==null?void 0:we.classNames,Pe==null?void 0:Pe.classNames,Y==null?void 0:Y.classNames,ge==null?void 0:ge.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,Ze==null?void 0:Ze.classNames,et==null?void 0:et.classNames,Se==null?void 0:Se.classNames,z&&G[`--align-text-${z}`],C&&G[`--bg-${C}`],I&&G[`--bd-${I}`],I&&G["--bd"],P&&G[`--shadow-${P}`],T&&G[`--overflow-${T}`],b&&G["--animated"],Q&&G["--divided"],(_!==void 0||h!==void 0||m!==void 0)&&G["--padding"],v!==void 0&&G["--padding-bottom"],x!==void 0&&G["--padding-end"],g!==void 0&&G["--padding-start"],w!==void 0&&G["--padding-top"],(se||rt)&&G["--flex"],...B(G,"--direction",W),...B(G,"--align",t),...B(G,"--justify",n),...B(G,"--nowrap",rt||o===!1),...B(G,"--wrap",o),...B(G,"item--grow",ye)),Ln=p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p({},je==null?void 0:je.style),oe("--rs-view-gap",r)),oe("--rs-view-p-vertical",m||_)),oe("--rs-view-p-horizontal",h||_)),oe("--rs-view-p-bottom",v)),oe("--rs-view-p-top",w)),oe("--rs-view-p-start",g)),oe("--rs-view-p-end",x)),K==null?void 0:K.variables),ie==null?void 0:ie.variables),we==null?void 0:we.variables),Pe==null?void 0:Pe.variables),Y==null?void 0:Y.variables),ge==null?void 0:ge.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),Ze==null?void 0:Ze.variables),et==null?void 0:et.variables),Se==null?void 0:Se.variables),J?{"--rs-view-z":J}:{});return i.jsx(fe,k(p({},je),{className:Pt,style:Ln,children:An}))};R.Item=Jn;const cn={root:"_root_1f0uh_1","--auto":"_--auto_1f0uh_8","--color-neutral":"_--color-neutral_1f0uh_1","--color-neutral-faded":"_--color-neutral-faded_1f0uh_1","--color-primary":"_--color-primary_1f0uh_1","--color-positive":"_--color-positive_1f0uh_1","--color-critical":"_--color-critical_1f0uh_1","--color-disabled":"_--color-disabled_1f0uh_1"},le=e=>{const{svg:t,className:n,color:o,size:r="1em",autoWidth:s,attributes:a}=e,l=wt(r),d=S(cn.root,n,l==null?void 0:l.classNames,o&&cn[`--color-${o}`],s&&cn["--auto"]),f=typeof t=="object"?t:i.jsx(t,{}),_=p(p({},a==null?void 0:a.style),l==null?void 0:l.variables);return i.jsx("span",k(p({},a),{"aria-hidden":"true",className:d,style:_,children:c.cloneElement(f,{focusable:!1})}))},zr=()=>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"})}),Ct={content:"_content_fcvpf_1","content--animated":"_content--animated_fcvpf_6",icon:"_icon_fcvpf_13","icon--active":"_icon--active_fcvpf_17"},Tr=e=>{const{children:t}=e,{active:n,onToggle:o,triggerId:r,contentId:s,iconPosition:a="end",iconSize:l}=c.useContext(rn),d=S(Ct.icon,n&&Ct["icon--active"]),f=()=>{o==null||o(!n)},_={"aria-expanded":n,"aria-controls":s,id:r};return typeof t=="function"?i.jsx(i.Fragment,{children:t(k(p({},_),{onClick:f}),{active:n})}):i.jsx(qe,{onClick:f,fullWidth:!0,attributes:_,children:i.jsxs(R,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[i.jsx(R.Item,{grow:!0,children:t}),i.jsx(le,{size:l||4,svg:zr,className:d})]})})},kt=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},dn="data-rs-no-transition",Ir=()=>{document.documentElement.setAttribute(dn,"true")},Mr=()=>{document.documentElement.removeAttribute(dn)},Sr=()=>!document.documentElement.hasAttribute(dn),Pr=e=>{const{children:t}=e,{active:n,triggerId:o,contentId:r}=c.useContext(rn),s=c.useRef(null),a=c.useRef(!1),[l,d]=c.useState(n?"auto":null),f=S(Ct.content,a.current&&l!=="auto"&&Ct["content--animated"],n&&Ct["content--active"]),_=h=>{h.propertyName==="height"&&d(n?"auto":null)};return c.useEffect(()=>{kt(()=>{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":o,id:r,role:"region",hidden:!n&&l===null,children:t})},un=e=>{const{active:t}=e;return t!==void 0?i.jsx(Rn,p({},e)):i.jsx(vr,p({},e))};un.Trigger=Tr,un.Content=Pr;const _n={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Fr=e=>{const{position:t="bottom",padding:n,paddingBlock:o=3,paddingInline:r=4,children:s,elevated:a,className:l,attributes:d}=e,f=S(_n.root,a&&_n["--elevated"],t&&_n[`--position-${t}`],l);return i.jsx(R,{className:f,attributes:d,paddingBlock:n||o,paddingInline:n||r,children:s})},tt={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"},Ar={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},ee=e=>{const{variant:t,color:n,weight:o,align:r,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||_&&Ar[_]||"div",m=S(tt.root,n&&tt[`--color-${n}`],...B(tt,"--variant",t),...B(tt,"--align",r),o&&tt[`--weight-${o}`],s&&tt[`--decoration-${s}`],a!==void 0&&tt["--clamp"],d),v=k(p({},f==null?void 0:f.style),{"--rs-text-lines":a});return i.jsx(h,k(p({},f),{className:m,style:v,children:l}))},Lr=e=>{const{title:t,children:n,icon:o,actionsSlot:r,color:s="neutral",inline:a,bleed:l,className:d,attributes:f}=e,_=s==="neutral",h=()=>a?i.jsxs(i.Fragment,{children:[t&&i.jsx(ee,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&i.jsx(ee,{variant:"body-3",as:"span",children:n})]}):i.jsxs(R,{gap:1,children:[t&&i.jsx(ee,{variant:"body-3",weight:"medium",children:t}),n&&i.jsx(ee,{variant:"body-3",children:n})]}),m=v=>r?i.jsxs(R,{gap:2,direction:a?"row":"column",children:[a?i.jsx(R.Item,{grow:!0,children:v}):v,r&&i.jsx(ee,{variant:"body-3",weight:"medium",children:i.jsx(R,{direction:"row",gap:3,children:r})})]}):v;return i.jsx(R,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:d,attributes:k(p({},f),{role:s==="critical"?"alert":"status"}),children:o?i.jsxs(i.Fragment,{children:[i.jsx(le,{svg:o,size:5,color:_?"primary":s}),i.jsx(R.Item,{grow:!0,children:m(h())})]}):m(h())})},Qn=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),qr=Qn.Provider,Nt=()=>c.useContext(Qn),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:o}=Nt();return{attributes:e,required:t,hasError:n,disabled:o}},Zn={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},mn=(e,t)=>`${e}-${t||"caption"}`,At=e=>{const{children:t,id:n,required:o,hasError:r,group:s,disabled:a,size:l}=e,d=Ne(n),f=s?"fieldset":"div",[_,h]=c.useState(!1),[m,v]=c.useState(!1),x=[_&&mn(d),m&&mn(d,"error")].filter(Boolean).join(" "),g={id:d,"aria-describedby":x},w=()=>{v(!0)},y=()=>{h(!0)};return i.jsx(f,{children:i.jsx(qr,{value:{required:o,hasError:r,errorRef:w,helperRef:y,attributes:g,group:s,disabled:a,size:l},children:t})})},Or=e=>{const{children:t}=e,{attributes:n,required:o,group:r,disabled:s,size:a}=Nt(),l=`${n.id}-label`,d=r?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return i.jsxs(ee,k(p({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:Zn.label,color:s?"disabled":void 0,children:[t,o&&i.jsx(ee,{color:s?"disabled":"critical",as:"span",children:"*"})]}))},eo=e=>{const{children:t,variant:n,disabled:o}=e,{attributes:r,size:s,helperRef:a,errorRef:l}=Nt(),d=mn(r.id,n),f=n==="error"?"critical":"neutral-faded",_=n==="error"?l:a;return i.jsx(ee,{as:"span",variant:s==="large"?"body-3":"caption-1",color:o&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:_},className:Zn.caption,children:t})},Vr=e=>{const{children:t}=e,{disabled:n}=Nt();return i.jsx(eo,{disabled:n,children:t})},Dr=e=>{const{children:t}=e,{hasError:n}=Nt();return n?i.jsx(eo,{variant:"error",children:t}):null};At.Label=Or,At.Helper=Vr,At.Error=Dr;const $e={root:"_root_v29im_1",input:"_input_v29im_16",slot:"_slot_v29im_37",icon:"_icon_v29im_38",affix:"_affix_v29im_39",attachment:"_attachment_v29im_55","attachment--position-start":"_attachment--position-start_v29im_60","attachment--position-end":"_attachment--position-end_v29im_73","--disabled":"_--disabled_v29im_86","--size-medium":"_--size-medium_v29im_1","--size-large":"_--size-large_v29im_1","--size-xlarge":"_--size-xlarge_v29im_1","--variant-faded":"_--variant-faded_v29im_150","--variant-headless":"_--variant-headless_v29im_159","--status-error":"_--status-error_v29im_164","--size-medium--m":"_--size-medium--m_v29im_1","--size-large--m":"_--size-large--m_v29im_1","--size-xlarge--m":"_--size-xlarge--m_v29im_1","--size-medium--l":"_--size-medium--l_v29im_1","--size-large--l":"_--size-large--l_v29im_1","--size-xlarge--l":"_--size-xlarge--l_v29im_1","--size-medium--xl":"_--size-medium--xl_v29im_1","--size-large--xl":"_--size-large--xl_v29im_1","--size-xlarge--xl":"_--size-xlarge--xl_v29im_1"},to=e=>{const{slot:t,icon:n,size:o,affix:r,position:s}=e;if(!n&&!t&&!r)return null;const a=S($e.attachment,$e[`attachment--position-${s}`]),l=[t&&i.jsx("div",{className:$e.slot,children:t},"slot"),n&&i.jsx("div",{className:$e.icon,children:i.jsx(le,{size:Le(o,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),r&&i.jsx("div",{className:$e.affix,children:r},"affix")].filter(Boolean);return i.jsx("span",{className:a,children:s==="end"?l.reverse():l})},no=e=>{var M;const{onChange:t,onFocus:n,onBlur:o,name:r,value:s,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:_,endSlot:h,prefix:m,suffix:v,size:x="medium",variant:g="outline",className:w,attributes:y}=e,b=Ye(),C=Ne(e.id),I=(b==null?void 0:b.attributes.id)||((M=e.inputAttributes)==null?void 0:M.id)||C,$=(b==null?void 0:b.disabled)||e.disabled,P=(b==null?void 0:b.hasError)||e.hasError,z=p(p({},e.inputAttributes),b==null?void 0:b.attributes),T=S($e.root,w,x&&B($e,"--size",x),P&&$e["--status-error"],$&&$e["--disabled"],g&&$e[`--variant-${g}`]),Z=L=>{t&&t({name:r,value:L.target.value,event:L})};return i.jsxs("div",k(p({},y),{className:T,children:[i.jsx(to,{position:"start",icon:d,slot:_,size:x,affix:m}),i.jsx("input",k(p({},z),{className:$e.input,disabled:$,name:r,placeholder:l,value:s,defaultValue:a,onChange:Z,onFocus:n||(z==null?void 0:z.onFocus),onBlur:o||(z==null?void 0:z.onBlur),id:I})),i.jsx(to,{position:"end",icon:f,slot:h,size:x,affix:v})]}))},Br="Enter",Wr="Tab",oo="ArrowUp",ro="ArrowDown",so="ArrowRight",io="ArrowLeft",fn="data-rs-keyboard",Lt="data-rs-focus";class Hr{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,o=n&&this.get(n),r=this.generateId();return this.chain[r]={previousId:n,data:t},o&&(o.nextId=r),this.tailId=r,r}remove(t){var d,f;const n=this.chain[t];if(!n)return;const o=n.previousId,r=o&&this.get(o),s=n.nextId,a=s&&this.get(s);r&&(r.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),s||(this.tailId=o!=null?o:null);const l=this.get(t).data;return delete this.chain[t],l}removePreviousTill(t,n){const o=this.get(t),r=this.remove(t);return!o||!o.previousId||n(o)?r:this.removePreviousTill(o.previousId,n)}}const ao=()=>document.documentElement.hasAttribute(fn),lo='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',qt=()=>document.querySelector(`[${Lt}]`)||document.activeElement,co=(e,t)=>{const o=Array.from(e.querySelectorAll(lo)).filter(r=>!r.hasAttribute("disabled")&&r.clientHeight>0);return t&&o.length&&o.unshift(t),o},uo=e=>{const{root:t,extraElement:n,target:o,mode:r}=e,s=co(t,n),a=s.length-1,l=qt(),d=s.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let _=f[o];const h=_>a||_<0;return h&&(r==="action-menu"?_=o==="prev"?f.first:f.last:_=o==="prev"?f.last:f.first),{overflow:h,el:s[_]}},hn=(e,t)=>{var n;(n=document.querySelector(`[${Lt}]`))==null||n.removeAttribute(Lt),t==="selection-menu"?e.setAttribute(Lt,"true"):e.focus()},Ot=(e,t)=>{const n=uo({root:e,target:t});hn(n.el)},Rr=e=>Ot(e,"next"),Ur=e=>Ot(e,"prev"),Kr=e=>Ot(e,"first"),Yr=e=>Ot(e,"last"),Gr=(()=>{let e=[];const t=o=>{let r=o.parentNode&&o.parentNode.firstChild;for(;r;){const s=r!==o,a=r.nodeType===1&&!r.hasAttribute("aria-hidden");s&&a&&(r.setAttribute("aria-hidden","true"),e.push(r)),r=r.nextSibling}},n=()=>{e.forEach(o=>{o.removeAttribute("aria-hidden")}),e=[]};return o=>{let r=o;for(e.length&&n();r!==document.body;)t(r),r=r.parentElement;return{release:n}}})(),Vt=(()=>{let e=null,t=null;const n=new Hr;return(o,r={})=>{const{mode:s="dialog",onNavigateOutside:a,includeTrigger:l}=r,d=qt(),f=s==="dialog",_=s==="content-menu",h=s==="selection-menu",m=f||_,v=s==="action-menu"||h;let x;const g=(C={})=>{const{withoutFocusReturn:I}=C;n.removePreviousTill(x,P=>document.body.contains(P.data.trigger)),d&&d.focus({preventScroll:I||!ao()}),e&&(e(),t&&t.release(),e=null,t=null);const $=n.tailId&&n.get(n.tailId);$&&Vt($.data.root,$.data.options)},w=C=>{const I=C.key,$=I===Wr,P=$&&!C.shiftKey,z=$&&C.shiftKey,T=v&&I===oo,Z=v&&I===ro,M=z&&m||T,L=P&&m||Z,q=uo({root:o,target:M?"prev":"next",extraElement:l?d:void 0,mode:s});if($&&v||_&&$&&q.overflow){z&&qt()!==d&&C.preventDefault(),g(),a==null||a();return}!M&&!L||(C.preventDefault(),q.el&&hn(q.el,s))};e&&e(),f&&(t=Gr(o));const y=co(o,l?d:void 0);if(!y.length)return null;const b=n.tailId&&n.get(n.tailId);return(!b||o!==b.data.root)&&(x=n.add({root:o,trigger:d,options:r}),hn(y[0],s)),document.addEventListener("keydown",w),e=()=>document.removeEventListener("keydown",w),g}})(),Xr=100,Jr=150;let it={},Oe=null;const _o=e=>{it[e]&&(e===Oe&&(Oe=it[e].parentId),delete it[e],Oe===null&&(it={}))},Qr=(e,t,n)=>{var s;const o=Oe?it[Oe]:void 0;!((n==null?void 0:n.current)&&o&&((s=o.contentRef.current)==null?void 0:s.contains(n.current)))&&n&&Oe&&_o(Oe),it[e]={parentId:Oe,triggerRef:n,contentRef:t},Oe=e},mo=(e=!1,t,n)=>{const o=Ne(),r=c.useCallback(()=>Oe===o,[o]);return c.useEffect(()=>{e?Qr(o,t,n):_o(o)},[e,o,t,n]),r},de=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,at="+",Ee={},vn=[],fo=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),pn=e=>fo(e).split(at).sort().join(at),ho=e=>e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase(),Zr=e=>{const t=[],n=e.join(at),r=pn(n).split(at),s=(a,l)=>{l.forEach((d,f)=>{const _=a?`${a}+${d}`:d;t.push(_),s(_,l.slice(f+1))})};return s("",r),t},es=(e,t)=>{const n=Object.keys(e);n.length&&Zr(n).forEach(o=>{t(o)})},gn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(o=>{const r=e[n];r&&t(pn(o),r)})})};class ts{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{gn(t,(o,r)=>{r&&(this.hotkeyMap[o]||(this.hotkeyMap[o]={data:new Set,used:!1}),this.hotkeyMap[o].data.add({callback:r,ref:n}))})},this.unbindHotkeys=t=>{gn(t,(n,o)=>{var r,s;o&&((r=this.hotkeyMap[n])==null||r.data.forEach(a=>{a.callback===o&&this.hotkeyMap[n].data.delete(a)}),(s=this.hotkeyMap[n])!=null&&s.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{es(t,o=>{const r=this.hotkeyMap[o];!r||r.used||r!=null&&r.data.size&&r.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[o]),this.hotkeyMap[o].used=!0)})})},this.handleKeyUp=t=>{const n=pn(t.key);gn(this.hotkeyMap,(o,r)=>{o.split(at).includes(n)&&(r.used=!1)})}}}const Dt=new ts,vo=c.createContext({}),ns=e=>{const{children:t}=e,[n,o]=c.useState(0),[r,s]=c.useState(0),a=c.useCallback(m=>{if(m.repeat||r===0)return;const v=ho(m);Ee[v]=m,(v==="meta"||v==="control")&&(Ee.mod=m),o(Object.keys(Ee).length),v==="meta"&&vn.push(...Object.keys(Ee)),Ee.Meta&&vn.push(v)},[r]),l=c.useCallback(m=>{if(r===0)return;const v=ho(m);delete Ee[v],(v==="meta"||v==="control")&&delete Ee.mod,v==="meta"&&vn.forEach(x=>{delete Ee[x]}),o(Object.keys(Ee).length)},[r]),d=m=>!fo(m).split(at).some(x=>!Ee[x]),f=c.useCallback((m,v)=>(s(x=>x+1),Dt.bindHotkeys(m,v),()=>{s(x=>x-1),Dt.unbindHotkeys(m)}),[]),_=c.useCallback(m=>{a(m),Dt.handleKeyDown(Ee,m)},[a]),h=c.useCallback(m=>{l(m),Dt.handleKeyUp(m)},[l]);return c.useEffect(()=>(window.addEventListener("keydown",_),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",h)}),[_,h]),i.jsx(vo.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},os=()=>c.useContext(vo),nt=(e,t=[],n)=>{const{addHotkeys:o,isPressed:r}=os(),s=c.useRef(null),a=(n==null?void 0:n.ref)||s;return c.useEffect(()=>{const l=o(e,a);return()=>l==null?void 0:l()},[o,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:r}},bn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),rs=e=>{const t=c.useState(e||!1),[n,o]=t;return de(()=>{const r=new MutationObserver(s=>{s.forEach(a=>{if(a.attributeName!=="dir")return;const l=a.target.dir==="rtl";n!==l&&o(l)})});return r.observe(document.documentElement,{attributes:!0}),()=>r.disconnect()},[n]),de(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(bn).rtl,po=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),xn=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),ss=()=>{const{mode:e}=c.useContext(xn);return e},go=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(po),{mode:o,setMode:r,invertMode:s}=c.useContext(xn);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||o,setColorMode:r,invertColorMode:s}),[e,o,r,s,t,n])},is={root:"_root_r30zs_1"},lt=e=>{const{name:t,defaultName:n,colorMode:o,children:r,className:s}=e,[a,l]=c.useState(n),d=ss(),f=go(),_=!f.theme,h=t||a||f.theme,m=_?d:f.colorMode,x=o==="inverted"?m==="light"?"dark":"light":o||m,g=S(is.root,s),w=y=>{l(y)};return de(()=>{if(!(!document||!_))return document.documentElement.setAttribute("data-rs-theme",h),document.documentElement.setAttribute("data-rs-color-mode",x),()=>{document.documentElement.removeAttribute("data-rs-theme"),document.documentElement.removeAttribute("data-rs-color-mode")}},[h,x,_]),i.jsx(po.Provider,{value:{theme:h,colorMode:x,setTheme:w},children:i.jsx("div",{className:g,"data-rs-theme":_?void 0:h,"data-rs-color-mode":_?void 0:x,children:r})})},as=e=>{const{defaultMode:t,children:n}=e,[o,r]=c.useState(t||"light"),s=c.useCallback(l=>{r(d=>(d!==l&&Ir(),l))},[]);de(()=>{kt(()=>{Mr()})},[o]);const a=c.useMemo(()=>({mode:o,setMode:s,invertMode:()=>{s(o==="light"?"dark":"light")}}),[o,s]);return i.jsx(xn.Provider,{value:a,children:n})},bo=c.createContext({scopeRef:void 0}),xo=()=>c.useContext(bo),yo=e=>{var s;const{children:t,scopeRef:n}=e,o=xo(),r=n||o.scopeRef;return _e.createPortal(i.jsx(bo.Provider,{value:{scopeRef:r},children:i.jsx(lt,{children:t})}),((s=o.scopeRef)==null?void 0:s.current)||document.body)},wo=16,Bt=["top-start","top","top-end"],Wt=["bottom-start","bottom","bottom-end"],Ht=["start","start-bottom","start-top"],Rt=["end","end-bottom","end-top"],ls={top:[...Bt,...Wt,...Rt,...Ht],bottom:[...Wt,...Bt,...Rt,...Ht],start:[...Ht,...Rt,...Bt,...Wt],end:[...Rt,...Ht,...Bt,...Wt]},cs=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,jo=(e,t)=>Math.floor(e/2-t/2),ds=e=>{const n=["top","bottom","start","end"].find(o=>e.startsWith(o))||"bottom";return ls[n]},yn=e=>{const t=document.documentElement,n=t.scrollLeft,o=n+t.clientWidth,r=t.scrollTop,s=r+t.clientHeight;return e.left>=n&&e.left+e.width<=o&&e.top>=r&&e.top+e.height<=s},Co=(e,t,n)=>{const{position:o,rtl:r,width:s,isInsidePortal:a}=n;let l=0,d=0,f=o;switch(r&&(f=cs(f)),(s==="full"||s==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=jo(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=jo(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+(a?0:window.pageYOffset||0)),l=Math.round(l+(a?0:window.pageXOffset||0));let _=Math.ceil(t.width);const h=Math.ceil(t.height);return s==="full"?(l=wo,_=window.innerWidth-wo*2):s==="trigger"&&(_=e.width),{styles:{left:l,top:d,width:_,height:h},position:f}},ko={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},wn={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},us=(e,t,n)=>{const{position:o,forcePosition:r,width:s}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(wn).forEach(_=>{const h=wn[_];a.style[_]=h.toString()}),s&&(s==="trigger"?a.style.width=`${l.width}px`:s!=="full"&&(a.style.width=s)),document.body.appendChild(a);const d=a.getBoundingClientRect();let f=Co(l,d,n);if(!yn(f.styles)&&!r){const _=ds(o),h=_.filter(v=>v==="top"||v==="bottom"),m=(v,x={})=>{const{fullWidth:g}=x;v.some(w=>{const y=k(p({},n),{width:g?"full":n.width,position:w}),b=Co(l,d,y);return yn(b.styles)?(f=b,!0):!1})};m(_),yn(f.styles)||m(h,{fullWidth:!0})}return a.parentNode.removeChild(a),f},_s=(e,t)=>{switch(t.type){case"render":return k(p({},e),{status:"rendered"});case"position":return k(p({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:p(p({},ko),t.payload.styles)});case"show":return k(p({},e),{status:"visible"});case"hide":return k(p({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return k(p({},e),{status:"idle",styles:wn});default:throw new Error("Invalid reducer type")}},ms=(e,t,n)=>{const{position:o="bottom",forcePosition:r,width:s}=n,{scopeRef:a}=xo(),l=!!(a!=null&&a.current),[d]=Ge(),[f,_]=c.useReducer(_s,{position:o,styles:ko,status:"idle"}),h=c.useCallback(()=>{_({type:"render"})},[]),m=c.useCallback(()=>{_({type:"show"})},[]),v=c.useCallback(()=>{_({type:"hide"})},[]),x=c.useCallback(()=>{_({type:"remove"})},[]),g=c.useCallback(()=>{if(!e.current||!t.current)return;const w=us(e.current,t.current,{width:s,position:o,forcePosition:r,rtl:d,isInsidePortal:l});_({type:"position",payload:w})},[e,t,o,d,r,s,l]);return c.useEffect(()=>{f.status==="rendered"&&g(),f.status==="positioned"&&kt(()=>m())},[f.status,g,m]),c.useMemo(()=>({position:f.position,styles:f.styles,status:f.status,updatePosition:g,render:h,hide:v,remove:x}),[h,g,v,x,f.position,f.styles,f.status])},fs=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=o=>{let r=!1;e.forEach(s=>{(!s.current||s.current===o.target||s.current.contains(o.target))&&(r=!0)}),!r&&t(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},No=c.createContext({}),Ut=()=>c.useContext(No),hs=No.Provider,$o=e=>{const{triggerType:t="click",onOpen:n,onClose:o,children:r,forcePosition:s,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:_,contentAttributes:h,position:m,active:v,id:x,instanceRef:g}=e,[w]=Ge(),y=c.useRef(null),b=c.useRef(null),C=Ne(x),I=c.useRef(),$=c.useRef(null),P=c.useRef(!1),z=c.useRef(!1),T=c.useRef(!0),Z=ms(y,b,{width:l,position:m,defaultActive:v,forcePosition:s}),M=Ut(),{status:L,updatePosition:q,render:D,hide:A,remove:J}=Z,ye=mo(t!=="hover"&&L!=="idle",b,y),fe=c.useCallback(()=>{I.current&&clearTimeout(I.current)},[I]),re=c.useCallback(()=>{!P.current&&L==="idle"&&(n==null||n())},[L]),Q=c.useCallback(Y=>{var Me;!(t==="click"&&!ye())&&L!=="idle"&&(o==null||o(),Y!=null&&Y.closeParents&&((Me=M==null?void 0:M.handleClose)==null||Me.call(M)))},[L,ye,t]),He=c.useCallback(Y=>{var he;(he=b.current)!=null&&he.contains(Y.relatedTarget)||t==="hover"&&a==="content-menu"||z.current||Q()},[Q,t,a]),je=c.useCallback(()=>{re()},[re]),se=c.useCallback(()=>{fe(),I.current=setTimeout(re,Xr)},[fe,I,re]),W=c.useCallback(()=>{fe(),I.current=setTimeout(()=>Q(),Jr)},[fe,I,Q]),U=c.useCallback(()=>{L==="idle"?re():Q()},[L,re,Q]),K=()=>z.current=!0,ie=()=>z.current=!1;de(()=>{if(v){D();return}Sr()&&!d?A():J()},[v,D,A,d]);const we=c.useCallback(Y=>{b.current!==Y.currentTarget||Y.propertyName!=="transform"||L==="hidden"&&J()},[J,L]);return de(()=>{L!=="visible"||!b.current||($.current=Vt(b.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{$.current=null,Q()}}))},[L,t,Q,a]),c.useEffect(()=>{!d&&L!=="hidden"||d&&L!=="idle"||$.current&&(t==="hover"&&(P.current=!0,setTimeout(()=>{P.current=!1},100)),$.current({withoutFocusReturn:!T.current}),$.current=null,T.current=!0)},[L,t,d]),c.useEffect(()=>()=>{$.current&&$.current(),$.current=null},[]),c.useEffect(()=>{const Y=Wn(q,10);return window.addEventListener("resize",Y),()=>window.removeEventListener("resize",Y)},[q]),c.useEffect(()=>{q()},[w,q]),c.useImperativeHandle(g,()=>({open:re,close:Q}),[re,Q]),nt({Escape:()=>Q()},[Q]),fs([b,y],()=>{T.current=!1,Q()}),i.jsx(hs,{value:{id:C,flyout:Z,triggerElRef:y,flyoutElRef:b,handleClose:Q,handleOpen:re,handleFocus:je,handleBlur:He,handleMouseEnter:se,handleMouseLeave:W,handleTransitionEnd:we,handleClick:U,handleContentMouseDown:K,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:_,contentAttributes:h},children:r})},vs=e=>{const{defaultActive:t,onClose:n,onOpen:o}=e,[r,s]=c.useState(t||!1),a=()=>{s(!1),n&&n()},l=()=>{s(!0),o&&o()};return i.jsx($o,k(p({},e),{defaultActive:void 0,active:r,onClose:a,onOpen:l}))},ps=e=>{const{children:t}=e,{id:n,triggerElRef:o,triggerType:r,flyout:s,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:_,handleOpen:h,trapFocusMode:m}=Ut();nt({[`${oo},${ro}`]:()=>{s.status==="idle"&&h()}},[h,s.status],{ref:o});let v={onBlur:l,ref:o};return r==="click"&&(v.onClick=_),r==="hover"&&(v.onMouseEnter=d,v.onMouseLeave=f),(r==="hover"&&m!=="action-menu"||r==="focus")&&(v.onFocus=a,v["aria-describedby"]=n),(r==="click"||r==="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)})},$t={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"},gs=e=>{const{children:t,className:n,attributes:o}=e,{flyout:r,id:s,flyoutElRef:a,handleTransitionEnd:l,triggerType:d,handleMouseEnter:f,handleMouseLeave:_,handleContentMouseDown:h,handleContentMouseUp:m,contentGap:v,contentClassName:x,contentAttributes:g,trapFocusMode:w}=Ut(),{styles:y,status:b,position:C}=r,[I,$]=c.useState(!1);if(de(()=>{$(!0)},[]),b==="idle"||!I)return null;const P=S($t.content,b==="visible"&&$t["--visible"],["visible","hidden"].includes(b)&&$t["--animated"],C&&$t[`--position-${C}`]),z=S($t.inner,n,x);let T;d==="hover"?T="tooltip":w==="dialog"?T="dialog":w==="selection-menu"?T="listbox":w==="action-menu"&&(T="menu");const Z=i.jsx("div",{className:P,style:k(p({},y),{"--rs-flyout-gap":v}),ref:a,onTransitionEnd:l,onMouseEnter:d==="hover"?f:void 0,onMouseLeave:d==="hover"?_:void 0,onMouseDown:h,onTouchStart:h,onMouseUp:m,onTouchEnd:m,children:i.jsx("div",k(p({role:T},o),{id:s,"aria-modal":d==="click",style:g==null?void 0:g.style,className:z,children:t}))});return i.jsx(yo,{children:Z})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx($o,p({},e)):i.jsx(vs,p({},e))};Xe.Trigger=ps,Xe.Content=gs;const jn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},bs={root:"_root_e7w6q_1"},Cn=e=>{if(!e)return null;const t=oe("--rs-p",e);return{classNames:bs.root,variables:t}},ct=e=>{var C;const{id:t,forcePosition:n,onOpen:o,onClose:r,active:s,defaultActive:a,children:l,width:d,contentGap:f,variant:_="elevated",triggerType:h="click",position:m="bottom",disableHideAnimation:v,instanceRef:x}=e,g=(C=e.padding)!=null?C:_==="headless"?0:4,w=e.trapFocusMode||(h==="hover"?"content-menu":void 0),y=Cn(g),b=S(jn.content,!!d&&jn["content--has-width"],_&&jn[`content--variant-${_}`],y==null?void 0:y.classNames);return i.jsx(Xe,{id:t,instanceRef:x,position:m,forcePosition:n,onOpen:o,onClose:r,trapFocusMode:w,triggerType:h,active:s,defaultActive:a,width:d,disableHideAnimation:v,contentGap:f,contentClassName:b,contentAttributes:{style:p({},y==null?void 0:y.variables)},children:l})};ct.Trigger=Xe.Trigger,ct.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"},xs=e=>{const{children:t,className:n,attributes:o}=e,r=S(Be.aligner,n);return i.jsx("div",k(p({},o),{className:r,children:t}))},ys=(e,t)=>{const{icon:n,startSlot:o,endSlot:r,children:s,color:a="primary",selected:l,disabled:d,onClick:f,href:_,size:h="medium",roundedCorners:m,className:v,attributes:x}=e,g=S(Be.root,v,B(Be,"--size",h),B(Be,"--rounded-corners",m),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),w=Le(h,b=>b==="large"?3:2),y=Le(h,b=>b==="large"?5:4);return i.jsx(qe,{disabled:d,className:g,attributes:x,onClick:f,href:_,ref:t,children:i.jsxs(R,{direction:"row",gap:w,align:"center",children:[n&&i.jsx(le,{svg:n,className:Be.icon,size:y}),!n&&o,s&&i.jsx(R.Item,{grow:!0,className:Be.content,children:s}),r]})})},kn=c.forwardRef(ys);kn.Aligner=xs;const Kt=()=>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"})}),Yt={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},Nn=c.createContext(null),xe=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:o="click",trapFocusMode:r="action-menu"}=a,s=Ae(a,["children","position","triggerType","trapFocusMode"]);return i.jsx(ct,k(p({},s),{position:n,padding:0,trapFocusMode:r,triggerType:o,children:t}))},ws=e=>{const{children:t,attributes:n,className:o}=e,r=c.useContext(Nn),[s]=Ge(),{ref:a}=nt({[s?so:io]:()=>{var d;(d=r==null?void 0:r.current)==null||d.close()},[Br]:()=>{const d=qt();d==null||d.click()}},[r==null?void 0:r.current]),l=S(Yt.menu,o);return i.jsx(ct.Content,{className:l,attributes:k(p({},n),{ref:a}),children:t})},js=e=>{const{children:t}=e;return i.jsx("div",{className:Yt.section,role:"group",children:t})},Eo=e=>{const{onClick:t}=e,{handleClose:n}=Ut(),o=r=>{n&&n({closeParents:!0}),t&&t(r)};return i.jsx(kn,k(p({},e),{roundedCorners:!0,className:Yt.item,attributes:p({role:"menuitem"},e.attributes),onClick:o}))},Cs=e=>{const{children:t}=e,n=c.useRef();return i.jsx(Nn.Provider,{value:n,children:i.jsx(xe,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},ks=e=>{const l=e,{children:t,attributes:n}=l,o=Ae(l,["children","attributes"]),r=c.useContext(Nn),[s]=Ge(),{ref:a}=nt({[s?io:so]:()=>{var d;(d=r==null?void 0:r.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return i.jsx(Eo,k(p({},o),{attributes:k(p({},n),{ref:a}),endSlot:i.jsx(le,{autoWidth:!0,svg:Kt,className:Yt.arrow}),children:t}))},Ns=e=>{const{children:t}=e;return i.jsx(xe.Trigger,{children:n=>i.jsx(ks,{attributes:n,children:t})})};xe.Trigger=ct.Trigger,xe.Content=ws,xe.Section=js,xe.Item=Eo,xe.SubMenu=Cs,xe.SubTrigger=Ns;const zo=c.createContext({}),To=e=>{const w=e,{children:t,onChange:n,onItemSelect:o,name:r}=w,s=Ae(w,["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=y=>{n==null||n(y),f(!1),h()},x=y=>{n==null||n({value:y.value,name:r}),o==null||o({value:y.value}),f(!0)},g=y=>{var b;requestAnimationFrame(()=>{d&&(l(!1),f(!1))}),(b=s.onFocus)==null||b.call(s,y)};return i.jsx(zo.Provider,{value:{onItemClick:x},children:i.jsxs(xe,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!d&&_&&a,onClose:m,onOpen:h,disableHideAnimation:!0,children:[i.jsx(xe.Trigger,{children:C=>{var I=C,{ref:y}=I,b=Ae(I,["ref"]);return i.jsx(no,k(p({},s),{name:r,onChange:v,attributes:k(p({},s.attributes),{ref:y}),inputAttributes:k(p({},b),{onFocus:$=>{var P;(P=b.onFocus)==null||P.call(b),g($)},role:"combobox"})}))}}),i.jsx(xe.Content,{children:t})]})})},$s=e=>{const a=e,{value:t,onClick:n}=a,o=Ae(a,["value","onClick"]),{onItemClick:r}=c.useContext(zo),s=l=>{n==null||n(l),r({value:t})};return i.jsx(xe.Item,k(p({},o),{attributes:k(p({},o.attributes),{role:"option"}),onClick:s}))};To.Item=$s;const Gt={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"},Es=e=>{const{color:t="neutral",variant:n,src:o,size:r=12,squared:s,initials:a,icon:l,alt:d,className:f,attributes:_}=e,h=s?Le(r,g=>g>=24?"large":g>=12?"medium":"small"):"circular",m=wt(r),v=S(Gt.root,f,m==null?void 0:m.classNames,t&&Gt[`--color-${t}`],n&&Gt[`--variant-${n}`]),x=()=>o?i.jsx("img",{role:a?void 0:"presentation",src:o,alt:d,className:Gt.img}):l?i.jsx(le,{svg:l,size:Le(r,g=>Math.ceil(g*.4))}):a;return i.jsx(R,{borderRadius:h,attributes:k(p({},_),{style:p({},m==null?void 0:m.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:v,children:x()})},Io=()=>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"})]}),ze={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"},zs=e=>{const{children:t,position:n="top-end",overlap:o,className:r,attributes:s}=e,a=S(ze.container,r,o&&ze["--container-overlap"],n&&ze[`--container-position-${n}`]);return i.jsx("div",k(p({},s),{className:a,children:t}))},Mo=e=>{const{children:t,color:n,rounded:o,size:r="medium",icon:s,endIcon:a,variant:l,hidden:d,href:f,onClick:_,onDismiss:h,dismissAriaLabel:m,className:v,attributes:x}=e,g=!!(_||f),w=r==="large"?4:3.5,y=S(ze.root,v,o&&ze["--rounded"],d&&ze["--hidden"],r&&ze[`--size-${r}`],n&&ze[`--color-${n}`],l&&ze[`--variant-${l}`],g&&ze["--actionable"]);return i.jsxs(qe,{onClick:_,href:f,className:y,attributes:x,children:[s&&i.jsx(le,{svg:s,autoWidth:!0,size:w}),t&&i.jsx(ee,{variant:r==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&i.jsx(le,{svg:a,autoWidth:!0,size:w}),h&&i.jsx(qe,{onClick:h,className:ze.dismiss,as:"span",attributes:{"aria-label":m},children:i.jsx(le,{svg:Io,size:w})})]})};Mo.Container=zs;const Xt={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"},So=e=>{const{size:t="small",color:n="primary",className:o,attributes:r}=e,s=r==null?void 0:r["aria-label"],a=S(Xt.root,o,B(Xt,"--size",t),n&&Xt[`--color-${n}`]);return i.jsx("span",k(p({},r),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:a,children:i.jsx("span",{className:Xt.inner})}))},ce={root:"_root_sd1b0_1",loader:"_loader_sd1b0_34",icon:"_icon_sd1b0_42","--icon-position-end":"_--icon-position-end_sd1b0_46",text:"_text_sd1b0_57","--loading":"_--loading_sd1b0_63","--elevated":"_--elevated_sd1b0_80","--icon-only":"_--icon-only_sd1b0_84","--rounded":"_--rounded_sd1b0_90","--size-small":"_--size-small_sd1b0_1","--size-medium":"_--size-medium_sd1b0_1","--size-large":"_--size-large_sd1b0_1","--size-xlarge":"_--size-xlarge_sd1b0_1","--full-width":"_--full-width_sd1b0_140","--variant-solid":"_--variant-solid_sd1b0_154","--color-black":"_--color-black_sd1b0_154","--color-white":"_--color-white_sd1b0_155","--variant-faded":"_--variant-faded_sd1b0_156","--color-neutral":"_--color-neutral_sd1b0_156","--color-primary":"_--color-primary_sd1b0_157","--color-critical":"_--color-critical_sd1b0_158","--color-positive":"_--color-positive_sd1b0_159","--color-inherit":"_--color-inherit_sd1b0_160","--variant-outline":"_--variant-outline_sd1b0_161","--variant-ghost":"_--variant-ghost_sd1b0_162","--highlighted":"_--highlighted_sd1b0_179","--disabled":"_--disabled_sd1b0_530",aligner:"_aligner_sd1b0_563","--aligner-position-all":"_--aligner-position-all_sd1b0_567","--aligner-position-start":"_--aligner-position-start_sd1b0_571","--aligner-position-end":"_--aligner-position-end_sd1b0_575","--aligner-position-top":"_--aligner-position-top_sd1b0_579","--aligner-position-bottom":"_--aligner-position-bottom_sd1b0_583","--size-small--m":"_--size-small--m_sd1b0_1","--size-medium--m":"_--size-medium--m_sd1b0_1","--size-large--m":"_--size-large--m_sd1b0_1","--size-xlarge--m":"_--size-xlarge--m_sd1b0_1","--full-width-true--m":"_--full-width-true--m_sd1b0_1","--full-width-false--m":"_--full-width-false--m_sd1b0_1","--size-small--l":"_--size-small--l_sd1b0_1","--size-medium--l":"_--size-medium--l_sd1b0_1","--size-large--l":"_--size-large--l_sd1b0_1","--size-xlarge--l":"_--size-xlarge--l_sd1b0_1","--full-width-true--l":"_--full-width-true--l_sd1b0_1","--full-width-false--l":"_--full-width-false--l_sd1b0_1","--size-small--xl":"_--size-small--xl_sd1b0_1","--size-medium--xl":"_--size-medium--xl_sd1b0_1","--size-large--xl":"_--size-large--xl_sd1b0_1","--size-xlarge--xl":"_--size-xlarge--xl_sd1b0_1","--full-width-true--xl":"_--full-width-true--xl_sd1b0_1","--full-width-false--xl":"_--full-width-false--xl_sd1b0_1"},Ts=e=>{const{children:t,position:n,className:o,attributes:r}=e,s=typeof n=="string"?[n]:n,a=s?s.map(d=>ce[`--aligner-position-${d}`]):[ce["--aligner-position-all"]],l=S(ce.aligner,o,...a);return i.jsx("div",k(p({},r),{className:l,children:t}))},Is=(e,t)=>{const{variant:n="solid",color:o="neutral",elevated:r,highlighted:s,fullWidth:a,loading:l,disabled:d,type:f,href:_,size:h="medium",className:m,children:v,rounded:x,attributes:g,onClick:w,icon:y,endIcon:b}=e,C=(y||b)&&!v,I=S(ce.root,m,o&&ce[`--color-${o}`],n&&ce[`--variant-${n}`],B(ce,"--size",h),B(ce,"--full-width",a),r&&n!=="ghost"&&ce["--elevated"],x&&ce["--rounded"],d&&ce["--disabled"],l&&ce["--loading"],s&&ce["--highlighted"],C&&ce["--icon-only"]),$=P=>{if(!(P==="start"&&y||P==="end"&&b))return null;const M=S(ce.icon,P==="end"&&ce["--icon-position-end"]),L=Le(h,q=>q==="large"?5:q==="xlarge"?6:4);return i.jsx(le,{className:M,svg:P==="start"?y:b,size:L,autoWidth:!0})};return i.jsxs(qe,{disabled:d||l,className:I,attributes:g,type:f,onClick:w,href:_,ref:t,children:[l&&i.jsx("div",{className:ce.loader,children:i.jsx(So,{size:"small",color:"inherit"})}),$("start"),v&&i.jsx("span",{className:ce.text,children:v}),$("end")]})},Te=c.forwardRef(Is);Te.Aligner=Ts;const Et={root:"_root_def7r_1","--color-primary":"_--color-primary_def7r_6","--color-critical":"_--color-critical_def7r_10","--color-positive":"_--color-positive_def7r_14","--color-inherit":"_--color-inherit_def7r_18","--variant-plain":"_--variant-plain_def7r_22","--disabled":"_--disabled_def7r_26","--variant-underline":"_--variant-underline_def7r_32","--with-icon":"_--with-icon_def7r_48"},Ms=(e,t)=>{const{icon:n,disabled:o,href:r,color:s="primary",variant:a="underline",className:l,children:d,attributes:f,type:_,onClick:h}=e,m=S(Et.root,l,o&&Et["--disabled"],a&&Et[`--variant-${a}`],s&&Et[`--color-${s}`],n&&Et["--with-icon"]);return i.jsxs(qe,{href:r,disabled:o,className:m,attributes:f,type:_,onClick:h,ref:t,children:[n&&i.jsx(le,{svg:n}),d]})},Po=c.forwardRef(Ms),Ss=()=>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"})]}),Ps=e=>{const{children:t,onClick:n,href:o,icon:r,disabled:s}=e;return!o&&!n&&!s?i.jsx(ee,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(Po,{onClick:n,href:o,icon:r,disabled:s,variant:"plain",color:"inherit",children:t})},Fo=e=>{const{children:t,separator:n,color:o,defaultVisibleItems:r,ariaLabel:s,className:a,attributes:l}=e,d=r&&r>=2?r:null,[f,_]=c.useState(!1),h=S(a),m=c.Children.count(t);let v=0;const x=()=>{_(!0)};return i.jsx("nav",k(p({},l),{"aria-label":s||(l==null?void 0:l["aria-label"]),className:h,children:i.jsx(R,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(g,w)=>{if(!g)return null;const y=m-(d||0),b=v===0,C=v>y,I=!d||b||C||f,$=v===y;v+=1;let P=null;return I?P=g:$&&(P=i.jsx(Te.Aligner,{children:i.jsx(Te,{variant:"ghost",size:"small",icon:Ss,onClick:x})})),P===null?null:i.jsxs(R,{as:"li",gap:2,direction:"row",align:"center",children:[w>0&&(I||$)&&i.jsx(ee,{color:"neutral-faded",children:n||i.jsx(le,{svg:Kt,size:3})}),i.jsx(ee,{variant:"body-3",color:o==="primary"?"primary":"neutral-faded",children:P})]},w)})})}))};Fo.Item=Ps;const dt={root:"_root_10bg5_1",content:"_content_10bg5_11","--selected":"_--selected_10bg5_16","--elevated":"_--elevated_10bg5_21","--actionable":"_--actionable_10bg5_26"},Fs=(e,t)=>{const{padding:n=4}=e,{selected:o,elevated:r,bleed:s,height:a,onClick:l,href:d,children:f,className:_,attributes:h,as:m="div"}=e,v=!!d||!!l,x=ln("medium"),g=Gn(s),w=Cn(n),y=wt(a),b=S(dt.root,x==null?void 0:x.classNames,g==null?void 0:g.classNames,w==null?void 0:w.classNames,y==null?void 0:y.classNames,v&&dt["--actionable"],r&&dt["--elevated"],o&&dt["--selected"],_),C=p(p(p(p({},h==null?void 0:h.style),g==null?void 0:g.variables),w==null?void 0:w.variables),y==null?void 0:y.variables);return v?i.jsx(qe,{className:b,attributes:k(p({},h),{style:C}),href:d,as:m,onClick:l,ref:t,children:i.jsx("span",{className:dt.content,children:f})}):i.jsx(m,k(p({},h),{onClick:l,href:d,ref:t,className:b,style:C,children:i.jsx("span",{className:dt.content,children:f})}))},As=c.forwardRef(Fs),Ao=()=>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 ut=(e=>(e.back="back",e.forward="forward",e))(ut||{});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"},Lo=e=>{const{type:t,scrollElRef:n,scrollPosition:o,onClick:r,isRTL:s,mounted:a}=e,[l,d]=c.useState(!1),[f,_]=c.useState(!1),h=t===ut.forward,m=t===(s?ut.back:ut.forward),v=S(We.control,m?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return de(()=>{const x=n.current;if(!x||!a)return;let g;const w=Math.abs(o),y=w<=0,b=w+x.clientWidth>=x.scrollWidth-1;return(h?b:y)?(d(!1),g=setTimeout(()=>_(!1),1500)):(_(!0),d(!0)),()=>{g&&clearTimeout(g)}},[o,n.current,a]),i.jsx("div",{className:v,"aria-hidden":"true",children:i.jsx(Te,{onClick:r,icon:m?Kt:Ao,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},Ls=e=>{const{children:t,gap:n=3,visibleItems:o,bleed:r,navigationDisplay:s,instanceRef:a,className:l,attributes:d}=e,[f,_]=c.useState(!1),[h,m]=c.useState(0),[v]=Ge(),x=c.useRef(null),g={};typeof r=="object"&&Object.entries(r).forEach(([z,T])=>{g[z]=typeof T=="number"&&T>0});const w=S(We.root,l,...B(We,"--bleed",typeof r=="number"?!0:g)),y=mr(z=>{const T=z.target;m(T.scrollLeft)},16),b=()=>{const T=getComputedStyle(x.current).gap.split(" ")[0];return Number(T.replace("px",""))},C=()=>{const z=x.current;z.scrollBy({left:z.clientWidth+b(),top:0,behavior:"smooth"})},I=()=>{const z=x.current;z.scrollBy({left:-z.clientWidth-b(),top:0,behavior:"smooth"})},$=v?C:I,P=v?I:C;return c.useImperativeHandle(a,()=>({navigateBack:$,navigateForward:P})),de(()=>{_(!0)},[]),i.jsxs("section",k(p({},d),{className:w,style:p(p({},oe("--rs-carousel-items",o)),oe("--rs-carousel-bleed",r)),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(Lo,{isRTL:v,type:ut.back,scrollElRef:x,scrollPosition:h,onClick:$,mounted:f}),i.jsx(Lo,{isRTL:v,type:ut.forward,scrollElRef:x,scrollPosition:h,onClick:P,mounted:f})]}),i.jsx(R,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:x,onScroll:y},children:c.Children.map(t,z=>i.jsx(R.Item,{className:We.item,as:"li",children:z}))})]}))},qs={root:"_root_1feer_1"},$n=e=>{const{name:t,value:n,type:o,onChange:r,onFocus:s,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:_,attributes:h}=e,m=S(qs.root,_);return i.jsx("input",k(p({},h),{className:m,type:o,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:r,onFocus:s||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},qo=c.createContext(null),Os=()=>c.useContext(qo),Oo=e=>{const{onChange:t,name:n,disabled:o,value:r,children:s,hasError:a}=e,l=d=>{const{event:f,value:_,checked:h}=d;if(!_)return;let m=[...r];h?m.push(_):m=m.filter(v=>v!==_),t&&t({name:n,value:m,event:f})};return i.jsx(qo.Provider,{value:{onChange:l,disabled:o,value:r,name:n,hasError:a},children:s})},Vs=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t||[]),s=a=>{a.value&&(r(a.value),n&&n(a))};return i.jsx(Oo,k(p({},e),{value:o,defaultValue:void 0,onChange:s}))},Ds=e=>{const{value:t}=e;return t!==void 0?i.jsx(Oo,p({},e)):i.jsx(Vs,p({},e))},Bs=()=>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_mh3xy_1",decorator:"_decorator_mh3xy_11",field:"_field_mh3xy_15",icon:"_icon_mh3xy_29",input:"_input_mh3xy_39","--error":"_--error_mh3xy_45","--disabled":"_--disabled_mh3xy_83"},Ws=e=>{var $;const{children:t,value:n,onChange:o,onFocus:r,onBlur:s,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,_=Os(),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),x=_?($=_.value)==null?void 0:$.includes(n):e.checked,g=_?void 0:e.defaultChecked,w=_?_.name:e.name,y=c.useRef(null),b=t?"label":"span",C=S(Je.root,l,m&&Je["--error"],v&&Je["--disabled"]),I=P=>{if(!w)return;const{checked:z}=P.target,T={name:w,value:n,checked:z,event:P};o&&o(T),_!=null&&_.onChange&&_.onChange(T)};return de(()=>{y.current.indeterminate=a||!1},[a]),i.jsxs(b,k(p({},d),{className:C,children:[i.jsxs("span",{className:Je.field,children:[i.jsx($n,{className:Je.input,type:"checkbox",checked:x,defaultChecked:g,name:w,disabled:v,value:n,onChange:I,onFocus:r,onBlur:s,attributes:k(p({},f),{ref:y})}),i.jsx("div",{className:Je.decorator,children:i.jsx(le,{svg:Bs,className:Je.icon})})]}),t&&i.jsx("span",{className:Je.text,children:t})]}))},Hs={root:"_root_1c40o_1"},Rs=e=>{const{children:t,padding:n=4,width:o,className:r,attributes:s}=e,a=S(Hs.root,r);return i.jsx(R,{attributes:s,className:a,paddingInline:n,width:o,maxWidth:"100%",children:t})},zt={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"},Us=e=>{const{children:t,align:n,onClose:o,hideCloseButton:r,variant:s,closeAriaLabel:a,className:l,attributes:d}=e,f=S(zt.root,l,s&&zt[`--variant-${s}`],n&&zt[`--align-${n}`],r&&zt["--hide-close"]),_=s==="media"?"div":Te.Aligner;return i.jsxs("div",k(p({},d),{className:f,children:[t,!r&&i.jsx(_,{className:zt.close,children:i.jsx(Te,k(p({size:"small"},s==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:o,attributes:{"aria-label":o?a:void 0},icon:Io}))})]}))},Ks={root:"_root_r7flr_1"},Ys=e=>{const{children:t}=e;return i.jsx("div",{className:Ks.root,children:t})},Vo={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},Gs=e=>{const{children:t,active:n,className:o,attributes:r}=e,s=S(Vo.root,n&&Vo["--active"],o);return i.jsx(ee,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:r,children:t})},Jt={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},Xs=e=>{const{src:t,alt:n,width:o,height:r,onLoad:s,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:_,attributes:h,imageAttributes:m}=e,[v,x]=c.useState("loading"),g=ln(f),w=Xn(o),y=wt(r),b=S(Jt.root,g==null?void 0:g.classNames,w==null?void 0:w.classNames,y==null?void 0:y.classNames,d&&Jt[`--display-mode-${d}`],_),C=S(Jt.image,b),I=S(Jt.fallback,b),$=p(p({},w==null?void 0:w.variables),y==null?void 0:y.variables),P=T=>{x("success"),s==null||s(T)},z=T=>{x("error"),a==null||a(T)};return c.useEffect(()=>{x("loading")},[t]),(v==="error"||!t)&&l?typeof l=="string"?i.jsx("img",k(p({},h),{src:l,alt:n,role:n?void 0:"presentation",className:I,style:$})):i.jsx("div",k(p({},h),{className:I,style:$,children:l})):i.jsx("img",k(p(p({},h),m),{src:t,alt:n,role:n?void 0:"presentation",onLoad:P,onError:z,className:C,style:$}))},En=e=>{const[t,n]=c.useState(e||!1),o=c.useCallback(()=>{n(!0)},[]),r=c.useCallback(()=>{n(!1)},[]),s=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:o,deactivate:r,toggle:s}},Js=(()=>{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}})(),Do=()=>{const[e,t]=c.useState(!1),n=c.useRef(),o=c.useRef(!1),r=c.useCallback(()=>{const{body:a}=document,l=a.getBoundingClientRect();if(o.current=l.left+l.right<window.innerWidth,n.current=a.style.overflow,a.style.overflow="hidden",o.current){const d=Js();document.body.style.paddingRight=`${d}px`}t(!0)},[t,o,n]),s=c.useCallback(()=>{document.body.style.overflow=n.current||"",o.current&&(document.body.style.paddingRight=""),t(!1)},[t,o,n]);return{scrollLocked:e,lockScroll:r,unlockScroll:s}},_t={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Bo=e=>{const{active:t,children:n,transparent:o,onClose:r,className:s,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),_=c.useRef(null),h=c.useRef(!1),m=c.useRef(null),{lockScroll:v,unlockScroll:x}=Do(),{active:g,activate:w,deactivate:y}=En(t||!1),{active:b,activate:C,deactivate:I}=En(t||!1),$=mo(t,f),P=S(_t.root,b&&_t["--visible"],o&&_t["--transparent"],s),z=A=>{if(!f.current)return;const J=f.current.firstChild;if(J)return J.contains(A)},T=()=>{f.current&&(m.current=Vt(f.current))},Z=()=>{m.current&&(m.current(),m.current=null)},M=c.useCallback(()=>{!b||!$()||r&&r()},[b,$]),L=A=>{h.current=!z(A.target)},q=A=>{const J=!z(A.target);h.current&&J&&!o&&M()},D=A=>{A.propertyName!=="opacity"||A.target!==A.currentTarget||b||(o||x(),y())};return nt({Escape:M},[M]),c.useEffect(()=>{t&&!g&&w(),!t&&g&&I()},[t,w,I,g]),c.useEffect(()=>{g&&(o||v(),kt(()=>C()))},[g,C,v,o]),c.useEffect(()=>{if(g)return T(),()=>Z()},[g]),c.useEffect(()=>()=>{o||x()},[x,o]),de(()=>{d(!0)},[]),!g||!l?null:i.jsx(yo,{scopeRef:_,children:i.jsx("div",k(p({},a),{ref:_,role:"button",tabIndex:-1,className:P,onMouseDown:L,onMouseUp:q,onTransitionEnd:D,children:i.jsx("div",{className:_t.wrapper,children:i.jsx("div",{className:_t.inner,children:i.jsx("div",{className:_t.content,ref:f,children:typeof n=="function"?n({active:b}):n})})})}))})},zn={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"},Wo=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Ho=()=>c.useContext(Wo),Qs=e=>{const{children:t}=e,{id:n,setTitleMounted:o}=Ho();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),i.jsx(ee,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},Zs=e=>{const{children:t}=e,{id:n,setSubtitleMounted:o}=Ho();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),i.jsx(ee,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},Tn=e=>{const{children:t,onClose:n,active:o,size:r,padding:s=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,_=Ne(),[h,m]=c.useState(!1),[v,x]=c.useState(!1),g=Cn(s),w=c.useMemo(()=>({titleMounted:h,setTitleMounted:m,subtitleMounted:v,setSubtitleMounted:x,id:_}),[_,v,h]);return i.jsx(Bo,{onClose:n,active:o,transparent:l,children:({active:y})=>{const b=S(zn.root,d,g==null?void 0:g.classNames,y&&zn["--active"],B(zn,"--position",a));return i.jsx(Wo.Provider,{value:w,children:i.jsx("div",k(p({},f),{style:p(p({},g==null?void 0:g.variables),oe("--rs-modal-size",r)),"aria-labelledby":h?`${_}-title`:void 0,"aria-describedby":v?`${_}-subtitle`:void 0,className:b,"aria-modal":"true",role:"dialog",children:t}))})}})};Tn.Title=Qs,Tn.Subtitle=Zs;const Tt={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"},ei=e=>{const{value:t=0,min:n=0,max:o=100,color:r="primary",size:s="medium",duration:a,className:l,attributes:d}=e,f=S(Tt.root,l,r&&Tt[`--color-${r}`],s&&Tt[`--size-${s}`],!!a&&Tt["--duration"]),_=o-n,h=t-n,x=`${Math.max(n,Math.min(o,h))/_*100-100}%`;return i.jsx("div",k(p({role:"progressbar"},d),{className:f,"aria-valuemax":o,"aria-valuemin":n,"aria-valuenow":t,children:i.jsx("div",{className:Tt.value,style:{"--rs-progress-value":x,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Ro=c.createContext(null),ti=()=>c.useContext(Ro),Uo=e=>{const{onChange:t,name:n,disabled:o,value:r,children:s,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return i.jsx(Ro.Provider,{value:{onChange:l,disabled:o,value:r,name:n,hasError:a},children:s})},ni=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t||null),s=a=>{a.value&&(r(a.value),n&&n(a))};return i.jsx(Uo,k(p({},e),{value:o,defaultValue:void 0,onChange:s}))},oi=e=>{const{value:t}=e;return t!==void 0?i.jsx(Uo,p({},e)):i.jsx(ni,p({},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"},ri=e=>{const{children:t,value:n,onChange:o,onFocus:r,onBlur:s,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),_=ti(),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,x=_?void 0:e.defaultChecked,g=_?_.name:e.name,w=t?"label":"span",y=S(ot.root,a,h&&ot["--error"],m&&ot["--disabled"]),b=C=>{if(!g)return;const{checked:I}=C.target,$={name:g,value:n,checked:I,event:C};o&&o($),_!=null&&_.onChange&&_.onChange($)};return i.jsxs(w,k(p({},l),{className:y,children:[i.jsxs("span",{className:ot.field,children:[i.jsx($n,{className:ot.input,type:"radio",checked:v,defaultChecked:x,name:g,disabled:m,value:n,onChange:b,onFocus:r,onBlur:s,attributes:d}),i.jsx("div",{className:ot.decorator})]}),t&&i.jsx("span",{className:ot.text,children:t})]}))},Ko={short:4e3,long:8e3},It=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Yo={queues:It.reduce((e,t)=>p({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},Qt=c.createContext(Yo),si=()=>{const{add:e,hide:t}=c.useContext(Qt);return c.useMemo(()=>({show:e,hide:t}),[e,t])},Ve={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"},ii=e=>{const{size:t="small",text:n,children:o,color:r="inverted",icon:s,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:_}=e;let h=r==="inverted"||r==="neutral"?"elevation-overlay":r;r==="neutral"&&(h=f?"neutral":"elevation-overlay");const m=r==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",x=t==="large";let g=[];l&&(g=Array.isArray(l)?l:[l]);const w=(a||n)&&i.jsxs(i.Fragment,{children:[a&&i.jsxs(ee,{variant:"body-3",weight:"bold",as:v,children:[a," "]}),i.jsx(ee,{variant:"body-3",as:v,children:n})]}),y=i.jsxs(R,{backgroundColor:h,borderColor:m,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:x?"start":"center",className:Ve.toast,attributes:_,children:[s&&i.jsx(le,{size:5,svg:s,className:Ve.icon}),d&&!s&&i.jsx(R.Item,{children:d}),i.jsx(R.Item,{grow:!0,children:i.jsxs(R,{direction:x?"column":"row",align:x?"start":"center",gap:3,children:[i.jsx(R.Item,{grow:!0,children:w&&o||t!=="small"?i.jsxs(R,{gap:.5,children:[w,o&&i.jsx(R,{gap:3,children:o})]}):w||o}),g.length&&i.jsx(R,{direction:"row",align:"center",gap:2,children:g.map((b,C)=>{const I=t==="large"?C===0:C===g.length-1,P={variant:I?"solid":"ghost",size:"small",color:I?r==="neutral"||r==="inverted"?"neutral":"white":"inherit",elevated:r!=="neutral"};return b.type===Te?c.createElement(Te,k(p(p({},P),b.props),{key:C})):b})})]})})]});return r==="inverted"?i.jsx(lt,{colorMode:"inverted",children:y}):y},ai=e=>{const{toastProps:t,id:n,status:o,inspected:r,index:s}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(Qt),[_,h]=c.useState(),m=c.useRef(),v=c.useRef(!1),x=c.useRef(null),g=c.useRef(null),w=o==="entered",y=S(Ve.container,w&&Ve["container--visible"],s===0&&Ve[`container--index-${s}`],!r&&(s===1||s===2)&&Ve[`container--index-${s}`],!r&&s>=3&&Ve["container--index-overflow"]),b=c.useCallback(()=>{m.current&&clearTimeout(m.current)},[]),C=c.useCallback(()=>{b();const $=typeof a=="string"?Ko[a]:a;a!==0&&(m.current=setTimeout(()=>{d(n)},$!=null?$:Ko.short))},[d,n,a,b]),I=$=>{$.propertyName==="height"&&(w||f(n))};return c.useEffect(()=>{w&&(r?b():C())},[r,C,b,w]),c.useEffect(()=>{g.current&&h(g.current.clientHeight),l(n),C()},[l,n,C]),c.useEffect(()=>{g.current&&(w?x.current=Vt(g.current,{includeTrigger:!0,mode:"content-menu"}):x.current&&ao()&&(x.current(),x.current=null))},[w]),c.useEffect(()=>{if(!w||s>0)return;const $=()=>{v.current=!0,kt(()=>{v.current=!1}),g.current&&h(g.current.clientHeight)};return window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[w,s]),i.jsx("li",{className:y,style:{height:o==="entered"?`calc(${_}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:v.current?"0s":void 0},onTransitionEnd:I,onFocus:b,onBlur:C,children:i.jsx("span",{className:Ve.wrapper,children:i.jsx(ii,k(p({},t),{collapsed:s>0&&!r,attributes:{ref:g}}))})})},li=e=>{const{position:t}=e,{queues:n,options:o}=c.useContext(Qt),[r,s]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:_}=(o==null?void 0:o[t])||{},h=S(Ve.region,Ve[`region--position-${t}`]),m=d.filter(b=>b.status==="entered").length;let v=0;const x=()=>{a.current=!0},g=b=>{let C=b.target,I=!1;for(;C&&C!==l.current&&!I;)I=C.matches(lo),C=C.parentElement;I||s($=>!$),a.current=!1},w=()=>{a.current||s(!0)},y=()=>{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:x,onClick:g,onMouseEnter:w,onMouseLeave:y,style:{width:f},children:d.map((b,C)=>{const I=m-C+v-1;return b.status!=="entered"&&(v+=1),i.jsx(ai,k(p({},b),{index:I,inspected:r||!!_}),b.id)})}):null};let ci=0;const di=()=>`__rs-toast-${ci++}`,ui=(e,t)=>{let n;switch(t.type){case"add":const o=t.payload.toastProps||{},{position:r="bottom-end"}=o,s=Ae(o,["position"]);return k(p({},e),{[r]:[...e[r],{id:t.payload.id,toastProps:s,status:"entering"}]});case"show":const{id:a}=t.payload;return n=p({},e),It.forEach(f=>{n[f]=n[f].map(_=>_.id===a?k(p({},_),{status:"entered"}):_)}),n;case"hide":const{id:l}=t.payload;return n=p({},e),It.forEach(f=>{n[f]=n[f].map(_=>_.id===l?k(p({},_),{status:"exiting"}):_)}),n;case"remove":const{id:d}=t.payload;return n=p({},e),It.forEach(f=>{n[f]=n[f].filter(_=>_.id!==d)}),n}},_i=e=>{const{children:t,options:n}=e,[o,r]=c.useReducer(ui,Yo.queues),s=c.useCallback(_=>{const h=di();return r({type:"add",payload:{toastProps:_,id:h}}),h},[]),a=c.useCallback(_=>{r({type:"show",payload:{id:_}})},[]),l=c.useCallback(_=>{r({type:"hide",payload:{id:_}})},[]),d=c.useCallback(_=>{r({type:"remove",payload:{id:_}})},[]),f=c.useMemo(()=>({queues:o,add:s,show:a,hide:l,remove:d,inspecting:!1,options:n}),[o,a,l,s,d,n]);return i.jsxs(Qt.Provider,{value:f,children:[t,It.map(_=>i.jsx(li,{position:_},_))]})},mi=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(fn,"true")},t=()=>{document.documentElement.removeAttribute(fn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},Ll="",fi={root:"_root_18j53_1"},hi=e=>{const{children:t,defaultRTL:n,defaultViewport:o="s",toastOptions:r}=e,s=rs(n);return mi(),i.jsx(bn.Provider,{value:{rtl:s,defaultViewport:o},children:i.jsx(ns,{children:i.jsx(_i,{options:r,children:t})})})},vi=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:o,className:r}=e,s=S(fi.root,r);return i.jsx(as,{defaultMode:o,children:i.jsx(lt,{name:t,defaultName:n,className:s,children:i.jsx(hi,k(p({},e),{children:e.children}))})})},Mt={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},pi=e=>{const{children:t,backgroundSlot:n,position:o="cover",attributes:r,className:s,scrimClassName:a}=e,l=S(Mt.root,!!n&&Mt["--with-background"],o&&Mt[`--position-${o}`],s),d=S(Mt.scrim,a);return i.jsxs("div",k(p({},r),{className:l,children:[n,i.jsx("div",{className:d,children:i.jsx("div",{className:Mt.content,children:t})})]}))},gi=()=>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"},bi=e=>{var q,D;const{onChange:t,onClick:n,onFocus:o,onBlur:r,name:s,value:a,defaultValue:l,placeholder:d,options:f,children:_,icon:h,startSlot:m,size:v="medium",variant:x="outline",className:g,attributes:w}=e,[y,b]=c.useState(a===void 0?!l:!a),C=Ye(),I=Ne(e.id),$=((q=C==null?void 0:C.attributes)==null?void 0:q.id)||((D=e.inputAttributes)==null?void 0:D.id)||I,P=(C==null?void 0:C.disabled)||e.disabled,z=(C==null?void 0:C.hasError)||e.hasError,T=p(p({},e.inputAttributes),C==null?void 0:C.attributes),Z=S(Ie.root,g,v&&B(Ie,"--size",v),z&&Ie["--status-error"],P&&Ie["--disabled"],y&&f&&Ie["--placeholder"],x&&Ie[`--variant-${x}`]),M=A=>{const J=A.target.value;a===void 0&&b(!J),t&&t({name:s,value:J,event:A})};c.useEffect(()=>{a!==void 0&&b(!a)},[a]);const L=(m||h)&&i.jsx("div",{className:Ie.slot,children:h?i.jsx(le,{size:Le(v,A=>A==="large"?5:A==="xlarge"?6:4),svg:h,className:Ie.icon}):m});return i.jsxs("div",k(p({},w),{className:Z,children:[f?i.jsxs(i.Fragment,{children:[L,i.jsxs("select",k(p({},T),{className:Ie.input,disabled:P,name:s,value:a,defaultValue:l,onChange:M,onFocus:o||(T==null?void 0:T.onFocus),onBlur:r||(T==null?void 0:T.onBlur),id:$,children:[d&&i.jsx("option",{value:"",children:d}),f.map(A=>i.jsx("option",{value:A.value,disabled:A.disabled,children:A.label},A.value))]}))]}):i.jsxs(i.Fragment,{children:[i.jsxs(qe,{className:Ie.input,disabled:P,onClick:n,attributes:k(p({},T),{onFocus:o||(T==null?void 0:T.onFocus),onBlur:r||(T==null?void 0:T.onBlur)}),children:[L,_||(d?i.jsx(ee,{color:"neutral-faded",children:d}):null)]}),i.jsx("input",{type:"hidden",value:a,name:s})]}),i.jsx("div",{className:Ie.arrow,children:i.jsx(le,{svg:gi,color:P?"disabled":"neutral-faded",size:Le(v,A=>A==="large"||A==="xlarge"?5:4)})})]}))},xi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},yi=e=>{const{borderRadius:t="small",width:n,height:o,className:r,attributes:s}=e,a=S(xi.root,r);return i.jsx(R,{backgroundColor:"disabled",width:n,height:o,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"},wi=(e,t)=>{const{name:n,value:o,disabled:r,active:s,position:a,max:l,min:d,onChange:f,onDragStart:_,renderValue:h}=e,m=c.useId(),v=S(Qe.thumb,s&&Qe["thumb--active"]),x=h?h({value:o}):o,g=w=>{f(+w.target.value)};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:Qe.input,type:"range",name:n,value:o,onChange:g,disabled:r,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(lt,{className:Qe.tooltip,colorMode:"inverted",children:i.jsx(ee,{variant:"caption-1",weight:"medium",children:x})})})]})},Go=c.forwardRef(wi),Xo=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,In=(e,t)=>Math.round(e/t)*t,Mn=e=>{var je;const{name:t,range:n,max:o,min:r,step:s=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:_}=e,h=n&&e.minValue!==void 0?In(e.minValue,s):void 0,m=In(n?e.maxValue:e.value,s),v=c.useRef(null),x=c.useRef(null),g=c.useRef(null),[w,y]=c.useState(null),[b]=Ge(),C=Ye(),I=Ne(),$=((je=C==null?void 0:C.attributes)==null?void 0:je.id)||I,P=`${$}-min`,z=`${$}-max`,T=(C==null?void 0:C.disabled)||e.disabled,Z=S(Qe.root,T&&Qe["--disabled"],f),M=c.useCallback(se=>{if(!v.current)return;const W=v.current.clientWidth;let K=(se-v.current.getBoundingClientRect().left)/W;b&&(K=1-K);let ie=(o-r)*K+r;return ie=Math.max(r,Math.min(o,ie)),In(ie,s)},[o,r,b,s]),L=se=>(se-r)/(o-r)*100,q=c.useCallback((se,W)=>{if(!n)return;const U=W!=null&&W.commit?l:a;U==null||U({minValue:se,maxValue:m,name:t})},[m,t,n]),D=c.useCallback((se,W)=>{if(n){const K=W!=null&&W.commit?l:a;K==null||K({minValue:h,maxValue:se,name:t});return}const U=W!=null&&W.commit?l:a;U==null||U({value:se,name:t})},[h,t,n]),A=({nativeEvent:se})=>{if(T)return;let W,U;const K=Xo(se),ie=M(K);[{ref:x,id:P},{ref:g,id:z}].forEach(Y=>{if(!Y.ref.current)return;const ge=Y.ref.current,he=Math.abs(ge.getBoundingClientRect().left-K);(W===void 0||he<=W)&&(W=he,U=Y.id)}),!(!U||ie===void 0)&&(U===P&&q(ie),U===z&&D(ie),y(U))},J=()=>{T||y(P)},ye=()=>{T||y(z)},fe=c.useCallback(()=>{w===P&&h!==void 0&&q(h,{commit:!0}),w===z&&D(m,{commit:!0}),y(null)},[h,m,q,D,w,P,z]),re=c.useCallback(se=>{if(!w)return;const W=Xo(se),U=M(W);if(U===void 0)return;let K=w;w===P&&U>m&&(K=z),w===z&&h&&U<h&&(K=P),K===P&&q(U),K===z&&D(U),w!==K&&y(K)},[w,h,m,M,D,q,z,P]);c.useEffect(()=>(window.addEventListener("mouseup",fe),window.addEventListener("touchend",fe),window.addEventListener("mousemove",re),window.addEventListener("touchmove",re),()=>{window.removeEventListener("mouseup",fe),window.removeEventListener("touchend",fe),window.removeEventListener("mousemove",re),window.removeEventListener("touchmove",re)}),[fe,re]);const Q=h&&L(h),He=L(m);return i.jsxs("div",k(p({},_),{className:Z,onMouseDown:A,onTouchStart:A,children:[i.jsx("div",{className:Qe.bar,ref:v,children:i.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${Q||0}%`,width:`${He-(Q||0)}%`}})}),h!==void 0&&Q!==void 0&&i.jsx(Go,{id:P,active:P===w,name:t,disabled:T,onChange:q,value:h,onDragStart:J,position:Q,max:o,min:r,ref:x,renderValue:d}),i.jsx(Go,{id:z,active:z===w,name:t,disabled:T,onChange:D,value:m,onDragStart:ye,position:He,max:o,min:r,ref:g,renderValue:d})]}))},ji=e=>{const{min:t,max:n,onChange:o,range:r}=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||(r?n:t),[l,d]=c.useState(s),[f,_]=c.useState(a),h=v=>{r||(_(v.value),o==null||o(v))},m=v=>{r&&(d(v.minValue),_(v.maxValue),o==null||o(v))};return r?i.jsx(Mn,k(p({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:m})):i.jsx(Mn,k(p({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Ci=e=>{const r=e,{min:t=0,max:n=100}=r,o=Ae(r,["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(Mn,k(p({},o),{min:t,max:n})):i.jsx(ji,k(p({},o),{min:t,max:n}))},mt={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"},ki=e=>{var b;const{children:t,name:n,checked:o,size:r,reversed:s,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:_,attributes:h}=e,m=S(mt.root,r&&mt[`root--size-${r}`],s&&mt["root--reversed"],_),v=Ye(),x=Ne((v==null?void 0:v.attributes.id)||e.id||((b=e.inputAttributes)==null?void 0:b.id)),g=p(p({},e.inputAttributes),v==null?void 0:v.attributes),w=(v==null?void 0:v.disabled)||e.disabled,y=C=>{l&&l({name:n,event:C,checked:C.target.checked})};return i.jsxs("label",k(p({},h),{className:m,children:[i.jsx("input",k(p({type:"checkbox"},g),{className:mt.input,name:n,checked:o,defaultChecked:a,disabled:w,onChange:y,onFocus:d||(g==null?void 0:g.onFocus),onBlur:f||(g==null?void 0:g.onBlur),id:x})),i.jsx("span",{className:mt.area,"aria-hidden":"true",children:i.jsx("span",{className:mt.thumb})}),t&&i.jsx(ee,{variant:"body-3",weight:"medium",children:t})]}))},Jo=c.createContext({}),Ni=Jo.Provider,Sn=e=>{const o=c.useContext(Jo),{id:t}=o,n=Ae(o,["id"]);return k(p({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Qo=e=>{const{children:t,value:n,onChange:o,onSilentChange:r,itemWidth:s,variant:a,name:l,direction:d="row",size:f="medium"}=e,_=Ne(),h=m=>{m!==void 0&&r&&r({value:m,name:l})};return i.jsx(Ni,{value:{value:n,name:l,size:f,direction:d,itemWidth:s,variant:a,onChange:o,id:_,setDefaultValue:h},children:t})},$i=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t),s=({value:l})=>{r(l),n&&n({value:l})},a=({value:l})=>{r(l)};return i.jsx(Qo,k(p({},e),{onChange:s,onSilentChange:a,value:o,defaultValue:void 0}))},te={root:"_root_eqstu_1",list:"_list_eqstu_12",inner:"_inner_eqstu_16",item:"_item_eqstu_23",button:"_button_eqstu_30",buttonContent:"_buttonContent_eqstu_46",icon:"_icon_eqstu_59",radio:"_radio_eqstu_64","--item-active":"_--item-active_eqstu_72",selector:"_selector_eqstu_77","--selector-hidden":"_--selector-hidden_eqstu_95","--selector-animated":"_--selector-animated_eqstu_99",next:"_next_eqstu_104",prev:"_prev_eqstu_105",panel:"_panel_eqstu_125","--panel-hidden":"_--panel-hidden_eqstu_133","--direction-row":"_--direction-row_eqstu_137","--direction-column":"_--direction-column_eqstu_205","--variant-borderless":"_--variant-borderless_eqstu_256","--variant-pills":"_--variant-pills_eqstu_257","--variant-pills-elevated":"_--variant-pills-elevated_eqstu_258","--size-medium":"_--size-medium_eqstu_329","--size-large":"_--size-large_eqstu_334","--item-width-equal":"_--item-width-equal_eqstu_339","--cut-off-start":"_--cut-off-start_eqstu_358","--cut-off-end":"_--cut-off-end_eqstu_359","--cut-off-both":"_--cut-off-both_eqstu_380"},Ei=(e,t)=>{const{value:n,children:o,icon:r,active:s,visuallySelected:a,attributes:l}=e,{onChange:d,panelId:f,name:_,size:h}=Sn(n),m=S(te.item,a&&te["--item-active"]),v=!!_,x={role:"tab",tabIndex:s?0:-1,"aria-selected":s},g=()=>{d&&d({value:n,name:_})};return i.jsx("div",{className:m,ref:t,role:"presentation",children:i.jsxs(qe,{insetFocus:!0,onClick:_?void 0:g,className:te.button,as:_?"label":void 0,attributes:k(p(p({},l),!v&&x),{"aria-controls":f}),children:[_&&i.jsx($n,{type:"radio",name:_,value:n,checked:a,onChange:g,className:te.radio}),i.jsxs("span",{className:te.buttonContent,children:[r&&i.jsx(le,{svg:r,className:te.icon,size:4}),o&&i.jsx(ee,{variant:h==="large"?"body-2":"body-3",children:o})]})]})})},Zt=c.forwardRef(Ei),zi=e=>{const{children:t,className:n,attributes:o}=e,{value:r,setDefaultValue:s,itemWidth:a,variant:l,name:d,direction:f,size:_}=Sn(),[h]=Ge(),m=c.useRef(null),v=c.useRef(null),x=c.useRef(v.current),[g,w]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),[y,b]=c.useState(null),C=S(te.root,_&&te[`--size-${_}`],f&&te[`--direction-${f}`],a&&te[`--item-width-${a}`],l&&te[`--variant-${l}`],y&&te[`--cut-off-${y}`],n),I=S(te.selector,g.status==="idle"&&te["--selector-hidden"],g.status==="animated"&&te["--selector-animated"]),$=()=>{m.current.scrollBy({left:Math.ceil(m.current.clientWidth/2)*(h?-1:1),behavior:"smooth"})},P=()=>{m.current.scrollBy({left:Math.ceil(m.current.clientWidth/2)*(h?1:-1),behavior:"smooth"})},z=()=>{w(M=>k(p({},M),{status:"idle"}))},T=c.useCallback(M=>({scaleX:M.clientWidth,scaleY:M.clientHeight,top:M.offsetTop,left:M.offsetLeft}),[]),{ref:Z}=nt({"ArrowLeft, ArrowUp":M=>{d||(M.preventDefault(),Ur(m.current))},"ArrowRight, ArrowDown":M=>{d||(M.preventDefault(),Rr(m.current))},Home:M=>{d||(M.preventDefault(),Kr(m.current))},End:M=>{d||(M.preventDefault(),Yr(m.current))}});return de(()=>{if(r)return;const M=c.Children.toArray(t)[0];!M||M.type!==Zt||s(M.props.value)},[r]),de(()=>{if(v.current===x.current)return;const M=T(x.current);w(k(p({},M),{status:"prepared"}))},[r,T]),de(()=>{if(g.status==="prepared"){const M=T(v.current);w(k(p({},M),{status:"animated"}))}},[g]),de(()=>{const M=m.current;if(!M||f==="column")return;const L=()=>{M.clientWidth<M.scrollWidth||b(null);const A=M.scrollLeft*(h?-1:1),J=A>1,ye=A+M.clientWidth<M.scrollWidth-1;if(ye&&J)return b("both");if(J)return b("start");if(ye)return b("end")},q=fr(L,100);return requestAnimationFrame(()=>{L()}),window.addEventListener("resize",q),M.addEventListener("scroll",q),()=>{window.removeEventListener("resize",q),M.removeEventListener("scroll",q)}},[h]),i.jsxs("div",k(p({},o),{className:C,children:[i.jsx("div",{className:te.inner,ref:m,children:i.jsxs("div",{className:te.list,role:"tablist",ref:Z,children:[c.Children.map(t,M=>{if(!M||M.type!==Zt)return i.jsx("div",{className:te.item,children:M});const L=M.props.value,q=L===r;return c.createElement(Zt,k(p({},M.props),{ref:D=>{D&&q&&(x.current=v.current||D,v.current=D)},value:L,key:L,active:q,visuallySelected:q&&g.status==="idle"}))}),i.jsx("div",{onTransitionEnd:z,className:I,style:{"--rs-tab-selection-x":g.left,"--rs-tab-selection-y":g.top,"--rs-tab-selection-scale-x":g.scaleX,"--rs-tab-selection-scale-y":g.scaleY}})]})}),(y==="start"||y==="both")&&i.jsx("span",{className:te.prev,children:i.jsx(Te,{onClick:P,size:"small",icon:Ao,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(y==="end"||y==="both")&&i.jsx("span",{className:te.next,children:i.jsx(Te,{onClick:$,size:"small",icon:Kt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},Ti=e=>{const{value:t,children:n}=e,{value:o,panelId:r,buttonId:s}=Sn(t),a=t===o,l=S(te.panel,!a&&te["--panel-hidden"]);return i.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:r,"aria-labelledby":s,children:a&&n})},en=e=>{const{value:t}=e;return t!==void 0?i.jsx(Qo,p({},e)):i.jsx($i,p({},e))};en.Item=Zt,en.List=zi,en.Panel=Ti;const ft={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"},Ii=e=>{var I,$;const{onChange:t,onFocus:n,onBlur:o,name:r,value:s,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:_,attributes:h}=e,m=Ye(),v=Ne(e.id),x=((I=m==null?void 0:m.attributes)==null?void 0:I.id)||(($=e.inputAttributes)==null?void 0:$.id)||v,g=(m==null?void 0:m.disabled)||e.disabled,w=(m==null?void 0:m.hasError)||e.hasError,y=p(p({},e.inputAttributes),m==null?void 0:m.attributes),b=S(ft.root,d&&B(ft,"--size",d),w&&ft["--status-error"],g&&ft["--disabled"],f&&ft[`--variant-${f}`],_),C=P=>{t&&t({name:r,value:P.target.value,event:P})};return i.jsx("div",k(p({},h),{className:b,children:i.jsx("textarea",k(p({},y),{className:ft.input,rows:3,disabled:g,name:r,placeholder:l,value:s,defaultValue:a,onChange:C,onFocus:n||(y==null?void 0:y.onFocus),onBlur:o||(y==null?void 0:y.onBlur),id:x}))}))},Pn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Fn=e=>{const{children:t,markerSlot:n,className:o,attributes:r}=e,s=n!==null,a=S(Pn.item,!s&&Pn["item--full-width"],o);return i.jsxs(R,{as:"li",direction:"row",align:"stretch",gap:3,attributes:r,className:a,children:[s&&i.jsx("span",{className:Pn.marker,children:n}),i.jsx(R.Item,{grow:!0,children:t})]})},Zo=e=>{const{children:t,className:n,attributes:o}=e,r=S(n);return i.jsx("ul",k(p({},o),{className:r,children:c.Children.map(t,(s,a)=>(s==null?void 0:s.type)===Fn?s:i.jsx(Fn,{children:s},a))}))};Zo.Item=Fn;const Mi={root:"_root_9090g_1"},Si=e=>{const{id:t,text:n,children:o,onOpen:r,onClose:s,position:a="bottom",active:l}=e;return i.jsxs(Xe,{id:t,active:l,position:a,onOpen:r,onClose:s,triggerType:"hover",children:[i.jsx(Xe.Trigger,{children:o}),i.jsx(Xe.Content,{children:i.jsx(lt,{colorMode:"inverted",children:i.jsx(ee,{variant:"caption-1",className:Mi.root,children:n})})})]})},ht={m:660,l:900,xl:1280},er={s:`(max-width: ${ht.m-1}px)`,m:`(min-width: ${ht.m}px) and (max-width: ${ht.l-1}px)`,l:`(min-width: ${ht.l}px) and (max-width: ${ht.xl-1}px)`,xl:`(min-width: ${ht.xl}px)`},Pi=e=>{const{defaultViewport:t}=c.useContext(bn),[n,o]=c.useState(t);return de(()=>{const s=Object.keys(er).map(a=>{const l=window.matchMedia(er[a]);return{mq:l,handler:()=>l.matches&&o(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},Fi=e=>{const{w:t="auto",h:n=50,children:o}=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:o})};N.Accordion=un,N.ActionBar=Fr,N.Actionable=qe,N.Alert=Lr,N.Autocomplete=To,N.Avatar=Es,N.Badge=Mo,N.Breadcrumbs=Fo,N.Button=Te,N.Card=As,N.Carousel=Ls,N.Checkbox=Ws,N.CheckboxGroup=Ds,N.Container=Rs,N.Dismissible=Us,N.Divider=Un,N.DropdownMenu=xe,N.FormControl=At,N.Hidden=an,N.HiddenVisually=Ys,N.Hotkey=Gs,N.Icon=le,N.Image=Xs,N.Link=Po,N.Loader=So,N.MenuItem=kn,N.Modal=Tn,N.Overlay=Bo,N.Placeholder=Fi,N.Popover=ct,N.Progress=ei,N.Radio=ri,N.RadioGroup=oi,N.Reshaped=vi,N.Scrim=pi,N.Select=bi,N.Skeleton=yi,N.Slider=Ci,N.Switch=ki,N.Tabs=en,N.Text=ee,N.TextArea=Ii,N.TextField=no,N.Theme=lt,N.Timeline=Zo,N.Tooltip=Si,N.View=R,N.classNames=S,N.responsiveClassNames=B,N.responsivePropDependency=Le,N.useFormControl=Ye,N.useHotkeys=nt,N.useIsomorphicLayoutEffect=de,N.useRTL=Ge,N.useResponsiveClientValue=Pi,N.useScrollLock=Do,N.useTheme=go,N.useToast=si,N.useToggle=En,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
27
|
+
Check the top-level render call using <`+T+">.")}return j}}function oo(d,j){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var T=Ki(j);if(ro[T])return;ro[T]=!0;var A="";d&&d._owner&&d._owner!==On.current&&(A=" It was passed a child from "+L(d._owner.type)+"."),pt(d),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,A),pt(null)}}function so(d,j){{if(typeof d!="object")return;if(Pt(d))for(var T=0;T<d.length;T++){var A=d[T];Bn(A)&&oo(A,j)}else if(Bn(d))d._store&&(d._store.validated=!0);else if(d){var R=g(d);if(typeof R=="function"&&R!==d.entries)for(var J=R.call(d),q;!(q=J.next()).done;)Bn(q.value)&&oo(q.value,j)}}}function Yi(d){{var j=d.type;if(j==null||typeof j=="string")return;var T;if(typeof j=="function")T=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===u||j.$$typeof===h))T=j.propTypes;else return;if(T){var A=L(j);nn(T,d.props,"prop",A,d)}else if(j.PropTypes!==void 0&&!qn){qn=!0;var R=L(j);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Gi(d){{for(var j=Object.keys(d.props),T=0;T<j.length;T++){var A=j[T];if(A!=="children"&&A!=="key"){pt(d),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),pt(null);break}}d.ref!==null&&(pt(d),x("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}function io(d,j,T,A,R,J){{var q=S(d);if(!q){var D="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).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 pe=Ui(R);pe?D+=pe:D+=no();var ne;d===null?ne="null":Pt(d)?ne="array":d!==void 0&&d.$$typeof===t?(ne="<"+(L(d.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):ne=typeof d,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ne,D)}var ae=Ri(d,j,T,R,J);if(ae==null)return ae;if(q){var Ne=j.children;if(Ne!==void 0)if(A)if(Pt(Ne)){for(var gt=0;gt<Ne.length;gt++)so(Ne[gt],d);Object.freeze&&Object.freeze(Ne)}else x("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 so(Ne,d)}return d===r?Gi(ae):Yi(ae),ae}}function Xi(d,j,T){return io(d,j,T,!0)}function Ji(d,j,T){return io(d,j,T,!1)}var Qi=Ji,Zi=Xi;xt.Fragment=r,xt.jsx=Qi,xt.jsxs=Zi}()),xt}process.env.NODE_ENV==="production"?be.exports=_o():be.exports=mo();var i=be.exports;const Rn=(e,t=20)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}};function fo(e,t){const n=Rn(e,t);return r=>("persist"in r&&r.persist(),n(r))}const ho=(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},""),Un=(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},B=(e,t,n,r)=>{if(typeof n!="object"){const o=Un(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=Un(t,n[s],{base:a,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),u=a?"":`--${s}`;return[...o,e[`${l}${u}`]]},[])},re=(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(p({},n),{[`${e}-${r}`]:o})},{}),vo=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Le=(e,t)=>vo(e)?Object.keys(e).reduce((r,o)=>{const s=e[o];return s==null?r:k(p({},r),{[o]:t(s,o)})},{}):t(e,"s"),$e=e=>{const t=c.useId();return e||t},sn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Kn=e=>{const{children:t,onToggle:n,active:r,iconPosition:o,iconSize:s,className:a,attributes:l}=e,u=M(a),m=$e(),_=c.useMemo(()=>({triggerId:`${m}-trigger`,contentId:`${m}-content`,active:r,onToggle:n,iconPosition:o,iconSize:s}),[r]);return i.jsx("div",k(p({},l),{className:u,children:i.jsx(sn.Provider,{value:_,children:t})}))},po=e=>{const l=e,{defaultActive:t,onToggle:n}=l,r=Ae(l,["defaultActive","onToggle"]),[o,s]=c.useState(t||!1),a=u=>{s(u),n==null||n(u)};return i.jsx(Kn,k(p({},r),{onToggle:a,active:o}))},yt={root:"_root_1e7nv_1","--disabled":"_--disabled_1e7nv_28","--full-width":"_--full-width_1e7nv_37","--inset":"_--inset_1e7nv_45","--radius-inherit":"_--radius-inherit_1e7nv_49"},go=(e,t)=>{const{children:n,href:r,onClick:o,type:s,disabled:a,insetFocus:l,borderRadius:u,as:m,fullWidth:_,className:h,attributes:f}=e,v=M(yt.root,h,a&&yt["--disabled"],u&&yt[`--radius-${u}`],l&&yt["--inset"],_&&yt["--full-width"]),b=p({},f),w=c.useRef(!1),g=o||(f==null?void 0:f.onClick),y=(f==null?void 0:f.onFocus)||(f==null?void 0:f.onBlur),x=!!(r||f!=null&&f.href),C=!!(g||y||s);let $;if(x)b.href=a?void 0:r||(f==null?void 0:f.href),$="a";else if(C&&(!m||m==="button"))$="button",b.type=s||(f==null?void 0:f.type)||"button",b.disabled=a||(f==null?void 0:f.disabled);else if(C){const O=!(m==="label")||g||y;$=m||"span",b.role=O?"button":void 0,b.tabIndex=O?0:void 0}else $=m||"span";const E=I=>{var O;a||w.current||(o==null||o(I),(O=f==null?void 0:f.onClick)==null||O.call(f,I))},z=I=>{if(b.role==="button"||x)return;const S=I.key===" ",F=I.key==="Enter";!S&&!F||(I.preventDefault(),E(I),w.current=!0)},P=()=>{w.current=!1};return i.jsx($,k(p({ref:t},b),{className:v,onClick:E,onKeyDown:z,onKeyUp:P,children:n}))},Ve=c.forwardRef(go),an={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"},Yn=e=>{const{vertical:t,blank:n,className:r,attributes:o}=e,s=M(an.root,r,n&&an["--blank"],...B(an,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),i.jsx("div",k(p({},o),{role:"separator","aria-orientation":a,className:s}))},Ft={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"},ln=e=>{const{as:t="div",children:n,visibility:r,hide:o,displayStyle:s}=e,a=M(Ft.root,...B(Ft,"--hidden",o),r&&Ft["--visibility"],s&&Ft[`--display-${s}`]);return typeof n=="function"?i.jsx(i.Fragment,{children:n(a)}):i.jsx(t,{className:a,children:n})},X={root:"_root_18paf_1",item:"_item_18paf_10","--padding":"_--padding_18paf_18","--padding-top":"_--padding-top_18paf_23","--padding-bottom":"_--padding-bottom_18paf_27","--padding-start":"_--padding-start_18paf_31","--padding-end":"_--padding-end_18paf_35","--animated":"_--animated_18paf_39","--align-text-start":"_--align-text-start_18paf_1","--align-text-center":"_--align-text-center_18paf_1","--align-text-end":"_--align-text-end_18paf_1","--bg-neutral":"_--bg-neutral_18paf_1","--bg-positive":"_--bg-positive_18paf_1","--bg-critical":"_--bg-critical_18paf_1","--bg-primary":"_--bg-primary_18paf_1","--bg-neutral-faded":"_--bg-neutral-faded_18paf_1","--bg-positive-faded":"_--bg-positive-faded_18paf_1","--bg-critical-faded":"_--bg-critical-faded_18paf_1","--bg-primary-faded":"_--bg-primary-faded_18paf_1","--bg-page":"_--bg-page_18paf_1","--bg-page-faded":"_--bg-page-faded_18paf_1","--bg-disabled":"_--bg-disabled_18paf_1","--bg-disabled-faded":"_--bg-disabled-faded_18paf_1","--bg-elevation-base":"_--bg-elevation-base_18paf_1","--bg-elevation-raised":"_--bg-elevation-raised_18paf_1","--bg-elevation-overlay":"_--bg-elevation-overlay_18paf_1","--bg-white":"_--bg-white_18paf_66","--bg-black":"_--bg-black_18paf_71","--shadow-raised":"_--shadow-raised_18paf_76","--shadow-overlay":"_--shadow-overlay_18paf_80","--bd":"_--bd_18paf_84","--bd-neutral-faded":"_--bd-neutral-faded_18paf_1","--bd-neutral":"_--bd-neutral_18paf_1","--bd-positive":"_--bd-positive_18paf_1","--bd-positive-faded":"_--bd-positive-faded_18paf_1","--bd-critical":"_--bd-critical_18paf_1","--bd-critical-faded":"_--bd-critical-faded_18paf_1","--bd-primary":"_--bd-primary_18paf_1","--bd-primary-faded":"_--bd-primary-faded_18paf_1","--bd-transparent":"_--bd-transparent_18paf_96","--overflow-hidden":"_--overflow-hidden_18paf_100","--divided":"_--divided_18paf_104","--flex":"_--flex_18paf_108","--direction-column":"_--direction-column_18paf_1","item--gap-before":"_item--gap-before_18paf_120","item--gap-auto":"_item--gap-auto_18paf_124","--direction-column-reverse":"_--direction-column-reverse_18paf_1","--direction-row":"_--direction-row_18paf_1","--direction-row-reverse":"_--direction-row-reverse_18paf_1","--nowrap":"_--nowrap_18paf_179","--wrap":"_--wrap_18paf_187","--nowrap-false--m":"_--nowrap-false--m_18paf_1","--wrap-true--m":"_--wrap-true--m_18paf_1","--nowrap-true--m":"_--nowrap-true--m_18paf_1","--wrap-false--m":"_--wrap-false--m_18paf_1","--nowrap-false--l":"_--nowrap-false--l_18paf_1","--wrap-true--l":"_--wrap-true--l_18paf_1","--nowrap-true--l":"_--nowrap-true--l_18paf_1","--wrap-false--l":"_--wrap-false--l_18paf_1","--nowrap-false--xl":"_--nowrap-false--xl_18paf_1","--wrap-true--xl":"_--wrap-true--xl_18paf_1","--nowrap-true--xl":"_--nowrap-true--xl_18paf_1","--wrap-false--xl":"_--wrap-false--xl_18paf_1","--align-start":"_--align-start_18paf_1","--align-end":"_--align-end_18paf_1","--align-center":"_--align-center_18paf_1","--align-stretch":"_--align-stretch_18paf_1","--align-baseline":"_--align-baseline_18paf_1","--justify-start":"_--justify-start_18paf_1","--justify-end":"_--justify-end_18paf_1","--justify-center":"_--justify-center_18paf_1",divider:"_divider_18paf_242","item--grow":"_item--grow_18paf_246","item--columns-1":"_item--columns-1_18paf_1","item--columns-2":"_item--columns-2_18paf_1","item--columns-3":"_item--columns-3_18paf_1","item--columns-4":"_item--columns-4_18paf_1","item--columns-5":"_item--columns-5_18paf_1","item--columns-6":"_item--columns-6_18paf_1","item--columns-7":"_item--columns-7_18paf_1","item--columns-8":"_item--columns-8_18paf_1","item--columns-9":"_item--columns-9_18paf_1","item--columns-10":"_item--columns-10_18paf_1","item--columns-11":"_item--columns-11_18paf_1","item--columns-12":"_item--columns-12_18paf_1","item--columns-auto":"_item--columns-auto_18paf_279","item--columns-1--m":"_item--columns-1--m_18paf_1","item--columns-auto--m":"_item--columns-auto--m_18paf_1","item--columns-2--m":"_item--columns-2--m_18paf_1","item--columns-3--m":"_item--columns-3--m_18paf_1","item--columns-4--m":"_item--columns-4--m_18paf_1","item--columns-5--m":"_item--columns-5--m_18paf_1","item--columns-6--m":"_item--columns-6--m_18paf_1","item--columns-7--m":"_item--columns-7--m_18paf_1","item--columns-8--m":"_item--columns-8--m_18paf_1","item--columns-9--m":"_item--columns-9--m_18paf_1","item--columns-10--m":"_item--columns-10--m_18paf_1","item--columns-11--m":"_item--columns-11--m_18paf_1","item--columns-12--m":"_item--columns-12--m_18paf_1","item--columns-1--l":"_item--columns-1--l_18paf_1","item--columns-auto--l":"_item--columns-auto--l_18paf_1","item--columns-2--l":"_item--columns-2--l_18paf_1","item--columns-3--l":"_item--columns-3--l_18paf_1","item--columns-4--l":"_item--columns-4--l_18paf_1","item--columns-5--l":"_item--columns-5--l_18paf_1","item--columns-6--l":"_item--columns-6--l_18paf_1","item--columns-7--l":"_item--columns-7--l_18paf_1","item--columns-8--l":"_item--columns-8--l_18paf_1","item--columns-9--l":"_item--columns-9--l_18paf_1","item--columns-10--l":"_item--columns-10--l_18paf_1","item--columns-11--l":"_item--columns-11--l_18paf_1","item--columns-12--l":"_item--columns-12--l_18paf_1","item--columns-1--xl":"_item--columns-1--xl_18paf_1","item--columns-auto--xl":"_item--columns-auto--xl_18paf_1","item--columns-2--xl":"_item--columns-2--xl_18paf_1","item--columns-3--xl":"_item--columns-3--xl_18paf_1","item--columns-4--xl":"_item--columns-4--xl_18paf_1","item--columns-5--xl":"_item--columns-5--xl_18paf_1","item--columns-6--xl":"_item--columns-6--xl_18paf_1","item--columns-7--xl":"_item--columns-7--xl_18paf_1","item--columns-8--xl":"_item--columns-8--xl_18paf_1","item--columns-9--xl":"_item--columns-9--xl_18paf_1","item--columns-10--xl":"_item--columns-10--xl_18paf_1","item--columns-11--xl":"_item--columns-11--xl_18paf_1","item--columns-12--xl":"_item--columns-12--xl_18paf_1","--direction-column--m":"_--direction-column--m_18paf_1","--direction-column-reverse--m":"_--direction-column-reverse--m_18paf_1","--direction-row--m":"_--direction-row--m_18paf_1","--direction-row-reverse--m":"_--direction-row-reverse--m_18paf_1","--align-start--m":"_--align-start--m_18paf_1","--align-end--m":"_--align-end--m_18paf_1","--align-center--m":"_--align-center--m_18paf_1","--align-stretch--m":"_--align-stretch--m_18paf_1","--align-baseline--m":"_--align-baseline--m_18paf_1","--justify-start--m":"_--justify-start--m_18paf_1","--justify-end--m":"_--justify-end--m_18paf_1","--justify-center--m":"_--justify-center--m_18paf_1","item--grow-true--m":"_item--grow-true--m_18paf_1","item--grow-false--m":"_item--grow-false--m_18paf_1","--direction-column--l":"_--direction-column--l_18paf_1","--direction-column-reverse--l":"_--direction-column-reverse--l_18paf_1","--direction-row--l":"_--direction-row--l_18paf_1","--direction-row-reverse--l":"_--direction-row-reverse--l_18paf_1","--align-start--l":"_--align-start--l_18paf_1","--align-end--l":"_--align-end--l_18paf_1","--align-center--l":"_--align-center--l_18paf_1","--align-stretch--l":"_--align-stretch--l_18paf_1","--align-baseline--l":"_--align-baseline--l_18paf_1","--justify-start--l":"_--justify-start--l_18paf_1","--justify-end--l":"_--justify-end--l_18paf_1","--justify-center--l":"_--justify-center--l_18paf_1","item--grow-true--l":"_item--grow-true--l_18paf_1","item--grow-false--l":"_item--grow-false--l_18paf_1","--direction-column--xl":"_--direction-column--xl_18paf_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_18paf_1","--direction-row--xl":"_--direction-row--xl_18paf_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_18paf_1","--align-start--xl":"_--align-start--xl_18paf_1","--align-end--xl":"_--align-end--xl_18paf_1","--align-center--xl":"_--align-center--xl_18paf_1","--align-stretch--xl":"_--align-stretch--xl_18paf_1","--align-baseline--xl":"_--align-baseline--xl_18paf_1","--justify-start--xl":"_--justify-start--xl_18paf_1","--justify-end--xl":"_--justify-end--xl_18paf_1","--justify-center--xl":"_--justify-center--xl_18paf_1","item--grow-true--xl":"_item--grow-true--xl_18paf_1","item--grow-false--xl":"_item--grow-false--xl_18paf_1"},Gn={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"},cn=e=>e?{classNames:[Gn.root,...B(Gn,"--radius",e)]}:null,Xn={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"},Jn=e=>{if(e===void 0)return null;const t=[Xn.root,...B(Xn,"--bleed",Le(e,r=>typeof r=="number"&&r>0))],n=re("--rs-bleed",e);return{classNames:t,variables:n}},bo={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"},Qn=e=>{if(!e)return null;const t=re("--rs-w",e);return{classNames:B(bo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},xo={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"},wt=e=>{if(!e)return null;const t=re("--rs-h",e);return{classNames:B(xo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},yo={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"},wo=e=>{if(!e)return null;const t=re("--rs-max-w",e);return{classNames:B(yo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},jo={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"},Co=e=>{if(!e)return null;const t=re("--rs-max-h",e);return{classNames:B(jo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},ko={"--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"},No=e=>e?{classNames:B(ko,"--position",e)}:null,$o={"--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"},jt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",r=`--rs-inset${n}`,o=re(r,e);return{classNames:B($o,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:o}},Eo={root:"_root_i342i_1"},zo=e=>{if(!e)return null;const t=re("--rs-ratio",e);return{classNames:Eo.root,variables:t}},Zn=e=>{const{columns:t,grow:n,gapBefore:r,as:o="div",order:s,children:a,className:l,attributes:u}=e,m=M(X.item,l,r==="auto"&&X["item--gap-auto"],r!==void 0&&X["item--gap-before"],...B(X,"item--grow",n),...B(X,"item--columns",t)),_=p(p({},re("--rs-view-item-order",s)),re("--rs-view-item-gap-before",r));return i.jsx(o,k(p({},u),{style:p(p({},u==null?void 0:u.style),_),className:m,children:a}))},U=e=>{const{align:t,justify:n,wrap:r,gap:o,height:s,width:a,aspectRatio:l,maxHeight:u,maxWidth:m,padding:_,paddingInline:h,paddingBlock:f,paddingBottom:v,paddingEnd:b,paddingStart:w,paddingTop:g,bleed:y,animated:x,backgroundColor:C,borderColor:$,borderRadius:E,shadow:z,textAlign:P,overflow:I,position:O="relative",inset:S,insetTop:F,insetBottom:W,insetStart:L,insetEnd:V,zIndex:te,grow:je,as:fe="div",children:oe,divided:Q,className:He,attributes:Ce}=e,se=!!t||!!n||!!o||!!e.direction,H=e.direction||(se?"column":void 0),K=cn(E),Y=Jn(y),ie=Qn(a),ye=wt(s),G=wo(m),ge=Co(u),he=No(O),Me=jt(S),Re=jt(F,"top"),Ze=jt(W,"bottom"),et=jt(L,"start"),Se=jt(V,"end"),Pe=zo(l);let St=0,ot;const vt=({className:ve,key:de})=>{const qe=M(X.divider,ve);let me=!1;return typeof H=="string"&&H.startsWith("row")?me=!0:H&&(me=Object.keys(H).reduce((Ue,ke)=>{const Fe=H[ke];return Fe?k(p({},Ue),{[ke]:Fe.startsWith("row")}):Ue},{})),i.jsx("div",{className:qe,children:i.jsx(Yn,{vertical:me,blank:!0})},`${de}-divider`)},nn=({className:ve,child:de,index:qe})=>{var Fe,rn;const me=de.type===Zn,st=de.key||qe,Ue=!!qe&&Q&&vt({className:ve,key:st});let ke;return me?ke=c.cloneElement(de,{className:M(ve,de.props.className)}):ve||!c.isValidElement(de)?ke=i.jsx("div",{className:ve,children:de},st):ke=de,me&&((Fe=de.props)!=null&&Fe.grow)&&(ot=de.props.grow),me&&((rn=de.props)==null?void 0:rn.gap)==="auto"&&(ot=!0),[Ue,ke]},Vn=c.Children.map(oe,(ve,de)=>{if(!ve)return null;const qe=St;if(St+=1,ve.type===ln&&typeof ve.props.children!="function"){const me=ve.props,{children:st}=me,Ue=Ae(me,["children"]),ke=ve.key||de;return c.createElement(ln,k(p({},Ue),{key:ke}),Fe=>nn({className:Fe,child:st,index:qe}))}return nn({child:ve,index:qe})}),Pt=M(X.root,He,K==null?void 0:K.classNames,he==null?void 0:he.classNames,Y==null?void 0:Y.classNames,ie==null?void 0:ie.classNames,ye==null?void 0:ye.classNames,Pe==null?void 0:Pe.classNames,G==null?void 0:G.classNames,ge==null?void 0:ge.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,Ze==null?void 0:Ze.classNames,et==null?void 0:et.classNames,Se==null?void 0:Se.classNames,P&&X[`--align-text-${P}`],C&&X[`--bg-${C}`],$&&X[`--bd-${$}`],$&&X["--bd"],z&&X[`--shadow-${z}`],I&&X[`--overflow-${I}`],x&&X["--animated"],Q&&X["--divided"],(_!==void 0||h!==void 0||f!==void 0)&&X["--padding"],v!==void 0&&X["--padding-bottom"],b!==void 0&&X["--padding-end"],w!==void 0&&X["--padding-start"],g!==void 0&&X["--padding-top"],(se||ot)&&X["--flex"],...B(X,"--direction",H),...B(X,"--align",t),...B(X,"--justify",n),...B(X,"--nowrap",ot||r===!1),...B(X,"--wrap",r),...B(X,"item--grow",je)),Dn=p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p({},Ce==null?void 0:Ce.style),re("--rs-view-gap",o)),re("--rs-view-p-vertical",f||_)),re("--rs-view-p-horizontal",h||_)),re("--rs-view-p-bottom",v)),re("--rs-view-p-top",g)),re("--rs-view-p-start",w)),re("--rs-view-p-end",b)),Y==null?void 0:Y.variables),ie==null?void 0:ie.variables),ye==null?void 0:ye.variables),Pe==null?void 0:Pe.variables),G==null?void 0:G.variables),ge==null?void 0:ge.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),Ze==null?void 0:Ze.variables),et==null?void 0:et.variables),Se==null?void 0:Se.variables),te?{"--rs-view-z":te}:{});return i.jsx(fe,k(p({},Ce),{className:Pt,style:Dn,children:Vn}))};U.Item=Zn;const un={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:s,attributes:a}=e,l=wt(o),u=M(un.root,n,l==null?void 0:l.classNames,r&&un[`--color-${r}`],s&&un["--auto"]),m=typeof t=="object"?t:i.jsx(t,{}),_=p(p({},a==null?void 0:a.style),l==null?void 0:l.variables);return i.jsx("span",k(p({},a),{"aria-hidden":"true",className:u,style:_,children:c.cloneElement(m,{focusable:!1})}))},To=()=>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"})}),Ct={content:"_content_fcvpf_1","content--animated":"_content--animated_fcvpf_6",icon:"_icon_fcvpf_13","icon--active":"_icon--active_fcvpf_17"},Io=e=>{const{children:t}=e,{active:n,onToggle:r,triggerId:o,contentId:s,iconPosition:a="end",iconSize:l}=c.useContext(sn),u=M(Ct.icon,n&&Ct["icon--active"]),m=()=>{r==null||r(!n)},_={"aria-expanded":n,"aria-controls":s,id:o};return typeof t=="function"?i.jsx(i.Fragment,{children:t(k(p({},_),{onClick:m}),{active:n})}):i.jsx(Ve,{onClick:m,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(ce,{size:l||4,svg:To,className:u})]})})},kt=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},dn="data-rs-no-transition",Mo=()=>{document.documentElement.setAttribute(dn,"true")},So=()=>{document.documentElement.removeAttribute(dn)},Po=()=>!document.documentElement.hasAttribute(dn),Fo=e=>{const{children:t}=e,{active:n,triggerId:r,contentId:o}=c.useContext(sn),s=c.useRef(null),a=c.useRef(!1),[l,u]=c.useState(n?"auto":null),m=M(Ct.content,a.current&&l!=="auto"&&Ct["content--animated"],n&&Ct["content--active"]),_=h=>{h.propertyName==="height"&&u(n?"auto":null)};return c.useEffect(()=>{kt(()=>{a.current=!0})},[]),c.useEffect(()=>{const h=s.current;if(!h||!a.current)return;let f=0;n&&(h.style.height="auto",f=h.clientHeight,h.style.height="0"),n||(h.style.height=`${h.clientHeight}px`),u(f)},[n]),i.jsx("div",{className:m,ref:s,style:l!==null?{height:l}:void 0,onTransitionEnd:_,"aria-labelledby":r,id:o,role:"region",hidden:!n&&l===null,children:t})},_n=e=>{const{active:t}=e;return t!==void 0?i.jsx(Kn,p({},e)):i.jsx(po,p({},e))};_n.Trigger=Io,_n.Content=Fo;const mn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Ao=e=>{const{position:t="bottom",padding:n,paddingBlock:r=3,paddingInline:o=4,children:s,elevated:a,className:l,attributes:u}=e,m=M(mn.root,a&&mn["--elevated"],t&&mn[`--position-${t}`],l);return i.jsx(U,{className:m,attributes:u,paddingBlock:n||r,paddingInline:n||o,children:s})},tt={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"},Lo={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},Z=e=>{const{variant:t,color:n,weight:r,align:o,decoration:s,maxLines:a,children:l,className:u,attributes:m}=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||_&&Lo[_]||"div",f=M(tt.root,n&&tt[`--color-${n}`],...B(tt,"--variant",t),...B(tt,"--align",o),r&&tt[`--weight-${r}`],s&&tt[`--decoration-${s}`],a!==void 0&&tt["--clamp"],u),v=k(p({},m==null?void 0:m.style),{"--rs-text-lines":a});return i.jsx(h,k(p({},m),{className:f,style:v,children:l}))},Vo=e=>{const{title:t,children:n,icon:r,actionsSlot:o,color:s="neutral",inline:a,bleed:l,className:u,attributes:m}=e,_=s==="neutral",h=()=>a?i.jsxs(i.Fragment,{children:[t&&i.jsx(Z,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&i.jsx(Z,{variant:"body-3",as:"span",children:n})]}):i.jsxs(U,{gap:1,children:[t&&i.jsx(Z,{variant:"body-3",weight:"medium",children:t}),n&&i.jsx(Z,{variant:"body-3",children:n})]}),f=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(Z,{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:u,attributes:k(p({},m),{role:s==="critical"?"alert":"status"}),children:r?i.jsxs(i.Fragment,{children:[i.jsx(ce,{svg:r,size:5,color:_?"primary":s}),i.jsx(U.Item,{grow:!0,children:f(h())})]}):f(h())})},er=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Do=er.Provider,Nt=()=>c.useContext(er),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:r}=Nt();return{attributes:e,required:t,hasError:n,disabled:r}},tr={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},fn=(e,t)=>`${e}-${t||"caption"}`,At=e=>{const{children:t,id:n,required:r,hasError:o,group:s,disabled:a,size:l}=e,u=$e(n),m=s?"fieldset":"div",[_,h]=c.useState(!1),[f,v]=c.useState(!1),b=[_&&fn(u),f&&fn(u,"error")].filter(Boolean).join(" "),w={id:u,"aria-describedby":b},g=()=>{v(!0)},y=()=>{h(!0)};return i.jsx(m,{children:i.jsx(Do,{value:{required:r,hasError:o,errorRef:g,helperRef:y,attributes:w,group:s,disabled:a,size:l},children:t})})},Oo=e=>{const{children:t}=e,{attributes:n,required:r,group:o,disabled:s,size:a}=Nt(),l=`${n.id}-label`,u=o?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return i.jsxs(Z,k(p({},u),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:tr.label,color:s?"disabled":void 0,children:[t,r&&i.jsx(Z,{color:s?"disabled":"critical",as:"span",children:"*"})]}))},nr=e=>{const{children:t,variant:n,disabled:r}=e,{attributes:o,size:s,helperRef:a,errorRef:l}=Nt(),u=fn(o.id,n),m=n==="error"?"critical":"neutral-faded",_=n==="error"?l:a;return i.jsx(Z,{as:"span",variant:s==="large"?"body-3":"caption-1",color:r&&!n?"disabled":m,attributes:{id:u,role:m?"alert":void 0,ref:_},className:tr.caption,children:t})},qo=e=>{const{children:t}=e,{disabled:n}=Nt();return i.jsx(nr,{disabled:n,children:t})},Bo=e=>{const{children:t}=e,{hasError:n}=Nt();return n?i.jsx(nr,{variant:"error",children:t}):null};At.Label=Oo,At.Helper=qo,At.Error=Bo;const Ee={root:"_root_v29im_1",input:"_input_v29im_16",slot:"_slot_v29im_37",icon:"_icon_v29im_38",affix:"_affix_v29im_39",attachment:"_attachment_v29im_55","attachment--position-start":"_attachment--position-start_v29im_60","attachment--position-end":"_attachment--position-end_v29im_73","--disabled":"_--disabled_v29im_86","--size-medium":"_--size-medium_v29im_1","--size-large":"_--size-large_v29im_1","--size-xlarge":"_--size-xlarge_v29im_1","--variant-faded":"_--variant-faded_v29im_150","--variant-headless":"_--variant-headless_v29im_159","--status-error":"_--status-error_v29im_164","--size-medium--m":"_--size-medium--m_v29im_1","--size-large--m":"_--size-large--m_v29im_1","--size-xlarge--m":"_--size-xlarge--m_v29im_1","--size-medium--l":"_--size-medium--l_v29im_1","--size-large--l":"_--size-large--l_v29im_1","--size-xlarge--l":"_--size-xlarge--l_v29im_1","--size-medium--xl":"_--size-medium--xl_v29im_1","--size-large--xl":"_--size-large--xl_v29im_1","--size-xlarge--xl":"_--size-xlarge--xl_v29im_1"},rr=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(ce,{size:Le(r,u=>u==="large"?5:u==="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})},or=e=>{var S;const{onChange:t,onFocus:n,onBlur:r,name:o,value:s,defaultValue:a,placeholder:l,icon:u,endIcon:m,startSlot:_,endSlot:h,prefix:f,suffix:v,size:b="medium",variant:w="outline",className:g,attributes:y}=e,x=Ye(),C=$e(e.id),$=(x==null?void 0:x.attributes.id)||((S=e.inputAttributes)==null?void 0:S.id)||C,E=(x==null?void 0:x.disabled)||e.disabled,z=(x==null?void 0:x.hasError)||e.hasError,P=p(p({},e.inputAttributes),x==null?void 0:x.attributes),I=M(Ee.root,g,b&&B(Ee,"--size",b),z&&Ee["--status-error"],E&&Ee["--disabled"],w&&Ee[`--variant-${w}`]),O=F=>{t&&t({name:o,value:F.target.value,event:F})};return i.jsxs("div",k(p({},y),{className:I,children:[i.jsx(rr,{position:"start",icon:u,slot:_,size:b,affix:f}),i.jsx("input",k(p({},P),{className:Ee.input,disabled:E,name:o,placeholder:l,value:s,defaultValue:a,onChange:O,onFocus:n||(P==null?void 0:P.onFocus),onBlur:r||(P==null?void 0:P.onBlur),id:$})),i.jsx(rr,{position:"end",icon:m,slot:h,size:b,affix:v})]}))},Wo="Enter",Ho="Tab",sr="ArrowUp",ir="ArrowDown",ar="ArrowRight",lr="ArrowLeft",hn="data-rs-keyboard",Lt="data-rs-focus";class Ro{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 u,m;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=(u=n.nextId)!=null?u:null),a&&(a.previousId=(m=n.previousId)!=null?m: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 cr=()=>document.documentElement.hasAttribute(hn),ur='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Vt=()=>document.querySelector(`[${Lt}]`)||document.activeElement,vn=(e,t)=>{const r=Array.from(e.querySelectorAll(ur)).filter(o=>!o.hasAttribute("disabled")&&o.clientHeight>0);return t&&r.length&&r.unshift(t),r},dr=e=>{const{root:t,extraElement:n,target:r,mode:o}=e,s=vn(t,n),a=s.length-1,l=Vt(),u=s.indexOf(l),m={next:u+1,prev:u-1,first:0,last:a};let _=m[r];const h=_>a||_<0;return h&&(o==="action-menu"?_=r==="prev"?m.first:m.last:_=r==="prev"?m.last:m.first),{overflow:h,el:s[_]}},Dt=(e,t)=>{var n;(n=document.querySelector(`[${Lt}]`))==null||n.removeAttribute(Lt),t==="selection-menu"?e.setAttribute(Lt,"true"):e.focus()},Ot=(e,t)=>{const n=dr({root:e,target:t});Dt(n.el)},Uo=e=>Ot(e,"next"),Ko=e=>Ot(e,"prev"),Yo=e=>Ot(e,"first"),Go=e=>Ot(e,"last"),Xo=(()=>{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}}})(),qt=(()=>{let e=null,t=null;const n=new Ro;return(r,o={})=>{const{mode:s="dialog",onNavigateOutside:a,includeTrigger:l}=o,u=Vt(),m=s==="dialog",_=s==="content-menu",h=s==="selection-menu",f=m||_,v=s==="action-menu"||h,b=vn(r,l?u:void 0);let w;const g=new MutationObserver(()=>{const $=vn(r,l?u:void 0);$.length&&Dt($[0],s)}),y=($={})=>{const{withoutFocusReturn:E}=$;n.removePreviousTill(w,P=>document.body.contains(P.data.trigger)),g.disconnect(),u&&u.focus({preventScroll:E||!cr()}),e&&(e(),t&&t.release(),e=null,t=null);const z=n.tailId&&n.get(n.tailId);z&&qt(z.data.root,z.data.options)},x=$=>{const E=$.key,z=E===Ho,P=z&&!$.shiftKey,I=z&&$.shiftKey,O=v&&E===sr,S=v&&E===ir,F=I&&f||O,W=P&&f||S,L=dr({root:r,target:F?"prev":"next",extraElement:l?u:void 0,mode:s});if(z&&v||_&&z&&L.overflow){I&&Vt()!==u&&$.preventDefault(),y(),a==null||a();return}!F&&!W||($.preventDefault(),L.el&&Dt(L.el,s))};if(e&&e(),m&&(t=Xo(r)),document.addEventListener("keydown",x),e=()=>document.removeEventListener("keydown",x),g.observe(r,{childList:!0,subtree:!0}),!b.length)return null;const C=n.tailId&&n.get(n.tailId);return(!C||r!==C.data.root)&&(w=n.add({root:r,trigger:u,options:o}),Dt(b[0],s)),y}})(),Jo=100,Qo=150;let it={},De=null;const _r=e=>{it[e]&&(e===De&&(De=it[e].parentId),delete it[e],De===null&&(it={}))},Zo=(e,t,n)=>{var s;const r=De?it[De]:void 0;!((n==null?void 0:n.current)&&r&&((s=r.contentRef.current)==null?void 0:s.contains(n.current)))&&n&&De&&_r(De),it[e]={parentId:De,triggerRef:n,contentRef:t},De=e},mr=(e=!1,t,n)=>{const r=$e(),o=c.useCallback(()=>De===r,[r]);return c.useEffect(()=>{e?Zo(r,t,n):_r(r)},[e,r,t,n]),o},ue=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,at="+",ze={},pn=[],fr=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),gn=e=>fr(e).split(at).sort().join(at),hr=e=>e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase(),es=e=>{const t=[],n=e.join(at),o=gn(n).split(at),s=(a,l)=>{l.forEach((u,m)=>{const _=a?`${a}+${u}`:u;t.push(_),s(_,l.slice(m+1))})};return s("",o),t},ts=(e,t)=>{const n=Object.keys(e);n.length&&es(n).forEach(r=>{t(r)})},bn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(r=>{const o=e[n];o&&t(gn(r),o)})})};class ns{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{bn(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=>{bn(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)=>{ts(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=gn(t.key);bn(this.hotkeyMap,(r,o)=>{r.split(at).includes(n)&&(o.used=!1)})}}}const Bt=new ns,vr=c.createContext({}),rs=e=>{const{children:t}=e,[n,r]=c.useState(0),[o,s]=c.useState(0),a=c.useCallback(f=>{if(f.repeat||o===0)return;const v=hr(f);ze[v]=f,(v==="meta"||v==="control")&&(ze.mod=f),r(Object.keys(ze).length),v==="meta"&&pn.push(...Object.keys(ze)),ze.Meta&&pn.push(v)},[o]),l=c.useCallback(f=>{if(o===0)return;const v=hr(f);delete ze[v],(v==="meta"||v==="control")&&delete ze.mod,v==="meta"&&pn.forEach(b=>{delete ze[b]}),r(Object.keys(ze).length)},[o]),u=f=>!fr(f).split(at).some(b=>!ze[b]),m=c.useCallback((f,v)=>(s(b=>b+1),Bt.bindHotkeys(f,v),()=>{s(b=>b-1),Bt.unbindHotkeys(f)}),[]),_=c.useCallback(f=>{a(f),Bt.handleKeyDown(ze,f)},[a]),h=c.useCallback(f=>{l(f),Bt.handleKeyUp(f)},[l]);return c.useEffect(()=>(window.addEventListener("keydown",_),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",h)}),[_,h]),i.jsx(vr.Provider,{value:{addHotkeys:m,isPressed:u},children:t})},os=()=>c.useContext(vr),nt=(e,t=[],n)=>{const{addHotkeys:r,isPressed:o}=os(),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}},xn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ss=e=>{const t=c.useState(e||!1),[n,r]=t;return ue(()=>{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]),ue(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(xn).rtl,yn=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:yn(e.parentElement)},pr=16,Wt=["top-start","top","top-end"],Ht=["bottom-start","bottom","bottom-end"],Rt=["start","start-bottom","start-top"],Ut=["end","end-bottom","end-top"],is={top:[...Wt,...Ht,...Ut,...Rt],bottom:[...Ht,...Wt,...Ut,...Rt],start:[...Rt,...Ut,...Wt,...Ht],end:[...Ut,...Rt,...Wt,...Ht]},as=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,gr=(e,t)=>Math.floor(e/2-t/2),ls=e=>{const n=["top","bottom","start","end"].find(r=>e.startsWith(r))||"bottom";return is[n]},wn=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},br=(e,t,n,r)=>{const{position:o,rtl:s,width:a}=r;let l=0,u=0,m=o;switch(s&&(m=as(m)),(a==="full"||a==="trigger")&&(m=m.includes("top")?"top":"bottom"),m){case"bottom":case"top":l=gr(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(m){case"top":case"top-start":case"top-end":u=e.top-t.height;break;case"bottom":case"bottom-start":case"bottom-end":u=e.bottom;break;case"start":case"end":u=gr(e.height,t.height)+e.top;break;case"start-top":case"end-top":u=e.top;break;case"start-bottom":case"end-bottom":u=e.bottom-t.height;break}if(u===void 0||l===void 0)throw Error(`[Reshaped, flyout]: ${m} position is not valid`);u=Math.round(u+(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=pr,_=window.innerWidth-pr*2):a==="trigger"&&(_=e.width),{styles:{left:l,top:u,width:_,height:h},position:m}},xr={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},jn={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},cs=(e,t,n)=>{const{position:r,forcePosition:o,width:s}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(jn).forEach(v=>{const b=jn[v];a.style[v]=b.toString()}),s&&(s==="trigger"?a.style.width=`${l.width}px`:s!=="full"&&(a.style.width=s)),document.body.appendChild(a);const u=a.getBoundingClientRect(),m=yn(e),_=m.getBoundingClientRect(),h={top:_.top+document.documentElement.scrollTop-m.scrollTop,left:_.left+document.documentElement.scrollLeft-m.scrollLeft};let f=br(l,u,h,n);if(!wn(f.styles)&&!o){const v=ls(r),b=v.filter(g=>g==="top"||g==="bottom"),w=(g,y={})=>{const{fullWidth:x}=y;g.some(C=>{const $=k(p({},n),{width:x?"full":n.width,position:C}),E=br(l,u,h,$);return wn(E.styles)?(f=E,!0):!1})};w(v),wn(f.styles)||w(b,{fullWidth:!0})}return a.parentNode.removeChild(a),f},us=(e,t)=>{switch(t.type){case"render":return k(p({},e),{status:"rendered",styles:{pointerEvents:"none"}});case"position":return k(p({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:p(p({},xr),t.payload.styles)});case"show":return k(p({},e),{status:"visible"});case"hide":return k(p({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return k(p({},e),{status:"idle",styles:jn});default:throw new Error("Invalid reducer type")}},ds=(e,t,n)=>{const{position:r="bottom",forcePosition:o,width:s}=n,[a]=Ge(),[l,u]=c.useReducer(us,{position:r,styles:xr,status:"idle"}),m=c.useCallback(()=>{u({type:"render"})},[]),_=c.useCallback(()=>{u({type:"show"})},[]),h=c.useCallback(()=>{u({type:"hide"})},[]),f=c.useCallback(()=>{u({type:"remove"})},[]),v=c.useCallback(()=>{if(!e.current||!t.current)return;const b=cs(e.current,t.current,{width:s,position:r,forcePosition:o,rtl:a});u({type:"position",payload:b})},[e,t,r,a,o,s]);return c.useEffect(()=>{l.status==="rendered"&&v(),l.status==="positioned"&&kt(()=>_())},[l.status,v,_]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:v,render:m,hide:h,remove:f}),[m,v,h,f,l.position,l.styles,l.status])},_s=(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])},yr=c.createContext({}),Kt=()=>c.useContext(yr),ms=yr.Provider,wr=e=>{const{triggerType:t="click",onOpen:n,onClose:r,children:o,forcePosition:s,trapFocusMode:a,width:l,disableHideAnimation:u,contentGap:m,contentClassName:_,contentAttributes:h,position:f,active:v,id:b,instanceRef:w}=e,[g]=Ge(),y=c.useRef(null),x=c.useRef(null),C=$e(b),$=c.useRef(),E=c.useRef(null),z=c.useRef(!1),P=c.useRef(!1),I=c.useRef(!0),O=ds(y,x,{width:l,position:f,defaultActive:v,forcePosition:s}),S=Kt(),{status:F,updatePosition:W,render:L,hide:V,remove:te}=O,je=mr(t!=="hover"&&F!=="idle",x,y),fe=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),oe=c.useCallback(()=>{!z.current&&F==="idle"&&(n==null||n())},[F]),Q=c.useCallback(G=>{var Me;!(t==="click"&&!je())&&F!=="idle"&&(r==null||r(),G!=null&&G.closeParents&&((Me=S==null?void 0:S.handleClose)==null||Me.call(S)))},[F,je,t]),He=c.useCallback(G=>{var he;(he=x.current)!=null&&he.contains(G.relatedTarget)||t==="hover"&&a==="content-menu"||P.current||Q()},[Q,t,a]),Ce=c.useCallback(()=>{oe()},[oe]),se=c.useCallback(()=>{fe(),$.current=setTimeout(oe,Jo)},[fe,$,oe]),H=c.useCallback(()=>{fe(),$.current=setTimeout(()=>Q(),Qo)},[fe,$,Q]),K=c.useCallback(()=>{F==="idle"?oe():Q()},[F,oe,Q]),Y=()=>P.current=!0,ie=()=>P.current=!1;ue(()=>{if(v){L();return}Po()&&!u?V():te()},[v,L,V,u]);const ye=c.useCallback(G=>{x.current!==G.currentTarget||G.propertyName!=="transform"||F==="hidden"&&te()},[te,F]);return ue(()=>{F!=="visible"||!x.current||(E.current=qt(x.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{E.current=null,Q()}}))},[F,t,Q,a]),c.useEffect(()=>{!u&&F!=="hidden"||u&&F!=="idle"||E.current&&(t==="hover"&&(z.current=!0,setTimeout(()=>{z.current=!1},100)),E.current({withoutFocusReturn:!I.current}),E.current=null,I.current=!0)},[F,t,u]),c.useEffect(()=>()=>{E.current&&E.current(),E.current=null},[]),c.useEffect(()=>{const G=Rn(W,10);return window.addEventListener("resize",G),()=>window.removeEventListener("resize",G)},[W]),c.useEffect(()=>{W()},[g,W]),c.useImperativeHandle(w,()=>({open:oe,close:Q}),[oe,Q]),nt({Escape:()=>Q()},[Q]),_s([x,y],()=>{I.current=!1,Q()}),i.jsx(ms,{value:{id:C,flyout:O,triggerElRef:y,flyoutElRef:x,handleClose:Q,handleOpen:oe,handleFocus:Ce,handleBlur:He,handleMouseEnter:se,handleMouseLeave:H,handleTransitionEnd:ye,handleClick:K,handleContentMouseDown:Y,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:m,contentClassName:_,contentAttributes:h},children:o})},fs=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(wr,k(p({},e),{defaultActive:void 0,active:o,onClose:a,onOpen:l}))},hs=e=>{const{children:t}=e,{id:n,triggerElRef:r,triggerType:o,flyout:s,handleFocus:a,handleBlur:l,handleMouseEnter:u,handleMouseLeave:m,handleClick:_,handleOpen:h,trapFocusMode:f}=Kt();nt({[`${sr},${ir}`]:()=>{s.status==="idle"&&h()}},[h,s.status],{ref:r});let v={onBlur:l,ref:r};return o==="click"&&(v.onClick=_),o==="hover"&&(v.onMouseEnter=u,v.onMouseLeave=m),(o==="hover"&&f!=="action-menu"||o==="focus")&&(v.onFocus=a,v["aria-describedby"]=n),(o==="click"||o==="focus"||f==="action-menu")&&(f==="dialog"?v["aria-haspopup"]="dialog":f==="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)})},jr=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),Cn=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),vs=()=>{const{mode:e}=c.useContext(Cn);return e},Cr=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(jr),{mode:r,setMode:o,invertMode:s}=c.useContext(Cn);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||r,setColorMode:o,invertColorMode:s}),[e,r,o,s,t,n])},ps={root:"_root_r30zs_1"},lt=e=>{const{name:t,defaultName:n,colorMode:r,children:o,className:s}=e,[a,l]=c.useState(n),u=vs(),m=Cr(),_=!m.theme,h=t||a||m.theme,f=_?u:m.colorMode,b=r==="inverted"?f==="light"?"dark":"light":r||f,w=M(ps.root,s),g=y=>{l(y)};return ue(()=>{if(!(!document||!_))return document.documentElement.setAttribute("data-rs-theme",h),document.documentElement.setAttribute("data-rs-color-mode",b),()=>{document.documentElement.removeAttribute("data-rs-theme"),document.documentElement.removeAttribute("data-rs-color-mode")}},[h,b,_]),i.jsx(jr.Provider,{value:{theme:h,colorMode:b,setTheme:g},children:i.jsx("div",{className:w,"data-rs-theme":_?void 0:h,"data-rs-color-mode":_?void 0:b,children:o})})},gs=e=>{const{defaultMode:t,children:n}=e,[r,o]=c.useState(t||"light"),s=c.useCallback(l=>{o(u=>(u!==l&&Mo(),l))},[]);ue(()=>{kt(()=>{So()})},[r]);const a=c.useMemo(()=>({mode:r,setMode:s,invertMode:()=>{s(r==="light"?"dark":"light")}}),[r,s]);return i.jsx(Cn.Provider,{value:a,children:n})},kr=c.createContext({}),bs=()=>c.useContext(kr),Yt=e=>{const{children:t,targetRef:n}=e,r=bs(),o=n||r.scopeRef;return _e.createPortal(i.jsx(lt,{children:t}),(o==null?void 0:o.current)||document.body)};function xs(e){const{children:t}=e,n=c.useRef(null);return i.jsx(kr.Provider,{value:{scopeRef:n},children:t(n)})}Yt.Scope=xs;const $t={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"},ys=e=>{const{children:t,className:n,attributes:r}=e,{flyout:o,id:s,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:u,triggerType:m,handleMouseEnter:_,handleMouseLeave:h,handleContentMouseDown:f,handleContentMouseUp:v,contentGap:b,contentClassName:w,contentAttributes:g,trapFocusMode:y}=Kt(),{styles:x,status:C,position:$}=o,[E,z]=c.useState(!1);if(ue(()=>{z(!0)},[]),C==="idle"||!E)return null;const P=M($t.content,C==="visible"&&$t["--visible"],["visible","hidden"].includes(C)&&$t["--animated"],$&&$t[`--position-${$}`]),I=M($t.inner,n,w);let O;m==="hover"?O="tooltip":y==="dialog"?O="dialog":y==="selection-menu"?O="listbox":y==="action-menu"&&(O="menu");const S=i.jsx("div",{className:P,style:k(p({},x),{"--rs-flyout-gap":b}),ref:a,onTransitionEnd:u,onMouseEnter:m==="hover"?_:void 0,onMouseLeave:m==="hover"?h:void 0,onMouseDown:f,onTouchStart:f,onMouseUp:v,onTouchEnd:v,children:i.jsx("div",k(p({role:O},r),{id:s,"aria-modal":m==="click",style:g==null?void 0:g.style,className:I,children:t}))}),F=yn(l.current);return i.jsx(Yt,{targetRef:F===document.body?void 0:{current:F},children:S})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(wr,p({},e)):i.jsx(fs,p({},e))};Xe.Trigger=hs,Xe.Content=ys;const kn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},ws={root:"_root_e7w6q_1"},Nn=e=>{if(!e)return null;const t=re("--rs-p",e);return{classNames:ws.root,variables:t}},ct=e=>{var C;const{id:t,forcePosition:n,onOpen:r,onClose:o,active:s,defaultActive:a,children:l,width:u,contentGap:m,variant:_="elevated",triggerType:h="click",position:f="bottom",disableHideAnimation:v,instanceRef:b}=e,w=(C=e.padding)!=null?C:_==="headless"?0:4,g=e.trapFocusMode||(h==="hover"?"content-menu":void 0),y=Nn(w),x=M(kn.content,!!u&&kn["content--has-width"],_&&kn[`content--variant-${_}`],y==null?void 0:y.classNames);return i.jsx(Xe,{id:t,instanceRef:b,position:f,forcePosition:n,onOpen:r,onClose:o,trapFocusMode:g,triggerType:h,active:s,defaultActive:a,width:u,disableHideAnimation:v,contentGap:m,contentClassName:x,contentAttributes:{style:p({},y==null?void 0:y.variables)},children:l})};ct.Trigger=Xe.Trigger,ct.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"},js=e=>{const{children:t,className:n,attributes:r}=e,o=M(Be.aligner,n);return i.jsx("div",k(p({},r),{className:o,children:t}))},Cs=(e,t)=>{const{icon:n,startSlot:r,endSlot:o,children:s,color:a="primary",selected:l,disabled:u,onClick:m,href:_,size:h="medium",roundedCorners:f,className:v,attributes:b}=e,w=M(Be.root,v,B(Be,"--size",h),B(Be,"--rounded-corners",f),a&&Be[`--color-${a}`],l&&Be["--selected"],u&&Be["--disabled"]),g=Le(h,x=>x==="large"?3:2),y=Le(h,x=>x==="large"?5:4);return i.jsx(Ve,{disabled:u,className:w,attributes:b,onClick:m,href:_,ref:t,children:i.jsxs(U,{direction:"row",gap:g,align:"center",children:[n&&i.jsx(ce,{svg:n,className:Be.icon,size:y}),!n&&r,s&&i.jsx(U.Item,{grow:!0,className:Be.content,children:s}),o]})})},$n=c.forwardRef(Cs);$n.Aligner=js;const Gt=()=>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"})}),Xt={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},En=c.createContext(null),xe=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:r="click",trapFocusMode:o="action-menu"}=a,s=Ae(a,["children","position","triggerType","trapFocusMode"]);return i.jsx(ct,k(p({},s),{position:n,padding:0,trapFocusMode:o,triggerType:r,children:t}))},ks=e=>{const{children:t,attributes:n,className:r}=e,o=c.useContext(En),[s]=Ge(),{ref:a}=nt({[s?ar:lr]:()=>{var u;(u=o==null?void 0:o.current)==null||u.close()},[Wo]:()=>{const u=Vt();u==null||u.click()}},[o==null?void 0:o.current]),l=M(Xt.menu,r);return i.jsx(ct.Content,{className:l,attributes:k(p({},n),{ref:a}),children:t})},Ns=e=>{const{children:t}=e;return i.jsx("div",{className:Xt.section,role:"group",children:t})},Nr=e=>{const{onClick:t}=e,{handleClose:n}=Kt(),r=o=>{n&&n({closeParents:!0}),t&&t(o)};return i.jsx($n,k(p({},e),{roundedCorners:!0,className:Xt.item,attributes:p({role:"menuitem"},e.attributes),onClick:r}))},$s=e=>{const{children:t}=e,n=c.useRef();return i.jsx(En.Provider,{value:n,children:i.jsx(xe,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Es=e=>{const l=e,{children:t,attributes:n}=l,r=Ae(l,["children","attributes"]),o=c.useContext(En),[s]=Ge(),{ref:a}=nt({[s?lr:ar]:()=>{var u;(u=o==null?void 0:o.current)==null||u.open()}},[],{ref:n==null?void 0:n.ref});return i.jsx(Nr,k(p({},r),{attributes:k(p({},n),{ref:a}),endSlot:i.jsx(ce,{autoWidth:!0,svg:Gt,className:Xt.arrow}),children:t}))},zs=e=>{const{children:t}=e;return i.jsx(xe.Trigger,{children:n=>i.jsx(Es,{attributes:n,children:t})})};xe.Trigger=ct.Trigger,xe.Content=ks,xe.Section=Ns,xe.Item=Nr,xe.SubMenu=$s,xe.SubTrigger=zs;const $r=c.createContext({}),Er=e=>{const g=e,{children:t,onChange:n,onItemSelect:r,name:o}=g,s=Ae(g,["children","onChange","onItemSelect","name"]),[a,l]=c.useState(!1),[u,m]=c.useState(!1),_=!!c.Children.toArray(t).filter(Boolean).length,h=()=>l(!0),f=()=>l(!1),v=y=>{n==null||n(y),m(!1),h()},b=y=>{n==null||n({value:y.value,name:o}),r==null||r({value:y.value}),m(!0)},w=y=>{var x;requestAnimationFrame(()=>{u&&(l(!1),m(!1))}),(x=s.onFocus)==null||x.call(s,y)};return i.jsx($r.Provider,{value:{onItemClick:b},children:i.jsxs(xe,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!u&&_&&a,onClose:f,onOpen:h,disableHideAnimation:!0,children:[i.jsx(xe.Trigger,{children:C=>{var $=C,{ref:y}=$,x=Ae($,["ref"]);return i.jsx(or,k(p({},s),{name:o,onChange:v,attributes:k(p({},s.attributes),{ref:y}),inputAttributes:k(p({},x),{onFocus:E=>{var z;(z=x.onFocus)==null||z.call(x),w(E)},role:"combobox"})}))}}),i.jsx(xe.Content,{children:t})]})})},Ts=e=>{const a=e,{value:t,onClick:n}=a,r=Ae(a,["value","onClick"]),{onItemClick:o}=c.useContext($r),s=l=>{n==null||n(l),o({value:t})};return i.jsx(xe.Item,k(p({},r),{attributes:k(p({},r.attributes),{role:"option"}),onClick:s}))};Er.Item=Ts;const Jt={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"},Is=e=>{const{color:t="neutral",variant:n,src:r,size:o=12,squared:s,initials:a,icon:l,alt:u,className:m,attributes:_}=e,h=s?Le(o,w=>w>=24?"large":w>=12?"medium":"small"):"circular",f=wt(o),v=M(Jt.root,m,f==null?void 0:f.classNames,t&&Jt[`--color-${t}`],n&&Jt[`--variant-${n}`]),b=()=>r?i.jsx("img",{role:a?void 0:"presentation",src:r,alt:u,className:Jt.img}):l?i.jsx(ce,{svg:l,size:Le(o,w=>Math.ceil(w*.4))}):a;return i.jsx(U,{borderRadius:h,attributes:k(p({},_),{style:p({},f==null?void 0:f.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:v,children:b()})},zr=()=>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"},Ms=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(p({},s),{className:a,children:t}))},Tr=e=>{const{children:t,color:n,rounded:r,size:o="medium",icon:s,endIcon:a,variant:l,hidden:u,href:m,onClick:_,onDismiss:h,dismissAriaLabel:f,className:v,attributes:b}=e,w=!!(_||m),g=o==="large"?4:3.5,y=M(Te.root,v,r&&Te["--rounded"],u&&Te["--hidden"],o&&Te[`--size-${o}`],n&&Te[`--color-${n}`],l&&Te[`--variant-${l}`],w&&Te["--actionable"]);return i.jsxs(Ve,{onClick:_,href:m,className:y,attributes:b,children:[s&&i.jsx(ce,{svg:s,autoWidth:!0,size:g}),t&&i.jsx(Z,{variant:o==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":u?"true":void 0},children:t}),a&&i.jsx(ce,{svg:a,autoWidth:!0,size:g}),h&&i.jsx(Ve,{onClick:h,className:Te.dismiss,as:"span",attributes:{"aria-label":f},children:i.jsx(ce,{svg:zr,size:g})})]})};Tr.Container=Ms;const Qt={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"},Ir=e=>{const{size:t="small",color:n="primary",className:r,attributes:o}=e,s=o==null?void 0:o["aria-label"],a=M(Qt.root,r,B(Qt,"--size",t),n&&Qt[`--color-${n}`]);return i.jsx("span",k(p({},o),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:a,children:i.jsx("span",{className:Qt.inner})}))},le={root:"_root_1rnr5_1",loader:"_loader_1rnr5_33",icon:"_icon_1rnr5_41","--icon-position-end":"_--icon-position-end_1rnr5_45",text:"_text_1rnr5_56","--loading":"_--loading_1rnr5_62","--elevated":"_--elevated_1rnr5_79","--icon-only":"_--icon-only_1rnr5_83","--rounded":"_--rounded_1rnr5_89","--size-small":"_--size-small_1rnr5_1","--size-medium":"_--size-medium_1rnr5_1","--size-large":"_--size-large_1rnr5_1","--size-xlarge":"_--size-xlarge_1rnr5_1","--full-width":"_--full-width_1rnr5_135","--variant-solid":"_--variant-solid_1rnr5_149","--color-black":"_--color-black_1rnr5_149","--color-white":"_--color-white_1rnr5_150","--variant-faded":"_--variant-faded_1rnr5_151","--color-neutral":"_--color-neutral_1rnr5_151","--color-primary":"_--color-primary_1rnr5_152","--color-critical":"_--color-critical_1rnr5_153","--color-positive":"_--color-positive_1rnr5_154","--color-inherit":"_--color-inherit_1rnr5_155","--variant-outline":"_--variant-outline_1rnr5_156","--variant-ghost":"_--variant-ghost_1rnr5_157","--highlighted":"_--highlighted_1rnr5_176","--disabled":"_--disabled_1rnr5_531",group:"_group_1rnr5_563",aligner:"_aligner_1rnr5_624","--aligner-position-all":"_--aligner-position-all_1rnr5_628","--aligner-position-start":"_--aligner-position-start_1rnr5_632","--aligner-position-end":"_--aligner-position-end_1rnr5_636","--aligner-position-top":"_--aligner-position-top_1rnr5_640","--aligner-position-bottom":"_--aligner-position-bottom_1rnr5_644","--size-small--m":"_--size-small--m_1rnr5_1","--size-medium--m":"_--size-medium--m_1rnr5_1","--size-large--m":"_--size-large--m_1rnr5_1","--size-xlarge--m":"_--size-xlarge--m_1rnr5_1","--full-width-true--m":"_--full-width-true--m_1rnr5_1","--full-width-false--m":"_--full-width-false--m_1rnr5_1","--size-small--l":"_--size-small--l_1rnr5_1","--size-medium--l":"_--size-medium--l_1rnr5_1","--size-large--l":"_--size-large--l_1rnr5_1","--size-xlarge--l":"_--size-xlarge--l_1rnr5_1","--full-width-true--l":"_--full-width-true--l_1rnr5_1","--full-width-false--l":"_--full-width-false--l_1rnr5_1","--size-small--xl":"_--size-small--xl_1rnr5_1","--size-medium--xl":"_--size-medium--xl_1rnr5_1","--size-large--xl":"_--size-large--xl_1rnr5_1","--size-xlarge--xl":"_--size-xlarge--xl_1rnr5_1","--full-width-true--xl":"_--full-width-true--xl_1rnr5_1","--full-width-false--xl":"_--full-width-false--xl_1rnr5_1"},Ss=e=>{const{children:t,className:n,attributes:r}=e,o=M(le.group,n);return i.jsx("div",k(p({},r),{className:o,role:"group",children:t}))},Ps=e=>{const{children:t,position:n,className:r,attributes:o}=e,s=typeof n=="string"?[n]:n,a=s?s.map(u=>le[`--aligner-position-${u}`]):[le["--aligner-position-all"]],l=M(le.aligner,r,...a);return i.jsx("div",k(p({},o),{className:l,children:t}))},Fs=(e,t)=>{const{variant:n="solid",color:r="neutral",elevated:o,highlighted:s,fullWidth:a,loading:l,disabled:u,type:m,href:_,size:h="medium",className:f,children:v,rounded:b,attributes:w,onClick:g,icon:y,endIcon:x}=e,C=(y||x)&&!v,$=M(le.root,f,r&&le[`--color-${r}`],n&&le[`--variant-${n}`],B(le,"--size",h),B(le,"--full-width",a),o&&n!=="ghost"&&le["--elevated"],b&&le["--rounded"],u&&le["--disabled"],l&&le["--loading"],s&&le["--highlighted"],C&&le["--icon-only"]),E=z=>{if(!(z==="start"&&y||z==="end"&&x))return null;const S=M(le.icon,z==="end"&&le["--icon-position-end"]),F=Le(h,W=>W==="large"?5:W==="xlarge"?6:4);return i.jsx(ce,{className:S,svg:z==="start"?y:x,size:F,autoWidth:!0})};return i.jsxs(Ve,{disabled:u||l,className:$,attributes:w,type:m,onClick:g,href:_,ref:t,children:[l&&i.jsx("div",{className:le.loader,children:i.jsx(Ir,{size:"small",color:"inherit"})}),E("start"),v&&i.jsx("span",{className:le.text,children:v}),E("end")]})},we=c.forwardRef(Fs);we.Group=Ss,we.Aligner=Ps;const Et={root:"_root_def7r_1","--color-primary":"_--color-primary_def7r_6","--color-critical":"_--color-critical_def7r_10","--color-positive":"_--color-positive_def7r_14","--color-inherit":"_--color-inherit_def7r_18","--variant-plain":"_--variant-plain_def7r_22","--disabled":"_--disabled_def7r_26","--variant-underline":"_--variant-underline_def7r_32","--with-icon":"_--with-icon_def7r_48"},As=(e,t)=>{const{icon:n,disabled:r,href:o,color:s="primary",variant:a="underline",className:l,children:u,attributes:m,type:_,onClick:h}=e,f=M(Et.root,l,r&&Et["--disabled"],a&&Et[`--variant-${a}`],s&&Et[`--color-${s}`],n&&Et["--with-icon"]);return i.jsxs(Ve,{href:o,disabled:r,className:f,attributes:m,type:_,onClick:h,ref:t,children:[n&&i.jsx(ce,{svg:n}),u]})},Mr=c.forwardRef(As),Ls=()=>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"})]}),Vs=e=>{const{children:t,onClick:n,href:r,icon:o,disabled:s}=e;return!r&&!n&&!s?i.jsx(Z,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(Mr,{onClick:n,href:r,icon:o,disabled:s,variant:"plain",color:"inherit",children:t})},Sr=e=>{const{children:t,separator:n,color:r,defaultVisibleItems:o,ariaLabel:s,className:a,attributes:l}=e,u=o&&o>=2?o:null,[m,_]=c.useState(!1),h=M(a),f=c.Children.count(t);let v=0;const b=()=>{_(!0)};return i.jsx("nav",k(p({},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,(w,g)=>{if(!w)return null;const y=f-(u||0),x=v===0,C=v>y,$=!u||x||C||m,E=v===y;v+=1;let z=null;return $?z=w:E&&(z=i.jsx(we.Aligner,{children:i.jsx(we,{variant:"ghost",size:"small",icon:Ls,onClick:b})})),z===null?null:i.jsxs(U,{as:"li",gap:2,direction:"row",align:"center",children:[g>0&&($||E)&&i.jsx(Z,{color:"neutral-faded",children:n||i.jsx(ce,{svg:Gt,size:3})}),i.jsx(Z,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:z})]},g)})})}))};Sr.Item=Vs;const ut={root:"_root_10bg5_1",content:"_content_10bg5_11","--selected":"_--selected_10bg5_16","--elevated":"_--elevated_10bg5_21","--actionable":"_--actionable_10bg5_26"},Ds=(e,t)=>{const{padding:n=4}=e,{selected:r,elevated:o,bleed:s,height:a,onClick:l,href:u,children:m,className:_,attributes:h,as:f="div"}=e,v=!!u||!!l,b=cn("medium"),w=Jn(s),g=Nn(n),y=wt(a),x=M(ut.root,b==null?void 0:b.classNames,w==null?void 0:w.classNames,g==null?void 0:g.classNames,y==null?void 0:y.classNames,v&&ut["--actionable"],o&&ut["--elevated"],r&&ut["--selected"],_),C=p(p(p(p({},h==null?void 0:h.style),w==null?void 0:w.variables),g==null?void 0:g.variables),y==null?void 0:y.variables);return v?i.jsx(Ve,{className:x,attributes:k(p({},h),{style:C}),href:u,as:f,onClick:l,ref:t,children:i.jsx("span",{className:ut.content,children:m})}):i.jsx(f,k(p({},h),{onClick:l,href:u,ref:t,className:x,style:C,children:i.jsx("span",{className:ut.content,children:m})}))},Os=c.forwardRef(Ds),Pr=()=>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 dt=(e=>(e.back="back",e.forward="forward",e))(dt||{});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"},Fr=e=>{const{type:t,scrollElRef:n,scrollPosition:r,onClick:o,isRTL:s,mounted:a}=e,[l,u]=c.useState(!1),[m,_]=c.useState(!1),h=t===dt.forward,f=t===(s?dt.back:dt.forward),v=M(We.control,f?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],m&&We["--control-rendered"]);return ue(()=>{const b=n.current;if(!b||!a)return;let w;const g=Math.abs(r),y=g<=0,x=g+b.clientWidth>=b.scrollWidth-1;return(h?x:y)?(u(!1),w=setTimeout(()=>_(!1),1500)):(_(!0),u(!0)),()=>{w&&clearTimeout(w)}},[r,n.current,a]),i.jsx("div",{className:v,"aria-hidden":"true",children:i.jsx(we,{onClick:o,icon:f?Gt:Pr,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},qs=e=>{const{children:t,gap:n=3,visibleItems:r,bleed:o,navigationDisplay:s,instanceRef:a,className:l,attributes:u}=e,[m,_]=c.useState(!1),[h,f]=c.useState(0),[v]=Ge(),b=c.useRef(null),w={};typeof o=="object"&&Object.entries(o).forEach(([P,I])=>{w[P]=typeof I=="number"&&I>0});const g=M(We.root,l,...B(We,"--bleed",typeof o=="number"?!0:w)),y=fo(P=>{const I=P.target;f(I.scrollLeft)},16),x=()=>{const I=getComputedStyle(b.current).gap.split(" ")[0];return Number(I.replace("px",""))},C=()=>{const P=b.current;P.scrollBy({left:P.clientWidth+x(),top:0,behavior:"smooth"})},$=()=>{const P=b.current;P.scrollBy({left:-P.clientWidth-x(),top:0,behavior:"smooth"})},E=v?C:$,z=v?$:C;return c.useImperativeHandle(a,()=>({navigateBack:E,navigateForward:z})),ue(()=>{_(!0)},[]),i.jsxs("section",k(p({},u),{className:g,style:p(p({},re("--rs-carousel-items",r)),re("--rs-carousel-bleed",o)),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(Fr,{isRTL:v,type:dt.back,scrollElRef:b,scrollPosition:h,onClick:E,mounted:m}),i.jsx(Fr,{isRTL:v,type:dt.forward,scrollElRef:b,scrollPosition:h,onClick:z,mounted:m})]}),i.jsx(U,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:b,onScroll:y},children:c.Children.map(t,P=>i.jsx(U.Item,{className:We.item,as:"li",children:P}))})]}))},Bs={root:"_root_1feer_1"},zn=e=>{const{name:t,value:n,type:r,onChange:o,onFocus:s,onBlur:a,checked:l,defaultChecked:u,disabled:m,className:_,attributes:h}=e,f=M(Bs.root,_);return i.jsx("input",k(p({},h),{className:f,type:r,name:t,value:n,checked:l,defaultChecked:u,disabled:m,onChange:o,onFocus:s||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},Ar=c.createContext(null),Ws=()=>c.useContext(Ar),Lr=e=>{const{onChange:t,name:n,disabled:r,value:o,children:s,hasError:a}=e,l=u=>{const{event:m,value:_,checked:h}=u;if(!_)return;let f=[...o];h?f.push(_):f=f.filter(v=>v!==_),t&&t({name:n,value:f,event:m})};return i.jsx(Ar.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:s})},Hs=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(Lr,k(p({},e),{value:r,defaultValue:void 0,onChange:s}))},Rs=e=>{const{value:t}=e;return t!==void 0?i.jsx(Lr,p({},e)):i.jsx(Hs,p({},e))},Us=()=>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_mh3xy_1",decorator:"_decorator_mh3xy_11",field:"_field_mh3xy_15",icon:"_icon_mh3xy_29",input:"_input_mh3xy_39","--error":"_--error_mh3xy_45","--disabled":"_--disabled_mh3xy_83"},Ks=e=>{var E;const{children:t,value:n,onChange:r,onFocus:o,onBlur:s,indeterminate:a,className:l,attributes:u,inputAttributes:m}=e,_=Ws(),h=Ye(),f=(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),b=_?(E=_.value)==null?void 0:E.includes(n):e.checked,w=_?void 0:e.defaultChecked,g=_?_.name:e.name,y=c.useRef(null),x=t?"label":"span",C=M(Je.root,l,f&&Je["--error"],v&&Je["--disabled"]),$=z=>{if(!g)return;const{checked:P}=z.target,I={name:g,value:n,checked:P,event:z};r&&r(I),_!=null&&_.onChange&&_.onChange(I)};return ue(()=>{y.current.indeterminate=a||!1},[a]),i.jsxs(x,k(p({},u),{className:C,children:[i.jsxs("span",{className:Je.field,children:[i.jsx(zn,{className:Je.input,type:"checkbox",checked:b,defaultChecked:w,name:g,disabled:v,value:n,onChange:$,onFocus:o,onBlur:s,attributes:k(p({},m),{ref:y})}),i.jsx("div",{className:Je.decorator,children:i.jsx(ce,{svg:Us,className:Je.icon})})]}),t&&i.jsx("span",{className:Je.text,children:t})]}))},Ys={root:"_root_1c40o_1"},Gs=e=>{const{children:t,padding:n=4,width:r,className:o,attributes:s}=e,a=M(Ys.root,o);return i.jsx(U,{attributes:s,className:a,paddingInline:n,width:r,maxWidth:"100%",children:t})},zt={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"},Xs=e=>{const{children:t,align:n,onClose:r,hideCloseButton:o,variant:s,closeAriaLabel:a,className:l,attributes:u}=e,m=M(zt.root,l,s&&zt[`--variant-${s}`],n&&zt[`--align-${n}`],o&&zt["--hide-close"]),_=s==="media"?"div":we.Aligner;return i.jsxs("div",k(p({},u),{className:m,children:[t,!o&&i.jsx(_,{className:zt.close,children:i.jsx(we,k(p({size:"small"},s==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:r,attributes:{"aria-label":r?a:void 0},icon:zr}))})]}))},Js={root:"_root_r7flr_1"},Qs=e=>{const{children:t}=e;return i.jsx("div",{className:Js.root,children:t})},Vr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},Zs=e=>{const{children:t,active:n,className:r,attributes:o}=e,s=M(Vr.root,n&&Vr["--active"],r);return i.jsx(Z,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:o,children:t})},Zt={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},ei=e=>{const{src:t,alt:n,width:r,height:o,onLoad:s,onError:a,fallback:l,displayMode:u="cover",borderRadius:m,className:_,attributes:h,imageAttributes:f}=e,[v,b]=c.useState("loading"),w=cn(m),g=Qn(r),y=wt(o),x=M(Zt.root,w==null?void 0:w.classNames,g==null?void 0:g.classNames,y==null?void 0:y.classNames,u&&Zt[`--display-mode-${u}`],_),C=M(Zt.image,x),$=M(Zt.fallback,x),E=p(p({},g==null?void 0:g.variables),y==null?void 0:y.variables),z=I=>{b("success"),s==null||s(I)},P=I=>{b("error"),a==null||a(I)};return c.useEffect(()=>{b("loading")},[t]),(v==="error"||!t)&&l?typeof l=="string"?i.jsx("img",k(p({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:E})):i.jsx("div",k(p({},h),{className:$,style:E,children:l})):i.jsx("img",k(p(p({},h),f),{src:t,alt:n,role:n?void 0:"presentation",onLoad:z,onError:P,className:C,style:E}))},Tn=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}},ti=(()=>{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}})(),Dr=()=>{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 u=ti();document.body.style.paddingRight=`${u}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}},_t={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Or=e=>{const{active:t,children:n,transparent:r,onClose:o,className:s,attributes:a}=e,[l,u]=c.useState(!1),m=c.useRef(null),_=c.useRef(!1),h=c.useRef(null),{lockScroll:f,unlockScroll:v}=Dr(),{active:b,activate:w,deactivate:g}=Tn(t||!1),{active:y,activate:x,deactivate:C}=Tn(t||!1),$=mr(t,m),E=M(_t.root,y&&_t["--visible"],r&&_t["--transparent"],s),z=L=>{if(!m.current)return;const V=m.current.firstChild;if(V)return V.contains(L)},P=()=>{m.current&&(h.current=qt(m.current))},I=()=>{h.current&&(h.current(),h.current=null)},O=c.useCallback(()=>{!y||!$()||o&&o()},[y,$]),S=L=>{_.current=!z(L.target)},F=L=>{const V=!z(L.target);_.current&&V&&!r&&O()},W=L=>{L.propertyName!=="opacity"||L.target!==L.currentTarget||y||(r||v(),g())};return nt({Escape:O},[O]),c.useEffect(()=>{t&&!b&&w(),!t&&b&&C()},[t,w,C,b]),c.useEffect(()=>{b&&(r||f(),kt(()=>x()))},[b,x,f,r]),c.useEffect(()=>{if(b)return P(),()=>I()},[b]),c.useEffect(()=>()=>{r||v()},[v,r]),ue(()=>{u(!0)},[]),!b||!l?null:i.jsx(Yt,{children:i.jsx(Yt.Scope,{children:L=>i.jsx("div",k(p({},a),{ref:L,role:"button",tabIndex:-1,className:E,onMouseDown:S,onMouseUp:F,onTransitionEnd:W,children:i.jsxs("div",{className:_t.wrapper,children:[i.jsx("div",{className:_t.inner,children:i.jsx("div",{className:_t.content,ref:m,children:typeof n=="function"?n({active:y}):n})}),"P"]})}))})})},In={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"},qr=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Br=()=>c.useContext(qr),ni=e=>{const{children:t}=e,{id:n,setTitleMounted:r}=Br();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(Z,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},ri=e=>{const{children:t}=e,{id:n,setSubtitleMounted:r}=Br();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(Z,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},Mn=e=>{const{children:t,onClose:n,active:r,size:o,padding:s=4,position:a="center",transparentOverlay:l,className:u,attributes:m}=e,_=$e(),[h,f]=c.useState(!1),[v,b]=c.useState(!1),w=Nn(s),g=c.useMemo(()=>({titleMounted:h,setTitleMounted:f,subtitleMounted:v,setSubtitleMounted:b,id:_}),[_,v,h]);return i.jsx(Or,{onClose:n,active:r,transparent:l,children:({active:y})=>{const x=M(In.root,u,w==null?void 0:w.classNames,y&&In["--active"],B(In,"--position",a));return i.jsx(qr.Provider,{value:g,children:i.jsx("div",k(p({},m),{style:p(p({},w==null?void 0:w.variables),re("--rs-modal-size",o)),"aria-labelledby":h?`${_}-title`:void 0,"aria-describedby":v?`${_}-subtitle`:void 0,className:x,"aria-modal":"true",role:"dialog",children:t}))})}})};Mn.Title=ni,Mn.Subtitle=ri;const Tt={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"},oi=e=>{const{value:t=0,min:n=0,max:r=100,color:o="primary",size:s="medium",duration:a,className:l,attributes:u}=e,m=M(Tt.root,l,o&&Tt[`--color-${o}`],s&&Tt[`--size-${s}`],!!a&&Tt["--duration"]),_=r-n,h=t-n,b=`${Math.max(n,Math.min(r,h))/_*100-100}%`;return i.jsx("div",k(p({role:"progressbar"},u),{className:m,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":t,children:i.jsx("div",{className:Tt.value,style:{"--rs-progress-value":b,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Wr=c.createContext(null),si=()=>c.useContext(Wr),Hr=e=>{const{onChange:t,name:n,disabled:r,value:o,children:s,hasError:a}=e,l=({event:u,value:m})=>{m&&t&&t({name:n,value:m,event:u})};return i.jsx(Wr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:s})},ii=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(Hr,k(p({},e),{value:r,defaultValue:void 0,onChange:s}))},ai=e=>{const{value:t}=e;return t!==void 0?i.jsx(Hr,p({},e)):i.jsx(ii,p({},e))},rt={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"},li=e=>{const{children:t,value:n,onChange:r,onFocus:o,onBlur:s,className:a,attributes:l,inputAttributes:u}=e,m=Ye(),_=si(),h=(m==null?void 0:m.hasError)||e.hasError||(_==null?void 0:_.hasError),f=(m==null?void 0:m.disabled)||e.disabled||(_==null?void 0:_.disabled),v=_?_.value===n:e.checked,b=_?void 0:e.defaultChecked,w=_?_.name:e.name,g=t?"label":"span",y=M(rt.root,a,h&&rt["--error"],f&&rt["--disabled"]),x=C=>{if(!w)return;const{checked:$}=C.target,E={name:w,value:n,checked:$,event:C};r&&r(E),_!=null&&_.onChange&&_.onChange(E)};return i.jsxs(g,k(p({},l),{className:y,children:[i.jsxs("span",{className:rt.field,children:[i.jsx(zn,{className:rt.input,type:"radio",checked:v,defaultChecked:b,name:w,disabled:f,value:n,onChange:x,onFocus:o,onBlur:s,attributes:u}),i.jsx("div",{className:rt.decorator})]}),t&&i.jsx("span",{className:rt.text,children:t})]}))},Rr={short:4e3,long:8e3},It=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Ur={queues:It.reduce((e,t)=>p({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},en=c.createContext(Ur),ci=()=>{const{add:e,hide:t}=c.useContext(en);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"},ui=e=>{const{size:t="small",text:n,children:r,color:o="inverted",icon:s,title:a,actionsSlot:l,startSlot:u,collapsed:m,attributes:_}=e;let h=o==="inverted"||o==="neutral"?"elevation-overlay":o;o==="neutral"&&(h=m?"neutral":"elevation-overlay");const f=o==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",b=t==="large";let w=[];l&&(w=Array.isArray(l)?l:[l]);const g=(a||n)&&i.jsxs(i.Fragment,{children:[a&&i.jsxs(Z,{variant:"body-3",weight:"bold",as:v,children:[a," "]}),i.jsx(Z,{variant:"body-3",as:v,children:n})]}),y=i.jsxs(U,{backgroundColor:h,borderColor:f,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:b?"start":"center",className:Oe.toast,attributes:_,children:[s&&i.jsx(ce,{size:5,svg:s,className:Oe.icon}),u&&!s&&i.jsx(U.Item,{children:u}),i.jsx(U.Item,{grow:!0,children:i.jsxs(U,{direction:b?"column":"row",align:b?"start":"center",gap:3,children:[i.jsx(U.Item,{grow:!0,children:g&&r||t!=="small"?i.jsxs(U,{gap:.5,children:[g,r&&i.jsx(U,{gap:3,children:r})]}):g||r}),w.length&&i.jsx(U,{direction:"row",align:"center",gap:2,children:w.map((x,C)=>{const $=t==="large"?C===0:C===w.length-1,z={variant:$?"solid":"ghost",size:"small",color:$?o==="neutral"||o==="inverted"?"neutral":"white":"inherit",elevated:o!=="neutral"};return x.type===we?c.createElement(we,k(p(p({},z),x.props),{key:C})):x})})]})})]});return o==="inverted"?i.jsx(lt,{colorMode:"inverted",children:y}):y},di=e=>{const{toastProps:t,id:n,status:r,inspected:o,index:s}=e,{timeout:a="short"}=t,{show:l,hide:u,remove:m}=c.useContext(en),[_,h]=c.useState(),f=c.useRef(),v=c.useRef(!1),b=c.useRef(null),w=c.useRef(null),g=r==="entered",y=M(Oe.container,g&&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"]),x=c.useCallback(()=>{f.current&&clearTimeout(f.current)},[]),C=c.useCallback(()=>{x();const E=typeof a=="string"?Rr[a]:a;a!==0&&(f.current=setTimeout(()=>{u(n)},E!=null?E:Rr.short))},[u,n,a,x]),$=E=>{E.propertyName==="height"&&(g||m(n))};return c.useEffect(()=>{g&&(o?x():C())},[o,C,x,g]),c.useEffect(()=>{w.current&&h(w.current.clientHeight),console.log("show"),l(n),C()},[l,n,C]),c.useEffect(()=>{w.current&&(g?b.current=qt(w.current,{includeTrigger:!0,mode:"content-menu"}):b.current&&cr()&&(b.current(),b.current=null))},[g]),c.useEffect(()=>{if(!g||s>0)return;const E=()=>{v.current=!0,kt(()=>{v.current=!1}),w.current&&h(w.current.clientHeight)};return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[g,s]),i.jsx("li",{className:y,style:{height:r==="entered"?`calc(${_}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:v.current?"0s":void 0},onTransitionEnd:$,onFocus:x,onBlur:C,children:i.jsx("span",{className:Oe.wrapper,children:i.jsx(ui,k(p({},t),{collapsed:s>0&&!o,attributes:{ref:w}}))})})},_i=e=>{const{position:t}=e,{queues:n,options:r}=c.useContext(en),[o,s]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),u=n[t],{width:m,expanded:_}=(r==null?void 0:r[t])||{},h=M(Oe.region,Oe[`region--position-${t}`]),f=u.filter(x=>x.status==="entered").length;let v=0;const b=()=>{a.current=!0},w=x=>{let C=x.target,$=!1;for(;C&&C!==l.current&&!$;)$=C.matches(ur),C=C.parentElement;$||s(E=>!E),a.current=!1},g=()=>{a.current||s(!0)},y=()=>{a.current||s(!1)};return c.useEffect(()=>{u.length===0&&s(!1)},[u.length]),u.length?i.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:l,onTouchStart:b,onClick:w,onMouseEnter:g,onMouseLeave:y,style:{width:m},children:u.map((x,C)=>{const $=f-C+v-1;return x.status!=="entered"&&(v+=1),i.jsx(di,k(p({},x),{index:$,inspected:o||!!_}),x.id)})}):null};let mi=0;const fi=()=>`__rs-toast-${mi++}`,hi=(e,t)=>{let n;switch(t.type){case"add":const r=t.payload.toastProps||{},{position:o="bottom-end"}=r,s=Ae(r,["position"]);return k(p({},e),{[o]:[...e[o],{id:t.payload.id,toastProps:s,status:"entering"}]});case"show":const{id:a}=t.payload;return n=p({},e),It.forEach(m=>{n[m]=n[m].map(_=>_.status!=="entering"?_:_.id===a?k(p({},_),{status:"entered"}):_)}),n;case"hide":const{id:l}=t.payload;return n=p({},e),It.forEach(m=>{n[m]=n[m].map(_=>_.id===l?k(p({},_),{status:"exiting"}):_)}),n;case"remove":const{id:u}=t.payload;return n=p({},e),It.forEach(m=>{n[m]=n[m].filter(_=>_.id!==u)}),n}},vi=e=>{const{children:t,options:n}=e,[r,o]=c.useReducer(hi,Ur.queues),s=c.useCallback(_=>{const h=fi();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:_}})},[]),u=c.useCallback(_=>{o({type:"remove",payload:{id:_}})},[]),m=c.useMemo(()=>({queues:r,add:s,show:a,hide:l,remove:u,inspecting:!1,options:n}),[r,a,l,s,u,n]);return i.jsxs(en.Provider,{value:m,children:[t,It.map(_=>i.jsx(_i,{position:_},_))]})},pi=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(hn,"true")},t=()=>{document.documentElement.removeAttribute(hn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},Bl="",gi={root:"_root_18j53_1"},bi=e=>{const{children:t,defaultRTL:n,defaultViewport:r="s",toastOptions:o}=e,s=ss(n);return pi(),i.jsx(xn.Provider,{value:{rtl:s,defaultViewport:r},children:i.jsx(rs,{children:i.jsx(vi,{options:o,children:t})})})},xi=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:r,className:o}=e,s=M(gi.root,o);return i.jsx(gs,{defaultMode:r,children:i.jsx(lt,{name:t,defaultName:n,className:s,children:i.jsx(bi,k(p({},e),{children:e.children}))})})},Mt={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"},yi=e=>{const{children:t,backgroundSlot:n,position:r="cover",attributes:o,className:s,scrimClassName:a}=e,l=M(Mt.root,!!n&&Mt["--with-background"],r&&Mt[`--position-${r}`],s),u=M(Mt.scrim,a);return i.jsxs("div",k(p({},o),{className:l,children:[n,i.jsx("div",{className:u,children:i.jsx("div",{className:Mt.content,children:t})})]}))},wi=()=>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"},ji=e=>{var W,L;const{onChange:t,onClick:n,onFocus:r,onBlur:o,name:s,value:a,defaultValue:l,placeholder:u,options:m,children:_,icon:h,startSlot:f,size:v="medium",variant:b="outline",className:w,attributes:g}=e,[y,x]=c.useState(a===void 0?!l:!a),C=Ye(),$=$e(e.id),E=((W=C==null?void 0:C.attributes)==null?void 0:W.id)||((L=e.inputAttributes)==null?void 0:L.id)||$,z=(C==null?void 0:C.disabled)||e.disabled,P=(C==null?void 0:C.hasError)||e.hasError,I=p(p({},e.inputAttributes),C==null?void 0:C.attributes),O=M(Ie.root,w,v&&B(Ie,"--size",v),P&&Ie["--status-error"],z&&Ie["--disabled"],y&&m&&Ie["--placeholder"],b&&Ie[`--variant-${b}`]),S=V=>{const te=V.target.value;a===void 0&&x(!te),t&&t({name:s,value:te,event:V})};c.useEffect(()=>{a!==void 0&&x(!a)},[a]);const F=(f||h)&&i.jsx("div",{className:Ie.slot,children:h?i.jsx(ce,{size:Le(v,V=>V==="large"?5:V==="xlarge"?6:4),svg:h,className:Ie.icon}):f});return i.jsxs("div",k(p({},g),{className:O,children:[m?i.jsxs(i.Fragment,{children:[F,i.jsxs("select",k(p({},I),{className:Ie.input,disabled:z,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:E,children:[u&&i.jsx("option",{value:"",children:u}),m.map(V=>i.jsx("option",{value:V.value,disabled:V.disabled,children:V.label},V.value))]}))]}):i.jsxs(i.Fragment,{children:[i.jsxs(Ve,{className:Ie.input,disabled:z,onClick:n,attributes:k(p({},I),{onFocus:r||(I==null?void 0:I.onFocus),onBlur:o||(I==null?void 0:I.onBlur)}),children:[F,_||(u?i.jsx(Z,{color:"neutral-faded",children:u}):null)]}),i.jsx("input",{type:"hidden",value:a,name:s})]}),i.jsx("div",{className:Ie.arrow,children:i.jsx(ce,{svg:wi,color:z?"disabled":"neutral-faded",size:Le(v,V=>V==="large"||V==="xlarge"?5:4)})})]}))},Ci={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},ki=e=>{const{borderRadius:t="small",width:n,height:r,className:o,attributes:s}=e,a=M(Ci.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"},Ni=(e,t)=>{const{name:n,value:r,disabled:o,active:s,position:a,max:l,min:u,onChange:m,onDragStart:_,renderValue:h}=e,f=c.useId(),v=M(Qe.thumb,s&&Qe["thumb--active"]),b=h?h({value:r}):r,w=g=>{m(+g.target.value)};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:Qe.input,type:"range",name:n,value:r,onChange:w,disabled:o,max:l,min:u,"aria-labelledby":f}),i.jsx("div",{ref:t,className:v,onMouseDown:_,onTouchStart:_,style:{insetInlineStart:`${a}%`},id:f,"aria-hidden":"true",children:i.jsx(lt,{className:Qe.tooltip,colorMode:"inverted",children:i.jsx(Z,{variant:"caption-1",weight:"medium",children:b})})})]})},Kr=c.forwardRef(Ni),Yr=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,Sn=(e,t)=>Math.round(e/t)*t,Pn=e=>{var Ce;const{name:t,range:n,max:r,min:o,step:s=1,onChange:a,onChangeCommit:l,renderValue:u,className:m,attributes:_}=e,h=n&&e.minValue!==void 0?Sn(e.minValue,s):void 0,f=Sn(n?e.maxValue:e.value,s),v=c.useRef(null),b=c.useRef(null),w=c.useRef(null),[g,y]=c.useState(null),[x]=Ge(),C=Ye(),$=$e(),E=((Ce=C==null?void 0:C.attributes)==null?void 0:Ce.id)||$,z=`${E}-min`,P=`${E}-max`,I=(C==null?void 0:C.disabled)||e.disabled,O=M(Qe.root,I&&Qe["--disabled"],m),S=c.useCallback(se=>{if(!v.current)return;const H=v.current.clientWidth;let Y=(se-v.current.getBoundingClientRect().left)/H;x&&(Y=1-Y);let ie=(r-o)*Y+o;return ie=Math.max(o,Math.min(r,ie)),Sn(ie,s)},[r,o,x,s]),F=se=>(se-o)/(r-o)*100,W=c.useCallback((se,H)=>{if(!n)return;const K=H!=null&&H.commit?l:a;K==null||K({minValue:se,maxValue:f,name:t})},[f,t,n]),L=c.useCallback((se,H)=>{if(n){const Y=H!=null&&H.commit?l:a;Y==null||Y({minValue:h,maxValue:se,name:t});return}const K=H!=null&&H.commit?l:a;K==null||K({value:se,name:t})},[h,t,n]),V=({nativeEvent:se})=>{if(I)return;let H,K;const Y=Yr(se),ie=S(Y);[{ref:b,id:z},{ref:w,id:P}].forEach(G=>{if(!G.ref.current)return;const ge=G.ref.current,he=Math.abs(ge.getBoundingClientRect().left-Y);(H===void 0||he<=H)&&(H=he,K=G.id)}),!(!K||ie===void 0)&&(K===z&&W(ie),K===P&&L(ie),y(K))},te=()=>{I||y(z)},je=()=>{I||y(P)},fe=c.useCallback(()=>{g===z&&h!==void 0&&W(h,{commit:!0}),g===P&&L(f,{commit:!0}),y(null)},[h,f,W,L,g,z,P]),oe=c.useCallback(se=>{if(!g)return;const H=Yr(se),K=S(H);if(K===void 0)return;let Y=g;g===z&&K>f&&(Y=P),g===P&&h&&K<h&&(Y=z),Y===z&&W(K),Y===P&&L(K),g!==Y&&y(Y)},[g,h,f,S,L,W,P,z]);c.useEffect(()=>(window.addEventListener("mouseup",fe),window.addEventListener("touchend",fe),window.addEventListener("mousemove",oe),window.addEventListener("touchmove",oe),()=>{window.removeEventListener("mouseup",fe),window.removeEventListener("touchend",fe),window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe)}),[fe,oe]);const Q=h&&F(h),He=F(f);return i.jsxs("div",k(p({},_),{className:O,onMouseDown:V,onTouchStart:V,children:[i.jsx("div",{className:Qe.bar,ref:v,children:i.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${Q||0}%`,width:`${He-(Q||0)}%`}})}),h!==void 0&&Q!==void 0&&i.jsx(Kr,{id:z,active:z===g,name:t,disabled:I,onChange:W,value:h,onDragStart:te,position:Q,max:r,min:o,ref:b,renderValue:u}),i.jsx(Kr,{id:P,active:P===g,name:t,disabled:I,onChange:L,value:f,onDragStart:je,position:He,max:r,min:o,ref:w,renderValue:u})]}))},$i=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,u]=c.useState(s),[m,_]=c.useState(a),h=v=>{o||(_(v.value),r==null||r(v))},f=v=>{o&&(u(v.minValue),_(v.maxValue),r==null||r(v))};return o?i.jsx(Pn,k(p({},e),{min:t,max:n,minValue:l,maxValue:m,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:f})):i.jsx(Pn,k(p({},e),{min:t,max:n,value:m,defaultValue:void 0,onChange:h}))},Ei=e=>{const o=e,{min:t=0,max:n=100}=o,r=Ae(o,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?i.jsx(Pn,k(p({},r),{min:t,max:n})):i.jsx($i,k(p({},r),{min:t,max:n}))},mt={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"},zi=e=>{var x;const{children:t,name:n,checked:r,size:o,reversed:s,defaultChecked:a,onChange:l,onFocus:u,onBlur:m,className:_,attributes:h}=e,f=M(mt.root,o&&mt[`root--size-${o}`],s&&mt["root--reversed"],_),v=Ye(),b=$e((v==null?void 0:v.attributes.id)||e.id||((x=e.inputAttributes)==null?void 0:x.id)),w=p(p({},e.inputAttributes),v==null?void 0:v.attributes),g=(v==null?void 0:v.disabled)||e.disabled,y=C=>{l&&l({name:n,event:C,checked:C.target.checked})};return i.jsxs("label",k(p({},h),{className:f,children:[i.jsx("input",k(p({type:"checkbox"},w),{className:mt.input,name:n,checked:r,defaultChecked:a,disabled:g,onChange:y,onFocus:u||(w==null?void 0:w.onFocus),onBlur:m||(w==null?void 0:w.onBlur),id:b})),i.jsx("span",{className:mt.area,"aria-hidden":"true",children:i.jsx("span",{className:mt.thumb})}),t&&i.jsx(Z,{variant:"body-3",weight:"medium",children:t})]}))},Gr=c.createContext({}),Ti=Gr.Provider,Fn=e=>{const r=c.useContext(Gr),{id:t}=r,n=Ae(r,["id"]);return k(p({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Xr=e=>{const{children:t,value:n,onChange:r,onSilentChange:o,itemWidth:s,variant:a,name:l,direction:u="row",size:m="medium"}=e,_=$e(),h=c.useRef(null),f=c.useRef(h.current),[v,b]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),w=g=>{g!==void 0&&o&&o({value:g,name:l})};return i.jsx(Ti,{value:{value:n,name:l,size:m,direction:u,itemWidth:s,variant:a,onChange:r,id:_,setDefaultValue:w,elActiveRef:h,elPrevActiveRef:f,selection:v,setSelection:b},children:t})},Ii=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(Xr,k(p({},e),{onChange:s,onSilentChange:a,value:r,defaultValue:void 0}))},ee={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"},Mi=(e,t)=>{const{value:n,children:r,icon:o,href:s,attributes:a}=e,{onChange:l,panelId:u,name:m,size:_,value:h,selection:f,elActiveRef:v,elPrevActiveRef:b}=Fn(n),w=c.useRef(null),g=h===n,y=g&&f.status==="idle",x=M(ee.item,y&&ee["--item-active"]),C=!!m,$={role:"tab",tabIndex:g?0:-1,"aria-selected":g},E=c.useCallback(()=>{if(!("current"in w))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");b.current=v.current,v.current=w.current},[v,b]),z=()=>{s&&!l||(E(),l&&l({value:n,name:m}))};return c.useEffect(()=>{g&&E()},[g,E]),i.jsx("div",k(p({},a),{className:x,ref:w,role:"presentation",children:i.jsxs(Ve,{ref:t,href:s,insetFocus:!0,onClick:m?void 0:z,className:ee.button,as:m?"label":void 0,attributes:k(p({},!C&&$),{"aria-controls":u}),children:[m&&i.jsx(zn,{type:"radio",name:m,value:n,checked:y,onChange:z,className:ee.radio}),i.jsxs("span",{className:ee.buttonContent,children:[o&&i.jsx(ce,{svg:o,className:ee.icon,size:4}),r&&i.jsx(Z,{variant:_==="large"?"body-2":"body-3",children:r})]})]})}))},Jr=c.forwardRef(Mi),Qr=(e,t)=>e===t||!e?null:e.classList.contains(ee.listItem)?e:Qr(e.parentElement,t),Si=e=>{const{children:t,className:n,attributes:r}=e,{value:o,setDefaultValue:s,itemWidth:a,variant:l,name:u,direction:m,size:_,selection:h,setSelection:f,elActiveRef:v,elPrevActiveRef:b}=Fn(),[w]=Ge(),g=c.useRef(null),[y,x]=c.useState(null),C=M(ee.root,_&&ee[`--size-${_}`],m&&ee[`--direction-${m}`],a&&ee[`--item-width-${a}`],l&&ee[`--variant-${l}`],y&&ee[`--cut-off-${y}`],n),$=M(ee.selector,h.status==="idle"&&ee["--selector-hidden"],h.status==="animated"&&ee["--selector-animated"]),E=()=>{g.current.scrollBy({left:Math.ceil(g.current.clientWidth/2)*(w?-1:1),behavior:"smooth"})},z=()=>{g.current.scrollBy({left:Math.ceil(g.current.clientWidth/2)*(w?1:-1),behavior:"smooth"})},P=()=>{f(S=>k(p({},S),{status:"idle"}))},I=c.useCallback(S=>{if(!g.current)return null;const F=Qr(S,g.current);return F?{scaleX:F.clientWidth,scaleY:F.clientHeight,top:F.offsetTop,left:F.offsetLeft}:null},[]),{ref:O}=nt({"ArrowLeft, ArrowUp":S=>{u||(S.preventDefault(),Ko(g.current))},"ArrowRight, ArrowDown":S=>{u||(S.preventDefault(),Uo(g.current))},Home:S=>{u||(S.preventDefault(),Yo(g.current))},End:S=>{u||(S.preventDefault(),Go(g.current))}});return ue(()=>{if(o)return;const S=c.Children.toArray(t)[0];!S||S.type!==Jr||s(S.props.value)},[o]),ue(()=>{if(!b.current||b.current===v.current)return;const S=I(b.current);S&&f(k(p({},S),{status:"prepared"}))},[o,I]),ue(()=>{if(h.status!=="prepared"||!v.current)return;const S=I(v.current);S&&f(k(p({},S),{status:"animated"}))},[h]),ue(()=>{const S=g.current;if(!S||m==="column")return;const F=()=>{S.clientWidth<S.scrollWidth||x(null);const V=S.scrollLeft*(w?-1:1),te=V>1,je=V+S.clientWidth<S.scrollWidth-1;if(je&&te)return x("both");if(te)return x("start");if(je)return x("end")},W=ho(F,100);return requestAnimationFrame(()=>{F()}),window.addEventListener("resize",W),S.addEventListener("scroll",W),()=>{window.removeEventListener("resize",W),S.removeEventListener("scroll",W)}},[w]),i.jsxs("div",k(p({},r),{className:C,children:[i.jsx("div",{className:ee.inner,ref:g,children:i.jsxs("div",{className:ee.list,role:"tablist",ref:O,children:[c.Children.map(t,(S,F)=>S?i.jsx("div",{className:ee.listItem,children:S},S.props.value||S.key||F):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}})]})}),(y==="start"||y==="both")&&i.jsx("span",{className:ee.prev,children:i.jsx(we,{onClick:z,size:"small",icon:Pr,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(y==="end"||y==="both")&&i.jsx("span",{className:ee.next,children:i.jsx(we,{onClick:E,size:"small",icon:Gt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},Pi=e=>{const{value:t,children:n}=e,{value:r,panelId:o,buttonId:s}=Fn(t),a=t===r,l=M(ee.panel,!a&&ee["--panel-hidden"]);return i.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:o,"aria-labelledby":s,children:a&&n})},tn=e=>{const{value:t}=e;return t!==void 0?i.jsx(Xr,p({},e)):i.jsx(Ii,p({},e))};tn.Item=Jr,tn.List=Si,tn.Panel=Pi;const ft={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"},Fi=e=>{var $,E;const{onChange:t,onFocus:n,onBlur:r,name:o,value:s,defaultValue:a,placeholder:l,size:u="medium",variant:m="outline",className:_,attributes:h}=e,f=Ye(),v=$e(e.id),b=(($=f==null?void 0:f.attributes)==null?void 0:$.id)||((E=e.inputAttributes)==null?void 0:E.id)||v,w=(f==null?void 0:f.disabled)||e.disabled,g=(f==null?void 0:f.hasError)||e.hasError,y=p(p({},e.inputAttributes),f==null?void 0:f.attributes),x=M(ft.root,u&&B(ft,"--size",u),g&&ft["--status-error"],w&&ft["--disabled"],m&&ft[`--variant-${m}`],_),C=z=>{t&&t({name:o,value:z.target.value,event:z})};return i.jsx("div",k(p({},h),{className:x,children:i.jsx("textarea",k(p({},y),{className:ft.input,rows:3,disabled:w,name:o,placeholder:l,value:s,defaultValue:a,onChange:C,onFocus:n||(y==null?void 0:y.onFocus),onBlur:r||(y==null?void 0:y.onBlur),id:b}))}))},An={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Ln=e=>{const{children:t,markerSlot:n,className:r,attributes:o}=e,s=n!==null,a=M(An.item,!s&&An["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:An.marker,children:n}),i.jsx(U.Item,{grow:!0,children:t})]})},Zr=e=>{const{children:t,className:n,attributes:r}=e,o=M(n);return i.jsx("ul",k(p({},r),{className:o,children:c.Children.map(t,(s,a)=>(s==null?void 0:s.type)===Ln?s:i.jsx(Ln,{children:s},a))}))};Zr.Item=Ln;const Ai={root:"_root_9090g_1"},Li=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(lt,{colorMode:"inverted",children:i.jsx(Z,{variant:"caption-1",className:Ai.root,children:n})})})]})},ht={m:660,l:900,xl:1280},eo={s:`(max-width: ${ht.m-1}px)`,m:`(min-width: ${ht.m}px) and (max-width: ${ht.l-1}px)`,l:`(min-width: ${ht.l}px) and (max-width: ${ht.xl-1}px)`,xl:`(min-width: ${ht.xl}px)`},Vi=e=>{const{defaultViewport:t}=c.useContext(xn),[n,r]=c.useState(t);return ue(()=>{const s=Object.keys(eo).map(a=>{const l=window.matchMedia(eo[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},Di=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=_n,N.ActionBar=Ao,N.Actionable=Ve,N.Alert=Vo,N.Autocomplete=Er,N.Avatar=Is,N.Badge=Tr,N.Breadcrumbs=Sr,N.Button=we,N.Card=Os,N.Carousel=qs,N.Checkbox=Ks,N.CheckboxGroup=Rs,N.Container=Gs,N.Dismissible=Xs,N.Divider=Yn,N.DropdownMenu=xe,N.FormControl=At,N.Hidden=ln,N.HiddenVisually=Qs,N.Hotkey=Zs,N.Icon=ce,N.Image=ei,N.Link=Mr,N.Loader=Ir,N.MenuItem=$n,N.Modal=Mn,N.Overlay=Or,N.Placeholder=Di,N.Popover=ct,N.Progress=oi,N.Radio=li,N.RadioGroup=ai,N.Reshaped=xi,N.Scrim=yi,N.Select=ji,N.Skeleton=ki,N.Slider=Ei,N.Switch=zi,N.Tabs=tn,N.Text=Z,N.TextArea=Fi,N.TextField=or,N.Theme=lt,N.Timeline=Zr,N.Tooltip=Li,N.View=U,N.classNames=M,N.responsiveClassNames=B,N.responsivePropDependency=Le,N.useFormControl=Ye,N.useHotkeys=nt,N.useIsomorphicLayoutEffect=ue,N.useRTL=Ge,N.useResponsiveClientValue=Vi,N.useScrollLock=Dr,N.useTheme=Cr,N.useToast=ci,N.useToggle=Tn,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|