reshaped 2.6.1 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  2.7.0
2
2
 
3
3
  - Github actions setup
4
+ - Themes: Updated on color generation algorithm to be more precise according to the wcag requirements
5
+
4
6
  - Link: Fixed iOS Safari currentColor
7
+ - View: Updating padding array mentioned in the docs
8
+ - Toast: Added className support
package/bundle.js CHANGED
@@ -6,17 +6,17 @@
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 Qn;function Es(){return Qn||(Qn=1,process.env.NODE_ENV!=="production"&&function(){var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b=Symbol.iterator,p="@@iterator";function y(_){if(_===null||typeof _!="object")return null;var k=b&&_[b]||_[p];return typeof k=="function"?k:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(_){{for(var k=arguments.length,I=new Array(k>1?k-1:0),L=1;L<k;L++)I[L-1]=arguments[L];C("error",_,I)}}function C(_,k,I){{var L=w.ReactDebugCurrentFrame,R=L.getStackAddendum();R!==""&&(k+="%s",I=I.concat([R]));var J=I.map(function(B){return String(B)});J.unshift("Warning: "+k),Function.prototype.apply.call(console[_],console,J)}}var $=!1,z=!1,T=!1,E=!1,P=!1,U;U=Symbol.for("react.module.reference");function M(_){return!!(typeof _=="string"||typeof _=="function"||_===o||_===i||P||_===s||_===f||_===u||E||_===v||$||z||T||typeof _=="object"&&_!==null&&(_.$$typeof===m||_.$$typeof===h||_.$$typeof===a||_.$$typeof===l||_.$$typeof===d||_.$$typeof===U||_.getModuleId!==void 0))}function F(_,k,I){var L=_.displayName;if(L)return L;var R=k.displayName||k.name||"";return R!==""?I+"("+R+")":I}function q(_){return _.displayName||"Context"}function V(_){if(_==null)return null;if(typeof _.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case o:return"Fragment";case n:return"Portal";case i:return"Profiler";case s:return"StrictMode";case f:return"Suspense";case u:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case l:var k=_;return q(k)+".Consumer";case a:var I=_;return q(I._context)+".Provider";case d:return F(_,_.render,"ForwardRef");case h:var L=_.displayName||null;return L!==null?L:V(_.type)||"Memo";case m:{var R=_,J=R._payload,B=R._init;try{return V(B(J))}catch(O){return null}}}return null}var A=Object.assign,Z=0,fe,he,re,ee,He,ke,oe;function H(){}H.__reactDisabledLog=!0;function Y(){{if(Z===0){fe=console.log,he=console.info,re=console.warn,ee=console.error,He=console.group,ke=console.groupCollapsed,oe=console.groupEnd;var _={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}Z++}}function G(){{if(Z--,Z===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},_,{value:fe}),info:A({},_,{value:he}),warn:A({},_,{value:re}),error:A({},_,{value:ee}),group:A({},_,{value:He}),groupCollapsed:A({},_,{value:ke}),groupEnd:A({},_,{value:oe})})}Z<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=w.ReactCurrentDispatcher,we;function X(_,k,I){{if(we===void 0)try{throw Error()}catch(R){var L=R.stack.trim().match(/\n( *(at )?)/);we=L&&L[1]||""}return`
10
- `+we+_}}var pe=!1,ge;{var Me=typeof WeakMap=="function"?WeakMap:Map;ge=new Me}function Re(_,k){if(!_||pe)return"";{var I=ge.get(_);if(I!==void 0)return I}var L;pe=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=ie.current,ie.current=null,Y();try{if(k){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(Ke){L=Ke}Reflect.construct(_,[],B)}else{try{B.call()}catch(Ke){L=Ke}_.call(B.prototype)}}else{try{throw Error()}catch(Ke){L=Ke}_()}}catch(Ke){if(Ke&&L&&typeof Ke.stack=="string"){for(var O=Ke.stack.split(`
9
+ */var Qn;function Es(){return Qn||(Qn=1,process.env.NODE_ENV!=="production"&&function(){var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b=Symbol.iterator,p="@@iterator";function y(_){if(_===null||typeof _!="object")return null;var k=b&&_[b]||_[p];return typeof k=="function"?k:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(_){{for(var k=arguments.length,T=new Array(k>1?k-1:0),L=1;L<k;L++)T[L-1]=arguments[L];C("error",_,T)}}function C(_,k,T){{var L=w.ReactDebugCurrentFrame,R=L.getStackAddendum();R!==""&&(k+="%s",T=T.concat([R]));var J=T.map(function(B){return String(B)});J.unshift("Warning: "+k),Function.prototype.apply.call(console[_],console,J)}}var $=!1,z=!1,I=!1,E=!1,P=!1,U;U=Symbol.for("react.module.reference");function M(_){return!!(typeof _=="string"||typeof _=="function"||_===o||_===i||P||_===s||_===f||_===u||E||_===v||$||z||I||typeof _=="object"&&_!==null&&(_.$$typeof===m||_.$$typeof===h||_.$$typeof===a||_.$$typeof===l||_.$$typeof===d||_.$$typeof===U||_.getModuleId!==void 0))}function F(_,k,T){var L=_.displayName;if(L)return L;var R=k.displayName||k.name||"";return R!==""?T+"("+R+")":T}function q(_){return _.displayName||"Context"}function V(_){if(_==null)return null;if(typeof _.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case o:return"Fragment";case n:return"Portal";case i:return"Profiler";case s:return"StrictMode";case f:return"Suspense";case u:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case l:var k=_;return q(k)+".Consumer";case a:var T=_;return q(T._context)+".Provider";case d:return F(_,_.render,"ForwardRef");case h:var L=_.displayName||null;return L!==null?L:V(_.type)||"Memo";case m:{var R=_,J=R._payload,B=R._init;try{return V(B(J))}catch(O){return null}}}return null}var A=Object.assign,Z=0,fe,he,re,ee,He,ke,oe;function H(){}H.__reactDisabledLog=!0;function Y(){{if(Z===0){fe=console.log,he=console.info,re=console.warn,ee=console.error,He=console.group,ke=console.groupCollapsed,oe=console.groupEnd;var _={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}Z++}}function G(){{if(Z--,Z===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},_,{value:fe}),info:A({},_,{value:he}),warn:A({},_,{value:re}),error:A({},_,{value:ee}),group:A({},_,{value:He}),groupCollapsed:A({},_,{value:ke}),groupEnd:A({},_,{value:oe})})}Z<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=w.ReactCurrentDispatcher,we;function X(_,k,T){{if(we===void 0)try{throw Error()}catch(R){var L=R.stack.trim().match(/\n( *(at )?)/);we=L&&L[1]||""}return`
10
+ `+we+_}}var pe=!1,ge;{var Me=typeof WeakMap=="function"?WeakMap:Map;ge=new Me}function Re(_,k){if(!_||pe)return"";{var T=ge.get(_);if(T!==void 0)return T}var L;pe=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=ie.current,ie.current=null,Y();try{if(k){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(Ke){L=Ke}Reflect.construct(_,[],B)}else{try{B.call()}catch(Ke){L=Ke}_.call(B.prototype)}}else{try{throw Error()}catch(Ke){L=Ke}_()}}catch(Ke){if(Ke&&L&&typeof Ke.stack=="string"){for(var O=Ke.stack.split(`
11
11
  `),be=L.stack.split(`
12
12
  `),se=O.length-1,ae=be.length-1;se>=1&&ae>=0&&O[se]!==be[ae];)ae--;for(;se>=1&&ae>=0;se--,ae--)if(O[se]!==be[ae]){if(se!==1||ae!==1)do if(se--,ae--,ae<0||O[se]!==be[ae]){var Ne=`
13
- `+O[se].replace(" at new "," at ");return _.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",_.displayName)),typeof _=="function"&&ge.set(_,Ne),Ne}while(se>=1&&ae>=0);break}}}finally{pe=!1,ie.current=J,G(),Error.prepareStackTrace=R}var yt=_?_.displayName||_.name:"",ks=yt?X(yt):"";return typeof _=="function"&&ge.set(_,ks),ks}function et(_,k,I){return Re(_,!1)}function tt(_){var k=_.prototype;return!!(k&&k.isReactComponent)}function Se(_,k,I){if(_==null)return"";if(typeof _=="function")return Re(_,tt(_));if(typeof _=="string")return X(_);switch(_){case f:return X("Suspense");case u:return X("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case d:return et(_.render);case h:return Se(_.type,k,I);case m:{var L=_,R=L._payload,J=L._init;try{return Se(J(R),k,I)}catch(B){}}}return""}var Pe=Object.prototype.hasOwnProperty,Ft={},rt=w.ReactDebugCurrentFrame;function bt(_){if(_){var k=_._owner,I=Se(_.type,_._source,k?k.type:null);rt.setExtraStackFrame(I)}else rt.setExtraStackFrame(null)}function dn(_,k,I,L,R){{var J=Function.call.bind(Pe);for(var B in _)if(J(_,B)){var O=void 0;try{if(typeof _[B]!="function"){var be=Error((L||"React class")+": "+I+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}O=_[B](k,B,L,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(se){O=se}O&&!(O instanceof Error)&&(bt(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).",L||"React class",I,B,typeof O),bt(null)),O instanceof Error&&!(O.message in Ft)&&(Ft[O.message]=!0,bt(R),x("Failed %s type: %s",I,O.message),bt(null))}}}var Kn=Array.isArray;function Lt(_){return Kn(_)}function Yn(_){{var k=typeof Symbol=="function"&&Symbol.toStringTag,I=k&&_[Symbol.toStringTag]||_.constructor.name||"Object";return I}}function ve(_){try{return de(_),!1}catch(k){return!0}}function de(_){return""+_}function qe(_){if(ve(_))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yn(_)),de(_)}var _e=w.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Oe,Ue,je;je={};function un(_){if(Pe.call(_,"ref")){var k=Object.getOwnPropertyDescriptor(_,"ref").get;if(k&&k.isReactWarning)return!1}return _.ref!==void 0}function _n(_){if(Pe.call(_,"key")){var k=Object.getOwnPropertyDescriptor(_,"key").get;if(k&&k.isReactWarning)return!1}return _.key!==void 0}function mn(_,k){if(typeof _.ref=="string"&&_e.current&&k&&_e.current.stateNode!==k){var I=V(_e.current.type);je[I]||(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',V(_e.current.type),_.ref),je[I]=!0)}}function da(_,k){{var I=function(){Oe||(Oe=!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)",k))};I.isReactWarning=!0,Object.defineProperty(_,"key",{get:I,configurable:!0})}}function ua(_,k){{var I=function(){Ue||(Ue=!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)",k))};I.isReactWarning=!0,Object.defineProperty(_,"ref",{get:I,configurable:!0})}}var _a=function(_,k,I,L,R,J,B){var O={$$typeof:t,type:_,key:k,ref:I,props:B,_owner:J};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function ma(_,k,I,L,R){{var J,B={},O=null,be=null;I!==void 0&&(qe(I),O=""+I),_n(k)&&(qe(k.key),O=""+k.key),un(k)&&(be=k.ref,mn(k,R));for(J in k)Pe.call(k,J)&&!pt.hasOwnProperty(J)&&(B[J]=k[J]);if(_&&_.defaultProps){var se=_.defaultProps;for(J in se)B[J]===void 0&&(B[J]=se[J])}if(O||be){var ae=typeof _=="function"?_.displayName||_.name||"Unknown":_;O&&da(B,ae),be&&ua(B,ae)}return _a(_,O,be,R,L,_e.current,B)}}var Gn=w.ReactCurrentOwner,ps=w.ReactDebugCurrentFrame;function xt(_){if(_){var k=_._owner,I=Se(_.type,_._source,k?k.type:null);ps.setExtraStackFrame(I)}else ps.setExtraStackFrame(null)}var Xn;Xn=!1;function Jn(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function xs(){{if(Gn.current){var _=V(Gn.current.type);if(_)return`
13
+ `+O[se].replace(" at new "," at ");return _.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",_.displayName)),typeof _=="function"&&ge.set(_,Ne),Ne}while(se>=1&&ae>=0);break}}}finally{pe=!1,ie.current=J,G(),Error.prepareStackTrace=R}var yt=_?_.displayName||_.name:"",ks=yt?X(yt):"";return typeof _=="function"&&ge.set(_,ks),ks}function et(_,k,T){return Re(_,!1)}function tt(_){var k=_.prototype;return!!(k&&k.isReactComponent)}function Se(_,k,T){if(_==null)return"";if(typeof _=="function")return Re(_,tt(_));if(typeof _=="string")return X(_);switch(_){case f:return X("Suspense");case u:return X("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case d:return et(_.render);case h:return Se(_.type,k,T);case m:{var L=_,R=L._payload,J=L._init;try{return Se(J(R),k,T)}catch(B){}}}return""}var Pe=Object.prototype.hasOwnProperty,Ft={},rt=w.ReactDebugCurrentFrame;function bt(_){if(_){var k=_._owner,T=Se(_.type,_._source,k?k.type:null);rt.setExtraStackFrame(T)}else rt.setExtraStackFrame(null)}function dn(_,k,T,L,R){{var J=Function.call.bind(Pe);for(var B in _)if(J(_,B)){var O=void 0;try{if(typeof _[B]!="function"){var be=Error((L||"React class")+": "+T+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}O=_[B](k,B,L,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(se){O=se}O&&!(O instanceof Error)&&(bt(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).",L||"React class",T,B,typeof O),bt(null)),O instanceof Error&&!(O.message in Ft)&&(Ft[O.message]=!0,bt(R),x("Failed %s type: %s",T,O.message),bt(null))}}}var Kn=Array.isArray;function Lt(_){return Kn(_)}function Yn(_){{var k=typeof Symbol=="function"&&Symbol.toStringTag,T=k&&_[Symbol.toStringTag]||_.constructor.name||"Object";return T}}function ve(_){try{return de(_),!1}catch(k){return!0}}function de(_){return""+_}function qe(_){if(ve(_))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yn(_)),de(_)}var _e=w.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Oe,Ue,je;je={};function un(_){if(Pe.call(_,"ref")){var k=Object.getOwnPropertyDescriptor(_,"ref").get;if(k&&k.isReactWarning)return!1}return _.ref!==void 0}function _n(_){if(Pe.call(_,"key")){var k=Object.getOwnPropertyDescriptor(_,"key").get;if(k&&k.isReactWarning)return!1}return _.key!==void 0}function mn(_,k){if(typeof _.ref=="string"&&_e.current&&k&&_e.current.stateNode!==k){var T=V(_e.current.type);je[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',V(_e.current.type),_.ref),je[T]=!0)}}function da(_,k){{var T=function(){Oe||(Oe=!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)",k))};T.isReactWarning=!0,Object.defineProperty(_,"key",{get:T,configurable:!0})}}function ua(_,k){{var T=function(){Ue||(Ue=!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)",k))};T.isReactWarning=!0,Object.defineProperty(_,"ref",{get:T,configurable:!0})}}var _a=function(_,k,T,L,R,J,B){var O={$$typeof:t,type:_,key:k,ref:T,props:B,_owner:J};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function ma(_,k,T,L,R){{var J,B={},O=null,be=null;T!==void 0&&(qe(T),O=""+T),_n(k)&&(qe(k.key),O=""+k.key),un(k)&&(be=k.ref,mn(k,R));for(J in k)Pe.call(k,J)&&!pt.hasOwnProperty(J)&&(B[J]=k[J]);if(_&&_.defaultProps){var se=_.defaultProps;for(J in se)B[J]===void 0&&(B[J]=se[J])}if(O||be){var ae=typeof _=="function"?_.displayName||_.name||"Unknown":_;O&&da(B,ae),be&&ua(B,ae)}return _a(_,O,be,R,L,_e.current,B)}}var Gn=w.ReactCurrentOwner,ps=w.ReactDebugCurrentFrame;function xt(_){if(_){var k=_._owner,T=Se(_.type,_._source,k?k.type:null);ps.setExtraStackFrame(T)}else ps.setExtraStackFrame(null)}var Xn;Xn=!1;function Jn(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function xs(){{if(Gn.current){var _=V(Gn.current.type);if(_)return`
14
14
 
15
- Check the render method of \``+_+"`."}return""}}function fa(_){{if(_!==void 0){var k=_.fileName.replace(/^.*[\\\/]/,""),I=_.lineNumber;return`
15
+ Check the render method of \``+_+"`."}return""}}function fa(_){{if(_!==void 0){var k=_.fileName.replace(/^.*[\\\/]/,""),T=_.lineNumber;return`
16
16
 
17
- Check your code at `+k+":"+I+"."}return""}}var ys={};function ha(_){{var k=xs();if(!k){var I=typeof _=="string"?_:_.displayName||_.name;I&&(k=`
17
+ Check your code at `+k+":"+T+"."}return""}}var ys={};function ha(_){{var k=xs();if(!k){var T=typeof _=="string"?_:_.displayName||_.name;T&&(k=`
18
18
 
19
- Check the top-level render call using <`+I+">.")}return k}}function ws(_,k){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var I=ha(k);if(ys[I])return;ys[I]=!0;var L="";_&&_._owner&&_._owner!==Gn.current&&(L=" It was passed a child from "+V(_._owner.type)+"."),xt(_),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,L),xt(null)}}function js(_,k){{if(typeof _!="object")return;if(Lt(_))for(var I=0;I<_.length;I++){var L=_[I];Jn(L)&&ws(L,k)}else if(Jn(_))_._store&&(_._store.validated=!0);else if(_){var R=y(_);if(typeof R=="function"&&R!==_.entries)for(var J=R.call(_),B;!(B=J.next()).done;)Jn(B.value)&&ws(B.value,k)}}}function ga(_){{var k=_.type;if(k==null||typeof k=="string")return;var I;if(typeof k=="function")I=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===d||k.$$typeof===h))I=k.propTypes;else return;if(I){var L=V(k);dn(I,_.props,"prop",L,_)}else if(k.PropTypes!==void 0&&!Xn){Xn=!0;var R=V(k);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function va(_){{for(var k=Object.keys(_.props),I=0;I<k.length;I++){var L=k[I];if(L!=="children"&&L!=="key"){xt(_),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),xt(null);break}}_.ref!==null&&(xt(_),x("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}function Cs(_,k,I,L,R,J){{var B=M(_);if(!B){var O="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var be=fa(R);be?O+=be:O+=xs();var se;_===null?se="null":Lt(_)?se="array":_!==void 0&&_.$$typeof===t?(se="<"+(V(_.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):se=typeof _,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",se,O)}var ae=ma(_,k,I,R,J);if(ae==null)return ae;if(B){var Ne=k.children;if(Ne!==void 0)if(L)if(Lt(Ne)){for(var yt=0;yt<Ne.length;yt++)js(Ne[yt],_);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 js(Ne,_)}return _===o?va(ae):ga(ae),ae}}function ba(_,k,I){return Cs(_,k,I,!0)}function pa(_,k,I){return Cs(_,k,I,!1)}var xa=pa,ya=ba;wt.Fragment=o,wt.jsx=xa,wt.jsxs=ya}()),wt}var jt={};/**
19
+ Check the top-level render call using <`+T+">.")}return k}}function ws(_,k){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var T=ha(k);if(ys[T])return;ys[T]=!0;var L="";_&&_._owner&&_._owner!==Gn.current&&(L=" It was passed a child from "+V(_._owner.type)+"."),xt(_),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,L),xt(null)}}function js(_,k){{if(typeof _!="object")return;if(Lt(_))for(var T=0;T<_.length;T++){var L=_[T];Jn(L)&&ws(L,k)}else if(Jn(_))_._store&&(_._store.validated=!0);else if(_){var R=y(_);if(typeof R=="function"&&R!==_.entries)for(var J=R.call(_),B;!(B=J.next()).done;)Jn(B.value)&&ws(B.value,k)}}}function ga(_){{var k=_.type;if(k==null||typeof k=="string")return;var T;if(typeof k=="function")T=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===d||k.$$typeof===h))T=k.propTypes;else return;if(T){var L=V(k);dn(T,_.props,"prop",L,_)}else if(k.PropTypes!==void 0&&!Xn){Xn=!0;var R=V(k);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function va(_){{for(var k=Object.keys(_.props),T=0;T<k.length;T++){var L=k[T];if(L!=="children"&&L!=="key"){xt(_),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),xt(null);break}}_.ref!==null&&(xt(_),x("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}function Cs(_,k,T,L,R,J){{var B=M(_);if(!B){var O="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var be=fa(R);be?O+=be:O+=xs();var se;_===null?se="null":Lt(_)?se="array":_!==void 0&&_.$$typeof===t?(se="<"+(V(_.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):se=typeof _,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",se,O)}var ae=ma(_,k,T,R,J);if(ae==null)return ae;if(B){var Ne=k.children;if(Ne!==void 0)if(L)if(Lt(Ne)){for(var yt=0;yt<Ne.length;yt++)js(Ne[yt],_);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 js(Ne,_)}return _===o?va(ae):ga(ae),ae}}function ba(_,k,T){return Cs(_,k,T,!0)}function pa(_,k,T){return Cs(_,k,T,!1)}var xa=pa,ya=ba;wt.Fragment=o,wt.jsx=xa,wt.jsxs=ya}()),wt}var jt={};/**
20
20
  * @license React
21
21
  * react-jsx-runtime.production.min.js
22
22
  *
@@ -24,4 +24,4 @@ Check the top-level render call using <`+I+">.")}return k}}function ws(_,k){{if(
24
24
  *
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
- */var Zn;function Ts(){if(Zn)return jt;Zn=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,d,f){var u,h={},m=null,v=null;f!==void 0&&(m=""+f),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(v=d.ref);for(u in d)o.call(d,u)&&!i.hasOwnProperty(u)&&(h[u]=d[u]);if(l&&l.defaultProps)for(u in d=l.defaultProps,d)h[u]===void 0&&(h[u]=d[u]);return{$$typeof:t,type:l,key:m,ref:v,props:h,_owner:s.current}}return jt.Fragment=n,jt.jsx=a,jt.jsxs=a,jt}process.env.NODE_ENV==="production"?xe.exports=Ts():xe.exports=Es();var r=xe.exports;const eo=(e,t=20)=>{let n;return(...s)=>{clearTimeout(n),n=setTimeout(()=>e(...s),t)}};function Is(e,t){const n=eo(e,t);return o=>("persist"in o&&o.persist(),n(o))}const Ms=(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},""),to=(e,t,n)=>{const{base:o,excludeValueFromClassName:s}=n||{},i=typeof e=="string"?e:e(t);return t===!0&&o||s?i:t===!0&&!o?`${i}-true`:t===!1&&!o?`${i}-false`:t!==void 0?`${i}-${t}`:null},W=(e,t,n,o)=>{if(typeof n!="object"){const s=to(t,n,{base:!0,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName});return s?[e[s]]:[]}return Object.keys(n).reduce((s,i)=>{const a=i==="s",l=to(t,n[i],{base:a,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName}),d=a?"":`--${i}`;return[...s,e[`${l}${d}`]]},[])},te=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,o)=>{const s=t[o];return s===void 0||s===!1?n:j(g({},n),{[`${e}-${o}`]:s})},{}),Ss=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,$e=(e,t)=>Ss(e)?Object.keys(e).reduce((o,s)=>{const i=e[s];return i==null?o:j(g({},o),{[s]:t(i,s)})},{}):t(e,"s"),ze=e=>{const t=c.useId();return e||t},hn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),no=e=>{const{children:t,onToggle:n,active:o,iconPosition:s,iconSize:i,className:a,attributes:l}=e,d=S(a),f=ze(),u=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:o,onToggle:n,iconPosition:s,iconSize:i}),[o]);return r.jsx("div",j(g({},l),{className:d,children:r.jsx(hn.Provider,{value:u,children:t})}))},Ps=e=>{const l=e,{defaultActive:t,onToggle:n}=l,o=Fe(l,["defaultActive","onToggle"]),[s,i]=c.useState(t||!1),a=d=>{i(d),n==null||n(d)};return r.jsx(no,j(g({},o),{onToggle:a,active:s}))},Ct={root:"_root_1ao0i_1","--disabled":"_--disabled_1ao0i_28","--full-width":"_--full-width_1ao0i_37","--inset":"_--inset_1ao0i_45","--radius-inherit":"_--radius-inherit_1ao0i_49"},Fs=(e,t)=>{const{children:n,href:o,onClick:s,type:i,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:u,className:h,attributes:m}=e,v=S(Ct.root,h,a&&Ct["--disabled"],d&&Ct[`--radius-${d}`],l&&Ct["--inset"],u&&Ct["--full-width"]),b=g({},m),p=c.useRef(!1),y=s||(m==null?void 0:m.onClick),w=(m==null?void 0:m.onFocus)||(m==null?void 0:m.onBlur),x=!!(o||m!=null&&m.href),C=!!(y||w||i);let $;if(x)b.href=a?void 0:o||(m==null?void 0:m.href),$="a";else if(C&&(!f||f==="button"))$="button",b.type=i||(m==null?void 0:m.type)||"button",b.disabled=a||(m==null?void 0:m.disabled);else if(C){const P=!(f==="label")||y||w;$=f||"span",b.role=P?"button":void 0,b.tabIndex=P?0:void 0}else $=f||"span";const z=E=>{var P;a||p.current||(s==null||s(E),(P=m==null?void 0:m.onClick)==null||P.call(m,E))},T=E=>{if(b.role==="button"||x)return;const U=E.key===" ",M=E.key==="Enter";!U&&!M||(E.preventDefault(),z(E),p.current=!0,requestAnimationFrame(()=>{p.current=!1}))};return r.jsx($,j(g({ref:t},b),{className:v,onClick:z,onKeyDown:T,children:n}))},Le=c.forwardRef(Fs),gn={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"},At=e=>{const{vertical:t,blank:n,className:o,attributes:s}=e,i=S(gn.root,o,n&&gn["--blank"],...W(gn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),r.jsx("div",j(g({},s),{role:"separator","aria-orientation":a,className:i}))},Dt={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"},Vt=e=>{const{as:t="div",children:n,visibility:o,hide:s,displayStyle:i}=e,a=S(Dt.root,...W(Dt,"--hidden",s),o&&Dt["--visibility"],i&&Dt[`--display-${i}`]);return typeof n=="function"?r.jsx(r.Fragment,{children:n(a)}):r.jsx(t,{className:a,children:n})},K={root:"_root_1osyw_1",item:"_item_1osyw_10","--padding":"_--padding_1osyw_18","--padding-top":"_--padding-top_1osyw_23","--padding-bottom":"_--padding-bottom_1osyw_27","--padding-start":"_--padding-start_1osyw_31","--padding-end":"_--padding-end_1osyw_35","--animated":"_--animated_1osyw_39","--align-text-start":"_--align-text-start_1osyw_1","--align-text-center":"_--align-text-center_1osyw_1","--align-text-end":"_--align-text-end_1osyw_1","--bg-neutral":"_--bg-neutral_1osyw_1","--bg-positive":"_--bg-positive_1osyw_1","--bg-critical":"_--bg-critical_1osyw_1","--bg-primary":"_--bg-primary_1osyw_1","--bg-neutral-faded":"_--bg-neutral-faded_1osyw_1","--bg-positive-faded":"_--bg-positive-faded_1osyw_1","--bg-critical-faded":"_--bg-critical-faded_1osyw_1","--bg-primary-faded":"_--bg-primary-faded_1osyw_1","--bg-page":"_--bg-page_1osyw_1","--bg-page-faded":"_--bg-page-faded_1osyw_1","--bg-disabled":"_--bg-disabled_1osyw_1","--bg-disabled-faded":"_--bg-disabled-faded_1osyw_1","--bg-elevation-base":"_--bg-elevation-base_1osyw_1","--bg-elevation-raised":"_--bg-elevation-raised_1osyw_1","--bg-elevation-overlay":"_--bg-elevation-overlay_1osyw_1","--bg-white":"_--bg-white_1osyw_65","--bg-black":"_--bg-black_1osyw_70","--shadow-raised":"_--shadow-raised_1osyw_75","--shadow-overlay":"_--shadow-overlay_1osyw_79","--bd":"_--bd_1osyw_83","--bd-neutral-faded":"_--bd-neutral-faded_1osyw_1","--bd-neutral":"_--bd-neutral_1osyw_1","--bd-positive":"_--bd-positive_1osyw_1","--bd-positive-faded":"_--bd-positive-faded_1osyw_1","--bd-critical":"_--bd-critical_1osyw_1","--bd-critical-faded":"_--bd-critical-faded_1osyw_1","--bd-primary":"_--bd-primary_1osyw_1","--bd-primary-faded":"_--bd-primary-faded_1osyw_1","--bd-disabled":"_--bd-disabled_1osyw_1","--bd-transparent":"_--bd-transparent_1osyw_94","--overflow-hidden":"_--overflow-hidden_1osyw_98","--divided":"_--divided_1osyw_102","--flex":"_--flex_1osyw_106","--direction-column":"_--direction-column_1osyw_1","item--gap-before":"_item--gap-before_1osyw_118","item--gap-auto":"_item--gap-auto_1osyw_122","--direction-column-reverse":"_--direction-column-reverse_1osyw_1","--direction-row":"_--direction-row_1osyw_1","--direction-row-reverse":"_--direction-row-reverse_1osyw_1","--nowrap":"_--nowrap_1osyw_177","--wrap":"_--wrap_1osyw_185","--nowrap-false--m":"_--nowrap-false--m_1osyw_1","--wrap-true--m":"_--wrap-true--m_1osyw_1","--nowrap-true--m":"_--nowrap-true--m_1osyw_1","--wrap-false--m":"_--wrap-false--m_1osyw_1","--nowrap-false--l":"_--nowrap-false--l_1osyw_1","--wrap-true--l":"_--wrap-true--l_1osyw_1","--nowrap-true--l":"_--nowrap-true--l_1osyw_1","--wrap-false--l":"_--wrap-false--l_1osyw_1","--nowrap-false--xl":"_--nowrap-false--xl_1osyw_1","--wrap-true--xl":"_--wrap-true--xl_1osyw_1","--nowrap-true--xl":"_--nowrap-true--xl_1osyw_1","--wrap-false--xl":"_--wrap-false--xl_1osyw_1","--align-start":"_--align-start_1osyw_1","--align-end":"_--align-end_1osyw_1","--align-center":"_--align-center_1osyw_1","--align-stretch":"_--align-stretch_1osyw_1","--align-baseline":"_--align-baseline_1osyw_1","--justify-start":"_--justify-start_1osyw_1","--justify-end":"_--justify-end_1osyw_1","--justify-center":"_--justify-center_1osyw_1","--justify-space-between":"_--justify-space-between_1osyw_1",divider:"_divider_1osyw_244","item--grow":"_item--grow_1osyw_248","item--columns":"_item--columns_1osyw_266","item--columns-1":"_item--columns-1_1osyw_1","item--columns-2":"_item--columns-2_1osyw_1","item--columns-3":"_item--columns-3_1osyw_1","item--columns-4":"_item--columns-4_1osyw_1","item--columns-5":"_item--columns-5_1osyw_1","item--columns-6":"_item--columns-6_1osyw_1","item--columns-7":"_item--columns-7_1osyw_1","item--columns-8":"_item--columns-8_1osyw_1","item--columns-9":"_item--columns-9_1osyw_1","item--columns-10":"_item--columns-10_1osyw_1","item--columns-11":"_item--columns-11_1osyw_1","item--columns-12":"_item--columns-12_1osyw_1","item--columns-auto":"_item--columns-auto_1osyw_287","item--columns-1--m":"_item--columns-1--m_1osyw_1","item--columns-auto--m":"_item--columns-auto--m_1osyw_1","item--columns-2--m":"_item--columns-2--m_1osyw_1","item--columns-3--m":"_item--columns-3--m_1osyw_1","item--columns-4--m":"_item--columns-4--m_1osyw_1","item--columns-5--m":"_item--columns-5--m_1osyw_1","item--columns-6--m":"_item--columns-6--m_1osyw_1","item--columns-7--m":"_item--columns-7--m_1osyw_1","item--columns-8--m":"_item--columns-8--m_1osyw_1","item--columns-9--m":"_item--columns-9--m_1osyw_1","item--columns-10--m":"_item--columns-10--m_1osyw_1","item--columns-11--m":"_item--columns-11--m_1osyw_1","item--columns-12--m":"_item--columns-12--m_1osyw_1","item--columns-1--l":"_item--columns-1--l_1osyw_1","item--columns-auto--l":"_item--columns-auto--l_1osyw_1","item--columns-2--l":"_item--columns-2--l_1osyw_1","item--columns-3--l":"_item--columns-3--l_1osyw_1","item--columns-4--l":"_item--columns-4--l_1osyw_1","item--columns-5--l":"_item--columns-5--l_1osyw_1","item--columns-6--l":"_item--columns-6--l_1osyw_1","item--columns-7--l":"_item--columns-7--l_1osyw_1","item--columns-8--l":"_item--columns-8--l_1osyw_1","item--columns-9--l":"_item--columns-9--l_1osyw_1","item--columns-10--l":"_item--columns-10--l_1osyw_1","item--columns-11--l":"_item--columns-11--l_1osyw_1","item--columns-12--l":"_item--columns-12--l_1osyw_1","item--columns-1--xl":"_item--columns-1--xl_1osyw_1","item--columns-auto--xl":"_item--columns-auto--xl_1osyw_1","item--columns-2--xl":"_item--columns-2--xl_1osyw_1","item--columns-3--xl":"_item--columns-3--xl_1osyw_1","item--columns-4--xl":"_item--columns-4--xl_1osyw_1","item--columns-5--xl":"_item--columns-5--xl_1osyw_1","item--columns-6--xl":"_item--columns-6--xl_1osyw_1","item--columns-7--xl":"_item--columns-7--xl_1osyw_1","item--columns-8--xl":"_item--columns-8--xl_1osyw_1","item--columns-9--xl":"_item--columns-9--xl_1osyw_1","item--columns-10--xl":"_item--columns-10--xl_1osyw_1","item--columns-11--xl":"_item--columns-11--xl_1osyw_1","item--columns-12--xl":"_item--columns-12--xl_1osyw_1","--direction-column--m":"_--direction-column--m_1osyw_1","--direction-column-reverse--m":"_--direction-column-reverse--m_1osyw_1","--direction-row--m":"_--direction-row--m_1osyw_1","--direction-row-reverse--m":"_--direction-row-reverse--m_1osyw_1","--align-start--m":"_--align-start--m_1osyw_1","--align-end--m":"_--align-end--m_1osyw_1","--align-center--m":"_--align-center--m_1osyw_1","--align-stretch--m":"_--align-stretch--m_1osyw_1","--align-baseline--m":"_--align-baseline--m_1osyw_1","--justify-start--m":"_--justify-start--m_1osyw_1","--justify-end--m":"_--justify-end--m_1osyw_1","--justify-center--m":"_--justify-center--m_1osyw_1","--justify-space-between--m":"_--justify-space-between--m_1osyw_1","item--grow-true--m":"_item--grow-true--m_1osyw_1","item--grow-false--m":"_item--grow-false--m_1osyw_1","--direction-column--l":"_--direction-column--l_1osyw_1","--direction-column-reverse--l":"_--direction-column-reverse--l_1osyw_1","--direction-row--l":"_--direction-row--l_1osyw_1","--direction-row-reverse--l":"_--direction-row-reverse--l_1osyw_1","--align-start--l":"_--align-start--l_1osyw_1","--align-end--l":"_--align-end--l_1osyw_1","--align-center--l":"_--align-center--l_1osyw_1","--align-stretch--l":"_--align-stretch--l_1osyw_1","--align-baseline--l":"_--align-baseline--l_1osyw_1","--justify-start--l":"_--justify-start--l_1osyw_1","--justify-end--l":"_--justify-end--l_1osyw_1","--justify-center--l":"_--justify-center--l_1osyw_1","--justify-space-between--l":"_--justify-space-between--l_1osyw_1","item--grow-true--l":"_item--grow-true--l_1osyw_1","item--grow-false--l":"_item--grow-false--l_1osyw_1","--direction-column--xl":"_--direction-column--xl_1osyw_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_1osyw_1","--direction-row--xl":"_--direction-row--xl_1osyw_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_1osyw_1","--align-start--xl":"_--align-start--xl_1osyw_1","--align-end--xl":"_--align-end--xl_1osyw_1","--align-center--xl":"_--align-center--xl_1osyw_1","--align-stretch--xl":"_--align-stretch--xl_1osyw_1","--align-baseline--xl":"_--align-baseline--xl_1osyw_1","--justify-start--xl":"_--justify-start--xl_1osyw_1","--justify-end--xl":"_--justify-end--xl_1osyw_1","--justify-center--xl":"_--justify-center--xl_1osyw_1","--justify-space-between--xl":"_--justify-space-between--xl_1osyw_1","item--grow-true--xl":"_item--grow-true--xl_1osyw_1","item--grow-false--xl":"_item--grow-false--xl_1osyw_1"},oo={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"},vn=e=>e?{classNames:[oo.root,...W(oo,"--radius",e)]}:null,so={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"},ro=e=>{if(e===void 0)return null;const t=[so.root,...W(so,"--bleed",$e(e,o=>typeof o=="number"&&o>0))],n=te("--rs-bleed",e);return{classNames:t,variables:n}},Ls={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"},bn=e=>{if(!e)return null;const t=te("--rs-w",e);return{classNames:W(Ls,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},As={literal:"_literal_ea0g1_1",unit:"_unit_ea0g1_2","literal--m":"_literal--m_ea0g1_1","unit--m":"_unit--m_ea0g1_1","literal--l":"_literal--l_ea0g1_1","unit--l":"_unit--l_ea0g1_1","literal--xl":"_literal--xl_ea0g1_1","unit--xl":"_unit--xl_ea0g1_1"},kt=e=>{if(!e)return null;const t=te("--rs-h",e);return{classNames:W(As,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ds={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"},Vs=e=>{if(!e)return null;const t=te("--rs-max-w",e);return{classNames:W(Ds,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},qs={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"},Os=e=>{if(!e)return null;const t=te("--rs-max-h",e);return{classNames:W(qs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Bs={"--position-static":"_--position-static_1qpz9_1","--position-relative":"_--position-relative_1qpz9_1","--position-absolute":"_--position-absolute_1qpz9_1","--position-fixed":"_--position-fixed_1qpz9_1","--position-sticky":"_--position-sticky_1qpz9_1","--position-static--m":"_--position-static--m_1qpz9_1","--position-relative--m":"_--position-relative--m_1qpz9_1","--position-absolute--m":"_--position-absolute--m_1qpz9_1","--position-fixed--m":"_--position-fixed--m_1qpz9_1","--position-sticky--m":"_--position-sticky--m_1qpz9_1","--position-static--l":"_--position-static--l_1qpz9_1","--position-relative--l":"_--position-relative--l_1qpz9_1","--position-absolute--l":"_--position-absolute--l_1qpz9_1","--position-fixed--l":"_--position-fixed--l_1qpz9_1","--position-sticky--l":"_--position-sticky--l_1qpz9_1","--position-static--xl":"_--position-static--xl_1qpz9_1","--position-relative--xl":"_--position-relative--xl_1qpz9_1","--position-absolute--xl":"_--position-absolute--xl_1qpz9_1","--position-fixed--xl":"_--position-fixed--xl_1qpz9_1","--position-sticky--xl":"_--position-sticky--xl_1qpz9_1"},Ws=e=>e?{classNames:W(Bs,"--position",e)}:null,Hs={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},Nt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",o=`--rs-inset${n}`,s=te(o,e);return{classNames:W(Hs,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:s}},Rs={root:"_root_i342i_1"},Us=e=>{if(!e)return null;const t=te("--rs-ratio",e);return{classNames:Rs.root,variables:t}},io=e=>{const{columns:t,grow:n,gapBefore:o,as:s="div",order:i,children:a,className:l,attributes:d}=e,f=S(K.item,l,o==="auto"&&K["item--gap-auto"],o!==void 0&&K["item--gap-before"],t&&K["item--columns"],...W(K,"item--grow",n),...W(K,"item--columns",t)),u=g(g({},te("--rs-view-item-order",i)),te("--rs-view-item-gap-before",o));return r.jsx(s,j(g({},d),{style:g(g({},d==null?void 0:d.style),u),className:f,children:a}))},D=e=>{const{align:t,justify:n,wrap:o,gap:s,height:i,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:u,paddingInline:h,paddingBlock:m,paddingBottom:v,paddingEnd:b,paddingStart:p,paddingTop:y,bleed:w,animated:x,backgroundColor:C,borderColor:$,borderRadius:z,shadow:T,textAlign:E,overflow:P,position:U="relative",inset:M,insetTop:F,insetBottom:q,insetStart:V,insetEnd:A,zIndex:Z,grow:fe,as:he="div",children:re,divided:ee,className:He,attributes:ke}=e;let oe=!!t||!!n||!!s||!!e.direction;const H=e.direction||(oe?"column":void 0),Y=vn(z),G=ro(w),ie=bn(a),we=kt(i),X=Vs(f),pe=Os(d),ge=Ws(U),Me=Nt(M),Re=Nt(F,"top"),et=Nt(q,"bottom"),tt=Nt(V,"start"),Se=Nt(A,"end"),Pe=Us(l);let Ft=0,rt;const bt=({className:ve,key:de})=>{const qe=S(K.divider,ve);let _e=!1;return typeof H=="string"&&H.startsWith("row")?_e=!0:H&&(_e=Object.keys(H).reduce((Oe,Ue)=>{const je=H[Ue];return je?j(g({},Oe),{[Ue]:je.startsWith("row")}):Oe},{})),r.jsx("div",{className:qe,children:r.jsx(At,{vertical:_e,blank:!0})},`${de}-divider`)},dn=({className:ve,child:de,index:qe})=>{var un,_n,mn;const _e=de.type===io,pt=de.type===D,Oe=de.key||qe,Ue=!!qe&&ee&&bt({className:ve,key:Oe});let je;return _e?je=c.cloneElement(de,{className:S(ve,de.props.className)}):ve||!c.isValidElement(de)?je=r.jsx("div",{className:ve,children:de},Oe):je=de,_e&&((un=de.props)!=null&&un.grow)&&(rt=de.props.grow),_e&&((_n=de.props)==null?void 0:_n.gap)==="auto"&&(rt=!0),(_e||pt)&&((mn=de.props)!=null&&mn.grow)&&(oe=!0),[Ue,je]},Kn=c.Children.map(re,(ve,de)=>{if(!ve)return null;const qe=Ft;if(Ft+=1,ve.type===Vt&&typeof ve.props.children!="function"){const _e=ve.props,{children:pt}=_e,Oe=Fe(_e,["children"]),Ue=ve.key||de;return c.createElement(Vt,j(g({},Oe),{key:Ue}),je=>dn({className:je,child:pt,index:qe}))}return dn({child:ve,index:qe})}),Lt=S(K.root,He,Y==null?void 0:Y.classNames,ge==null?void 0:ge.classNames,G==null?void 0:G.classNames,ie==null?void 0:ie.classNames,we==null?void 0:we.classNames,Pe==null?void 0:Pe.classNames,X==null?void 0:X.classNames,pe==null?void 0:pe.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,et==null?void 0:et.classNames,tt==null?void 0:tt.classNames,Se==null?void 0:Se.classNames,E&&K[`--align-text-${E}`],C&&K[`--bg-${C}`],$&&K[`--bd-${$}`],$&&K["--bd"],T&&K[`--shadow-${T}`],P&&K[`--overflow-${P}`],x&&K["--animated"],ee&&K["--divided"],(u!==void 0||h!==void 0||m!==void 0)&&K["--padding"],v!==void 0&&K["--padding-bottom"],b!==void 0&&K["--padding-end"],p!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(oe||rt)&&K["--flex"],...W(K,"--direction",H),...W(K,"--align",t),...W(K,"--justify",n),...W(K,"--nowrap",rt||o===!1),...W(K,"--wrap",o),...W(K,"item--grow",fe)),Yn=g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g({},ke==null?void 0:ke.style),te("--rs-view-gap",s)),te("--rs-view-p-vertical",m||u)),te("--rs-view-p-horizontal",h||u)),te("--rs-view-p-bottom",v)),te("--rs-view-p-top",y)),te("--rs-view-p-start",p)),te("--rs-view-p-end",b)),G==null?void 0:G.variables),ie==null?void 0:ie.variables),we==null?void 0:we.variables),Pe==null?void 0:Pe.variables),X==null?void 0:X.variables),pe==null?void 0:pe.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),et==null?void 0:et.variables),tt==null?void 0:tt.variables),Se==null?void 0:Se.variables),Z?{"--rs-view-z":Z}:{});return r.jsx(he,j(g({},ke),{className:Lt,style:Yn,children:Kn}))};D.Item=io;const pn={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:s="1em",autoWidth:i,attributes:a}=e,l=kt(s),d=S(pn.root,n,l==null?void 0:l.classNames,o&&pn[`--color-${o}`],i&&pn["--auto"]),f=typeof t=="object"?t:r.jsx(t,{}),u=g(g({},a==null?void 0:a.style),l==null?void 0:l.variables);return r.jsx("span",j(g({},a),{"aria-hidden":"true",className:d,style:u,children:c.cloneElement(f,{focusable:!1})}))},Ks=()=>r.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:r.jsx("polyline",{points:"6 9 12 15 18 9"})}),ao={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ys=e=>{const{children:t}=e,{active:n,onToggle:o,triggerId:s,contentId:i,iconPosition:a="end",iconSize:l}=c.useContext(hn),d=S(ao.icon,n&&ao["icon--active"]),f=()=>{o==null||o(!n)},u={"aria-expanded":n,"aria-controls":i,id:s};return typeof t=="function"?r.jsx(r.Fragment,{children:t(j(g({},u),{onClick:f}),{active:n})}):r.jsx(Le,{onClick:f,fullWidth:!0,attributes:u,children:r.jsxs(D,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[r.jsx(D.Item,{grow:!0,children:t}),r.jsx(le,{size:l||4,svg:Ks,className:d})]})})},$t=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},xn="data-rs-no-transition",Gs=()=>{document.documentElement.setAttribute(xn,"true")},Xs=()=>{document.documentElement.removeAttribute(xn)},Js=()=>!document.documentElement.hasAttribute(xn),lo={root:"_root_14pfm_1","--animated":"_--animated_14pfm_9"},co=e=>{const{children:t,active:n,attributes:o}=e,s=c.useRef(null),i=c.useRef(!1),[a,l]=c.useState(n?"auto":null),d=S(lo.root,i.current&&a!=="auto"&&lo["--animated"]),f=u=>{u.propertyName==="height"&&l(n?"auto":null)};return c.useEffect(()=>{$t(()=>{i.current=!0})},[]),c.useEffect(()=>{const u=s.current;if(!u||!i.current)return;let h=0;n&&(u.style.height="auto",h=u.clientHeight,u.style.height="0"),n||(u.style.height=`${u.clientHeight}px`),l(h)},[n]),r.jsx("div",j(g({},o),{className:d,ref:s,style:a!==null?{height:a,overflow:a==="auto"?"visible":void 0}:void 0,onTransitionEnd:f,role:"region",hidden:!n&&a===null,children:t}))},Qs=e=>{const{children:t}=e,{active:n,triggerId:o,contentId:s}=c.useContext(hn);return r.jsx(co,{active:n,attributes:{"aria-labelledby":o,id:s},children:t})},yn=e=>{const{active:t}=e;return t!==void 0?r.jsx(no,g({},e)):r.jsx(Ps,g({},e))};yn.Trigger=Ys,yn.Content=Qs;const wn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Zs=e=>{const{position:t="bottom",padding:n,paddingBlock:o=3,paddingInline:s=4,children:i,elevated:a,className:l,attributes:d}=e,f=S(wn.root,a&&wn["--elevated"],t&&wn[`--position-${t}`],l);return r.jsx(D,{className:f,attributes:d,paddingBlock:n||o,paddingInline:n||s,children:i})},nt={root:"_root_gm5sj_1","--clamp":"_--clamp_gm5sj_6","--align-start":"_--align-start_gm5sj_1","--align-center":"_--align-center_gm5sj_1","--align-end":"_--align-end_gm5sj_1","--variant-title-1":"_--variant-title-1_gm5sj_1","--variant-title-2":"_--variant-title-2_gm5sj_1","--variant-title-3":"_--variant-title-3_gm5sj_1","--variant-title-4":"_--variant-title-4_gm5sj_1","--variant-title-5":"_--variant-title-5_gm5sj_1","--variant-title-6":"_--variant-title-6_gm5sj_1","--variant-featured-1":"_--variant-featured-1_gm5sj_1","--variant-featured-2":"_--variant-featured-2_gm5sj_1","--variant-featured-3":"_--variant-featured-3_gm5sj_1","--variant-body-1":"_--variant-body-1_gm5sj_1","--variant-body-2":"_--variant-body-2_gm5sj_1","--variant-body-3":"_--variant-body-3_gm5sj_1","--variant-caption-1":"_--variant-caption-1_gm5sj_1","--variant-caption-2":"_--variant-caption-2_gm5sj_1","--weight-regular":"_--weight-regular_gm5sj_1","--weight-medium":"_--weight-medium_gm5sj_1","--weight-bold":"_--weight-bold_gm5sj_1","--color-neutral":"_--color-neutral_gm5sj_1","--color-neutral-faded":"_--color-neutral-faded_gm5sj_1","--color-primary":"_--color-primary_gm5sj_1","--color-positive":"_--color-positive_gm5sj_1","--color-critical":"_--color-critical_gm5sj_1","--color-disabled":"_--color-disabled_gm5sj_1","--decoration-line-through":"_--decoration-line-through_gm5sj_139","--align-start--m":"_--align-start--m_gm5sj_1","--align-center--m":"_--align-center--m_gm5sj_1","--align-end--m":"_--align-end--m_gm5sj_1","--variant-title-1--m":"_--variant-title-1--m_gm5sj_1","--variant-title-2--m":"_--variant-title-2--m_gm5sj_1","--variant-title-3--m":"_--variant-title-3--m_gm5sj_1","--variant-title-4--m":"_--variant-title-4--m_gm5sj_1","--variant-title-5--m":"_--variant-title-5--m_gm5sj_1","--variant-title-6--m":"_--variant-title-6--m_gm5sj_1","--variant-featured-1--m":"_--variant-featured-1--m_gm5sj_1","--variant-featured-2--m":"_--variant-featured-2--m_gm5sj_1","--variant-featured-3--m":"_--variant-featured-3--m_gm5sj_1","--variant-body-1--m":"_--variant-body-1--m_gm5sj_1","--variant-body-2--m":"_--variant-body-2--m_gm5sj_1","--variant-body-3--m":"_--variant-body-3--m_gm5sj_1","--variant-caption-1--m":"_--variant-caption-1--m_gm5sj_1","--variant-caption-2--m":"_--variant-caption-2--m_gm5sj_1","--align-start--l":"_--align-start--l_gm5sj_1","--align-center--l":"_--align-center--l_gm5sj_1","--align-end--l":"_--align-end--l_gm5sj_1","--variant-title-1--l":"_--variant-title-1--l_gm5sj_1","--variant-title-2--l":"_--variant-title-2--l_gm5sj_1","--variant-title-3--l":"_--variant-title-3--l_gm5sj_1","--variant-title-4--l":"_--variant-title-4--l_gm5sj_1","--variant-title-5--l":"_--variant-title-5--l_gm5sj_1","--variant-title-6--l":"_--variant-title-6--l_gm5sj_1","--variant-featured-1--l":"_--variant-featured-1--l_gm5sj_1","--variant-featured-2--l":"_--variant-featured-2--l_gm5sj_1","--variant-featured-3--l":"_--variant-featured-3--l_gm5sj_1","--variant-body-1--l":"_--variant-body-1--l_gm5sj_1","--variant-body-2--l":"_--variant-body-2--l_gm5sj_1","--variant-body-3--l":"_--variant-body-3--l_gm5sj_1","--variant-caption-1--l":"_--variant-caption-1--l_gm5sj_1","--variant-caption-2--l":"_--variant-caption-2--l_gm5sj_1","--align-start--xl":"_--align-start--xl_gm5sj_1","--align-center--xl":"_--align-center--xl_gm5sj_1","--align-end--xl":"_--align-end--xl_gm5sj_1","--variant-title-1--xl":"_--variant-title-1--xl_gm5sj_1","--variant-title-2--xl":"_--variant-title-2--xl_gm5sj_1","--variant-title-3--xl":"_--variant-title-3--xl_gm5sj_1","--variant-title-4--xl":"_--variant-title-4--xl_gm5sj_1","--variant-title-5--xl":"_--variant-title-5--xl_gm5sj_1","--variant-title-6--xl":"_--variant-title-6--xl_gm5sj_1","--variant-featured-1--xl":"_--variant-featured-1--xl_gm5sj_1","--variant-featured-2--xl":"_--variant-featured-2--xl_gm5sj_1","--variant-featured-3--xl":"_--variant-featured-3--xl_gm5sj_1","--variant-body-1--xl":"_--variant-body-1--xl_gm5sj_1","--variant-body-2--xl":"_--variant-body-2--xl_gm5sj_1","--variant-body-3--xl":"_--variant-body-3--xl_gm5sj_1","--variant-caption-1--xl":"_--variant-caption-1--xl_gm5sj_1","--variant-caption-2--xl":"_--variant-caption-2--xl_gm5sj_1"},er={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},Q=e=>{const{variant:t,color:n,weight:o,align:s,decoration:i,maxLines:a,children:l,className:d,attributes:f}=e,u=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),h=e.as||u&&er[u]||"div",m=S(nt.root,n&&nt[`--color-${n}`],...W(nt,"--variant",t),...W(nt,"--align",s),o&&nt[`--weight-${o}`],i&&nt[`--decoration-${i}`],a!==void 0&&nt["--clamp"],d),v=j(g({},f==null?void 0:f.style),{"--rs-text-lines":a});return r.jsx(h,j(g({},f),{className:m,style:v,children:l}))},tr=e=>{const{title:t,children:n,icon:o,actionsSlot:s,color:i="neutral",inline:a,bleed:l,className:d,attributes:f}=e,u=i==="neutral",h=()=>a?r.jsxs(r.Fragment,{children:[t&&r.jsx(Q,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&r.jsx(Q,{variant:"body-3",as:"span",children:n})]}):r.jsxs(D,{gap:1,children:[t&&r.jsx(Q,{variant:"body-3",weight:"medium",children:t}),n&&r.jsx(Q,{variant:"body-3",children:n})]}),m=v=>s?r.jsxs(D,{gap:2,direction:a?"row":"column",children:[a?r.jsx(D.Item,{grow:!0,children:v}):v,s&&r.jsx(Q,{variant:"body-3",weight:"medium",children:r.jsx(D,{direction:"row",gap:3,children:s})})]}):v;return r.jsx(D,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:j(g({},f),{role:i==="critical"?"alert":"status"}),children:o?r.jsxs(r.Fragment,{children:[r.jsx(le,{svg:o,size:5,color:u?"primary":i}),r.jsx(D.Item,{grow:!0,children:m(h())})]}):m(h())})},uo=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),nr=uo.Provider,zt=()=>c.useContext(uo),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:o}=zt();return{attributes:e,required:t,hasError:n,disabled:o}},_o={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},jn=(e,t)=>`${e}-${t||"caption"}`,qt=e=>{const{children:t,id:n,required:o,hasError:s,group:i,disabled:a,size:l}=e,d=ze(n),f=i?"fieldset":"div",[u,h]=c.useState(!1),[m,v]=c.useState(!1),b=[u&&jn(d),m&&jn(d,"error")].filter(Boolean).join(" "),p={id:d,"aria-describedby":b},y=()=>{v(!0)},w=()=>{h(!0)};return r.jsx(f,{children:r.jsx(nr,{value:{required:o,hasError:s,errorRef:y,helperRef:w,attributes:p,group:i,disabled:a,size:l},children:t})})},or=e=>{const{children:t}=e,{attributes:n,required:o,group:s,disabled:i,size:a}=zt(),l=`${n.id}-label`,d=s?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return r.jsxs(Q,j(g({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:_o.label,color:i?"disabled":void 0,children:[t,o&&r.jsx(Q,{color:i?"disabled":"critical",as:"span",children:"*"})]}))},mo=e=>{const{children:t,variant:n,disabled:o}=e,{attributes:s,size:i,helperRef:a,errorRef:l}=zt(),d=jn(s.id,n),f=n==="error"?"critical":"neutral-faded",u=n==="error"?l:a;return r.jsx(Q,{as:"span",variant:i==="large"?"body-3":"caption-1",color:o&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:u},className:_o.caption,children:t})},sr=e=>{const{children:t}=e,{disabled:n}=zt();return r.jsx(mo,{disabled:n,children:t})},rr=e=>{const{children:t}=e,{hasError:n}=zt();return n?r.jsx(mo,{variant:"error",children:t}):null};qt.Label=or,qt.Helper=sr,qt.Error=rr;const fo={root:"_root_1q3jm_1","--side-all":"_--side-all_1q3jm_6","--side-start":"_--side-start_1q3jm_10","--side-inline":"_--side-inline_1q3jm_11","--side-end":"_--side-end_1q3jm_15","--side-top":"_--side-top_1q3jm_20","--side-block":"_--side-block_1q3jm_21","--side-bottom":"_--side-bottom_1q3jm_25"},Ot=e=>{const{side:t="all",children:n,className:o,attributes:s}=e,i=typeof t=="string"?[t]:t,a=S(fo.root,i.map(l=>fo[`--side-${l}`]),o);return r.jsx("div",j(g({},s),{className:a,children:n}))},Ee={root:"_root_16c4t_1",input:"_input_16c4t_21",slot:"_slot_16c4t_42",icon:"_icon_16c4t_43",affix:"_affix_16c4t_44",attachment:"_attachment_16c4t_60","attachment--position-start":"_attachment--position-start_16c4t_66","attachment--position-end":"_attachment--position-end_16c4t_76","--disabled":"_--disabled_16c4t_91","--size-medium":"_--size-medium_16c4t_1","--size-large":"_--size-large_16c4t_1","--size-xlarge":"_--size-xlarge_16c4t_1","--variant-faded":"_--variant-faded_16c4t_155","--variant-headless":"_--variant-headless_16c4t_164","--status-error":"_--status-error_16c4t_169","--size-medium--m":"_--size-medium--m_16c4t_1","--size-large--m":"_--size-large--m_16c4t_1","--size-xlarge--m":"_--size-xlarge--m_16c4t_1","--size-medium--l":"_--size-medium--l_16c4t_1","--size-large--l":"_--size-large--l_16c4t_1","--size-xlarge--l":"_--size-xlarge--l_16c4t_1","--size-medium--xl":"_--size-medium--xl_16c4t_1","--size-large--xl":"_--size-large--xl_16c4t_1","--size-xlarge--xl":"_--size-xlarge--xl_16c4t_1"},ho=e=>{const{slot:t,icon:n,size:o,affix:s,position:i}=e;if(!n&&!t&&!s)return null;const a=S(Ee.attachment,Ee[`attachment--position-${i}`]),l=[t&&r.jsx("div",{className:Ee.slot,children:t},"slot"),n&&r.jsx("div",{className:Ee.icon,children:r.jsx(le,{size:$e(o,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),s&&r.jsx("div",{className:Ee.affix,children:s},"affix")].filter(Boolean);return r.jsx("span",{className:a,children:i==="end"?l.reverse():l})},Cn=e=>{var M;const{onChange:t,onFocus:n,onBlur:o,name:s,value:i,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:u,endSlot:h,prefix:m,suffix:v,size:b="medium",variant:p="outline",className:y,attributes:w}=e,x=Ye(),C=ze(e.id),$=(x==null?void 0:x.attributes.id)||((M=e.inputAttributes)==null?void 0:M.id)||C,z=(x==null?void 0:x.disabled)||e.disabled,T=(x==null?void 0:x.hasError)||e.hasError,E=g(g({},e.inputAttributes),x==null?void 0:x.attributes),P=S(Ee.root,y,b&&W(Ee,"--size",b),T&&Ee["--status-error"],z&&Ee["--disabled"],p&&Ee[`--variant-${p}`]),U=F=>{t&&t({name:s,value:F.target.value,event:F})};return r.jsxs("div",j(g({},w),{"data-rs-aligner-target":!0,className:P,children:[r.jsx(ho,{position:"start",icon:d,slot:u,size:b,affix:m}),r.jsx("input",j(g({},E),{className:Ee.input,disabled:z,name:s,placeholder:l,value:i,defaultValue:a,onChange:U,onFocus:n||(E==null?void 0:E.onFocus),onBlur:o||(E==null?void 0:E.onBlur),id:$})),r.jsx(ho,{position:"end",icon:f,slot:h,size:b,affix:v})]}))};Cn.Aligner=Ot;const ir="Enter",ar="Tab",go="ArrowUp",vo="ArrowDown",bo="ArrowRight",po="ArrowLeft",kn="data-rs-keyboard",Bt="data-rs-focus";class lr{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),s=this.generateId();return this.chain[s]={previousId:n,data:t},o&&(o.nextId=s),this.tailId=s,s}remove(t){var d,f;const n=this.chain[t];if(!n)return;const o=n.previousId,s=o&&this.get(o),i=n.nextId,a=i&&this.get(i);s&&(s.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),i||(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),s=this.remove(t);return!o||!o.previousId||n(o)?s:this.removePreviousTill(o.previousId,n)}}const xo=()=>document.documentElement.hasAttribute(kn),yo='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Wt=()=>document.querySelector(`[${Bt}]`)||document.activeElement,Nn=(e,t)=>{const o=Array.from(e.querySelectorAll(yo)).filter(s=>!s.hasAttribute("disabled")&&s.clientHeight>0);return t&&o.length&&o.unshift(t),o},wo=e=>{const{root:t,extraElement:n,target:o,mode:s}=e,i=Nn(t,n),a=i.length-1,l=Wt(),d=i.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let u=f[o];const h=u>a||u<0;return h&&(s==="action-menu"?u=o==="prev"?f.first:f.last:u=o==="prev"?f.last:f.first),{overflow:h,el:i[u]}},Ht=(e,t)=>{var n;(n=document.querySelector(`[${Bt}]`))==null||n.removeAttribute(Bt),t==="selection-menu"?e.setAttribute(Bt,"true"):e.focus()},Rt=(e,t)=>{const n=wo({root:e,target:t});Ht(n.el)},cr=e=>Rt(e,"next"),dr=e=>Rt(e,"prev"),ur=e=>Rt(e,"first"),_r=e=>Rt(e,"last"),mr=(()=>{let e=[];const t=o=>{let s=o.parentNode&&o.parentNode.firstChild;for(;s;){const i=s!==o,a=s.nodeType===1&&!s.hasAttribute("aria-hidden");i&&a&&(s.setAttribute("aria-hidden","true"),e.push(s)),s=s.nextSibling}},n=()=>{e.forEach(o=>{o.removeAttribute("aria-hidden")}),e=[]};return o=>{let s=o;for(e.length&&n();s!==document.body;)t(s),s=s.parentElement;return{release:n}}})(),Ut=(()=>{let e=null,t=null;const n=new lr;return(o,s={})=>{const{mode:i="dialog",onNavigateOutside:a,includeTrigger:l}=s,d=Wt(),f=i==="dialog",u=i==="content-menu",h=i==="selection-menu",m=f||u,v=i==="action-menu"||h,b=Nn(o,l?d:void 0);let p;const y=new MutationObserver(()=>{if(o.contains(document.activeElement))return;const $=Nn(o,l?d:void 0);$.length&&Ht($[0],i)}),w=($={})=>{const{withoutFocusReturn:z}=$;n.removePreviousTill(p,E=>document.body.contains(E.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:z||!xo()}),e&&(e(),t&&t.release(),e=null,t=null);const T=n.tailId&&n.get(n.tailId);T&&Ut(T.data.root,T.data.options)},x=$=>{const z=$.key,T=z===ar,E=T&&!$.shiftKey,P=T&&$.shiftKey,U=v&&z===go,M=v&&z===vo,F=P&&m||U,q=E&&m||M,V=Wt()===d,A=wo({root:o,target:F?"prev":"next",extraElement:l?d:void 0,mode:i});if(T&&v||u&&T&&A.overflow){P&&!V&&$.preventDefault(),w(),a==null||a();return}!F&&!q||($.preventDefault(),A.el&&Ht(A.el,i))};if(e&&e(),f&&(t=mr(o)),y.observe(o,{childList:!0,subtree:!0}),!b.length)return null;document.addEventListener("keydown",x),e=()=>document.removeEventListener("keydown",x);const C=n.tailId&&n.get(n.tailId);return(!C||o!==C.data.root)&&(p=n.add({root:o,trigger:d,options:s}),Ht(b[0],i)),w}})(),fr=100,hr=150;let it={},Ae=null;const jo=e=>{it[e]&&(e===Ae&&(Ae=it[e].parentId),delete it[e],Ae===null&&(it={}))},gr=(e,t,n)=>{var i;const o=Ae?it[Ae]:void 0;!((n==null?void 0:n.current)&&o&&((i=o.contentRef.current)==null?void 0:i.contains(n.current)))&&n&&Ae&&jo(Ae),it[e]={parentId:Ae,triggerRef:n,contentRef:t},Ae=e},Co=(e=!1,t,n)=>{const o=ze(),s=c.useCallback(()=>Ae===o,[o]);return c.useEffect(()=>{e?gr(o,t,n):jo(o)},[e,o,t,n]),s},ce=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,at="+",Te={},$n=[],ko=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),zn=e=>ko(e).split(at).sort().join(at),No=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},vr=e=>{const t=[],n=e.join(at),s=zn(n).split(at),i=(a,l)=>{l.forEach((d,f)=>{const u=a?`${a}+${d}`:d;t.push(u),i(u,l.slice(f+1))})};return i("",s),t},br=(e,t)=>{const n=Object.keys(e);n.length&&vr(n).forEach(o=>{t(o)})},En=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(o=>{const s=e[n];s&&t(zn(o),s)})})};class pr{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{En(t,(o,s)=>{s&&(this.hotkeyMap[o]||(this.hotkeyMap[o]={data:new Set,used:!1}),this.hotkeyMap[o].data.add({callback:s,ref:n}))})},this.unbindHotkeys=t=>{En(t,(n,o)=>{var s,i;o&&((s=this.hotkeyMap[n])==null||s.data.forEach(a=>{a.callback===o&&this.hotkeyMap[n].data.delete(a)}),(i=this.hotkeyMap[n])!=null&&i.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{br(t,o=>{const s=this.hotkeyMap[o];!s||s.used||s!=null&&s.data.size&&s.data.forEach(i=>{var a;(a=i.ref)!=null&&a.current&&!(n.target===i.ref.current||i.ref.current.contains(n.target))||(i.callback(t[o]),this.hotkeyMap[o].used=!0)})})},this.handleKeyUp=t=>{const n=zn(t.key);En(this.hotkeyMap,(o,s)=>{o.split(at).includes(n)&&(s.used=!1)})}}}const Kt=new pr,$o=c.createContext({}),xr=e=>{const{children:t}=e,[n,o]=c.useState(0),[s,i]=c.useState(0),a=c.useCallback(m=>{if(m.repeat||s===0)return;const v=No(m);v&&(Te[v]=m,(v==="meta"||v==="control")&&(Te.mod=m),o(Object.keys(Te).length),v==="meta"&&$n.push(...Object.keys(Te)),Te.Meta&&$n.push(v))},[s]),l=c.useCallback(m=>{if(s===0)return;const v=No(m);v&&(delete Te[v],(v==="meta"||v==="control")&&delete Te.mod,v==="meta"&&$n.forEach(b=>{delete Te[b]}),o(Object.keys(Te).length))},[s]),d=m=>!ko(m).split(at).some(b=>!Te[b]),f=c.useCallback((m,v)=>(i(b=>b+1),Kt.bindHotkeys(m,v),()=>{i(b=>b-1),Kt.unbindHotkeys(m)}),[]),u=c.useCallback(m=>{m.key&&(a(m),Kt.handleKeyDown(Te,m))},[a]),h=c.useCallback(m=>{m.key&&(l(m),Kt.handleKeyUp(m))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",u),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",u),window.removeEventListener("keyup",h)}),[u,h]),r.jsx($o.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},yr=()=>c.useContext($o),ot=(e,t=[],n)=>{const{addHotkeys:o,isPressed:s}=yr(),i=c.useRef(null),a=(n==null?void 0:n.ref)||i;return c.useEffect(()=>{const l=o(e,a);return()=>l==null?void 0:l()},[o,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:s}},Tn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),wr=e=>{const t=c.useState(e||!1),[n,o]=t;return ce(()=>{const s=new MutationObserver(i=>{i.forEach(a=>{if(a.attributeName!=="dir")return;const l=a.target.dir==="rtl";n!==l&&o(l)})});return s.observe(document.documentElement,{attributes:!0}),()=>s.disconnect()},[n]),ce(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(Tn).rtl,In=e=>{const t=e&&window.getComputedStyle(e),n=t==null?void 0:t.overflowY,o=t==null?void 0:t.position,s=n==null?void 0:n.includes("scroll"),i=o==="fixed";return e===document.body||!e?document.body:s&&e.scrollHeight>e.clientHeight||i?e:In(e.parentElement)},zo=16,Yt=["top-start","top","top-end"],Gt=["bottom-start","bottom","bottom-end"],Xt=["start","start-bottom","start-top"],Jt=["end","end-bottom","end-top"],jr={top:[...Yt,...Gt,...Jt,...Xt],bottom:[...Gt,...Yt,...Jt,...Xt],start:[...Xt,...Jt,...Yt,...Gt],end:[...Jt,...Xt,...Yt,...Gt]},Cr=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,Eo=(e,t)=>Math.floor(e/2-t/2),kr=e=>{const n=["top","bottom","start","end"].find(o=>e.startsWith(o))||"bottom";return jr[n]},Mn=e=>{const t=document.documentElement,n=t.scrollLeft,o=n+t.clientWidth,s=t.scrollTop,i=s+t.clientHeight;return e.left>=n&&e.left+e.width<=o&&e.top>=s&&e.top+e.height<=i},To=(e,t,n,o)=>{const{position:s,rtl:i,width:a}=o;let l=0,d=0,f=s;switch(i&&(f=Cr(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=Eo(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=Eo(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||l===void 0)throw Error(`[Reshaped, flyout]: ${f} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),l=Math.round(l+(window.scrollX||0)-n.left);let u=Math.ceil(t.width);const h=Math.ceil(t.height);return a==="full"?(l=zo,u=window.innerWidth-zo*2):a==="trigger"&&(u=e.width),{styles:{left:l,top:d,width:u,height:h},position:f}},Io={left:0,top:0,width:"auto",height:"auto",zIndex:"var(--rs-z-index-flyout)"},Qt={left:0,top:0,position:"fixed",visibility:"hidden",animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},Nr=(e,t,n)=>{const{position:o,forcePosition:s,width:i}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(Qt).forEach(v=>{const b=Qt[v];a.style[v]=b.toString()}),i&&(i==="trigger"?a.style.width=`${l.width}px`:i!=="full"&&(a.style.width=i)),document.body.appendChild(a);const d=a.getBoundingClientRect(),f=In(e),u=f.getBoundingClientRect(),h={top:u.top+document.documentElement.scrollTop-f.scrollTop,left:u.left+document.documentElement.scrollLeft-f.scrollLeft};let m=To(l,d,h,n);if(!Mn(m.styles)&&!s){const v=kr(o),b=v.filter(y=>y==="top"||y==="bottom"),p=(y,w={})=>{const{fullWidth:x}=w;y.some(C=>{const $=j(g({},n),{width:x?"full":n.width,position:C}),z=To(l,d,h,$);return Mn(z.styles)?(m=z,!0):!1})};p(v),Mn(m.styles)||p(b,{fullWidth:!0})}return a.parentNode.removeChild(a),m},$r=(e,t)=>{switch(t.type){case"render":return j(g({},e),{status:"rendered",styles:g({pointerEvents:"none"},Qt)});case"position":return j(g({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:g(g({},Io),t.payload.styles)});case"show":return j(g({},e),{status:"visible"});case"hide":return j(g({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return j(g({},e),{status:"idle",styles:Qt});default:throw new Error("Invalid reducer type")}},zr=(e,t,n)=>{const{position:o="bottom",forcePosition:s,width:i}=n,[a]=Ge(),[l,d]=c.useReducer($r,{position:o,styles:Io,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),u=c.useCallback(()=>{d({type:"show"})},[]),h=c.useCallback(()=>{d({type:"hide"})},[]),m=c.useCallback(()=>{d({type:"remove"})},[]),v=c.useCallback(()=>{if(!e.current||!t.current)return;const b=Nr(e.current,t.current,{width:i,position:o,forcePosition:s,rtl:a});d({type:"position",payload:b})},[e,t,o,a,s,i]);return c.useEffect(()=>{l.status==="rendered"&&v(),l.status==="positioned"&&$t(()=>u())},[l.status,v,u]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:v,render:f,hide:h,remove:m}),[f,v,h,m,l.position,l.styles,l.status])},Er=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=o=>{let s=!1;e.forEach(i=>{(!i.current||i.current===o.target||i.current.contains(o.target))&&(s=!0)}),!s&&t(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},Mo=c.createContext({}),Zt=()=>c.useContext(Mo),Tr=Mo.Provider,So=e=>{const{triggerType:t="click",onOpen:n,onClose:o,children:s,forcePosition:i,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:u,contentAttributes:h,position:m,active:v,id:b,instanceRef:p}=e,[y]=Ge(),w=c.useRef(null),x=c.useRef(null),C=ze(b),$=c.useRef(),z=c.useRef(null),T=c.useRef(!1),E=c.useRef(!1),P=c.useRef(!0),U=zr(w,x,{width:l,position:m,defaultActive:v,forcePosition:i}),M=Zt(),{status:F,updatePosition:q,render:V,hide:A,remove:Z}=U,fe=Co(t!=="hover"&&F!=="idle",x,w),he=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),re=c.useCallback(()=>{!T.current&&F==="idle"&&(n==null||n())},[F]),ee=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&F!=="idle"&&(o==null||o(),X!=null&&X.closeParents&&((Me=M==null?void 0:M.handleClose)==null||Me.call(M)))},[F,fe,t]),He=c.useCallback(X=>{var ge;(ge=x.current)!=null&&ge.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||E.current||ee()},[ee,t,a]),ke=c.useCallback(()=>{re()},[re]),oe=c.useCallback(()=>{he(),$.current=setTimeout(re,fr)},[he,$,re]),H=c.useCallback(()=>{he(),$.current=setTimeout(()=>ee(),hr)},[he,$,ee]),Y=c.useCallback(()=>{F==="idle"?re():ee()},[F,re,ee]),G=()=>E.current=!0,ie=()=>E.current=!1;ce(()=>{if(v){V();return}Js()&&!d?A():Z()},[v,V,A,d]);const we=c.useCallback(X=>{x.current!==X.currentTarget||X.propertyName!=="transform"||F==="hidden"&&Z()},[Z,F]);return ce(()=>{F!=="visible"||!x.current||(z.current=Ut(x.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{z.current=null,ee()}}))},[F,t,ee,a]),c.useEffect(()=>{!d&&F!=="hidden"||d&&F!=="idle"||z.current&&(t==="hover"&&(T.current=!0,setTimeout(()=>{T.current=!1},100)),z.current({withoutFocusReturn:!P.current}),z.current=null,P.current=!0)},[F,t,d]),c.useEffect(()=>()=>{z.current&&z.current(),z.current=null},[]),c.useEffect(()=>{const X=eo(q,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[q]),c.useEffect(()=>{q()},[y,q]),c.useImperativeHandle(p,()=>({open:re,close:ee}),[re,ee]),ot({Escape:()=>ee()},[ee]),Er([x,w],()=>{P.current=!1,ee()}),r.jsx(Tr,{value:{id:C,flyout:U,width:l,triggerElRef:w,flyoutElRef:x,handleClose:ee,handleOpen:re,handleFocus:ke,handleBlur:He,handleMouseEnter:oe,handleMouseLeave:H,handleTransitionEnd:we,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:u,contentAttributes:h},children:s})},Ir=e=>{const{defaultActive:t,onClose:n,onOpen:o}=e,[s,i]=c.useState(t||!1),a=()=>{i(!1),n&&n()},l=()=>{i(!0),o&&o()};return r.jsx(So,j(g({},e),{defaultActive:void 0,active:s,onClose:a,onOpen:l}))},Mr=e=>{const{children:t}=e,{id:n,triggerElRef:o,triggerType:s,flyout:i,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:u,trapFocusMode:h}=Zt();let m={onBlur:l,ref:o};return(s==="click"||h==="action-menu")&&(m.onClick=u),s==="hover"&&(m.onMouseEnter=d,m.onMouseLeave=f),(s==="hover"&&h!=="action-menu"||s==="focus")&&(m.onFocus=a,m["aria-describedby"]=n),(s==="click"||s==="focus"||h==="action-menu")&&(h==="dialog"?m["aria-haspopup"]="dialog":h==="selection-menu"?(m["aria-haspopup"]="listbox",m["aria-autocomplete"]="list"):m["aria-haspopup"]="menu",m["aria-expanded"]=i.status!=="idle",m["aria-controls"]=i.status!=="idle"?n:void 0),r.jsx(r.Fragment,{children:t(m)})},Po=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),Sn=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),Sr=()=>{const{mode:e}=c.useContext(Sn);return e},Fo=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Po),{mode:o,setMode:s,invertMode:i}=c.useContext(Sn);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||o,setColorMode:s,invertColorMode:i}),[e,o,s,i,t,n])},Pr={root:"_root_r30zs_1"},lt=e=>{const{name:t,defaultName:n,colorMode:o,children:s,className:i}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),u=Sr(),h=Fo(),m=!h.theme,v=t||d||h.theme,b=m?u:h.colorMode,y=o==="inverted"?b==="light"?"dark":"light":o||b,w=S(Pr.root,i),x=C=>{f(C)};return ce(()=>{l(!0)},[]),ce(()=>{if(!document||!m)return;const C=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",v),C||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),C||document.documentElement.removeAttribute("data-rs-color-mode")}},[v,y,m]),r.jsx(Po.Provider,{value:{theme:v,colorMode:y,setTheme:x},children:r.jsx("div",{className:w,"data-rs-theme":m?void 0:v,"data-rs-color-mode":m||!o&&!a?void 0:y,children:s})})},Fr=e=>{const{defaultMode:t,children:n}=e,[o,s]=c.useState(t||"light"),i=c.useCallback(l=>{document.documentElement.setAttribute("data-rs-color-mode",l),s(d=>(d!==l&&Gs(),l))},[]);ce(()=>{$t(()=>{Xs()})},[o]),ce(()=>{const l=document.documentElement.getAttribute("data-rs-color-mode");l&&i(l)},[]);const a=c.useMemo(()=>({mode:o,setMode:i,invertMode:()=>{i(o==="light"?"dark":"light")}}),[o,i]);return r.jsx(Sn.Provider,{value:a,children:n})},Lo=c.createContext({}),Lr=()=>c.useContext(Lo),en=e=>{const{children:t,targetRef:n}=e,o=Lr(),s=n||o.scopeRef;return me.createPortal(r.jsx(lt,{children:t}),(s==null?void 0:s.current)||document.body)};function Ar(e){const{children:t}=e,n=c.useRef(null);return r.jsx(Lo.Provider,{value:{scopeRef:n},children:t(n)})}en.Scope=Ar;const ct={content:"_content_12uuh_1",inner:"_inner_12uuh_9","--width-trigger":"_--width-trigger_12uuh_15","--position-top":"_--position-top_12uuh_19","--position-top-end":"_--position-top-end_12uuh_20","--position-top-start":"_--position-top-start_12uuh_21","--position-bottom":"_--position-bottom_12uuh_27","--position-bottom-end":"_--position-bottom-end_12uuh_28","--position-bottom-start":"_--position-bottom-start_12uuh_29","--position-start":"_--position-start_12uuh_45","--position-start-top":"_--position-start-top_12uuh_46","--position-start-bottom":"_--position-start-bottom_12uuh_47","--position-end":"_--position-end_12uuh_53","--position-end-top":"_--position-end-top_12uuh_54","--position-end-bottom":"_--position-end-bottom_12uuh_55","--visible":"_--visible_12uuh_71","--animated":"_--animated_12uuh_76"},Dr=e=>{const{children:t,className:n,attributes:o}=e,{flyout:s,id:i,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:u,handleMouseLeave:h,handleContentMouseDown:m,handleContentMouseUp:v,contentGap:b,contentClassName:p,contentAttributes:y,trapFocusMode:w,width:x}=Zt(),{styles:C,status:$,position:z}=s,[T,E]=c.useState(!1);if(ce(()=>{E(!0)},[]),$==="idle"||!T)return null;const P=S(ct.content,$==="visible"&&ct["--visible"],["visible","hidden"].includes($)&&ct["--animated"],z&&ct[`--position-${z}`],x==="trigger"&&ct["--width-trigger"]),U=S(ct.inner,n,p);let M;f==="hover"?M="tooltip":w==="dialog"?M="dialog":w==="selection-menu"?M="listbox":w==="action-menu"&&(M="menu");const F=r.jsx("div",{className:P,style:j(g({},C),{"--rs-flyout-gap":b}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?u:void 0,onMouseLeave:f==="hover"?h:void 0,onMouseDown:m,onTouchStart:m,onMouseUp:v,onTouchEnd:v,children:r.jsx("div",j(g({role:M},o),{id:i,"aria-modal":f==="click",style:y==null?void 0:y.style,className:U,children:t}))}),q=In(l.current);return r.jsx(en,{targetRef:q===document.body?void 0:{current:q},children:F})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?r.jsx(So,g({},e)):r.jsx(Ir,g({},e))};Xe.Trigger=Mr,Xe.Content=Dr;const Pn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},Vr={root:"_root_e7w6q_1"},Fn=e=>{if(!e)return null;const t=te("--rs-p",e);return{classNames:Vr.root,variables:t}},dt=e=>{var C;const{id:t,forcePosition:n,onOpen:o,onClose:s,active:i,defaultActive:a,children:l,width:d,contentGap:f,variant:u="elevated",triggerType:h="click",position:m="bottom",disableHideAnimation:v,instanceRef:b}=e,p=(C=e.padding)!=null?C:u==="headless"?0:4,y=e.trapFocusMode||(h==="hover"?"content-menu":void 0),w=Fn(p),x=S(Pn.content,!!d&&Pn["content--has-width"],u&&Pn[`content--variant-${u}`],w==null?void 0:w.classNames);return r.jsx(Xe,{id:t,instanceRef:b,position:m,forcePosition:n,onOpen:o,onClose:s,trapFocusMode:y,triggerType:h,active:i,defaultActive:a,width:d,disableHideAnimation:v,contentGap:f,contentClassName:x,contentAttributes:{style:g({},w==null?void 0:w.variables)},children:l})};dt.Trigger=Xe.Trigger,dt.Content=Xe.Content;const Be={root:"_root_13dku_1",icon:"_icon_13dku_12",content:"_content_13dku_17","--rounded-corners":"_--rounded-corners_13dku_22","--size-small":"_--size-small_13dku_1","--size-medium":"_--size-medium_13dku_1","--size-large":"_--size-large_13dku_1","--color-neutral":"_--color-neutral_13dku_61","--selected":"_--selected_13dku_65","--color-critical":"_--color-critical_13dku_71","--color-primary":"_--color-primary_13dku_81","--disabled":"_--disabled_13dku_102",aligner:"_aligner_13dku_123","--rounded-corners-true--m":"_--rounded-corners-true--m_13dku_1","--rounded-corners-false--m":"_--rounded-corners-false--m_13dku_1","--size-small--m":"_--size-small--m_13dku_1","--size-medium--m":"_--size-medium--m_13dku_1","--size-large--m":"_--size-large--m_13dku_1","--rounded-corners-true--l":"_--rounded-corners-true--l_13dku_1","--rounded-corners-false--l":"_--rounded-corners-false--l_13dku_1","--size-small--l":"_--size-small--l_13dku_1","--size-medium--l":"_--size-medium--l_13dku_1","--size-large--l":"_--size-large--l_13dku_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_13dku_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_13dku_1","--size-small--xl":"_--size-small--xl_13dku_1","--size-medium--xl":"_--size-medium--xl_13dku_1","--size-large--xl":"_--size-large--xl_13dku_1"},qr=e=>r.jsx(Ot,j(g({},e),{side:e.side||"inline",className:[Be.aligner,e.className]})),Or=(e,t)=>{const{icon:n,startSlot:o,endSlot:s,children:i,color:a="primary",selected:l,disabled:d,onClick:f,href:u,size:h="medium",roundedCorners:m,className:v,attributes:b}=e,p=S(Be.root,v,W(Be,"--size",h),W(Be,"--rounded-corners",m),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=$e(h,x=>x==="large"?3:2),w=$e(h,x=>x==="large"?5:4);return r.jsx(Le,{disabled:d,className:p,attributes:j(g({},b),{"data-rs-aligner-target":!0}),onClick:f,href:u,ref:t,children:r.jsxs(D,{direction:"row",gap:y,align:"center",children:[n&&r.jsx(le,{svg:n,className:Be.icon,size:w}),!n&&o,i&&r.jsx(D.Item,{grow:!0,className:Be.content,children:i}),s]})})},Ln=c.forwardRef(Or);Ln.Aligner=qr;const tn=()=>r.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:r.jsx("polyline",{points:"9 18 15 12 9 6"})}),nn={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},An=c.createContext(null),ye=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:o="click",trapFocusMode:s="action-menu"}=a,i=Fe(a,["children","position","triggerType","trapFocusMode"]);return r.jsx(dt,j(g({},i),{position:n,padding:0,trapFocusMode:s,triggerType:o,children:t}))},Br=e=>{const{children:t,attributes:n,className:o}=e,s=c.useContext(An),[i]=Ge(),{ref:a}=ot({[i?bo:po]:()=>{var d;(d=s==null?void 0:s.current)==null||d.close()},[ir]:()=>{const d=Wt();d==null||d.click()}},[s==null?void 0:s.current]),l=S(nn.menu,o);return r.jsx(dt.Content,{className:l,attributes:j(g({},n),{ref:a}),children:t})},Wr=e=>{const{children:t}=e;return r.jsx("div",{className:nn.section,role:"group",children:t})},Ao=e=>{const{onClick:t}=e,{handleClose:n}=Zt(),o=s=>{n&&n({closeParents:!0}),t&&t(s)};return r.jsx(Ln,j(g({},e),{roundedCorners:!0,className:nn.item,attributes:g({role:"menuitem"},e.attributes),onClick:o}))},Hr=e=>{const{children:t}=e,n=c.useRef();return r.jsx(An.Provider,{value:n,children:r.jsx(ye,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Rr=e=>{const l=e,{children:t,attributes:n}=l,o=Fe(l,["children","attributes"]),s=c.useContext(An),[i]=Ge(),{ref:a}=ot({[i?po:bo]:()=>{var d;(d=s==null?void 0:s.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return r.jsx(Ao,j(g({},o),{attributes:j(g({},n),{ref:a}),endSlot:r.jsx(le,{autoWidth:!0,svg:tn,className:nn.arrow}),children:t}))},Ur=e=>{const{children:t}=e;return r.jsx(ye.Trigger,{children:n=>r.jsx(Rr,{attributes:n,children:t})})};ye.Trigger=dt.Trigger,ye.Content=Br,ye.Section=Wr,ye.Item=Ao,ye.SubMenu=Hr,ye.SubTrigger=Ur;const Do=c.createContext({}),Vo=e=>{const w=e,{children:t,onChange:n,onItemSelect:o,name:s}=w,i=Fe(w,["children","onChange","onItemSelect","name"]),a=c.useRef(null),[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=!!c.Children.toArray(t).filter(Boolean).length,m=c.useCallback(()=>d(!0),[]),v=()=>d(!1);ot({[`${go},${vo}`]:()=>m()},[m],{ref:a});const b=x=>{n==null||n(x),u(!1),m()},p=x=>{n==null||n({value:x.value,name:s}),o==null||o({value:x.value}),u(!0)},y=x=>{var C;requestAnimationFrame(()=>{f&&(d(!1),u(!1))}),(C=i.onFocus)==null||C.call(i,x)};return r.jsx(Do.Provider,{value:{onItemClick:p},children:r.jsxs(ye,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!f&&h&&l,onClose:v,onOpen:m,disableHideAnimation:!0,children:[r.jsx(ye.Trigger,{children:$=>{var z=$,{ref:x}=z,C=Fe(z,["ref"]);return r.jsx(Cn,j(g({},i),{name:s,onChange:b,attributes:j(g({},i.attributes),{ref:x}),inputAttributes:j(g({},C),{onFocus:T=>{var E;(E=C.onFocus)==null||E.call(C),y(T)},ref:a,role:"combobox"})}))}}),r.jsx(ye.Content,{children:t})]})})},Kr=e=>{const a=e,{value:t,onClick:n}=a,o=Fe(a,["value","onClick"]),{onItemClick:s}=c.useContext(Do),i=l=>{n==null||n(l),s({value:t})};return r.jsx(ye.Item,j(g({},o),{attributes:j(g({},o.attributes),{role:"option"}),onClick:i}))};Vo.Item=Kr;const on={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"},Yr=e=>{const{color:t="neutral",variant:n,src:o,size:s=12,squared:i,initials:a,icon:l,alt:d,className:f,attributes:u}=e,h=i?$e(s,p=>p>=24?"large":p>=12?"medium":"small"):"circular",m=kt(s),v=S(on.root,f,m==null?void 0:m.classNames,t&&on[`--color-${t}`],n&&on[`--variant-${n}`]),b=()=>o?r.jsx("img",{role:a?void 0:"presentation",src:o,alt:d,className:on.img}):l?r.jsx(le,{svg:l,size:$e(s,p=>Math.ceil(p*.4))}):a;return r.jsx(D,{borderRadius:h,attributes:j(g({},u),{style:g({},m==null?void 0:m.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:v,children:b()})},qo=()=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[r.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Ie={root:"_root_xbb1o_1",dismiss:"_dismiss_xbb1o_21","--actionable":"_--actionable_xbb1o_26","--variant-faded":"_--variant-faded_xbb1o_1","--variant-outline":"_--variant-outline_xbb1o_1","--color-positive":"_--color-positive_xbb1o_47","--color-critical":"_--color-critical_xbb1o_67","--color-primary":"_--color-primary_xbb1o_87","--size-small":"_--size-small_xbb1o_1","--size-medium":"_--size-medium_xbb1o_1","--size-large":"_--size-large_xbb1o_1","--rounded":"_--rounded_xbb1o_133","--hidden":"_--hidden_xbb1o_145",container:"_container_xbb1o_152","--container-overlap":"_--container-overlap_xbb1o_177","--container-position-top-end":"_--container-position-top-end_xbb1o_181","--container-position-bottom-end":"_--container-position-bottom-end_xbb1o_193"},Gr=e=>{const{children:t,position:n="top-end",overlap:o,className:s,attributes:i}=e,a=S(Ie.container,s,o&&Ie["--container-overlap"],n&&Ie[`--container-position-${n}`]);return r.jsx("div",j(g({},i),{className:a,children:t}))},Oo=e=>{const{children:t,color:n,rounded:o,size:s="medium",icon:i,endIcon:a,variant:l,hidden:d,href:f,onClick:u,onDismiss:h,dismissAriaLabel:m,className:v,attributes:b}=e,p=!!(u||f),y=s==="large"?4:3.5,w=S(Ie.root,v,o&&Ie["--rounded"],d&&Ie["--hidden"],s&&Ie[`--size-${s}`],n&&Ie[`--color-${n}`],l&&Ie[`--variant-${l}`],p&&Ie["--actionable"]);return r.jsxs(Le,{onClick:u,href:f,className:w,attributes:b,children:[i&&r.jsx(le,{svg:i,autoWidth:!0,size:y}),t&&r.jsx(Q,{variant:s==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&r.jsx(le,{svg:a,autoWidth:!0,size:y}),h&&r.jsx(Le,{onClick:h,className:Ie.dismiss,as:"span",attributes:{"aria-label":m},children:r.jsx(le,{svg:qo,size:y})})]})};Oo.Container=Gr;const sn={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"},Bo=e=>{const{size:t="small",color:n="primary",className:o,attributes:s}=e,i=s==null?void 0:s["aria-label"],a=S(sn.root,o,W(sn,"--size",t),n&&sn[`--color-${n}`]);return r.jsx("span",j(g({},s),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:a,children:r.jsx("span",{className:sn.inner})}))},ue={root:"_root_6msy8_1",loader:"_loader_6msy8_37",icon:"_icon_6msy8_45","--icon-position-end":"_--icon-position-end_6msy8_49",text:"_text_6msy8_60","--loading":"_--loading_6msy8_66","--elevated":"_--elevated_6msy8_83","--icon-only":"_--icon-only_6msy8_87","--rounded":"_--rounded_6msy8_93","--size-small":"_--size-small_6msy8_1","--size-medium":"_--size-medium_6msy8_1","--size-large":"_--size-large_6msy8_1","--size-xlarge":"_--size-xlarge_6msy8_1","--full-width":"_--full-width_6msy8_135","--variant-solid":"_--variant-solid_6msy8_149","--color-black":"_--color-black_6msy8_149","--color-white":"_--color-white_6msy8_150","--variant-faded":"_--variant-faded_6msy8_151","--color-neutral":"_--color-neutral_6msy8_151","--color-primary":"_--color-primary_6msy8_152","--color-critical":"_--color-critical_6msy8_153","--color-positive":"_--color-positive_6msy8_154","--color-inherit":"_--color-inherit_6msy8_155","--variant-outline":"_--variant-outline_6msy8_156","--variant-ghost":"_--variant-ghost_6msy8_157","--highlighted":"_--highlighted_6msy8_176","--disabled":"_--disabled_6msy8_529",group:"_group_6msy8_561",aligner:"_aligner_6msy8_622","--size-small--m":"_--size-small--m_6msy8_1","--size-medium--m":"_--size-medium--m_6msy8_1","--size-large--m":"_--size-large--m_6msy8_1","--size-xlarge--m":"_--size-xlarge--m_6msy8_1","--full-width-true--m":"_--full-width-true--m_6msy8_1","--full-width-false--m":"_--full-width-false--m_6msy8_1","--size-small--l":"_--size-small--l_6msy8_1","--size-medium--l":"_--size-medium--l_6msy8_1","--size-large--l":"_--size-large--l_6msy8_1","--size-xlarge--l":"_--size-xlarge--l_6msy8_1","--full-width-true--l":"_--full-width-true--l_6msy8_1","--full-width-false--l":"_--full-width-false--l_6msy8_1","--size-small--xl":"_--size-small--xl_6msy8_1","--size-medium--xl":"_--size-medium--xl_6msy8_1","--size-large--xl":"_--size-large--xl_6msy8_1","--size-xlarge--xl":"_--size-xlarge--xl_6msy8_1","--full-width-true--xl":"_--full-width-true--xl_6msy8_1","--full-width-false--xl":"_--full-width-false--xl_6msy8_1"},Xr=e=>{const{children:t,className:n,attributes:o}=e,s=S(ue.group,n);return r.jsx("div",j(g({},o),{className:s,role:"group",children:t}))},Jr=e=>r.jsx(Ot,j(g({},e),{side:e.side||e.position,className:[ue.aligner,e.className]})),Qr=(e,t)=>{const{variant:n="solid",color:o="neutral",elevated:s,highlighted:i,fullWidth:a,loading:l,disabled:d,type:f,href:u,size:h="medium",className:m,children:v,rounded:b,attributes:p,onClick:y,icon:w,endIcon:x}=e,C=(w||x)&&!v,$=S(ue.root,m,o&&ue[`--color-${o}`],n&&ue[`--variant-${n}`],W(ue,"--size",h),W(ue,"--full-width",a),s&&n!=="ghost"&&ue["--elevated"],b&&ue["--rounded"],d&&ue["--disabled"],l&&ue["--loading"],i&&ue["--highlighted"],C&&ue["--icon-only"]),z=T=>{if(!(T==="start"&&w||T==="end"&&x))return null;const M=S(ue.icon,T==="end"&&ue["--icon-position-end"]),F=$e(h,q=>q==="large"?5:q==="xlarge"?6:4);return r.jsx(le,{className:M,svg:T==="start"?w:x,size:F,autoWidth:!0})};return r.jsxs(Le,{disabled:d||l,className:$,attributes:j(g({},p),{"data-rs-aligner-target":!0}),type:f,onClick:y,href:u,ref:t,children:[l&&r.jsx("div",{className:ue.loader,children:r.jsx(Bo,{size:"small",color:"inherit"})}),z("start"),v&&r.jsx("span",{className:ue.text,children:v}),z("end")]})},Ce=c.forwardRef(Qr);Ce.Group=Xr,Ce.Aligner=Jr;const Zr=()=>r.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.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"}),r.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"}),r.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"})]}),ei=e=>{const{children:t,separator:n,color:o,defaultVisibleItems:s,ariaLabel:i,className:a,attributes:l}=e,d=s&&s>=2?s:null,[f,u]=c.useState(!1),h=S(a),m=c.Children.count(t);let v=0;const b=()=>{u(!0)};return r.jsx("nav",j(g({},l),{"aria-label":i||(l==null?void 0:l["aria-label"]),className:h,children:r.jsx(D,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(p,y)=>{if(!p)return null;const w=m-(d||0),x=v===0,C=v>w,$=!d||x||C||f,z=v===w;v+=1;let T=null;return $?T=p:z&&(T=r.jsx(Ce.Aligner,{children:r.jsx(Ce,{variant:"ghost",size:"small",icon:Zr,onClick:b})})),T===null?null:r.jsxs(D,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||z)&&r.jsx(Q,{color:"neutral-faded",children:n||r.jsx(le,{svg:tn,size:3})}),r.jsx(Q,{variant:"body-3",color:o==="primary"?"primary":"neutral-faded",children:T})]},y)})})}))},Et={root:"_root_80rry_1","--color-primary":"_--color-primary_80rry_6","--color-critical":"_--color-critical_80rry_10","--color-positive":"_--color-positive_80rry_14","--color-inherit":"_--color-inherit_80rry_18","--variant-plain":"_--variant-plain_80rry_23","--disabled":"_--disabled_80rry_27","--variant-underline":"_--variant-underline_80rry_33","--with-icon":"_--with-icon_80rry_49"},ti=(e,t)=>{const{icon:n,disabled:o,href:s,color:i="primary",variant:a="underline",className:l,children:d,attributes:f,type:u,onClick:h}=e,m=S(Et.root,l,o&&Et["--disabled"],a&&Et[`--variant-${a}`],i&&Et[`--color-${i}`],n&&Et["--with-icon"]);return r.jsxs(Le,{href:s,disabled:o,className:m,attributes:f,type:u,onClick:h,ref:t,children:[n&&r.jsx(le,{svg:n}),d]})},Wo=c.forwardRef(ti),ni=e=>{const{children:t,onClick:n,href:o,icon:s,disabled:i}=e;return!o&&!n&&!i?r.jsx(Q,{variant:"body-3",weight:"medium",color:"neutral",children:t}):r.jsx(Wo,{onClick:n,href:o,icon:s,disabled:i,variant:"plain",color:"inherit",children:t})},Ho=ei;Ho.Item=ni;const ut={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},oi=(e,t)=>{const{padding:n=4}=e,{selected:o,elevated:s,bleed:i,height:a,onClick:l,href:d,children:f,className:u,attributes:h,as:m="div"}=e,v=!!d||!!l,b=vn("medium"),p=ro(i),y=Fn(n),w=kt(a),x=S(ut.root,b==null?void 0:b.classNames,p==null?void 0:p.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,v&&ut["--actionable"],s&&ut["--elevated"],o&&ut["--selected"],u),C=g(g(g(g({},h==null?void 0:h.style),p==null?void 0:p.variables),y==null?void 0:y.variables),w==null?void 0:w.variables);return v?r.jsx(Le,{className:x,attributes:j(g({},h),{style:C}),href:d,as:m,onClick:l,ref:t,children:r.jsx("span",{className:ut.content,children:f})}):r.jsx(m,j(g({},h),{onClick:l,href:d,ref:t,className:x,style:C,children:r.jsx("span",{className:ut.content,children:f})}))},si=c.forwardRef(oi),Ro=()=>r.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:r.jsx("polyline",{points:"15 18 9 12 15 6"})});var _t=(e=>(e.back="back",e.forward="forward",e))(_t||{});const We={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},Uo=e=>{const{type:t,scrollElRef:n,scrollPosition:o,onClick:s,isRTL:i,mounted:a}=e,[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=t===_t.forward,m=t===(i?_t.back:_t.forward),v=S(We.control,m?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return ce(()=>{const b=n.current;if(!b||!a)return;let p;const y=Math.abs(o),w=y<=0,x=y+b.clientWidth>=b.scrollWidth-1;return(h?x:w)?(d(!1),p=setTimeout(()=>u(!1),1500)):(u(!0),d(!0)),()=>{p&&clearTimeout(p)}},[o,n.current,a]),r.jsx("div",{className:v,"aria-hidden":"true",children:r.jsx(Ce,{onClick:s,icon:m?tn:Ro,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},ri=e=>{const{children:t,gap:n=3,visibleItems:o,bleed:s,navigationDisplay:i,instanceRef:a,className:l,attributes:d}=e,[f,u]=c.useState(!1),[h,m]=c.useState(0),[v]=Ge(),b=c.useRef(null),p={};typeof s=="object"&&Object.entries(s).forEach(([E,P])=>{p[E]=typeof P=="number"&&P>0});const y=S(We.root,l,...W(We,"--bleed",typeof s=="number"?!0:p)),w=Is(E=>{const P=E.target;m(P.scrollLeft)},16),x=()=>{const P=getComputedStyle(b.current).gap.split(" ")[0];return Number(P.replace("px",""))},C=()=>{const E=b.current;E.scrollBy({left:E.clientWidth+x(),top:0,behavior:"smooth"})},$=()=>{const E=b.current;E.scrollBy({left:-E.clientWidth-x(),top:0,behavior:"smooth"})},z=v?C:$,T=v?$:C;return c.useImperativeHandle(a,()=>({navigateBack:z,navigateForward:T})),ce(()=>{u(!0)},[]),r.jsxs("section",j(g({},d),{className:y,style:g(g({},te("--rs-carousel-items",o)),te("--rs-carousel-bleed",s)),children:[i!=="hidden"&&r.jsxs(r.Fragment,{children:[r.jsx(Uo,{isRTL:v,type:_t.back,scrollElRef:b,scrollPosition:h,onClick:z,mounted:f}),r.jsx(Uo,{isRTL:v,type:_t.forward,scrollElRef:b,scrollPosition:h,onClick:T,mounted:f})]}),r.jsx(D,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:b,onScroll:w},children:c.Children.map(t,E=>r.jsx(D.Item,{className:We.item,as:"li",children:E}))})]}))},ii={root:"_root_1feer_1"},Dn=e=>{const{name:t,value:n,type:o,onChange:s,onFocus:i,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:u,attributes:h}=e,m=S(ii.root,u);return r.jsx("input",j(g({},h),{className:m,type:o,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:s,onFocus:i||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},Ko=c.createContext(null),ai=()=>c.useContext(Ko),Yo=e=>{const{onChange:t,name:n,disabled:o,value:s,children:i,hasError:a}=e,l=d=>{const{event:f,value:u,checked:h}=d;if(!u)return;let m=[...s];h?m.push(u):m=m.filter(v=>v!==u),t&&t({name:n,value:m,event:f})};return r.jsx(Ko.Provider,{value:{onChange:l,disabled:o,value:s,name:n,hasError:a},children:i})},li=e=>{const{defaultValue:t,onChange:n}=e,[o,s]=c.useState(t||[]),i=a=>{a.value&&(s(a.value),n&&n(a))};return r.jsx(Yo,j(g({},e),{value:o,defaultValue:void 0,onChange:i}))},ci=e=>{const{value:t}=e;return t!==void 0?r.jsx(Yo,g({},e)):r.jsx(li,g({},e))},Go=()=>r.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:r.jsx("polyline",{points:"20 6 9 17 4 12"})}),Je={root:"_root_187rd_1",decorator:"_decorator_187rd_11",field:"_field_187rd_15",icon:"_icon_187rd_44",input:"_input_187rd_54","--error":"_--error_187rd_60","--disabled":"_--disabled_187rd_91"},di=e=>{var $;const{children:t,value:n,onChange:o,onFocus:s,onBlur:i,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,u=ai(),h=Ye(),m=(h==null?void 0:h.hasError)||e.hasError||(u==null?void 0:u.hasError),v=(h==null?void 0:h.disabled)||e.disabled||(u==null?void 0:u.disabled),b=u?($=u.value)==null?void 0:$.includes(n):e.checked,p=u?void 0:e.defaultChecked,y=u?u.name:e.name,w=c.useRef(null),x=S(Je.root,l,m&&Je["--error"],v&&Je["--disabled"]),C=z=>{if(!y)return;const{checked:T}=z.target,E={name:y,value:n,checked:T,event:z};o&&o(E),u!=null&&u.onChange&&u.onChange(E)};return ce(()=>{w.current.indeterminate=a||!1},[a,b]),r.jsxs("label",j(g({},d),{className:x,children:[r.jsxs("span",{className:Je.field,children:[r.jsx(Dn,{className:Je.input,type:"checkbox",checked:b,defaultChecked:p,name:y,disabled:v,value:n,onChange:C,onFocus:s,onBlur:i,attributes:j(g({},f),{ref:w})}),r.jsx("div",{className:Je.decorator,children:r.jsx(le,{svg:Go,className:Je.icon})})]}),t&&r.jsx("span",{className:Je.text,children:t})]}))},ui={root:"_root_1c40o_1"},_i=e=>{const{children:t,padding:n=4,width:o,className:s,attributes:i}=e,a=S(ui.root,s);return r.jsx(D,{attributes:i,className:a,paddingInline:n,width:o,maxWidth:"100%",children:t})},Tt={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},mi=e=>{const{children:t,align:n,onClose:o,hideCloseButton:s,variant:i,closeAriaLabel:a,className:l,attributes:d}=e,f=S(Tt.root,l,i&&Tt[`--variant-${i}`],n&&Tt[`--align-${n}`],s&&Tt["--hide-close"]),u=i==="media"?"div":Ce.Aligner;return r.jsxs("div",j(g({},d),{className:f,children:[t,!s&&r.jsx(u,{className:Tt.close,children:r.jsx(Ce,j(g({size:"small"},i==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:o,attributes:{"aria-label":o?a:void 0},icon:qo}))})]}))},fi={root:"_root_1g94s_1"},Xo=e=>{const{children:t}=e;return r.jsx("div",{className:fi.root,children:t})},rn=e=>{const[t,n]=c.useState(e||!1),o=c.useCallback(()=>{n(!0)},[]),s=c.useCallback(()=>{n(!1)},[]),i=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:o,deactivate:s,toggle:i}},It={root:"_root_1dzzo_1","--highlighted":"_--highlighted_1dzzo_2",triggerLayer:"_triggerLayer_1dzzo_2",trigger:"_trigger_1dzzo_2"},hi=e=>{const{children:t}=e;return r.jsx("span",{className:It.trigger,children:t})},Jo=e=>{const{name:t,children:n,className:o,attributes:s,inputAttributes:i,onChange:a}=e,l=rn(),d=S(It.root,l.active&&It["--highlighted"],o),f=b=>{var p;b.preventDefault(),(p=s==null?void 0:s.onDragOver)==null||p.call(s,b)},u=b=>{var p;l.activate(),(p=s==null?void 0:s.onDragEnter)==null||p.call(s,b)},h=b=>{var p;b.currentTarget.contains(b.relatedTarget)||(l.deactivate(),(p=s==null?void 0:s.onDragLeave)==null||p.call(s,b))},m=b=>{var p;b.preventDefault(),l.deactivate(),a==null||a({name:t,value:Array.from(b.dataTransfer.files),event:b}),(p=s==null?void 0:s.onDrop)==null||p.call(s,b)},v=b=>{var y;const p=b.target.files;p&&(a==null||a({name:t,event:b,value:Array.from(p)}),(y=i==null?void 0:i.onChange)==null||y.call(i,b))};return r.jsx("div",j(g({},s),{className:d,onDragOver:f,onDragEnter:u,onDragLeave:h,onDrop:m,children:r.jsxs(D,{as:"label",className:It.triggerLayer,padding:6,borderRadius:"medium",gap:2,align:"center",textAlign:"center",animated:!0,children:[r.jsx(D.Item,{children:n}),r.jsx(Xo,{children:r.jsx("input",j(g({},i),{type:"file",className:It.field,name:t,onChange:v}))})]})}))};Jo.Trigger=hi;const Qo={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},gi=e=>{const{children:t,active:n,className:o,attributes:s}=e,i=S(Qo.root,n&&Qo["--active"],o);return r.jsx(Q,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:s,children:t})},an={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},vi=e=>{const{src:t,alt:n,width:o,height:s,onLoad:i,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:u,attributes:h,imageAttributes:m}=e,[v,b]=c.useState("loading"),p=vn(f),y=bn(o),w=kt(s),x=S(an.root,p==null?void 0:p.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,d&&an[`--display-mode-${d}`],u),C=S(an.image,x),$=S(an.fallback,x),z=g(g({},y==null?void 0:y.variables),w==null?void 0:w.variables),T=P=>{b("success"),i==null||i(P)},E=P=>{b("error"),a==null||a(P)};return c.useEffect(()=>{b("loading")},[t]),(v==="error"||!t)&&l?typeof l=="string"?r.jsx("img",j(g({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:z})):r.jsx("div",j(g({},h),{className:$,style:z,children:l})):r.jsx("img",j(g(g({},h),m),{src:t,alt:n,role:n?void 0:"presentation",onLoad:T,onError:E,className:C,style:z}))},bi=(()=>{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}})(),Zo=()=>{const[e,t]=c.useState(!1),n=c.useRef(),o=c.useRef(!1),s=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=bi();document.body.style.paddingRight=`${d}px`}t(!0)},[t,o,n]),i=c.useCallback(()=>{document.body.style.overflow=n.current||"",o.current&&(document.body.style.paddingRight=""),t(!1)},[t,o,n]);return{scrollLocked:e,lockScroll:s,unlockScroll:i}},mt={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},es=e=>{const{active:t,children:n,transparent:o,onClose:s,className:i,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),u=c.useRef(!1),h=c.useRef(null),{lockScroll:m,unlockScroll:v}=Zo(),{active:b,activate:p,deactivate:y}=rn(t||!1),{active:w,activate:x,deactivate:C}=rn(t||!1),$=Co(t,f),z=S(mt.root,w&&mt["--visible"],o&&mt["--transparent"],i),T=V=>{if(!f.current)return;const A=f.current.firstChild;if(A)return A.contains(V)},E=()=>{f.current&&(h.current=Ut(f.current))},P=()=>{h.current&&(h.current(),h.current=null)},U=c.useCallback(()=>{!w||!$()||s&&s()},[w,$]),M=V=>{u.current=!T(V.target)},F=V=>{const A=!T(V.target);u.current&&A&&!o&&U()},q=V=>{V.propertyName!=="opacity"||V.target!==V.currentTarget||w||(o||v(),y())};return ot({Escape:U},[U]),c.useEffect(()=>{t&&!b&&p(),!t&&b&&C()},[t,p,C,b]),c.useEffect(()=>{b&&(o||m(),$t(()=>x()))},[b,x,m,o]),c.useEffect(()=>{if(b)return E(),()=>P()},[b]),c.useEffect(()=>()=>{o||v()},[v,o]),ce(()=>{d(!0)},[]),!b||!l?null:r.jsx(en,{children:r.jsx(en.Scope,{children:V=>r.jsx("div",j(g({},a),{ref:V,role:"button",tabIndex:-1,className:z,onMouseDown:M,onMouseUp:F,onTransitionEnd:q,children:r.jsx("div",{className:mt.wrapper,children:r.jsx("div",{className:mt.inner,children:r.jsx("div",{className:mt.content,ref:f,children:typeof n=="function"?n({active:w}):n})})})}))})})},Vn={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"},ts=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),ns=()=>c.useContext(ts),pi=e=>{const{children:t}=e,{id:n,setTitleMounted:o}=ns();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),r.jsx(Q,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},xi=e=>{const{children:t}=e,{id:n,setSubtitleMounted:o}=ns();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),r.jsx(Q,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},qn=e=>{const{children:t,onClose:n,active:o,size:s,padding:i=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,u=ze(),[h,m]=c.useState(!1),[v,b]=c.useState(!1),p=Fn(i),y=c.useMemo(()=>({titleMounted:h,setTitleMounted:m,subtitleMounted:v,setSubtitleMounted:b,id:u}),[u,v,h]);return r.jsx(es,{onClose:n,active:o,transparent:l,children:({active:w})=>{const x=S(Vn.root,d,p==null?void 0:p.classNames,w&&Vn["--active"],W(Vn,"--position",a));return r.jsx(ts.Provider,{value:y,children:r.jsx("div",j(g({},f),{style:g(g({},p==null?void 0:p.variables),te("--rs-modal-size",s)),"aria-labelledby":h?`${u}-title`:void 0,"aria-describedby":v?`${u}-subtitle`:void 0,className:x,"aria-modal":"true",role:"dialog",children:t}))})}})};qn.Title=pi,qn.Subtitle=xi;const Mt={root:"_root_1ux6v_1",value:"_value_1ux6v_9","--duration":"_--duration_1ux6v_23","--size-small":"_--size-small_1ux6v_27","--size-medium":"_--size-medium_1ux6v_31","--color-primary":"_--color-primary_1ux6v_35","--color-critical":"_--color-critical_1ux6v_39","--color-positive":"_--color-positive_1ux6v_43","--color-white":"_--color-white_1ux6v_47"},yi=e=>{const{value:t=0,min:n=0,max:o=100,color:s="primary",size:i="medium",duration:a,className:l,attributes:d}=e,f=S(Mt.root,l,s&&Mt[`--color-${s}`],i&&Mt[`--size-${i}`],!!a&&Mt["--duration"]),u=o-n,h=t-n,b=`${Math.max(n,Math.min(o,h))/u*100-100}%`;return r.jsx("div",j(g({role:"progressbar"},d),{className:f,"aria-valuemax":o,"aria-valuemin":n,"aria-valuenow":t,children:r.jsx("div",{className:Mt.value,style:{"--rs-progress-value":b,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},os=c.createContext(null),wi=()=>c.useContext(os),ss=e=>{const{onChange:t,name:n,disabled:o,value:s,children:i,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return r.jsx(os.Provider,{value:{onChange:l,disabled:o,value:s,name:n,hasError:a},children:i})},ji=e=>{const{defaultValue:t,onChange:n}=e,[o,s]=c.useState(t||null),i=a=>{a.value&&(s(a.value),n&&n(a))};return r.jsx(ss,j(g({},e),{value:o,defaultValue:void 0,onChange:i}))},Ci=e=>{const{value:t}=e;return t!==void 0?r.jsx(ss,g({},e)):r.jsx(ji,g({},e))},st={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"},ki=e=>{const{children:t,value:n,onChange:o,onFocus:s,onBlur:i,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),u=wi(),h=(f==null?void 0:f.hasError)||e.hasError||(u==null?void 0:u.hasError),m=(f==null?void 0:f.disabled)||e.disabled||(u==null?void 0:u.disabled),v=u?u.value===n:e.checked,b=u?void 0:e.defaultChecked,p=u?u.name:e.name,y=S(st.root,a,h&&st["--error"],m&&st["--disabled"]),w=x=>{if(!p)return;const{checked:C}=x.target,$={name:p,value:n,checked:C,event:x};o&&o($),u!=null&&u.onChange&&u.onChange($)};return r.jsxs("label",j(g({},l),{className:y,children:[r.jsxs("span",{className:st.field,children:[r.jsx(Dn,{className:st.input,type:"radio",checked:v,defaultChecked:b,name:p,disabled:m,value:n,onChange:w,onFocus:s,onBlur:i,attributes:d}),r.jsx("div",{className:st.decorator})]}),t&&r.jsx("span",{className:st.text,children:t})]}))},rs={short:4e3,long:8e3},St=["top-start","top","top-end","bottom-start","bottom","bottom-end"],is={queues:St.reduce((e,t)=>g({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},ln=c.createContext(is),Ni=()=>{const{add:e,hide:t}=c.useContext(ln);return c.useMemo(()=>({show:e,hide:t}),[e,t])},De={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},$i=e=>{const{size:t="small",text:n,children:o,color:s="inverted",icon:i,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:u}=e;let h=s==="inverted"||s==="neutral"?"elevation-overlay":s;s==="neutral"&&(h=f?"neutral":"elevation-overlay");const m=s==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",b=t==="large";let p=[];l&&(p=Array.isArray(l)?l:[l]);const y=(a||n)&&r.jsxs(r.Fragment,{children:[a&&r.jsxs(Q,{variant:"body-3",weight:"bold",as:v,children:[a," "]}),r.jsx(Q,{variant:"body-3",as:v,children:n})]}),w=r.jsxs(D,{backgroundColor:h,borderColor:m,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:b?"start":"center",className:De.toast,attributes:u,children:[i&&r.jsx(le,{size:5,svg:i,className:De.icon}),d&&!i&&r.jsx(D.Item,{children:d}),r.jsx(D.Item,{grow:!0,children:r.jsxs(D,{direction:b?"column":"row",align:b?"start":"center",gap:3,children:[r.jsx(D.Item,{grow:!0,children:y&&o||t!=="small"?r.jsxs(D,{gap:.5,children:[y,o&&r.jsx(D,{gap:3,children:o})]}):y||o}),p.length&&r.jsx(D,{direction:"row",align:"center",gap:2,children:p.map((x,C)=>{const $=t==="large"?C===0:C===p.length-1,T={variant:$?"solid":"ghost",size:"small",color:$?s==="neutral"||s==="inverted"?"neutral":"white":"inherit",elevated:s!=="neutral"};return x.type===Ce?c.createElement(Ce,j(g(g({},T),x.props),{key:C})):x})})]})})]});return s==="inverted"?r.jsx(lt,{colorMode:"inverted",children:w}):w},zi=e=>{const{toastProps:t,id:n,status:o,inspected:s,index:i}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(ln),[u,h]=c.useState(),m=c.useRef(),v=c.useRef(!1),b=c.useRef(null),p=c.useRef(null),y=o==="entered",w=S(De.container,y&&De["container--visible"],i===0&&De[`container--index-${i}`],!s&&(i===1||i===2)&&De[`container--index-${i}`],!s&&i>=3&&De["container--index-overflow"]),x=c.useCallback(()=>{m.current&&clearTimeout(m.current)},[]),C=c.useCallback(()=>{x();const z=typeof a=="string"?rs[a]:a;a!==0&&(m.current=setTimeout(()=>{d(n)},z!=null?z:rs.short))},[d,n,a,x]),$=z=>{z.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(s?x():C())},[s,C,x,y]),c.useEffect(()=>{p.current&&h(p.current.clientHeight),l(n),C()},[l,n,C]),c.useEffect(()=>{p.current&&(y?b.current=Ut(p.current,{includeTrigger:!0,mode:"content-menu"}):b.current&&xo()&&(b.current(),b.current=null))},[y]),c.useEffect(()=>{if(!y||i>0)return;const z=()=>{v.current=!0,$t(()=>{v.current=!1}),p.current&&h(p.current.clientHeight)};return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[y,i]),r.jsx("li",{className:w,style:{height:o==="entered"?`calc(${u}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:v.current?"0s":void 0},onTransitionEnd:$,onFocus:x,onBlur:C,children:r.jsx("span",{className:De.wrapper,children:r.jsx($i,j(g({},t),{collapsed:i>0&&!s,attributes:{ref:p}}))})})},Ei=e=>{const{position:t}=e,{queues:n,options:o}=c.useContext(ln),[s,i]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:u}=(o==null?void 0:o[t])||{},h=S(De.region,De[`region--position-${t}`]),m=d.filter(x=>x.status==="entered").length;let v=0;const b=()=>{a.current=!0},p=x=>{let C=x.target,$=!1;for(;C&&C!==l.current&&!$;)$=C.matches(yo),C=C.parentElement;$||i(z=>!z),a.current=!1},y=()=>{a.current||i(!0)},w=()=>{a.current||i(!1)};return c.useEffect(()=>{d.length===0&&i(!1)},[d.length]),d.length?r.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:l,onTouchStart:b,onClick:p,onMouseEnter:y,onMouseLeave:w,style:{width:f},children:d.map((x,C)=>{const $=m-C+v-1;return x.status!=="entered"&&(v+=1),r.jsx(zi,j(g({},x),{index:$,inspected:s||!!u}),x.id)})}):null};let Ti=0;const Ii=()=>`__rs-toast-${Ti++}`,Mi=(e,t)=>{let n;switch(t.type){case"add":const o=t.payload.toastProps||{},{position:s="bottom-end"}=o,i=Fe(o,["position"]);return j(g({},e),{[s]:[...e[s],{id:t.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:a}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(u=>u.status!=="entering"?u:u.id===a?j(g({},u),{status:"entered"}):u)}),n;case"hide":const{id:l}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(u=>u.id===l?j(g({},u),{status:"exiting"}):u)}),n;case"remove":const{id:d}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].filter(u=>u.id!==d)}),n}},Si=e=>{const{children:t,options:n}=e,[o,s]=c.useReducer(Mi,is.queues),i=c.useCallback(u=>{const h=Ii();return s({type:"add",payload:{toastProps:u,id:h}}),h},[]),a=c.useCallback(u=>{s({type:"show",payload:{id:u}})},[]),l=c.useCallback(u=>{s({type:"hide",payload:{id:u}})},[]),d=c.useCallback(u=>{s({type:"remove",payload:{id:u}})},[]),f=c.useMemo(()=>({queues:o,add:i,show:a,hide:l,remove:d,inspecting:!1,options:n}),[o,a,l,i,d,n]);return r.jsxs(ln.Provider,{value:f,children:[t,St.map(u=>r.jsx(Ei,{position:u},u))]})},Pi=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(kn,"true")},t=()=>{document.documentElement.removeAttribute(kn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},Fi={root:"_root_18j53_1"},Li=e=>{const{children:t,defaultRTL:n,defaultViewport:o="s",toastOptions:s}=e,i=wr(n);return Pi(),r.jsx(Tn.Provider,{value:{rtl:i,defaultViewport:o},children:r.jsx(xr,{children:r.jsx(Si,{options:s,children:t})})})},Ai=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:o,className:s}=e,i=S(Fi.root,s);return r.jsx(Fr,{defaultMode:o,children:r.jsx(lt,{name:t,defaultName:n,className:i,children:r.jsx(Li,j(g({},e),{children:e.children}))})})},Pt={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},Di=e=>{const{children:t,backgroundSlot:n,position:o="cover",attributes:s,className:i,scrimClassName:a}=e,l=S(Pt.root,!!n&&Pt["--with-background"],o&&Pt[`--position-${o}`],i),d=S(Pt.scrim,a);return r.jsxs("div",j(g({},s),{className:l,children:[n,r.jsx("div",{className:d,children:r.jsx("div",{className:Pt.content,children:t})})]}))},Vi=()=>r.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ve={root:"_root_1jhw5_1",input:"_input_1jhw5_18",slot:"_slot_1jhw5_45",arrow:"_arrow_1jhw5_60","--size-medium":"_--size-medium_1jhw5_1","--size-large":"_--size-large_1jhw5_1","--size-xlarge":"_--size-xlarge_1jhw5_1","--variant-faded":"_--variant-faded_1jhw5_115","--variant-headless":"_--variant-headless_1jhw5_124","--status-error":"_--status-error_1jhw5_129","--placeholder":"_--placeholder_1jhw5_144","--disabled":"_--disabled_1jhw5_148","--size-medium--m":"_--size-medium--m_1jhw5_1","--size-large--m":"_--size-large--m_1jhw5_1","--size-xlarge--m":"_--size-xlarge--m_1jhw5_1","--size-medium--l":"_--size-medium--l_1jhw5_1","--size-large--l":"_--size-large--l_1jhw5_1","--size-xlarge--l":"_--size-xlarge--l_1jhw5_1","--size-medium--xl":"_--size-medium--xl_1jhw5_1","--size-large--xl":"_--size-large--xl_1jhw5_1","--size-xlarge--xl":"_--size-xlarge--xl_1jhw5_1"},qi=e=>{var q,V;const{onChange:t,onClick:n,onFocus:o,onBlur:s,name:i,value:a,defaultValue:l,placeholder:d,options:f,children:u,icon:h,startSlot:m,size:v="medium",variant:b="outline",className:p,attributes:y}=e,[w,x]=c.useState(a===void 0?!l:!a),C=Ye(),$=ze(e.id),z=((q=C==null?void 0:C.attributes)==null?void 0:q.id)||((V=e.inputAttributes)==null?void 0:V.id)||$,T=(C==null?void 0:C.disabled)||e.disabled,E=(C==null?void 0:C.hasError)||e.hasError,P=g(g({},e.inputAttributes),C==null?void 0:C.attributes),U=S(Ve.root,p,v&&W(Ve,"--size",v),E&&Ve["--status-error"],T&&Ve["--disabled"],w&&f&&Ve["--placeholder"],b&&Ve[`--variant-${b}`]),M=A=>{const Z=A.target.value;a===void 0&&x(!Z),t&&t({name:i,value:Z,event:A})};c.useEffect(()=>{a!==void 0&&x(!a)},[a]);const F=(m||h)&&r.jsx("div",{className:Ve.slot,children:h?r.jsx(le,{size:$e(v,A=>A==="large"?5:A==="xlarge"?6:4),svg:h}):m});return r.jsxs("div",j(g({},y),{className:U,children:[f?r.jsxs(r.Fragment,{children:[F,r.jsxs("select",j(g({},P),{className:Ve.input,disabled:T,name:i,value:a,defaultValue:l,onChange:M,onFocus:o||(P==null?void 0:P.onFocus),onBlur:s||(P==null?void 0:P.onBlur),id:z,children:[d&&r.jsx("option",{value:"",children:d}),f.map(A=>r.jsx("option",{value:A.value,disabled:A.disabled,children:A.label},A.value))]}))]}):r.jsxs(r.Fragment,{children:[r.jsxs(Le,{className:Ve.input,disabled:T,onClick:n,attributes:j(g({},P),{onFocus:o||(P==null?void 0:P.onFocus),onBlur:s||(P==null?void 0:P.onBlur)}),children:[F,u||(d?r.jsx(Q,{color:"neutral-faded",children:d}):null)]}),r.jsx("input",{type:"hidden",value:a,name:i})]}),r.jsx("div",{className:Ve.arrow,children:r.jsx(le,{svg:Vi,color:T?"disabled":"neutral-faded",size:$e(v,A=>A==="large"||A==="xlarge"?5:4)})})]}))},Oi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Bi=e=>{const{borderRadius:t="small",width:n,height:o,className:s,attributes:i}=e,a=S(Oi.root,s);return r.jsx(D,{backgroundColor:"disabled",width:n,height:o,borderRadius:t,className:a,attributes:i})},Qe={root:"_root_k9a0x_1",bar:"_bar_k9a0x_10",input:"_input_k9a0x_19",selection:"_selection_k9a0x_28",tooltip:"_tooltip_k9a0x_34",thumb:"_thumb_k9a0x_50","thumb--active":"_thumb--active_k9a0x_1","--disabled":"_--disabled_k9a0x_104"},Wi=(e,t)=>{const{name:n,value:o,disabled:s,active:i,position:a,max:l,min:d,onChange:f,onDragStart:u,renderValue:h}=e,m=c.useId(),v=S(Qe.thumb,i&&Qe["thumb--active"]),b=h?h({value:o}):o,p=y=>{f(+y.target.value)};return r.jsxs(r.Fragment,{children:[r.jsx("input",{className:Qe.input,type:"range",name:n,value:o,onChange:p,disabled:s,max:l,min:d,"aria-labelledby":m}),r.jsx("div",{ref:t,className:v,onMouseDown:u,onTouchStart:u,style:{insetInlineStart:`${a}%`},id:m,"aria-hidden":"true",children:r.jsx(lt,{className:Qe.tooltip,colorMode:"inverted",children:r.jsx(Q,{variant:"caption-1",weight:"medium",children:b})})})]})},as=c.forwardRef(Wi),ls=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,On=(e,t)=>Math.round(e/t)*t,Bn=e=>{var ke;const{name:t,range:n,max:o,min:s,step:i=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:u}=e,h=n&&e.minValue!==void 0?On(e.minValue,i):void 0,m=On(n?e.maxValue:e.value,i),v=c.useRef(null),b=c.useRef(null),p=c.useRef(null),[y,w]=c.useState(null),[x]=Ge(),C=Ye(),$=ze(),z=((ke=C==null?void 0:C.attributes)==null?void 0:ke.id)||$,T=`${z}-min`,E=`${z}-max`,P=(C==null?void 0:C.disabled)||e.disabled,U=S(Qe.root,P&&Qe["--disabled"],f),M=c.useCallback(oe=>{if(!v.current)return;const H=v.current.clientWidth;let G=(oe-v.current.getBoundingClientRect().left)/H;x&&(G=1-G);let ie=(o-s)*G+s;return ie=Math.max(s,Math.min(o,ie)),On(ie,i)},[o,s,x,i]),F=oe=>(oe-s)/(o-s)*100,q=c.useCallback((oe,H)=>{if(!n)return;const Y=H!=null&&H.commit?l:a;Y==null||Y({minValue:oe,maxValue:m,name:t})},[m,t,n]),V=c.useCallback((oe,H)=>{if(n){const G=H!=null&&H.commit?l:a;G==null||G({minValue:h,maxValue:oe,name:t});return}const Y=H!=null&&H.commit?l:a;Y==null||Y({value:oe,name:t})},[h,t,n]),A=({nativeEvent:oe})=>{if(P)return;let H,Y;const G=ls(oe),ie=M(G);[{ref:b,id:T},{ref:p,id:E}].forEach(X=>{if(!X.ref.current)return;const pe=X.ref.current,ge=Math.abs(pe.getBoundingClientRect().left-G);(H===void 0||ge<=H)&&(H=ge,Y=X.id)}),!(!Y||ie===void 0)&&(Y===T&&q(ie),Y===E&&V(ie),w(Y))},Z=()=>{P||w(T)},fe=()=>{P||w(E)},he=c.useCallback(()=>{y===T&&h!==void 0&&q(h,{commit:!0}),y===E&&V(m,{commit:!0}),w(null)},[h,m,q,V,y,T,E]),re=c.useCallback(oe=>{if(!y)return;const H=ls(oe),Y=M(H);if(Y===void 0)return;let G=y;y===T&&Y>m&&(G=E),y===E&&h&&Y<h&&(G=T),G===T&&q(Y),G===E&&V(Y),y!==G&&w(G)},[y,h,m,M,V,q,E,T]);c.useEffect(()=>(window.addEventListener("mouseup",he),window.addEventListener("touchend",he),window.addEventListener("mousemove",re),window.addEventListener("touchmove",re),()=>{window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),window.removeEventListener("mousemove",re),window.removeEventListener("touchmove",re)}),[he,re]);const ee=h&&F(h),He=F(m);return r.jsxs("div",j(g({},u),{className:U,onMouseDown:A,onTouchStart:A,children:[r.jsx("div",{className:Qe.bar,ref:v,children:r.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${ee||0}%`,width:`${He-(ee||0)}%`}})}),h!==void 0&&ee!==void 0&&r.jsx(as,{id:T,active:T===y,name:t,disabled:P,onChange:q,value:h,onDragStart:Z,position:ee,max:o,min:s,ref:b,renderValue:d}),r.jsx(as,{id:E,active:E===y,name:t,disabled:P,onChange:V,value:m,onDragStart:fe,position:He,max:o,min:s,ref:p,renderValue:d})]}))},Hi=e=>{const{min:t,max:n,onChange:o,range:s}=e,i="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,a="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(s?n:t),[l,d]=c.useState(i),[f,u]=c.useState(a),h=v=>{s||(u(v.value),o==null||o(v))},m=v=>{s&&(d(v.minValue),u(v.maxValue),o==null||o(v))};return s?r.jsx(Bn,j(g({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:m})):r.jsx(Bn,j(g({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Ri=e=>{const s=e,{min:t=0,max:n=100}=s,o=Fe(s,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?r.jsx(Bn,j(g({},o),{min:t,max:n})):r.jsx(Hi,j(g({},o),{min:t,max:n}))},Ui={verticalDivider:"_verticalDivider_oa23g_1"},Ki=e=>{const{title:t,subtitle:n,children:o,direction:s,className:i,attributes:a,labelDisplay:l,step:d,completed:f,active:u,last:h}=e,m=l&&$e(l,b=>b==="hidden"),v=r.jsx(D,{gap:3,grow:!0,children:r.jsxs(D.Item,{children:[r.jsx(Q,{variant:"body-3",weight:"medium",children:t}),r.jsx(Q,{variant:"caption-1",color:"neutral-faded",children:n})]})});return r.jsxs(D,{children:[r.jsxs(D,{attributes:a,className:i,direction:"row",gap:2,align:"center",position:"static",children:[r.jsxs(D.Item,{children:[r.jsx(D,{align:"center",justify:"center",backgroundColor:u||f?"primary":"neutral-faded",borderColor:u||f?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:r.jsx(Q,{variant:"body-3",weight:u?"bold":"medium",children:f?r.jsx(le,{svg:Go,size:4}):d})}),s==="column"&&!h&&r.jsx(At,{vertical:!0,className:Ui.verticalDivider})]}),l?r.jsx(Vt,{hide:m,children:v}):v]}),s==="column"&&o&&r.jsx(co,{active:u,children:r.jsx(D,{paddingStart:10,paddingTop:2,children:o})})]})},Yi=e=>null,cs=e=>{const{children:t,direction:n="row",activeId:o,labelDisplay:s,className:i,attributes:a}=e,l=n==="column",d=c.Children.count(t);return r.jsx(D,{attributes:a,direction:n,align:l?"stretch":"center",className:i,gap:3,wrap:!1,children:c.Children.map(t,(f,u)=>{const h=f.props.id||`${u}`;return r.jsxs(c.Fragment,{children:[r.jsx(Ki,j(g({},f.props),{id:f.props.id||`${u}`,active:(o==null?void 0:o.toString())===h,step:u+1,last:u===d-1,direction:n,labelDisplay:s})),!l&&u<d-1&&r.jsx(D,{grow:!0,children:r.jsx(At,{})})]},u)})})};cs.Item=Yi;const ft={root:"_root_1zzd0_1",input:"_input_1zzd0_10",area:"_area_1zzd0_22",thumb:"_thumb_1zzd0_26","root--size-small":"_root--size-small_1zzd0_82","root--reversed":"_root--reversed_1zzd0_102"},Gi=e=>{var x;const{children:t,name:n,checked:o,size:s,reversed:i,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:u,attributes:h}=e,m=S(ft.root,s&&ft[`root--size-${s}`],i&&ft["root--reversed"],u),v=Ye(),b=ze((v==null?void 0:v.attributes.id)||e.id||((x=e.inputAttributes)==null?void 0:x.id)),p=g(g({},e.inputAttributes),v==null?void 0:v.attributes),y=(v==null?void 0:v.disabled)||e.disabled,w=C=>{l&&l({name:n,event:C,checked:C.target.checked})};return r.jsxs("label",j(g({},h),{className:m,children:[r.jsx("input",j(g({type:"checkbox"},p),{className:ft.input,name:n,checked:o,defaultChecked:a,disabled:y,onChange:w,onFocus:d||(p==null?void 0:p.onFocus),onBlur:f||(p==null?void 0:p.onBlur),id:b})),r.jsx("span",{className:ft.area,"aria-hidden":"true",children:r.jsx("span",{className:ft.thumb})}),t&&r.jsx(Q,{variant:"body-3",weight:"medium",children:t})]}))},Xi={literal:"_literal_tfgjf_1",unit:"_unit_tfgjf_5","literal--m":"_literal--m_tfgjf_1","unit--m":"_unit--m_tfgjf_1","literal--l":"_literal--l_tfgjf_1","unit--l":"_unit--l_tfgjf_1","literal--xl":"_literal--xl_tfgjf_1","unit--xl":"_unit--xl_tfgjf_1"},Ji=e=>{if(!e)return null;const t=te("--rs-min-w",e);return{classNames:W(Xi,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ze={root:"_root_1we4q_1",table:"_table_1we4q_14",row:"_row_1we4q_21",cell:"_cell_1we4q_25","cell--align-start":"_cell--align-start_1we4q_1","cell--align-center":"_cell--align-center_1we4q_1","cell--align-end":"_cell--align-end_1we4q_1","--row-highlighted":"_--row-highlighted_1we4q_49","--border-outer":"_--border-outer_1we4q_53","--border-column":"_--border-column_1we4q_57"},ds=e=>{const{minWidth:t,rowSpan:n,colSpan:o,align:s,tagName:i,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:u}=e,h=e.width==="auto"?"0px":e.width,m=bn(h),v=Ji(t||h),b=S(Ze.cell,m==null?void 0:m.classNames,v==null?void 0:v.classNames,s&&Ze[`cell--align-${s}`]),p=g(g(g(g({},m==null?void 0:m.variables),v==null?void 0:v.variables),te("--rs-table-p-vertical",d!=null?d:a)),te("--rs-table-p-horizontal",l!=null?l:a));return r.jsx(i,j(g({},u),{className:b,rowSpan:n,colSpan:o,style:p,children:f}))},Qi=e=>r.jsx(ds,j(g({},e),{tagName:"td"})),Zi=e=>r.jsx(ds,j(g({},e),{tagName:"th"})),ea=e=>{const{highlighted:t,children:n,attributes:o}=e,s=S(Ze.row,t&&Ze["--row-highlighted"]);return r.jsx("tr",j(g({},o),{className:s,children:n}))},Wn=e=>r.jsx("tbody",{children:e.children}),us=e=>r.jsx("thead",{children:e.children}),ht=e=>{const{children:t,border:n,columnBorder:o,className:s,attributes:i}=e,a=S(Ze.root,s,n&&Ze["--border-outer"],o&&Ze["--border-column"]),[l]=c.Children.toArray(t);return r.jsx("div",j(g({},i),{className:a,children:r.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===Wn||l.type===us)?t:r.jsx(Wn,{children:t})})}))};ht.Cell=Qi,ht.Heading=Zi,ht.Row=ea,ht.Body=Wn,ht.Head=us;const _s=c.createContext({}),ta=_s.Provider,Hn=e=>{const o=c.useContext(_s),{id:t}=o,n=Fe(o,["id"]);return j(g({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},ms=e=>{const{children:t,value:n,onChange:o,onSilentChange:s,itemWidth:i,variant:a,name:l,direction:d="row",size:f="medium"}=e,u=ze(),h=c.useRef(null),m=c.useRef(h.current),v=c.useRef(null),[b,p]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=w=>{w!==void 0&&s&&s({value:w,name:l})};return r.jsx(ta,{value:{value:n,name:l,size:f,direction:d,itemWidth:i,variant:a,onChange:o,id:u,setDefaultValue:y,elActiveRef:h,elPrevActiveRef:m,elScrollableRef:v,selection:b,setSelection:p},children:t})},na=e=>{const{defaultValue:t,onChange:n}=e,[o,s]=c.useState(t),i=({value:l})=>{s(l),n&&n({value:l})},a=({value:l})=>{s(l)};return r.jsx(ms,j(g({},e),{onChange:i,onSilentChange:a,value:o,defaultValue:void 0}))},ne={root:"_root_mz4y6_1",list:"_list_mz4y6_12",inner:"_inner_mz4y6_16",listItem:"_listItem_mz4y6_23",button:"_button_mz4y6_30",buttonContent:"_buttonContent_mz4y6_46",icon:"_icon_mz4y6_59",radio:"_radio_mz4y6_64","--item-active":"_--item-active_mz4y6_72",selector:"_selector_mz4y6_77","--selector-hidden":"_--selector-hidden_mz4y6_95","--selector-animated":"_--selector-animated_mz4y6_99",next:"_next_mz4y6_104",prev:"_prev_mz4y6_105",panel:"_panel_mz4y6_125","--panel-hidden":"_--panel-hidden_mz4y6_133","--direction-row":"_--direction-row_mz4y6_137","--direction-column":"_--direction-column_mz4y6_205",item:"_item_mz4y6_223","--variant-borderless":"_--variant-borderless_mz4y6_258","--variant-pills":"_--variant-pills_mz4y6_259","--variant-pills-elevated":"_--variant-pills-elevated_mz4y6_260","--size-medium":"_--size-medium_mz4y6_331","--size-large":"_--size-large_mz4y6_336","--item-width-equal":"_--item-width-equal_mz4y6_341","--cut-off-start":"_--cut-off-start_mz4y6_360","--cut-off-end":"_--cut-off-end_mz4y6_361","--cut-off-both":"_--cut-off-both_mz4y6_382"},oa=(e,t)=>{const{value:n,children:o,icon:s,href:i,attributes:a}=e,{onChange:l,panelId:d,name:f,size:u,value:h,selection:m,elActiveRef:v,elPrevActiveRef:b,elScrollableRef:p}=Hn(n),y=c.useRef(null),w=h===n,x=w&&m.status==="idle",C=S(ne.item,x&&ne["--item-active"]),$=!!f,z={role:"tab",tabIndex:w?0:-1,"aria-selected":w},T=c.useCallback(()=>{if(!("current"in y))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");b.current=v.current,v.current=y.current},[v,b]),E=()=>{var A,Z,fe;if(i&&!l)return;const P=p.current,U=(A=y.current)==null?void 0:A.parentElement,M=(Z=v.current)==null?void 0:Z.parentElement;if(T(),l&&l({value:n,name:f}),!P||!U||!M||P.scrollWidth===P.clientWidth)return;const F=U.offsetLeft<M.offsetLeft,q=(U.offsetLeft-P.scrollLeft)/P.clientWidth;(F?q<.3:q>.5)&&((fe=y.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{w&&T()},[w,T]),r.jsx("div",j(g({},a),{className:C,ref:y,role:"presentation",children:r.jsxs(Le,{ref:t,href:i,insetFocus:!0,onClick:f?void 0:E,className:ne.button,as:f?"label":void 0,attributes:j(g({},!$&&z),{"aria-controls":d}),children:[f&&r.jsx(Dn,{type:"radio",name:f,value:n,checked:x,onChange:E,className:ne.radio}),r.jsxs("span",{className:ne.buttonContent,children:[s&&r.jsx(le,{svg:s,className:ne.icon,size:4}),o&&r.jsx(Q,{variant:u==="large"?"body-2":"body-3",children:o})]})]})}))},fs=c.forwardRef(oa),hs=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:hs(e.parentElement,t),sa=e=>{const{children:t,className:n,attributes:o}=e,{value:s,setDefaultValue:i,itemWidth:a,variant:l,name:d,direction:f,size:u,selection:h,setSelection:m,elActiveRef:v,elPrevActiveRef:b,elScrollableRef:p}=Hn(),[y]=Ge(),[w,x]=c.useState(null),C=S(ne.root,u&&ne[`--size-${u}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],w&&ne[`--cut-off-${w}`],n),$=S(ne.selector,h.status==="idle"&&ne["--selector-hidden"],h.status==="animated"&&ne["--selector-animated"]),z=()=>{p.current.scrollBy({left:Math.ceil(p.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},T=()=>{p.current.scrollBy({left:Math.ceil(p.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},E=()=>{m(M=>j(g({},M),{status:"idle"}))},P=c.useCallback(M=>{if(!p.current)return null;const F=hs(M,p.current);return F?{scaleX:F.clientWidth,scaleY:F.clientHeight,top:F.offsetTop,left:F.offsetLeft}:null},[p]),{ref:U}=ot({"ArrowLeft, ArrowUp":M=>{d||(M.preventDefault(),dr(p.current))},"ArrowRight, ArrowDown":M=>{d||(M.preventDefault(),cr(p.current))},Home:M=>{d||(M.preventDefault(),ur(p.current))},End:M=>{d||(M.preventDefault(),_r(p.current))}});return ce(()=>{if(s)return;const M=c.Children.toArray(t)[0];!M||M.type!==fs||i(M.props.value)},[s]),ce(()=>{if(!b.current||b.current===v.current)return;const M=P(b.current);M&&m(j(g({},M),{status:"prepared"}))},[s,P]),ce(()=>{if(h.status!=="prepared"||!v.current)return;const M=P(v.current);M&&m(j(g({},M),{status:"animated"}))},[h]),ce(()=>{const M=p.current;if(!M||f==="column")return;const F=()=>{M.clientWidth<M.scrollWidth||x(null);const A=M.scrollLeft*(y?-1:1),Z=A>1,fe=A+M.clientWidth<M.scrollWidth-1;if(fe&&Z)return x("both");if(Z)return x("start");if(fe)return x("end")},q=Ms(F,100);return requestAnimationFrame(()=>{F()}),window.addEventListener("resize",q),M.addEventListener("scroll",q),()=>{window.removeEventListener("resize",q),M.removeEventListener("scroll",q)}},[y]),r.jsxs("div",j(g({},o),{className:C,children:[r.jsx("div",{className:ne.inner,ref:p,children:r.jsxs("div",{className:ne.list,role:"tablist",ref:U,children:[c.Children.map(t,(M,F)=>M?r.jsx("div",{className:ne.listItem,children:M},M.props.value||M.key||F):null),r.jsx("div",{onTransitionEnd:E,className:$,style:{"--rs-tab-selection-x":h.left,"--rs-tab-selection-y":h.top,"--rs-tab-selection-scale-x":h.scaleX,"--rs-tab-selection-scale-y":h.scaleY}})]})}),(w==="start"||w==="both")&&r.jsx("span",{className:ne.prev,children:r.jsx(Ce,{onClick:T,size:"small",icon:Ro,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(w==="end"||w==="both")&&r.jsx("span",{className:ne.next,children:r.jsx(Ce,{onClick:z,size:"small",icon:tn,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},ra=e=>{const{value:t,children:n}=e,{value:o,panelId:s,buttonId:i}=Hn(t),a=t===o,l=S(ne.panel,!a&&ne["--panel-hidden"]);return r.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:s,"aria-labelledby":i,children:a&&n})},cn=e=>{const{value:t}=e;return t!==void 0?r.jsx(ms,g({},e)):r.jsx(na,g({},e))};cn.Item=fs,cn.List=sa,cn.Panel=ra;const gt={root:"_root_13usd_1",input:"_input_13usd_5","--size-medium":"_--size-medium_13usd_1","--size-large":"_--size-large_13usd_1","--size-xlarge":"_--size-xlarge_13usd_1","--variant-faded":"_--variant-faded_13usd_69","--variant-headless":"_--variant-headless_13usd_80","--status-error":"_--status-error_13usd_87","--size-medium--m":"_--size-medium--m_13usd_1","--size-large--m":"_--size-large--m_13usd_1","--size-xlarge--m":"_--size-xlarge--m_13usd_1","--size-medium--l":"_--size-medium--l_13usd_1","--size-large--l":"_--size-large--l_13usd_1","--size-xlarge--l":"_--size-xlarge--l_13usd_1","--size-medium--xl":"_--size-medium--xl_13usd_1","--size-large--xl":"_--size-large--xl_13usd_1","--size-xlarge--xl":"_--size-xlarge--xl_13usd_1"},gs=e=>{var $,z;const{onChange:t,onFocus:n,onBlur:o,name:s,value:i,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:u,attributes:h}=e,m=Ye(),v=ze(e.id),b=(($=m==null?void 0:m.attributes)==null?void 0:$.id)||((z=e.inputAttributes)==null?void 0:z.id)||v,p=(m==null?void 0:m.disabled)||e.disabled,y=(m==null?void 0:m.hasError)||e.hasError,w=g(g({},e.inputAttributes),m==null?void 0:m.attributes),x=S(gt.root,d&&W(gt,"--size",d),y&&gt["--status-error"],p&&gt["--disabled"],f&&gt[`--variant-${f}`],u),C=T=>{t&&t({name:s,value:T.target.value,event:T})};return r.jsx("div",j(g({},h),{"data-rs-aligner-target":!0,className:x,children:r.jsx("textarea",j(g({rows:3},w),{className:gt.input,disabled:p,name:s,placeholder:l,value:i,defaultValue:a,onChange:C,onFocus:n||(w==null?void 0:w.onFocus),onBlur:o||(w==null?void 0:w.onBlur),id:b}))}))};gs.Aligner=Ot;const Rn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Un=e=>{const{children:t,markerSlot:n,className:o,attributes:s}=e,i=n!==null,a=S(Rn.item,!i&&Rn["item--full-width"],o);return r.jsxs(D,{as:"li",direction:"row",align:"stretch",gap:3,attributes:s,className:a,children:[i&&r.jsx("span",{className:Rn.marker,children:n}),r.jsx(D.Item,{grow:!0,children:t})]})},vs=e=>{const{children:t,className:n,attributes:o}=e,s=S(n);return r.jsx("ul",j(g({},o),{className:s,children:c.Children.map(t,(i,a)=>(i==null?void 0:i.type)===Un?i:r.jsx(Un,{children:i},a))}))};vs.Item=Un;const ia={root:"_root_9090g_1"},aa=e=>{const{id:t,text:n,children:o,onOpen:s,onClose:i,position:a="bottom",active:l}=e;return r.jsxs(Xe,{id:t,active:l,position:a,onOpen:s,onClose:i,triggerType:"hover",children:[r.jsx(Xe.Trigger,{children:o}),r.jsx(Xe.Content,{children:r.jsx(lt,{colorMode:"inverted",children:r.jsx(Q,{variant:"caption-1",className:ia.root,children:n})})})]})},vt={m:660,l:900,xl:1280},bs={s:`(max-width: ${vt.m-1}px)`,m:`(min-width: ${vt.m}px) and (max-width: ${vt.l-1}px)`,l:`(min-width: ${vt.l}px) and (max-width: ${vt.xl-1}px)`,xl:`(min-width: ${vt.xl}px)`},la=e=>{const{defaultViewport:t}=c.useContext(Tn),[n,o]=c.useState(t);return ce(()=>{const i=Object.keys(bs).map(a=>{const l=window.matchMedia(bs[a]);return{mq:l,handler:()=>l.matches&&o(a)}});return i.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{i.forEach(({handler:a,mq:l})=>{l.removeEventListener("change",a)})}},[]),n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},ca=e=>{const{w:t="auto",h:n=50,children:o}=e;return r.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=yn,N.ActionBar=Zs,N.Actionable=Le,N.Alert=tr,N.Autocomplete=Vo,N.Avatar=Yr,N.Badge=Oo,N.Breadcrumbs=Ho,N.Button=Ce,N.Card=si,N.Carousel=ri,N.Checkbox=di,N.CheckboxGroup=ci,N.Container=_i,N.Dismissible=mi,N.Divider=At,N.DropdownMenu=ye,N.FileUpload=Jo,N.FormControl=qt,N.Hidden=Vt,N.HiddenVisually=Xo,N.Hotkey=gi,N.Icon=le,N.Image=vi,N.Link=Wo,N.Loader=Bo,N.MenuItem=Ln,N.Modal=qn,N.Overlay=es,N.Placeholder=ca,N.Popover=dt,N.Progress=yi,N.Radio=ki,N.RadioGroup=Ci,N.Reshaped=Ai,N.Scrim=Di,N.Select=qi,N.Skeleton=Bi,N.Slider=Ri,N.Stepper=cs,N.Switch=Gi,N.Table=ht,N.Tabs=cn,N.Text=Q,N.TextArea=gs,N.TextField=Cn,N.Theme=lt,N.Timeline=vs,N.Tooltip=aa,N.View=D,N.classNames=S,N.responsiveClassNames=W,N.responsivePropDependency=$e,N.useFormControl=Ye,N.useHotkeys=ot,N.useIsomorphicLayoutEffect=ce,N.useRTL=Ge,N.useResponsiveClientValue=la,N.useScrollLock=Zo,N.useTheme=Fo,N.useToast=Ni,N.useToggle=rn,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
27
+ */var Zn;function Ts(){if(Zn)return jt;Zn=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,d,f){var u,h={},m=null,v=null;f!==void 0&&(m=""+f),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(v=d.ref);for(u in d)o.call(d,u)&&!i.hasOwnProperty(u)&&(h[u]=d[u]);if(l&&l.defaultProps)for(u in d=l.defaultProps,d)h[u]===void 0&&(h[u]=d[u]);return{$$typeof:t,type:l,key:m,ref:v,props:h,_owner:s.current}}return jt.Fragment=n,jt.jsx=a,jt.jsxs=a,jt}process.env.NODE_ENV==="production"?xe.exports=Ts():xe.exports=Es();var r=xe.exports;const eo=(e,t=20)=>{let n;return(...s)=>{clearTimeout(n),n=setTimeout(()=>e(...s),t)}};function Is(e,t){const n=eo(e,t);return o=>("persist"in o&&o.persist(),n(o))}const Ms=(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},""),to=(e,t,n)=>{const{base:o,excludeValueFromClassName:s}=n||{},i=typeof e=="string"?e:e(t);return t===!0&&o||s?i:t===!0&&!o?`${i}-true`:t===!1&&!o?`${i}-false`:t!==void 0?`${i}-${t}`:null},W=(e,t,n,o)=>{if(typeof n!="object"){const s=to(t,n,{base:!0,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName});return s?[e[s]]:[]}return Object.keys(n).reduce((s,i)=>{const a=i==="s",l=to(t,n[i],{base:a,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName}),d=a?"":`--${i}`;return[...s,e[`${l}${d}`]]},[])},te=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,o)=>{const s=t[o];return s===void 0||s===!1?n:j(g({},n),{[`${e}-${o}`]:s})},{}),Ss=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,$e=(e,t)=>Ss(e)?Object.keys(e).reduce((o,s)=>{const i=e[s];return i==null?o:j(g({},o),{[s]:t(i,s)})},{}):t(e,"s"),ze=e=>{const t=c.useId();return e||t},hn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),no=e=>{const{children:t,onToggle:n,active:o,iconPosition:s,iconSize:i,className:a,attributes:l}=e,d=S(a),f=ze(),u=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:o,onToggle:n,iconPosition:s,iconSize:i}),[o]);return r.jsx("div",j(g({},l),{className:d,children:r.jsx(hn.Provider,{value:u,children:t})}))},Ps=e=>{const l=e,{defaultActive:t,onToggle:n}=l,o=Fe(l,["defaultActive","onToggle"]),[s,i]=c.useState(t||!1),a=d=>{i(d),n==null||n(d)};return r.jsx(no,j(g({},o),{onToggle:a,active:s}))},Ct={root:"_root_1ao0i_1","--disabled":"_--disabled_1ao0i_28","--full-width":"_--full-width_1ao0i_37","--inset":"_--inset_1ao0i_45","--radius-inherit":"_--radius-inherit_1ao0i_49"},Fs=(e,t)=>{const{children:n,href:o,onClick:s,type:i,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:u,className:h,attributes:m}=e,v=S(Ct.root,h,a&&Ct["--disabled"],d&&Ct[`--radius-${d}`],l&&Ct["--inset"],u&&Ct["--full-width"]),b=g({},m),p=c.useRef(!1),y=s||(m==null?void 0:m.onClick),w=(m==null?void 0:m.onFocus)||(m==null?void 0:m.onBlur),x=!!(o||m!=null&&m.href),C=!!(y||w||i);let $;if(x)b.href=a?void 0:o||(m==null?void 0:m.href),$="a";else if(C&&(!f||f==="button"))$="button",b.type=i||(m==null?void 0:m.type)||"button",b.disabled=a||(m==null?void 0:m.disabled);else if(C){const P=!(f==="label")||y||w;$=f||"span",b.role=P?"button":void 0,b.tabIndex=P?0:void 0}else $=f||"span";const z=E=>{var P;a||p.current||(s==null||s(E),(P=m==null?void 0:m.onClick)==null||P.call(m,E))},I=E=>{if(b.role==="button"||x)return;const U=E.key===" ",M=E.key==="Enter";!U&&!M||(E.preventDefault(),z(E),p.current=!0,requestAnimationFrame(()=>{p.current=!1}))};return r.jsx($,j(g({ref:t},b),{className:v,onClick:z,onKeyDown:I,children:n}))},Le=c.forwardRef(Fs),gn={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"},At=e=>{const{vertical:t,blank:n,className:o,attributes:s}=e,i=S(gn.root,o,n&&gn["--blank"],...W(gn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),r.jsx("div",j(g({},s),{role:"separator","aria-orientation":a,className:i}))},Dt={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"},Vt=e=>{const{as:t="div",children:n,visibility:o,hide:s,displayStyle:i}=e,a=S(Dt.root,...W(Dt,"--hidden",s),o&&Dt["--visibility"],i&&Dt[`--display-${i}`]);return typeof n=="function"?r.jsx(r.Fragment,{children:n(a)}):r.jsx(t,{className:a,children:n})},K={root:"_root_1osyw_1",item:"_item_1osyw_10","--padding":"_--padding_1osyw_18","--padding-top":"_--padding-top_1osyw_23","--padding-bottom":"_--padding-bottom_1osyw_27","--padding-start":"_--padding-start_1osyw_31","--padding-end":"_--padding-end_1osyw_35","--animated":"_--animated_1osyw_39","--align-text-start":"_--align-text-start_1osyw_1","--align-text-center":"_--align-text-center_1osyw_1","--align-text-end":"_--align-text-end_1osyw_1","--bg-neutral":"_--bg-neutral_1osyw_1","--bg-positive":"_--bg-positive_1osyw_1","--bg-critical":"_--bg-critical_1osyw_1","--bg-primary":"_--bg-primary_1osyw_1","--bg-neutral-faded":"_--bg-neutral-faded_1osyw_1","--bg-positive-faded":"_--bg-positive-faded_1osyw_1","--bg-critical-faded":"_--bg-critical-faded_1osyw_1","--bg-primary-faded":"_--bg-primary-faded_1osyw_1","--bg-page":"_--bg-page_1osyw_1","--bg-page-faded":"_--bg-page-faded_1osyw_1","--bg-disabled":"_--bg-disabled_1osyw_1","--bg-disabled-faded":"_--bg-disabled-faded_1osyw_1","--bg-elevation-base":"_--bg-elevation-base_1osyw_1","--bg-elevation-raised":"_--bg-elevation-raised_1osyw_1","--bg-elevation-overlay":"_--bg-elevation-overlay_1osyw_1","--bg-white":"_--bg-white_1osyw_65","--bg-black":"_--bg-black_1osyw_70","--shadow-raised":"_--shadow-raised_1osyw_75","--shadow-overlay":"_--shadow-overlay_1osyw_79","--bd":"_--bd_1osyw_83","--bd-neutral-faded":"_--bd-neutral-faded_1osyw_1","--bd-neutral":"_--bd-neutral_1osyw_1","--bd-positive":"_--bd-positive_1osyw_1","--bd-positive-faded":"_--bd-positive-faded_1osyw_1","--bd-critical":"_--bd-critical_1osyw_1","--bd-critical-faded":"_--bd-critical-faded_1osyw_1","--bd-primary":"_--bd-primary_1osyw_1","--bd-primary-faded":"_--bd-primary-faded_1osyw_1","--bd-disabled":"_--bd-disabled_1osyw_1","--bd-transparent":"_--bd-transparent_1osyw_94","--overflow-hidden":"_--overflow-hidden_1osyw_98","--divided":"_--divided_1osyw_102","--flex":"_--flex_1osyw_106","--direction-column":"_--direction-column_1osyw_1","item--gap-before":"_item--gap-before_1osyw_118","item--gap-auto":"_item--gap-auto_1osyw_122","--direction-column-reverse":"_--direction-column-reverse_1osyw_1","--direction-row":"_--direction-row_1osyw_1","--direction-row-reverse":"_--direction-row-reverse_1osyw_1","--nowrap":"_--nowrap_1osyw_177","--wrap":"_--wrap_1osyw_185","--nowrap-false--m":"_--nowrap-false--m_1osyw_1","--wrap-true--m":"_--wrap-true--m_1osyw_1","--nowrap-true--m":"_--nowrap-true--m_1osyw_1","--wrap-false--m":"_--wrap-false--m_1osyw_1","--nowrap-false--l":"_--nowrap-false--l_1osyw_1","--wrap-true--l":"_--wrap-true--l_1osyw_1","--nowrap-true--l":"_--nowrap-true--l_1osyw_1","--wrap-false--l":"_--wrap-false--l_1osyw_1","--nowrap-false--xl":"_--nowrap-false--xl_1osyw_1","--wrap-true--xl":"_--wrap-true--xl_1osyw_1","--nowrap-true--xl":"_--nowrap-true--xl_1osyw_1","--wrap-false--xl":"_--wrap-false--xl_1osyw_1","--align-start":"_--align-start_1osyw_1","--align-end":"_--align-end_1osyw_1","--align-center":"_--align-center_1osyw_1","--align-stretch":"_--align-stretch_1osyw_1","--align-baseline":"_--align-baseline_1osyw_1","--justify-start":"_--justify-start_1osyw_1","--justify-end":"_--justify-end_1osyw_1","--justify-center":"_--justify-center_1osyw_1","--justify-space-between":"_--justify-space-between_1osyw_1",divider:"_divider_1osyw_244","item--grow":"_item--grow_1osyw_248","item--columns":"_item--columns_1osyw_266","item--columns-1":"_item--columns-1_1osyw_1","item--columns-2":"_item--columns-2_1osyw_1","item--columns-3":"_item--columns-3_1osyw_1","item--columns-4":"_item--columns-4_1osyw_1","item--columns-5":"_item--columns-5_1osyw_1","item--columns-6":"_item--columns-6_1osyw_1","item--columns-7":"_item--columns-7_1osyw_1","item--columns-8":"_item--columns-8_1osyw_1","item--columns-9":"_item--columns-9_1osyw_1","item--columns-10":"_item--columns-10_1osyw_1","item--columns-11":"_item--columns-11_1osyw_1","item--columns-12":"_item--columns-12_1osyw_1","item--columns-auto":"_item--columns-auto_1osyw_287","item--columns-1--m":"_item--columns-1--m_1osyw_1","item--columns-auto--m":"_item--columns-auto--m_1osyw_1","item--columns-2--m":"_item--columns-2--m_1osyw_1","item--columns-3--m":"_item--columns-3--m_1osyw_1","item--columns-4--m":"_item--columns-4--m_1osyw_1","item--columns-5--m":"_item--columns-5--m_1osyw_1","item--columns-6--m":"_item--columns-6--m_1osyw_1","item--columns-7--m":"_item--columns-7--m_1osyw_1","item--columns-8--m":"_item--columns-8--m_1osyw_1","item--columns-9--m":"_item--columns-9--m_1osyw_1","item--columns-10--m":"_item--columns-10--m_1osyw_1","item--columns-11--m":"_item--columns-11--m_1osyw_1","item--columns-12--m":"_item--columns-12--m_1osyw_1","item--columns-1--l":"_item--columns-1--l_1osyw_1","item--columns-auto--l":"_item--columns-auto--l_1osyw_1","item--columns-2--l":"_item--columns-2--l_1osyw_1","item--columns-3--l":"_item--columns-3--l_1osyw_1","item--columns-4--l":"_item--columns-4--l_1osyw_1","item--columns-5--l":"_item--columns-5--l_1osyw_1","item--columns-6--l":"_item--columns-6--l_1osyw_1","item--columns-7--l":"_item--columns-7--l_1osyw_1","item--columns-8--l":"_item--columns-8--l_1osyw_1","item--columns-9--l":"_item--columns-9--l_1osyw_1","item--columns-10--l":"_item--columns-10--l_1osyw_1","item--columns-11--l":"_item--columns-11--l_1osyw_1","item--columns-12--l":"_item--columns-12--l_1osyw_1","item--columns-1--xl":"_item--columns-1--xl_1osyw_1","item--columns-auto--xl":"_item--columns-auto--xl_1osyw_1","item--columns-2--xl":"_item--columns-2--xl_1osyw_1","item--columns-3--xl":"_item--columns-3--xl_1osyw_1","item--columns-4--xl":"_item--columns-4--xl_1osyw_1","item--columns-5--xl":"_item--columns-5--xl_1osyw_1","item--columns-6--xl":"_item--columns-6--xl_1osyw_1","item--columns-7--xl":"_item--columns-7--xl_1osyw_1","item--columns-8--xl":"_item--columns-8--xl_1osyw_1","item--columns-9--xl":"_item--columns-9--xl_1osyw_1","item--columns-10--xl":"_item--columns-10--xl_1osyw_1","item--columns-11--xl":"_item--columns-11--xl_1osyw_1","item--columns-12--xl":"_item--columns-12--xl_1osyw_1","--direction-column--m":"_--direction-column--m_1osyw_1","--direction-column-reverse--m":"_--direction-column-reverse--m_1osyw_1","--direction-row--m":"_--direction-row--m_1osyw_1","--direction-row-reverse--m":"_--direction-row-reverse--m_1osyw_1","--align-start--m":"_--align-start--m_1osyw_1","--align-end--m":"_--align-end--m_1osyw_1","--align-center--m":"_--align-center--m_1osyw_1","--align-stretch--m":"_--align-stretch--m_1osyw_1","--align-baseline--m":"_--align-baseline--m_1osyw_1","--justify-start--m":"_--justify-start--m_1osyw_1","--justify-end--m":"_--justify-end--m_1osyw_1","--justify-center--m":"_--justify-center--m_1osyw_1","--justify-space-between--m":"_--justify-space-between--m_1osyw_1","item--grow-true--m":"_item--grow-true--m_1osyw_1","item--grow-false--m":"_item--grow-false--m_1osyw_1","--direction-column--l":"_--direction-column--l_1osyw_1","--direction-column-reverse--l":"_--direction-column-reverse--l_1osyw_1","--direction-row--l":"_--direction-row--l_1osyw_1","--direction-row-reverse--l":"_--direction-row-reverse--l_1osyw_1","--align-start--l":"_--align-start--l_1osyw_1","--align-end--l":"_--align-end--l_1osyw_1","--align-center--l":"_--align-center--l_1osyw_1","--align-stretch--l":"_--align-stretch--l_1osyw_1","--align-baseline--l":"_--align-baseline--l_1osyw_1","--justify-start--l":"_--justify-start--l_1osyw_1","--justify-end--l":"_--justify-end--l_1osyw_1","--justify-center--l":"_--justify-center--l_1osyw_1","--justify-space-between--l":"_--justify-space-between--l_1osyw_1","item--grow-true--l":"_item--grow-true--l_1osyw_1","item--grow-false--l":"_item--grow-false--l_1osyw_1","--direction-column--xl":"_--direction-column--xl_1osyw_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_1osyw_1","--direction-row--xl":"_--direction-row--xl_1osyw_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_1osyw_1","--align-start--xl":"_--align-start--xl_1osyw_1","--align-end--xl":"_--align-end--xl_1osyw_1","--align-center--xl":"_--align-center--xl_1osyw_1","--align-stretch--xl":"_--align-stretch--xl_1osyw_1","--align-baseline--xl":"_--align-baseline--xl_1osyw_1","--justify-start--xl":"_--justify-start--xl_1osyw_1","--justify-end--xl":"_--justify-end--xl_1osyw_1","--justify-center--xl":"_--justify-center--xl_1osyw_1","--justify-space-between--xl":"_--justify-space-between--xl_1osyw_1","item--grow-true--xl":"_item--grow-true--xl_1osyw_1","item--grow-false--xl":"_item--grow-false--xl_1osyw_1"},oo={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"},vn=e=>e?{classNames:[oo.root,...W(oo,"--radius",e)]}:null,so={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"},ro=e=>{if(e===void 0)return null;const t=[so.root,...W(so,"--bleed",$e(e,o=>typeof o=="number"&&o>0))],n=te("--rs-bleed",e);return{classNames:t,variables:n}},Ls={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"},bn=e=>{if(!e)return null;const t=te("--rs-w",e);return{classNames:W(Ls,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},As={literal:"_literal_ea0g1_1",unit:"_unit_ea0g1_2","literal--m":"_literal--m_ea0g1_1","unit--m":"_unit--m_ea0g1_1","literal--l":"_literal--l_ea0g1_1","unit--l":"_unit--l_ea0g1_1","literal--xl":"_literal--xl_ea0g1_1","unit--xl":"_unit--xl_ea0g1_1"},kt=e=>{if(!e)return null;const t=te("--rs-h",e);return{classNames:W(As,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ds={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"},Vs=e=>{if(!e)return null;const t=te("--rs-max-w",e);return{classNames:W(Ds,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},qs={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"},Os=e=>{if(!e)return null;const t=te("--rs-max-h",e);return{classNames:W(qs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Bs={"--position-static":"_--position-static_1qpz9_1","--position-relative":"_--position-relative_1qpz9_1","--position-absolute":"_--position-absolute_1qpz9_1","--position-fixed":"_--position-fixed_1qpz9_1","--position-sticky":"_--position-sticky_1qpz9_1","--position-static--m":"_--position-static--m_1qpz9_1","--position-relative--m":"_--position-relative--m_1qpz9_1","--position-absolute--m":"_--position-absolute--m_1qpz9_1","--position-fixed--m":"_--position-fixed--m_1qpz9_1","--position-sticky--m":"_--position-sticky--m_1qpz9_1","--position-static--l":"_--position-static--l_1qpz9_1","--position-relative--l":"_--position-relative--l_1qpz9_1","--position-absolute--l":"_--position-absolute--l_1qpz9_1","--position-fixed--l":"_--position-fixed--l_1qpz9_1","--position-sticky--l":"_--position-sticky--l_1qpz9_1","--position-static--xl":"_--position-static--xl_1qpz9_1","--position-relative--xl":"_--position-relative--xl_1qpz9_1","--position-absolute--xl":"_--position-absolute--xl_1qpz9_1","--position-fixed--xl":"_--position-fixed--xl_1qpz9_1","--position-sticky--xl":"_--position-sticky--xl_1qpz9_1"},Ws=e=>e?{classNames:W(Bs,"--position",e)}:null,Hs={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},Nt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",o=`--rs-inset${n}`,s=te(o,e);return{classNames:W(Hs,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:s}},Rs={root:"_root_i342i_1"},Us=e=>{if(!e)return null;const t=te("--rs-ratio",e);return{classNames:Rs.root,variables:t}},io=e=>{const{columns:t,grow:n,gapBefore:o,as:s="div",order:i,children:a,className:l,attributes:d}=e,f=S(K.item,l,o==="auto"&&K["item--gap-auto"],o!==void 0&&K["item--gap-before"],t&&K["item--columns"],...W(K,"item--grow",n),...W(K,"item--columns",t)),u=g(g({},te("--rs-view-item-order",i)),te("--rs-view-item-gap-before",o));return r.jsx(s,j(g({},d),{style:g(g({},d==null?void 0:d.style),u),className:f,children:a}))},D=e=>{const{align:t,justify:n,wrap:o,gap:s,height:i,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:u,paddingInline:h,paddingBlock:m,paddingBottom:v,paddingEnd:b,paddingStart:p,paddingTop:y,bleed:w,animated:x,backgroundColor:C,borderColor:$,borderRadius:z,shadow:I,textAlign:E,overflow:P,position:U="relative",inset:M,insetTop:F,insetBottom:q,insetStart:V,insetEnd:A,zIndex:Z,grow:fe,as:he="div",children:re,divided:ee,className:He,attributes:ke}=e;let oe=!!t||!!n||!!s||!!e.direction;const H=e.direction||(oe?"column":void 0),Y=vn(z),G=ro(w),ie=bn(a),we=kt(i),X=Vs(f),pe=Os(d),ge=Ws(U),Me=Nt(M),Re=Nt(F,"top"),et=Nt(q,"bottom"),tt=Nt(V,"start"),Se=Nt(A,"end"),Pe=Us(l);let Ft=0,rt;const bt=({className:ve,key:de})=>{const qe=S(K.divider,ve);let _e=!1;return typeof H=="string"&&H.startsWith("row")?_e=!0:H&&(_e=Object.keys(H).reduce((Oe,Ue)=>{const je=H[Ue];return je?j(g({},Oe),{[Ue]:je.startsWith("row")}):Oe},{})),r.jsx("div",{className:qe,children:r.jsx(At,{vertical:_e,blank:!0})},`${de}-divider`)},dn=({className:ve,child:de,index:qe})=>{var un,_n,mn;const _e=de.type===io,pt=de.type===D,Oe=de.key||qe,Ue=!!qe&&ee&&bt({className:ve,key:Oe});let je;return _e?je=c.cloneElement(de,{className:S(ve,de.props.className)}):ve||!c.isValidElement(de)?je=r.jsx("div",{className:ve,children:de},Oe):je=de,_e&&((un=de.props)!=null&&un.grow)&&(rt=de.props.grow),_e&&((_n=de.props)==null?void 0:_n.gap)==="auto"&&(rt=!0),(_e||pt)&&((mn=de.props)!=null&&mn.grow)&&(oe=!0),[Ue,je]},Kn=c.Children.map(re,(ve,de)=>{if(!ve)return null;const qe=Ft;if(Ft+=1,ve.type===Vt&&typeof ve.props.children!="function"){const _e=ve.props,{children:pt}=_e,Oe=Fe(_e,["children"]),Ue=ve.key||de;return c.createElement(Vt,j(g({},Oe),{key:Ue}),je=>dn({className:je,child:pt,index:qe}))}return dn({child:ve,index:qe})}),Lt=S(K.root,He,Y==null?void 0:Y.classNames,ge==null?void 0:ge.classNames,G==null?void 0:G.classNames,ie==null?void 0:ie.classNames,we==null?void 0:we.classNames,Pe==null?void 0:Pe.classNames,X==null?void 0:X.classNames,pe==null?void 0:pe.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,et==null?void 0:et.classNames,tt==null?void 0:tt.classNames,Se==null?void 0:Se.classNames,E&&K[`--align-text-${E}`],C&&K[`--bg-${C}`],$&&K[`--bd-${$}`],$&&K["--bd"],I&&K[`--shadow-${I}`],P&&K[`--overflow-${P}`],x&&K["--animated"],ee&&K["--divided"],(u!==void 0||h!==void 0||m!==void 0)&&K["--padding"],v!==void 0&&K["--padding-bottom"],b!==void 0&&K["--padding-end"],p!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(oe||rt)&&K["--flex"],...W(K,"--direction",H),...W(K,"--align",t),...W(K,"--justify",n),...W(K,"--nowrap",rt||o===!1),...W(K,"--wrap",o),...W(K,"item--grow",fe)),Yn=g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g({},ke==null?void 0:ke.style),te("--rs-view-gap",s)),te("--rs-view-p-vertical",m||u)),te("--rs-view-p-horizontal",h||u)),te("--rs-view-p-bottom",v)),te("--rs-view-p-top",y)),te("--rs-view-p-start",p)),te("--rs-view-p-end",b)),G==null?void 0:G.variables),ie==null?void 0:ie.variables),we==null?void 0:we.variables),Pe==null?void 0:Pe.variables),X==null?void 0:X.variables),pe==null?void 0:pe.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),et==null?void 0:et.variables),tt==null?void 0:tt.variables),Se==null?void 0:Se.variables),Z?{"--rs-view-z":Z}:{});return r.jsx(he,j(g({},ke),{className:Lt,style:Yn,children:Kn}))};D.Item=io;const pn={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:s="1em",autoWidth:i,attributes:a}=e,l=kt(s),d=S(pn.root,n,l==null?void 0:l.classNames,o&&pn[`--color-${o}`],i&&pn["--auto"]),f=typeof t=="object"?t:r.jsx(t,{}),u=g(g({},a==null?void 0:a.style),l==null?void 0:l.variables);return r.jsx("span",j(g({},a),{"aria-hidden":"true",className:d,style:u,children:c.cloneElement(f,{focusable:!1})}))},Ks=()=>r.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:r.jsx("polyline",{points:"6 9 12 15 18 9"})}),ao={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ys=e=>{const{children:t}=e,{active:n,onToggle:o,triggerId:s,contentId:i,iconPosition:a="end",iconSize:l}=c.useContext(hn),d=S(ao.icon,n&&ao["icon--active"]),f=()=>{o==null||o(!n)},u={"aria-expanded":n,"aria-controls":i,id:s};return typeof t=="function"?r.jsx(r.Fragment,{children:t(j(g({},u),{onClick:f}),{active:n})}):r.jsx(Le,{onClick:f,fullWidth:!0,attributes:u,children:r.jsxs(D,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[r.jsx(D.Item,{grow:!0,children:t}),r.jsx(le,{size:l||4,svg:Ks,className:d})]})})},$t=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},xn="data-rs-no-transition",Gs=()=>{document.documentElement.setAttribute(xn,"true")},Xs=()=>{document.documentElement.removeAttribute(xn)},Js=()=>!document.documentElement.hasAttribute(xn),lo={root:"_root_14pfm_1","--animated":"_--animated_14pfm_9"},co=e=>{const{children:t,active:n,attributes:o}=e,s=c.useRef(null),i=c.useRef(!1),[a,l]=c.useState(n?"auto":null),d=S(lo.root,i.current&&a!=="auto"&&lo["--animated"]),f=u=>{u.propertyName==="height"&&l(n?"auto":null)};return c.useEffect(()=>{$t(()=>{i.current=!0})},[]),c.useEffect(()=>{const u=s.current;if(!u||!i.current)return;let h=0;n&&(u.style.height="auto",h=u.clientHeight,u.style.height="0"),n||(u.style.height=`${u.clientHeight}px`),l(h)},[n]),r.jsx("div",j(g({},o),{className:d,ref:s,style:a!==null?{height:a,overflow:a==="auto"?"visible":void 0}:void 0,onTransitionEnd:f,role:"region",hidden:!n&&a===null,children:t}))},Qs=e=>{const{children:t}=e,{active:n,triggerId:o,contentId:s}=c.useContext(hn);return r.jsx(co,{active:n,attributes:{"aria-labelledby":o,id:s},children:t})},yn=e=>{const{active:t}=e;return t!==void 0?r.jsx(no,g({},e)):r.jsx(Ps,g({},e))};yn.Trigger=Ys,yn.Content=Qs;const wn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Zs=e=>{const{position:t="bottom",padding:n,paddingBlock:o=3,paddingInline:s=4,children:i,elevated:a,className:l,attributes:d}=e,f=S(wn.root,a&&wn["--elevated"],t&&wn[`--position-${t}`],l);return r.jsx(D,{className:f,attributes:d,paddingBlock:n||o,paddingInline:n||s,children:i})},nt={root:"_root_gm5sj_1","--clamp":"_--clamp_gm5sj_6","--align-start":"_--align-start_gm5sj_1","--align-center":"_--align-center_gm5sj_1","--align-end":"_--align-end_gm5sj_1","--variant-title-1":"_--variant-title-1_gm5sj_1","--variant-title-2":"_--variant-title-2_gm5sj_1","--variant-title-3":"_--variant-title-3_gm5sj_1","--variant-title-4":"_--variant-title-4_gm5sj_1","--variant-title-5":"_--variant-title-5_gm5sj_1","--variant-title-6":"_--variant-title-6_gm5sj_1","--variant-featured-1":"_--variant-featured-1_gm5sj_1","--variant-featured-2":"_--variant-featured-2_gm5sj_1","--variant-featured-3":"_--variant-featured-3_gm5sj_1","--variant-body-1":"_--variant-body-1_gm5sj_1","--variant-body-2":"_--variant-body-2_gm5sj_1","--variant-body-3":"_--variant-body-3_gm5sj_1","--variant-caption-1":"_--variant-caption-1_gm5sj_1","--variant-caption-2":"_--variant-caption-2_gm5sj_1","--weight-regular":"_--weight-regular_gm5sj_1","--weight-medium":"_--weight-medium_gm5sj_1","--weight-bold":"_--weight-bold_gm5sj_1","--color-neutral":"_--color-neutral_gm5sj_1","--color-neutral-faded":"_--color-neutral-faded_gm5sj_1","--color-primary":"_--color-primary_gm5sj_1","--color-positive":"_--color-positive_gm5sj_1","--color-critical":"_--color-critical_gm5sj_1","--color-disabled":"_--color-disabled_gm5sj_1","--decoration-line-through":"_--decoration-line-through_gm5sj_139","--align-start--m":"_--align-start--m_gm5sj_1","--align-center--m":"_--align-center--m_gm5sj_1","--align-end--m":"_--align-end--m_gm5sj_1","--variant-title-1--m":"_--variant-title-1--m_gm5sj_1","--variant-title-2--m":"_--variant-title-2--m_gm5sj_1","--variant-title-3--m":"_--variant-title-3--m_gm5sj_1","--variant-title-4--m":"_--variant-title-4--m_gm5sj_1","--variant-title-5--m":"_--variant-title-5--m_gm5sj_1","--variant-title-6--m":"_--variant-title-6--m_gm5sj_1","--variant-featured-1--m":"_--variant-featured-1--m_gm5sj_1","--variant-featured-2--m":"_--variant-featured-2--m_gm5sj_1","--variant-featured-3--m":"_--variant-featured-3--m_gm5sj_1","--variant-body-1--m":"_--variant-body-1--m_gm5sj_1","--variant-body-2--m":"_--variant-body-2--m_gm5sj_1","--variant-body-3--m":"_--variant-body-3--m_gm5sj_1","--variant-caption-1--m":"_--variant-caption-1--m_gm5sj_1","--variant-caption-2--m":"_--variant-caption-2--m_gm5sj_1","--align-start--l":"_--align-start--l_gm5sj_1","--align-center--l":"_--align-center--l_gm5sj_1","--align-end--l":"_--align-end--l_gm5sj_1","--variant-title-1--l":"_--variant-title-1--l_gm5sj_1","--variant-title-2--l":"_--variant-title-2--l_gm5sj_1","--variant-title-3--l":"_--variant-title-3--l_gm5sj_1","--variant-title-4--l":"_--variant-title-4--l_gm5sj_1","--variant-title-5--l":"_--variant-title-5--l_gm5sj_1","--variant-title-6--l":"_--variant-title-6--l_gm5sj_1","--variant-featured-1--l":"_--variant-featured-1--l_gm5sj_1","--variant-featured-2--l":"_--variant-featured-2--l_gm5sj_1","--variant-featured-3--l":"_--variant-featured-3--l_gm5sj_1","--variant-body-1--l":"_--variant-body-1--l_gm5sj_1","--variant-body-2--l":"_--variant-body-2--l_gm5sj_1","--variant-body-3--l":"_--variant-body-3--l_gm5sj_1","--variant-caption-1--l":"_--variant-caption-1--l_gm5sj_1","--variant-caption-2--l":"_--variant-caption-2--l_gm5sj_1","--align-start--xl":"_--align-start--xl_gm5sj_1","--align-center--xl":"_--align-center--xl_gm5sj_1","--align-end--xl":"_--align-end--xl_gm5sj_1","--variant-title-1--xl":"_--variant-title-1--xl_gm5sj_1","--variant-title-2--xl":"_--variant-title-2--xl_gm5sj_1","--variant-title-3--xl":"_--variant-title-3--xl_gm5sj_1","--variant-title-4--xl":"_--variant-title-4--xl_gm5sj_1","--variant-title-5--xl":"_--variant-title-5--xl_gm5sj_1","--variant-title-6--xl":"_--variant-title-6--xl_gm5sj_1","--variant-featured-1--xl":"_--variant-featured-1--xl_gm5sj_1","--variant-featured-2--xl":"_--variant-featured-2--xl_gm5sj_1","--variant-featured-3--xl":"_--variant-featured-3--xl_gm5sj_1","--variant-body-1--xl":"_--variant-body-1--xl_gm5sj_1","--variant-body-2--xl":"_--variant-body-2--xl_gm5sj_1","--variant-body-3--xl":"_--variant-body-3--xl_gm5sj_1","--variant-caption-1--xl":"_--variant-caption-1--xl_gm5sj_1","--variant-caption-2--xl":"_--variant-caption-2--xl_gm5sj_1"},er={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},Q=e=>{const{variant:t,color:n,weight:o,align:s,decoration:i,maxLines:a,children:l,className:d,attributes:f}=e,u=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),h=e.as||u&&er[u]||"div",m=S(nt.root,n&&nt[`--color-${n}`],...W(nt,"--variant",t),...W(nt,"--align",s),o&&nt[`--weight-${o}`],i&&nt[`--decoration-${i}`],a!==void 0&&nt["--clamp"],d),v=j(g({},f==null?void 0:f.style),{"--rs-text-lines":a});return r.jsx(h,j(g({},f),{className:m,style:v,children:l}))},tr=e=>{const{title:t,children:n,icon:o,actionsSlot:s,color:i="neutral",inline:a,bleed:l,className:d,attributes:f}=e,u=i==="neutral",h=()=>a?r.jsxs(r.Fragment,{children:[t&&r.jsx(Q,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&r.jsx(Q,{variant:"body-3",as:"span",children:n})]}):r.jsxs(D,{gap:1,children:[t&&r.jsx(Q,{variant:"body-3",weight:"medium",children:t}),n&&r.jsx(Q,{variant:"body-3",children:n})]}),m=v=>s?r.jsxs(D,{gap:2,direction:a?"row":"column",children:[a?r.jsx(D.Item,{grow:!0,children:v}):v,s&&r.jsx(Q,{variant:"body-3",weight:"medium",children:r.jsx(D,{direction:"row",gap:3,children:s})})]}):v;return r.jsx(D,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:j(g({},f),{role:i==="critical"?"alert":"status"}),children:o?r.jsxs(r.Fragment,{children:[r.jsx(le,{svg:o,size:5,color:u?"primary":i}),r.jsx(D.Item,{grow:!0,children:m(h())})]}):m(h())})},uo=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),nr=uo.Provider,zt=()=>c.useContext(uo),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:o}=zt();return{attributes:e,required:t,hasError:n,disabled:o}},_o={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},jn=(e,t)=>`${e}-${t||"caption"}`,qt=e=>{const{children:t,id:n,required:o,hasError:s,group:i,disabled:a,size:l}=e,d=ze(n),f=i?"fieldset":"div",[u,h]=c.useState(!1),[m,v]=c.useState(!1),b=[u&&jn(d),m&&jn(d,"error")].filter(Boolean).join(" "),p={id:d,"aria-describedby":b},y=()=>{v(!0)},w=()=>{h(!0)};return r.jsx(f,{children:r.jsx(nr,{value:{required:o,hasError:s,errorRef:y,helperRef:w,attributes:p,group:i,disabled:a,size:l},children:t})})},or=e=>{const{children:t}=e,{attributes:n,required:o,group:s,disabled:i,size:a}=zt(),l=`${n.id}-label`,d=s?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return r.jsxs(Q,j(g({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:_o.label,color:i?"disabled":void 0,children:[t,o&&r.jsx(Q,{color:i?"disabled":"critical",as:"span",children:"*"})]}))},mo=e=>{const{children:t,variant:n,disabled:o}=e,{attributes:s,size:i,helperRef:a,errorRef:l}=zt(),d=jn(s.id,n),f=n==="error"?"critical":"neutral-faded",u=n==="error"?l:a;return r.jsx(Q,{as:"span",variant:i==="large"?"body-3":"caption-1",color:o&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:u},className:_o.caption,children:t})},sr=e=>{const{children:t}=e,{disabled:n}=zt();return r.jsx(mo,{disabled:n,children:t})},rr=e=>{const{children:t}=e,{hasError:n}=zt();return n?r.jsx(mo,{variant:"error",children:t}):null};qt.Label=or,qt.Helper=sr,qt.Error=rr;const fo={root:"_root_1q3jm_1","--side-all":"_--side-all_1q3jm_6","--side-start":"_--side-start_1q3jm_10","--side-inline":"_--side-inline_1q3jm_11","--side-end":"_--side-end_1q3jm_15","--side-top":"_--side-top_1q3jm_20","--side-block":"_--side-block_1q3jm_21","--side-bottom":"_--side-bottom_1q3jm_25"},Ot=e=>{const{side:t="all",children:n,className:o,attributes:s}=e,i=typeof t=="string"?[t]:t,a=S(fo.root,i.map(l=>fo[`--side-${l}`]),o);return r.jsx("div",j(g({},s),{className:a,children:n}))},Ee={root:"_root_16c4t_1",input:"_input_16c4t_21",slot:"_slot_16c4t_42",icon:"_icon_16c4t_43",affix:"_affix_16c4t_44",attachment:"_attachment_16c4t_60","attachment--position-start":"_attachment--position-start_16c4t_66","attachment--position-end":"_attachment--position-end_16c4t_76","--disabled":"_--disabled_16c4t_91","--size-medium":"_--size-medium_16c4t_1","--size-large":"_--size-large_16c4t_1","--size-xlarge":"_--size-xlarge_16c4t_1","--variant-faded":"_--variant-faded_16c4t_155","--variant-headless":"_--variant-headless_16c4t_164","--status-error":"_--status-error_16c4t_169","--size-medium--m":"_--size-medium--m_16c4t_1","--size-large--m":"_--size-large--m_16c4t_1","--size-xlarge--m":"_--size-xlarge--m_16c4t_1","--size-medium--l":"_--size-medium--l_16c4t_1","--size-large--l":"_--size-large--l_16c4t_1","--size-xlarge--l":"_--size-xlarge--l_16c4t_1","--size-medium--xl":"_--size-medium--xl_16c4t_1","--size-large--xl":"_--size-large--xl_16c4t_1","--size-xlarge--xl":"_--size-xlarge--xl_16c4t_1"},ho=e=>{const{slot:t,icon:n,size:o,affix:s,position:i}=e;if(!n&&!t&&!s)return null;const a=S(Ee.attachment,Ee[`attachment--position-${i}`]),l=[t&&r.jsx("div",{className:Ee.slot,children:t},"slot"),n&&r.jsx("div",{className:Ee.icon,children:r.jsx(le,{size:$e(o,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),s&&r.jsx("div",{className:Ee.affix,children:s},"affix")].filter(Boolean);return r.jsx("span",{className:a,children:i==="end"?l.reverse():l})},Cn=e=>{var M;const{onChange:t,onFocus:n,onBlur:o,name:s,value:i,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:u,endSlot:h,prefix:m,suffix:v,size:b="medium",variant:p="outline",className:y,attributes:w}=e,x=Ye(),C=ze(e.id),$=(x==null?void 0:x.attributes.id)||((M=e.inputAttributes)==null?void 0:M.id)||C,z=(x==null?void 0:x.disabled)||e.disabled,I=(x==null?void 0:x.hasError)||e.hasError,E=g(g({},e.inputAttributes),x==null?void 0:x.attributes),P=S(Ee.root,y,b&&W(Ee,"--size",b),I&&Ee["--status-error"],z&&Ee["--disabled"],p&&Ee[`--variant-${p}`]),U=F=>{t&&t({name:s,value:F.target.value,event:F})};return r.jsxs("div",j(g({},w),{"data-rs-aligner-target":!0,className:P,children:[r.jsx(ho,{position:"start",icon:d,slot:u,size:b,affix:m}),r.jsx("input",j(g({},E),{className:Ee.input,disabled:z,name:s,placeholder:l,value:i,defaultValue:a,onChange:U,onFocus:n||(E==null?void 0:E.onFocus),onBlur:o||(E==null?void 0:E.onBlur),id:$})),r.jsx(ho,{position:"end",icon:f,slot:h,size:b,affix:v})]}))};Cn.Aligner=Ot;const ir="Enter",ar="Tab",go="ArrowUp",vo="ArrowDown",bo="ArrowRight",po="ArrowLeft",kn="data-rs-keyboard",Bt="data-rs-focus";class lr{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),s=this.generateId();return this.chain[s]={previousId:n,data:t},o&&(o.nextId=s),this.tailId=s,s}remove(t){var d,f;const n=this.chain[t];if(!n)return;const o=n.previousId,s=o&&this.get(o),i=n.nextId,a=i&&this.get(i);s&&(s.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),i||(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),s=this.remove(t);return!o||!o.previousId||n(o)?s:this.removePreviousTill(o.previousId,n)}}const xo=()=>document.documentElement.hasAttribute(kn),yo='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Wt=()=>document.querySelector(`[${Bt}]`)||document.activeElement,Nn=(e,t)=>{const o=Array.from(e.querySelectorAll(yo)).filter(s=>!s.hasAttribute("disabled")&&s.clientHeight>0);return t&&o.length&&o.unshift(t),o},wo=e=>{const{root:t,extraElement:n,target:o,mode:s}=e,i=Nn(t,n),a=i.length-1,l=Wt(),d=i.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let u=f[o];const h=u>a||u<0;return h&&(s==="action-menu"?u=o==="prev"?f.first:f.last:u=o==="prev"?f.last:f.first),{overflow:h,el:i[u]}},Ht=(e,t)=>{var n;(n=document.querySelector(`[${Bt}]`))==null||n.removeAttribute(Bt),t==="selection-menu"?e.setAttribute(Bt,"true"):e.focus()},Rt=(e,t)=>{const n=wo({root:e,target:t});Ht(n.el)},cr=e=>Rt(e,"next"),dr=e=>Rt(e,"prev"),ur=e=>Rt(e,"first"),_r=e=>Rt(e,"last"),mr=(()=>{let e=[];const t=o=>{let s=o.parentNode&&o.parentNode.firstChild;for(;s;){const i=s!==o,a=s.nodeType===1&&!s.hasAttribute("aria-hidden");i&&a&&(s.setAttribute("aria-hidden","true"),e.push(s)),s=s.nextSibling}},n=()=>{e.forEach(o=>{o.removeAttribute("aria-hidden")}),e=[]};return o=>{let s=o;for(e.length&&n();s!==document.body;)t(s),s=s.parentElement;return{release:n}}})(),Ut=(()=>{let e=null,t=null;const n=new lr;return(o,s={})=>{const{mode:i="dialog",onNavigateOutside:a,includeTrigger:l}=s,d=Wt(),f=i==="dialog",u=i==="content-menu",h=i==="selection-menu",m=f||u,v=i==="action-menu"||h,b=Nn(o,l?d:void 0);let p;const y=new MutationObserver(()=>{if(o.contains(document.activeElement))return;const $=Nn(o,l?d:void 0);$.length&&Ht($[0],i)}),w=($={})=>{const{withoutFocusReturn:z}=$;n.removePreviousTill(p,E=>document.body.contains(E.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:z||!xo()}),e&&(e(),t&&t.release(),e=null,t=null);const I=n.tailId&&n.get(n.tailId);I&&Ut(I.data.root,I.data.options)},x=$=>{const z=$.key,I=z===ar,E=I&&!$.shiftKey,P=I&&$.shiftKey,U=v&&z===go,M=v&&z===vo,F=P&&m||U,q=E&&m||M,V=Wt()===d,A=wo({root:o,target:F?"prev":"next",extraElement:l?d:void 0,mode:i});if(I&&v||u&&I&&A.overflow){P&&!V&&$.preventDefault(),w(),a==null||a();return}!F&&!q||($.preventDefault(),A.el&&Ht(A.el,i))};if(e&&e(),f&&(t=mr(o)),y.observe(o,{childList:!0,subtree:!0}),!b.length)return null;document.addEventListener("keydown",x),e=()=>document.removeEventListener("keydown",x);const C=n.tailId&&n.get(n.tailId);return(!C||o!==C.data.root)&&(p=n.add({root:o,trigger:d,options:s}),Ht(b[0],i)),w}})(),fr=100,hr=150;let it={},Ae=null;const jo=e=>{it[e]&&(e===Ae&&(Ae=it[e].parentId),delete it[e],Ae===null&&(it={}))},gr=(e,t,n)=>{var i;const o=Ae?it[Ae]:void 0;!((n==null?void 0:n.current)&&o&&((i=o.contentRef.current)==null?void 0:i.contains(n.current)))&&n&&Ae&&jo(Ae),it[e]={parentId:Ae,triggerRef:n,contentRef:t},Ae=e},Co=(e=!1,t,n)=>{const o=ze(),s=c.useCallback(()=>Ae===o,[o]);return c.useEffect(()=>{e?gr(o,t,n):jo(o)},[e,o,t,n]),s},ce=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,at="+",Te={},$n=[],ko=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),zn=e=>ko(e).split(at).sort().join(at),No=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},vr=e=>{const t=[],n=e.join(at),s=zn(n).split(at),i=(a,l)=>{l.forEach((d,f)=>{const u=a?`${a}+${d}`:d;t.push(u),i(u,l.slice(f+1))})};return i("",s),t},br=(e,t)=>{const n=Object.keys(e);n.length&&vr(n).forEach(o=>{t(o)})},En=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(o=>{const s=e[n];s&&t(zn(o),s)})})};class pr{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{En(t,(o,s)=>{s&&(this.hotkeyMap[o]||(this.hotkeyMap[o]={data:new Set,used:!1}),this.hotkeyMap[o].data.add({callback:s,ref:n}))})},this.unbindHotkeys=t=>{En(t,(n,o)=>{var s,i;o&&((s=this.hotkeyMap[n])==null||s.data.forEach(a=>{a.callback===o&&this.hotkeyMap[n].data.delete(a)}),(i=this.hotkeyMap[n])!=null&&i.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{br(t,o=>{const s=this.hotkeyMap[o];!s||s.used||s!=null&&s.data.size&&s.data.forEach(i=>{var a;(a=i.ref)!=null&&a.current&&!(n.target===i.ref.current||i.ref.current.contains(n.target))||(i.callback(t[o]),this.hotkeyMap[o].used=!0)})})},this.handleKeyUp=t=>{const n=zn(t.key);En(this.hotkeyMap,(o,s)=>{o.split(at).includes(n)&&(s.used=!1)})}}}const Kt=new pr,$o=c.createContext({}),xr=e=>{const{children:t}=e,[n,o]=c.useState(0),[s,i]=c.useState(0),a=c.useCallback(m=>{if(m.repeat||s===0)return;const v=No(m);v&&(Te[v]=m,(v==="meta"||v==="control")&&(Te.mod=m),o(Object.keys(Te).length),v==="meta"&&$n.push(...Object.keys(Te)),Te.Meta&&$n.push(v))},[s]),l=c.useCallback(m=>{if(s===0)return;const v=No(m);v&&(delete Te[v],(v==="meta"||v==="control")&&delete Te.mod,v==="meta"&&$n.forEach(b=>{delete Te[b]}),o(Object.keys(Te).length))},[s]),d=m=>!ko(m).split(at).some(b=>!Te[b]),f=c.useCallback((m,v)=>(i(b=>b+1),Kt.bindHotkeys(m,v),()=>{i(b=>b-1),Kt.unbindHotkeys(m)}),[]),u=c.useCallback(m=>{m.key&&(a(m),Kt.handleKeyDown(Te,m))},[a]),h=c.useCallback(m=>{m.key&&(l(m),Kt.handleKeyUp(m))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",u),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",u),window.removeEventListener("keyup",h)}),[u,h]),r.jsx($o.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},yr=()=>c.useContext($o),ot=(e,t=[],n)=>{const{addHotkeys:o,isPressed:s}=yr(),i=c.useRef(null),a=(n==null?void 0:n.ref)||i;return c.useEffect(()=>{const l=o(e,a);return()=>l==null?void 0:l()},[o,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:s}},Tn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),wr=e=>{const t=c.useState(e||!1),[n,o]=t;return ce(()=>{const s=new MutationObserver(i=>{i.forEach(a=>{if(a.attributeName!=="dir")return;const l=a.target.dir==="rtl";n!==l&&o(l)})});return s.observe(document.documentElement,{attributes:!0}),()=>s.disconnect()},[n]),ce(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(Tn).rtl,In=e=>{const t=e&&window.getComputedStyle(e),n=t==null?void 0:t.overflowY,o=t==null?void 0:t.position,s=n==null?void 0:n.includes("scroll"),i=o==="fixed";return e===document.body||!e?document.body:s&&e.scrollHeight>e.clientHeight||i?e:In(e.parentElement)},zo=16,Yt=["top-start","top","top-end"],Gt=["bottom-start","bottom","bottom-end"],Xt=["start","start-bottom","start-top"],Jt=["end","end-bottom","end-top"],jr={top:[...Yt,...Gt,...Jt,...Xt],bottom:[...Gt,...Yt,...Jt,...Xt],start:[...Xt,...Jt,...Yt,...Gt],end:[...Jt,...Xt,...Yt,...Gt]},Cr=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,Eo=(e,t)=>Math.floor(e/2-t/2),kr=e=>{const n=["top","bottom","start","end"].find(o=>e.startsWith(o))||"bottom";return jr[n]},Mn=e=>{const t=document.documentElement,n=t.scrollLeft,o=n+t.clientWidth,s=t.scrollTop,i=s+t.clientHeight;return e.left>=n&&e.left+e.width<=o&&e.top>=s&&e.top+e.height<=i},To=(e,t,n,o)=>{const{position:s,rtl:i,width:a}=o;let l=0,d=0,f=s;switch(i&&(f=Cr(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=Eo(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=Eo(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||l===void 0)throw Error(`[Reshaped, flyout]: ${f} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),l=Math.round(l+(window.scrollX||0)-n.left);let u=Math.ceil(t.width);const h=Math.ceil(t.height);return a==="full"?(l=zo,u=window.innerWidth-zo*2):a==="trigger"&&(u=e.width),{styles:{left:l,top:d,width:u,height:h},position:f}},Io={left:0,top:0,width:"auto",height:"auto",zIndex:"var(--rs-z-index-flyout)"},Qt={left:0,top:0,position:"fixed",visibility:"hidden",animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},Nr=(e,t,n)=>{const{position:o,forcePosition:s,width:i}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(Qt).forEach(v=>{const b=Qt[v];a.style[v]=b.toString()}),i&&(i==="trigger"?a.style.width=`${l.width}px`:i!=="full"&&(a.style.width=i)),document.body.appendChild(a);const d=a.getBoundingClientRect(),f=In(e),u=f.getBoundingClientRect(),h={top:u.top+document.documentElement.scrollTop-f.scrollTop,left:u.left+document.documentElement.scrollLeft-f.scrollLeft};let m=To(l,d,h,n);if(!Mn(m.styles)&&!s){const v=kr(o),b=v.filter(y=>y==="top"||y==="bottom"),p=(y,w={})=>{const{fullWidth:x}=w;y.some(C=>{const $=j(g({},n),{width:x?"full":n.width,position:C}),z=To(l,d,h,$);return Mn(z.styles)?(m=z,!0):!1})};p(v),Mn(m.styles)||p(b,{fullWidth:!0})}return a.parentNode.removeChild(a),m},$r=(e,t)=>{switch(t.type){case"render":return j(g({},e),{status:"rendered",styles:g({pointerEvents:"none"},Qt)});case"position":return j(g({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:g(g({},Io),t.payload.styles)});case"show":return j(g({},e),{status:"visible"});case"hide":return j(g({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return j(g({},e),{status:"idle",styles:Qt});default:throw new Error("Invalid reducer type")}},zr=(e,t,n)=>{const{position:o="bottom",forcePosition:s,width:i}=n,[a]=Ge(),[l,d]=c.useReducer($r,{position:o,styles:Io,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),u=c.useCallback(()=>{d({type:"show"})},[]),h=c.useCallback(()=>{d({type:"hide"})},[]),m=c.useCallback(()=>{d({type:"remove"})},[]),v=c.useCallback(()=>{if(!e.current||!t.current)return;const b=Nr(e.current,t.current,{width:i,position:o,forcePosition:s,rtl:a});d({type:"position",payload:b})},[e,t,o,a,s,i]);return c.useEffect(()=>{l.status==="rendered"&&v(),l.status==="positioned"&&$t(()=>u())},[l.status,v,u]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:v,render:f,hide:h,remove:m}),[f,v,h,m,l.position,l.styles,l.status])},Er=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=o=>{let s=!1;e.forEach(i=>{(!i.current||i.current===o.target||i.current.contains(o.target))&&(s=!0)}),!s&&t(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},Mo=c.createContext({}),Zt=()=>c.useContext(Mo),Tr=Mo.Provider,So=e=>{const{triggerType:t="click",onOpen:n,onClose:o,children:s,forcePosition:i,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:u,contentAttributes:h,position:m,active:v,id:b,instanceRef:p}=e,[y]=Ge(),w=c.useRef(null),x=c.useRef(null),C=ze(b),$=c.useRef(),z=c.useRef(null),I=c.useRef(!1),E=c.useRef(!1),P=c.useRef(!0),U=zr(w,x,{width:l,position:m,defaultActive:v,forcePosition:i}),M=Zt(),{status:F,updatePosition:q,render:V,hide:A,remove:Z}=U,fe=Co(t!=="hover"&&F!=="idle",x,w),he=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),re=c.useCallback(()=>{!I.current&&F==="idle"&&(n==null||n())},[F]),ee=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&F!=="idle"&&(o==null||o(),X!=null&&X.closeParents&&((Me=M==null?void 0:M.handleClose)==null||Me.call(M)))},[F,fe,t]),He=c.useCallback(X=>{var ge;(ge=x.current)!=null&&ge.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||E.current||ee()},[ee,t,a]),ke=c.useCallback(()=>{re()},[re]),oe=c.useCallback(()=>{he(),$.current=setTimeout(re,fr)},[he,$,re]),H=c.useCallback(()=>{he(),$.current=setTimeout(()=>ee(),hr)},[he,$,ee]),Y=c.useCallback(()=>{F==="idle"?re():ee()},[F,re,ee]),G=()=>E.current=!0,ie=()=>E.current=!1;ce(()=>{if(v){V();return}Js()&&!d?A():Z()},[v,V,A,d]);const we=c.useCallback(X=>{x.current!==X.currentTarget||X.propertyName!=="transform"||F==="hidden"&&Z()},[Z,F]);return ce(()=>{F!=="visible"||!x.current||(z.current=Ut(x.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{z.current=null,ee()}}))},[F,t,ee,a]),c.useEffect(()=>{!d&&F!=="hidden"||d&&F!=="idle"||z.current&&(t==="hover"&&(I.current=!0,setTimeout(()=>{I.current=!1},100)),z.current({withoutFocusReturn:!P.current}),z.current=null,P.current=!0)},[F,t,d]),c.useEffect(()=>()=>{z.current&&z.current(),z.current=null},[]),c.useEffect(()=>{const X=eo(q,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[q]),c.useEffect(()=>{q()},[y,q]),c.useImperativeHandle(p,()=>({open:re,close:ee}),[re,ee]),ot({Escape:()=>ee()},[ee]),Er([x,w],()=>{P.current=!1,ee()}),r.jsx(Tr,{value:{id:C,flyout:U,width:l,triggerElRef:w,flyoutElRef:x,handleClose:ee,handleOpen:re,handleFocus:ke,handleBlur:He,handleMouseEnter:oe,handleMouseLeave:H,handleTransitionEnd:we,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:u,contentAttributes:h},children:s})},Ir=e=>{const{defaultActive:t,onClose:n,onOpen:o}=e,[s,i]=c.useState(t||!1),a=()=>{i(!1),n&&n()},l=()=>{i(!0),o&&o()};return r.jsx(So,j(g({},e),{defaultActive:void 0,active:s,onClose:a,onOpen:l}))},Mr=e=>{const{children:t}=e,{id:n,triggerElRef:o,triggerType:s,flyout:i,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:u,trapFocusMode:h}=Zt();let m={onBlur:l,ref:o};return(s==="click"||h==="action-menu")&&(m.onClick=u),s==="hover"&&(m.onMouseEnter=d,m.onMouseLeave=f),(s==="hover"&&h!=="action-menu"||s==="focus")&&(m.onFocus=a,m["aria-describedby"]=n),(s==="click"||s==="focus"||h==="action-menu")&&(h==="dialog"?m["aria-haspopup"]="dialog":h==="selection-menu"?(m["aria-haspopup"]="listbox",m["aria-autocomplete"]="list"):m["aria-haspopup"]="menu",m["aria-expanded"]=i.status!=="idle",m["aria-controls"]=i.status!=="idle"?n:void 0),r.jsx(r.Fragment,{children:t(m)})},Po=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),Sn=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),Sr=()=>{const{mode:e}=c.useContext(Sn);return e},Fo=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Po),{mode:o,setMode:s,invertMode:i}=c.useContext(Sn);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||o,setColorMode:s,invertColorMode:i}),[e,o,s,i,t,n])},Pr={root:"_root_r30zs_1"},lt=e=>{const{name:t,defaultName:n,colorMode:o,children:s,className:i}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),u=Sr(),h=Fo(),m=!h.theme,v=t||d||h.theme,b=m?u:h.colorMode,y=o==="inverted"?b==="light"?"dark":"light":o||b,w=S(Pr.root,i),x=C=>{f(C)};return ce(()=>{l(!0)},[]),ce(()=>{if(!document||!m)return;const C=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",v),C||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),C||document.documentElement.removeAttribute("data-rs-color-mode")}},[v,y,m]),r.jsx(Po.Provider,{value:{theme:v,colorMode:y,setTheme:x},children:r.jsx("div",{className:w,"data-rs-theme":m?void 0:v,"data-rs-color-mode":m||!o&&!a?void 0:y,children:s})})},Fr=e=>{const{defaultMode:t,children:n}=e,[o,s]=c.useState(t||"light"),i=c.useCallback(l=>{document.documentElement.setAttribute("data-rs-color-mode",l),s(d=>(d!==l&&Gs(),l))},[]);ce(()=>{$t(()=>{Xs()})},[o]),ce(()=>{const l=document.documentElement.getAttribute("data-rs-color-mode");l&&i(l)},[]);const a=c.useMemo(()=>({mode:o,setMode:i,invertMode:()=>{i(o==="light"?"dark":"light")}}),[o,i]);return r.jsx(Sn.Provider,{value:a,children:n})},Lo=c.createContext({}),Lr=()=>c.useContext(Lo),en=e=>{const{children:t,targetRef:n}=e,o=Lr(),s=n||o.scopeRef;return me.createPortal(r.jsx(lt,{children:t}),(s==null?void 0:s.current)||document.body)};function Ar(e){const{children:t}=e,n=c.useRef(null);return r.jsx(Lo.Provider,{value:{scopeRef:n},children:t(n)})}en.Scope=Ar;const ct={content:"_content_12uuh_1",inner:"_inner_12uuh_9","--width-trigger":"_--width-trigger_12uuh_15","--position-top":"_--position-top_12uuh_19","--position-top-end":"_--position-top-end_12uuh_20","--position-top-start":"_--position-top-start_12uuh_21","--position-bottom":"_--position-bottom_12uuh_27","--position-bottom-end":"_--position-bottom-end_12uuh_28","--position-bottom-start":"_--position-bottom-start_12uuh_29","--position-start":"_--position-start_12uuh_45","--position-start-top":"_--position-start-top_12uuh_46","--position-start-bottom":"_--position-start-bottom_12uuh_47","--position-end":"_--position-end_12uuh_53","--position-end-top":"_--position-end-top_12uuh_54","--position-end-bottom":"_--position-end-bottom_12uuh_55","--visible":"_--visible_12uuh_71","--animated":"_--animated_12uuh_76"},Dr=e=>{const{children:t,className:n,attributes:o}=e,{flyout:s,id:i,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:u,handleMouseLeave:h,handleContentMouseDown:m,handleContentMouseUp:v,contentGap:b,contentClassName:p,contentAttributes:y,trapFocusMode:w,width:x}=Zt(),{styles:C,status:$,position:z}=s,[I,E]=c.useState(!1);if(ce(()=>{E(!0)},[]),$==="idle"||!I)return null;const P=S(ct.content,$==="visible"&&ct["--visible"],["visible","hidden"].includes($)&&ct["--animated"],z&&ct[`--position-${z}`],x==="trigger"&&ct["--width-trigger"]),U=S(ct.inner,n,p);let M;f==="hover"?M="tooltip":w==="dialog"?M="dialog":w==="selection-menu"?M="listbox":w==="action-menu"&&(M="menu");const F=r.jsx("div",{className:P,style:j(g({},C),{"--rs-flyout-gap":b}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?u:void 0,onMouseLeave:f==="hover"?h:void 0,onMouseDown:m,onTouchStart:m,onMouseUp:v,onTouchEnd:v,children:r.jsx("div",j(g({role:M},o),{id:i,"aria-modal":f==="click",style:y==null?void 0:y.style,className:U,children:t}))}),q=In(l.current);return r.jsx(en,{targetRef:q===document.body?void 0:{current:q},children:F})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?r.jsx(So,g({},e)):r.jsx(Ir,g({},e))};Xe.Trigger=Mr,Xe.Content=Dr;const Pn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},Vr={root:"_root_e7w6q_1"},Fn=e=>{if(!e)return null;const t=te("--rs-p",e);return{classNames:Vr.root,variables:t}},dt=e=>{var C;const{id:t,forcePosition:n,onOpen:o,onClose:s,active:i,defaultActive:a,children:l,width:d,contentGap:f,variant:u="elevated",triggerType:h="click",position:m="bottom",disableHideAnimation:v,instanceRef:b}=e,p=(C=e.padding)!=null?C:u==="headless"?0:4,y=e.trapFocusMode||(h==="hover"?"content-menu":void 0),w=Fn(p),x=S(Pn.content,!!d&&Pn["content--has-width"],u&&Pn[`content--variant-${u}`],w==null?void 0:w.classNames);return r.jsx(Xe,{id:t,instanceRef:b,position:m,forcePosition:n,onOpen:o,onClose:s,trapFocusMode:y,triggerType:h,active:i,defaultActive:a,width:d,disableHideAnimation:v,contentGap:f,contentClassName:x,contentAttributes:{style:g({},w==null?void 0:w.variables)},children:l})};dt.Trigger=Xe.Trigger,dt.Content=Xe.Content;const Be={root:"_root_13dku_1",icon:"_icon_13dku_12",content:"_content_13dku_17","--rounded-corners":"_--rounded-corners_13dku_22","--size-small":"_--size-small_13dku_1","--size-medium":"_--size-medium_13dku_1","--size-large":"_--size-large_13dku_1","--color-neutral":"_--color-neutral_13dku_61","--selected":"_--selected_13dku_65","--color-critical":"_--color-critical_13dku_71","--color-primary":"_--color-primary_13dku_81","--disabled":"_--disabled_13dku_102",aligner:"_aligner_13dku_123","--rounded-corners-true--m":"_--rounded-corners-true--m_13dku_1","--rounded-corners-false--m":"_--rounded-corners-false--m_13dku_1","--size-small--m":"_--size-small--m_13dku_1","--size-medium--m":"_--size-medium--m_13dku_1","--size-large--m":"_--size-large--m_13dku_1","--rounded-corners-true--l":"_--rounded-corners-true--l_13dku_1","--rounded-corners-false--l":"_--rounded-corners-false--l_13dku_1","--size-small--l":"_--size-small--l_13dku_1","--size-medium--l":"_--size-medium--l_13dku_1","--size-large--l":"_--size-large--l_13dku_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_13dku_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_13dku_1","--size-small--xl":"_--size-small--xl_13dku_1","--size-medium--xl":"_--size-medium--xl_13dku_1","--size-large--xl":"_--size-large--xl_13dku_1"},qr=e=>r.jsx(Ot,j(g({},e),{side:e.side||"inline",className:[Be.aligner,e.className]})),Or=(e,t)=>{const{icon:n,startSlot:o,endSlot:s,children:i,color:a="primary",selected:l,disabled:d,onClick:f,href:u,size:h="medium",roundedCorners:m,className:v,attributes:b}=e,p=S(Be.root,v,W(Be,"--size",h),W(Be,"--rounded-corners",m),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=$e(h,x=>x==="large"?3:2),w=$e(h,x=>x==="large"?5:4);return r.jsx(Le,{disabled:d,className:p,attributes:j(g({},b),{"data-rs-aligner-target":!0}),onClick:f,href:u,ref:t,children:r.jsxs(D,{direction:"row",gap:y,align:"center",children:[n&&r.jsx(le,{svg:n,className:Be.icon,size:w}),!n&&o,i&&r.jsx(D.Item,{grow:!0,className:Be.content,children:i}),s]})})},Ln=c.forwardRef(Or);Ln.Aligner=qr;const tn=()=>r.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:r.jsx("polyline",{points:"9 18 15 12 9 6"})}),nn={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},An=c.createContext(null),ye=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:o="click",trapFocusMode:s="action-menu"}=a,i=Fe(a,["children","position","triggerType","trapFocusMode"]);return r.jsx(dt,j(g({},i),{position:n,padding:0,trapFocusMode:s,triggerType:o,children:t}))},Br=e=>{const{children:t,attributes:n,className:o}=e,s=c.useContext(An),[i]=Ge(),{ref:a}=ot({[i?bo:po]:()=>{var d;(d=s==null?void 0:s.current)==null||d.close()},[ir]:()=>{const d=Wt();d==null||d.click()}},[s==null?void 0:s.current]),l=S(nn.menu,o);return r.jsx(dt.Content,{className:l,attributes:j(g({},n),{ref:a}),children:t})},Wr=e=>{const{children:t}=e;return r.jsx("div",{className:nn.section,role:"group",children:t})},Ao=e=>{const{onClick:t}=e,{handleClose:n}=Zt(),o=s=>{n&&n({closeParents:!0}),t&&t(s)};return r.jsx(Ln,j(g({},e),{roundedCorners:!0,className:nn.item,attributes:g({role:"menuitem"},e.attributes),onClick:o}))},Hr=e=>{const{children:t}=e,n=c.useRef();return r.jsx(An.Provider,{value:n,children:r.jsx(ye,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Rr=e=>{const l=e,{children:t,attributes:n}=l,o=Fe(l,["children","attributes"]),s=c.useContext(An),[i]=Ge(),{ref:a}=ot({[i?po:bo]:()=>{var d;(d=s==null?void 0:s.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return r.jsx(Ao,j(g({},o),{attributes:j(g({},n),{ref:a}),endSlot:r.jsx(le,{autoWidth:!0,svg:tn,className:nn.arrow}),children:t}))},Ur=e=>{const{children:t}=e;return r.jsx(ye.Trigger,{children:n=>r.jsx(Rr,{attributes:n,children:t})})};ye.Trigger=dt.Trigger,ye.Content=Br,ye.Section=Wr,ye.Item=Ao,ye.SubMenu=Hr,ye.SubTrigger=Ur;const Do=c.createContext({}),Vo=e=>{const w=e,{children:t,onChange:n,onItemSelect:o,name:s}=w,i=Fe(w,["children","onChange","onItemSelect","name"]),a=c.useRef(null),[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=!!c.Children.toArray(t).filter(Boolean).length,m=c.useCallback(()=>d(!0),[]),v=()=>d(!1);ot({[`${go},${vo}`]:()=>m()},[m],{ref:a});const b=x=>{n==null||n(x),u(!1),m()},p=x=>{n==null||n({value:x.value,name:s}),o==null||o({value:x.value}),u(!0)},y=x=>{var C;requestAnimationFrame(()=>{f&&(d(!1),u(!1))}),(C=i.onFocus)==null||C.call(i,x)};return r.jsx(Do.Provider,{value:{onItemClick:p},children:r.jsxs(ye,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!f&&h&&l,onClose:v,onOpen:m,disableHideAnimation:!0,children:[r.jsx(ye.Trigger,{children:$=>{var z=$,{ref:x}=z,C=Fe(z,["ref"]);return r.jsx(Cn,j(g({},i),{name:s,onChange:b,attributes:j(g({},i.attributes),{ref:x}),inputAttributes:j(g({},C),{onFocus:I=>{var E;(E=C.onFocus)==null||E.call(C),y(I)},ref:a,role:"combobox"})}))}}),r.jsx(ye.Content,{children:t})]})})},Kr=e=>{const a=e,{value:t,onClick:n}=a,o=Fe(a,["value","onClick"]),{onItemClick:s}=c.useContext(Do),i=l=>{n==null||n(l),s({value:t})};return r.jsx(ye.Item,j(g({},o),{attributes:j(g({},o.attributes),{role:"option"}),onClick:i}))};Vo.Item=Kr;const on={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"},Yr=e=>{const{color:t="neutral",variant:n,src:o,size:s=12,squared:i,initials:a,icon:l,alt:d,className:f,attributes:u}=e,h=i?$e(s,p=>p>=24?"large":p>=12?"medium":"small"):"circular",m=kt(s),v=S(on.root,f,m==null?void 0:m.classNames,t&&on[`--color-${t}`],n&&on[`--variant-${n}`]),b=()=>o?r.jsx("img",{role:a?void 0:"presentation",src:o,alt:d,className:on.img}):l?r.jsx(le,{svg:l,size:$e(s,p=>Math.ceil(p*.4))}):a;return r.jsx(D,{borderRadius:h,attributes:j(g({},u),{style:g({},m==null?void 0:m.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:v,children:b()})},qo=()=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[r.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Ie={root:"_root_xbb1o_1",dismiss:"_dismiss_xbb1o_21","--actionable":"_--actionable_xbb1o_26","--variant-faded":"_--variant-faded_xbb1o_1","--variant-outline":"_--variant-outline_xbb1o_1","--color-positive":"_--color-positive_xbb1o_47","--color-critical":"_--color-critical_xbb1o_67","--color-primary":"_--color-primary_xbb1o_87","--size-small":"_--size-small_xbb1o_1","--size-medium":"_--size-medium_xbb1o_1","--size-large":"_--size-large_xbb1o_1","--rounded":"_--rounded_xbb1o_133","--hidden":"_--hidden_xbb1o_145",container:"_container_xbb1o_152","--container-overlap":"_--container-overlap_xbb1o_177","--container-position-top-end":"_--container-position-top-end_xbb1o_181","--container-position-bottom-end":"_--container-position-bottom-end_xbb1o_193"},Gr=e=>{const{children:t,position:n="top-end",overlap:o,className:s,attributes:i}=e,a=S(Ie.container,s,o&&Ie["--container-overlap"],n&&Ie[`--container-position-${n}`]);return r.jsx("div",j(g({},i),{className:a,children:t}))},Oo=e=>{const{children:t,color:n,rounded:o,size:s="medium",icon:i,endIcon:a,variant:l,hidden:d,href:f,onClick:u,onDismiss:h,dismissAriaLabel:m,className:v,attributes:b}=e,p=!!(u||f),y=s==="large"?4:3.5,w=S(Ie.root,v,o&&Ie["--rounded"],d&&Ie["--hidden"],s&&Ie[`--size-${s}`],n&&Ie[`--color-${n}`],l&&Ie[`--variant-${l}`],p&&Ie["--actionable"]);return r.jsxs(Le,{onClick:u,href:f,className:w,attributes:b,children:[i&&r.jsx(le,{svg:i,autoWidth:!0,size:y}),t&&r.jsx(Q,{variant:s==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&r.jsx(le,{svg:a,autoWidth:!0,size:y}),h&&r.jsx(Le,{onClick:h,className:Ie.dismiss,as:"span",attributes:{"aria-label":m},children:r.jsx(le,{svg:qo,size:y})})]})};Oo.Container=Gr;const sn={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"},Bo=e=>{const{size:t="small",color:n="primary",className:o,attributes:s}=e,i=s==null?void 0:s["aria-label"],a=S(sn.root,o,W(sn,"--size",t),n&&sn[`--color-${n}`]);return r.jsx("span",j(g({},s),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:a,children:r.jsx("span",{className:sn.inner})}))},ue={root:"_root_6msy8_1",loader:"_loader_6msy8_37",icon:"_icon_6msy8_45","--icon-position-end":"_--icon-position-end_6msy8_49",text:"_text_6msy8_60","--loading":"_--loading_6msy8_66","--elevated":"_--elevated_6msy8_83","--icon-only":"_--icon-only_6msy8_87","--rounded":"_--rounded_6msy8_93","--size-small":"_--size-small_6msy8_1","--size-medium":"_--size-medium_6msy8_1","--size-large":"_--size-large_6msy8_1","--size-xlarge":"_--size-xlarge_6msy8_1","--full-width":"_--full-width_6msy8_135","--variant-solid":"_--variant-solid_6msy8_149","--color-black":"_--color-black_6msy8_149","--color-white":"_--color-white_6msy8_150","--variant-faded":"_--variant-faded_6msy8_151","--color-neutral":"_--color-neutral_6msy8_151","--color-primary":"_--color-primary_6msy8_152","--color-critical":"_--color-critical_6msy8_153","--color-positive":"_--color-positive_6msy8_154","--color-inherit":"_--color-inherit_6msy8_155","--variant-outline":"_--variant-outline_6msy8_156","--variant-ghost":"_--variant-ghost_6msy8_157","--highlighted":"_--highlighted_6msy8_176","--disabled":"_--disabled_6msy8_529",group:"_group_6msy8_561",aligner:"_aligner_6msy8_622","--size-small--m":"_--size-small--m_6msy8_1","--size-medium--m":"_--size-medium--m_6msy8_1","--size-large--m":"_--size-large--m_6msy8_1","--size-xlarge--m":"_--size-xlarge--m_6msy8_1","--full-width-true--m":"_--full-width-true--m_6msy8_1","--full-width-false--m":"_--full-width-false--m_6msy8_1","--size-small--l":"_--size-small--l_6msy8_1","--size-medium--l":"_--size-medium--l_6msy8_1","--size-large--l":"_--size-large--l_6msy8_1","--size-xlarge--l":"_--size-xlarge--l_6msy8_1","--full-width-true--l":"_--full-width-true--l_6msy8_1","--full-width-false--l":"_--full-width-false--l_6msy8_1","--size-small--xl":"_--size-small--xl_6msy8_1","--size-medium--xl":"_--size-medium--xl_6msy8_1","--size-large--xl":"_--size-large--xl_6msy8_1","--size-xlarge--xl":"_--size-xlarge--xl_6msy8_1","--full-width-true--xl":"_--full-width-true--xl_6msy8_1","--full-width-false--xl":"_--full-width-false--xl_6msy8_1"},Xr=e=>{const{children:t,className:n,attributes:o}=e,s=S(ue.group,n);return r.jsx("div",j(g({},o),{className:s,role:"group",children:t}))},Jr=e=>r.jsx(Ot,j(g({},e),{side:e.side||e.position,className:[ue.aligner,e.className]})),Qr=(e,t)=>{const{variant:n="solid",color:o="neutral",elevated:s,highlighted:i,fullWidth:a,loading:l,disabled:d,type:f,href:u,size:h="medium",className:m,children:v,rounded:b,attributes:p,onClick:y,icon:w,endIcon:x}=e,C=(w||x)&&!v,$=S(ue.root,m,o&&ue[`--color-${o}`],n&&ue[`--variant-${n}`],W(ue,"--size",h),W(ue,"--full-width",a),s&&n!=="ghost"&&ue["--elevated"],b&&ue["--rounded"],d&&ue["--disabled"],l&&ue["--loading"],i&&ue["--highlighted"],C&&ue["--icon-only"]),z=I=>{if(!(I==="start"&&w||I==="end"&&x))return null;const M=S(ue.icon,I==="end"&&ue["--icon-position-end"]),F=$e(h,q=>q==="large"?5:q==="xlarge"?6:4);return r.jsx(le,{className:M,svg:I==="start"?w:x,size:F,autoWidth:!0})};return r.jsxs(Le,{disabled:d||l,className:$,attributes:j(g({},p),{"data-rs-aligner-target":!0}),type:f,onClick:y,href:u,ref:t,children:[l&&r.jsx("div",{className:ue.loader,children:r.jsx(Bo,{size:"small",color:"inherit"})}),z("start"),v&&r.jsx("span",{className:ue.text,children:v}),z("end")]})},Ce=c.forwardRef(Qr);Ce.Group=Xr,Ce.Aligner=Jr;const Zr=()=>r.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.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"}),r.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"}),r.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"})]}),ei=e=>{const{children:t,separator:n,color:o,defaultVisibleItems:s,ariaLabel:i,className:a,attributes:l}=e,d=s&&s>=2?s:null,[f,u]=c.useState(!1),h=S(a),m=c.Children.count(t);let v=0;const b=()=>{u(!0)};return r.jsx("nav",j(g({},l),{"aria-label":i||(l==null?void 0:l["aria-label"]),className:h,children:r.jsx(D,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(p,y)=>{if(!p)return null;const w=m-(d||0),x=v===0,C=v>w,$=!d||x||C||f,z=v===w;v+=1;let I=null;return $?I=p:z&&(I=r.jsx(Ce.Aligner,{children:r.jsx(Ce,{variant:"ghost",size:"small",icon:Zr,onClick:b})})),I===null?null:r.jsxs(D,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||z)&&r.jsx(Q,{color:"neutral-faded",children:n||r.jsx(le,{svg:tn,size:3})}),r.jsx(Q,{variant:"body-3",color:o==="primary"?"primary":"neutral-faded",children:I})]},y)})})}))},Et={root:"_root_80rry_1","--color-primary":"_--color-primary_80rry_6","--color-critical":"_--color-critical_80rry_10","--color-positive":"_--color-positive_80rry_14","--color-inherit":"_--color-inherit_80rry_18","--variant-plain":"_--variant-plain_80rry_23","--disabled":"_--disabled_80rry_27","--variant-underline":"_--variant-underline_80rry_33","--with-icon":"_--with-icon_80rry_49"},ti=(e,t)=>{const{icon:n,disabled:o,href:s,color:i="primary",variant:a="underline",className:l,children:d,attributes:f,type:u,onClick:h}=e,m=S(Et.root,l,o&&Et["--disabled"],a&&Et[`--variant-${a}`],i&&Et[`--color-${i}`],n&&Et["--with-icon"]);return r.jsxs(Le,{href:s,disabled:o,className:m,attributes:f,type:u,onClick:h,ref:t,children:[n&&r.jsx(le,{svg:n}),d]})},Wo=c.forwardRef(ti),ni=e=>{const{children:t,onClick:n,href:o,icon:s,disabled:i}=e;return!o&&!n&&!i?r.jsx(Q,{variant:"body-3",weight:"medium",color:"neutral",children:t}):r.jsx(Wo,{onClick:n,href:o,icon:s,disabled:i,variant:"plain",color:"inherit",children:t})},Ho=ei;Ho.Item=ni;const ut={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},oi=(e,t)=>{const{padding:n=4}=e,{selected:o,elevated:s,bleed:i,height:a,onClick:l,href:d,children:f,className:u,attributes:h,as:m="div"}=e,v=!!d||!!l,b=vn("medium"),p=ro(i),y=Fn(n),w=kt(a),x=S(ut.root,b==null?void 0:b.classNames,p==null?void 0:p.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,v&&ut["--actionable"],s&&ut["--elevated"],o&&ut["--selected"],u),C=g(g(g(g({},h==null?void 0:h.style),p==null?void 0:p.variables),y==null?void 0:y.variables),w==null?void 0:w.variables);return v?r.jsx(Le,{className:x,attributes:j(g({},h),{style:C}),href:d,as:m,onClick:l,ref:t,children:r.jsx("span",{className:ut.content,children:f})}):r.jsx(m,j(g({},h),{onClick:l,href:d,ref:t,className:x,style:C,children:r.jsx("span",{className:ut.content,children:f})}))},si=c.forwardRef(oi),Ro=()=>r.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:r.jsx("polyline",{points:"15 18 9 12 15 6"})});var _t=(e=>(e.back="back",e.forward="forward",e))(_t||{});const We={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},Uo=e=>{const{type:t,scrollElRef:n,scrollPosition:o,onClick:s,isRTL:i,mounted:a}=e,[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=t===_t.forward,m=t===(i?_t.back:_t.forward),v=S(We.control,m?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return ce(()=>{const b=n.current;if(!b||!a)return;let p;const y=Math.abs(o),w=y<=0,x=y+b.clientWidth>=b.scrollWidth-1;return(h?x:w)?(d(!1),p=setTimeout(()=>u(!1),1500)):(u(!0),d(!0)),()=>{p&&clearTimeout(p)}},[o,n.current,a]),r.jsx("div",{className:v,"aria-hidden":"true",children:r.jsx(Ce,{onClick:s,icon:m?tn:Ro,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},ri=e=>{const{children:t,gap:n=3,visibleItems:o,bleed:s,navigationDisplay:i,instanceRef:a,className:l,attributes:d}=e,[f,u]=c.useState(!1),[h,m]=c.useState(0),[v]=Ge(),b=c.useRef(null),p={};typeof s=="object"&&Object.entries(s).forEach(([E,P])=>{p[E]=typeof P=="number"&&P>0});const y=S(We.root,l,...W(We,"--bleed",typeof s=="number"?!0:p)),w=Is(E=>{const P=E.target;m(P.scrollLeft)},16),x=()=>{const P=getComputedStyle(b.current).gap.split(" ")[0];return Number(P.replace("px",""))},C=()=>{const E=b.current;E.scrollBy({left:E.clientWidth+x(),top:0,behavior:"smooth"})},$=()=>{const E=b.current;E.scrollBy({left:-E.clientWidth-x(),top:0,behavior:"smooth"})},z=v?C:$,I=v?$:C;return c.useImperativeHandle(a,()=>({navigateBack:z,navigateForward:I})),ce(()=>{u(!0)},[]),r.jsxs("section",j(g({},d),{className:y,style:g(g({},te("--rs-carousel-items",o)),te("--rs-carousel-bleed",s)),children:[i!=="hidden"&&r.jsxs(r.Fragment,{children:[r.jsx(Uo,{isRTL:v,type:_t.back,scrollElRef:b,scrollPosition:h,onClick:z,mounted:f}),r.jsx(Uo,{isRTL:v,type:_t.forward,scrollElRef:b,scrollPosition:h,onClick:I,mounted:f})]}),r.jsx(D,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:b,onScroll:w},children:c.Children.map(t,E=>r.jsx(D.Item,{className:We.item,as:"li",children:E}))})]}))},ii={root:"_root_1feer_1"},Dn=e=>{const{name:t,value:n,type:o,onChange:s,onFocus:i,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:u,attributes:h}=e,m=S(ii.root,u);return r.jsx("input",j(g({},h),{className:m,type:o,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:s,onFocus:i||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},Ko=c.createContext(null),ai=()=>c.useContext(Ko),Yo=e=>{const{onChange:t,name:n,disabled:o,value:s,children:i,hasError:a}=e,l=d=>{const{event:f,value:u,checked:h}=d;if(!u)return;let m=[...s];h?m.push(u):m=m.filter(v=>v!==u),t&&t({name:n,value:m,event:f})};return r.jsx(Ko.Provider,{value:{onChange:l,disabled:o,value:s,name:n,hasError:a},children:i})},li=e=>{const{defaultValue:t,onChange:n}=e,[o,s]=c.useState(t||[]),i=a=>{a.value&&(s(a.value),n&&n(a))};return r.jsx(Yo,j(g({},e),{value:o,defaultValue:void 0,onChange:i}))},ci=e=>{const{value:t}=e;return t!==void 0?r.jsx(Yo,g({},e)):r.jsx(li,g({},e))},Go=()=>r.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:r.jsx("polyline",{points:"20 6 9 17 4 12"})}),Je={root:"_root_187rd_1",decorator:"_decorator_187rd_11",field:"_field_187rd_15",icon:"_icon_187rd_44",input:"_input_187rd_54","--error":"_--error_187rd_60","--disabled":"_--disabled_187rd_91"},di=e=>{var $;const{children:t,value:n,onChange:o,onFocus:s,onBlur:i,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,u=ai(),h=Ye(),m=(h==null?void 0:h.hasError)||e.hasError||(u==null?void 0:u.hasError),v=(h==null?void 0:h.disabled)||e.disabled||(u==null?void 0:u.disabled),b=u?($=u.value)==null?void 0:$.includes(n):e.checked,p=u?void 0:e.defaultChecked,y=u?u.name:e.name,w=c.useRef(null),x=S(Je.root,l,m&&Je["--error"],v&&Je["--disabled"]),C=z=>{if(!y)return;const{checked:I}=z.target,E={name:y,value:n,checked:I,event:z};o&&o(E),u!=null&&u.onChange&&u.onChange(E)};return ce(()=>{w.current.indeterminate=a||!1},[a,b]),r.jsxs("label",j(g({},d),{className:x,children:[r.jsxs("span",{className:Je.field,children:[r.jsx(Dn,{className:Je.input,type:"checkbox",checked:b,defaultChecked:p,name:y,disabled:v,value:n,onChange:C,onFocus:s,onBlur:i,attributes:j(g({},f),{ref:w})}),r.jsx("div",{className:Je.decorator,children:r.jsx(le,{svg:Go,className:Je.icon})})]}),t&&r.jsx("span",{className:Je.text,children:t})]}))},ui={root:"_root_1c40o_1"},_i=e=>{const{children:t,padding:n=4,width:o,className:s,attributes:i}=e,a=S(ui.root,s);return r.jsx(D,{attributes:i,className:a,paddingInline:n,width:o,maxWidth:"100%",children:t})},Tt={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},mi=e=>{const{children:t,align:n,onClose:o,hideCloseButton:s,variant:i,closeAriaLabel:a,className:l,attributes:d}=e,f=S(Tt.root,l,i&&Tt[`--variant-${i}`],n&&Tt[`--align-${n}`],s&&Tt["--hide-close"]),u=i==="media"?"div":Ce.Aligner;return r.jsxs("div",j(g({},d),{className:f,children:[t,!s&&r.jsx(u,{className:Tt.close,children:r.jsx(Ce,j(g({size:"small"},i==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:o,attributes:{"aria-label":o?a:void 0},icon:qo}))})]}))},fi={root:"_root_1g94s_1"},Xo=e=>{const{children:t}=e;return r.jsx("div",{className:fi.root,children:t})},rn=e=>{const[t,n]=c.useState(e||!1),o=c.useCallback(()=>{n(!0)},[]),s=c.useCallback(()=>{n(!1)},[]),i=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:o,deactivate:s,toggle:i}},It={root:"_root_1dzzo_1","--highlighted":"_--highlighted_1dzzo_2",triggerLayer:"_triggerLayer_1dzzo_2",trigger:"_trigger_1dzzo_2"},hi=e=>{const{children:t}=e;return r.jsx("span",{className:It.trigger,children:t})},Jo=e=>{const{name:t,children:n,className:o,attributes:s,inputAttributes:i,onChange:a}=e,l=rn(),d=S(It.root,l.active&&It["--highlighted"],o),f=b=>{var p;b.preventDefault(),(p=s==null?void 0:s.onDragOver)==null||p.call(s,b)},u=b=>{var p;l.activate(),(p=s==null?void 0:s.onDragEnter)==null||p.call(s,b)},h=b=>{var p;b.currentTarget.contains(b.relatedTarget)||(l.deactivate(),(p=s==null?void 0:s.onDragLeave)==null||p.call(s,b))},m=b=>{var p;b.preventDefault(),l.deactivate(),a==null||a({name:t,value:Array.from(b.dataTransfer.files),event:b}),(p=s==null?void 0:s.onDrop)==null||p.call(s,b)},v=b=>{var y;const p=b.target.files;p&&(a==null||a({name:t,event:b,value:Array.from(p)}),(y=i==null?void 0:i.onChange)==null||y.call(i,b))};return r.jsx("div",j(g({},s),{className:d,onDragOver:f,onDragEnter:u,onDragLeave:h,onDrop:m,children:r.jsxs(D,{as:"label",className:It.triggerLayer,padding:6,borderRadius:"medium",gap:2,align:"center",textAlign:"center",animated:!0,children:[r.jsx(D.Item,{children:n}),r.jsx(Xo,{children:r.jsx("input",j(g({},i),{type:"file",className:It.field,name:t,onChange:v}))})]})}))};Jo.Trigger=hi;const Qo={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},gi=e=>{const{children:t,active:n,className:o,attributes:s}=e,i=S(Qo.root,n&&Qo["--active"],o);return r.jsx(Q,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:s,children:t})},an={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},vi=e=>{const{src:t,alt:n,width:o,height:s,onLoad:i,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:u,attributes:h,imageAttributes:m}=e,[v,b]=c.useState("loading"),p=vn(f),y=bn(o),w=kt(s),x=S(an.root,p==null?void 0:p.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,d&&an[`--display-mode-${d}`],u),C=S(an.image,x),$=S(an.fallback,x),z=g(g({},y==null?void 0:y.variables),w==null?void 0:w.variables),I=P=>{b("success"),i==null||i(P)},E=P=>{b("error"),a==null||a(P)};return c.useEffect(()=>{b("loading")},[t]),(v==="error"||!t)&&l?typeof l=="string"?r.jsx("img",j(g({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:z})):r.jsx("div",j(g({},h),{className:$,style:z,children:l})):r.jsx("img",j(g(g({},h),m),{src:t,alt:n,role:n?void 0:"presentation",onLoad:I,onError:E,className:C,style:z}))},bi=(()=>{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}})(),Zo=()=>{const[e,t]=c.useState(!1),n=c.useRef(),o=c.useRef(!1),s=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=bi();document.body.style.paddingRight=`${d}px`}t(!0)},[t,o,n]),i=c.useCallback(()=>{document.body.style.overflow=n.current||"",o.current&&(document.body.style.paddingRight=""),t(!1)},[t,o,n]);return{scrollLocked:e,lockScroll:s,unlockScroll:i}},mt={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},es=e=>{const{active:t,children:n,transparent:o,onClose:s,className:i,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),u=c.useRef(!1),h=c.useRef(null),{lockScroll:m,unlockScroll:v}=Zo(),{active:b,activate:p,deactivate:y}=rn(t||!1),{active:w,activate:x,deactivate:C}=rn(t||!1),$=Co(t,f),z=S(mt.root,w&&mt["--visible"],o&&mt["--transparent"],i),I=V=>{if(!f.current)return;const A=f.current.firstChild;if(A)return A.contains(V)},E=()=>{f.current&&(h.current=Ut(f.current))},P=()=>{h.current&&(h.current(),h.current=null)},U=c.useCallback(()=>{!w||!$()||s&&s()},[w,$]),M=V=>{u.current=!I(V.target)},F=V=>{const A=!I(V.target);u.current&&A&&!o&&U()},q=V=>{V.propertyName!=="opacity"||V.target!==V.currentTarget||w||(o||v(),y())};return ot({Escape:U},[U]),c.useEffect(()=>{t&&!b&&p(),!t&&b&&C()},[t,p,C,b]),c.useEffect(()=>{b&&(o||m(),$t(()=>x()))},[b,x,m,o]),c.useEffect(()=>{if(b)return E(),()=>P()},[b]),c.useEffect(()=>()=>{o||v()},[v,o]),ce(()=>{d(!0)},[]),!b||!l?null:r.jsx(en,{children:r.jsx(en.Scope,{children:V=>r.jsx("div",j(g({},a),{ref:V,role:"button",tabIndex:-1,className:z,onMouseDown:M,onMouseUp:F,onTransitionEnd:q,children:r.jsx("div",{className:mt.wrapper,children:r.jsx("div",{className:mt.inner,children:r.jsx("div",{className:mt.content,ref:f,children:typeof n=="function"?n({active:w}):n})})})}))})})},Vn={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"},ts=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),ns=()=>c.useContext(ts),pi=e=>{const{children:t}=e,{id:n,setTitleMounted:o}=ns();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),r.jsx(Q,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},xi=e=>{const{children:t}=e,{id:n,setSubtitleMounted:o}=ns();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),r.jsx(Q,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},qn=e=>{const{children:t,onClose:n,active:o,size:s,padding:i=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,u=ze(),[h,m]=c.useState(!1),[v,b]=c.useState(!1),p=Fn(i),y=c.useMemo(()=>({titleMounted:h,setTitleMounted:m,subtitleMounted:v,setSubtitleMounted:b,id:u}),[u,v,h]);return r.jsx(es,{onClose:n,active:o,transparent:l,children:({active:w})=>{const x=S(Vn.root,d,p==null?void 0:p.classNames,w&&Vn["--active"],W(Vn,"--position",a));return r.jsx(ts.Provider,{value:y,children:r.jsx("div",j(g({},f),{style:g(g({},p==null?void 0:p.variables),te("--rs-modal-size",s)),"aria-labelledby":h?`${u}-title`:void 0,"aria-describedby":v?`${u}-subtitle`:void 0,className:x,"aria-modal":"true",role:"dialog",children:t}))})}})};qn.Title=pi,qn.Subtitle=xi;const Mt={root:"_root_1ux6v_1",value:"_value_1ux6v_9","--duration":"_--duration_1ux6v_23","--size-small":"_--size-small_1ux6v_27","--size-medium":"_--size-medium_1ux6v_31","--color-primary":"_--color-primary_1ux6v_35","--color-critical":"_--color-critical_1ux6v_39","--color-positive":"_--color-positive_1ux6v_43","--color-white":"_--color-white_1ux6v_47"},yi=e=>{const{value:t=0,min:n=0,max:o=100,color:s="primary",size:i="medium",duration:a,className:l,attributes:d}=e,f=S(Mt.root,l,s&&Mt[`--color-${s}`],i&&Mt[`--size-${i}`],!!a&&Mt["--duration"]),u=o-n,h=t-n,b=`${Math.max(n,Math.min(o,h))/u*100-100}%`;return r.jsx("div",j(g({role:"progressbar"},d),{className:f,"aria-valuemax":o,"aria-valuemin":n,"aria-valuenow":t,children:r.jsx("div",{className:Mt.value,style:{"--rs-progress-value":b,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},os=c.createContext(null),wi=()=>c.useContext(os),ss=e=>{const{onChange:t,name:n,disabled:o,value:s,children:i,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return r.jsx(os.Provider,{value:{onChange:l,disabled:o,value:s,name:n,hasError:a},children:i})},ji=e=>{const{defaultValue:t,onChange:n}=e,[o,s]=c.useState(t||null),i=a=>{a.value&&(s(a.value),n&&n(a))};return r.jsx(ss,j(g({},e),{value:o,defaultValue:void 0,onChange:i}))},Ci=e=>{const{value:t}=e;return t!==void 0?r.jsx(ss,g({},e)):r.jsx(ji,g({},e))},st={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"},ki=e=>{const{children:t,value:n,onChange:o,onFocus:s,onBlur:i,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),u=wi(),h=(f==null?void 0:f.hasError)||e.hasError||(u==null?void 0:u.hasError),m=(f==null?void 0:f.disabled)||e.disabled||(u==null?void 0:u.disabled),v=u?u.value===n:e.checked,b=u?void 0:e.defaultChecked,p=u?u.name:e.name,y=S(st.root,a,h&&st["--error"],m&&st["--disabled"]),w=x=>{if(!p)return;const{checked:C}=x.target,$={name:p,value:n,checked:C,event:x};o&&o($),u!=null&&u.onChange&&u.onChange($)};return r.jsxs("label",j(g({},l),{className:y,children:[r.jsxs("span",{className:st.field,children:[r.jsx(Dn,{className:st.input,type:"radio",checked:v,defaultChecked:b,name:p,disabled:m,value:n,onChange:w,onFocus:s,onBlur:i,attributes:d}),r.jsx("div",{className:st.decorator})]}),t&&r.jsx("span",{className:st.text,children:t})]}))},rs={short:4e3,long:8e3},St=["top-start","top","top-end","bottom-start","bottom","bottom-end"],is={queues:St.reduce((e,t)=>g({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},ln=c.createContext(is),Ni=()=>{const{add:e,hide:t}=c.useContext(ln);return c.useMemo(()=>({show:e,hide:t}),[e,t])},De={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},$i=e=>{const{size:t="small",text:n,children:o,color:s="inverted",icon:i,title:a,actionsSlot:l,startSlot:d,collapsed:f,className:u,attributes:h}=e;let m=s==="inverted"||s==="neutral"?"elevation-overlay":s;s==="neutral"&&(m=f?"neutral":"elevation-overlay");const v=s==="neutral"?"neutral-faded":"transparent",b=t==="small"?"span":"div",p=t==="large";let y=[];l&&(y=Array.isArray(l)?l:[l]);const w=(a||n)&&r.jsxs(r.Fragment,{children:[a&&r.jsxs(Q,{variant:"body-3",weight:"bold",as:b,children:[a," "]}),r.jsx(Q,{variant:"body-3",as:b,children:n})]}),x=r.jsxs(D,{backgroundColor:m,borderColor:v,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:p?"start":"center",className:[De.toast,u],attributes:h,children:[i&&r.jsx(le,{size:5,svg:i,className:De.icon}),d&&!i&&r.jsx(D.Item,{children:d}),r.jsx(D.Item,{grow:!0,children:r.jsxs(D,{direction:p?"column":"row",align:p?"start":"center",gap:3,children:[r.jsx(D.Item,{grow:!0,children:w&&o||t!=="small"?r.jsxs(D,{gap:.5,children:[w,o&&r.jsx(D,{gap:3,children:o})]}):w||o}),y.length&&r.jsx(D,{direction:"row",align:"center",gap:2,children:y.map((C,$)=>{const z=t==="large"?$===0:$===y.length-1,E={variant:z?"solid":"ghost",size:"small",color:z?s==="neutral"||s==="inverted"?"neutral":"white":"inherit",elevated:s!=="neutral"};return C.type===Ce?c.createElement(Ce,j(g(g({},E),C.props),{key:$})):C})})]})})]});return s==="inverted"?r.jsx(lt,{colorMode:"inverted",children:x}):x},zi=e=>{const{toastProps:t,id:n,status:o,inspected:s,index:i}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(ln),[u,h]=c.useState(),m=c.useRef(),v=c.useRef(!1),b=c.useRef(null),p=c.useRef(null),y=o==="entered",w=S(De.container,y&&De["container--visible"],i===0&&De[`container--index-${i}`],!s&&(i===1||i===2)&&De[`container--index-${i}`],!s&&i>=3&&De["container--index-overflow"]),x=c.useCallback(()=>{m.current&&clearTimeout(m.current)},[]),C=c.useCallback(()=>{x();const z=typeof a=="string"?rs[a]:a;a!==0&&(m.current=setTimeout(()=>{d(n)},z!=null?z:rs.short))},[d,n,a,x]),$=z=>{z.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(s?x():C())},[s,C,x,y]),c.useEffect(()=>{p.current&&h(p.current.clientHeight),l(n),C()},[l,n,C]),c.useEffect(()=>{p.current&&(y?b.current=Ut(p.current,{includeTrigger:!0,mode:"content-menu"}):b.current&&xo()&&(b.current(),b.current=null))},[y]),c.useEffect(()=>{if(!y||i>0)return;const z=()=>{v.current=!0,$t(()=>{v.current=!1}),p.current&&h(p.current.clientHeight)};return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[y,i]),r.jsx("li",{className:w,style:{height:o==="entered"?`calc(${u}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:v.current?"0s":void 0},onTransitionEnd:$,onFocus:x,onBlur:C,children:r.jsx("span",{className:De.wrapper,children:r.jsx($i,j(g({},t),{collapsed:i>0&&!s,attributes:{ref:p}}))})})},Ei=e=>{const{position:t}=e,{queues:n,options:o}=c.useContext(ln),[s,i]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:u}=(o==null?void 0:o[t])||{},h=S(De.region,De[`region--position-${t}`]),m=d.filter(x=>x.status==="entered").length;let v=0;const b=()=>{a.current=!0},p=x=>{let C=x.target,$=!1;for(;C&&C!==l.current&&!$;)$=C.matches(yo),C=C.parentElement;$||i(z=>!z),a.current=!1},y=()=>{a.current||i(!0)},w=()=>{a.current||i(!1)};return c.useEffect(()=>{d.length===0&&i(!1)},[d.length]),d.length?r.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:l,onTouchStart:b,onClick:p,onMouseEnter:y,onMouseLeave:w,style:{width:f},children:d.map((x,C)=>{const $=m-C+v-1;return x.status!=="entered"&&(v+=1),r.jsx(zi,j(g({},x),{index:$,inspected:s||!!u}),x.id)})}):null};let Ti=0;const Ii=()=>`__rs-toast-${Ti++}`,Mi=(e,t)=>{let n;switch(t.type){case"add":const o=t.payload.toastProps||{},{position:s="bottom-end"}=o,i=Fe(o,["position"]);return j(g({},e),{[s]:[...e[s],{id:t.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:a}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(u=>u.status!=="entering"?u:u.id===a?j(g({},u),{status:"entered"}):u)}),n;case"hide":const{id:l}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(u=>u.id===l?j(g({},u),{status:"exiting"}):u)}),n;case"remove":const{id:d}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].filter(u=>u.id!==d)}),n}},Si=e=>{const{children:t,options:n}=e,[o,s]=c.useReducer(Mi,is.queues),i=c.useCallback(u=>{const h=Ii();return s({type:"add",payload:{toastProps:u,id:h}}),h},[]),a=c.useCallback(u=>{s({type:"show",payload:{id:u}})},[]),l=c.useCallback(u=>{s({type:"hide",payload:{id:u}})},[]),d=c.useCallback(u=>{s({type:"remove",payload:{id:u}})},[]),f=c.useMemo(()=>({queues:o,add:i,show:a,hide:l,remove:d,inspecting:!1,options:n}),[o,a,l,i,d,n]);return r.jsxs(ln.Provider,{value:f,children:[t,St.map(u=>r.jsx(Ei,{position:u},u))]})},Pi=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(kn,"true")},t=()=>{document.documentElement.removeAttribute(kn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},Fi={root:"_root_18j53_1"},Li=e=>{const{children:t,defaultRTL:n,defaultViewport:o="s",toastOptions:s}=e,i=wr(n);return Pi(),r.jsx(Tn.Provider,{value:{rtl:i,defaultViewport:o},children:r.jsx(xr,{children:r.jsx(Si,{options:s,children:t})})})},Ai=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:o,className:s}=e,i=S(Fi.root,s);return r.jsx(Fr,{defaultMode:o,children:r.jsx(lt,{name:t,defaultName:n,className:i,children:r.jsx(Li,j(g({},e),{children:e.children}))})})},Pt={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},Di=e=>{const{children:t,backgroundSlot:n,position:o="cover",attributes:s,className:i,scrimClassName:a}=e,l=S(Pt.root,!!n&&Pt["--with-background"],o&&Pt[`--position-${o}`],i),d=S(Pt.scrim,a);return r.jsxs("div",j(g({},s),{className:l,children:[n,r.jsx("div",{className:d,children:r.jsx("div",{className:Pt.content,children:t})})]}))},Vi=()=>r.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ve={root:"_root_1jhw5_1",input:"_input_1jhw5_18",slot:"_slot_1jhw5_45",arrow:"_arrow_1jhw5_60","--size-medium":"_--size-medium_1jhw5_1","--size-large":"_--size-large_1jhw5_1","--size-xlarge":"_--size-xlarge_1jhw5_1","--variant-faded":"_--variant-faded_1jhw5_115","--variant-headless":"_--variant-headless_1jhw5_124","--status-error":"_--status-error_1jhw5_129","--placeholder":"_--placeholder_1jhw5_144","--disabled":"_--disabled_1jhw5_148","--size-medium--m":"_--size-medium--m_1jhw5_1","--size-large--m":"_--size-large--m_1jhw5_1","--size-xlarge--m":"_--size-xlarge--m_1jhw5_1","--size-medium--l":"_--size-medium--l_1jhw5_1","--size-large--l":"_--size-large--l_1jhw5_1","--size-xlarge--l":"_--size-xlarge--l_1jhw5_1","--size-medium--xl":"_--size-medium--xl_1jhw5_1","--size-large--xl":"_--size-large--xl_1jhw5_1","--size-xlarge--xl":"_--size-xlarge--xl_1jhw5_1"},qi=e=>{var q,V;const{onChange:t,onClick:n,onFocus:o,onBlur:s,name:i,value:a,defaultValue:l,placeholder:d,options:f,children:u,icon:h,startSlot:m,size:v="medium",variant:b="outline",className:p,attributes:y}=e,[w,x]=c.useState(a===void 0?!l:!a),C=Ye(),$=ze(e.id),z=((q=C==null?void 0:C.attributes)==null?void 0:q.id)||((V=e.inputAttributes)==null?void 0:V.id)||$,I=(C==null?void 0:C.disabled)||e.disabled,E=(C==null?void 0:C.hasError)||e.hasError,P=g(g({},e.inputAttributes),C==null?void 0:C.attributes),U=S(Ve.root,p,v&&W(Ve,"--size",v),E&&Ve["--status-error"],I&&Ve["--disabled"],w&&f&&Ve["--placeholder"],b&&Ve[`--variant-${b}`]),M=A=>{const Z=A.target.value;a===void 0&&x(!Z),t&&t({name:i,value:Z,event:A})};c.useEffect(()=>{a!==void 0&&x(!a)},[a]);const F=(m||h)&&r.jsx("div",{className:Ve.slot,children:h?r.jsx(le,{size:$e(v,A=>A==="large"?5:A==="xlarge"?6:4),svg:h}):m});return r.jsxs("div",j(g({},y),{className:U,children:[f?r.jsxs(r.Fragment,{children:[F,r.jsxs("select",j(g({},P),{className:Ve.input,disabled:I,name:i,value:a,defaultValue:l,onChange:M,onFocus:o||(P==null?void 0:P.onFocus),onBlur:s||(P==null?void 0:P.onBlur),id:z,children:[d&&r.jsx("option",{value:"",children:d}),f.map(A=>r.jsx("option",{value:A.value,disabled:A.disabled,children:A.label},A.value))]}))]}):r.jsxs(r.Fragment,{children:[r.jsxs(Le,{className:Ve.input,disabled:I,onClick:n,attributes:j(g({},P),{onFocus:o||(P==null?void 0:P.onFocus),onBlur:s||(P==null?void 0:P.onBlur)}),children:[F,u||(d?r.jsx(Q,{color:"neutral-faded",children:d}):null)]}),r.jsx("input",{type:"hidden",value:a,name:i})]}),r.jsx("div",{className:Ve.arrow,children:r.jsx(le,{svg:Vi,color:I?"disabled":"neutral-faded",size:$e(v,A=>A==="large"||A==="xlarge"?5:4)})})]}))},Oi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Bi=e=>{const{borderRadius:t="small",width:n,height:o,className:s,attributes:i}=e,a=S(Oi.root,s);return r.jsx(D,{backgroundColor:"disabled",width:n,height:o,borderRadius:t,className:a,attributes:i})},Qe={root:"_root_k9a0x_1",bar:"_bar_k9a0x_10",input:"_input_k9a0x_19",selection:"_selection_k9a0x_28",tooltip:"_tooltip_k9a0x_34",thumb:"_thumb_k9a0x_50","thumb--active":"_thumb--active_k9a0x_1","--disabled":"_--disabled_k9a0x_104"},Wi=(e,t)=>{const{name:n,value:o,disabled:s,active:i,position:a,max:l,min:d,onChange:f,onDragStart:u,renderValue:h}=e,m=c.useId(),v=S(Qe.thumb,i&&Qe["thumb--active"]),b=h?h({value:o}):o,p=y=>{f(+y.target.value)};return r.jsxs(r.Fragment,{children:[r.jsx("input",{className:Qe.input,type:"range",name:n,value:o,onChange:p,disabled:s,max:l,min:d,"aria-labelledby":m}),r.jsx("div",{ref:t,className:v,onMouseDown:u,onTouchStart:u,style:{insetInlineStart:`${a}%`},id:m,"aria-hidden":"true",children:r.jsx(lt,{className:Qe.tooltip,colorMode:"inverted",children:r.jsx(Q,{variant:"caption-1",weight:"medium",children:b})})})]})},as=c.forwardRef(Wi),ls=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,On=(e,t)=>Math.round(e/t)*t,Bn=e=>{var ke;const{name:t,range:n,max:o,min:s,step:i=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:u}=e,h=n&&e.minValue!==void 0?On(e.minValue,i):void 0,m=On(n?e.maxValue:e.value,i),v=c.useRef(null),b=c.useRef(null),p=c.useRef(null),[y,w]=c.useState(null),[x]=Ge(),C=Ye(),$=ze(),z=((ke=C==null?void 0:C.attributes)==null?void 0:ke.id)||$,I=`${z}-min`,E=`${z}-max`,P=(C==null?void 0:C.disabled)||e.disabled,U=S(Qe.root,P&&Qe["--disabled"],f),M=c.useCallback(oe=>{if(!v.current)return;const H=v.current.clientWidth;let G=(oe-v.current.getBoundingClientRect().left)/H;x&&(G=1-G);let ie=(o-s)*G+s;return ie=Math.max(s,Math.min(o,ie)),On(ie,i)},[o,s,x,i]),F=oe=>(oe-s)/(o-s)*100,q=c.useCallback((oe,H)=>{if(!n)return;const Y=H!=null&&H.commit?l:a;Y==null||Y({minValue:oe,maxValue:m,name:t})},[m,t,n]),V=c.useCallback((oe,H)=>{if(n){const G=H!=null&&H.commit?l:a;G==null||G({minValue:h,maxValue:oe,name:t});return}const Y=H!=null&&H.commit?l:a;Y==null||Y({value:oe,name:t})},[h,t,n]),A=({nativeEvent:oe})=>{if(P)return;let H,Y;const G=ls(oe),ie=M(G);[{ref:b,id:I},{ref:p,id:E}].forEach(X=>{if(!X.ref.current)return;const pe=X.ref.current,ge=Math.abs(pe.getBoundingClientRect().left-G);(H===void 0||ge<=H)&&(H=ge,Y=X.id)}),!(!Y||ie===void 0)&&(Y===I&&q(ie),Y===E&&V(ie),w(Y))},Z=()=>{P||w(I)},fe=()=>{P||w(E)},he=c.useCallback(()=>{y===I&&h!==void 0&&q(h,{commit:!0}),y===E&&V(m,{commit:!0}),w(null)},[h,m,q,V,y,I,E]),re=c.useCallback(oe=>{if(!y)return;const H=ls(oe),Y=M(H);if(Y===void 0)return;let G=y;y===I&&Y>m&&(G=E),y===E&&h&&Y<h&&(G=I),G===I&&q(Y),G===E&&V(Y),y!==G&&w(G)},[y,h,m,M,V,q,E,I]);c.useEffect(()=>(window.addEventListener("mouseup",he),window.addEventListener("touchend",he),window.addEventListener("mousemove",re),window.addEventListener("touchmove",re),()=>{window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),window.removeEventListener("mousemove",re),window.removeEventListener("touchmove",re)}),[he,re]);const ee=h&&F(h),He=F(m);return r.jsxs("div",j(g({},u),{className:U,onMouseDown:A,onTouchStart:A,children:[r.jsx("div",{className:Qe.bar,ref:v,children:r.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${ee||0}%`,width:`${He-(ee||0)}%`}})}),h!==void 0&&ee!==void 0&&r.jsx(as,{id:I,active:I===y,name:t,disabled:P,onChange:q,value:h,onDragStart:Z,position:ee,max:o,min:s,ref:b,renderValue:d}),r.jsx(as,{id:E,active:E===y,name:t,disabled:P,onChange:V,value:m,onDragStart:fe,position:He,max:o,min:s,ref:p,renderValue:d})]}))},Hi=e=>{const{min:t,max:n,onChange:o,range:s}=e,i="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,a="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(s?n:t),[l,d]=c.useState(i),[f,u]=c.useState(a),h=v=>{s||(u(v.value),o==null||o(v))},m=v=>{s&&(d(v.minValue),u(v.maxValue),o==null||o(v))};return s?r.jsx(Bn,j(g({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:m})):r.jsx(Bn,j(g({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Ri=e=>{const s=e,{min:t=0,max:n=100}=s,o=Fe(s,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?r.jsx(Bn,j(g({},o),{min:t,max:n})):r.jsx(Hi,j(g({},o),{min:t,max:n}))},Ui={verticalDivider:"_verticalDivider_oa23g_1"},Ki=e=>{const{title:t,subtitle:n,children:o,direction:s,className:i,attributes:a,labelDisplay:l,step:d,completed:f,active:u,last:h}=e,m=l&&$e(l,b=>b==="hidden"),v=r.jsx(D,{gap:3,grow:!0,children:r.jsxs(D.Item,{children:[r.jsx(Q,{variant:"body-3",weight:"medium",children:t}),r.jsx(Q,{variant:"caption-1",color:"neutral-faded",children:n})]})});return r.jsxs(D,{children:[r.jsxs(D,{attributes:a,className:i,direction:"row",gap:2,align:"center",position:"static",children:[r.jsxs(D.Item,{children:[r.jsx(D,{align:"center",justify:"center",backgroundColor:u||f?"primary":"neutral-faded",borderColor:u||f?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:r.jsx(Q,{variant:"body-3",weight:u?"bold":"medium",children:f?r.jsx(le,{svg:Go,size:4}):d})}),s==="column"&&!h&&r.jsx(At,{vertical:!0,className:Ui.verticalDivider})]}),l?r.jsx(Vt,{hide:m,children:v}):v]}),s==="column"&&o&&r.jsx(co,{active:u,children:r.jsx(D,{paddingStart:10,paddingTop:2,children:o})})]})},Yi=e=>null,cs=e=>{const{children:t,direction:n="row",activeId:o,labelDisplay:s,className:i,attributes:a}=e,l=n==="column",d=c.Children.count(t);return r.jsx(D,{attributes:a,direction:n,align:l?"stretch":"center",className:i,gap:3,wrap:!1,children:c.Children.map(t,(f,u)=>{const h=f.props.id||`${u}`;return r.jsxs(c.Fragment,{children:[r.jsx(Ki,j(g({},f.props),{id:f.props.id||`${u}`,active:(o==null?void 0:o.toString())===h,step:u+1,last:u===d-1,direction:n,labelDisplay:s})),!l&&u<d-1&&r.jsx(D,{grow:!0,children:r.jsx(At,{})})]},u)})})};cs.Item=Yi;const ft={root:"_root_1zzd0_1",input:"_input_1zzd0_10",area:"_area_1zzd0_22",thumb:"_thumb_1zzd0_26","root--size-small":"_root--size-small_1zzd0_82","root--reversed":"_root--reversed_1zzd0_102"},Gi=e=>{var x;const{children:t,name:n,checked:o,size:s,reversed:i,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:u,attributes:h}=e,m=S(ft.root,s&&ft[`root--size-${s}`],i&&ft["root--reversed"],u),v=Ye(),b=ze((v==null?void 0:v.attributes.id)||e.id||((x=e.inputAttributes)==null?void 0:x.id)),p=g(g({},e.inputAttributes),v==null?void 0:v.attributes),y=(v==null?void 0:v.disabled)||e.disabled,w=C=>{l&&l({name:n,event:C,checked:C.target.checked})};return r.jsxs("label",j(g({},h),{className:m,children:[r.jsx("input",j(g({type:"checkbox"},p),{className:ft.input,name:n,checked:o,defaultChecked:a,disabled:y,onChange:w,onFocus:d||(p==null?void 0:p.onFocus),onBlur:f||(p==null?void 0:p.onBlur),id:b})),r.jsx("span",{className:ft.area,"aria-hidden":"true",children:r.jsx("span",{className:ft.thumb})}),t&&r.jsx(Q,{variant:"body-3",weight:"medium",children:t})]}))},Xi={literal:"_literal_tfgjf_1",unit:"_unit_tfgjf_5","literal--m":"_literal--m_tfgjf_1","unit--m":"_unit--m_tfgjf_1","literal--l":"_literal--l_tfgjf_1","unit--l":"_unit--l_tfgjf_1","literal--xl":"_literal--xl_tfgjf_1","unit--xl":"_unit--xl_tfgjf_1"},Ji=e=>{if(!e)return null;const t=te("--rs-min-w",e);return{classNames:W(Xi,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ze={root:"_root_1we4q_1",table:"_table_1we4q_14",row:"_row_1we4q_21",cell:"_cell_1we4q_25","cell--align-start":"_cell--align-start_1we4q_1","cell--align-center":"_cell--align-center_1we4q_1","cell--align-end":"_cell--align-end_1we4q_1","--row-highlighted":"_--row-highlighted_1we4q_49","--border-outer":"_--border-outer_1we4q_53","--border-column":"_--border-column_1we4q_57"},ds=e=>{const{minWidth:t,rowSpan:n,colSpan:o,align:s,tagName:i,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:u}=e,h=e.width==="auto"?"0px":e.width,m=bn(h),v=Ji(t||h),b=S(Ze.cell,m==null?void 0:m.classNames,v==null?void 0:v.classNames,s&&Ze[`cell--align-${s}`]),p=g(g(g(g({},m==null?void 0:m.variables),v==null?void 0:v.variables),te("--rs-table-p-vertical",d!=null?d:a)),te("--rs-table-p-horizontal",l!=null?l:a));return r.jsx(i,j(g({},u),{className:b,rowSpan:n,colSpan:o,style:p,children:f}))},Qi=e=>r.jsx(ds,j(g({},e),{tagName:"td"})),Zi=e=>r.jsx(ds,j(g({},e),{tagName:"th"})),ea=e=>{const{highlighted:t,children:n,attributes:o}=e,s=S(Ze.row,t&&Ze["--row-highlighted"]);return r.jsx("tr",j(g({},o),{className:s,children:n}))},Wn=e=>r.jsx("tbody",{children:e.children}),us=e=>r.jsx("thead",{children:e.children}),ht=e=>{const{children:t,border:n,columnBorder:o,className:s,attributes:i}=e,a=S(Ze.root,s,n&&Ze["--border-outer"],o&&Ze["--border-column"]),[l]=c.Children.toArray(t);return r.jsx("div",j(g({},i),{className:a,children:r.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===Wn||l.type===us)?t:r.jsx(Wn,{children:t})})}))};ht.Cell=Qi,ht.Heading=Zi,ht.Row=ea,ht.Body=Wn,ht.Head=us;const _s=c.createContext({}),ta=_s.Provider,Hn=e=>{const o=c.useContext(_s),{id:t}=o,n=Fe(o,["id"]);return j(g({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},ms=e=>{const{children:t,value:n,onChange:o,onSilentChange:s,itemWidth:i,variant:a,name:l,direction:d="row",size:f="medium"}=e,u=ze(),h=c.useRef(null),m=c.useRef(h.current),v=c.useRef(null),[b,p]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=w=>{w!==void 0&&s&&s({value:w,name:l})};return r.jsx(ta,{value:{value:n,name:l,size:f,direction:d,itemWidth:i,variant:a,onChange:o,id:u,setDefaultValue:y,elActiveRef:h,elPrevActiveRef:m,elScrollableRef:v,selection:b,setSelection:p},children:t})},na=e=>{const{defaultValue:t,onChange:n}=e,[o,s]=c.useState(t),i=({value:l})=>{s(l),n&&n({value:l})},a=({value:l})=>{s(l)};return r.jsx(ms,j(g({},e),{onChange:i,onSilentChange:a,value:o,defaultValue:void 0}))},ne={root:"_root_mz4y6_1",list:"_list_mz4y6_12",inner:"_inner_mz4y6_16",listItem:"_listItem_mz4y6_23",button:"_button_mz4y6_30",buttonContent:"_buttonContent_mz4y6_46",icon:"_icon_mz4y6_59",radio:"_radio_mz4y6_64","--item-active":"_--item-active_mz4y6_72",selector:"_selector_mz4y6_77","--selector-hidden":"_--selector-hidden_mz4y6_95","--selector-animated":"_--selector-animated_mz4y6_99",next:"_next_mz4y6_104",prev:"_prev_mz4y6_105",panel:"_panel_mz4y6_125","--panel-hidden":"_--panel-hidden_mz4y6_133","--direction-row":"_--direction-row_mz4y6_137","--direction-column":"_--direction-column_mz4y6_205",item:"_item_mz4y6_223","--variant-borderless":"_--variant-borderless_mz4y6_258","--variant-pills":"_--variant-pills_mz4y6_259","--variant-pills-elevated":"_--variant-pills-elevated_mz4y6_260","--size-medium":"_--size-medium_mz4y6_331","--size-large":"_--size-large_mz4y6_336","--item-width-equal":"_--item-width-equal_mz4y6_341","--cut-off-start":"_--cut-off-start_mz4y6_360","--cut-off-end":"_--cut-off-end_mz4y6_361","--cut-off-both":"_--cut-off-both_mz4y6_382"},oa=(e,t)=>{const{value:n,children:o,icon:s,href:i,attributes:a}=e,{onChange:l,panelId:d,name:f,size:u,value:h,selection:m,elActiveRef:v,elPrevActiveRef:b,elScrollableRef:p}=Hn(n),y=c.useRef(null),w=h===n,x=w&&m.status==="idle",C=S(ne.item,x&&ne["--item-active"]),$=!!f,z={role:"tab",tabIndex:w?0:-1,"aria-selected":w},I=c.useCallback(()=>{if(!("current"in y))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");b.current=v.current,v.current=y.current},[v,b]),E=()=>{var A,Z,fe;if(i&&!l)return;const P=p.current,U=(A=y.current)==null?void 0:A.parentElement,M=(Z=v.current)==null?void 0:Z.parentElement;if(I(),l&&l({value:n,name:f}),!P||!U||!M||P.scrollWidth===P.clientWidth)return;const F=U.offsetLeft<M.offsetLeft,q=(U.offsetLeft-P.scrollLeft)/P.clientWidth;(F?q<.3:q>.5)&&((fe=y.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{w&&I()},[w,I]),r.jsx("div",j(g({},a),{className:C,ref:y,role:"presentation",children:r.jsxs(Le,{ref:t,href:i,insetFocus:!0,onClick:f?void 0:E,className:ne.button,as:f?"label":void 0,attributes:j(g({},!$&&z),{"aria-controls":d}),children:[f&&r.jsx(Dn,{type:"radio",name:f,value:n,checked:x,onChange:E,className:ne.radio}),r.jsxs("span",{className:ne.buttonContent,children:[s&&r.jsx(le,{svg:s,className:ne.icon,size:4}),o&&r.jsx(Q,{variant:u==="large"?"body-2":"body-3",children:o})]})]})}))},fs=c.forwardRef(oa),hs=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:hs(e.parentElement,t),sa=e=>{const{children:t,className:n,attributes:o}=e,{value:s,setDefaultValue:i,itemWidth:a,variant:l,name:d,direction:f,size:u,selection:h,setSelection:m,elActiveRef:v,elPrevActiveRef:b,elScrollableRef:p}=Hn(),[y]=Ge(),[w,x]=c.useState(null),C=S(ne.root,u&&ne[`--size-${u}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],w&&ne[`--cut-off-${w}`],n),$=S(ne.selector,h.status==="idle"&&ne["--selector-hidden"],h.status==="animated"&&ne["--selector-animated"]),z=()=>{p.current.scrollBy({left:Math.ceil(p.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},I=()=>{p.current.scrollBy({left:Math.ceil(p.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},E=()=>{m(M=>j(g({},M),{status:"idle"}))},P=c.useCallback(M=>{if(!p.current)return null;const F=hs(M,p.current);return F?{scaleX:F.clientWidth,scaleY:F.clientHeight,top:F.offsetTop,left:F.offsetLeft}:null},[p]),{ref:U}=ot({"ArrowLeft, ArrowUp":M=>{d||(M.preventDefault(),dr(p.current))},"ArrowRight, ArrowDown":M=>{d||(M.preventDefault(),cr(p.current))},Home:M=>{d||(M.preventDefault(),ur(p.current))},End:M=>{d||(M.preventDefault(),_r(p.current))}});return ce(()=>{if(s)return;const M=c.Children.toArray(t)[0];!M||M.type!==fs||i(M.props.value)},[s]),ce(()=>{if(!b.current||b.current===v.current)return;const M=P(b.current);M&&m(j(g({},M),{status:"prepared"}))},[s,P]),ce(()=>{if(h.status!=="prepared"||!v.current)return;const M=P(v.current);M&&m(j(g({},M),{status:"animated"}))},[h]),ce(()=>{const M=p.current;if(!M||f==="column")return;const F=()=>{M.clientWidth<M.scrollWidth||x(null);const A=M.scrollLeft*(y?-1:1),Z=A>1,fe=A+M.clientWidth<M.scrollWidth-1;if(fe&&Z)return x("both");if(Z)return x("start");if(fe)return x("end")},q=Ms(F,100);return requestAnimationFrame(()=>{F()}),window.addEventListener("resize",q),M.addEventListener("scroll",q),()=>{window.removeEventListener("resize",q),M.removeEventListener("scroll",q)}},[y]),r.jsxs("div",j(g({},o),{className:C,children:[r.jsx("div",{className:ne.inner,ref:p,children:r.jsxs("div",{className:ne.list,role:"tablist",ref:U,children:[c.Children.map(t,(M,F)=>M?r.jsx("div",{className:ne.listItem,children:M},M.props.value||M.key||F):null),r.jsx("div",{onTransitionEnd:E,className:$,style:{"--rs-tab-selection-x":h.left,"--rs-tab-selection-y":h.top,"--rs-tab-selection-scale-x":h.scaleX,"--rs-tab-selection-scale-y":h.scaleY}})]})}),(w==="start"||w==="both")&&r.jsx("span",{className:ne.prev,children:r.jsx(Ce,{onClick:I,size:"small",icon:Ro,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(w==="end"||w==="both")&&r.jsx("span",{className:ne.next,children:r.jsx(Ce,{onClick:z,size:"small",icon:tn,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},ra=e=>{const{value:t,children:n}=e,{value:o,panelId:s,buttonId:i}=Hn(t),a=t===o,l=S(ne.panel,!a&&ne["--panel-hidden"]);return r.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:s,"aria-labelledby":i,children:a&&n})},cn=e=>{const{value:t}=e;return t!==void 0?r.jsx(ms,g({},e)):r.jsx(na,g({},e))};cn.Item=fs,cn.List=sa,cn.Panel=ra;const gt={root:"_root_13usd_1",input:"_input_13usd_5","--size-medium":"_--size-medium_13usd_1","--size-large":"_--size-large_13usd_1","--size-xlarge":"_--size-xlarge_13usd_1","--variant-faded":"_--variant-faded_13usd_69","--variant-headless":"_--variant-headless_13usd_80","--status-error":"_--status-error_13usd_87","--size-medium--m":"_--size-medium--m_13usd_1","--size-large--m":"_--size-large--m_13usd_1","--size-xlarge--m":"_--size-xlarge--m_13usd_1","--size-medium--l":"_--size-medium--l_13usd_1","--size-large--l":"_--size-large--l_13usd_1","--size-xlarge--l":"_--size-xlarge--l_13usd_1","--size-medium--xl":"_--size-medium--xl_13usd_1","--size-large--xl":"_--size-large--xl_13usd_1","--size-xlarge--xl":"_--size-xlarge--xl_13usd_1"},gs=e=>{var $,z;const{onChange:t,onFocus:n,onBlur:o,name:s,value:i,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:u,attributes:h}=e,m=Ye(),v=ze(e.id),b=(($=m==null?void 0:m.attributes)==null?void 0:$.id)||((z=e.inputAttributes)==null?void 0:z.id)||v,p=(m==null?void 0:m.disabled)||e.disabled,y=(m==null?void 0:m.hasError)||e.hasError,w=g(g({},e.inputAttributes),m==null?void 0:m.attributes),x=S(gt.root,d&&W(gt,"--size",d),y&&gt["--status-error"],p&&gt["--disabled"],f&&gt[`--variant-${f}`],u),C=I=>{t&&t({name:s,value:I.target.value,event:I})};return r.jsx("div",j(g({},h),{"data-rs-aligner-target":!0,className:x,children:r.jsx("textarea",j(g({rows:3},w),{className:gt.input,disabled:p,name:s,placeholder:l,value:i,defaultValue:a,onChange:C,onFocus:n||(w==null?void 0:w.onFocus),onBlur:o||(w==null?void 0:w.onBlur),id:b}))}))};gs.Aligner=Ot;const Rn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Un=e=>{const{children:t,markerSlot:n,className:o,attributes:s}=e,i=n!==null,a=S(Rn.item,!i&&Rn["item--full-width"],o);return r.jsxs(D,{as:"li",direction:"row",align:"stretch",gap:3,attributes:s,className:a,children:[i&&r.jsx("span",{className:Rn.marker,children:n}),r.jsx(D.Item,{grow:!0,children:t})]})},vs=e=>{const{children:t,className:n,attributes:o}=e,s=S(n);return r.jsx("ul",j(g({},o),{className:s,children:c.Children.map(t,(i,a)=>(i==null?void 0:i.type)===Un?i:r.jsx(Un,{children:i},a))}))};vs.Item=Un;const ia={root:"_root_9090g_1"},aa=e=>{const{id:t,text:n,children:o,onOpen:s,onClose:i,position:a="bottom",active:l}=e;return r.jsxs(Xe,{id:t,active:l,position:a,onOpen:s,onClose:i,triggerType:"hover",children:[r.jsx(Xe.Trigger,{children:o}),r.jsx(Xe.Content,{children:r.jsx(lt,{colorMode:"inverted",children:r.jsx(Q,{variant:"caption-1",className:ia.root,children:n})})})]})},vt={m:660,l:900,xl:1280},bs={s:`(max-width: ${vt.m-1}px)`,m:`(min-width: ${vt.m}px) and (max-width: ${vt.l-1}px)`,l:`(min-width: ${vt.l}px) and (max-width: ${vt.xl-1}px)`,xl:`(min-width: ${vt.xl}px)`},la=e=>{const{defaultViewport:t}=c.useContext(Tn),[n,o]=c.useState(t);return ce(()=>{const i=Object.keys(bs).map(a=>{const l=window.matchMedia(bs[a]);return{mq:l,handler:()=>l.matches&&o(a)}});return i.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{i.forEach(({handler:a,mq:l})=>{l.removeEventListener("change",a)})}},[]),n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},ca=e=>{const{w:t="auto",h:n=50,children:o}=e;return r.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=yn,N.ActionBar=Zs,N.Actionable=Le,N.Alert=tr,N.Autocomplete=Vo,N.Avatar=Yr,N.Badge=Oo,N.Breadcrumbs=Ho,N.Button=Ce,N.Card=si,N.Carousel=ri,N.Checkbox=di,N.CheckboxGroup=ci,N.Container=_i,N.Dismissible=mi,N.Divider=At,N.DropdownMenu=ye,N.FileUpload=Jo,N.FormControl=qt,N.Hidden=Vt,N.HiddenVisually=Xo,N.Hotkey=gi,N.Icon=le,N.Image=vi,N.Link=Wo,N.Loader=Bo,N.MenuItem=Ln,N.Modal=qn,N.Overlay=es,N.Placeholder=ca,N.Popover=dt,N.Progress=yi,N.Radio=ki,N.RadioGroup=Ci,N.Reshaped=Ai,N.Scrim=Di,N.Select=qi,N.Skeleton=Bi,N.Slider=Ri,N.Stepper=cs,N.Switch=Gi,N.Table=ht,N.Tabs=cn,N.Text=Q,N.TextArea=gs,N.TextField=Cn,N.Theme=lt,N.Timeline=vs,N.Tooltip=aa,N.View=D,N.classNames=S,N.responsiveClassNames=W,N.responsivePropDependency=$e,N.useFormControl=Ye,N.useHotkeys=ot,N.useIsomorphicLayoutEffect=ce,N.useRTL=Ge,N.useResponsiveClientValue=la,N.useScrollLock=Zo,N.useTheme=Fo,N.useToast=Ni,N.useToggle=rn,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
@@ -7,7 +7,7 @@ import Theme from "../Theme/index.js";
7
7
  import Text from "../Text/index.js";
8
8
  import s from "./Toast.module.css";
9
9
  const Toast = (props) => {
10
- const { size = "small", text, children, color = "inverted", icon, title, actionsSlot, startSlot, collapsed, attributes, } = props;
10
+ const { size = "small", text, children, color = "inverted", icon, title, actionsSlot, startSlot, collapsed, className, attributes, } = props;
11
11
  let backgroundColor = color === "inverted" || color === "neutral" ? "elevation-overlay" : color;
12
12
  if (color === "neutral")
13
13
  backgroundColor = collapsed ? "neutral" : "elevation-overlay";
@@ -23,7 +23,7 @@ const Toast = (props) => {
23
23
  title,
24
24
  " ")),
25
25
  React.createElement(Text, { variant: "body-3", as: textTagName }, text)));
26
- const toastNode = (React.createElement(View, { backgroundColor: backgroundColor, borderColor: borderColor, padding: 4, borderRadius: "medium", animated: true, direction: "row", gap: 3, align: isLarge ? "start" : "center", className: s.toast, attributes: attributes },
26
+ const toastNode = (React.createElement(View, { backgroundColor: backgroundColor, borderColor: borderColor, padding: 4, borderRadius: "medium", animated: true, direction: "row", gap: 3, align: isLarge ? "start" : "center", className: [s.toast, className], attributes: attributes },
27
27
  icon && React.createElement(Icon, { size: 5, svg: icon, className: s.icon }),
28
28
  startSlot && !icon && React.createElement(View.Item, null, startSlot),
29
29
  React.createElement(View.Item, { grow: true },
@@ -14,6 +14,7 @@ export type Props = {
14
14
  children?: React.ReactNode;
15
15
  actionsSlot?: React.ReactNode;
16
16
  color?: "neutral" | "primary" | "critical" | "positive" | "inverted";
17
+ className?: G.ClassName;
17
18
  attributes?: G.Attributes<"div", Props>;
18
19
  };
19
20
  export type ProviderProps = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reshaped",
3
3
  "description": "Professionally crafted design system in React & Figma for building products of any scale and complexity",
4
- "version": "2.6.1",
4
+ "version": "2.6.2",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "email": "hello@reshaped.so",
7
7
  "homepage": "https://reshaped.so",
@@ -34,6 +34,18 @@ const getOnColor = (args) => {
34
34
  g: (1 - bgColor.a) * baseColor.g + bgColor.a * bgColor.g,
35
35
  b: (1 - bgColor.a) * baseColor.b + bgColor.a * bgColor.b,
36
36
  };
37
- return r * 0.299 + g * 0.587 + b * 0.114 > 186 ? darkHexColor : lightHexColor;
37
+ const lrgb = [];
38
+ [r, g, b].forEach(function (c) {
39
+ c = c / 255;
40
+ if (c <= 0.03928) {
41
+ c = c / 12.92;
42
+ }
43
+ else {
44
+ c = Math.pow((c + 0.055) / 1.055, 2.4);
45
+ }
46
+ lrgb.push(c);
47
+ });
48
+ const lum = 0.2126 * lrgb[0] + 0.7152 * lrgb[1] + 0.0722 * lrgb[2];
49
+ return lum > 0.179 ? darkHexColor : lightHexColor;
38
50
  };
39
51
  exports.getOnColor = getOnColor;