reshaped 2.4.7 → 2.4.8
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 +3 -1
- package/bundle.js +1 -1
- package/components/Button/Button.types.d.ts +6 -6
- package/components/Button/ButtonAligner.d.ts +2 -4
- package/components/Button/ButtonAligner.js +1 -1
- package/components/Button/tests/Button.stories.js +5 -5
- package/components/MenuItem/MenuItemAligner.d.ts +1 -1
- package/components/MenuItem/MenuItemAligner.js +1 -1
- package/components/TextArea/TextArea.d.ts +1 -2
- package/components/TextArea/TextArea.js +1 -1
- package/components/TextField/TextField.d.ts +1 -2
- package/components/TextField/TextField.js +1 -1
- package/components/Theme/GlobalColorMode.js +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -9,4 +9,6 @@
|
|
9
9
|
- Accordion: removed overflow hidden once accordion is expanded
|
10
10
|
- Text field: native autocomplete position
|
11
11
|
- Dropdown menu: Nested menu open on enter and space
|
12
|
-
-
|
12
|
+
- Text field, Text area: Added aligner utility
|
13
|
+
- MenuItem: Added side support for the aligner
|
14
|
+
- Button: Renamed aligned position to side, deprecated position
|
package/bundle.js
CHANGED
@@ -24,4 +24,4 @@ Check the render method of \``+u+"`."}return""}}function oa(u){{if(u!==void 0){v
|
|
24
24
|
|
25
25
|
Check your code at `+k+":"+I+"."}return""}}var _o={};function sa(u){{var k=uo();if(!k){var I=typeof u=="string"?u:u.displayName||u.name;I&&(k=`
|
26
26
|
|
27
|
-
Check the top-level render call using <`+I+">.")}return k}}function mo(u,k){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var I=sa(k);if(_o[I])return;_o[I]=!0;var F="";u&&u._owner&&u._owner!==Un.current&&(F=" It was passed a child from "+V(u._owner.type)+"."),pt(u),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,F),pt(null)}}function fo(u,k){{if(typeof u!="object")return;if(Ft(u))for(var I=0;I<u.length;I++){var F=u[I];Yn(F)&&mo(F,k)}else if(Yn(u))u._store&&(u._store.validated=!0);else if(u){var R=y(u);if(typeof R=="function"&&R!==u.entries)for(var J=R.call(u),B;!(B=J.next()).done;)Yn(B.value)&&mo(B.value,k)}}}function ia(u){{var k=u.type;if(k==null||typeof k=="string")return;var I;if(typeof k=="function")I=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===d||k.$$typeof===h))I=k.propTypes;else return;if(I){var F=V(k);sn(I,u.props,"prop",F,u)}else if(k.PropTypes!==void 0&&!Kn){Kn=!0;var R=V(k);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function aa(u){{for(var k=Object.keys(u.props),I=0;I<k.length;I++){var F=k[I];if(F!=="children"&&F!=="key"){pt(u),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),pt(null);break}}u.ref!==null&&(pt(u),b("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}function ho(u,k,I,F,R,J){{var B=P(u);if(!B){var D="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var be=oa(R);be?D+=be:D+=uo();var re;u===null?re="null":Ft(u)?re="array":u!==void 0&&u.$$typeof===t?(re="<"+(V(u.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):re=typeof u,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",re,D)}var ae=ra(u,k,I,R,J);if(ae==null)return ae;if(B){var Ne=k.children;if(Ne!==void 0)if(F)if(Ft(Ne)){for(var xt=0;xt<Ne.length;xt++)fo(Ne[xt],u);Object.freeze&&Object.freeze(Ne)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fo(Ne,u)}return u===r?aa(ae):ia(ae),ae}}function la(u,k,I){return ho(u,k,I,!0)}function ca(u,k,I){return ho(u,k,I,!1)}var da=ca,ua=la;yt.Fragment=r,yt.jsx=da,yt.jsxs=ua}()),yt}process.env.NODE_ENV==="production"?xe.exports=xo():xe.exports=wo();var s=xe.exports;const Jn=(e,t=20)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}};function yo(e,t){const n=Jn(e,t);return r=>("persist"in r&&r.persist(),n(r))}const jo=(e,t)=>{let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...r)},t)},t))}},M=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const r=M(...n);return r?`${t} ${r}`:t}return n?`${t} ${n}`:t},""),Qn=(e,t,n)=>{const{base:r,excludeValueFromClassName:o}=n||{},i=typeof e=="string"?e:e(t);return t===!0&&r||o?i:t===!0&&!r?`${i}-true`:t===!1&&!r?`${i}-false`:t!==void 0?`${i}-${t}`:null},W=(e,t,n,r)=>{if(typeof n!="object"){const o=Qn(t,n,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return o?[e[o]]:[]}return Object.keys(n).reduce((o,i)=>{const a=i==="s",l=Qn(t,n[i],{base:a,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=a?"":`--${i}`;return[...o,e[`${l}${d}`]]},[])},ee=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,r)=>{const o=t[r];return o===void 0||o===!1?n:C(g({},n),{[`${e}-${r}`]:o})},{}),Co=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Le=(e,t)=>Co(e)?Object.keys(e).reduce((r,o)=>{const i=e[o];return i==null?r:C(g({},r),{[o]:t(i,o)})},{}):t(e,"s"),$e=e=>{const t=c.useId();return e||t},cn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Zn=e=>{const{children:t,onToggle:n,active:r,iconPosition:o,iconSize:i,className:a,attributes:l}=e,d=M(a),f=$e(),m=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:r,onToggle:n,iconPosition:o,iconSize:i}),[r]);return s.jsx("div",C(g({},l),{className:d,children:s.jsx(cn.Provider,{value:m,children:t})}))},ko=e=>{const l=e,{defaultActive:t,onToggle:n}=l,r=Fe(l,["defaultActive","onToggle"]),[o,i]=c.useState(t||!1),a=d=>{i(d),n==null||n(d)};return s.jsx(Zn,C(g({},r),{onToggle:a,active:o}))},jt={root:"_root_1ao0i_1","--disabled":"_--disabled_1ao0i_28","--full-width":"_--full-width_1ao0i_37","--inset":"_--inset_1ao0i_45","--radius-inherit":"_--radius-inherit_1ao0i_49"},No=(e,t)=>{const{children:n,href:r,onClick:o,type:i,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:m,className:h,attributes:_}=e,v=M(jt.root,h,a&&jt["--disabled"],d&&jt[`--radius-${d}`],l&&jt["--inset"],m&&jt["--full-width"]),p=g({},_),x=c.useRef(!1),y=o||(_==null?void 0:_.onClick),w=(_==null?void 0:_.onFocus)||(_==null?void 0:_.onBlur),b=!!(r||_!=null&&_.href),j=!!(y||w||i);let $;if(b)p.href=a?void 0:r||(_==null?void 0:_.href),$="a";else if(j&&(!f||f==="button"))$="button",p.type=i||(_==null?void 0:_.type)||"button",p.disabled=a||(_==null?void 0:_.disabled);else if(j){const S=!(f==="label")||y||w;$=f||"span",p.role=S?"button":void 0,p.tabIndex=S?0:void 0}else $=f||"span";const E=z=>{var S;a||x.current||(o==null||o(z),(S=_==null?void 0:_.onClick)==null||S.call(_,z))},T=z=>{if(p.role==="button"||b)return;const O=z.key===" ",P=z.key==="Enter";!O&&!P||(z.preventDefault(),E(z),x.current=!0,requestAnimationFrame(()=>{x.current=!1}))};return s.jsx($,C(g({ref:t},p),{className:v,onClick:E,onKeyDown:T,children:n}))},Ve=c.forwardRef(No),dn={root:"_root_m2bn1_1","--blank":"_--blank_m2bn1_8","--vertical":"_--vertical_m2bn1_15","--vertical-true--m":"_--vertical-true--m_m2bn1_1","--vertical-false--m":"_--vertical-false--m_m2bn1_1","--vertical-true--l":"_--vertical-true--l_m2bn1_1","--vertical-false--l":"_--vertical-false--l_m2bn1_1","--vertical-true--xl":"_--vertical-true--xl_m2bn1_1","--vertical-false--xl":"_--vertical-false--xl_m2bn1_1"},er=e=>{const{vertical:t,blank:n,className:r,attributes:o}=e,i=M(dn.root,r,n&&dn["--blank"],...W(dn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),s.jsx("div",C(g({},o),{role:"separator","aria-orientation":a,className:i}))},Lt={root:"_root_1sx8x_6","--display-inline":"_--display-inline_1sx8x_12","--display-flex":"_--display-flex_1sx8x_16","--hidden":"_--hidden_1sx8x_20","--visibility":"_--visibility_1sx8x_24","--hidden-true--m":"_--hidden-true--m_1sx8x_1","--hidden-false--m":"_--hidden-false--m_1sx8x_1","--hidden-true--l":"_--hidden-true--l_1sx8x_1","--hidden-false--l":"_--hidden-false--l_1sx8x_1","--hidden-true--xl":"_--hidden-true--xl_1sx8x_1","--hidden-false--xl":"_--hidden-false--xl_1sx8x_1"},un=e=>{const{as:t="div",children:n,visibility:r,hide:o,displayStyle:i}=e,a=M(Lt.root,...W(Lt,"--hidden",o),r&&Lt["--visibility"],i&&Lt[`--display-${i}`]);return typeof n=="function"?s.jsx(s.Fragment,{children:n(a)}):s.jsx(t,{className:a,children:n})},K={root:"_root_ewdir_1",item:"_item_ewdir_10","--padding":"_--padding_ewdir_18","--padding-top":"_--padding-top_ewdir_23","--padding-bottom":"_--padding-bottom_ewdir_27","--padding-start":"_--padding-start_ewdir_31","--padding-end":"_--padding-end_ewdir_35","--animated":"_--animated_ewdir_39","--align-text-start":"_--align-text-start_ewdir_1","--align-text-center":"_--align-text-center_ewdir_1","--align-text-end":"_--align-text-end_ewdir_1","--bg-neutral":"_--bg-neutral_ewdir_1","--bg-positive":"_--bg-positive_ewdir_1","--bg-critical":"_--bg-critical_ewdir_1","--bg-primary":"_--bg-primary_ewdir_1","--bg-neutral-faded":"_--bg-neutral-faded_ewdir_1","--bg-positive-faded":"_--bg-positive-faded_ewdir_1","--bg-critical-faded":"_--bg-critical-faded_ewdir_1","--bg-primary-faded":"_--bg-primary-faded_ewdir_1","--bg-page":"_--bg-page_ewdir_1","--bg-page-faded":"_--bg-page-faded_ewdir_1","--bg-disabled":"_--bg-disabled_ewdir_1","--bg-disabled-faded":"_--bg-disabled-faded_ewdir_1","--bg-elevation-base":"_--bg-elevation-base_ewdir_1","--bg-elevation-raised":"_--bg-elevation-raised_ewdir_1","--bg-elevation-overlay":"_--bg-elevation-overlay_ewdir_1","--bg-white":"_--bg-white_ewdir_65","--bg-black":"_--bg-black_ewdir_70","--shadow-raised":"_--shadow-raised_ewdir_75","--shadow-overlay":"_--shadow-overlay_ewdir_79","--bd":"_--bd_ewdir_83","--bd-neutral-faded":"_--bd-neutral-faded_ewdir_1","--bd-neutral":"_--bd-neutral_ewdir_1","--bd-positive":"_--bd-positive_ewdir_1","--bd-positive-faded":"_--bd-positive-faded_ewdir_1","--bd-critical":"_--bd-critical_ewdir_1","--bd-critical-faded":"_--bd-critical-faded_ewdir_1","--bd-primary":"_--bd-primary_ewdir_1","--bd-primary-faded":"_--bd-primary-faded_ewdir_1","--bd-disabled":"_--bd-disabled_ewdir_1","--bd-transparent":"_--bd-transparent_ewdir_94","--overflow-hidden":"_--overflow-hidden_ewdir_98","--divided":"_--divided_ewdir_102","--flex":"_--flex_ewdir_106","--direction-column":"_--direction-column_ewdir_1","item--gap-before":"_item--gap-before_ewdir_118","item--gap-auto":"_item--gap-auto_ewdir_122","--direction-column-reverse":"_--direction-column-reverse_ewdir_1","--direction-row":"_--direction-row_ewdir_1","--direction-row-reverse":"_--direction-row-reverse_ewdir_1","--nowrap":"_--nowrap_ewdir_177","--wrap":"_--wrap_ewdir_185","--nowrap-false--m":"_--nowrap-false--m_ewdir_1","--wrap-true--m":"_--wrap-true--m_ewdir_1","--nowrap-true--m":"_--nowrap-true--m_ewdir_1","--wrap-false--m":"_--wrap-false--m_ewdir_1","--nowrap-false--l":"_--nowrap-false--l_ewdir_1","--wrap-true--l":"_--wrap-true--l_ewdir_1","--nowrap-true--l":"_--nowrap-true--l_ewdir_1","--wrap-false--l":"_--wrap-false--l_ewdir_1","--nowrap-false--xl":"_--nowrap-false--xl_ewdir_1","--wrap-true--xl":"_--wrap-true--xl_ewdir_1","--nowrap-true--xl":"_--nowrap-true--xl_ewdir_1","--wrap-false--xl":"_--wrap-false--xl_ewdir_1","--align-start":"_--align-start_ewdir_1","--align-end":"_--align-end_ewdir_1","--align-center":"_--align-center_ewdir_1","--align-stretch":"_--align-stretch_ewdir_1","--align-baseline":"_--align-baseline_ewdir_1","--justify-start":"_--justify-start_ewdir_1","--justify-end":"_--justify-end_ewdir_1","--justify-center":"_--justify-center_ewdir_1","--justify-space-between":"_--justify-space-between_ewdir_1",divider:"_divider_ewdir_244","item--grow":"_item--grow_ewdir_248","item--columns":"_item--columns_ewdir_266","item--columns-1":"_item--columns-1_ewdir_1","item--columns-2":"_item--columns-2_ewdir_1","item--columns-3":"_item--columns-3_ewdir_1","item--columns-4":"_item--columns-4_ewdir_1","item--columns-5":"_item--columns-5_ewdir_1","item--columns-6":"_item--columns-6_ewdir_1","item--columns-7":"_item--columns-7_ewdir_1","item--columns-8":"_item--columns-8_ewdir_1","item--columns-9":"_item--columns-9_ewdir_1","item--columns-10":"_item--columns-10_ewdir_1","item--columns-11":"_item--columns-11_ewdir_1","item--columns-12":"_item--columns-12_ewdir_1","item--columns-auto":"_item--columns-auto_ewdir_287","item--columns-1--m":"_item--columns-1--m_ewdir_1","item--columns-auto--m":"_item--columns-auto--m_ewdir_1","item--columns-2--m":"_item--columns-2--m_ewdir_1","item--columns-3--m":"_item--columns-3--m_ewdir_1","item--columns-4--m":"_item--columns-4--m_ewdir_1","item--columns-5--m":"_item--columns-5--m_ewdir_1","item--columns-6--m":"_item--columns-6--m_ewdir_1","item--columns-7--m":"_item--columns-7--m_ewdir_1","item--columns-8--m":"_item--columns-8--m_ewdir_1","item--columns-9--m":"_item--columns-9--m_ewdir_1","item--columns-10--m":"_item--columns-10--m_ewdir_1","item--columns-11--m":"_item--columns-11--m_ewdir_1","item--columns-12--m":"_item--columns-12--m_ewdir_1","item--columns-1--l":"_item--columns-1--l_ewdir_1","item--columns-auto--l":"_item--columns-auto--l_ewdir_1","item--columns-2--l":"_item--columns-2--l_ewdir_1","item--columns-3--l":"_item--columns-3--l_ewdir_1","item--columns-4--l":"_item--columns-4--l_ewdir_1","item--columns-5--l":"_item--columns-5--l_ewdir_1","item--columns-6--l":"_item--columns-6--l_ewdir_1","item--columns-7--l":"_item--columns-7--l_ewdir_1","item--columns-8--l":"_item--columns-8--l_ewdir_1","item--columns-9--l":"_item--columns-9--l_ewdir_1","item--columns-10--l":"_item--columns-10--l_ewdir_1","item--columns-11--l":"_item--columns-11--l_ewdir_1","item--columns-12--l":"_item--columns-12--l_ewdir_1","item--columns-1--xl":"_item--columns-1--xl_ewdir_1","item--columns-auto--xl":"_item--columns-auto--xl_ewdir_1","item--columns-2--xl":"_item--columns-2--xl_ewdir_1","item--columns-3--xl":"_item--columns-3--xl_ewdir_1","item--columns-4--xl":"_item--columns-4--xl_ewdir_1","item--columns-5--xl":"_item--columns-5--xl_ewdir_1","item--columns-6--xl":"_item--columns-6--xl_ewdir_1","item--columns-7--xl":"_item--columns-7--xl_ewdir_1","item--columns-8--xl":"_item--columns-8--xl_ewdir_1","item--columns-9--xl":"_item--columns-9--xl_ewdir_1","item--columns-10--xl":"_item--columns-10--xl_ewdir_1","item--columns-11--xl":"_item--columns-11--xl_ewdir_1","item--columns-12--xl":"_item--columns-12--xl_ewdir_1","--direction-column--m":"_--direction-column--m_ewdir_1","--direction-column-reverse--m":"_--direction-column-reverse--m_ewdir_1","--direction-row--m":"_--direction-row--m_ewdir_1","--direction-row-reverse--m":"_--direction-row-reverse--m_ewdir_1","--align-start--m":"_--align-start--m_ewdir_1","--align-end--m":"_--align-end--m_ewdir_1","--align-center--m":"_--align-center--m_ewdir_1","--align-stretch--m":"_--align-stretch--m_ewdir_1","--align-baseline--m":"_--align-baseline--m_ewdir_1","--justify-start--m":"_--justify-start--m_ewdir_1","--justify-end--m":"_--justify-end--m_ewdir_1","--justify-center--m":"_--justify-center--m_ewdir_1","--justify-space-between--m":"_--justify-space-between--m_ewdir_1","item--grow-true--m":"_item--grow-true--m_ewdir_1","item--grow-false--m":"_item--grow-false--m_ewdir_1","--direction-column--l":"_--direction-column--l_ewdir_1","--direction-column-reverse--l":"_--direction-column-reverse--l_ewdir_1","--direction-row--l":"_--direction-row--l_ewdir_1","--direction-row-reverse--l":"_--direction-row-reverse--l_ewdir_1","--align-start--l":"_--align-start--l_ewdir_1","--align-end--l":"_--align-end--l_ewdir_1","--align-center--l":"_--align-center--l_ewdir_1","--align-stretch--l":"_--align-stretch--l_ewdir_1","--align-baseline--l":"_--align-baseline--l_ewdir_1","--justify-start--l":"_--justify-start--l_ewdir_1","--justify-end--l":"_--justify-end--l_ewdir_1","--justify-center--l":"_--justify-center--l_ewdir_1","--justify-space-between--l":"_--justify-space-between--l_ewdir_1","item--grow-true--l":"_item--grow-true--l_ewdir_1","item--grow-false--l":"_item--grow-false--l_ewdir_1","--direction-column--xl":"_--direction-column--xl_ewdir_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_ewdir_1","--direction-row--xl":"_--direction-row--xl_ewdir_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_ewdir_1","--align-start--xl":"_--align-start--xl_ewdir_1","--align-end--xl":"_--align-end--xl_ewdir_1","--align-center--xl":"_--align-center--xl_ewdir_1","--align-stretch--xl":"_--align-stretch--xl_ewdir_1","--align-baseline--xl":"_--align-baseline--xl_ewdir_1","--justify-start--xl":"_--justify-start--xl_ewdir_1","--justify-end--xl":"_--justify-end--xl_ewdir_1","--justify-center--xl":"_--justify-center--xl_ewdir_1","--justify-space-between--xl":"_--justify-space-between--xl_ewdir_1","item--grow-true--xl":"_item--grow-true--xl_ewdir_1","item--grow-false--xl":"_item--grow-false--xl_ewdir_1"},tr={root:"_root_fjri8_1","--radius-none":"_--radius-none_fjri8_1","--radius-small":"_--radius-small_fjri8_1","--radius-medium":"_--radius-medium_fjri8_1","--radius-large":"_--radius-large_fjri8_1","--radius-circular":"_--radius-circular_fjri8_1","--radius-none--m":"_--radius-none--m_fjri8_1","--radius-small--m":"_--radius-small--m_fjri8_1","--radius-medium--m":"_--radius-medium--m_fjri8_1","--radius-large--m":"_--radius-large--m_fjri8_1","--radius-circular--m":"_--radius-circular--m_fjri8_1","--radius-none--l":"_--radius-none--l_fjri8_1","--radius-small--l":"_--radius-small--l_fjri8_1","--radius-medium--l":"_--radius-medium--l_fjri8_1","--radius-large--l":"_--radius-large--l_fjri8_1","--radius-circular--l":"_--radius-circular--l_fjri8_1","--radius-none--xl":"_--radius-none--xl_fjri8_1","--radius-small--xl":"_--radius-small--xl_fjri8_1","--radius-medium--xl":"_--radius-medium--xl_fjri8_1","--radius-large--xl":"_--radius-large--xl_fjri8_1","--radius-circular--xl":"_--radius-circular--xl_fjri8_1"},_n=e=>e?{classNames:[tr.root,...W(tr,"--radius",e)]}:null,nr={root:"_root_o5mer_1","--bleed":"_--bleed_o5mer_10","--bleed-true--m":"_--bleed-true--m_o5mer_1","--bleed-false--m":"_--bleed-false--m_o5mer_1","--bleed-true--l":"_--bleed-true--l_o5mer_1","--bleed-false--l":"_--bleed-false--l_o5mer_1","--bleed-true--xl":"_--bleed-true--xl_o5mer_1","--bleed-false--xl":"_--bleed-false--xl_o5mer_1"},rr=e=>{if(e===void 0)return null;const t=[nr.root,...W(nr,"--bleed",Le(e,r=>typeof r=="number"&&r>0))],n=ee("--rs-bleed",e);return{classNames:t,variables:n}},$o={literal:"_literal_1a6gk_1",unit:"_unit_1a6gk_5","literal--m":"_literal--m_1a6gk_1","unit--m":"_unit--m_1a6gk_1","literal--l":"_literal--l_1a6gk_1","unit--l":"_unit--l_1a6gk_1","literal--xl":"_literal--xl_1a6gk_1","unit--xl":"_unit--xl_1a6gk_1"},mn=e=>{if(!e)return null;const t=ee("--rs-w",e);return{classNames:W($o,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Eo={literal:"_literal_ea0g1_1",unit:"_unit_ea0g1_2","literal--m":"_literal--m_ea0g1_1","unit--m":"_unit--m_ea0g1_1","literal--l":"_literal--l_ea0g1_1","unit--l":"_unit--l_ea0g1_1","literal--xl":"_literal--xl_ea0g1_1","unit--xl":"_unit--xl_ea0g1_1"},Ct=e=>{if(!e)return null;const t=ee("--rs-h",e);return{classNames:W(Eo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},zo={literal:"_literal_ezw0c_1",unit:"_unit_ezw0c_5","literal--m":"_literal--m_ezw0c_1","unit--m":"_unit--m_ezw0c_1","literal--l":"_literal--l_ezw0c_1","unit--l":"_unit--l_ezw0c_1","literal--xl":"_literal--xl_ezw0c_1","unit--xl":"_unit--xl_ezw0c_1"},To=e=>{if(!e)return null;const t=ee("--rs-max-w",e);return{classNames:W(zo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Io={literal:"_literal_kt8jw_1",unit:"_unit_kt8jw_5","literal--m":"_literal--m_kt8jw_1","unit--m":"_unit--m_kt8jw_1","literal--l":"_literal--l_kt8jw_1","unit--l":"_unit--l_kt8jw_1","literal--xl":"_literal--xl_kt8jw_1","unit--xl":"_unit--xl_kt8jw_1"},Mo=e=>{if(!e)return null;const t=ee("--rs-max-h",e);return{classNames:W(Io,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},So={"--position-relative":"_--position-relative_eidrq_1","--position-absolute":"_--position-absolute_eidrq_1","--position-fixed":"_--position-fixed_eidrq_1","--position-sticky":"_--position-sticky_eidrq_1","--position-relative--m":"_--position-relative--m_eidrq_1","--position-absolute--m":"_--position-absolute--m_eidrq_1","--position-fixed--m":"_--position-fixed--m_eidrq_1","--position-sticky--m":"_--position-sticky--m_eidrq_1","--position-relative--l":"_--position-relative--l_eidrq_1","--position-absolute--l":"_--position-absolute--l_eidrq_1","--position-fixed--l":"_--position-fixed--l_eidrq_1","--position-sticky--l":"_--position-sticky--l_eidrq_1","--position-relative--xl":"_--position-relative--xl_eidrq_1","--position-absolute--xl":"_--position-absolute--xl_eidrq_1","--position-fixed--xl":"_--position-fixed--xl_eidrq_1","--position-sticky--xl":"_--position-sticky--xl_eidrq_1"},Po=e=>e?{classNames:W(So,"--position",e)}:null,Ao={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},kt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",r=`--rs-inset${n}`,o=ee(r,e);return{classNames:W(Ao,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:o}},Fo={root:"_root_i342i_1"},Lo=e=>{if(!e)return null;const t=ee("--rs-ratio",e);return{classNames:Fo.root,variables:t}},or=e=>{const{columns:t,grow:n,gapBefore:r,as:o="div",order:i,children:a,className:l,attributes:d}=e,f=M(K.item,l,r==="auto"&&K["item--gap-auto"],r!==void 0&&K["item--gap-before"],t&&K["item--columns"],...W(K,"item--grow",n),...W(K,"item--columns",t)),m=g(g({},ee("--rs-view-item-order",i)),ee("--rs-view-item-gap-before",r));return s.jsx(o,C(g({},d),{style:g(g({},d==null?void 0:d.style),m),className:f,children:a}))},U=e=>{const{align:t,justify:n,wrap:r,gap:o,height:i,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:m,paddingInline:h,paddingBlock:_,paddingBottom:v,paddingEnd:p,paddingStart:x,paddingTop:y,bleed:w,animated:b,backgroundColor:j,borderColor:$,borderRadius:E,shadow:T,textAlign:z,overflow:S,position:O="relative",inset:P,insetTop:A,insetBottom:q,insetStart:V,insetEnd:L,zIndex:Q,grow:fe,as:he="div",children:oe,divided:Z,className:He,attributes:Ce}=e,se=!!t||!!n||!!o||!!e.direction,H=e.direction||(se?"column":void 0),Y=_n(E),G=rr(w),ie=mn(a),ye=Ct(i),X=To(f),pe=Mo(d),ge=Po(O),Me=kt(P),Re=kt(A,"top"),et=kt(q,"bottom"),tt=kt(V,"start"),Se=kt(L,"end"),Pe=Lo(l);let At=0,st;const bt=({className:ve,key:ue})=>{const qe=M(K.divider,ve);let me=!1;return typeof H=="string"&&H.startsWith("row")?me=!0:H&&(me=Object.keys(H).reduce((Ue,ke)=>{const Ae=H[ke];return Ae?C(g({},Ue),{[ke]:Ae.startsWith("row")}):Ue},{})),s.jsx("div",{className:qe,children:s.jsx(er,{vertical:me,blank:!0})},`${ue}-divider`)},sn=({className:ve,child:ue,index:qe})=>{var Ae,an;const me=ue.type===or,it=ue.key||qe,Ue=!!qe&&Z&&bt({className:ve,key:it});let ke;return me?ke=c.cloneElement(ue,{className:M(ve,ue.props.className)}):ve||!c.isValidElement(ue)?ke=s.jsx("div",{className:ve,children:ue},it):ke=ue,me&&((Ae=ue.props)!=null&&Ae.grow)&&(st=ue.props.grow),me&&((an=ue.props)==null?void 0:an.gap)==="auto"&&(st=!0),[Ue,ke]},Hn=c.Children.map(oe,(ve,ue)=>{if(!ve)return null;const qe=At;if(At+=1,ve.type===un&&typeof ve.props.children!="function"){const me=ve.props,{children:it}=me,Ue=Fe(me,["children"]),ke=ve.key||ue;return c.createElement(un,C(g({},Ue),{key:ke}),Ae=>sn({className:Ae,child:it,index:qe}))}return sn({child:ve,index:qe})}),Ft=M(K.root,He,Y==null?void 0:Y.classNames,ge==null?void 0:ge.classNames,G==null?void 0:G.classNames,ie==null?void 0:ie.classNames,ye==null?void 0:ye.classNames,Pe==null?void 0:Pe.classNames,X==null?void 0:X.classNames,pe==null?void 0:pe.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,et==null?void 0:et.classNames,tt==null?void 0:tt.classNames,Se==null?void 0:Se.classNames,z&&K[`--align-text-${z}`],j&&K[`--bg-${j}`],$&&K[`--bd-${$}`],$&&K["--bd"],T&&K[`--shadow-${T}`],S&&K[`--overflow-${S}`],b&&K["--animated"],Z&&K["--divided"],(m!==void 0||h!==void 0||_!==void 0)&&K["--padding"],v!==void 0&&K["--padding-bottom"],p!==void 0&&K["--padding-end"],x!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(se||st)&&K["--flex"],...W(K,"--direction",H),...W(K,"--align",t),...W(K,"--justify",n),...W(K,"--nowrap",st||r===!1),...W(K,"--wrap",r),...W(K,"item--grow",fe)),Rn=g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g({},Ce==null?void 0:Ce.style),ee("--rs-view-gap",o)),ee("--rs-view-p-vertical",_||m)),ee("--rs-view-p-horizontal",h||m)),ee("--rs-view-p-bottom",v)),ee("--rs-view-p-top",y)),ee("--rs-view-p-start",x)),ee("--rs-view-p-end",p)),G==null?void 0:G.variables),ie==null?void 0:ie.variables),ye==null?void 0:ye.variables),Pe==null?void 0:Pe.variables),X==null?void 0:X.variables),pe==null?void 0:pe.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),et==null?void 0:et.variables),tt==null?void 0:tt.variables),Se==null?void 0:Se.variables),Q?{"--rs-view-z":Q}:{});return s.jsx(he,C(g({},Ce),{className:Ft,style:Rn,children:Hn}))};U.Item=or;const fn={root:"_root_1f0uh_1","--auto":"_--auto_1f0uh_8","--color-neutral":"_--color-neutral_1f0uh_1","--color-neutral-faded":"_--color-neutral-faded_1f0uh_1","--color-primary":"_--color-primary_1f0uh_1","--color-positive":"_--color-positive_1f0uh_1","--color-critical":"_--color-critical_1f0uh_1","--color-disabled":"_--color-disabled_1f0uh_1"},ce=e=>{const{svg:t,className:n,color:r,size:o="1em",autoWidth:i,attributes:a}=e,l=Ct(o),d=M(fn.root,n,l==null?void 0:l.classNames,r&&fn[`--color-${r}`],i&&fn["--auto"]),f=typeof t=="object"?t:s.jsx(t,{}),m=g(g({},a==null?void 0:a.style),l==null?void 0:l.variables);return s.jsx("span",C(g({},a),{"aria-hidden":"true",className:d,style:m,children:c.cloneElement(f,{focusable:!1})}))},Vo=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),Nt={content:"_content_fcvpf_1","content--animated":"_content--animated_fcvpf_6",icon:"_icon_fcvpf_13","icon--active":"_icon--active_fcvpf_17"},Do=e=>{const{children:t}=e,{active:n,onToggle:r,triggerId:o,contentId:i,iconPosition:a="end",iconSize:l}=c.useContext(cn),d=M(Nt.icon,n&&Nt["icon--active"]),f=()=>{r==null||r(!n)},m={"aria-expanded":n,"aria-controls":i,id:o};return typeof t=="function"?s.jsx(s.Fragment,{children:t(C(g({},m),{onClick:f}),{active:n})}):s.jsx(Ve,{onClick:f,fullWidth:!0,attributes:m,children:s.jsxs(U,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[s.jsx(U.Item,{grow:!0,children:t}),s.jsx(ce,{size:l||4,svg:Vo,className:d})]})})},$t=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},hn="data-rs-no-transition",Oo=()=>{document.documentElement.setAttribute(hn,"true")},qo=()=>{document.documentElement.removeAttribute(hn)},Bo=()=>!document.documentElement.hasAttribute(hn),Wo=e=>{const{children:t}=e,{active:n,triggerId:r,contentId:o}=c.useContext(cn),i=c.useRef(null),a=c.useRef(!1),[l,d]=c.useState(n?"auto":null),f=M(Nt.content,a.current&&l!=="auto"&&Nt["content--animated"],n&&Nt["content--active"]),m=h=>{h.propertyName==="height"&&d(n?"auto":null)};return c.useEffect(()=>{$t(()=>{a.current=!0})},[]),c.useEffect(()=>{const h=i.current;if(!h||!a.current)return;let _=0;n&&(h.style.height="auto",_=h.clientHeight,h.style.height="0"),n||(h.style.height=`${h.clientHeight}px`),d(_)},[n]),s.jsx("div",{className:f,ref:i,style:l!==null?{height:l,overflow:l==="auto"?"visible":void 0}:void 0,onTransitionEnd:m,"aria-labelledby":r,id:o,role:"region",hidden:!n&&l===null,children:t})},gn=e=>{const{active:t}=e;return t!==void 0?s.jsx(Zn,g({},e)):s.jsx(ko,g({},e))};gn.Trigger=Do,gn.Content=Wo;const vn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Ho=e=>{const{position:t="bottom",padding:n,paddingBlock:r=3,paddingInline:o=4,children:i,elevated:a,className:l,attributes:d}=e,f=M(vn.root,a&&vn["--elevated"],t&&vn[`--position-${t}`],l);return s.jsx(U,{className:f,attributes:d,paddingBlock:n||r,paddingInline:n||o,children:i})},nt={root:"_root_gm5sj_1","--clamp":"_--clamp_gm5sj_6","--align-start":"_--align-start_gm5sj_1","--align-center":"_--align-center_gm5sj_1","--align-end":"_--align-end_gm5sj_1","--variant-title-1":"_--variant-title-1_gm5sj_1","--variant-title-2":"_--variant-title-2_gm5sj_1","--variant-title-3":"_--variant-title-3_gm5sj_1","--variant-title-4":"_--variant-title-4_gm5sj_1","--variant-title-5":"_--variant-title-5_gm5sj_1","--variant-title-6":"_--variant-title-6_gm5sj_1","--variant-featured-1":"_--variant-featured-1_gm5sj_1","--variant-featured-2":"_--variant-featured-2_gm5sj_1","--variant-featured-3":"_--variant-featured-3_gm5sj_1","--variant-body-1":"_--variant-body-1_gm5sj_1","--variant-body-2":"_--variant-body-2_gm5sj_1","--variant-body-3":"_--variant-body-3_gm5sj_1","--variant-caption-1":"_--variant-caption-1_gm5sj_1","--variant-caption-2":"_--variant-caption-2_gm5sj_1","--weight-regular":"_--weight-regular_gm5sj_1","--weight-medium":"_--weight-medium_gm5sj_1","--weight-bold":"_--weight-bold_gm5sj_1","--color-neutral":"_--color-neutral_gm5sj_1","--color-neutral-faded":"_--color-neutral-faded_gm5sj_1","--color-primary":"_--color-primary_gm5sj_1","--color-positive":"_--color-positive_gm5sj_1","--color-critical":"_--color-critical_gm5sj_1","--color-disabled":"_--color-disabled_gm5sj_1","--decoration-line-through":"_--decoration-line-through_gm5sj_139","--align-start--m":"_--align-start--m_gm5sj_1","--align-center--m":"_--align-center--m_gm5sj_1","--align-end--m":"_--align-end--m_gm5sj_1","--variant-title-1--m":"_--variant-title-1--m_gm5sj_1","--variant-title-2--m":"_--variant-title-2--m_gm5sj_1","--variant-title-3--m":"_--variant-title-3--m_gm5sj_1","--variant-title-4--m":"_--variant-title-4--m_gm5sj_1","--variant-title-5--m":"_--variant-title-5--m_gm5sj_1","--variant-title-6--m":"_--variant-title-6--m_gm5sj_1","--variant-featured-1--m":"_--variant-featured-1--m_gm5sj_1","--variant-featured-2--m":"_--variant-featured-2--m_gm5sj_1","--variant-featured-3--m":"_--variant-featured-3--m_gm5sj_1","--variant-body-1--m":"_--variant-body-1--m_gm5sj_1","--variant-body-2--m":"_--variant-body-2--m_gm5sj_1","--variant-body-3--m":"_--variant-body-3--m_gm5sj_1","--variant-caption-1--m":"_--variant-caption-1--m_gm5sj_1","--variant-caption-2--m":"_--variant-caption-2--m_gm5sj_1","--align-start--l":"_--align-start--l_gm5sj_1","--align-center--l":"_--align-center--l_gm5sj_1","--align-end--l":"_--align-end--l_gm5sj_1","--variant-title-1--l":"_--variant-title-1--l_gm5sj_1","--variant-title-2--l":"_--variant-title-2--l_gm5sj_1","--variant-title-3--l":"_--variant-title-3--l_gm5sj_1","--variant-title-4--l":"_--variant-title-4--l_gm5sj_1","--variant-title-5--l":"_--variant-title-5--l_gm5sj_1","--variant-title-6--l":"_--variant-title-6--l_gm5sj_1","--variant-featured-1--l":"_--variant-featured-1--l_gm5sj_1","--variant-featured-2--l":"_--variant-featured-2--l_gm5sj_1","--variant-featured-3--l":"_--variant-featured-3--l_gm5sj_1","--variant-body-1--l":"_--variant-body-1--l_gm5sj_1","--variant-body-2--l":"_--variant-body-2--l_gm5sj_1","--variant-body-3--l":"_--variant-body-3--l_gm5sj_1","--variant-caption-1--l":"_--variant-caption-1--l_gm5sj_1","--variant-caption-2--l":"_--variant-caption-2--l_gm5sj_1","--align-start--xl":"_--align-start--xl_gm5sj_1","--align-center--xl":"_--align-center--xl_gm5sj_1","--align-end--xl":"_--align-end--xl_gm5sj_1","--variant-title-1--xl":"_--variant-title-1--xl_gm5sj_1","--variant-title-2--xl":"_--variant-title-2--xl_gm5sj_1","--variant-title-3--xl":"_--variant-title-3--xl_gm5sj_1","--variant-title-4--xl":"_--variant-title-4--xl_gm5sj_1","--variant-title-5--xl":"_--variant-title-5--xl_gm5sj_1","--variant-title-6--xl":"_--variant-title-6--xl_gm5sj_1","--variant-featured-1--xl":"_--variant-featured-1--xl_gm5sj_1","--variant-featured-2--xl":"_--variant-featured-2--xl_gm5sj_1","--variant-featured-3--xl":"_--variant-featured-3--xl_gm5sj_1","--variant-body-1--xl":"_--variant-body-1--xl_gm5sj_1","--variant-body-2--xl":"_--variant-body-2--xl_gm5sj_1","--variant-body-3--xl":"_--variant-body-3--xl_gm5sj_1","--variant-caption-1--xl":"_--variant-caption-1--xl_gm5sj_1","--variant-caption-2--xl":"_--variant-caption-2--xl_gm5sj_1"},Ro={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},te=e=>{const{variant:t,color:n,weight:r,align:o,decoration:i,maxLines:a,children:l,className:d,attributes:f}=e,m=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),h=e.as||m&&Ro[m]||"div",_=M(nt.root,n&&nt[`--color-${n}`],...W(nt,"--variant",t),...W(nt,"--align",o),r&&nt[`--weight-${r}`],i&&nt[`--decoration-${i}`],a!==void 0&&nt["--clamp"],d),v=C(g({},f==null?void 0:f.style),{"--rs-text-lines":a});return s.jsx(h,C(g({},f),{className:_,style:v,children:l}))},Uo=e=>{const{title:t,children:n,icon:r,actionsSlot:o,color:i="neutral",inline:a,bleed:l,className:d,attributes:f}=e,m=i==="neutral",h=()=>a?s.jsxs(s.Fragment,{children:[t&&s.jsx(te,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&s.jsx(te,{variant:"body-3",as:"span",children:n})]}):s.jsxs(U,{gap:1,children:[t&&s.jsx(te,{variant:"body-3",weight:"medium",children:t}),n&&s.jsx(te,{variant:"body-3",children:n})]}),_=v=>o?s.jsxs(U,{gap:2,direction:a?"row":"column",children:[a?s.jsx(U.Item,{grow:!0,children:v}):v,o&&s.jsx(te,{variant:"body-3",weight:"medium",children:s.jsx(U,{direction:"row",gap:3,children:o})})]}):v;return s.jsx(U,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:C(g({},f),{role:i==="critical"?"alert":"status"}),children:r?s.jsxs(s.Fragment,{children:[s.jsx(ce,{svg:r,size:5,color:m?"primary":i}),s.jsx(U.Item,{grow:!0,children:_(h())})]}):_(h())})},sr=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Ko=sr.Provider,Et=()=>c.useContext(sr),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:r}=Et();return{attributes:e,required:t,hasError:n,disabled:r}},ir={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},bn=(e,t)=>`${e}-${t||"caption"}`,Vt=e=>{const{children:t,id:n,required:r,hasError:o,group:i,disabled:a,size:l}=e,d=$e(n),f=i?"fieldset":"div",[m,h]=c.useState(!1),[_,v]=c.useState(!1),p=[m&&bn(d),_&&bn(d,"error")].filter(Boolean).join(" "),x={id:d,"aria-describedby":p},y=()=>{v(!0)},w=()=>{h(!0)};return s.jsx(f,{children:s.jsx(Ko,{value:{required:r,hasError:o,errorRef:y,helperRef:w,attributes:x,group:i,disabled:a,size:l},children:t})})},Yo=e=>{const{children:t}=e,{attributes:n,required:r,group:o,disabled:i,size:a}=Et(),l=`${n.id}-label`,d=o?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return s.jsxs(te,C(g({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:ir.label,color:i?"disabled":void 0,children:[t,r&&s.jsx(te,{color:i?"disabled":"critical",as:"span",children:"*"})]}))},ar=e=>{const{children:t,variant:n,disabled:r}=e,{attributes:o,size:i,helperRef:a,errorRef:l}=Et(),d=bn(o.id,n),f=n==="error"?"critical":"neutral-faded",m=n==="error"?l:a;return s.jsx(te,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:m},className:ir.caption,children:t})},Go=e=>{const{children:t}=e,{disabled:n}=Et();return s.jsx(ar,{disabled:n,children:t})},Xo=e=>{const{children:t}=e,{hasError:n}=Et();return n?s.jsx(ar,{variant:"error",children:t}):null};Vt.Label=Yo,Vt.Helper=Go,Vt.Error=Xo;const lr={root:"_root_1q3jm_1","--side-all":"_--side-all_1q3jm_6","--side-start":"_--side-start_1q3jm_10","--side-inline":"_--side-inline_1q3jm_11","--side-end":"_--side-end_1q3jm_15","--side-top":"_--side-top_1q3jm_20","--side-block":"_--side-block_1q3jm_21","--side-bottom":"_--side-bottom_1q3jm_25"},Dt=e=>{const{side:t="all",children:n,className:r,attributes:o}=e,i=typeof t=="string"?[t]:t,a=M(lr.root,i.map(l=>lr[`--side-${l}`]),r);return s.jsx("div",C(g({},o),{className:a,children:n}))},Ee={root:"_root_1riga_1",input:"_input_1riga_21",slot:"_slot_1riga_42",icon:"_icon_1riga_43",affix:"_affix_1riga_44",attachment:"_attachment_1riga_60","attachment--position-start":"_attachment--position-start_1riga_65","attachment--position-end":"_attachment--position-end_1riga_78","--disabled":"_--disabled_1riga_91","--size-medium":"_--size-medium_1riga_1","--size-large":"_--size-large_1riga_1","--size-xlarge":"_--size-xlarge_1riga_1","--variant-faded":"_--variant-faded_1riga_155","--variant-headless":"_--variant-headless_1riga_164","--status-error":"_--status-error_1riga_169","--size-medium--m":"_--size-medium--m_1riga_1","--size-large--m":"_--size-large--m_1riga_1","--size-xlarge--m":"_--size-xlarge--m_1riga_1","--size-medium--l":"_--size-medium--l_1riga_1","--size-large--l":"_--size-large--l_1riga_1","--size-xlarge--l":"_--size-xlarge--l_1riga_1","--size-medium--xl":"_--size-medium--xl_1riga_1","--size-large--xl":"_--size-large--xl_1riga_1","--size-xlarge--xl":"_--size-xlarge--xl_1riga_1"},cr=e=>{const{slot:t,icon:n,size:r,affix:o,position:i}=e;if(!n&&!t&&!o)return null;const a=M(Ee.attachment,Ee[`attachment--position-${i}`]),l=[t&&s.jsx("div",{className:Ee.slot,children:t},"slot"),n&&s.jsx("div",{className:Ee.icon,children:s.jsx(ce,{size:Le(r,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),o&&s.jsx("div",{className:Ee.affix,children:o},"affix")].filter(Boolean);return s.jsx("span",{className:a,children:i==="end"?l.reverse():l})},pn=e=>{var P;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:m,endSlot:h,prefix:_,suffix:v,size:p="medium",variant:x="outline",className:y,attributes:w}=e,b=Ye(),j=$e(e.id),$=(b==null?void 0:b.attributes.id)||((P=e.inputAttributes)==null?void 0:P.id)||j,E=(b==null?void 0:b.disabled)||e.disabled,T=(b==null?void 0:b.hasError)||e.hasError,z=g(g({},e.inputAttributes),b==null?void 0:b.attributes),S=M(Ee.root,y,p&&W(Ee,"--size",p),T&&Ee["--status-error"],E&&Ee["--disabled"],x&&Ee[`--variant-${x}`]),O=A=>{t&&t({name:o,value:A.target.value,event:A})};return s.jsxs("div",C(g({},w),{"data-rs-aligner-target":!0,className:S,children:[s.jsx(cr,{position:"start",icon:d,slot:m,size:p,affix:_}),s.jsx("input",C(g({},z),{className:Ee.input,disabled:E,name:o,placeholder:l,value:i,defaultValue:a,onChange:O,onFocus:n||(z==null?void 0:z.onFocus),onBlur:r||(z==null?void 0:z.onBlur),id:$})),s.jsx(cr,{position:"end",icon:f,slot:h,size:p,affix:v})]}))};pn.Aligner=e=>s.jsx(Dt,g({},e));const Jo="Enter",Qo="Tab",dr="ArrowUp",ur="ArrowDown",_r="ArrowRight",mr="ArrowLeft",xn="data-rs-keyboard",Ot="data-rs-focus";class Zo{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const n=this.tailId,r=n&&this.get(n),o=this.generateId();return this.chain[o]={previousId:n,data:t},r&&(r.nextId=o),this.tailId=o,o}remove(t){var d,f;const n=this.chain[t];if(!n)return;const r=n.previousId,o=r&&this.get(r),i=n.nextId,a=i&&this.get(i);o&&(o.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),i||(this.tailId=r!=null?r:null);const l=this.get(t).data;return delete this.chain[t],l}removePreviousTill(t,n){const r=this.get(t),o=this.remove(t);return!r||!r.previousId||n(r)?o:this.removePreviousTill(r.previousId,n)}}const fr=()=>document.documentElement.hasAttribute(xn),hr='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',qt=()=>document.querySelector(`[${Ot}]`)||document.activeElement,wn=(e,t)=>{const r=Array.from(e.querySelectorAll(hr)).filter(o=>!o.hasAttribute("disabled")&&o.clientHeight>0);return t&&r.length&&r.unshift(t),r},gr=e=>{const{root:t,extraElement:n,target:r,mode:o}=e,i=wn(t,n),a=i.length-1,l=qt(),d=i.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let m=f[r];const h=m>a||m<0;return h&&(o==="action-menu"?m=r==="prev"?f.first:f.last:m=r==="prev"?f.last:f.first),{overflow:h,el:i[m]}},Bt=(e,t)=>{var n;(n=document.querySelector(`[${Ot}]`))==null||n.removeAttribute(Ot),t==="selection-menu"?e.setAttribute(Ot,"true"):e.focus()},Wt=(e,t)=>{const n=gr({root:e,target:t});Bt(n.el)},es=e=>Wt(e,"next"),ts=e=>Wt(e,"prev"),ns=e=>Wt(e,"first"),rs=e=>Wt(e,"last"),os=(()=>{let e=[];const t=r=>{let o=r.parentNode&&r.parentNode.firstChild;for(;o;){const i=o!==r,a=o.nodeType===1&&!o.hasAttribute("aria-hidden");i&&a&&(o.setAttribute("aria-hidden","true"),e.push(o)),o=o.nextSibling}},n=()=>{e.forEach(r=>{r.removeAttribute("aria-hidden")}),e=[]};return r=>{let o=r;for(e.length&&n();o!==document.body;)t(o),o=o.parentElement;return{release:n}}})(),Ht=(()=>{let e=null,t=null;const n=new Zo;return(r,o={})=>{const{mode:i="dialog",onNavigateOutside:a,includeTrigger:l}=o,d=qt(),f=i==="dialog",m=i==="content-menu",h=i==="selection-menu",_=f||m,v=i==="action-menu"||h,p=wn(r,l?d:void 0);let x;const y=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const $=wn(r,l?d:void 0);$.length&&Bt($[0],i)}),w=($={})=>{const{withoutFocusReturn:E}=$;n.removePreviousTill(x,z=>document.body.contains(z.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:E||!fr()}),e&&(e(),t&&t.release(),e=null,t=null);const T=n.tailId&&n.get(n.tailId);T&&Ht(T.data.root,T.data.options)},b=$=>{const E=$.key,T=E===Qo,z=T&&!$.shiftKey,S=T&&$.shiftKey,O=v&&E===dr,P=v&&E===ur,A=S&&_||O,q=z&&_||P,V=qt()===d,L=gr({root:r,target:A?"prev":"next",extraElement:l?d:void 0,mode:i});if(T&&v||m&&T&&L.overflow){S&&!V&&$.preventDefault(),w(),a==null||a();return}!A&&!q||($.preventDefault(),L.el&&Bt(L.el,i))};if(e&&e(),f&&(t=os(r)),y.observe(r,{childList:!0,subtree:!0}),!p.length)return null;document.addEventListener("keydown",b),e=()=>document.removeEventListener("keydown",b);const j=n.tailId&&n.get(n.tailId);return(!j||r!==j.data.root)&&(x=n.add({root:r,trigger:d,options:o}),Bt(p[0],i)),w}})(),ss=100,is=150;let at={},De=null;const vr=e=>{at[e]&&(e===De&&(De=at[e].parentId),delete at[e],De===null&&(at={}))},as=(e,t,n)=>{var i;const r=De?at[De]:void 0;!((n==null?void 0:n.current)&&r&&((i=r.contentRef.current)==null?void 0:i.contains(n.current)))&&n&&De&&vr(De),at[e]={parentId:De,triggerRef:n,contentRef:t},De=e},br=(e=!1,t,n)=>{const r=$e(),o=c.useCallback(()=>De===r,[r]);return c.useEffect(()=>{e?as(r,t,n):vr(r)},[e,r,t,n]),o},le=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,lt="+",ze={},yn=[],pr=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),jn=e=>pr(e).split(lt).sort().join(lt),xr=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},ls=e=>{const t=[],n=e.join(lt),o=jn(n).split(lt),i=(a,l)=>{l.forEach((d,f)=>{const m=a?`${a}+${d}`:d;t.push(m),i(m,l.slice(f+1))})};return i("",o),t},cs=(e,t)=>{const n=Object.keys(e);n.length&&ls(n).forEach(r=>{t(r)})},Cn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(r=>{const o=e[n];o&&t(jn(r),o)})})};class ds{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{Cn(t,(r,o)=>{o&&(this.hotkeyMap[r]||(this.hotkeyMap[r]={data:new Set,used:!1}),this.hotkeyMap[r].data.add({callback:o,ref:n}))})},this.unbindHotkeys=t=>{Cn(t,(n,r)=>{var o,i;r&&((o=this.hotkeyMap[n])==null||o.data.forEach(a=>{a.callback===r&&this.hotkeyMap[n].data.delete(a)}),(i=this.hotkeyMap[n])!=null&&i.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{cs(t,r=>{const o=this.hotkeyMap[r];!o||o.used||o!=null&&o.data.size&&o.data.forEach(i=>{var a;(a=i.ref)!=null&&a.current&&!(n.target===i.ref.current||i.ref.current.contains(n.target))||(i.callback(t[r]),this.hotkeyMap[r].used=!0)})})},this.handleKeyUp=t=>{const n=jn(t.key);Cn(this.hotkeyMap,(r,o)=>{r.split(lt).includes(n)&&(o.used=!1)})}}}const Rt=new ds,wr=c.createContext({}),us=e=>{const{children:t}=e,[n,r]=c.useState(0),[o,i]=c.useState(0),a=c.useCallback(_=>{if(_.repeat||o===0)return;const v=xr(_);v&&(ze[v]=_,(v==="meta"||v==="control")&&(ze.mod=_),r(Object.keys(ze).length),v==="meta"&&yn.push(...Object.keys(ze)),ze.Meta&&yn.push(v))},[o]),l=c.useCallback(_=>{if(o===0)return;const v=xr(_);v&&(delete ze[v],(v==="meta"||v==="control")&&delete ze.mod,v==="meta"&&yn.forEach(p=>{delete ze[p]}),r(Object.keys(ze).length))},[o]),d=_=>!pr(_).split(lt).some(p=>!ze[p]),f=c.useCallback((_,v)=>(i(p=>p+1),Rt.bindHotkeys(_,v),()=>{i(p=>p-1),Rt.unbindHotkeys(_)}),[]),m=c.useCallback(_=>{_.key&&(a(_),Rt.handleKeyDown(ze,_))},[a]),h=c.useCallback(_=>{_.key&&(l(_),Rt.handleKeyUp(_))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",m),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",m),window.removeEventListener("keyup",h)}),[m,h]),s.jsx(wr.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},_s=()=>c.useContext(wr),rt=(e,t=[],n)=>{const{addHotkeys:r,isPressed:o}=_s(),i=c.useRef(null),a=(n==null?void 0:n.ref)||i;return c.useEffect(()=>{const l=r(e,a);return()=>l==null?void 0:l()},[r,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:o}},kn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ms=e=>{const t=c.useState(e||!1),[n,r]=t;return le(()=>{const o=new MutationObserver(i=>{i.forEach(a=>{if(a.attributeName!=="dir")return;const l=a.target.dir==="rtl";n!==l&&r(l)})});return o.observe(document.documentElement,{attributes:!0}),()=>o.disconnect()},[n]),le(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(kn).rtl,Nn=e=>{const t=e&&window.getComputedStyle(e).overflowY,n=t==null?void 0:t.includes("scroll");return e===document.body||!e?document.body:n&&e.scrollHeight>e.clientHeight?e:Nn(e.parentElement)},yr=16,Ut=["top-start","top","top-end"],Kt=["bottom-start","bottom","bottom-end"],Yt=["start","start-bottom","start-top"],Gt=["end","end-bottom","end-top"],fs={top:[...Ut,...Kt,...Gt,...Yt],bottom:[...Kt,...Ut,...Gt,...Yt],start:[...Yt,...Gt,...Ut,...Kt],end:[...Gt,...Yt,...Ut,...Kt]},hs=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,jr=(e,t)=>Math.floor(e/2-t/2),gs=e=>{const n=["top","bottom","start","end"].find(r=>e.startsWith(r))||"bottom";return fs[n]},$n=e=>{const t=document.documentElement,n=t.scrollLeft,r=n+t.clientWidth,o=t.scrollTop,i=o+t.clientHeight;return e.left>=n&&e.left+e.width<=r&&e.top>=o&&e.top+e.height<=i},Cr=(e,t,n,r)=>{const{position:o,rtl:i,width:a}=r;let l=0,d=0,f=o;switch(i&&(f=hs(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=jr(e.width,t.width)+e.left;break;case"start":case"start-top":case"start-bottom":l=e.left-t.width;break;case"end":case"end-top":case"end-bottom":l=e.right;break;case"top-start":case"bottom-start":l=e.left;break;case"top-end":case"bottom-end":l=e.right-t.width;break}switch(f){case"top":case"top-start":case"top-end":d=e.top-t.height;break;case"bottom":case"bottom-start":case"bottom-end":d=e.bottom;break;case"start":case"end":d=jr(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||l===void 0)throw Error(`[Reshaped, flyout]: ${f} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),l=Math.round(l+(window.scrollX||0)-n.left);let m=Math.ceil(t.width);const h=Math.ceil(t.height);return a==="full"?(l=yr,m=window.innerWidth-yr*2):a==="trigger"&&(m=e.width),{styles:{left:l,top:d,width:m,height:h},position:f}},kr={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},En={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},vs=(e,t,n)=>{const{position:r,forcePosition:o,width:i}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(En).forEach(v=>{const p=En[v];a.style[v]=p.toString()}),i&&(i==="trigger"?a.style.width=`${l.width}px`:i!=="full"&&(a.style.width=i)),document.body.appendChild(a);const d=a.getBoundingClientRect(),f=Nn(e),m=f.getBoundingClientRect(),h={top:m.top+document.documentElement.scrollTop-f.scrollTop,left:m.left+document.documentElement.scrollLeft-f.scrollLeft};let _=Cr(l,d,h,n);if(!$n(_.styles)&&!o){const v=gs(r),p=v.filter(y=>y==="top"||y==="bottom"),x=(y,w={})=>{const{fullWidth:b}=w;y.some(j=>{const $=C(g({},n),{width:b?"full":n.width,position:j}),E=Cr(l,d,h,$);return $n(E.styles)?(_=E,!0):!1})};x(v),$n(_.styles)||x(p,{fullWidth:!0})}return a.parentNode.removeChild(a),_},bs=(e,t)=>{switch(t.type){case"render":return C(g({},e),{status:"rendered",styles:{pointerEvents:"none"}});case"position":return C(g({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:g(g({},kr),t.payload.styles)});case"show":return C(g({},e),{status:"visible"});case"hide":return C(g({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return C(g({},e),{status:"idle",styles:En});default:throw new Error("Invalid reducer type")}},ps=(e,t,n)=>{const{position:r="bottom",forcePosition:o,width:i}=n,[a]=Ge(),[l,d]=c.useReducer(bs,{position:r,styles:kr,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),m=c.useCallback(()=>{d({type:"show"})},[]),h=c.useCallback(()=>{d({type:"hide"})},[]),_=c.useCallback(()=>{d({type:"remove"})},[]),v=c.useCallback(()=>{if(!e.current||!t.current)return;const p=vs(e.current,t.current,{width:i,position:r,forcePosition:o,rtl:a});d({type:"position",payload:p})},[e,t,r,a,o,i]);return c.useEffect(()=>{l.status==="rendered"&&v(),l.status==="positioned"&&$t(()=>m())},[l.status,v,m]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:v,render:f,hide:h,remove:_}),[f,v,h,_,l.position,l.styles,l.status])},xs=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=r=>{let o=!1;e.forEach(i=>{(!i.current||i.current===r.target||i.current.contains(r.target))&&(o=!0)}),!o&&t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},Nr=c.createContext({}),Xt=()=>c.useContext(Nr),ws=Nr.Provider,$r=e=>{const{triggerType:t="click",onOpen:n,onClose:r,children:o,forcePosition:i,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:m,contentAttributes:h,position:_,active:v,id:p,instanceRef:x}=e,[y]=Ge(),w=c.useRef(null),b=c.useRef(null),j=$e(p),$=c.useRef(),E=c.useRef(null),T=c.useRef(!1),z=c.useRef(!1),S=c.useRef(!0),O=ps(w,b,{width:l,position:_,defaultActive:v,forcePosition:i}),P=Xt(),{status:A,updatePosition:q,render:V,hide:L,remove:Q}=O,fe=br(t!=="hover"&&A!=="idle",b,w),he=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),oe=c.useCallback(()=>{!T.current&&A==="idle"&&(n==null||n())},[A]),Z=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&A!=="idle"&&(r==null||r(),X!=null&&X.closeParents&&((Me=P==null?void 0:P.handleClose)==null||Me.call(P)))},[A,fe,t]),He=c.useCallback(X=>{var ge;(ge=b.current)!=null&&ge.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||z.current||Z()},[Z,t,a]),Ce=c.useCallback(()=>{oe()},[oe]),se=c.useCallback(()=>{he(),$.current=setTimeout(oe,ss)},[he,$,oe]),H=c.useCallback(()=>{he(),$.current=setTimeout(()=>Z(),is)},[he,$,Z]),Y=c.useCallback(()=>{A==="idle"?oe():Z()},[A,oe,Z]),G=()=>z.current=!0,ie=()=>z.current=!1;le(()=>{if(v){V();return}Bo()&&!d?L():Q()},[v,V,L,d]);const ye=c.useCallback(X=>{b.current!==X.currentTarget||X.propertyName!=="transform"||A==="hidden"&&Q()},[Q,A]);return le(()=>{A!=="visible"||!b.current||(E.current=Ht(b.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{E.current=null,Z()}}))},[A,t,Z,a]),c.useEffect(()=>{!d&&A!=="hidden"||d&&A!=="idle"||E.current&&(t==="hover"&&(T.current=!0,setTimeout(()=>{T.current=!1},100)),E.current({withoutFocusReturn:!S.current}),E.current=null,S.current=!0)},[A,t,d]),c.useEffect(()=>()=>{E.current&&E.current(),E.current=null},[]),c.useEffect(()=>{const X=Jn(q,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[q]),c.useEffect(()=>{q()},[y,q]),c.useImperativeHandle(x,()=>({open:oe,close:Z}),[oe,Z]),rt({Escape:()=>Z()},[Z]),xs([b,w],()=>{S.current=!1,Z()}),s.jsx(ws,{value:{id:j,flyout:O,triggerElRef:w,flyoutElRef:b,handleClose:Z,handleOpen:oe,handleFocus:Ce,handleBlur:He,handleMouseEnter:se,handleMouseLeave:H,handleTransitionEnd:ye,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:m,contentAttributes:h},children:o})},ys=e=>{const{defaultActive:t,onClose:n,onOpen:r}=e,[o,i]=c.useState(t||!1),a=()=>{i(!1),n&&n()},l=()=>{i(!0),r&&r()};return s.jsx($r,C(g({},e),{defaultActive:void 0,active:o,onClose:a,onOpen:l}))},js=e=>{const{children:t}=e,{id:n,triggerElRef:r,triggerType:o,flyout:i,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:m,trapFocusMode:h}=Xt();let _={onBlur:l,ref:r};return(o==="click"||h==="action-menu")&&(_.onClick=m),o==="hover"&&(_.onMouseEnter=d,_.onMouseLeave=f),(o==="hover"&&h!=="action-menu"||o==="focus")&&(_.onFocus=a,_["aria-describedby"]=n),(o==="click"||o==="focus"||h==="action-menu")&&(h==="dialog"?_["aria-haspopup"]="dialog":h==="selection-menu"?(_["aria-haspopup"]="listbox",_["aria-autocomplete"]="list"):_["aria-haspopup"]="menu",_["aria-expanded"]=i.status!=="idle",_["aria-controls"]=i.status!=="idle"?n:void 0),s.jsx(s.Fragment,{children:t(_)})},Er=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),zn=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),Cs=()=>{const{mode:e}=c.useContext(zn);return e},zr=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Er),{mode:r,setMode:o,invertMode:i}=c.useContext(zn);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||r,setColorMode:o,invertColorMode:i}),[e,r,o,i,t,n])},ks={root:"_root_r30zs_1"},ct=e=>{const{name:t,defaultName:n,colorMode:r,children:o,className:i}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),m=Cs(),h=zr(),_=!h.theme,v=t||d||h.theme,p=_?m:h.colorMode,y=r==="inverted"?p==="light"?"dark":"light":r||p,w=M(ks.root,i),b=j=>{f(j)};return le(()=>{l(!0)},[]),le(()=>{if(!document||!_)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",v),j||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[v,y,_]),s.jsx(Er.Provider,{value:{theme:v,colorMode:y,setTheme:b},children:s.jsx("div",{className:w,"data-rs-theme":_?void 0:v,"data-rs-color-mode":_||!r&&!a?void 0:y,children:o})})},Ns=e=>{const{defaultMode:t,children:n}=e,[r,o]=c.useState(t||"light"),i=c.useCallback(l=>{Oo(),document.documentElement.setAttribute("data-rs-color-mode",l),o(l)},[]);le(()=>{$t(()=>{qo()})},[r]),le(()=>{const l=document.documentElement.getAttribute("data-rs-color-mode");l&&i(l)},[]);const a=c.useMemo(()=>({mode:r,setMode:i,invertMode:()=>{i(r==="light"?"dark":"light")}}),[r,i]);return s.jsx(zn.Provider,{value:a,children:n})},Tr=c.createContext({}),$s=()=>c.useContext(Tr),Jt=e=>{const{children:t,targetRef:n}=e,r=$s(),o=n||r.scopeRef;return _e.createPortal(s.jsx(ct,{children:t}),(o==null?void 0:o.current)||document.body)};function Es(e){const{children:t}=e,n=c.useRef(null);return s.jsx(Tr.Provider,{value:{scopeRef:n},children:t(n)})}Jt.Scope=Es;const zt={content:"_content_u88xy_1",inner:"_inner_u88xy_5","--position-top":"_--position-top_u88xy_9","--position-top-end":"_--position-top-end_u88xy_10","--position-top-start":"_--position-top-start_u88xy_11","--position-bottom":"_--position-bottom_u88xy_15","--position-bottom-end":"_--position-bottom-end_u88xy_16","--position-bottom-start":"_--position-bottom-start_u88xy_17","--position-start":"_--position-start_u88xy_21","--position-start-top":"_--position-start-top_u88xy_22","--position-start-bottom":"_--position-start-bottom_u88xy_23","--position-end":"_--position-end_u88xy_27","--position-end-top":"_--position-end-top_u88xy_28","--position-end-bottom":"_--position-end-bottom_u88xy_29","--visible":"_--visible_u88xy_57","--animated":"_--animated_u88xy_62"},zs=e=>{const{children:t,className:n,attributes:r}=e,{flyout:o,id:i,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:m,handleMouseLeave:h,handleContentMouseDown:_,handleContentMouseUp:v,contentGap:p,contentClassName:x,contentAttributes:y,trapFocusMode:w}=Xt(),{styles:b,status:j,position:$}=o,[E,T]=c.useState(!1);if(le(()=>{T(!0)},[]),j==="idle"||!E)return null;const z=M(zt.content,j==="visible"&&zt["--visible"],["visible","hidden"].includes(j)&&zt["--animated"],$&&zt[`--position-${$}`]),S=M(zt.inner,n,x);let O;f==="hover"?O="tooltip":w==="dialog"?O="dialog":w==="selection-menu"?O="listbox":w==="action-menu"&&(O="menu");const P=s.jsx("div",{className:z,style:C(g({},b),{"--rs-flyout-gap":p}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?m:void 0,onMouseLeave:f==="hover"?h:void 0,onMouseDown:_,onTouchStart:_,onMouseUp:v,onTouchEnd:v,children:s.jsx("div",C(g({role:O},r),{id:i,"aria-modal":f==="click",style:y==null?void 0:y.style,className:S,children:t}))}),A=Nn(l.current);return s.jsx(Jt,{targetRef:A===document.body?void 0:{current:A},children:P})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?s.jsx($r,g({},e)):s.jsx(ys,g({},e))};Xe.Trigger=js,Xe.Content=zs;const Tn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},Ts={root:"_root_e7w6q_1"},In=e=>{if(!e)return null;const t=ee("--rs-p",e);return{classNames:Ts.root,variables:t}},dt=e=>{var j;const{id:t,forcePosition:n,onOpen:r,onClose:o,active:i,defaultActive:a,children:l,width:d,contentGap:f,variant:m="elevated",triggerType:h="click",position:_="bottom",disableHideAnimation:v,instanceRef:p}=e,x=(j=e.padding)!=null?j:m==="headless"?0:4,y=e.trapFocusMode||(h==="hover"?"content-menu":void 0),w=In(x),b=M(Tn.content,!!d&&Tn["content--has-width"],m&&Tn[`content--variant-${m}`],w==null?void 0:w.classNames);return s.jsx(Xe,{id:t,instanceRef:p,position:_,forcePosition:n,onOpen:r,onClose:o,trapFocusMode:y,triggerType:h,active:i,defaultActive:a,width:d,disableHideAnimation:v,contentGap:f,contentClassName:b,contentAttributes:{style:g({},w==null?void 0:w.variables)},children:l})};dt.Trigger=Xe.Trigger,dt.Content=Xe.Content;const Be={root:"_root_13dku_1",icon:"_icon_13dku_12",content:"_content_13dku_17","--rounded-corners":"_--rounded-corners_13dku_22","--size-small":"_--size-small_13dku_1","--size-medium":"_--size-medium_13dku_1","--size-large":"_--size-large_13dku_1","--color-neutral":"_--color-neutral_13dku_61","--selected":"_--selected_13dku_65","--color-critical":"_--color-critical_13dku_71","--color-primary":"_--color-primary_13dku_81","--disabled":"_--disabled_13dku_102",aligner:"_aligner_13dku_123","--rounded-corners-true--m":"_--rounded-corners-true--m_13dku_1","--rounded-corners-false--m":"_--rounded-corners-false--m_13dku_1","--size-small--m":"_--size-small--m_13dku_1","--size-medium--m":"_--size-medium--m_13dku_1","--size-large--m":"_--size-large--m_13dku_1","--rounded-corners-true--l":"_--rounded-corners-true--l_13dku_1","--rounded-corners-false--l":"_--rounded-corners-false--l_13dku_1","--size-small--l":"_--size-small--l_13dku_1","--size-medium--l":"_--size-medium--l_13dku_1","--size-large--l":"_--size-large--l_13dku_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_13dku_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_13dku_1","--size-small--xl":"_--size-small--xl_13dku_1","--size-medium--xl":"_--size-medium--xl_13dku_1","--size-large--xl":"_--size-large--xl_13dku_1"},Is=e=>s.jsx(Dt,C(g({},e),{side:"inline",className:[Be.aligner,e.className]})),Ms=(e,t)=>{const{icon:n,startSlot:r,endSlot:o,children:i,color:a="primary",selected:l,disabled:d,onClick:f,href:m,size:h="medium",roundedCorners:_,className:v,attributes:p}=e,x=M(Be.root,v,W(Be,"--size",h),W(Be,"--rounded-corners",_),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=Le(h,b=>b==="large"?3:2),w=Le(h,b=>b==="large"?5:4);return s.jsx(Ve,{disabled:d,className:x,attributes:C(g({},p),{"data-rs-aligner-target":!0}),onClick:f,href:m,ref:t,children:s.jsxs(U,{direction:"row",gap:y,align:"center",children:[n&&s.jsx(ce,{svg:n,className:Be.icon,size:w}),!n&&r,i&&s.jsx(U.Item,{grow:!0,className:Be.content,children:i}),o]})})},Mn=c.forwardRef(Ms);Mn.Aligner=Is;const Qt=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),Zt={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},Sn=c.createContext(null),we=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:r="click",trapFocusMode:o="action-menu"}=a,i=Fe(a,["children","position","triggerType","trapFocusMode"]);return s.jsx(dt,C(g({},i),{position:n,padding:0,trapFocusMode:o,triggerType:r,children:t}))},Ss=e=>{const{children:t,attributes:n,className:r}=e,o=c.useContext(Sn),[i]=Ge(),{ref:a}=rt({[i?_r:mr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.close()},[Jo]:()=>{const d=qt();d==null||d.click()}},[o==null?void 0:o.current]),l=M(Zt.menu,r);return s.jsx(dt.Content,{className:l,attributes:C(g({},n),{ref:a}),children:t})},Ps=e=>{const{children:t}=e;return s.jsx("div",{className:Zt.section,role:"group",children:t})},Ir=e=>{const{onClick:t}=e,{handleClose:n}=Xt(),r=o=>{n&&n({closeParents:!0}),t&&t(o)};return s.jsx(Mn,C(g({},e),{roundedCorners:!0,className:Zt.item,attributes:g({role:"menuitem"},e.attributes),onClick:r}))},As=e=>{const{children:t}=e,n=c.useRef();return s.jsx(Sn.Provider,{value:n,children:s.jsx(we,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Fs=e=>{const l=e,{children:t,attributes:n}=l,r=Fe(l,["children","attributes"]),o=c.useContext(Sn),[i]=Ge(),{ref:a}=rt({[i?mr:_r]:()=>{var d;(d=o==null?void 0:o.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return s.jsx(Ir,C(g({},r),{attributes:C(g({},n),{ref:a}),endSlot:s.jsx(ce,{autoWidth:!0,svg:Qt,className:Zt.arrow}),children:t}))},Ls=e=>{const{children:t}=e;return s.jsx(we.Trigger,{children:n=>s.jsx(Fs,{attributes:n,children:t})})};we.Trigger=dt.Trigger,we.Content=Ss,we.Section=Ps,we.Item=Ir,we.SubMenu=As,we.SubTrigger=Ls;const Mr=c.createContext({}),Sr=e=>{const w=e,{children:t,onChange:n,onItemSelect:r,name:o}=w,i=Fe(w,["children","onChange","onItemSelect","name"]),a=c.useRef(null),[l,d]=c.useState(!1),[f,m]=c.useState(!1),h=!!c.Children.toArray(t).filter(Boolean).length,_=c.useCallback(()=>d(!0),[]),v=()=>d(!1);rt({[`${dr},${ur}`]:()=>_()},[_],{ref:a});const p=b=>{n==null||n(b),m(!1),_()},x=b=>{n==null||n({value:b.value,name:o}),r==null||r({value:b.value}),m(!0)},y=b=>{var j;requestAnimationFrame(()=>{f&&(d(!1),m(!1))}),(j=i.onFocus)==null||j.call(i,b)};return s.jsx(Mr.Provider,{value:{onItemClick:x},children:s.jsxs(we,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!f&&h&&l,onClose:v,onOpen:_,disableHideAnimation:!0,children:[s.jsx(we.Trigger,{children:$=>{var E=$,{ref:b}=E,j=Fe(E,["ref"]);return s.jsx(pn,C(g({},i),{name:o,onChange:p,attributes:C(g({},i.attributes),{ref:b}),inputAttributes:C(g({},j),{onFocus:T=>{var z;(z=j.onFocus)==null||z.call(j),y(T)},ref:a,role:"combobox"})}))}}),s.jsx(we.Content,{children:t})]})})},Vs=e=>{const a=e,{value:t,onClick:n}=a,r=Fe(a,["value","onClick"]),{onItemClick:o}=c.useContext(Mr),i=l=>{n==null||n(l),o({value:t})};return s.jsx(we.Item,C(g({},r),{attributes:C(g({},r.attributes),{role:"option"}),onClick:i}))};Sr.Item=Vs;const en={root:"_root_1m0a1_1",img:"_img_1m0a1_13","--variant-faded":"_--variant-faded_1m0a1_20","--color-neutral":"_--color-neutral_1m0a1_21","--color-critical":"_--color-critical_1m0a1_25","--color-positive":"_--color-positive_1m0a1_29","--color-primary":"_--color-primary_1m0a1_33"},Ds=e=>{const{color:t="neutral",variant:n,src:r,size:o=12,squared:i,initials:a,icon:l,alt:d,className:f,attributes:m}=e,h=i?Le(o,x=>x>=24?"large":x>=12?"medium":"small"):"circular",_=Ct(o),v=M(en.root,f,_==null?void 0:_.classNames,t&&en[`--color-${t}`],n&&en[`--variant-${n}`]),p=()=>r?s.jsx("img",{role:a?void 0:"presentation",src:r,alt:d,className:en.img}):l?s.jsx(ce,{svg:l,size:Le(o,x=>Math.ceil(x*.4))}):a;return s.jsx(U,{borderRadius:h,attributes:C(g({},m),{style:g({},_==null?void 0:_.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:v,children:p()})},Pr=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Te={root:"_root_xbb1o_1",dismiss:"_dismiss_xbb1o_21","--actionable":"_--actionable_xbb1o_26","--variant-faded":"_--variant-faded_xbb1o_1","--variant-outline":"_--variant-outline_xbb1o_1","--color-positive":"_--color-positive_xbb1o_47","--color-critical":"_--color-critical_xbb1o_67","--color-primary":"_--color-primary_xbb1o_87","--size-small":"_--size-small_xbb1o_1","--size-medium":"_--size-medium_xbb1o_1","--size-large":"_--size-large_xbb1o_1","--rounded":"_--rounded_xbb1o_133","--hidden":"_--hidden_xbb1o_145",container:"_container_xbb1o_152","--container-overlap":"_--container-overlap_xbb1o_177","--container-position-top-end":"_--container-position-top-end_xbb1o_181","--container-position-bottom-end":"_--container-position-bottom-end_xbb1o_193"},Os=e=>{const{children:t,position:n="top-end",overlap:r,className:o,attributes:i}=e,a=M(Te.container,o,r&&Te["--container-overlap"],n&&Te[`--container-position-${n}`]);return s.jsx("div",C(g({},i),{className:a,children:t}))},Ar=e=>{const{children:t,color:n,rounded:r,size:o="medium",icon:i,endIcon:a,variant:l,hidden:d,href:f,onClick:m,onDismiss:h,dismissAriaLabel:_,className:v,attributes:p}=e,x=!!(m||f),y=o==="large"?4:3.5,w=M(Te.root,v,r&&Te["--rounded"],d&&Te["--hidden"],o&&Te[`--size-${o}`],n&&Te[`--color-${n}`],l&&Te[`--variant-${l}`],x&&Te["--actionable"]);return s.jsxs(Ve,{onClick:m,href:f,className:w,attributes:p,children:[i&&s.jsx(ce,{svg:i,autoWidth:!0,size:y}),t&&s.jsx(te,{variant:o==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&s.jsx(ce,{svg:a,autoWidth:!0,size:y}),h&&s.jsx(Ve,{onClick:h,className:Te.dismiss,as:"span",attributes:{"aria-label":_},children:s.jsx(ce,{svg:Pr,size:y})})]})};Ar.Container=Os;const tn={root:"_root_1ty16_15","rs-reshaped-loader":"_rs-reshaped-loader_1ty16_1",inner:"_inner_1ty16_44","--color-inherit":"_--color-inherit_1ty16_63","--color-primary":"_--color-primary_1ty16_67","--color-positive":"_--color-positive_1ty16_71","--color-critical":"_--color-critical_1ty16_75","--size-small":"_--size-small_1ty16_1","--size-medium":"_--size-medium_1ty16_1","--size-small--m":"_--size-small--m_1ty16_1","--size-medium--m":"_--size-medium--m_1ty16_1","--size-small--l":"_--size-small--l_1ty16_1","--size-medium--l":"_--size-medium--l_1ty16_1","--size-small--xl":"_--size-small--xl_1ty16_1","--size-medium--xl":"_--size-medium--xl_1ty16_1"},Fr=e=>{const{size:t="small",color:n="primary",className:r,attributes:o}=e,i=o==null?void 0:o["aria-label"],a=M(tn.root,r,W(tn,"--size",t),n&&tn[`--color-${n}`]);return s.jsx("span",C(g({},o),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:a,children:s.jsx("span",{className:tn.inner})}))},de={root:"_root_6msy8_1",loader:"_loader_6msy8_37",icon:"_icon_6msy8_45","--icon-position-end":"_--icon-position-end_6msy8_49",text:"_text_6msy8_60","--loading":"_--loading_6msy8_66","--elevated":"_--elevated_6msy8_83","--icon-only":"_--icon-only_6msy8_87","--rounded":"_--rounded_6msy8_93","--size-small":"_--size-small_6msy8_1","--size-medium":"_--size-medium_6msy8_1","--size-large":"_--size-large_6msy8_1","--size-xlarge":"_--size-xlarge_6msy8_1","--full-width":"_--full-width_6msy8_135","--variant-solid":"_--variant-solid_6msy8_149","--color-black":"_--color-black_6msy8_149","--color-white":"_--color-white_6msy8_150","--variant-faded":"_--variant-faded_6msy8_151","--color-neutral":"_--color-neutral_6msy8_151","--color-primary":"_--color-primary_6msy8_152","--color-critical":"_--color-critical_6msy8_153","--color-positive":"_--color-positive_6msy8_154","--color-inherit":"_--color-inherit_6msy8_155","--variant-outline":"_--variant-outline_6msy8_156","--variant-ghost":"_--variant-ghost_6msy8_157","--highlighted":"_--highlighted_6msy8_176","--disabled":"_--disabled_6msy8_529",group:"_group_6msy8_561",aligner:"_aligner_6msy8_622","--size-small--m":"_--size-small--m_6msy8_1","--size-medium--m":"_--size-medium--m_6msy8_1","--size-large--m":"_--size-large--m_6msy8_1","--size-xlarge--m":"_--size-xlarge--m_6msy8_1","--full-width-true--m":"_--full-width-true--m_6msy8_1","--full-width-false--m":"_--full-width-false--m_6msy8_1","--size-small--l":"_--size-small--l_6msy8_1","--size-medium--l":"_--size-medium--l_6msy8_1","--size-large--l":"_--size-large--l_6msy8_1","--size-xlarge--l":"_--size-xlarge--l_6msy8_1","--full-width-true--l":"_--full-width-true--l_6msy8_1","--full-width-false--l":"_--full-width-false--l_6msy8_1","--size-small--xl":"_--size-small--xl_6msy8_1","--size-medium--xl":"_--size-medium--xl_6msy8_1","--size-large--xl":"_--size-large--xl_6msy8_1","--size-xlarge--xl":"_--size-xlarge--xl_6msy8_1","--full-width-true--xl":"_--full-width-true--xl_6msy8_1","--full-width-false--xl":"_--full-width-false--xl_6msy8_1"},qs=e=>{const{children:t,className:n,attributes:r}=e,o=M(de.group,n);return s.jsx("div",C(g({},r),{className:o,role:"group",children:t}))},Bs=e=>s.jsx(Dt,C(g({},e),{side:e.position,className:[de.aligner,e.className]})),Ws=(e,t)=>{const{variant:n="solid",color:r="neutral",elevated:o,highlighted:i,fullWidth:a,loading:l,disabled:d,type:f,href:m,size:h="medium",className:_,children:v,rounded:p,attributes:x,onClick:y,icon:w,endIcon:b}=e,j=(w||b)&&!v,$=M(de.root,_,r&&de[`--color-${r}`],n&&de[`--variant-${n}`],W(de,"--size",h),W(de,"--full-width",a),o&&n!=="ghost"&&de["--elevated"],p&&de["--rounded"],d&&de["--disabled"],l&&de["--loading"],i&&de["--highlighted"],j&&de["--icon-only"]),E=T=>{if(!(T==="start"&&w||T==="end"&&b))return null;const P=M(de.icon,T==="end"&&de["--icon-position-end"]),A=Le(h,q=>q==="large"?5:q==="xlarge"?6:4);return s.jsx(ce,{className:P,svg:T==="start"?w:b,size:A,autoWidth:!0})};return s.jsxs(Ve,{disabled:d||l,className:$,attributes:C(g({},x),{"data-rs-aligner-target":!0}),type:f,onClick:y,href:m,ref:t,children:[l&&s.jsx("div",{className:de.loader,children:s.jsx(Fr,{size:"small",color:"inherit"})}),E("start"),v&&s.jsx("span",{className:de.text,children:v}),E("end")]})},je=c.forwardRef(Ws);je.Group=qs,je.Aligner=Bs;const Tt={root:"_root_def7r_1","--color-primary":"_--color-primary_def7r_6","--color-critical":"_--color-critical_def7r_10","--color-positive":"_--color-positive_def7r_14","--color-inherit":"_--color-inherit_def7r_18","--variant-plain":"_--variant-plain_def7r_22","--disabled":"_--disabled_def7r_26","--variant-underline":"_--variant-underline_def7r_32","--with-icon":"_--with-icon_def7r_48"},Hs=(e,t)=>{const{icon:n,disabled:r,href:o,color:i="primary",variant:a="underline",className:l,children:d,attributes:f,type:m,onClick:h}=e,_=M(Tt.root,l,r&&Tt["--disabled"],a&&Tt[`--variant-${a}`],i&&Tt[`--color-${i}`],n&&Tt["--with-icon"]);return s.jsxs(Ve,{href:o,disabled:r,className:_,attributes:f,type:m,onClick:h,ref:t,children:[n&&s.jsx(ce,{svg:n}),d]})},Lr=c.forwardRef(Hs),Rs=()=>s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),s.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),s.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Us=e=>{const{children:t,onClick:n,href:r,icon:o,disabled:i}=e;return!r&&!n&&!i?s.jsx(te,{variant:"body-3",weight:"medium",color:"neutral",children:t}):s.jsx(Lr,{onClick:n,href:r,icon:o,disabled:i,variant:"plain",color:"inherit",children:t})},Vr=e=>{const{children:t,separator:n,color:r,defaultVisibleItems:o,ariaLabel:i,className:a,attributes:l}=e,d=o&&o>=2?o:null,[f,m]=c.useState(!1),h=M(a),_=c.Children.count(t);let v=0;const p=()=>{m(!0)};return s.jsx("nav",C(g({},l),{"aria-label":i||(l==null?void 0:l["aria-label"]),className:h,children:s.jsx(U,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,y)=>{if(!x)return null;const w=_-(d||0),b=v===0,j=v>w,$=!d||b||j||f,E=v===w;v+=1;let T=null;return $?T=x:E&&(T=s.jsx(je.Aligner,{children:s.jsx(je,{variant:"ghost",size:"small",icon:Rs,onClick:p})})),T===null?null:s.jsxs(U,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||E)&&s.jsx(te,{color:"neutral-faded",children:n||s.jsx(ce,{svg:Qt,size:3})}),s.jsx(te,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:T})]},y)})})}))};Vr.Item=Us;const ut={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},Ks=(e,t)=>{const{padding:n=4}=e,{selected:r,elevated:o,bleed:i,height:a,onClick:l,href:d,children:f,className:m,attributes:h,as:_="div"}=e,v=!!d||!!l,p=_n("medium"),x=rr(i),y=In(n),w=Ct(a),b=M(ut.root,p==null?void 0:p.classNames,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,v&&ut["--actionable"],o&&ut["--elevated"],r&&ut["--selected"],m),j=g(g(g(g({},h==null?void 0:h.style),x==null?void 0:x.variables),y==null?void 0:y.variables),w==null?void 0:w.variables);return v?s.jsx(Ve,{className:b,attributes:C(g({},h),{style:j}),href:d,as:_,onClick:l,ref:t,children:s.jsx("span",{className:ut.content,children:f})}):s.jsx(_,C(g({},h),{onClick:l,href:d,ref:t,className:b,style:j,children:s.jsx("span",{className:ut.content,children:f})}))},Ys=c.forwardRef(Ks),Dr=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"15 18 9 12 15 6"})});var _t=(e=>(e.back="back",e.forward="forward",e))(_t||{});const We={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},Or=e=>{const{type:t,scrollElRef:n,scrollPosition:r,onClick:o,isRTL:i,mounted:a}=e,[l,d]=c.useState(!1),[f,m]=c.useState(!1),h=t===_t.forward,_=t===(i?_t.back:_t.forward),v=M(We.control,_?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return le(()=>{const p=n.current;if(!p||!a)return;let x;const y=Math.abs(r),w=y<=0,b=y+p.clientWidth>=p.scrollWidth-1;return(h?b:w)?(d(!1),x=setTimeout(()=>m(!1),1500)):(m(!0),d(!0)),()=>{x&&clearTimeout(x)}},[r,n.current,a]),s.jsx("div",{className:v,"aria-hidden":"true",children:s.jsx(je,{onClick:o,icon:_?Qt:Dr,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},Gs=e=>{const{children:t,gap:n=3,visibleItems:r,bleed:o,navigationDisplay:i,instanceRef:a,className:l,attributes:d}=e,[f,m]=c.useState(!1),[h,_]=c.useState(0),[v]=Ge(),p=c.useRef(null),x={};typeof o=="object"&&Object.entries(o).forEach(([z,S])=>{x[z]=typeof S=="number"&&S>0});const y=M(We.root,l,...W(We,"--bleed",typeof o=="number"?!0:x)),w=yo(z=>{const S=z.target;_(S.scrollLeft)},16),b=()=>{const S=getComputedStyle(p.current).gap.split(" ")[0];return Number(S.replace("px",""))},j=()=>{const z=p.current;z.scrollBy({left:z.clientWidth+b(),top:0,behavior:"smooth"})},$=()=>{const z=p.current;z.scrollBy({left:-z.clientWidth-b(),top:0,behavior:"smooth"})},E=v?j:$,T=v?$:j;return c.useImperativeHandle(a,()=>({navigateBack:E,navigateForward:T})),le(()=>{m(!0)},[]),s.jsxs("section",C(g({},d),{className:y,style:g(g({},ee("--rs-carousel-items",r)),ee("--rs-carousel-bleed",o)),children:[i!=="hidden"&&s.jsxs(s.Fragment,{children:[s.jsx(Or,{isRTL:v,type:_t.back,scrollElRef:p,scrollPosition:h,onClick:E,mounted:f}),s.jsx(Or,{isRTL:v,type:_t.forward,scrollElRef:p,scrollPosition:h,onClick:T,mounted:f})]}),s.jsx(U,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:p,onScroll:w},children:c.Children.map(t,z=>s.jsx(U.Item,{className:We.item,as:"li",children:z}))})]}))},Xs={root:"_root_1feer_1"},Pn=e=>{const{name:t,value:n,type:r,onChange:o,onFocus:i,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:m,attributes:h}=e,_=M(Xs.root,m);return s.jsx("input",C(g({},h),{className:_,type:r,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:o,onFocus:i||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},qr=c.createContext(null),Js=()=>c.useContext(qr),Br=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=d=>{const{event:f,value:m,checked:h}=d;if(!m)return;let _=[...o];h?_.push(m):_=_.filter(v=>v!==m),t&&t({name:n,value:_,event:f})};return s.jsx(qr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},Qs=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||[]),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(Br,C(g({},e),{value:r,defaultValue:void 0,onChange:i}))},Zs=e=>{const{value:t}=e;return t!==void 0?s.jsx(Br,g({},e)):s.jsx(Qs,g({},e))},ei=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}),Je={root:"_root_187rd_1",decorator:"_decorator_187rd_11",field:"_field_187rd_15",icon:"_icon_187rd_44",input:"_input_187rd_54","--error":"_--error_187rd_60","--disabled":"_--disabled_187rd_91"},ti=e=>{var $;const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,m=Js(),h=Ye(),_=(h==null?void 0:h.hasError)||e.hasError||(m==null?void 0:m.hasError),v=(h==null?void 0:h.disabled)||e.disabled||(m==null?void 0:m.disabled),p=m?($=m.value)==null?void 0:$.includes(n):e.checked,x=m?void 0:e.defaultChecked,y=m?m.name:e.name,w=c.useRef(null),b=M(Je.root,l,_&&Je["--error"],v&&Je["--disabled"]),j=E=>{if(!y)return;const{checked:T}=E.target,z={name:y,value:n,checked:T,event:E};r&&r(z),m!=null&&m.onChange&&m.onChange(z)};return le(()=>{w.current.indeterminate=a||!1},[a,p]),s.jsxs("label",C(g({},d),{className:b,children:[s.jsxs("span",{className:Je.field,children:[s.jsx(Pn,{className:Je.input,type:"checkbox",checked:p,defaultChecked:x,name:y,disabled:v,value:n,onChange:j,onFocus:o,onBlur:i,attributes:C(g({},f),{ref:w})}),s.jsx("div",{className:Je.decorator,children:s.jsx(ce,{svg:ei,className:Je.icon})})]}),t&&s.jsx("span",{className:Je.text,children:t})]}))},ni={root:"_root_1c40o_1"},ri=e=>{const{children:t,padding:n=4,width:r,className:o,attributes:i}=e,a=M(ni.root,o);return s.jsx(U,{attributes:i,className:a,paddingInline:n,width:r,maxWidth:"100%",children:t})},It={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},oi=e=>{const{children:t,align:n,onClose:r,hideCloseButton:o,variant:i,closeAriaLabel:a,className:l,attributes:d}=e,f=M(It.root,l,i&&It[`--variant-${i}`],n&&It[`--align-${n}`],o&&It["--hide-close"]),m=i==="media"?"div":je.Aligner;return s.jsxs("div",C(g({},d),{className:f,children:[t,!o&&s.jsx(m,{className:It.close,children:s.jsx(je,C(g({size:"small"},i==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:r,attributes:{"aria-label":r?a:void 0},icon:Pr}))})]}))},si={root:"_root_r7flr_1"},ii=e=>{const{children:t}=e;return s.jsx("div",{className:si.root,children:t})},Wr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},ai=e=>{const{children:t,active:n,className:r,attributes:o}=e,i=M(Wr.root,n&&Wr["--active"],r);return s.jsx(te,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:o,children:t})},nn={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},li=e=>{const{src:t,alt:n,width:r,height:o,onLoad:i,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:m,attributes:h,imageAttributes:_}=e,[v,p]=c.useState("loading"),x=_n(f),y=mn(r),w=Ct(o),b=M(nn.root,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,d&&nn[`--display-mode-${d}`],m),j=M(nn.image,b),$=M(nn.fallback,b),E=g(g({},y==null?void 0:y.variables),w==null?void 0:w.variables),T=S=>{p("success"),i==null||i(S)},z=S=>{p("error"),a==null||a(S)};return c.useEffect(()=>{p("loading")},[t]),(v==="error"||!t)&&l?typeof l=="string"?s.jsx("img",C(g({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:E})):s.jsx("div",C(g({},h),{className:$,style:E,children:l})):s.jsx("img",C(g(g({},h),_),{src:t,alt:n,role:n?void 0:"presentation",onLoad:T,onError:z,className:j,style:E}))},An=e=>{const[t,n]=c.useState(e||!1),r=c.useCallback(()=>{n(!0)},[]),o=c.useCallback(()=>{n(!1)},[]),i=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:r,deactivate:o,toggle:i}},ci=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),Hr=()=>{const[e,t]=c.useState(!1),n=c.useRef(),r=c.useRef(!1),o=c.useCallback(()=>{const{body:a}=document,l=a.getBoundingClientRect();if(r.current=l.left+l.right<window.innerWidth,n.current=a.style.overflow,a.style.overflow="hidden",r.current){const d=ci();document.body.style.paddingRight=`${d}px`}t(!0)},[t,r,n]),i=c.useCallback(()=>{document.body.style.overflow=n.current||"",r.current&&(document.body.style.paddingRight=""),t(!1)},[t,r,n]);return{scrollLocked:e,lockScroll:o,unlockScroll:i}},mt={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Rr=e=>{const{active:t,children:n,transparent:r,onClose:o,className:i,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),m=c.useRef(!1),h=c.useRef(null),{lockScroll:_,unlockScroll:v}=Hr(),{active:p,activate:x,deactivate:y}=An(t||!1),{active:w,activate:b,deactivate:j}=An(t||!1),$=br(t,f),E=M(mt.root,w&&mt["--visible"],r&&mt["--transparent"],i),T=V=>{if(!f.current)return;const L=f.current.firstChild;if(L)return L.contains(V)},z=()=>{f.current&&(h.current=Ht(f.current))},S=()=>{h.current&&(h.current(),h.current=null)},O=c.useCallback(()=>{!w||!$()||o&&o()},[w,$]),P=V=>{m.current=!T(V.target)},A=V=>{const L=!T(V.target);m.current&&L&&!r&&O()},q=V=>{V.propertyName!=="opacity"||V.target!==V.currentTarget||w||(r||v(),y())};return rt({Escape:O},[O]),c.useEffect(()=>{t&&!p&&x(),!t&&p&&j()},[t,x,j,p]),c.useEffect(()=>{p&&(r||_(),$t(()=>b()))},[p,b,_,r]),c.useEffect(()=>{if(p)return z(),()=>S()},[p]),c.useEffect(()=>()=>{r||v()},[v,r]),le(()=>{d(!0)},[]),!p||!l?null:s.jsx(Jt,{children:s.jsx(Jt.Scope,{children:V=>s.jsx("div",C(g({},a),{ref:V,role:"button",tabIndex:-1,className:E,onMouseDown:P,onMouseUp:A,onTransitionEnd:q,children:s.jsx("div",{className:mt.wrapper,children:s.jsx("div",{className:mt.inner,children:s.jsx("div",{className:mt.content,ref:f,children:typeof n=="function"?n({active:w}):n})})})}))})})},Fn={root:"_root_1cqfg_1","--position-center":"_--position-center_1cqfg_1","--position-bottom":"_--position-bottom_1cqfg_1","--position-start":"_--position-start_1cqfg_1","--position-end":"_--position-end_1cqfg_1","--active":"_--active_1cqfg_88","--position-center--m":"_--position-center--m_1cqfg_1","--position-bottom--m":"_--position-bottom--m_1cqfg_1","--position-start--m":"_--position-start--m_1cqfg_1","--position-end--m":"_--position-end--m_1cqfg_1","--position-center--l":"_--position-center--l_1cqfg_1","--position-bottom--l":"_--position-bottom--l_1cqfg_1","--position-start--l":"_--position-start--l_1cqfg_1","--position-end--l":"_--position-end--l_1cqfg_1","--position-center--xl":"_--position-center--xl_1cqfg_1","--position-bottom--xl":"_--position-bottom--xl_1cqfg_1","--position-start--xl":"_--position-start--xl_1cqfg_1","--position-end--xl":"_--position-end--xl_1cqfg_1"},Ur=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Kr=()=>c.useContext(Ur),di=e=>{const{children:t}=e,{id:n,setTitleMounted:r}=Kr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(te,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},ui=e=>{const{children:t}=e,{id:n,setSubtitleMounted:r}=Kr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(te,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},Ln=e=>{const{children:t,onClose:n,active:r,size:o,padding:i=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,m=$e(),[h,_]=c.useState(!1),[v,p]=c.useState(!1),x=In(i),y=c.useMemo(()=>({titleMounted:h,setTitleMounted:_,subtitleMounted:v,setSubtitleMounted:p,id:m}),[m,v,h]);return s.jsx(Rr,{onClose:n,active:r,transparent:l,children:({active:w})=>{const b=M(Fn.root,d,x==null?void 0:x.classNames,w&&Fn["--active"],W(Fn,"--position",a));return s.jsx(Ur.Provider,{value:y,children:s.jsx("div",C(g({},f),{style:g(g({},x==null?void 0:x.variables),ee("--rs-modal-size",o)),"aria-labelledby":h?`${m}-title`:void 0,"aria-describedby":v?`${m}-subtitle`:void 0,className:b,"aria-modal":"true",role:"dialog",children:t}))})}})};Ln.Title=di,Ln.Subtitle=ui;const Mt={root:"_root_1ux6v_1",value:"_value_1ux6v_9","--duration":"_--duration_1ux6v_23","--size-small":"_--size-small_1ux6v_27","--size-medium":"_--size-medium_1ux6v_31","--color-primary":"_--color-primary_1ux6v_35","--color-critical":"_--color-critical_1ux6v_39","--color-positive":"_--color-positive_1ux6v_43","--color-white":"_--color-white_1ux6v_47"},_i=e=>{const{value:t=0,min:n=0,max:r=100,color:o="primary",size:i="medium",duration:a,className:l,attributes:d}=e,f=M(Mt.root,l,o&&Mt[`--color-${o}`],i&&Mt[`--size-${i}`],!!a&&Mt["--duration"]),m=r-n,h=t-n,p=`${Math.max(n,Math.min(r,h))/m*100-100}%`;return s.jsx("div",C(g({role:"progressbar"},d),{className:f,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":t,children:s.jsx("div",{className:Mt.value,style:{"--rs-progress-value":p,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Yr=c.createContext(null),mi=()=>c.useContext(Yr),Gr=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return s.jsx(Yr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},fi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||null),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(Gr,C(g({},e),{value:r,defaultValue:void 0,onChange:i}))},hi=e=>{const{value:t}=e;return t!==void 0?s.jsx(Gr,g({},e)):s.jsx(fi,g({},e))},ot={root:"_root_1o7zq_1",input:"_input_1o7zq_10",decorator:"_decorator_1o7zq_10",field:"_field_1o7zq_14","--error":"_--error_1o7zq_48",text:"_text_1o7zq_60","--disabled":"_--disabled_1o7zq_71"},gi=e=>{const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),m=mi(),h=(f==null?void 0:f.hasError)||e.hasError||(m==null?void 0:m.hasError),_=(f==null?void 0:f.disabled)||e.disabled||(m==null?void 0:m.disabled),v=m?m.value===n:e.checked,p=m?void 0:e.defaultChecked,x=m?m.name:e.name,y=M(ot.root,a,h&&ot["--error"],_&&ot["--disabled"]),w=b=>{if(!x)return;const{checked:j}=b.target,$={name:x,value:n,checked:j,event:b};r&&r($),m!=null&&m.onChange&&m.onChange($)};return s.jsxs("label",C(g({},l),{className:y,children:[s.jsxs("span",{className:ot.field,children:[s.jsx(Pn,{className:ot.input,type:"radio",checked:v,defaultChecked:p,name:x,disabled:_,value:n,onChange:w,onFocus:o,onBlur:i,attributes:d}),s.jsx("div",{className:ot.decorator})]}),t&&s.jsx("span",{className:ot.text,children:t})]}))},Xr={short:4e3,long:8e3},St=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Jr={queues:St.reduce((e,t)=>g({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},rn=c.createContext(Jr),vi=()=>{const{add:e,hide:t}=c.useContext(rn);return c.useMemo(()=>({show:e,hide:t}),[e,t])},Oe={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},bi=e=>{const{size:t="small",text:n,children:r,color:o="inverted",icon:i,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:m}=e;let h=o==="inverted"||o==="neutral"?"elevation-overlay":o;o==="neutral"&&(h=f?"neutral":"elevation-overlay");const _=o==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",p=t==="large";let x=[];l&&(x=Array.isArray(l)?l:[l]);const y=(a||n)&&s.jsxs(s.Fragment,{children:[a&&s.jsxs(te,{variant:"body-3",weight:"bold",as:v,children:[a," "]}),s.jsx(te,{variant:"body-3",as:v,children:n})]}),w=s.jsxs(U,{backgroundColor:h,borderColor:_,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:p?"start":"center",className:Oe.toast,attributes:m,children:[i&&s.jsx(ce,{size:5,svg:i,className:Oe.icon}),d&&!i&&s.jsx(U.Item,{children:d}),s.jsx(U.Item,{grow:!0,children:s.jsxs(U,{direction:p?"column":"row",align:p?"start":"center",gap:3,children:[s.jsx(U.Item,{grow:!0,children:y&&r||t!=="small"?s.jsxs(U,{gap:.5,children:[y,r&&s.jsx(U,{gap:3,children:r})]}):y||r}),x.length&&s.jsx(U,{direction:"row",align:"center",gap:2,children:x.map((b,j)=>{const $=t==="large"?j===0:j===x.length-1,T={variant:$?"solid":"ghost",size:"small",color:$?o==="neutral"||o==="inverted"?"neutral":"white":"inherit",elevated:o!=="neutral"};return b.type===je?c.createElement(je,C(g(g({},T),b.props),{key:j})):b})})]})})]});return o==="inverted"?s.jsx(ct,{colorMode:"inverted",children:w}):w},pi=e=>{const{toastProps:t,id:n,status:r,inspected:o,index:i}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(rn),[m,h]=c.useState(),_=c.useRef(),v=c.useRef(!1),p=c.useRef(null),x=c.useRef(null),y=r==="entered",w=M(Oe.container,y&&Oe["container--visible"],i===0&&Oe[`container--index-${i}`],!o&&(i===1||i===2)&&Oe[`container--index-${i}`],!o&&i>=3&&Oe["container--index-overflow"]),b=c.useCallback(()=>{_.current&&clearTimeout(_.current)},[]),j=c.useCallback(()=>{b();const E=typeof a=="string"?Xr[a]:a;a!==0&&(_.current=setTimeout(()=>{d(n)},E!=null?E:Xr.short))},[d,n,a,b]),$=E=>{E.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(o?b():j())},[o,j,b,y]),c.useEffect(()=>{x.current&&h(x.current.clientHeight),l(n),j()},[l,n,j]),c.useEffect(()=>{x.current&&(y?p.current=Ht(x.current,{includeTrigger:!0,mode:"content-menu"}):p.current&&fr()&&(p.current(),p.current=null))},[y]),c.useEffect(()=>{if(!y||i>0)return;const E=()=>{v.current=!0,$t(()=>{v.current=!1}),x.current&&h(x.current.clientHeight)};return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[y,i]),s.jsx("li",{className:w,style:{height:r==="entered"?`calc(${m}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:v.current?"0s":void 0},onTransitionEnd:$,onFocus:b,onBlur:j,children:s.jsx("span",{className:Oe.wrapper,children:s.jsx(bi,C(g({},t),{collapsed:i>0&&!o,attributes:{ref:x}}))})})},xi=e=>{const{position:t}=e,{queues:n,options:r}=c.useContext(rn),[o,i]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:m}=(r==null?void 0:r[t])||{},h=M(Oe.region,Oe[`region--position-${t}`]),_=d.filter(b=>b.status==="entered").length;let v=0;const p=()=>{a.current=!0},x=b=>{let j=b.target,$=!1;for(;j&&j!==l.current&&!$;)$=j.matches(hr),j=j.parentElement;$||i(E=>!E),a.current=!1},y=()=>{a.current||i(!0)},w=()=>{a.current||i(!1)};return c.useEffect(()=>{d.length===0&&i(!1)},[d.length]),d.length?s.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:l,onTouchStart:p,onClick:x,onMouseEnter:y,onMouseLeave:w,style:{width:f},children:d.map((b,j)=>{const $=_-j+v-1;return b.status!=="entered"&&(v+=1),s.jsx(pi,C(g({},b),{index:$,inspected:o||!!m}),b.id)})}):null};let wi=0;const yi=()=>`__rs-toast-${wi++}`,ji=(e,t)=>{let n;switch(t.type){case"add":const r=t.payload.toastProps||{},{position:o="bottom-end"}=r,i=Fe(r,["position"]);return C(g({},e),{[o]:[...e[o],{id:t.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:a}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(m=>m.status!=="entering"?m:m.id===a?C(g({},m),{status:"entered"}):m)}),n;case"hide":const{id:l}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(m=>m.id===l?C(g({},m),{status:"exiting"}):m)}),n;case"remove":const{id:d}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].filter(m=>m.id!==d)}),n}},Ci=e=>{const{children:t,options:n}=e,[r,o]=c.useReducer(ji,Jr.queues),i=c.useCallback(m=>{const h=yi();return console.log("add"),o({type:"add",payload:{toastProps:m,id:h}}),h},[]),a=c.useCallback(m=>{o({type:"show",payload:{id:m}})},[]),l=c.useCallback(m=>{console.log("hide"),o({type:"hide",payload:{id:m}})},[]),d=c.useCallback(m=>{o({type:"remove",payload:{id:m}})},[]),f=c.useMemo(()=>({queues:r,add:i,show:a,hide:l,remove:d,inspecting:!1,options:n}),[r,a,l,i,d,n]);return s.jsxs(rn.Provider,{value:f,children:[t,St.map(m=>s.jsx(xi,{position:m},m))]})},ki=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(xn,"true")},t=()=>{document.documentElement.removeAttribute(xn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},tc="",Ni={root:"_root_18j53_1"},$i=e=>{const{children:t,defaultRTL:n,defaultViewport:r="s",toastOptions:o}=e,i=ms(n);return ki(),s.jsx(kn.Provider,{value:{rtl:i,defaultViewport:r},children:s.jsx(us,{children:s.jsx(Ci,{options:o,children:t})})})},Ei=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:r,className:o}=e,i=M(Ni.root,o);return s.jsx(Ns,{defaultMode:r,children:s.jsx(ct,{name:t,defaultName:n,className:i,children:s.jsx($i,C(g({},e),{children:e.children}))})})},Pt={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},zi=e=>{const{children:t,backgroundSlot:n,position:r="cover",attributes:o,className:i,scrimClassName:a}=e,l=M(Pt.root,!!n&&Pt["--with-background"],r&&Pt[`--position-${r}`],i),d=M(Pt.scrim,a);return s.jsxs("div",C(g({},o),{className:l,children:[n,s.jsx("div",{className:d,children:s.jsx("div",{className:Pt.content,children:t})})]}))},Ti=()=>s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ie={root:"_root_t5eyu_1",input:"_input_t5eyu_18",slot:"_slot_t5eyu_48",icon:"_icon_t5eyu_56",arrow:"_arrow_t5eyu_68","--size-medium":"_--size-medium_t5eyu_1","--size-large":"_--size-large_t5eyu_1","--size-xlarge":"_--size-xlarge_t5eyu_1","--variant-faded":"_--variant-faded_t5eyu_123","--variant-headless":"_--variant-headless_t5eyu_132","--status-error":"_--status-error_t5eyu_137","--placeholder":"_--placeholder_t5eyu_152","--disabled":"_--disabled_t5eyu_156","--size-medium--m":"_--size-medium--m_t5eyu_1","--size-large--m":"_--size-large--m_t5eyu_1","--size-xlarge--m":"_--size-xlarge--m_t5eyu_1","--size-medium--l":"_--size-medium--l_t5eyu_1","--size-large--l":"_--size-large--l_t5eyu_1","--size-xlarge--l":"_--size-xlarge--l_t5eyu_1","--size-medium--xl":"_--size-medium--xl_t5eyu_1","--size-large--xl":"_--size-large--xl_t5eyu_1","--size-xlarge--xl":"_--size-xlarge--xl_t5eyu_1"},Ii=e=>{var q,V;const{onChange:t,onClick:n,onFocus:r,onBlur:o,name:i,value:a,defaultValue:l,placeholder:d,options:f,children:m,icon:h,startSlot:_,size:v="medium",variant:p="outline",className:x,attributes:y}=e,[w,b]=c.useState(a===void 0?!l:!a),j=Ye(),$=$e(e.id),E=((q=j==null?void 0:j.attributes)==null?void 0:q.id)||((V=e.inputAttributes)==null?void 0:V.id)||$,T=(j==null?void 0:j.disabled)||e.disabled,z=(j==null?void 0:j.hasError)||e.hasError,S=g(g({},e.inputAttributes),j==null?void 0:j.attributes),O=M(Ie.root,x,v&&W(Ie,"--size",v),z&&Ie["--status-error"],T&&Ie["--disabled"],w&&f&&Ie["--placeholder"],p&&Ie[`--variant-${p}`]),P=L=>{const Q=L.target.value;a===void 0&&b(!Q),t&&t({name:i,value:Q,event:L})};c.useEffect(()=>{a!==void 0&&b(!a)},[a]);const A=(_||h)&&s.jsx("div",{className:Ie.slot,children:h?s.jsx(ce,{size:Le(v,L=>L==="large"?5:L==="xlarge"?6:4),svg:h,className:Ie.icon}):_});return s.jsxs("div",C(g({},y),{className:O,children:[f?s.jsxs(s.Fragment,{children:[A,s.jsxs("select",C(g({},S),{className:Ie.input,disabled:T,name:i,value:a,defaultValue:l,onChange:P,onFocus:r||(S==null?void 0:S.onFocus),onBlur:o||(S==null?void 0:S.onBlur),id:E,children:[d&&s.jsx("option",{value:"",children:d}),f.map(L=>s.jsx("option",{value:L.value,disabled:L.disabled,children:L.label},L.value))]}))]}):s.jsxs(s.Fragment,{children:[s.jsxs(Ve,{className:Ie.input,disabled:T,onClick:n,attributes:C(g({},S),{onFocus:r||(S==null?void 0:S.onFocus),onBlur:o||(S==null?void 0:S.onBlur)}),children:[A,m||(d?s.jsx(te,{color:"neutral-faded",children:d}):null)]}),s.jsx("input",{type:"hidden",value:a,name:i})]}),s.jsx("div",{className:Ie.arrow,children:s.jsx(ce,{svg:Ti,color:T?"disabled":"neutral-faded",size:Le(v,L=>L==="large"||L==="xlarge"?5:4)})})]}))},Mi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Si=e=>{const{borderRadius:t="small",width:n,height:r,className:o,attributes:i}=e,a=M(Mi.root,o);return s.jsx(U,{backgroundColor:"disabled",width:n,height:r,borderRadius:t,className:a,attributes:i})},Qe={root:"_root_k9a0x_1",bar:"_bar_k9a0x_10",input:"_input_k9a0x_19",selection:"_selection_k9a0x_28",tooltip:"_tooltip_k9a0x_34",thumb:"_thumb_k9a0x_50","thumb--active":"_thumb--active_k9a0x_1","--disabled":"_--disabled_k9a0x_104"},Pi=(e,t)=>{const{name:n,value:r,disabled:o,active:i,position:a,max:l,min:d,onChange:f,onDragStart:m,renderValue:h}=e,_=c.useId(),v=M(Qe.thumb,i&&Qe["thumb--active"]),p=h?h({value:r}):r,x=y=>{f(+y.target.value)};return s.jsxs(s.Fragment,{children:[s.jsx("input",{className:Qe.input,type:"range",name:n,value:r,onChange:x,disabled:o,max:l,min:d,"aria-labelledby":_}),s.jsx("div",{ref:t,className:v,onMouseDown:m,onTouchStart:m,style:{insetInlineStart:`${a}%`},id:_,"aria-hidden":"true",children:s.jsx(ct,{className:Qe.tooltip,colorMode:"inverted",children:s.jsx(te,{variant:"caption-1",weight:"medium",children:p})})})]})},Qr=c.forwardRef(Pi),Zr=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,Vn=(e,t)=>Math.round(e/t)*t,Dn=e=>{var Ce;const{name:t,range:n,max:r,min:o,step:i=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:m}=e,h=n&&e.minValue!==void 0?Vn(e.minValue,i):void 0,_=Vn(n?e.maxValue:e.value,i),v=c.useRef(null),p=c.useRef(null),x=c.useRef(null),[y,w]=c.useState(null),[b]=Ge(),j=Ye(),$=$e(),E=((Ce=j==null?void 0:j.attributes)==null?void 0:Ce.id)||$,T=`${E}-min`,z=`${E}-max`,S=(j==null?void 0:j.disabled)||e.disabled,O=M(Qe.root,S&&Qe["--disabled"],f),P=c.useCallback(se=>{if(!v.current)return;const H=v.current.clientWidth;let G=(se-v.current.getBoundingClientRect().left)/H;b&&(G=1-G);let ie=(r-o)*G+o;return ie=Math.max(o,Math.min(r,ie)),Vn(ie,i)},[r,o,b,i]),A=se=>(se-o)/(r-o)*100,q=c.useCallback((se,H)=>{if(!n)return;const Y=H!=null&&H.commit?l:a;Y==null||Y({minValue:se,maxValue:_,name:t})},[_,t,n]),V=c.useCallback((se,H)=>{if(n){const G=H!=null&&H.commit?l:a;G==null||G({minValue:h,maxValue:se,name:t});return}const Y=H!=null&&H.commit?l:a;Y==null||Y({value:se,name:t})},[h,t,n]),L=({nativeEvent:se})=>{if(S)return;let H,Y;const G=Zr(se),ie=P(G);[{ref:p,id:T},{ref:x,id:z}].forEach(X=>{if(!X.ref.current)return;const pe=X.ref.current,ge=Math.abs(pe.getBoundingClientRect().left-G);(H===void 0||ge<=H)&&(H=ge,Y=X.id)}),!(!Y||ie===void 0)&&(Y===T&&q(ie),Y===z&&V(ie),w(Y))},Q=()=>{S||w(T)},fe=()=>{S||w(z)},he=c.useCallback(()=>{y===T&&h!==void 0&&q(h,{commit:!0}),y===z&&V(_,{commit:!0}),w(null)},[h,_,q,V,y,T,z]),oe=c.useCallback(se=>{if(!y)return;const H=Zr(se),Y=P(H);if(Y===void 0)return;let G=y;y===T&&Y>_&&(G=z),y===z&&h&&Y<h&&(G=T),G===T&&q(Y),G===z&&V(Y),y!==G&&w(G)},[y,h,_,P,V,q,z,T]);c.useEffect(()=>(window.addEventListener("mouseup",he),window.addEventListener("touchend",he),window.addEventListener("mousemove",oe),window.addEventListener("touchmove",oe),()=>{window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe)}),[he,oe]);const Z=h&&A(h),He=A(_);return s.jsxs("div",C(g({},m),{className:O,onMouseDown:L,onTouchStart:L,children:[s.jsx("div",{className:Qe.bar,ref:v,children:s.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${Z||0}%`,width:`${He-(Z||0)}%`}})}),h!==void 0&&Z!==void 0&&s.jsx(Qr,{id:T,active:T===y,name:t,disabled:S,onChange:q,value:h,onDragStart:Q,position:Z,max:r,min:o,ref:p,renderValue:d}),s.jsx(Qr,{id:z,active:z===y,name:t,disabled:S,onChange:V,value:_,onDragStart:fe,position:He,max:r,min:o,ref:x,renderValue:d})]}))},Ai=e=>{const{min:t,max:n,onChange:r,range:o}=e,i="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,a="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(o?n:t),[l,d]=c.useState(i),[f,m]=c.useState(a),h=v=>{o||(m(v.value),r==null||r(v))},_=v=>{o&&(d(v.minValue),m(v.maxValue),r==null||r(v))};return o?s.jsx(Dn,C(g({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:_})):s.jsx(Dn,C(g({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Fi=e=>{const o=e,{min:t=0,max:n=100}=o,r=Fe(o,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?s.jsx(Dn,C(g({},r),{min:t,max:n})):s.jsx(Ai,C(g({},r),{min:t,max:n}))},ft={root:"_root_1zzd0_1",input:"_input_1zzd0_10",area:"_area_1zzd0_22",thumb:"_thumb_1zzd0_26","root--size-small":"_root--size-small_1zzd0_82","root--reversed":"_root--reversed_1zzd0_102"},Li=e=>{var b;const{children:t,name:n,checked:r,size:o,reversed:i,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:m,attributes:h}=e,_=M(ft.root,o&&ft[`root--size-${o}`],i&&ft["root--reversed"],m),v=Ye(),p=$e((v==null?void 0:v.attributes.id)||e.id||((b=e.inputAttributes)==null?void 0:b.id)),x=g(g({},e.inputAttributes),v==null?void 0:v.attributes),y=(v==null?void 0:v.disabled)||e.disabled,w=j=>{l&&l({name:n,event:j,checked:j.target.checked})};return s.jsxs("label",C(g({},h),{className:_,children:[s.jsx("input",C(g({type:"checkbox"},x),{className:ft.input,name:n,checked:r,defaultChecked:a,disabled:y,onChange:w,onFocus:d||(x==null?void 0:x.onFocus),onBlur:f||(x==null?void 0:x.onBlur),id:p})),s.jsx("span",{className:ft.area,"aria-hidden":"true",children:s.jsx("span",{className:ft.thumb})}),t&&s.jsx(te,{variant:"body-3",weight:"medium",children:t})]}))},Vi={literal:"_literal_tfgjf_1",unit:"_unit_tfgjf_5","literal--m":"_literal--m_tfgjf_1","unit--m":"_unit--m_tfgjf_1","literal--l":"_literal--l_tfgjf_1","unit--l":"_unit--l_tfgjf_1","literal--xl":"_literal--xl_tfgjf_1","unit--xl":"_unit--xl_tfgjf_1"},Di=e=>{if(!e)return null;const t=ee("--rs-min-w",e);return{classNames:W(Vi,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ze={root:"_root_1we4q_1",table:"_table_1we4q_14",row:"_row_1we4q_21",cell:"_cell_1we4q_25","cell--align-start":"_cell--align-start_1we4q_1","cell--align-center":"_cell--align-center_1we4q_1","cell--align-end":"_cell--align-end_1we4q_1","--row-highlighted":"_--row-highlighted_1we4q_49","--border-outer":"_--border-outer_1we4q_53","--border-column":"_--border-column_1we4q_57"},eo=e=>{const{minWidth:t,rowSpan:n,colSpan:r,align:o,tagName:i,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:m}=e,h=e.width==="auto"?"0px":e.width,_=mn(h),v=Di(t||h),p=M(Ze.cell,_==null?void 0:_.classNames,v==null?void 0:v.classNames,o&&Ze[`cell--align-${o}`]),x=g(g(g(g({},_==null?void 0:_.variables),v==null?void 0:v.variables),ee("--rs-table-p-vertical",d!=null?d:a)),ee("--rs-table-p-horizontal",l!=null?l:a));return s.jsx(i,C(g({},m),{className:p,rowSpan:n,colSpan:r,style:x,children:f}))},Oi=e=>s.jsx(eo,C(g({},e),{tagName:"td"})),qi=e=>s.jsx(eo,C(g({},e),{tagName:"th"})),Bi=e=>{const{highlighted:t,children:n,attributes:r}=e,o=M(Ze.row,t&&Ze["--row-highlighted"]);return s.jsx("tr",C(g({},r),{className:o,children:n}))},On=e=>s.jsx("tbody",{children:e.children}),to=e=>s.jsx("thead",{children:e.children}),ht=e=>{const{children:t,border:n,columnBorder:r,className:o,attributes:i}=e,a=M(Ze.root,o,n&&Ze["--border-outer"],r&&Ze["--border-column"]),[l]=c.Children.toArray(t);return s.jsx("div",C(g({},i),{className:a,children:s.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===On||l.type===to)?t:s.jsx(On,{children:t})})}))};ht.Cell=Oi,ht.Heading=qi,ht.Row=Bi,ht.Body=On,ht.Head=to;const no=c.createContext({}),Wi=no.Provider,qn=e=>{const r=c.useContext(no),{id:t}=r,n=Fe(r,["id"]);return C(g({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},ro=e=>{const{children:t,value:n,onChange:r,onSilentChange:o,itemWidth:i,variant:a,name:l,direction:d="row",size:f="medium"}=e,m=$e(),h=c.useRef(null),_=c.useRef(h.current),v=c.useRef(null),[p,x]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=w=>{w!==void 0&&o&&o({value:w,name:l})};return s.jsx(Wi,{value:{value:n,name:l,size:f,direction:d,itemWidth:i,variant:a,onChange:r,id:m,setDefaultValue:y,elActiveRef:h,elPrevActiveRef:_,elScrollableRef:v,selection:p,setSelection:x},children:t})},Hi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t),i=({value:l})=>{o(l),n&&n({value:l})},a=({value:l})=>{o(l)};return s.jsx(ro,C(g({},e),{onChange:i,onSilentChange:a,value:r,defaultValue:void 0}))},ne={root:"_root_mz4y6_1",list:"_list_mz4y6_12",inner:"_inner_mz4y6_16",listItem:"_listItem_mz4y6_23",button:"_button_mz4y6_30",buttonContent:"_buttonContent_mz4y6_46",icon:"_icon_mz4y6_59",radio:"_radio_mz4y6_64","--item-active":"_--item-active_mz4y6_72",selector:"_selector_mz4y6_77","--selector-hidden":"_--selector-hidden_mz4y6_95","--selector-animated":"_--selector-animated_mz4y6_99",next:"_next_mz4y6_104",prev:"_prev_mz4y6_105",panel:"_panel_mz4y6_125","--panel-hidden":"_--panel-hidden_mz4y6_133","--direction-row":"_--direction-row_mz4y6_137","--direction-column":"_--direction-column_mz4y6_205",item:"_item_mz4y6_223","--variant-borderless":"_--variant-borderless_mz4y6_258","--variant-pills":"_--variant-pills_mz4y6_259","--variant-pills-elevated":"_--variant-pills-elevated_mz4y6_260","--size-medium":"_--size-medium_mz4y6_331","--size-large":"_--size-large_mz4y6_336","--item-width-equal":"_--item-width-equal_mz4y6_341","--cut-off-start":"_--cut-off-start_mz4y6_360","--cut-off-end":"_--cut-off-end_mz4y6_361","--cut-off-both":"_--cut-off-both_mz4y6_382"},Ri=(e,t)=>{const{value:n,children:r,icon:o,href:i,attributes:a}=e,{onChange:l,panelId:d,name:f,size:m,value:h,selection:_,elActiveRef:v,elPrevActiveRef:p,elScrollableRef:x}=qn(n),y=c.useRef(null),w=h===n,b=w&&_.status==="idle",j=M(ne.item,b&&ne["--item-active"]),$=!!f,E={role:"tab",tabIndex:w?0:-1,"aria-selected":w},T=c.useCallback(()=>{if(!("current"in y))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");p.current=v.current,v.current=y.current},[v,p]),z=()=>{var L,Q,fe;if(i&&!l)return;const S=x.current,O=(L=y.current)==null?void 0:L.parentElement,P=(Q=v.current)==null?void 0:Q.parentElement;if(T(),l&&l({value:n,name:f}),!S||!O||!P||S.scrollWidth===S.clientWidth)return;const A=O.offsetLeft<P.offsetLeft,q=(O.offsetLeft-S.scrollLeft)/S.clientWidth;(A?q<.3:q>.5)&&((fe=y.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{w&&T()},[w,T]),s.jsx("div",C(g({},a),{className:j,ref:y,role:"presentation",children:s.jsxs(Ve,{ref:t,href:i,insetFocus:!0,onClick:f?void 0:z,className:ne.button,as:f?"label":void 0,attributes:C(g({},!$&&E),{"aria-controls":d}),children:[f&&s.jsx(Pn,{type:"radio",name:f,value:n,checked:b,onChange:z,className:ne.radio}),s.jsxs("span",{className:ne.buttonContent,children:[o&&s.jsx(ce,{svg:o,className:ne.icon,size:4}),r&&s.jsx(te,{variant:m==="large"?"body-2":"body-3",children:r})]})]})}))},oo=c.forwardRef(Ri),so=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:so(e.parentElement,t),Ui=e=>{const{children:t,className:n,attributes:r}=e,{value:o,setDefaultValue:i,itemWidth:a,variant:l,name:d,direction:f,size:m,selection:h,setSelection:_,elActiveRef:v,elPrevActiveRef:p,elScrollableRef:x}=qn(),[y]=Ge(),[w,b]=c.useState(null),j=M(ne.root,m&&ne[`--size-${m}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],w&&ne[`--cut-off-${w}`],n),$=M(ne.selector,h.status==="idle"&&ne["--selector-hidden"],h.status==="animated"&&ne["--selector-animated"]),E=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},T=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},z=()=>{_(P=>C(g({},P),{status:"idle"}))},S=c.useCallback(P=>{if(!x.current)return null;const A=so(P,x.current);return A?{scaleX:A.clientWidth,scaleY:A.clientHeight,top:A.offsetTop,left:A.offsetLeft}:null},[x]),{ref:O}=rt({"ArrowLeft, ArrowUp":P=>{d||(P.preventDefault(),ts(x.current))},"ArrowRight, ArrowDown":P=>{d||(P.preventDefault(),es(x.current))},Home:P=>{d||(P.preventDefault(),ns(x.current))},End:P=>{d||(P.preventDefault(),rs(x.current))}});return le(()=>{if(o)return;const P=c.Children.toArray(t)[0];!P||P.type!==oo||i(P.props.value)},[o]),le(()=>{if(!p.current||p.current===v.current)return;const P=S(p.current);P&&_(C(g({},P),{status:"prepared"}))},[o,S]),le(()=>{if(h.status!=="prepared"||!v.current)return;const P=S(v.current);P&&_(C(g({},P),{status:"animated"}))},[h]),le(()=>{const P=x.current;if(!P||f==="column")return;const A=()=>{P.clientWidth<P.scrollWidth||b(null);const L=P.scrollLeft*(y?-1:1),Q=L>1,fe=L+P.clientWidth<P.scrollWidth-1;if(fe&&Q)return b("both");if(Q)return b("start");if(fe)return b("end")},q=jo(A,100);return requestAnimationFrame(()=>{A()}),window.addEventListener("resize",q),P.addEventListener("scroll",q),()=>{window.removeEventListener("resize",q),P.removeEventListener("scroll",q)}},[y]),s.jsxs("div",C(g({},r),{className:j,children:[s.jsx("div",{className:ne.inner,ref:x,children:s.jsxs("div",{className:ne.list,role:"tablist",ref:O,children:[c.Children.map(t,(P,A)=>P?s.jsx("div",{className:ne.listItem,children:P},P.props.value||P.key||A):null),s.jsx("div",{onTransitionEnd:z,className:$,style:{"--rs-tab-selection-x":h.left,"--rs-tab-selection-y":h.top,"--rs-tab-selection-scale-x":h.scaleX,"--rs-tab-selection-scale-y":h.scaleY}})]})}),(w==="start"||w==="both")&&s.jsx("span",{className:ne.prev,children:s.jsx(je,{onClick:T,size:"small",icon:Dr,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(w==="end"||w==="both")&&s.jsx("span",{className:ne.next,children:s.jsx(je,{onClick:E,size:"small",icon:Qt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},Ki=e=>{const{value:t,children:n}=e,{value:r,panelId:o,buttonId:i}=qn(t),a=t===r,l=M(ne.panel,!a&&ne["--panel-hidden"]);return s.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:o,"aria-labelledby":i,children:a&&n})},on=e=>{const{value:t}=e;return t!==void 0?s.jsx(ro,g({},e)):s.jsx(Hi,g({},e))};on.Item=oo,on.List=Ui,on.Panel=Ki;const gt={root:"_root_13usd_1",input:"_input_13usd_5","--size-medium":"_--size-medium_13usd_1","--size-large":"_--size-large_13usd_1","--size-xlarge":"_--size-xlarge_13usd_1","--variant-faded":"_--variant-faded_13usd_69","--variant-headless":"_--variant-headless_13usd_80","--status-error":"_--status-error_13usd_87","--size-medium--m":"_--size-medium--m_13usd_1","--size-large--m":"_--size-large--m_13usd_1","--size-xlarge--m":"_--size-xlarge--m_13usd_1","--size-medium--l":"_--size-medium--l_13usd_1","--size-large--l":"_--size-large--l_13usd_1","--size-xlarge--l":"_--size-xlarge--l_13usd_1","--size-medium--xl":"_--size-medium--xl_13usd_1","--size-large--xl":"_--size-large--xl_13usd_1","--size-xlarge--xl":"_--size-xlarge--xl_13usd_1"},io=e=>{var $,E;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:m,attributes:h}=e,_=Ye(),v=$e(e.id),p=(($=_==null?void 0:_.attributes)==null?void 0:$.id)||((E=e.inputAttributes)==null?void 0:E.id)||v,x=(_==null?void 0:_.disabled)||e.disabled,y=(_==null?void 0:_.hasError)||e.hasError,w=g(g({},e.inputAttributes),_==null?void 0:_.attributes),b=M(gt.root,d&&W(gt,"--size",d),y&>["--status-error"],x&>["--disabled"],f&>[`--variant-${f}`],m),j=T=>{t&&t({name:o,value:T.target.value,event:T})};return s.jsx("div",C(g({},h),{"data-rs-aligner-target":!0,className:b,children:s.jsx("textarea",C(g({},w),{className:gt.input,rows:3,disabled:x,name:o,placeholder:l,value:i,defaultValue:a,onChange:j,onFocus:n||(w==null?void 0:w.onFocus),onBlur:r||(w==null?void 0:w.onBlur),id:p}))}))};io.Aligner=e=>s.jsx(Dt,g({},e));const Bn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Wn=e=>{const{children:t,markerSlot:n,className:r,attributes:o}=e,i=n!==null,a=M(Bn.item,!i&&Bn["item--full-width"],r);return s.jsxs(U,{as:"li",direction:"row",align:"stretch",gap:3,attributes:o,className:a,children:[i&&s.jsx("span",{className:Bn.marker,children:n}),s.jsx(U.Item,{grow:!0,children:t})]})},ao=e=>{const{children:t,className:n,attributes:r}=e,o=M(n);return s.jsx("ul",C(g({},r),{className:o,children:c.Children.map(t,(i,a)=>(i==null?void 0:i.type)===Wn?i:s.jsx(Wn,{children:i},a))}))};ao.Item=Wn;const Yi={root:"_root_9090g_1"},Gi=e=>{const{id:t,text:n,children:r,onOpen:o,onClose:i,position:a="bottom",active:l}=e;return s.jsxs(Xe,{id:t,active:l,position:a,onOpen:o,onClose:i,triggerType:"hover",children:[s.jsx(Xe.Trigger,{children:r}),s.jsx(Xe.Content,{children:s.jsx(ct,{colorMode:"inverted",children:s.jsx(te,{variant:"caption-1",className:Yi.root,children:n})})})]})},vt={m:660,l:900,xl:1280},lo={s:`(max-width: ${vt.m-1}px)`,m:`(min-width: ${vt.m}px) and (max-width: ${vt.l-1}px)`,l:`(min-width: ${vt.l}px) and (max-width: ${vt.xl-1}px)`,xl:`(min-width: ${vt.xl}px)`},Xi=e=>{const{defaultViewport:t}=c.useContext(kn),[n,r]=c.useState(t);return le(()=>{const i=Object.keys(lo).map(a=>{const l=window.matchMedia(lo[a]);return{mq:l,handler:()=>l.matches&&r(a)}});return i.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{i.forEach(({handler:a,mq:l})=>{l.removeEventListener("change",a)})}},[]),n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},Ji=e=>{const{w:t="auto",h:n=50,children:r}=e;return s.jsx("div",{style:{width:t,height:n,minWidth:n,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-unit-radius-small)"},children:r})};N.Accordion=gn,N.ActionBar=Ho,N.Actionable=Ve,N.Alert=Uo,N.Autocomplete=Sr,N.Avatar=Ds,N.Badge=Ar,N.Breadcrumbs=Vr,N.Button=je,N.Card=Ys,N.Carousel=Gs,N.Checkbox=ti,N.CheckboxGroup=Zs,N.Container=ri,N.Dismissible=oi,N.Divider=er,N.DropdownMenu=we,N.FormControl=Vt,N.Hidden=un,N.HiddenVisually=ii,N.Hotkey=ai,N.Icon=ce,N.Image=li,N.Link=Lr,N.Loader=Fr,N.MenuItem=Mn,N.Modal=Ln,N.Overlay=Rr,N.Placeholder=Ji,N.Popover=dt,N.Progress=_i,N.Radio=gi,N.RadioGroup=hi,N.Reshaped=Ei,N.Scrim=zi,N.Select=Ii,N.Skeleton=Si,N.Slider=Fi,N.Switch=Li,N.Table=ht,N.Tabs=on,N.Text=te,N.TextArea=io,N.TextField=pn,N.Theme=ct,N.Timeline=ao,N.Tooltip=Gi,N.View=U,N.classNames=M,N.responsiveClassNames=W,N.responsivePropDependency=Le,N.useFormControl=Ye,N.useHotkeys=rt,N.useIsomorphicLayoutEffect=le,N.useRTL=Ge,N.useResponsiveClientValue=Xi,N.useScrollLock=Hr,N.useTheme=zr,N.useToast=vi,N.useToggle=An,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
27
|
+
Check the top-level render call using <`+I+">.")}return k}}function mo(u,k){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var I=sa(k);if(_o[I])return;_o[I]=!0;var F="";u&&u._owner&&u._owner!==Un.current&&(F=" It was passed a child from "+V(u._owner.type)+"."),pt(u),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,F),pt(null)}}function fo(u,k){{if(typeof u!="object")return;if(Ft(u))for(var I=0;I<u.length;I++){var F=u[I];Yn(F)&&mo(F,k)}else if(Yn(u))u._store&&(u._store.validated=!0);else if(u){var R=y(u);if(typeof R=="function"&&R!==u.entries)for(var J=R.call(u),B;!(B=J.next()).done;)Yn(B.value)&&mo(B.value,k)}}}function ia(u){{var k=u.type;if(k==null||typeof k=="string")return;var I;if(typeof k=="function")I=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===d||k.$$typeof===h))I=k.propTypes;else return;if(I){var F=V(k);sn(I,u.props,"prop",F,u)}else if(k.PropTypes!==void 0&&!Kn){Kn=!0;var R=V(k);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function aa(u){{for(var k=Object.keys(u.props),I=0;I<k.length;I++){var F=k[I];if(F!=="children"&&F!=="key"){pt(u),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),pt(null);break}}u.ref!==null&&(pt(u),b("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}function ho(u,k,I,F,R,J){{var B=P(u);if(!B){var D="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var be=oa(R);be?D+=be:D+=uo();var re;u===null?re="null":Ft(u)?re="array":u!==void 0&&u.$$typeof===t?(re="<"+(V(u.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):re=typeof u,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",re,D)}var ae=ra(u,k,I,R,J);if(ae==null)return ae;if(B){var Ne=k.children;if(Ne!==void 0)if(F)if(Ft(Ne)){for(var xt=0;xt<Ne.length;xt++)fo(Ne[xt],u);Object.freeze&&Object.freeze(Ne)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fo(Ne,u)}return u===r?aa(ae):ia(ae),ae}}function la(u,k,I){return ho(u,k,I,!0)}function ca(u,k,I){return ho(u,k,I,!1)}var da=ca,ua=la;yt.Fragment=r,yt.jsx=da,yt.jsxs=ua}()),yt}process.env.NODE_ENV==="production"?xe.exports=xo():xe.exports=wo();var s=xe.exports;const Jn=(e,t=20)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}};function yo(e,t){const n=Jn(e,t);return r=>("persist"in r&&r.persist(),n(r))}const jo=(e,t)=>{let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...r)},t)},t))}},M=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const r=M(...n);return r?`${t} ${r}`:t}return n?`${t} ${n}`:t},""),Qn=(e,t,n)=>{const{base:r,excludeValueFromClassName:o}=n||{},i=typeof e=="string"?e:e(t);return t===!0&&r||o?i:t===!0&&!r?`${i}-true`:t===!1&&!r?`${i}-false`:t!==void 0?`${i}-${t}`:null},W=(e,t,n,r)=>{if(typeof n!="object"){const o=Qn(t,n,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return o?[e[o]]:[]}return Object.keys(n).reduce((o,i)=>{const a=i==="s",l=Qn(t,n[i],{base:a,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=a?"":`--${i}`;return[...o,e[`${l}${d}`]]},[])},ee=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,r)=>{const o=t[r];return o===void 0||o===!1?n:C(g({},n),{[`${e}-${r}`]:o})},{}),Co=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Le=(e,t)=>Co(e)?Object.keys(e).reduce((r,o)=>{const i=e[o];return i==null?r:C(g({},r),{[o]:t(i,o)})},{}):t(e,"s"),$e=e=>{const t=c.useId();return e||t},cn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Zn=e=>{const{children:t,onToggle:n,active:r,iconPosition:o,iconSize:i,className:a,attributes:l}=e,d=M(a),f=$e(),m=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:r,onToggle:n,iconPosition:o,iconSize:i}),[r]);return s.jsx("div",C(g({},l),{className:d,children:s.jsx(cn.Provider,{value:m,children:t})}))},ko=e=>{const l=e,{defaultActive:t,onToggle:n}=l,r=Fe(l,["defaultActive","onToggle"]),[o,i]=c.useState(t||!1),a=d=>{i(d),n==null||n(d)};return s.jsx(Zn,C(g({},r),{onToggle:a,active:o}))},jt={root:"_root_1ao0i_1","--disabled":"_--disabled_1ao0i_28","--full-width":"_--full-width_1ao0i_37","--inset":"_--inset_1ao0i_45","--radius-inherit":"_--radius-inherit_1ao0i_49"},No=(e,t)=>{const{children:n,href:r,onClick:o,type:i,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:m,className:h,attributes:_}=e,v=M(jt.root,h,a&&jt["--disabled"],d&&jt[`--radius-${d}`],l&&jt["--inset"],m&&jt["--full-width"]),p=g({},_),x=c.useRef(!1),y=o||(_==null?void 0:_.onClick),w=(_==null?void 0:_.onFocus)||(_==null?void 0:_.onBlur),b=!!(r||_!=null&&_.href),j=!!(y||w||i);let $;if(b)p.href=a?void 0:r||(_==null?void 0:_.href),$="a";else if(j&&(!f||f==="button"))$="button",p.type=i||(_==null?void 0:_.type)||"button",p.disabled=a||(_==null?void 0:_.disabled);else if(j){const S=!(f==="label")||y||w;$=f||"span",p.role=S?"button":void 0,p.tabIndex=S?0:void 0}else $=f||"span";const E=z=>{var S;a||x.current||(o==null||o(z),(S=_==null?void 0:_.onClick)==null||S.call(_,z))},T=z=>{if(p.role==="button"||b)return;const O=z.key===" ",P=z.key==="Enter";!O&&!P||(z.preventDefault(),E(z),x.current=!0,requestAnimationFrame(()=>{x.current=!1}))};return s.jsx($,C(g({ref:t},p),{className:v,onClick:E,onKeyDown:T,children:n}))},Ve=c.forwardRef(No),dn={root:"_root_m2bn1_1","--blank":"_--blank_m2bn1_8","--vertical":"_--vertical_m2bn1_15","--vertical-true--m":"_--vertical-true--m_m2bn1_1","--vertical-false--m":"_--vertical-false--m_m2bn1_1","--vertical-true--l":"_--vertical-true--l_m2bn1_1","--vertical-false--l":"_--vertical-false--l_m2bn1_1","--vertical-true--xl":"_--vertical-true--xl_m2bn1_1","--vertical-false--xl":"_--vertical-false--xl_m2bn1_1"},er=e=>{const{vertical:t,blank:n,className:r,attributes:o}=e,i=M(dn.root,r,n&&dn["--blank"],...W(dn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),s.jsx("div",C(g({},o),{role:"separator","aria-orientation":a,className:i}))},Lt={root:"_root_1sx8x_6","--display-inline":"_--display-inline_1sx8x_12","--display-flex":"_--display-flex_1sx8x_16","--hidden":"_--hidden_1sx8x_20","--visibility":"_--visibility_1sx8x_24","--hidden-true--m":"_--hidden-true--m_1sx8x_1","--hidden-false--m":"_--hidden-false--m_1sx8x_1","--hidden-true--l":"_--hidden-true--l_1sx8x_1","--hidden-false--l":"_--hidden-false--l_1sx8x_1","--hidden-true--xl":"_--hidden-true--xl_1sx8x_1","--hidden-false--xl":"_--hidden-false--xl_1sx8x_1"},un=e=>{const{as:t="div",children:n,visibility:r,hide:o,displayStyle:i}=e,a=M(Lt.root,...W(Lt,"--hidden",o),r&&Lt["--visibility"],i&&Lt[`--display-${i}`]);return typeof n=="function"?s.jsx(s.Fragment,{children:n(a)}):s.jsx(t,{className:a,children:n})},K={root:"_root_ewdir_1",item:"_item_ewdir_10","--padding":"_--padding_ewdir_18","--padding-top":"_--padding-top_ewdir_23","--padding-bottom":"_--padding-bottom_ewdir_27","--padding-start":"_--padding-start_ewdir_31","--padding-end":"_--padding-end_ewdir_35","--animated":"_--animated_ewdir_39","--align-text-start":"_--align-text-start_ewdir_1","--align-text-center":"_--align-text-center_ewdir_1","--align-text-end":"_--align-text-end_ewdir_1","--bg-neutral":"_--bg-neutral_ewdir_1","--bg-positive":"_--bg-positive_ewdir_1","--bg-critical":"_--bg-critical_ewdir_1","--bg-primary":"_--bg-primary_ewdir_1","--bg-neutral-faded":"_--bg-neutral-faded_ewdir_1","--bg-positive-faded":"_--bg-positive-faded_ewdir_1","--bg-critical-faded":"_--bg-critical-faded_ewdir_1","--bg-primary-faded":"_--bg-primary-faded_ewdir_1","--bg-page":"_--bg-page_ewdir_1","--bg-page-faded":"_--bg-page-faded_ewdir_1","--bg-disabled":"_--bg-disabled_ewdir_1","--bg-disabled-faded":"_--bg-disabled-faded_ewdir_1","--bg-elevation-base":"_--bg-elevation-base_ewdir_1","--bg-elevation-raised":"_--bg-elevation-raised_ewdir_1","--bg-elevation-overlay":"_--bg-elevation-overlay_ewdir_1","--bg-white":"_--bg-white_ewdir_65","--bg-black":"_--bg-black_ewdir_70","--shadow-raised":"_--shadow-raised_ewdir_75","--shadow-overlay":"_--shadow-overlay_ewdir_79","--bd":"_--bd_ewdir_83","--bd-neutral-faded":"_--bd-neutral-faded_ewdir_1","--bd-neutral":"_--bd-neutral_ewdir_1","--bd-positive":"_--bd-positive_ewdir_1","--bd-positive-faded":"_--bd-positive-faded_ewdir_1","--bd-critical":"_--bd-critical_ewdir_1","--bd-critical-faded":"_--bd-critical-faded_ewdir_1","--bd-primary":"_--bd-primary_ewdir_1","--bd-primary-faded":"_--bd-primary-faded_ewdir_1","--bd-disabled":"_--bd-disabled_ewdir_1","--bd-transparent":"_--bd-transparent_ewdir_94","--overflow-hidden":"_--overflow-hidden_ewdir_98","--divided":"_--divided_ewdir_102","--flex":"_--flex_ewdir_106","--direction-column":"_--direction-column_ewdir_1","item--gap-before":"_item--gap-before_ewdir_118","item--gap-auto":"_item--gap-auto_ewdir_122","--direction-column-reverse":"_--direction-column-reverse_ewdir_1","--direction-row":"_--direction-row_ewdir_1","--direction-row-reverse":"_--direction-row-reverse_ewdir_1","--nowrap":"_--nowrap_ewdir_177","--wrap":"_--wrap_ewdir_185","--nowrap-false--m":"_--nowrap-false--m_ewdir_1","--wrap-true--m":"_--wrap-true--m_ewdir_1","--nowrap-true--m":"_--nowrap-true--m_ewdir_1","--wrap-false--m":"_--wrap-false--m_ewdir_1","--nowrap-false--l":"_--nowrap-false--l_ewdir_1","--wrap-true--l":"_--wrap-true--l_ewdir_1","--nowrap-true--l":"_--nowrap-true--l_ewdir_1","--wrap-false--l":"_--wrap-false--l_ewdir_1","--nowrap-false--xl":"_--nowrap-false--xl_ewdir_1","--wrap-true--xl":"_--wrap-true--xl_ewdir_1","--nowrap-true--xl":"_--nowrap-true--xl_ewdir_1","--wrap-false--xl":"_--wrap-false--xl_ewdir_1","--align-start":"_--align-start_ewdir_1","--align-end":"_--align-end_ewdir_1","--align-center":"_--align-center_ewdir_1","--align-stretch":"_--align-stretch_ewdir_1","--align-baseline":"_--align-baseline_ewdir_1","--justify-start":"_--justify-start_ewdir_1","--justify-end":"_--justify-end_ewdir_1","--justify-center":"_--justify-center_ewdir_1","--justify-space-between":"_--justify-space-between_ewdir_1",divider:"_divider_ewdir_244","item--grow":"_item--grow_ewdir_248","item--columns":"_item--columns_ewdir_266","item--columns-1":"_item--columns-1_ewdir_1","item--columns-2":"_item--columns-2_ewdir_1","item--columns-3":"_item--columns-3_ewdir_1","item--columns-4":"_item--columns-4_ewdir_1","item--columns-5":"_item--columns-5_ewdir_1","item--columns-6":"_item--columns-6_ewdir_1","item--columns-7":"_item--columns-7_ewdir_1","item--columns-8":"_item--columns-8_ewdir_1","item--columns-9":"_item--columns-9_ewdir_1","item--columns-10":"_item--columns-10_ewdir_1","item--columns-11":"_item--columns-11_ewdir_1","item--columns-12":"_item--columns-12_ewdir_1","item--columns-auto":"_item--columns-auto_ewdir_287","item--columns-1--m":"_item--columns-1--m_ewdir_1","item--columns-auto--m":"_item--columns-auto--m_ewdir_1","item--columns-2--m":"_item--columns-2--m_ewdir_1","item--columns-3--m":"_item--columns-3--m_ewdir_1","item--columns-4--m":"_item--columns-4--m_ewdir_1","item--columns-5--m":"_item--columns-5--m_ewdir_1","item--columns-6--m":"_item--columns-6--m_ewdir_1","item--columns-7--m":"_item--columns-7--m_ewdir_1","item--columns-8--m":"_item--columns-8--m_ewdir_1","item--columns-9--m":"_item--columns-9--m_ewdir_1","item--columns-10--m":"_item--columns-10--m_ewdir_1","item--columns-11--m":"_item--columns-11--m_ewdir_1","item--columns-12--m":"_item--columns-12--m_ewdir_1","item--columns-1--l":"_item--columns-1--l_ewdir_1","item--columns-auto--l":"_item--columns-auto--l_ewdir_1","item--columns-2--l":"_item--columns-2--l_ewdir_1","item--columns-3--l":"_item--columns-3--l_ewdir_1","item--columns-4--l":"_item--columns-4--l_ewdir_1","item--columns-5--l":"_item--columns-5--l_ewdir_1","item--columns-6--l":"_item--columns-6--l_ewdir_1","item--columns-7--l":"_item--columns-7--l_ewdir_1","item--columns-8--l":"_item--columns-8--l_ewdir_1","item--columns-9--l":"_item--columns-9--l_ewdir_1","item--columns-10--l":"_item--columns-10--l_ewdir_1","item--columns-11--l":"_item--columns-11--l_ewdir_1","item--columns-12--l":"_item--columns-12--l_ewdir_1","item--columns-1--xl":"_item--columns-1--xl_ewdir_1","item--columns-auto--xl":"_item--columns-auto--xl_ewdir_1","item--columns-2--xl":"_item--columns-2--xl_ewdir_1","item--columns-3--xl":"_item--columns-3--xl_ewdir_1","item--columns-4--xl":"_item--columns-4--xl_ewdir_1","item--columns-5--xl":"_item--columns-5--xl_ewdir_1","item--columns-6--xl":"_item--columns-6--xl_ewdir_1","item--columns-7--xl":"_item--columns-7--xl_ewdir_1","item--columns-8--xl":"_item--columns-8--xl_ewdir_1","item--columns-9--xl":"_item--columns-9--xl_ewdir_1","item--columns-10--xl":"_item--columns-10--xl_ewdir_1","item--columns-11--xl":"_item--columns-11--xl_ewdir_1","item--columns-12--xl":"_item--columns-12--xl_ewdir_1","--direction-column--m":"_--direction-column--m_ewdir_1","--direction-column-reverse--m":"_--direction-column-reverse--m_ewdir_1","--direction-row--m":"_--direction-row--m_ewdir_1","--direction-row-reverse--m":"_--direction-row-reverse--m_ewdir_1","--align-start--m":"_--align-start--m_ewdir_1","--align-end--m":"_--align-end--m_ewdir_1","--align-center--m":"_--align-center--m_ewdir_1","--align-stretch--m":"_--align-stretch--m_ewdir_1","--align-baseline--m":"_--align-baseline--m_ewdir_1","--justify-start--m":"_--justify-start--m_ewdir_1","--justify-end--m":"_--justify-end--m_ewdir_1","--justify-center--m":"_--justify-center--m_ewdir_1","--justify-space-between--m":"_--justify-space-between--m_ewdir_1","item--grow-true--m":"_item--grow-true--m_ewdir_1","item--grow-false--m":"_item--grow-false--m_ewdir_1","--direction-column--l":"_--direction-column--l_ewdir_1","--direction-column-reverse--l":"_--direction-column-reverse--l_ewdir_1","--direction-row--l":"_--direction-row--l_ewdir_1","--direction-row-reverse--l":"_--direction-row-reverse--l_ewdir_1","--align-start--l":"_--align-start--l_ewdir_1","--align-end--l":"_--align-end--l_ewdir_1","--align-center--l":"_--align-center--l_ewdir_1","--align-stretch--l":"_--align-stretch--l_ewdir_1","--align-baseline--l":"_--align-baseline--l_ewdir_1","--justify-start--l":"_--justify-start--l_ewdir_1","--justify-end--l":"_--justify-end--l_ewdir_1","--justify-center--l":"_--justify-center--l_ewdir_1","--justify-space-between--l":"_--justify-space-between--l_ewdir_1","item--grow-true--l":"_item--grow-true--l_ewdir_1","item--grow-false--l":"_item--grow-false--l_ewdir_1","--direction-column--xl":"_--direction-column--xl_ewdir_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_ewdir_1","--direction-row--xl":"_--direction-row--xl_ewdir_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_ewdir_1","--align-start--xl":"_--align-start--xl_ewdir_1","--align-end--xl":"_--align-end--xl_ewdir_1","--align-center--xl":"_--align-center--xl_ewdir_1","--align-stretch--xl":"_--align-stretch--xl_ewdir_1","--align-baseline--xl":"_--align-baseline--xl_ewdir_1","--justify-start--xl":"_--justify-start--xl_ewdir_1","--justify-end--xl":"_--justify-end--xl_ewdir_1","--justify-center--xl":"_--justify-center--xl_ewdir_1","--justify-space-between--xl":"_--justify-space-between--xl_ewdir_1","item--grow-true--xl":"_item--grow-true--xl_ewdir_1","item--grow-false--xl":"_item--grow-false--xl_ewdir_1"},tr={root:"_root_fjri8_1","--radius-none":"_--radius-none_fjri8_1","--radius-small":"_--radius-small_fjri8_1","--radius-medium":"_--radius-medium_fjri8_1","--radius-large":"_--radius-large_fjri8_1","--radius-circular":"_--radius-circular_fjri8_1","--radius-none--m":"_--radius-none--m_fjri8_1","--radius-small--m":"_--radius-small--m_fjri8_1","--radius-medium--m":"_--radius-medium--m_fjri8_1","--radius-large--m":"_--radius-large--m_fjri8_1","--radius-circular--m":"_--radius-circular--m_fjri8_1","--radius-none--l":"_--radius-none--l_fjri8_1","--radius-small--l":"_--radius-small--l_fjri8_1","--radius-medium--l":"_--radius-medium--l_fjri8_1","--radius-large--l":"_--radius-large--l_fjri8_1","--radius-circular--l":"_--radius-circular--l_fjri8_1","--radius-none--xl":"_--radius-none--xl_fjri8_1","--radius-small--xl":"_--radius-small--xl_fjri8_1","--radius-medium--xl":"_--radius-medium--xl_fjri8_1","--radius-large--xl":"_--radius-large--xl_fjri8_1","--radius-circular--xl":"_--radius-circular--xl_fjri8_1"},_n=e=>e?{classNames:[tr.root,...W(tr,"--radius",e)]}:null,nr={root:"_root_o5mer_1","--bleed":"_--bleed_o5mer_10","--bleed-true--m":"_--bleed-true--m_o5mer_1","--bleed-false--m":"_--bleed-false--m_o5mer_1","--bleed-true--l":"_--bleed-true--l_o5mer_1","--bleed-false--l":"_--bleed-false--l_o5mer_1","--bleed-true--xl":"_--bleed-true--xl_o5mer_1","--bleed-false--xl":"_--bleed-false--xl_o5mer_1"},rr=e=>{if(e===void 0)return null;const t=[nr.root,...W(nr,"--bleed",Le(e,r=>typeof r=="number"&&r>0))],n=ee("--rs-bleed",e);return{classNames:t,variables:n}},$o={literal:"_literal_1a6gk_1",unit:"_unit_1a6gk_5","literal--m":"_literal--m_1a6gk_1","unit--m":"_unit--m_1a6gk_1","literal--l":"_literal--l_1a6gk_1","unit--l":"_unit--l_1a6gk_1","literal--xl":"_literal--xl_1a6gk_1","unit--xl":"_unit--xl_1a6gk_1"},mn=e=>{if(!e)return null;const t=ee("--rs-w",e);return{classNames:W($o,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Eo={literal:"_literal_ea0g1_1",unit:"_unit_ea0g1_2","literal--m":"_literal--m_ea0g1_1","unit--m":"_unit--m_ea0g1_1","literal--l":"_literal--l_ea0g1_1","unit--l":"_unit--l_ea0g1_1","literal--xl":"_literal--xl_ea0g1_1","unit--xl":"_unit--xl_ea0g1_1"},Ct=e=>{if(!e)return null;const t=ee("--rs-h",e);return{classNames:W(Eo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},zo={literal:"_literal_ezw0c_1",unit:"_unit_ezw0c_5","literal--m":"_literal--m_ezw0c_1","unit--m":"_unit--m_ezw0c_1","literal--l":"_literal--l_ezw0c_1","unit--l":"_unit--l_ezw0c_1","literal--xl":"_literal--xl_ezw0c_1","unit--xl":"_unit--xl_ezw0c_1"},To=e=>{if(!e)return null;const t=ee("--rs-max-w",e);return{classNames:W(zo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Io={literal:"_literal_kt8jw_1",unit:"_unit_kt8jw_5","literal--m":"_literal--m_kt8jw_1","unit--m":"_unit--m_kt8jw_1","literal--l":"_literal--l_kt8jw_1","unit--l":"_unit--l_kt8jw_1","literal--xl":"_literal--xl_kt8jw_1","unit--xl":"_unit--xl_kt8jw_1"},Mo=e=>{if(!e)return null;const t=ee("--rs-max-h",e);return{classNames:W(Io,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},So={"--position-relative":"_--position-relative_eidrq_1","--position-absolute":"_--position-absolute_eidrq_1","--position-fixed":"_--position-fixed_eidrq_1","--position-sticky":"_--position-sticky_eidrq_1","--position-relative--m":"_--position-relative--m_eidrq_1","--position-absolute--m":"_--position-absolute--m_eidrq_1","--position-fixed--m":"_--position-fixed--m_eidrq_1","--position-sticky--m":"_--position-sticky--m_eidrq_1","--position-relative--l":"_--position-relative--l_eidrq_1","--position-absolute--l":"_--position-absolute--l_eidrq_1","--position-fixed--l":"_--position-fixed--l_eidrq_1","--position-sticky--l":"_--position-sticky--l_eidrq_1","--position-relative--xl":"_--position-relative--xl_eidrq_1","--position-absolute--xl":"_--position-absolute--xl_eidrq_1","--position-fixed--xl":"_--position-fixed--xl_eidrq_1","--position-sticky--xl":"_--position-sticky--xl_eidrq_1"},Po=e=>e?{classNames:W(So,"--position",e)}:null,Ao={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},kt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",r=`--rs-inset${n}`,o=ee(r,e);return{classNames:W(Ao,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:o}},Fo={root:"_root_i342i_1"},Lo=e=>{if(!e)return null;const t=ee("--rs-ratio",e);return{classNames:Fo.root,variables:t}},or=e=>{const{columns:t,grow:n,gapBefore:r,as:o="div",order:i,children:a,className:l,attributes:d}=e,f=M(K.item,l,r==="auto"&&K["item--gap-auto"],r!==void 0&&K["item--gap-before"],t&&K["item--columns"],...W(K,"item--grow",n),...W(K,"item--columns",t)),m=g(g({},ee("--rs-view-item-order",i)),ee("--rs-view-item-gap-before",r));return s.jsx(o,C(g({},d),{style:g(g({},d==null?void 0:d.style),m),className:f,children:a}))},U=e=>{const{align:t,justify:n,wrap:r,gap:o,height:i,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:m,paddingInline:h,paddingBlock:_,paddingBottom:v,paddingEnd:p,paddingStart:x,paddingTop:y,bleed:w,animated:b,backgroundColor:j,borderColor:$,borderRadius:E,shadow:T,textAlign:z,overflow:S,position:O="relative",inset:P,insetTop:A,insetBottom:q,insetStart:V,insetEnd:L,zIndex:Q,grow:fe,as:he="div",children:oe,divided:Z,className:He,attributes:Ce}=e,se=!!t||!!n||!!o||!!e.direction,H=e.direction||(se?"column":void 0),Y=_n(E),G=rr(w),ie=mn(a),ye=Ct(i),X=To(f),pe=Mo(d),ge=Po(O),Me=kt(P),Re=kt(A,"top"),et=kt(q,"bottom"),tt=kt(V,"start"),Se=kt(L,"end"),Pe=Lo(l);let At=0,st;const bt=({className:ve,key:ue})=>{const qe=M(K.divider,ve);let me=!1;return typeof H=="string"&&H.startsWith("row")?me=!0:H&&(me=Object.keys(H).reduce((Ue,ke)=>{const Ae=H[ke];return Ae?C(g({},Ue),{[ke]:Ae.startsWith("row")}):Ue},{})),s.jsx("div",{className:qe,children:s.jsx(er,{vertical:me,blank:!0})},`${ue}-divider`)},sn=({className:ve,child:ue,index:qe})=>{var Ae,an;const me=ue.type===or,it=ue.key||qe,Ue=!!qe&&Z&&bt({className:ve,key:it});let ke;return me?ke=c.cloneElement(ue,{className:M(ve,ue.props.className)}):ve||!c.isValidElement(ue)?ke=s.jsx("div",{className:ve,children:ue},it):ke=ue,me&&((Ae=ue.props)!=null&&Ae.grow)&&(st=ue.props.grow),me&&((an=ue.props)==null?void 0:an.gap)==="auto"&&(st=!0),[Ue,ke]},Hn=c.Children.map(oe,(ve,ue)=>{if(!ve)return null;const qe=At;if(At+=1,ve.type===un&&typeof ve.props.children!="function"){const me=ve.props,{children:it}=me,Ue=Fe(me,["children"]),ke=ve.key||ue;return c.createElement(un,C(g({},Ue),{key:ke}),Ae=>sn({className:Ae,child:it,index:qe}))}return sn({child:ve,index:qe})}),Ft=M(K.root,He,Y==null?void 0:Y.classNames,ge==null?void 0:ge.classNames,G==null?void 0:G.classNames,ie==null?void 0:ie.classNames,ye==null?void 0:ye.classNames,Pe==null?void 0:Pe.classNames,X==null?void 0:X.classNames,pe==null?void 0:pe.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,et==null?void 0:et.classNames,tt==null?void 0:tt.classNames,Se==null?void 0:Se.classNames,z&&K[`--align-text-${z}`],j&&K[`--bg-${j}`],$&&K[`--bd-${$}`],$&&K["--bd"],T&&K[`--shadow-${T}`],S&&K[`--overflow-${S}`],b&&K["--animated"],Z&&K["--divided"],(m!==void 0||h!==void 0||_!==void 0)&&K["--padding"],v!==void 0&&K["--padding-bottom"],p!==void 0&&K["--padding-end"],x!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(se||st)&&K["--flex"],...W(K,"--direction",H),...W(K,"--align",t),...W(K,"--justify",n),...W(K,"--nowrap",st||r===!1),...W(K,"--wrap",r),...W(K,"item--grow",fe)),Rn=g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g({},Ce==null?void 0:Ce.style),ee("--rs-view-gap",o)),ee("--rs-view-p-vertical",_||m)),ee("--rs-view-p-horizontal",h||m)),ee("--rs-view-p-bottom",v)),ee("--rs-view-p-top",y)),ee("--rs-view-p-start",x)),ee("--rs-view-p-end",p)),G==null?void 0:G.variables),ie==null?void 0:ie.variables),ye==null?void 0:ye.variables),Pe==null?void 0:Pe.variables),X==null?void 0:X.variables),pe==null?void 0:pe.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),et==null?void 0:et.variables),tt==null?void 0:tt.variables),Se==null?void 0:Se.variables),Q?{"--rs-view-z":Q}:{});return s.jsx(he,C(g({},Ce),{className:Ft,style:Rn,children:Hn}))};U.Item=or;const fn={root:"_root_1f0uh_1","--auto":"_--auto_1f0uh_8","--color-neutral":"_--color-neutral_1f0uh_1","--color-neutral-faded":"_--color-neutral-faded_1f0uh_1","--color-primary":"_--color-primary_1f0uh_1","--color-positive":"_--color-positive_1f0uh_1","--color-critical":"_--color-critical_1f0uh_1","--color-disabled":"_--color-disabled_1f0uh_1"},ce=e=>{const{svg:t,className:n,color:r,size:o="1em",autoWidth:i,attributes:a}=e,l=Ct(o),d=M(fn.root,n,l==null?void 0:l.classNames,r&&fn[`--color-${r}`],i&&fn["--auto"]),f=typeof t=="object"?t:s.jsx(t,{}),m=g(g({},a==null?void 0:a.style),l==null?void 0:l.variables);return s.jsx("span",C(g({},a),{"aria-hidden":"true",className:d,style:m,children:c.cloneElement(f,{focusable:!1})}))},Vo=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),Nt={content:"_content_fcvpf_1","content--animated":"_content--animated_fcvpf_6",icon:"_icon_fcvpf_13","icon--active":"_icon--active_fcvpf_17"},Do=e=>{const{children:t}=e,{active:n,onToggle:r,triggerId:o,contentId:i,iconPosition:a="end",iconSize:l}=c.useContext(cn),d=M(Nt.icon,n&&Nt["icon--active"]),f=()=>{r==null||r(!n)},m={"aria-expanded":n,"aria-controls":i,id:o};return typeof t=="function"?s.jsx(s.Fragment,{children:t(C(g({},m),{onClick:f}),{active:n})}):s.jsx(Ve,{onClick:f,fullWidth:!0,attributes:m,children:s.jsxs(U,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[s.jsx(U.Item,{grow:!0,children:t}),s.jsx(ce,{size:l||4,svg:Vo,className:d})]})})},$t=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},hn="data-rs-no-transition",Oo=()=>{document.documentElement.setAttribute(hn,"true")},qo=()=>{document.documentElement.removeAttribute(hn)},Bo=()=>!document.documentElement.hasAttribute(hn),Wo=e=>{const{children:t}=e,{active:n,triggerId:r,contentId:o}=c.useContext(cn),i=c.useRef(null),a=c.useRef(!1),[l,d]=c.useState(n?"auto":null),f=M(Nt.content,a.current&&l!=="auto"&&Nt["content--animated"],n&&Nt["content--active"]),m=h=>{h.propertyName==="height"&&d(n?"auto":null)};return c.useEffect(()=>{$t(()=>{a.current=!0})},[]),c.useEffect(()=>{const h=i.current;if(!h||!a.current)return;let _=0;n&&(h.style.height="auto",_=h.clientHeight,h.style.height="0"),n||(h.style.height=`${h.clientHeight}px`),d(_)},[n]),s.jsx("div",{className:f,ref:i,style:l!==null?{height:l,overflow:l==="auto"?"visible":void 0}:void 0,onTransitionEnd:m,"aria-labelledby":r,id:o,role:"region",hidden:!n&&l===null,children:t})},gn=e=>{const{active:t}=e;return t!==void 0?s.jsx(Zn,g({},e)):s.jsx(ko,g({},e))};gn.Trigger=Do,gn.Content=Wo;const vn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Ho=e=>{const{position:t="bottom",padding:n,paddingBlock:r=3,paddingInline:o=4,children:i,elevated:a,className:l,attributes:d}=e,f=M(vn.root,a&&vn["--elevated"],t&&vn[`--position-${t}`],l);return s.jsx(U,{className:f,attributes:d,paddingBlock:n||r,paddingInline:n||o,children:i})},nt={root:"_root_gm5sj_1","--clamp":"_--clamp_gm5sj_6","--align-start":"_--align-start_gm5sj_1","--align-center":"_--align-center_gm5sj_1","--align-end":"_--align-end_gm5sj_1","--variant-title-1":"_--variant-title-1_gm5sj_1","--variant-title-2":"_--variant-title-2_gm5sj_1","--variant-title-3":"_--variant-title-3_gm5sj_1","--variant-title-4":"_--variant-title-4_gm5sj_1","--variant-title-5":"_--variant-title-5_gm5sj_1","--variant-title-6":"_--variant-title-6_gm5sj_1","--variant-featured-1":"_--variant-featured-1_gm5sj_1","--variant-featured-2":"_--variant-featured-2_gm5sj_1","--variant-featured-3":"_--variant-featured-3_gm5sj_1","--variant-body-1":"_--variant-body-1_gm5sj_1","--variant-body-2":"_--variant-body-2_gm5sj_1","--variant-body-3":"_--variant-body-3_gm5sj_1","--variant-caption-1":"_--variant-caption-1_gm5sj_1","--variant-caption-2":"_--variant-caption-2_gm5sj_1","--weight-regular":"_--weight-regular_gm5sj_1","--weight-medium":"_--weight-medium_gm5sj_1","--weight-bold":"_--weight-bold_gm5sj_1","--color-neutral":"_--color-neutral_gm5sj_1","--color-neutral-faded":"_--color-neutral-faded_gm5sj_1","--color-primary":"_--color-primary_gm5sj_1","--color-positive":"_--color-positive_gm5sj_1","--color-critical":"_--color-critical_gm5sj_1","--color-disabled":"_--color-disabled_gm5sj_1","--decoration-line-through":"_--decoration-line-through_gm5sj_139","--align-start--m":"_--align-start--m_gm5sj_1","--align-center--m":"_--align-center--m_gm5sj_1","--align-end--m":"_--align-end--m_gm5sj_1","--variant-title-1--m":"_--variant-title-1--m_gm5sj_1","--variant-title-2--m":"_--variant-title-2--m_gm5sj_1","--variant-title-3--m":"_--variant-title-3--m_gm5sj_1","--variant-title-4--m":"_--variant-title-4--m_gm5sj_1","--variant-title-5--m":"_--variant-title-5--m_gm5sj_1","--variant-title-6--m":"_--variant-title-6--m_gm5sj_1","--variant-featured-1--m":"_--variant-featured-1--m_gm5sj_1","--variant-featured-2--m":"_--variant-featured-2--m_gm5sj_1","--variant-featured-3--m":"_--variant-featured-3--m_gm5sj_1","--variant-body-1--m":"_--variant-body-1--m_gm5sj_1","--variant-body-2--m":"_--variant-body-2--m_gm5sj_1","--variant-body-3--m":"_--variant-body-3--m_gm5sj_1","--variant-caption-1--m":"_--variant-caption-1--m_gm5sj_1","--variant-caption-2--m":"_--variant-caption-2--m_gm5sj_1","--align-start--l":"_--align-start--l_gm5sj_1","--align-center--l":"_--align-center--l_gm5sj_1","--align-end--l":"_--align-end--l_gm5sj_1","--variant-title-1--l":"_--variant-title-1--l_gm5sj_1","--variant-title-2--l":"_--variant-title-2--l_gm5sj_1","--variant-title-3--l":"_--variant-title-3--l_gm5sj_1","--variant-title-4--l":"_--variant-title-4--l_gm5sj_1","--variant-title-5--l":"_--variant-title-5--l_gm5sj_1","--variant-title-6--l":"_--variant-title-6--l_gm5sj_1","--variant-featured-1--l":"_--variant-featured-1--l_gm5sj_1","--variant-featured-2--l":"_--variant-featured-2--l_gm5sj_1","--variant-featured-3--l":"_--variant-featured-3--l_gm5sj_1","--variant-body-1--l":"_--variant-body-1--l_gm5sj_1","--variant-body-2--l":"_--variant-body-2--l_gm5sj_1","--variant-body-3--l":"_--variant-body-3--l_gm5sj_1","--variant-caption-1--l":"_--variant-caption-1--l_gm5sj_1","--variant-caption-2--l":"_--variant-caption-2--l_gm5sj_1","--align-start--xl":"_--align-start--xl_gm5sj_1","--align-center--xl":"_--align-center--xl_gm5sj_1","--align-end--xl":"_--align-end--xl_gm5sj_1","--variant-title-1--xl":"_--variant-title-1--xl_gm5sj_1","--variant-title-2--xl":"_--variant-title-2--xl_gm5sj_1","--variant-title-3--xl":"_--variant-title-3--xl_gm5sj_1","--variant-title-4--xl":"_--variant-title-4--xl_gm5sj_1","--variant-title-5--xl":"_--variant-title-5--xl_gm5sj_1","--variant-title-6--xl":"_--variant-title-6--xl_gm5sj_1","--variant-featured-1--xl":"_--variant-featured-1--xl_gm5sj_1","--variant-featured-2--xl":"_--variant-featured-2--xl_gm5sj_1","--variant-featured-3--xl":"_--variant-featured-3--xl_gm5sj_1","--variant-body-1--xl":"_--variant-body-1--xl_gm5sj_1","--variant-body-2--xl":"_--variant-body-2--xl_gm5sj_1","--variant-body-3--xl":"_--variant-body-3--xl_gm5sj_1","--variant-caption-1--xl":"_--variant-caption-1--xl_gm5sj_1","--variant-caption-2--xl":"_--variant-caption-2--xl_gm5sj_1"},Ro={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},te=e=>{const{variant:t,color:n,weight:r,align:o,decoration:i,maxLines:a,children:l,className:d,attributes:f}=e,m=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),h=e.as||m&&Ro[m]||"div",_=M(nt.root,n&&nt[`--color-${n}`],...W(nt,"--variant",t),...W(nt,"--align",o),r&&nt[`--weight-${r}`],i&&nt[`--decoration-${i}`],a!==void 0&&nt["--clamp"],d),v=C(g({},f==null?void 0:f.style),{"--rs-text-lines":a});return s.jsx(h,C(g({},f),{className:_,style:v,children:l}))},Uo=e=>{const{title:t,children:n,icon:r,actionsSlot:o,color:i="neutral",inline:a,bleed:l,className:d,attributes:f}=e,m=i==="neutral",h=()=>a?s.jsxs(s.Fragment,{children:[t&&s.jsx(te,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&s.jsx(te,{variant:"body-3",as:"span",children:n})]}):s.jsxs(U,{gap:1,children:[t&&s.jsx(te,{variant:"body-3",weight:"medium",children:t}),n&&s.jsx(te,{variant:"body-3",children:n})]}),_=v=>o?s.jsxs(U,{gap:2,direction:a?"row":"column",children:[a?s.jsx(U.Item,{grow:!0,children:v}):v,o&&s.jsx(te,{variant:"body-3",weight:"medium",children:s.jsx(U,{direction:"row",gap:3,children:o})})]}):v;return s.jsx(U,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:C(g({},f),{role:i==="critical"?"alert":"status"}),children:r?s.jsxs(s.Fragment,{children:[s.jsx(ce,{svg:r,size:5,color:m?"primary":i}),s.jsx(U.Item,{grow:!0,children:_(h())})]}):_(h())})},sr=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Ko=sr.Provider,Et=()=>c.useContext(sr),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:r}=Et();return{attributes:e,required:t,hasError:n,disabled:r}},ir={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},bn=(e,t)=>`${e}-${t||"caption"}`,Vt=e=>{const{children:t,id:n,required:r,hasError:o,group:i,disabled:a,size:l}=e,d=$e(n),f=i?"fieldset":"div",[m,h]=c.useState(!1),[_,v]=c.useState(!1),p=[m&&bn(d),_&&bn(d,"error")].filter(Boolean).join(" "),x={id:d,"aria-describedby":p},y=()=>{v(!0)},w=()=>{h(!0)};return s.jsx(f,{children:s.jsx(Ko,{value:{required:r,hasError:o,errorRef:y,helperRef:w,attributes:x,group:i,disabled:a,size:l},children:t})})},Yo=e=>{const{children:t}=e,{attributes:n,required:r,group:o,disabled:i,size:a}=Et(),l=`${n.id}-label`,d=o?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return s.jsxs(te,C(g({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:ir.label,color:i?"disabled":void 0,children:[t,r&&s.jsx(te,{color:i?"disabled":"critical",as:"span",children:"*"})]}))},ar=e=>{const{children:t,variant:n,disabled:r}=e,{attributes:o,size:i,helperRef:a,errorRef:l}=Et(),d=bn(o.id,n),f=n==="error"?"critical":"neutral-faded",m=n==="error"?l:a;return s.jsx(te,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:m},className:ir.caption,children:t})},Go=e=>{const{children:t}=e,{disabled:n}=Et();return s.jsx(ar,{disabled:n,children:t})},Xo=e=>{const{children:t}=e,{hasError:n}=Et();return n?s.jsx(ar,{variant:"error",children:t}):null};Vt.Label=Yo,Vt.Helper=Go,Vt.Error=Xo;const lr={root:"_root_1q3jm_1","--side-all":"_--side-all_1q3jm_6","--side-start":"_--side-start_1q3jm_10","--side-inline":"_--side-inline_1q3jm_11","--side-end":"_--side-end_1q3jm_15","--side-top":"_--side-top_1q3jm_20","--side-block":"_--side-block_1q3jm_21","--side-bottom":"_--side-bottom_1q3jm_25"},Dt=e=>{const{side:t="all",children:n,className:r,attributes:o}=e,i=typeof t=="string"?[t]:t,a=M(lr.root,i.map(l=>lr[`--side-${l}`]),r);return s.jsx("div",C(g({},o),{className:a,children:n}))},Ee={root:"_root_1riga_1",input:"_input_1riga_21",slot:"_slot_1riga_42",icon:"_icon_1riga_43",affix:"_affix_1riga_44",attachment:"_attachment_1riga_60","attachment--position-start":"_attachment--position-start_1riga_65","attachment--position-end":"_attachment--position-end_1riga_78","--disabled":"_--disabled_1riga_91","--size-medium":"_--size-medium_1riga_1","--size-large":"_--size-large_1riga_1","--size-xlarge":"_--size-xlarge_1riga_1","--variant-faded":"_--variant-faded_1riga_155","--variant-headless":"_--variant-headless_1riga_164","--status-error":"_--status-error_1riga_169","--size-medium--m":"_--size-medium--m_1riga_1","--size-large--m":"_--size-large--m_1riga_1","--size-xlarge--m":"_--size-xlarge--m_1riga_1","--size-medium--l":"_--size-medium--l_1riga_1","--size-large--l":"_--size-large--l_1riga_1","--size-xlarge--l":"_--size-xlarge--l_1riga_1","--size-medium--xl":"_--size-medium--xl_1riga_1","--size-large--xl":"_--size-large--xl_1riga_1","--size-xlarge--xl":"_--size-xlarge--xl_1riga_1"},cr=e=>{const{slot:t,icon:n,size:r,affix:o,position:i}=e;if(!n&&!t&&!o)return null;const a=M(Ee.attachment,Ee[`attachment--position-${i}`]),l=[t&&s.jsx("div",{className:Ee.slot,children:t},"slot"),n&&s.jsx("div",{className:Ee.icon,children:s.jsx(ce,{size:Le(r,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),o&&s.jsx("div",{className:Ee.affix,children:o},"affix")].filter(Boolean);return s.jsx("span",{className:a,children:i==="end"?l.reverse():l})},pn=e=>{var P;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:m,endSlot:h,prefix:_,suffix:v,size:p="medium",variant:x="outline",className:y,attributes:w}=e,b=Ye(),j=$e(e.id),$=(b==null?void 0:b.attributes.id)||((P=e.inputAttributes)==null?void 0:P.id)||j,E=(b==null?void 0:b.disabled)||e.disabled,T=(b==null?void 0:b.hasError)||e.hasError,z=g(g({},e.inputAttributes),b==null?void 0:b.attributes),S=M(Ee.root,y,p&&W(Ee,"--size",p),T&&Ee["--status-error"],E&&Ee["--disabled"],x&&Ee[`--variant-${x}`]),O=A=>{t&&t({name:o,value:A.target.value,event:A})};return s.jsxs("div",C(g({},w),{"data-rs-aligner-target":!0,className:S,children:[s.jsx(cr,{position:"start",icon:d,slot:m,size:p,affix:_}),s.jsx("input",C(g({},z),{className:Ee.input,disabled:E,name:o,placeholder:l,value:i,defaultValue:a,onChange:O,onFocus:n||(z==null?void 0:z.onFocus),onBlur:r||(z==null?void 0:z.onBlur),id:$})),s.jsx(cr,{position:"end",icon:f,slot:h,size:p,affix:v})]}))};pn.Aligner=Dt;const Jo="Enter",Qo="Tab",dr="ArrowUp",ur="ArrowDown",_r="ArrowRight",mr="ArrowLeft",xn="data-rs-keyboard",Ot="data-rs-focus";class Zo{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const n=this.tailId,r=n&&this.get(n),o=this.generateId();return this.chain[o]={previousId:n,data:t},r&&(r.nextId=o),this.tailId=o,o}remove(t){var d,f;const n=this.chain[t];if(!n)return;const r=n.previousId,o=r&&this.get(r),i=n.nextId,a=i&&this.get(i);o&&(o.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),i||(this.tailId=r!=null?r:null);const l=this.get(t).data;return delete this.chain[t],l}removePreviousTill(t,n){const r=this.get(t),o=this.remove(t);return!r||!r.previousId||n(r)?o:this.removePreviousTill(r.previousId,n)}}const fr=()=>document.documentElement.hasAttribute(xn),hr='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',qt=()=>document.querySelector(`[${Ot}]`)||document.activeElement,wn=(e,t)=>{const r=Array.from(e.querySelectorAll(hr)).filter(o=>!o.hasAttribute("disabled")&&o.clientHeight>0);return t&&r.length&&r.unshift(t),r},gr=e=>{const{root:t,extraElement:n,target:r,mode:o}=e,i=wn(t,n),a=i.length-1,l=qt(),d=i.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let m=f[r];const h=m>a||m<0;return h&&(o==="action-menu"?m=r==="prev"?f.first:f.last:m=r==="prev"?f.last:f.first),{overflow:h,el:i[m]}},Bt=(e,t)=>{var n;(n=document.querySelector(`[${Ot}]`))==null||n.removeAttribute(Ot),t==="selection-menu"?e.setAttribute(Ot,"true"):e.focus()},Wt=(e,t)=>{const n=gr({root:e,target:t});Bt(n.el)},es=e=>Wt(e,"next"),ts=e=>Wt(e,"prev"),ns=e=>Wt(e,"first"),rs=e=>Wt(e,"last"),os=(()=>{let e=[];const t=r=>{let o=r.parentNode&&r.parentNode.firstChild;for(;o;){const i=o!==r,a=o.nodeType===1&&!o.hasAttribute("aria-hidden");i&&a&&(o.setAttribute("aria-hidden","true"),e.push(o)),o=o.nextSibling}},n=()=>{e.forEach(r=>{r.removeAttribute("aria-hidden")}),e=[]};return r=>{let o=r;for(e.length&&n();o!==document.body;)t(o),o=o.parentElement;return{release:n}}})(),Ht=(()=>{let e=null,t=null;const n=new Zo;return(r,o={})=>{const{mode:i="dialog",onNavigateOutside:a,includeTrigger:l}=o,d=qt(),f=i==="dialog",m=i==="content-menu",h=i==="selection-menu",_=f||m,v=i==="action-menu"||h,p=wn(r,l?d:void 0);let x;const y=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const $=wn(r,l?d:void 0);$.length&&Bt($[0],i)}),w=($={})=>{const{withoutFocusReturn:E}=$;n.removePreviousTill(x,z=>document.body.contains(z.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:E||!fr()}),e&&(e(),t&&t.release(),e=null,t=null);const T=n.tailId&&n.get(n.tailId);T&&Ht(T.data.root,T.data.options)},b=$=>{const E=$.key,T=E===Qo,z=T&&!$.shiftKey,S=T&&$.shiftKey,O=v&&E===dr,P=v&&E===ur,A=S&&_||O,q=z&&_||P,V=qt()===d,L=gr({root:r,target:A?"prev":"next",extraElement:l?d:void 0,mode:i});if(T&&v||m&&T&&L.overflow){S&&!V&&$.preventDefault(),w(),a==null||a();return}!A&&!q||($.preventDefault(),L.el&&Bt(L.el,i))};if(e&&e(),f&&(t=os(r)),y.observe(r,{childList:!0,subtree:!0}),!p.length)return null;document.addEventListener("keydown",b),e=()=>document.removeEventListener("keydown",b);const j=n.tailId&&n.get(n.tailId);return(!j||r!==j.data.root)&&(x=n.add({root:r,trigger:d,options:o}),Bt(p[0],i)),w}})(),ss=100,is=150;let at={},De=null;const vr=e=>{at[e]&&(e===De&&(De=at[e].parentId),delete at[e],De===null&&(at={}))},as=(e,t,n)=>{var i;const r=De?at[De]:void 0;!((n==null?void 0:n.current)&&r&&((i=r.contentRef.current)==null?void 0:i.contains(n.current)))&&n&&De&&vr(De),at[e]={parentId:De,triggerRef:n,contentRef:t},De=e},br=(e=!1,t,n)=>{const r=$e(),o=c.useCallback(()=>De===r,[r]);return c.useEffect(()=>{e?as(r,t,n):vr(r)},[e,r,t,n]),o},le=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,lt="+",ze={},yn=[],pr=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),jn=e=>pr(e).split(lt).sort().join(lt),xr=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},ls=e=>{const t=[],n=e.join(lt),o=jn(n).split(lt),i=(a,l)=>{l.forEach((d,f)=>{const m=a?`${a}+${d}`:d;t.push(m),i(m,l.slice(f+1))})};return i("",o),t},cs=(e,t)=>{const n=Object.keys(e);n.length&&ls(n).forEach(r=>{t(r)})},Cn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(r=>{const o=e[n];o&&t(jn(r),o)})})};class ds{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{Cn(t,(r,o)=>{o&&(this.hotkeyMap[r]||(this.hotkeyMap[r]={data:new Set,used:!1}),this.hotkeyMap[r].data.add({callback:o,ref:n}))})},this.unbindHotkeys=t=>{Cn(t,(n,r)=>{var o,i;r&&((o=this.hotkeyMap[n])==null||o.data.forEach(a=>{a.callback===r&&this.hotkeyMap[n].data.delete(a)}),(i=this.hotkeyMap[n])!=null&&i.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{cs(t,r=>{const o=this.hotkeyMap[r];!o||o.used||o!=null&&o.data.size&&o.data.forEach(i=>{var a;(a=i.ref)!=null&&a.current&&!(n.target===i.ref.current||i.ref.current.contains(n.target))||(i.callback(t[r]),this.hotkeyMap[r].used=!0)})})},this.handleKeyUp=t=>{const n=jn(t.key);Cn(this.hotkeyMap,(r,o)=>{r.split(lt).includes(n)&&(o.used=!1)})}}}const Rt=new ds,wr=c.createContext({}),us=e=>{const{children:t}=e,[n,r]=c.useState(0),[o,i]=c.useState(0),a=c.useCallback(_=>{if(_.repeat||o===0)return;const v=xr(_);v&&(ze[v]=_,(v==="meta"||v==="control")&&(ze.mod=_),r(Object.keys(ze).length),v==="meta"&&yn.push(...Object.keys(ze)),ze.Meta&&yn.push(v))},[o]),l=c.useCallback(_=>{if(o===0)return;const v=xr(_);v&&(delete ze[v],(v==="meta"||v==="control")&&delete ze.mod,v==="meta"&&yn.forEach(p=>{delete ze[p]}),r(Object.keys(ze).length))},[o]),d=_=>!pr(_).split(lt).some(p=>!ze[p]),f=c.useCallback((_,v)=>(i(p=>p+1),Rt.bindHotkeys(_,v),()=>{i(p=>p-1),Rt.unbindHotkeys(_)}),[]),m=c.useCallback(_=>{_.key&&(a(_),Rt.handleKeyDown(ze,_))},[a]),h=c.useCallback(_=>{_.key&&(l(_),Rt.handleKeyUp(_))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",m),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",m),window.removeEventListener("keyup",h)}),[m,h]),s.jsx(wr.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},_s=()=>c.useContext(wr),rt=(e,t=[],n)=>{const{addHotkeys:r,isPressed:o}=_s(),i=c.useRef(null),a=(n==null?void 0:n.ref)||i;return c.useEffect(()=>{const l=r(e,a);return()=>l==null?void 0:l()},[r,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:o}},kn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ms=e=>{const t=c.useState(e||!1),[n,r]=t;return le(()=>{const o=new MutationObserver(i=>{i.forEach(a=>{if(a.attributeName!=="dir")return;const l=a.target.dir==="rtl";n!==l&&r(l)})});return o.observe(document.documentElement,{attributes:!0}),()=>o.disconnect()},[n]),le(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(kn).rtl,Nn=e=>{const t=e&&window.getComputedStyle(e).overflowY,n=t==null?void 0:t.includes("scroll");return e===document.body||!e?document.body:n&&e.scrollHeight>e.clientHeight?e:Nn(e.parentElement)},yr=16,Ut=["top-start","top","top-end"],Kt=["bottom-start","bottom","bottom-end"],Yt=["start","start-bottom","start-top"],Gt=["end","end-bottom","end-top"],fs={top:[...Ut,...Kt,...Gt,...Yt],bottom:[...Kt,...Ut,...Gt,...Yt],start:[...Yt,...Gt,...Ut,...Kt],end:[...Gt,...Yt,...Ut,...Kt]},hs=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,jr=(e,t)=>Math.floor(e/2-t/2),gs=e=>{const n=["top","bottom","start","end"].find(r=>e.startsWith(r))||"bottom";return fs[n]},$n=e=>{const t=document.documentElement,n=t.scrollLeft,r=n+t.clientWidth,o=t.scrollTop,i=o+t.clientHeight;return e.left>=n&&e.left+e.width<=r&&e.top>=o&&e.top+e.height<=i},Cr=(e,t,n,r)=>{const{position:o,rtl:i,width:a}=r;let l=0,d=0,f=o;switch(i&&(f=hs(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=jr(e.width,t.width)+e.left;break;case"start":case"start-top":case"start-bottom":l=e.left-t.width;break;case"end":case"end-top":case"end-bottom":l=e.right;break;case"top-start":case"bottom-start":l=e.left;break;case"top-end":case"bottom-end":l=e.right-t.width;break}switch(f){case"top":case"top-start":case"top-end":d=e.top-t.height;break;case"bottom":case"bottom-start":case"bottom-end":d=e.bottom;break;case"start":case"end":d=jr(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||l===void 0)throw Error(`[Reshaped, flyout]: ${f} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),l=Math.round(l+(window.scrollX||0)-n.left);let m=Math.ceil(t.width);const h=Math.ceil(t.height);return a==="full"?(l=yr,m=window.innerWidth-yr*2):a==="trigger"&&(m=e.width),{styles:{left:l,top:d,width:m,height:h},position:f}},kr={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},En={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},vs=(e,t,n)=>{const{position:r,forcePosition:o,width:i}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(En).forEach(v=>{const p=En[v];a.style[v]=p.toString()}),i&&(i==="trigger"?a.style.width=`${l.width}px`:i!=="full"&&(a.style.width=i)),document.body.appendChild(a);const d=a.getBoundingClientRect(),f=Nn(e),m=f.getBoundingClientRect(),h={top:m.top+document.documentElement.scrollTop-f.scrollTop,left:m.left+document.documentElement.scrollLeft-f.scrollLeft};let _=Cr(l,d,h,n);if(!$n(_.styles)&&!o){const v=gs(r),p=v.filter(y=>y==="top"||y==="bottom"),x=(y,w={})=>{const{fullWidth:b}=w;y.some(j=>{const $=C(g({},n),{width:b?"full":n.width,position:j}),E=Cr(l,d,h,$);return $n(E.styles)?(_=E,!0):!1})};x(v),$n(_.styles)||x(p,{fullWidth:!0})}return a.parentNode.removeChild(a),_},bs=(e,t)=>{switch(t.type){case"render":return C(g({},e),{status:"rendered",styles:{pointerEvents:"none"}});case"position":return C(g({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:g(g({},kr),t.payload.styles)});case"show":return C(g({},e),{status:"visible"});case"hide":return C(g({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return C(g({},e),{status:"idle",styles:En});default:throw new Error("Invalid reducer type")}},ps=(e,t,n)=>{const{position:r="bottom",forcePosition:o,width:i}=n,[a]=Ge(),[l,d]=c.useReducer(bs,{position:r,styles:kr,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),m=c.useCallback(()=>{d({type:"show"})},[]),h=c.useCallback(()=>{d({type:"hide"})},[]),_=c.useCallback(()=>{d({type:"remove"})},[]),v=c.useCallback(()=>{if(!e.current||!t.current)return;const p=vs(e.current,t.current,{width:i,position:r,forcePosition:o,rtl:a});d({type:"position",payload:p})},[e,t,r,a,o,i]);return c.useEffect(()=>{l.status==="rendered"&&v(),l.status==="positioned"&&$t(()=>m())},[l.status,v,m]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:v,render:f,hide:h,remove:_}),[f,v,h,_,l.position,l.styles,l.status])},xs=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=r=>{let o=!1;e.forEach(i=>{(!i.current||i.current===r.target||i.current.contains(r.target))&&(o=!0)}),!o&&t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},Nr=c.createContext({}),Xt=()=>c.useContext(Nr),ws=Nr.Provider,$r=e=>{const{triggerType:t="click",onOpen:n,onClose:r,children:o,forcePosition:i,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:m,contentAttributes:h,position:_,active:v,id:p,instanceRef:x}=e,[y]=Ge(),w=c.useRef(null),b=c.useRef(null),j=$e(p),$=c.useRef(),E=c.useRef(null),T=c.useRef(!1),z=c.useRef(!1),S=c.useRef(!0),O=ps(w,b,{width:l,position:_,defaultActive:v,forcePosition:i}),P=Xt(),{status:A,updatePosition:q,render:V,hide:L,remove:Q}=O,fe=br(t!=="hover"&&A!=="idle",b,w),he=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),oe=c.useCallback(()=>{!T.current&&A==="idle"&&(n==null||n())},[A]),Z=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&A!=="idle"&&(r==null||r(),X!=null&&X.closeParents&&((Me=P==null?void 0:P.handleClose)==null||Me.call(P)))},[A,fe,t]),He=c.useCallback(X=>{var ge;(ge=b.current)!=null&&ge.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||z.current||Z()},[Z,t,a]),Ce=c.useCallback(()=>{oe()},[oe]),se=c.useCallback(()=>{he(),$.current=setTimeout(oe,ss)},[he,$,oe]),H=c.useCallback(()=>{he(),$.current=setTimeout(()=>Z(),is)},[he,$,Z]),Y=c.useCallback(()=>{A==="idle"?oe():Z()},[A,oe,Z]),G=()=>z.current=!0,ie=()=>z.current=!1;le(()=>{if(v){V();return}Bo()&&!d?L():Q()},[v,V,L,d]);const ye=c.useCallback(X=>{b.current!==X.currentTarget||X.propertyName!=="transform"||A==="hidden"&&Q()},[Q,A]);return le(()=>{A!=="visible"||!b.current||(E.current=Ht(b.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{E.current=null,Z()}}))},[A,t,Z,a]),c.useEffect(()=>{!d&&A!=="hidden"||d&&A!=="idle"||E.current&&(t==="hover"&&(T.current=!0,setTimeout(()=>{T.current=!1},100)),E.current({withoutFocusReturn:!S.current}),E.current=null,S.current=!0)},[A,t,d]),c.useEffect(()=>()=>{E.current&&E.current(),E.current=null},[]),c.useEffect(()=>{const X=Jn(q,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[q]),c.useEffect(()=>{q()},[y,q]),c.useImperativeHandle(x,()=>({open:oe,close:Z}),[oe,Z]),rt({Escape:()=>Z()},[Z]),xs([b,w],()=>{S.current=!1,Z()}),s.jsx(ws,{value:{id:j,flyout:O,triggerElRef:w,flyoutElRef:b,handleClose:Z,handleOpen:oe,handleFocus:Ce,handleBlur:He,handleMouseEnter:se,handleMouseLeave:H,handleTransitionEnd:ye,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:m,contentAttributes:h},children:o})},ys=e=>{const{defaultActive:t,onClose:n,onOpen:r}=e,[o,i]=c.useState(t||!1),a=()=>{i(!1),n&&n()},l=()=>{i(!0),r&&r()};return s.jsx($r,C(g({},e),{defaultActive:void 0,active:o,onClose:a,onOpen:l}))},js=e=>{const{children:t}=e,{id:n,triggerElRef:r,triggerType:o,flyout:i,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:m,trapFocusMode:h}=Xt();let _={onBlur:l,ref:r};return(o==="click"||h==="action-menu")&&(_.onClick=m),o==="hover"&&(_.onMouseEnter=d,_.onMouseLeave=f),(o==="hover"&&h!=="action-menu"||o==="focus")&&(_.onFocus=a,_["aria-describedby"]=n),(o==="click"||o==="focus"||h==="action-menu")&&(h==="dialog"?_["aria-haspopup"]="dialog":h==="selection-menu"?(_["aria-haspopup"]="listbox",_["aria-autocomplete"]="list"):_["aria-haspopup"]="menu",_["aria-expanded"]=i.status!=="idle",_["aria-controls"]=i.status!=="idle"?n:void 0),s.jsx(s.Fragment,{children:t(_)})},Er=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),zn=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),Cs=()=>{const{mode:e}=c.useContext(zn);return e},zr=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Er),{mode:r,setMode:o,invertMode:i}=c.useContext(zn);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||r,setColorMode:o,invertColorMode:i}),[e,r,o,i,t,n])},ks={root:"_root_r30zs_1"},ct=e=>{const{name:t,defaultName:n,colorMode:r,children:o,className:i}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),m=Cs(),h=zr(),_=!h.theme,v=t||d||h.theme,p=_?m:h.colorMode,y=r==="inverted"?p==="light"?"dark":"light":r||p,w=M(ks.root,i),b=j=>{f(j)};return le(()=>{l(!0)},[]),le(()=>{if(!document||!_)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",v),j||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[v,y,_]),s.jsx(Er.Provider,{value:{theme:v,colorMode:y,setTheme:b},children:s.jsx("div",{className:w,"data-rs-theme":_?void 0:v,"data-rs-color-mode":_||!r&&!a?void 0:y,children:o})})},Ns=e=>{const{defaultMode:t,children:n}=e,[r,o]=c.useState(t||"light"),i=c.useCallback(l=>{document.documentElement.setAttribute("data-rs-color-mode",l),o(d=>(d!==l&&Oo(),l))},[]);le(()=>{$t(()=>{qo()})},[r]),le(()=>{const l=document.documentElement.getAttribute("data-rs-color-mode");l&&i(l)},[]);const a=c.useMemo(()=>({mode:r,setMode:i,invertMode:()=>{i(r==="light"?"dark":"light")}}),[r,i]);return s.jsx(zn.Provider,{value:a,children:n})},Tr=c.createContext({}),$s=()=>c.useContext(Tr),Jt=e=>{const{children:t,targetRef:n}=e,r=$s(),o=n||r.scopeRef;return _e.createPortal(s.jsx(ct,{children:t}),(o==null?void 0:o.current)||document.body)};function Es(e){const{children:t}=e,n=c.useRef(null);return s.jsx(Tr.Provider,{value:{scopeRef:n},children:t(n)})}Jt.Scope=Es;const zt={content:"_content_u88xy_1",inner:"_inner_u88xy_5","--position-top":"_--position-top_u88xy_9","--position-top-end":"_--position-top-end_u88xy_10","--position-top-start":"_--position-top-start_u88xy_11","--position-bottom":"_--position-bottom_u88xy_15","--position-bottom-end":"_--position-bottom-end_u88xy_16","--position-bottom-start":"_--position-bottom-start_u88xy_17","--position-start":"_--position-start_u88xy_21","--position-start-top":"_--position-start-top_u88xy_22","--position-start-bottom":"_--position-start-bottom_u88xy_23","--position-end":"_--position-end_u88xy_27","--position-end-top":"_--position-end-top_u88xy_28","--position-end-bottom":"_--position-end-bottom_u88xy_29","--visible":"_--visible_u88xy_57","--animated":"_--animated_u88xy_62"},zs=e=>{const{children:t,className:n,attributes:r}=e,{flyout:o,id:i,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:m,handleMouseLeave:h,handleContentMouseDown:_,handleContentMouseUp:v,contentGap:p,contentClassName:x,contentAttributes:y,trapFocusMode:w}=Xt(),{styles:b,status:j,position:$}=o,[E,T]=c.useState(!1);if(le(()=>{T(!0)},[]),j==="idle"||!E)return null;const z=M(zt.content,j==="visible"&&zt["--visible"],["visible","hidden"].includes(j)&&zt["--animated"],$&&zt[`--position-${$}`]),S=M(zt.inner,n,x);let O;f==="hover"?O="tooltip":w==="dialog"?O="dialog":w==="selection-menu"?O="listbox":w==="action-menu"&&(O="menu");const P=s.jsx("div",{className:z,style:C(g({},b),{"--rs-flyout-gap":p}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?m:void 0,onMouseLeave:f==="hover"?h:void 0,onMouseDown:_,onTouchStart:_,onMouseUp:v,onTouchEnd:v,children:s.jsx("div",C(g({role:O},r),{id:i,"aria-modal":f==="click",style:y==null?void 0:y.style,className:S,children:t}))}),A=Nn(l.current);return s.jsx(Jt,{targetRef:A===document.body?void 0:{current:A},children:P})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?s.jsx($r,g({},e)):s.jsx(ys,g({},e))};Xe.Trigger=js,Xe.Content=zs;const Tn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},Ts={root:"_root_e7w6q_1"},In=e=>{if(!e)return null;const t=ee("--rs-p",e);return{classNames:Ts.root,variables:t}},dt=e=>{var j;const{id:t,forcePosition:n,onOpen:r,onClose:o,active:i,defaultActive:a,children:l,width:d,contentGap:f,variant:m="elevated",triggerType:h="click",position:_="bottom",disableHideAnimation:v,instanceRef:p}=e,x=(j=e.padding)!=null?j:m==="headless"?0:4,y=e.trapFocusMode||(h==="hover"?"content-menu":void 0),w=In(x),b=M(Tn.content,!!d&&Tn["content--has-width"],m&&Tn[`content--variant-${m}`],w==null?void 0:w.classNames);return s.jsx(Xe,{id:t,instanceRef:p,position:_,forcePosition:n,onOpen:r,onClose:o,trapFocusMode:y,triggerType:h,active:i,defaultActive:a,width:d,disableHideAnimation:v,contentGap:f,contentClassName:b,contentAttributes:{style:g({},w==null?void 0:w.variables)},children:l})};dt.Trigger=Xe.Trigger,dt.Content=Xe.Content;const Be={root:"_root_13dku_1",icon:"_icon_13dku_12",content:"_content_13dku_17","--rounded-corners":"_--rounded-corners_13dku_22","--size-small":"_--size-small_13dku_1","--size-medium":"_--size-medium_13dku_1","--size-large":"_--size-large_13dku_1","--color-neutral":"_--color-neutral_13dku_61","--selected":"_--selected_13dku_65","--color-critical":"_--color-critical_13dku_71","--color-primary":"_--color-primary_13dku_81","--disabled":"_--disabled_13dku_102",aligner:"_aligner_13dku_123","--rounded-corners-true--m":"_--rounded-corners-true--m_13dku_1","--rounded-corners-false--m":"_--rounded-corners-false--m_13dku_1","--size-small--m":"_--size-small--m_13dku_1","--size-medium--m":"_--size-medium--m_13dku_1","--size-large--m":"_--size-large--m_13dku_1","--rounded-corners-true--l":"_--rounded-corners-true--l_13dku_1","--rounded-corners-false--l":"_--rounded-corners-false--l_13dku_1","--size-small--l":"_--size-small--l_13dku_1","--size-medium--l":"_--size-medium--l_13dku_1","--size-large--l":"_--size-large--l_13dku_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_13dku_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_13dku_1","--size-small--xl":"_--size-small--xl_13dku_1","--size-medium--xl":"_--size-medium--xl_13dku_1","--size-large--xl":"_--size-large--xl_13dku_1"},Is=e=>s.jsx(Dt,C(g({},e),{side:e.side||"inline",className:[Be.aligner,e.className]})),Ms=(e,t)=>{const{icon:n,startSlot:r,endSlot:o,children:i,color:a="primary",selected:l,disabled:d,onClick:f,href:m,size:h="medium",roundedCorners:_,className:v,attributes:p}=e,x=M(Be.root,v,W(Be,"--size",h),W(Be,"--rounded-corners",_),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=Le(h,b=>b==="large"?3:2),w=Le(h,b=>b==="large"?5:4);return s.jsx(Ve,{disabled:d,className:x,attributes:C(g({},p),{"data-rs-aligner-target":!0}),onClick:f,href:m,ref:t,children:s.jsxs(U,{direction:"row",gap:y,align:"center",children:[n&&s.jsx(ce,{svg:n,className:Be.icon,size:w}),!n&&r,i&&s.jsx(U.Item,{grow:!0,className:Be.content,children:i}),o]})})},Mn=c.forwardRef(Ms);Mn.Aligner=Is;const Qt=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),Zt={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},Sn=c.createContext(null),we=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:r="click",trapFocusMode:o="action-menu"}=a,i=Fe(a,["children","position","triggerType","trapFocusMode"]);return s.jsx(dt,C(g({},i),{position:n,padding:0,trapFocusMode:o,triggerType:r,children:t}))},Ss=e=>{const{children:t,attributes:n,className:r}=e,o=c.useContext(Sn),[i]=Ge(),{ref:a}=rt({[i?_r:mr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.close()},[Jo]:()=>{const d=qt();d==null||d.click()}},[o==null?void 0:o.current]),l=M(Zt.menu,r);return s.jsx(dt.Content,{className:l,attributes:C(g({},n),{ref:a}),children:t})},Ps=e=>{const{children:t}=e;return s.jsx("div",{className:Zt.section,role:"group",children:t})},Ir=e=>{const{onClick:t}=e,{handleClose:n}=Xt(),r=o=>{n&&n({closeParents:!0}),t&&t(o)};return s.jsx(Mn,C(g({},e),{roundedCorners:!0,className:Zt.item,attributes:g({role:"menuitem"},e.attributes),onClick:r}))},As=e=>{const{children:t}=e,n=c.useRef();return s.jsx(Sn.Provider,{value:n,children:s.jsx(we,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Fs=e=>{const l=e,{children:t,attributes:n}=l,r=Fe(l,["children","attributes"]),o=c.useContext(Sn),[i]=Ge(),{ref:a}=rt({[i?mr:_r]:()=>{var d;(d=o==null?void 0:o.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return s.jsx(Ir,C(g({},r),{attributes:C(g({},n),{ref:a}),endSlot:s.jsx(ce,{autoWidth:!0,svg:Qt,className:Zt.arrow}),children:t}))},Ls=e=>{const{children:t}=e;return s.jsx(we.Trigger,{children:n=>s.jsx(Fs,{attributes:n,children:t})})};we.Trigger=dt.Trigger,we.Content=Ss,we.Section=Ps,we.Item=Ir,we.SubMenu=As,we.SubTrigger=Ls;const Mr=c.createContext({}),Sr=e=>{const w=e,{children:t,onChange:n,onItemSelect:r,name:o}=w,i=Fe(w,["children","onChange","onItemSelect","name"]),a=c.useRef(null),[l,d]=c.useState(!1),[f,m]=c.useState(!1),h=!!c.Children.toArray(t).filter(Boolean).length,_=c.useCallback(()=>d(!0),[]),v=()=>d(!1);rt({[`${dr},${ur}`]:()=>_()},[_],{ref:a});const p=b=>{n==null||n(b),m(!1),_()},x=b=>{n==null||n({value:b.value,name:o}),r==null||r({value:b.value}),m(!0)},y=b=>{var j;requestAnimationFrame(()=>{f&&(d(!1),m(!1))}),(j=i.onFocus)==null||j.call(i,b)};return s.jsx(Mr.Provider,{value:{onItemClick:x},children:s.jsxs(we,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!f&&h&&l,onClose:v,onOpen:_,disableHideAnimation:!0,children:[s.jsx(we.Trigger,{children:$=>{var E=$,{ref:b}=E,j=Fe(E,["ref"]);return s.jsx(pn,C(g({},i),{name:o,onChange:p,attributes:C(g({},i.attributes),{ref:b}),inputAttributes:C(g({},j),{onFocus:T=>{var z;(z=j.onFocus)==null||z.call(j),y(T)},ref:a,role:"combobox"})}))}}),s.jsx(we.Content,{children:t})]})})},Vs=e=>{const a=e,{value:t,onClick:n}=a,r=Fe(a,["value","onClick"]),{onItemClick:o}=c.useContext(Mr),i=l=>{n==null||n(l),o({value:t})};return s.jsx(we.Item,C(g({},r),{attributes:C(g({},r.attributes),{role:"option"}),onClick:i}))};Sr.Item=Vs;const en={root:"_root_1m0a1_1",img:"_img_1m0a1_13","--variant-faded":"_--variant-faded_1m0a1_20","--color-neutral":"_--color-neutral_1m0a1_21","--color-critical":"_--color-critical_1m0a1_25","--color-positive":"_--color-positive_1m0a1_29","--color-primary":"_--color-primary_1m0a1_33"},Ds=e=>{const{color:t="neutral",variant:n,src:r,size:o=12,squared:i,initials:a,icon:l,alt:d,className:f,attributes:m}=e,h=i?Le(o,x=>x>=24?"large":x>=12?"medium":"small"):"circular",_=Ct(o),v=M(en.root,f,_==null?void 0:_.classNames,t&&en[`--color-${t}`],n&&en[`--variant-${n}`]),p=()=>r?s.jsx("img",{role:a?void 0:"presentation",src:r,alt:d,className:en.img}):l?s.jsx(ce,{svg:l,size:Le(o,x=>Math.ceil(x*.4))}):a;return s.jsx(U,{borderRadius:h,attributes:C(g({},m),{style:g({},_==null?void 0:_.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:v,children:p()})},Pr=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Te={root:"_root_xbb1o_1",dismiss:"_dismiss_xbb1o_21","--actionable":"_--actionable_xbb1o_26","--variant-faded":"_--variant-faded_xbb1o_1","--variant-outline":"_--variant-outline_xbb1o_1","--color-positive":"_--color-positive_xbb1o_47","--color-critical":"_--color-critical_xbb1o_67","--color-primary":"_--color-primary_xbb1o_87","--size-small":"_--size-small_xbb1o_1","--size-medium":"_--size-medium_xbb1o_1","--size-large":"_--size-large_xbb1o_1","--rounded":"_--rounded_xbb1o_133","--hidden":"_--hidden_xbb1o_145",container:"_container_xbb1o_152","--container-overlap":"_--container-overlap_xbb1o_177","--container-position-top-end":"_--container-position-top-end_xbb1o_181","--container-position-bottom-end":"_--container-position-bottom-end_xbb1o_193"},Os=e=>{const{children:t,position:n="top-end",overlap:r,className:o,attributes:i}=e,a=M(Te.container,o,r&&Te["--container-overlap"],n&&Te[`--container-position-${n}`]);return s.jsx("div",C(g({},i),{className:a,children:t}))},Ar=e=>{const{children:t,color:n,rounded:r,size:o="medium",icon:i,endIcon:a,variant:l,hidden:d,href:f,onClick:m,onDismiss:h,dismissAriaLabel:_,className:v,attributes:p}=e,x=!!(m||f),y=o==="large"?4:3.5,w=M(Te.root,v,r&&Te["--rounded"],d&&Te["--hidden"],o&&Te[`--size-${o}`],n&&Te[`--color-${n}`],l&&Te[`--variant-${l}`],x&&Te["--actionable"]);return s.jsxs(Ve,{onClick:m,href:f,className:w,attributes:p,children:[i&&s.jsx(ce,{svg:i,autoWidth:!0,size:y}),t&&s.jsx(te,{variant:o==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&s.jsx(ce,{svg:a,autoWidth:!0,size:y}),h&&s.jsx(Ve,{onClick:h,className:Te.dismiss,as:"span",attributes:{"aria-label":_},children:s.jsx(ce,{svg:Pr,size:y})})]})};Ar.Container=Os;const tn={root:"_root_1ty16_15","rs-reshaped-loader":"_rs-reshaped-loader_1ty16_1",inner:"_inner_1ty16_44","--color-inherit":"_--color-inherit_1ty16_63","--color-primary":"_--color-primary_1ty16_67","--color-positive":"_--color-positive_1ty16_71","--color-critical":"_--color-critical_1ty16_75","--size-small":"_--size-small_1ty16_1","--size-medium":"_--size-medium_1ty16_1","--size-small--m":"_--size-small--m_1ty16_1","--size-medium--m":"_--size-medium--m_1ty16_1","--size-small--l":"_--size-small--l_1ty16_1","--size-medium--l":"_--size-medium--l_1ty16_1","--size-small--xl":"_--size-small--xl_1ty16_1","--size-medium--xl":"_--size-medium--xl_1ty16_1"},Fr=e=>{const{size:t="small",color:n="primary",className:r,attributes:o}=e,i=o==null?void 0:o["aria-label"],a=M(tn.root,r,W(tn,"--size",t),n&&tn[`--color-${n}`]);return s.jsx("span",C(g({},o),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:a,children:s.jsx("span",{className:tn.inner})}))},de={root:"_root_6msy8_1",loader:"_loader_6msy8_37",icon:"_icon_6msy8_45","--icon-position-end":"_--icon-position-end_6msy8_49",text:"_text_6msy8_60","--loading":"_--loading_6msy8_66","--elevated":"_--elevated_6msy8_83","--icon-only":"_--icon-only_6msy8_87","--rounded":"_--rounded_6msy8_93","--size-small":"_--size-small_6msy8_1","--size-medium":"_--size-medium_6msy8_1","--size-large":"_--size-large_6msy8_1","--size-xlarge":"_--size-xlarge_6msy8_1","--full-width":"_--full-width_6msy8_135","--variant-solid":"_--variant-solid_6msy8_149","--color-black":"_--color-black_6msy8_149","--color-white":"_--color-white_6msy8_150","--variant-faded":"_--variant-faded_6msy8_151","--color-neutral":"_--color-neutral_6msy8_151","--color-primary":"_--color-primary_6msy8_152","--color-critical":"_--color-critical_6msy8_153","--color-positive":"_--color-positive_6msy8_154","--color-inherit":"_--color-inherit_6msy8_155","--variant-outline":"_--variant-outline_6msy8_156","--variant-ghost":"_--variant-ghost_6msy8_157","--highlighted":"_--highlighted_6msy8_176","--disabled":"_--disabled_6msy8_529",group:"_group_6msy8_561",aligner:"_aligner_6msy8_622","--size-small--m":"_--size-small--m_6msy8_1","--size-medium--m":"_--size-medium--m_6msy8_1","--size-large--m":"_--size-large--m_6msy8_1","--size-xlarge--m":"_--size-xlarge--m_6msy8_1","--full-width-true--m":"_--full-width-true--m_6msy8_1","--full-width-false--m":"_--full-width-false--m_6msy8_1","--size-small--l":"_--size-small--l_6msy8_1","--size-medium--l":"_--size-medium--l_6msy8_1","--size-large--l":"_--size-large--l_6msy8_1","--size-xlarge--l":"_--size-xlarge--l_6msy8_1","--full-width-true--l":"_--full-width-true--l_6msy8_1","--full-width-false--l":"_--full-width-false--l_6msy8_1","--size-small--xl":"_--size-small--xl_6msy8_1","--size-medium--xl":"_--size-medium--xl_6msy8_1","--size-large--xl":"_--size-large--xl_6msy8_1","--size-xlarge--xl":"_--size-xlarge--xl_6msy8_1","--full-width-true--xl":"_--full-width-true--xl_6msy8_1","--full-width-false--xl":"_--full-width-false--xl_6msy8_1"},qs=e=>{const{children:t,className:n,attributes:r}=e,o=M(de.group,n);return s.jsx("div",C(g({},r),{className:o,role:"group",children:t}))},Bs=e=>s.jsx(Dt,C(g({},e),{side:e.side||e.position,className:[de.aligner,e.className]})),Ws=(e,t)=>{const{variant:n="solid",color:r="neutral",elevated:o,highlighted:i,fullWidth:a,loading:l,disabled:d,type:f,href:m,size:h="medium",className:_,children:v,rounded:p,attributes:x,onClick:y,icon:w,endIcon:b}=e,j=(w||b)&&!v,$=M(de.root,_,r&&de[`--color-${r}`],n&&de[`--variant-${n}`],W(de,"--size",h),W(de,"--full-width",a),o&&n!=="ghost"&&de["--elevated"],p&&de["--rounded"],d&&de["--disabled"],l&&de["--loading"],i&&de["--highlighted"],j&&de["--icon-only"]),E=T=>{if(!(T==="start"&&w||T==="end"&&b))return null;const P=M(de.icon,T==="end"&&de["--icon-position-end"]),A=Le(h,q=>q==="large"?5:q==="xlarge"?6:4);return s.jsx(ce,{className:P,svg:T==="start"?w:b,size:A,autoWidth:!0})};return s.jsxs(Ve,{disabled:d||l,className:$,attributes:C(g({},x),{"data-rs-aligner-target":!0}),type:f,onClick:y,href:m,ref:t,children:[l&&s.jsx("div",{className:de.loader,children:s.jsx(Fr,{size:"small",color:"inherit"})}),E("start"),v&&s.jsx("span",{className:de.text,children:v}),E("end")]})},je=c.forwardRef(Ws);je.Group=qs,je.Aligner=Bs;const Tt={root:"_root_def7r_1","--color-primary":"_--color-primary_def7r_6","--color-critical":"_--color-critical_def7r_10","--color-positive":"_--color-positive_def7r_14","--color-inherit":"_--color-inherit_def7r_18","--variant-plain":"_--variant-plain_def7r_22","--disabled":"_--disabled_def7r_26","--variant-underline":"_--variant-underline_def7r_32","--with-icon":"_--with-icon_def7r_48"},Hs=(e,t)=>{const{icon:n,disabled:r,href:o,color:i="primary",variant:a="underline",className:l,children:d,attributes:f,type:m,onClick:h}=e,_=M(Tt.root,l,r&&Tt["--disabled"],a&&Tt[`--variant-${a}`],i&&Tt[`--color-${i}`],n&&Tt["--with-icon"]);return s.jsxs(Ve,{href:o,disabled:r,className:_,attributes:f,type:m,onClick:h,ref:t,children:[n&&s.jsx(ce,{svg:n}),d]})},Lr=c.forwardRef(Hs),Rs=()=>s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),s.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),s.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Us=e=>{const{children:t,onClick:n,href:r,icon:o,disabled:i}=e;return!r&&!n&&!i?s.jsx(te,{variant:"body-3",weight:"medium",color:"neutral",children:t}):s.jsx(Lr,{onClick:n,href:r,icon:o,disabled:i,variant:"plain",color:"inherit",children:t})},Vr=e=>{const{children:t,separator:n,color:r,defaultVisibleItems:o,ariaLabel:i,className:a,attributes:l}=e,d=o&&o>=2?o:null,[f,m]=c.useState(!1),h=M(a),_=c.Children.count(t);let v=0;const p=()=>{m(!0)};return s.jsx("nav",C(g({},l),{"aria-label":i||(l==null?void 0:l["aria-label"]),className:h,children:s.jsx(U,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,y)=>{if(!x)return null;const w=_-(d||0),b=v===0,j=v>w,$=!d||b||j||f,E=v===w;v+=1;let T=null;return $?T=x:E&&(T=s.jsx(je.Aligner,{children:s.jsx(je,{variant:"ghost",size:"small",icon:Rs,onClick:p})})),T===null?null:s.jsxs(U,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||E)&&s.jsx(te,{color:"neutral-faded",children:n||s.jsx(ce,{svg:Qt,size:3})}),s.jsx(te,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:T})]},y)})})}))};Vr.Item=Us;const ut={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},Ks=(e,t)=>{const{padding:n=4}=e,{selected:r,elevated:o,bleed:i,height:a,onClick:l,href:d,children:f,className:m,attributes:h,as:_="div"}=e,v=!!d||!!l,p=_n("medium"),x=rr(i),y=In(n),w=Ct(a),b=M(ut.root,p==null?void 0:p.classNames,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,v&&ut["--actionable"],o&&ut["--elevated"],r&&ut["--selected"],m),j=g(g(g(g({},h==null?void 0:h.style),x==null?void 0:x.variables),y==null?void 0:y.variables),w==null?void 0:w.variables);return v?s.jsx(Ve,{className:b,attributes:C(g({},h),{style:j}),href:d,as:_,onClick:l,ref:t,children:s.jsx("span",{className:ut.content,children:f})}):s.jsx(_,C(g({},h),{onClick:l,href:d,ref:t,className:b,style:j,children:s.jsx("span",{className:ut.content,children:f})}))},Ys=c.forwardRef(Ks),Dr=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"15 18 9 12 15 6"})});var _t=(e=>(e.back="back",e.forward="forward",e))(_t||{});const We={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},Or=e=>{const{type:t,scrollElRef:n,scrollPosition:r,onClick:o,isRTL:i,mounted:a}=e,[l,d]=c.useState(!1),[f,m]=c.useState(!1),h=t===_t.forward,_=t===(i?_t.back:_t.forward),v=M(We.control,_?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return le(()=>{const p=n.current;if(!p||!a)return;let x;const y=Math.abs(r),w=y<=0,b=y+p.clientWidth>=p.scrollWidth-1;return(h?b:w)?(d(!1),x=setTimeout(()=>m(!1),1500)):(m(!0),d(!0)),()=>{x&&clearTimeout(x)}},[r,n.current,a]),s.jsx("div",{className:v,"aria-hidden":"true",children:s.jsx(je,{onClick:o,icon:_?Qt:Dr,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},Gs=e=>{const{children:t,gap:n=3,visibleItems:r,bleed:o,navigationDisplay:i,instanceRef:a,className:l,attributes:d}=e,[f,m]=c.useState(!1),[h,_]=c.useState(0),[v]=Ge(),p=c.useRef(null),x={};typeof o=="object"&&Object.entries(o).forEach(([z,S])=>{x[z]=typeof S=="number"&&S>0});const y=M(We.root,l,...W(We,"--bleed",typeof o=="number"?!0:x)),w=yo(z=>{const S=z.target;_(S.scrollLeft)},16),b=()=>{const S=getComputedStyle(p.current).gap.split(" ")[0];return Number(S.replace("px",""))},j=()=>{const z=p.current;z.scrollBy({left:z.clientWidth+b(),top:0,behavior:"smooth"})},$=()=>{const z=p.current;z.scrollBy({left:-z.clientWidth-b(),top:0,behavior:"smooth"})},E=v?j:$,T=v?$:j;return c.useImperativeHandle(a,()=>({navigateBack:E,navigateForward:T})),le(()=>{m(!0)},[]),s.jsxs("section",C(g({},d),{className:y,style:g(g({},ee("--rs-carousel-items",r)),ee("--rs-carousel-bleed",o)),children:[i!=="hidden"&&s.jsxs(s.Fragment,{children:[s.jsx(Or,{isRTL:v,type:_t.back,scrollElRef:p,scrollPosition:h,onClick:E,mounted:f}),s.jsx(Or,{isRTL:v,type:_t.forward,scrollElRef:p,scrollPosition:h,onClick:T,mounted:f})]}),s.jsx(U,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:p,onScroll:w},children:c.Children.map(t,z=>s.jsx(U.Item,{className:We.item,as:"li",children:z}))})]}))},Xs={root:"_root_1feer_1"},Pn=e=>{const{name:t,value:n,type:r,onChange:o,onFocus:i,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:m,attributes:h}=e,_=M(Xs.root,m);return s.jsx("input",C(g({},h),{className:_,type:r,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:o,onFocus:i||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},qr=c.createContext(null),Js=()=>c.useContext(qr),Br=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=d=>{const{event:f,value:m,checked:h}=d;if(!m)return;let _=[...o];h?_.push(m):_=_.filter(v=>v!==m),t&&t({name:n,value:_,event:f})};return s.jsx(qr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},Qs=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||[]),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(Br,C(g({},e),{value:r,defaultValue:void 0,onChange:i}))},Zs=e=>{const{value:t}=e;return t!==void 0?s.jsx(Br,g({},e)):s.jsx(Qs,g({},e))},ei=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}),Je={root:"_root_187rd_1",decorator:"_decorator_187rd_11",field:"_field_187rd_15",icon:"_icon_187rd_44",input:"_input_187rd_54","--error":"_--error_187rd_60","--disabled":"_--disabled_187rd_91"},ti=e=>{var $;const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,m=Js(),h=Ye(),_=(h==null?void 0:h.hasError)||e.hasError||(m==null?void 0:m.hasError),v=(h==null?void 0:h.disabled)||e.disabled||(m==null?void 0:m.disabled),p=m?($=m.value)==null?void 0:$.includes(n):e.checked,x=m?void 0:e.defaultChecked,y=m?m.name:e.name,w=c.useRef(null),b=M(Je.root,l,_&&Je["--error"],v&&Je["--disabled"]),j=E=>{if(!y)return;const{checked:T}=E.target,z={name:y,value:n,checked:T,event:E};r&&r(z),m!=null&&m.onChange&&m.onChange(z)};return le(()=>{w.current.indeterminate=a||!1},[a,p]),s.jsxs("label",C(g({},d),{className:b,children:[s.jsxs("span",{className:Je.field,children:[s.jsx(Pn,{className:Je.input,type:"checkbox",checked:p,defaultChecked:x,name:y,disabled:v,value:n,onChange:j,onFocus:o,onBlur:i,attributes:C(g({},f),{ref:w})}),s.jsx("div",{className:Je.decorator,children:s.jsx(ce,{svg:ei,className:Je.icon})})]}),t&&s.jsx("span",{className:Je.text,children:t})]}))},ni={root:"_root_1c40o_1"},ri=e=>{const{children:t,padding:n=4,width:r,className:o,attributes:i}=e,a=M(ni.root,o);return s.jsx(U,{attributes:i,className:a,paddingInline:n,width:r,maxWidth:"100%",children:t})},It={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},oi=e=>{const{children:t,align:n,onClose:r,hideCloseButton:o,variant:i,closeAriaLabel:a,className:l,attributes:d}=e,f=M(It.root,l,i&&It[`--variant-${i}`],n&&It[`--align-${n}`],o&&It["--hide-close"]),m=i==="media"?"div":je.Aligner;return s.jsxs("div",C(g({},d),{className:f,children:[t,!o&&s.jsx(m,{className:It.close,children:s.jsx(je,C(g({size:"small"},i==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:r,attributes:{"aria-label":r?a:void 0},icon:Pr}))})]}))},si={root:"_root_r7flr_1"},ii=e=>{const{children:t}=e;return s.jsx("div",{className:si.root,children:t})},Wr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},ai=e=>{const{children:t,active:n,className:r,attributes:o}=e,i=M(Wr.root,n&&Wr["--active"],r);return s.jsx(te,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:o,children:t})},nn={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},li=e=>{const{src:t,alt:n,width:r,height:o,onLoad:i,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:m,attributes:h,imageAttributes:_}=e,[v,p]=c.useState("loading"),x=_n(f),y=mn(r),w=Ct(o),b=M(nn.root,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,d&&nn[`--display-mode-${d}`],m),j=M(nn.image,b),$=M(nn.fallback,b),E=g(g({},y==null?void 0:y.variables),w==null?void 0:w.variables),T=S=>{p("success"),i==null||i(S)},z=S=>{p("error"),a==null||a(S)};return c.useEffect(()=>{p("loading")},[t]),(v==="error"||!t)&&l?typeof l=="string"?s.jsx("img",C(g({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:E})):s.jsx("div",C(g({},h),{className:$,style:E,children:l})):s.jsx("img",C(g(g({},h),_),{src:t,alt:n,role:n?void 0:"presentation",onLoad:T,onError:z,className:j,style:E}))},An=e=>{const[t,n]=c.useState(e||!1),r=c.useCallback(()=>{n(!0)},[]),o=c.useCallback(()=>{n(!1)},[]),i=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:r,deactivate:o,toggle:i}},ci=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),Hr=()=>{const[e,t]=c.useState(!1),n=c.useRef(),r=c.useRef(!1),o=c.useCallback(()=>{const{body:a}=document,l=a.getBoundingClientRect();if(r.current=l.left+l.right<window.innerWidth,n.current=a.style.overflow,a.style.overflow="hidden",r.current){const d=ci();document.body.style.paddingRight=`${d}px`}t(!0)},[t,r,n]),i=c.useCallback(()=>{document.body.style.overflow=n.current||"",r.current&&(document.body.style.paddingRight=""),t(!1)},[t,r,n]);return{scrollLocked:e,lockScroll:o,unlockScroll:i}},mt={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Rr=e=>{const{active:t,children:n,transparent:r,onClose:o,className:i,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),m=c.useRef(!1),h=c.useRef(null),{lockScroll:_,unlockScroll:v}=Hr(),{active:p,activate:x,deactivate:y}=An(t||!1),{active:w,activate:b,deactivate:j}=An(t||!1),$=br(t,f),E=M(mt.root,w&&mt["--visible"],r&&mt["--transparent"],i),T=V=>{if(!f.current)return;const L=f.current.firstChild;if(L)return L.contains(V)},z=()=>{f.current&&(h.current=Ht(f.current))},S=()=>{h.current&&(h.current(),h.current=null)},O=c.useCallback(()=>{!w||!$()||o&&o()},[w,$]),P=V=>{m.current=!T(V.target)},A=V=>{const L=!T(V.target);m.current&&L&&!r&&O()},q=V=>{V.propertyName!=="opacity"||V.target!==V.currentTarget||w||(r||v(),y())};return rt({Escape:O},[O]),c.useEffect(()=>{t&&!p&&x(),!t&&p&&j()},[t,x,j,p]),c.useEffect(()=>{p&&(r||_(),$t(()=>b()))},[p,b,_,r]),c.useEffect(()=>{if(p)return z(),()=>S()},[p]),c.useEffect(()=>()=>{r||v()},[v,r]),le(()=>{d(!0)},[]),!p||!l?null:s.jsx(Jt,{children:s.jsx(Jt.Scope,{children:V=>s.jsx("div",C(g({},a),{ref:V,role:"button",tabIndex:-1,className:E,onMouseDown:P,onMouseUp:A,onTransitionEnd:q,children:s.jsx("div",{className:mt.wrapper,children:s.jsx("div",{className:mt.inner,children:s.jsx("div",{className:mt.content,ref:f,children:typeof n=="function"?n({active:w}):n})})})}))})})},Fn={root:"_root_1cqfg_1","--position-center":"_--position-center_1cqfg_1","--position-bottom":"_--position-bottom_1cqfg_1","--position-start":"_--position-start_1cqfg_1","--position-end":"_--position-end_1cqfg_1","--active":"_--active_1cqfg_88","--position-center--m":"_--position-center--m_1cqfg_1","--position-bottom--m":"_--position-bottom--m_1cqfg_1","--position-start--m":"_--position-start--m_1cqfg_1","--position-end--m":"_--position-end--m_1cqfg_1","--position-center--l":"_--position-center--l_1cqfg_1","--position-bottom--l":"_--position-bottom--l_1cqfg_1","--position-start--l":"_--position-start--l_1cqfg_1","--position-end--l":"_--position-end--l_1cqfg_1","--position-center--xl":"_--position-center--xl_1cqfg_1","--position-bottom--xl":"_--position-bottom--xl_1cqfg_1","--position-start--xl":"_--position-start--xl_1cqfg_1","--position-end--xl":"_--position-end--xl_1cqfg_1"},Ur=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Kr=()=>c.useContext(Ur),di=e=>{const{children:t}=e,{id:n,setTitleMounted:r}=Kr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(te,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},ui=e=>{const{children:t}=e,{id:n,setSubtitleMounted:r}=Kr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(te,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},Ln=e=>{const{children:t,onClose:n,active:r,size:o,padding:i=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,m=$e(),[h,_]=c.useState(!1),[v,p]=c.useState(!1),x=In(i),y=c.useMemo(()=>({titleMounted:h,setTitleMounted:_,subtitleMounted:v,setSubtitleMounted:p,id:m}),[m,v,h]);return s.jsx(Rr,{onClose:n,active:r,transparent:l,children:({active:w})=>{const b=M(Fn.root,d,x==null?void 0:x.classNames,w&&Fn["--active"],W(Fn,"--position",a));return s.jsx(Ur.Provider,{value:y,children:s.jsx("div",C(g({},f),{style:g(g({},x==null?void 0:x.variables),ee("--rs-modal-size",o)),"aria-labelledby":h?`${m}-title`:void 0,"aria-describedby":v?`${m}-subtitle`:void 0,className:b,"aria-modal":"true",role:"dialog",children:t}))})}})};Ln.Title=di,Ln.Subtitle=ui;const Mt={root:"_root_1ux6v_1",value:"_value_1ux6v_9","--duration":"_--duration_1ux6v_23","--size-small":"_--size-small_1ux6v_27","--size-medium":"_--size-medium_1ux6v_31","--color-primary":"_--color-primary_1ux6v_35","--color-critical":"_--color-critical_1ux6v_39","--color-positive":"_--color-positive_1ux6v_43","--color-white":"_--color-white_1ux6v_47"},_i=e=>{const{value:t=0,min:n=0,max:r=100,color:o="primary",size:i="medium",duration:a,className:l,attributes:d}=e,f=M(Mt.root,l,o&&Mt[`--color-${o}`],i&&Mt[`--size-${i}`],!!a&&Mt["--duration"]),m=r-n,h=t-n,p=`${Math.max(n,Math.min(r,h))/m*100-100}%`;return s.jsx("div",C(g({role:"progressbar"},d),{className:f,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":t,children:s.jsx("div",{className:Mt.value,style:{"--rs-progress-value":p,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Yr=c.createContext(null),mi=()=>c.useContext(Yr),Gr=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return s.jsx(Yr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},fi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||null),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(Gr,C(g({},e),{value:r,defaultValue:void 0,onChange:i}))},hi=e=>{const{value:t}=e;return t!==void 0?s.jsx(Gr,g({},e)):s.jsx(fi,g({},e))},ot={root:"_root_1o7zq_1",input:"_input_1o7zq_10",decorator:"_decorator_1o7zq_10",field:"_field_1o7zq_14","--error":"_--error_1o7zq_48",text:"_text_1o7zq_60","--disabled":"_--disabled_1o7zq_71"},gi=e=>{const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),m=mi(),h=(f==null?void 0:f.hasError)||e.hasError||(m==null?void 0:m.hasError),_=(f==null?void 0:f.disabled)||e.disabled||(m==null?void 0:m.disabled),v=m?m.value===n:e.checked,p=m?void 0:e.defaultChecked,x=m?m.name:e.name,y=M(ot.root,a,h&&ot["--error"],_&&ot["--disabled"]),w=b=>{if(!x)return;const{checked:j}=b.target,$={name:x,value:n,checked:j,event:b};r&&r($),m!=null&&m.onChange&&m.onChange($)};return s.jsxs("label",C(g({},l),{className:y,children:[s.jsxs("span",{className:ot.field,children:[s.jsx(Pn,{className:ot.input,type:"radio",checked:v,defaultChecked:p,name:x,disabled:_,value:n,onChange:w,onFocus:o,onBlur:i,attributes:d}),s.jsx("div",{className:ot.decorator})]}),t&&s.jsx("span",{className:ot.text,children:t})]}))},Xr={short:4e3,long:8e3},St=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Jr={queues:St.reduce((e,t)=>g({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},rn=c.createContext(Jr),vi=()=>{const{add:e,hide:t}=c.useContext(rn);return c.useMemo(()=>({show:e,hide:t}),[e,t])},Oe={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},bi=e=>{const{size:t="small",text:n,children:r,color:o="inverted",icon:i,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:m}=e;let h=o==="inverted"||o==="neutral"?"elevation-overlay":o;o==="neutral"&&(h=f?"neutral":"elevation-overlay");const _=o==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",p=t==="large";let x=[];l&&(x=Array.isArray(l)?l:[l]);const y=(a||n)&&s.jsxs(s.Fragment,{children:[a&&s.jsxs(te,{variant:"body-3",weight:"bold",as:v,children:[a," "]}),s.jsx(te,{variant:"body-3",as:v,children:n})]}),w=s.jsxs(U,{backgroundColor:h,borderColor:_,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:p?"start":"center",className:Oe.toast,attributes:m,children:[i&&s.jsx(ce,{size:5,svg:i,className:Oe.icon}),d&&!i&&s.jsx(U.Item,{children:d}),s.jsx(U.Item,{grow:!0,children:s.jsxs(U,{direction:p?"column":"row",align:p?"start":"center",gap:3,children:[s.jsx(U.Item,{grow:!0,children:y&&r||t!=="small"?s.jsxs(U,{gap:.5,children:[y,r&&s.jsx(U,{gap:3,children:r})]}):y||r}),x.length&&s.jsx(U,{direction:"row",align:"center",gap:2,children:x.map((b,j)=>{const $=t==="large"?j===0:j===x.length-1,T={variant:$?"solid":"ghost",size:"small",color:$?o==="neutral"||o==="inverted"?"neutral":"white":"inherit",elevated:o!=="neutral"};return b.type===je?c.createElement(je,C(g(g({},T),b.props),{key:j})):b})})]})})]});return o==="inverted"?s.jsx(ct,{colorMode:"inverted",children:w}):w},pi=e=>{const{toastProps:t,id:n,status:r,inspected:o,index:i}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(rn),[m,h]=c.useState(),_=c.useRef(),v=c.useRef(!1),p=c.useRef(null),x=c.useRef(null),y=r==="entered",w=M(Oe.container,y&&Oe["container--visible"],i===0&&Oe[`container--index-${i}`],!o&&(i===1||i===2)&&Oe[`container--index-${i}`],!o&&i>=3&&Oe["container--index-overflow"]),b=c.useCallback(()=>{_.current&&clearTimeout(_.current)},[]),j=c.useCallback(()=>{b();const E=typeof a=="string"?Xr[a]:a;a!==0&&(_.current=setTimeout(()=>{d(n)},E!=null?E:Xr.short))},[d,n,a,b]),$=E=>{E.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(o?b():j())},[o,j,b,y]),c.useEffect(()=>{x.current&&h(x.current.clientHeight),l(n),j()},[l,n,j]),c.useEffect(()=>{x.current&&(y?p.current=Ht(x.current,{includeTrigger:!0,mode:"content-menu"}):p.current&&fr()&&(p.current(),p.current=null))},[y]),c.useEffect(()=>{if(!y||i>0)return;const E=()=>{v.current=!0,$t(()=>{v.current=!1}),x.current&&h(x.current.clientHeight)};return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[y,i]),s.jsx("li",{className:w,style:{height:r==="entered"?`calc(${m}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:v.current?"0s":void 0},onTransitionEnd:$,onFocus:b,onBlur:j,children:s.jsx("span",{className:Oe.wrapper,children:s.jsx(bi,C(g({},t),{collapsed:i>0&&!o,attributes:{ref:x}}))})})},xi=e=>{const{position:t}=e,{queues:n,options:r}=c.useContext(rn),[o,i]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:m}=(r==null?void 0:r[t])||{},h=M(Oe.region,Oe[`region--position-${t}`]),_=d.filter(b=>b.status==="entered").length;let v=0;const p=()=>{a.current=!0},x=b=>{let j=b.target,$=!1;for(;j&&j!==l.current&&!$;)$=j.matches(hr),j=j.parentElement;$||i(E=>!E),a.current=!1},y=()=>{a.current||i(!0)},w=()=>{a.current||i(!1)};return c.useEffect(()=>{d.length===0&&i(!1)},[d.length]),d.length?s.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:l,onTouchStart:p,onClick:x,onMouseEnter:y,onMouseLeave:w,style:{width:f},children:d.map((b,j)=>{const $=_-j+v-1;return b.status!=="entered"&&(v+=1),s.jsx(pi,C(g({},b),{index:$,inspected:o||!!m}),b.id)})}):null};let wi=0;const yi=()=>`__rs-toast-${wi++}`,ji=(e,t)=>{let n;switch(t.type){case"add":const r=t.payload.toastProps||{},{position:o="bottom-end"}=r,i=Fe(r,["position"]);return C(g({},e),{[o]:[...e[o],{id:t.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:a}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(m=>m.status!=="entering"?m:m.id===a?C(g({},m),{status:"entered"}):m)}),n;case"hide":const{id:l}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(m=>m.id===l?C(g({},m),{status:"exiting"}):m)}),n;case"remove":const{id:d}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].filter(m=>m.id!==d)}),n}},Ci=e=>{const{children:t,options:n}=e,[r,o]=c.useReducer(ji,Jr.queues),i=c.useCallback(m=>{const h=yi();return console.log("add"),o({type:"add",payload:{toastProps:m,id:h}}),h},[]),a=c.useCallback(m=>{o({type:"show",payload:{id:m}})},[]),l=c.useCallback(m=>{console.log("hide"),o({type:"hide",payload:{id:m}})},[]),d=c.useCallback(m=>{o({type:"remove",payload:{id:m}})},[]),f=c.useMemo(()=>({queues:r,add:i,show:a,hide:l,remove:d,inspecting:!1,options:n}),[r,a,l,i,d,n]);return s.jsxs(rn.Provider,{value:f,children:[t,St.map(m=>s.jsx(xi,{position:m},m))]})},ki=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(xn,"true")},t=()=>{document.documentElement.removeAttribute(xn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},tc="",Ni={root:"_root_18j53_1"},$i=e=>{const{children:t,defaultRTL:n,defaultViewport:r="s",toastOptions:o}=e,i=ms(n);return ki(),s.jsx(kn.Provider,{value:{rtl:i,defaultViewport:r},children:s.jsx(us,{children:s.jsx(Ci,{options:o,children:t})})})},Ei=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:r,className:o}=e,i=M(Ni.root,o);return s.jsx(Ns,{defaultMode:r,children:s.jsx(ct,{name:t,defaultName:n,className:i,children:s.jsx($i,C(g({},e),{children:e.children}))})})},Pt={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},zi=e=>{const{children:t,backgroundSlot:n,position:r="cover",attributes:o,className:i,scrimClassName:a}=e,l=M(Pt.root,!!n&&Pt["--with-background"],r&&Pt[`--position-${r}`],i),d=M(Pt.scrim,a);return s.jsxs("div",C(g({},o),{className:l,children:[n,s.jsx("div",{className:d,children:s.jsx("div",{className:Pt.content,children:t})})]}))},Ti=()=>s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ie={root:"_root_t5eyu_1",input:"_input_t5eyu_18",slot:"_slot_t5eyu_48",icon:"_icon_t5eyu_56",arrow:"_arrow_t5eyu_68","--size-medium":"_--size-medium_t5eyu_1","--size-large":"_--size-large_t5eyu_1","--size-xlarge":"_--size-xlarge_t5eyu_1","--variant-faded":"_--variant-faded_t5eyu_123","--variant-headless":"_--variant-headless_t5eyu_132","--status-error":"_--status-error_t5eyu_137","--placeholder":"_--placeholder_t5eyu_152","--disabled":"_--disabled_t5eyu_156","--size-medium--m":"_--size-medium--m_t5eyu_1","--size-large--m":"_--size-large--m_t5eyu_1","--size-xlarge--m":"_--size-xlarge--m_t5eyu_1","--size-medium--l":"_--size-medium--l_t5eyu_1","--size-large--l":"_--size-large--l_t5eyu_1","--size-xlarge--l":"_--size-xlarge--l_t5eyu_1","--size-medium--xl":"_--size-medium--xl_t5eyu_1","--size-large--xl":"_--size-large--xl_t5eyu_1","--size-xlarge--xl":"_--size-xlarge--xl_t5eyu_1"},Ii=e=>{var q,V;const{onChange:t,onClick:n,onFocus:r,onBlur:o,name:i,value:a,defaultValue:l,placeholder:d,options:f,children:m,icon:h,startSlot:_,size:v="medium",variant:p="outline",className:x,attributes:y}=e,[w,b]=c.useState(a===void 0?!l:!a),j=Ye(),$=$e(e.id),E=((q=j==null?void 0:j.attributes)==null?void 0:q.id)||((V=e.inputAttributes)==null?void 0:V.id)||$,T=(j==null?void 0:j.disabled)||e.disabled,z=(j==null?void 0:j.hasError)||e.hasError,S=g(g({},e.inputAttributes),j==null?void 0:j.attributes),O=M(Ie.root,x,v&&W(Ie,"--size",v),z&&Ie["--status-error"],T&&Ie["--disabled"],w&&f&&Ie["--placeholder"],p&&Ie[`--variant-${p}`]),P=L=>{const Q=L.target.value;a===void 0&&b(!Q),t&&t({name:i,value:Q,event:L})};c.useEffect(()=>{a!==void 0&&b(!a)},[a]);const A=(_||h)&&s.jsx("div",{className:Ie.slot,children:h?s.jsx(ce,{size:Le(v,L=>L==="large"?5:L==="xlarge"?6:4),svg:h,className:Ie.icon}):_});return s.jsxs("div",C(g({},y),{className:O,children:[f?s.jsxs(s.Fragment,{children:[A,s.jsxs("select",C(g({},S),{className:Ie.input,disabled:T,name:i,value:a,defaultValue:l,onChange:P,onFocus:r||(S==null?void 0:S.onFocus),onBlur:o||(S==null?void 0:S.onBlur),id:E,children:[d&&s.jsx("option",{value:"",children:d}),f.map(L=>s.jsx("option",{value:L.value,disabled:L.disabled,children:L.label},L.value))]}))]}):s.jsxs(s.Fragment,{children:[s.jsxs(Ve,{className:Ie.input,disabled:T,onClick:n,attributes:C(g({},S),{onFocus:r||(S==null?void 0:S.onFocus),onBlur:o||(S==null?void 0:S.onBlur)}),children:[A,m||(d?s.jsx(te,{color:"neutral-faded",children:d}):null)]}),s.jsx("input",{type:"hidden",value:a,name:i})]}),s.jsx("div",{className:Ie.arrow,children:s.jsx(ce,{svg:Ti,color:T?"disabled":"neutral-faded",size:Le(v,L=>L==="large"||L==="xlarge"?5:4)})})]}))},Mi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Si=e=>{const{borderRadius:t="small",width:n,height:r,className:o,attributes:i}=e,a=M(Mi.root,o);return s.jsx(U,{backgroundColor:"disabled",width:n,height:r,borderRadius:t,className:a,attributes:i})},Qe={root:"_root_k9a0x_1",bar:"_bar_k9a0x_10",input:"_input_k9a0x_19",selection:"_selection_k9a0x_28",tooltip:"_tooltip_k9a0x_34",thumb:"_thumb_k9a0x_50","thumb--active":"_thumb--active_k9a0x_1","--disabled":"_--disabled_k9a0x_104"},Pi=(e,t)=>{const{name:n,value:r,disabled:o,active:i,position:a,max:l,min:d,onChange:f,onDragStart:m,renderValue:h}=e,_=c.useId(),v=M(Qe.thumb,i&&Qe["thumb--active"]),p=h?h({value:r}):r,x=y=>{f(+y.target.value)};return s.jsxs(s.Fragment,{children:[s.jsx("input",{className:Qe.input,type:"range",name:n,value:r,onChange:x,disabled:o,max:l,min:d,"aria-labelledby":_}),s.jsx("div",{ref:t,className:v,onMouseDown:m,onTouchStart:m,style:{insetInlineStart:`${a}%`},id:_,"aria-hidden":"true",children:s.jsx(ct,{className:Qe.tooltip,colorMode:"inverted",children:s.jsx(te,{variant:"caption-1",weight:"medium",children:p})})})]})},Qr=c.forwardRef(Pi),Zr=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,Vn=(e,t)=>Math.round(e/t)*t,Dn=e=>{var Ce;const{name:t,range:n,max:r,min:o,step:i=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:m}=e,h=n&&e.minValue!==void 0?Vn(e.minValue,i):void 0,_=Vn(n?e.maxValue:e.value,i),v=c.useRef(null),p=c.useRef(null),x=c.useRef(null),[y,w]=c.useState(null),[b]=Ge(),j=Ye(),$=$e(),E=((Ce=j==null?void 0:j.attributes)==null?void 0:Ce.id)||$,T=`${E}-min`,z=`${E}-max`,S=(j==null?void 0:j.disabled)||e.disabled,O=M(Qe.root,S&&Qe["--disabled"],f),P=c.useCallback(se=>{if(!v.current)return;const H=v.current.clientWidth;let G=(se-v.current.getBoundingClientRect().left)/H;b&&(G=1-G);let ie=(r-o)*G+o;return ie=Math.max(o,Math.min(r,ie)),Vn(ie,i)},[r,o,b,i]),A=se=>(se-o)/(r-o)*100,q=c.useCallback((se,H)=>{if(!n)return;const Y=H!=null&&H.commit?l:a;Y==null||Y({minValue:se,maxValue:_,name:t})},[_,t,n]),V=c.useCallback((se,H)=>{if(n){const G=H!=null&&H.commit?l:a;G==null||G({minValue:h,maxValue:se,name:t});return}const Y=H!=null&&H.commit?l:a;Y==null||Y({value:se,name:t})},[h,t,n]),L=({nativeEvent:se})=>{if(S)return;let H,Y;const G=Zr(se),ie=P(G);[{ref:p,id:T},{ref:x,id:z}].forEach(X=>{if(!X.ref.current)return;const pe=X.ref.current,ge=Math.abs(pe.getBoundingClientRect().left-G);(H===void 0||ge<=H)&&(H=ge,Y=X.id)}),!(!Y||ie===void 0)&&(Y===T&&q(ie),Y===z&&V(ie),w(Y))},Q=()=>{S||w(T)},fe=()=>{S||w(z)},he=c.useCallback(()=>{y===T&&h!==void 0&&q(h,{commit:!0}),y===z&&V(_,{commit:!0}),w(null)},[h,_,q,V,y,T,z]),oe=c.useCallback(se=>{if(!y)return;const H=Zr(se),Y=P(H);if(Y===void 0)return;let G=y;y===T&&Y>_&&(G=z),y===z&&h&&Y<h&&(G=T),G===T&&q(Y),G===z&&V(Y),y!==G&&w(G)},[y,h,_,P,V,q,z,T]);c.useEffect(()=>(window.addEventListener("mouseup",he),window.addEventListener("touchend",he),window.addEventListener("mousemove",oe),window.addEventListener("touchmove",oe),()=>{window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe)}),[he,oe]);const Z=h&&A(h),He=A(_);return s.jsxs("div",C(g({},m),{className:O,onMouseDown:L,onTouchStart:L,children:[s.jsx("div",{className:Qe.bar,ref:v,children:s.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${Z||0}%`,width:`${He-(Z||0)}%`}})}),h!==void 0&&Z!==void 0&&s.jsx(Qr,{id:T,active:T===y,name:t,disabled:S,onChange:q,value:h,onDragStart:Q,position:Z,max:r,min:o,ref:p,renderValue:d}),s.jsx(Qr,{id:z,active:z===y,name:t,disabled:S,onChange:V,value:_,onDragStart:fe,position:He,max:r,min:o,ref:x,renderValue:d})]}))},Ai=e=>{const{min:t,max:n,onChange:r,range:o}=e,i="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,a="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(o?n:t),[l,d]=c.useState(i),[f,m]=c.useState(a),h=v=>{o||(m(v.value),r==null||r(v))},_=v=>{o&&(d(v.minValue),m(v.maxValue),r==null||r(v))};return o?s.jsx(Dn,C(g({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:_})):s.jsx(Dn,C(g({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Fi=e=>{const o=e,{min:t=0,max:n=100}=o,r=Fe(o,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?s.jsx(Dn,C(g({},r),{min:t,max:n})):s.jsx(Ai,C(g({},r),{min:t,max:n}))},ft={root:"_root_1zzd0_1",input:"_input_1zzd0_10",area:"_area_1zzd0_22",thumb:"_thumb_1zzd0_26","root--size-small":"_root--size-small_1zzd0_82","root--reversed":"_root--reversed_1zzd0_102"},Li=e=>{var b;const{children:t,name:n,checked:r,size:o,reversed:i,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:m,attributes:h}=e,_=M(ft.root,o&&ft[`root--size-${o}`],i&&ft["root--reversed"],m),v=Ye(),p=$e((v==null?void 0:v.attributes.id)||e.id||((b=e.inputAttributes)==null?void 0:b.id)),x=g(g({},e.inputAttributes),v==null?void 0:v.attributes),y=(v==null?void 0:v.disabled)||e.disabled,w=j=>{l&&l({name:n,event:j,checked:j.target.checked})};return s.jsxs("label",C(g({},h),{className:_,children:[s.jsx("input",C(g({type:"checkbox"},x),{className:ft.input,name:n,checked:r,defaultChecked:a,disabled:y,onChange:w,onFocus:d||(x==null?void 0:x.onFocus),onBlur:f||(x==null?void 0:x.onBlur),id:p})),s.jsx("span",{className:ft.area,"aria-hidden":"true",children:s.jsx("span",{className:ft.thumb})}),t&&s.jsx(te,{variant:"body-3",weight:"medium",children:t})]}))},Vi={literal:"_literal_tfgjf_1",unit:"_unit_tfgjf_5","literal--m":"_literal--m_tfgjf_1","unit--m":"_unit--m_tfgjf_1","literal--l":"_literal--l_tfgjf_1","unit--l":"_unit--l_tfgjf_1","literal--xl":"_literal--xl_tfgjf_1","unit--xl":"_unit--xl_tfgjf_1"},Di=e=>{if(!e)return null;const t=ee("--rs-min-w",e);return{classNames:W(Vi,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ze={root:"_root_1we4q_1",table:"_table_1we4q_14",row:"_row_1we4q_21",cell:"_cell_1we4q_25","cell--align-start":"_cell--align-start_1we4q_1","cell--align-center":"_cell--align-center_1we4q_1","cell--align-end":"_cell--align-end_1we4q_1","--row-highlighted":"_--row-highlighted_1we4q_49","--border-outer":"_--border-outer_1we4q_53","--border-column":"_--border-column_1we4q_57"},eo=e=>{const{minWidth:t,rowSpan:n,colSpan:r,align:o,tagName:i,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:m}=e,h=e.width==="auto"?"0px":e.width,_=mn(h),v=Di(t||h),p=M(Ze.cell,_==null?void 0:_.classNames,v==null?void 0:v.classNames,o&&Ze[`cell--align-${o}`]),x=g(g(g(g({},_==null?void 0:_.variables),v==null?void 0:v.variables),ee("--rs-table-p-vertical",d!=null?d:a)),ee("--rs-table-p-horizontal",l!=null?l:a));return s.jsx(i,C(g({},m),{className:p,rowSpan:n,colSpan:r,style:x,children:f}))},Oi=e=>s.jsx(eo,C(g({},e),{tagName:"td"})),qi=e=>s.jsx(eo,C(g({},e),{tagName:"th"})),Bi=e=>{const{highlighted:t,children:n,attributes:r}=e,o=M(Ze.row,t&&Ze["--row-highlighted"]);return s.jsx("tr",C(g({},r),{className:o,children:n}))},On=e=>s.jsx("tbody",{children:e.children}),to=e=>s.jsx("thead",{children:e.children}),ht=e=>{const{children:t,border:n,columnBorder:r,className:o,attributes:i}=e,a=M(Ze.root,o,n&&Ze["--border-outer"],r&&Ze["--border-column"]),[l]=c.Children.toArray(t);return s.jsx("div",C(g({},i),{className:a,children:s.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===On||l.type===to)?t:s.jsx(On,{children:t})})}))};ht.Cell=Oi,ht.Heading=qi,ht.Row=Bi,ht.Body=On,ht.Head=to;const no=c.createContext({}),Wi=no.Provider,qn=e=>{const r=c.useContext(no),{id:t}=r,n=Fe(r,["id"]);return C(g({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},ro=e=>{const{children:t,value:n,onChange:r,onSilentChange:o,itemWidth:i,variant:a,name:l,direction:d="row",size:f="medium"}=e,m=$e(),h=c.useRef(null),_=c.useRef(h.current),v=c.useRef(null),[p,x]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=w=>{w!==void 0&&o&&o({value:w,name:l})};return s.jsx(Wi,{value:{value:n,name:l,size:f,direction:d,itemWidth:i,variant:a,onChange:r,id:m,setDefaultValue:y,elActiveRef:h,elPrevActiveRef:_,elScrollableRef:v,selection:p,setSelection:x},children:t})},Hi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t),i=({value:l})=>{o(l),n&&n({value:l})},a=({value:l})=>{o(l)};return s.jsx(ro,C(g({},e),{onChange:i,onSilentChange:a,value:r,defaultValue:void 0}))},ne={root:"_root_mz4y6_1",list:"_list_mz4y6_12",inner:"_inner_mz4y6_16",listItem:"_listItem_mz4y6_23",button:"_button_mz4y6_30",buttonContent:"_buttonContent_mz4y6_46",icon:"_icon_mz4y6_59",radio:"_radio_mz4y6_64","--item-active":"_--item-active_mz4y6_72",selector:"_selector_mz4y6_77","--selector-hidden":"_--selector-hidden_mz4y6_95","--selector-animated":"_--selector-animated_mz4y6_99",next:"_next_mz4y6_104",prev:"_prev_mz4y6_105",panel:"_panel_mz4y6_125","--panel-hidden":"_--panel-hidden_mz4y6_133","--direction-row":"_--direction-row_mz4y6_137","--direction-column":"_--direction-column_mz4y6_205",item:"_item_mz4y6_223","--variant-borderless":"_--variant-borderless_mz4y6_258","--variant-pills":"_--variant-pills_mz4y6_259","--variant-pills-elevated":"_--variant-pills-elevated_mz4y6_260","--size-medium":"_--size-medium_mz4y6_331","--size-large":"_--size-large_mz4y6_336","--item-width-equal":"_--item-width-equal_mz4y6_341","--cut-off-start":"_--cut-off-start_mz4y6_360","--cut-off-end":"_--cut-off-end_mz4y6_361","--cut-off-both":"_--cut-off-both_mz4y6_382"},Ri=(e,t)=>{const{value:n,children:r,icon:o,href:i,attributes:a}=e,{onChange:l,panelId:d,name:f,size:m,value:h,selection:_,elActiveRef:v,elPrevActiveRef:p,elScrollableRef:x}=qn(n),y=c.useRef(null),w=h===n,b=w&&_.status==="idle",j=M(ne.item,b&&ne["--item-active"]),$=!!f,E={role:"tab",tabIndex:w?0:-1,"aria-selected":w},T=c.useCallback(()=>{if(!("current"in y))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");p.current=v.current,v.current=y.current},[v,p]),z=()=>{var L,Q,fe;if(i&&!l)return;const S=x.current,O=(L=y.current)==null?void 0:L.parentElement,P=(Q=v.current)==null?void 0:Q.parentElement;if(T(),l&&l({value:n,name:f}),!S||!O||!P||S.scrollWidth===S.clientWidth)return;const A=O.offsetLeft<P.offsetLeft,q=(O.offsetLeft-S.scrollLeft)/S.clientWidth;(A?q<.3:q>.5)&&((fe=y.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{w&&T()},[w,T]),s.jsx("div",C(g({},a),{className:j,ref:y,role:"presentation",children:s.jsxs(Ve,{ref:t,href:i,insetFocus:!0,onClick:f?void 0:z,className:ne.button,as:f?"label":void 0,attributes:C(g({},!$&&E),{"aria-controls":d}),children:[f&&s.jsx(Pn,{type:"radio",name:f,value:n,checked:b,onChange:z,className:ne.radio}),s.jsxs("span",{className:ne.buttonContent,children:[o&&s.jsx(ce,{svg:o,className:ne.icon,size:4}),r&&s.jsx(te,{variant:m==="large"?"body-2":"body-3",children:r})]})]})}))},oo=c.forwardRef(Ri),so=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:so(e.parentElement,t),Ui=e=>{const{children:t,className:n,attributes:r}=e,{value:o,setDefaultValue:i,itemWidth:a,variant:l,name:d,direction:f,size:m,selection:h,setSelection:_,elActiveRef:v,elPrevActiveRef:p,elScrollableRef:x}=qn(),[y]=Ge(),[w,b]=c.useState(null),j=M(ne.root,m&&ne[`--size-${m}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],w&&ne[`--cut-off-${w}`],n),$=M(ne.selector,h.status==="idle"&&ne["--selector-hidden"],h.status==="animated"&&ne["--selector-animated"]),E=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},T=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},z=()=>{_(P=>C(g({},P),{status:"idle"}))},S=c.useCallback(P=>{if(!x.current)return null;const A=so(P,x.current);return A?{scaleX:A.clientWidth,scaleY:A.clientHeight,top:A.offsetTop,left:A.offsetLeft}:null},[x]),{ref:O}=rt({"ArrowLeft, ArrowUp":P=>{d||(P.preventDefault(),ts(x.current))},"ArrowRight, ArrowDown":P=>{d||(P.preventDefault(),es(x.current))},Home:P=>{d||(P.preventDefault(),ns(x.current))},End:P=>{d||(P.preventDefault(),rs(x.current))}});return le(()=>{if(o)return;const P=c.Children.toArray(t)[0];!P||P.type!==oo||i(P.props.value)},[o]),le(()=>{if(!p.current||p.current===v.current)return;const P=S(p.current);P&&_(C(g({},P),{status:"prepared"}))},[o,S]),le(()=>{if(h.status!=="prepared"||!v.current)return;const P=S(v.current);P&&_(C(g({},P),{status:"animated"}))},[h]),le(()=>{const P=x.current;if(!P||f==="column")return;const A=()=>{P.clientWidth<P.scrollWidth||b(null);const L=P.scrollLeft*(y?-1:1),Q=L>1,fe=L+P.clientWidth<P.scrollWidth-1;if(fe&&Q)return b("both");if(Q)return b("start");if(fe)return b("end")},q=jo(A,100);return requestAnimationFrame(()=>{A()}),window.addEventListener("resize",q),P.addEventListener("scroll",q),()=>{window.removeEventListener("resize",q),P.removeEventListener("scroll",q)}},[y]),s.jsxs("div",C(g({},r),{className:j,children:[s.jsx("div",{className:ne.inner,ref:x,children:s.jsxs("div",{className:ne.list,role:"tablist",ref:O,children:[c.Children.map(t,(P,A)=>P?s.jsx("div",{className:ne.listItem,children:P},P.props.value||P.key||A):null),s.jsx("div",{onTransitionEnd:z,className:$,style:{"--rs-tab-selection-x":h.left,"--rs-tab-selection-y":h.top,"--rs-tab-selection-scale-x":h.scaleX,"--rs-tab-selection-scale-y":h.scaleY}})]})}),(w==="start"||w==="both")&&s.jsx("span",{className:ne.prev,children:s.jsx(je,{onClick:T,size:"small",icon:Dr,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(w==="end"||w==="both")&&s.jsx("span",{className:ne.next,children:s.jsx(je,{onClick:E,size:"small",icon:Qt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},Ki=e=>{const{value:t,children:n}=e,{value:r,panelId:o,buttonId:i}=qn(t),a=t===r,l=M(ne.panel,!a&&ne["--panel-hidden"]);return s.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:o,"aria-labelledby":i,children:a&&n})},on=e=>{const{value:t}=e;return t!==void 0?s.jsx(ro,g({},e)):s.jsx(Hi,g({},e))};on.Item=oo,on.List=Ui,on.Panel=Ki;const gt={root:"_root_13usd_1",input:"_input_13usd_5","--size-medium":"_--size-medium_13usd_1","--size-large":"_--size-large_13usd_1","--size-xlarge":"_--size-xlarge_13usd_1","--variant-faded":"_--variant-faded_13usd_69","--variant-headless":"_--variant-headless_13usd_80","--status-error":"_--status-error_13usd_87","--size-medium--m":"_--size-medium--m_13usd_1","--size-large--m":"_--size-large--m_13usd_1","--size-xlarge--m":"_--size-xlarge--m_13usd_1","--size-medium--l":"_--size-medium--l_13usd_1","--size-large--l":"_--size-large--l_13usd_1","--size-xlarge--l":"_--size-xlarge--l_13usd_1","--size-medium--xl":"_--size-medium--xl_13usd_1","--size-large--xl":"_--size-large--xl_13usd_1","--size-xlarge--xl":"_--size-xlarge--xl_13usd_1"},io=e=>{var $,E;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:m,attributes:h}=e,_=Ye(),v=$e(e.id),p=(($=_==null?void 0:_.attributes)==null?void 0:$.id)||((E=e.inputAttributes)==null?void 0:E.id)||v,x=(_==null?void 0:_.disabled)||e.disabled,y=(_==null?void 0:_.hasError)||e.hasError,w=g(g({},e.inputAttributes),_==null?void 0:_.attributes),b=M(gt.root,d&&W(gt,"--size",d),y&>["--status-error"],x&>["--disabled"],f&>[`--variant-${f}`],m),j=T=>{t&&t({name:o,value:T.target.value,event:T})};return s.jsx("div",C(g({},h),{"data-rs-aligner-target":!0,className:b,children:s.jsx("textarea",C(g({},w),{className:gt.input,rows:3,disabled:x,name:o,placeholder:l,value:i,defaultValue:a,onChange:j,onFocus:n||(w==null?void 0:w.onFocus),onBlur:r||(w==null?void 0:w.onBlur),id:p}))}))};io.Aligner=Dt;const Bn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Wn=e=>{const{children:t,markerSlot:n,className:r,attributes:o}=e,i=n!==null,a=M(Bn.item,!i&&Bn["item--full-width"],r);return s.jsxs(U,{as:"li",direction:"row",align:"stretch",gap:3,attributes:o,className:a,children:[i&&s.jsx("span",{className:Bn.marker,children:n}),s.jsx(U.Item,{grow:!0,children:t})]})},ao=e=>{const{children:t,className:n,attributes:r}=e,o=M(n);return s.jsx("ul",C(g({},r),{className:o,children:c.Children.map(t,(i,a)=>(i==null?void 0:i.type)===Wn?i:s.jsx(Wn,{children:i},a))}))};ao.Item=Wn;const Yi={root:"_root_9090g_1"},Gi=e=>{const{id:t,text:n,children:r,onOpen:o,onClose:i,position:a="bottom",active:l}=e;return s.jsxs(Xe,{id:t,active:l,position:a,onOpen:o,onClose:i,triggerType:"hover",children:[s.jsx(Xe.Trigger,{children:r}),s.jsx(Xe.Content,{children:s.jsx(ct,{colorMode:"inverted",children:s.jsx(te,{variant:"caption-1",className:Yi.root,children:n})})})]})},vt={m:660,l:900,xl:1280},lo={s:`(max-width: ${vt.m-1}px)`,m:`(min-width: ${vt.m}px) and (max-width: ${vt.l-1}px)`,l:`(min-width: ${vt.l}px) and (max-width: ${vt.xl-1}px)`,xl:`(min-width: ${vt.xl}px)`},Xi=e=>{const{defaultViewport:t}=c.useContext(kn),[n,r]=c.useState(t);return le(()=>{const i=Object.keys(lo).map(a=>{const l=window.matchMedia(lo[a]);return{mq:l,handler:()=>l.matches&&r(a)}});return i.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{i.forEach(({handler:a,mq:l})=>{l.removeEventListener("change",a)})}},[]),n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},Ji=e=>{const{w:t="auto",h:n=50,children:r}=e;return s.jsx("div",{style:{width:t,height:n,minWidth:n,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-unit-radius-small)"},children:r})};N.Accordion=gn,N.ActionBar=Ho,N.Actionable=Ve,N.Alert=Uo,N.Autocomplete=Sr,N.Avatar=Ds,N.Badge=Ar,N.Breadcrumbs=Vr,N.Button=je,N.Card=Ys,N.Carousel=Gs,N.Checkbox=ti,N.CheckboxGroup=Zs,N.Container=ri,N.Dismissible=oi,N.Divider=er,N.DropdownMenu=we,N.FormControl=Vt,N.Hidden=un,N.HiddenVisually=ii,N.Hotkey=ai,N.Icon=ce,N.Image=li,N.Link=Lr,N.Loader=Fr,N.MenuItem=Mn,N.Modal=Ln,N.Overlay=Rr,N.Placeholder=Ji,N.Popover=dt,N.Progress=_i,N.Radio=gi,N.RadioGroup=hi,N.Reshaped=Ei,N.Scrim=zi,N.Select=Ii,N.Skeleton=Si,N.Slider=Fi,N.Switch=Li,N.Table=ht,N.Tabs=on,N.Text=te,N.TextArea=io,N.TextField=pn,N.Theme=ct,N.Timeline=ao,N.Tooltip=Gi,N.View=U,N.classNames=M,N.responsiveClassNames=W,N.responsivePropDependency=Le,N.useFormControl=Ye,N.useHotkeys=rt,N.useIsomorphicLayoutEffect=le,N.useRTL=Ge,N.useResponsiveClientValue=Xi,N.useScrollLock=Hr,N.useTheme=zr,N.useToast=vi,N.useToggle=An,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type React from "react";
|
2
2
|
import type { IconProps } from "../Icon";
|
3
3
|
import type { ActionableProps } from "../Actionable";
|
4
|
+
import type { AlignerProps as BaseAlignerProps } from "../_private/Aligner";
|
4
5
|
import type * as G from "../../types/global";
|
5
6
|
export type Size = "xlarge" | "large" | "medium" | "small";
|
6
7
|
type BaseProps = {
|
@@ -23,12 +24,11 @@ export type GroupProps = {
|
|
23
24
|
className?: G.ClassName;
|
24
25
|
attributes?: G.Attributes<"div", Props>;
|
25
26
|
};
|
26
|
-
type
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
attributes?: G.Attributes<"div", AlignerProps>;
|
27
|
+
export type AlignerProps = BaseAlignerProps & {
|
28
|
+
/**
|
29
|
+
* @deprecated The method should not be used
|
30
|
+
*/
|
31
|
+
position?: BaseAlignerProps["side"];
|
32
32
|
};
|
33
33
|
export type Export = React.ForwardRefExoticComponent<Props> & {
|
34
34
|
Aligner: React.ComponentType<AlignerProps>;
|
@@ -1,6 +1,4 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import
|
3
|
-
declare const ButtonAligner: (props:
|
4
|
-
position?: AlignerProps["side"];
|
5
|
-
}) => React.JSX.Element;
|
2
|
+
import type * as T from "./Button.types";
|
3
|
+
declare const ButtonAligner: (props: T.AlignerProps) => React.JSX.Element;
|
6
4
|
export default ButtonAligner;
|
@@ -2,6 +2,6 @@ import React from "react";
|
|
2
2
|
import Aligner from "../_private/Aligner/index.js";
|
3
3
|
import s from "./Button.module.css";
|
4
4
|
const ButtonAligner = (props) => {
|
5
|
-
return React.createElement(Aligner, Object.assign({}, props, { side: props.position, className: [s.aligner, props.className] }));
|
5
|
+
return (React.createElement(Aligner, Object.assign({}, props, { side: props.side || props.position, className: [s.aligner, props.className] })));
|
6
6
|
};
|
7
7
|
export default ButtonAligner;
|
@@ -576,7 +576,7 @@ export const aligner = () => (<Example>
|
|
576
576
|
<View.Item grow>
|
577
577
|
<Placeholder />
|
578
578
|
</View.Item>
|
579
|
-
<Button.Aligner
|
579
|
+
<Button.Aligner side="top">
|
580
580
|
<Button icon={IconZap} variant="ghost"/>
|
581
581
|
</Button.Aligner>
|
582
582
|
</View>
|
@@ -587,7 +587,7 @@ export const aligner = () => (<Example>
|
|
587
587
|
<View.Item grow>
|
588
588
|
<Placeholder />
|
589
589
|
</View.Item>
|
590
|
-
<Button.Aligner
|
590
|
+
<Button.Aligner side={["top", "end"]}>
|
591
591
|
<Button icon={IconZap} variant="ghost"/>
|
592
592
|
</Button.Aligner>
|
593
593
|
</View>
|
@@ -598,7 +598,7 @@ export const aligner = () => (<Example>
|
|
598
598
|
<View.Item grow>
|
599
599
|
<Placeholder />
|
600
600
|
</View.Item>
|
601
|
-
<Button.Aligner
|
601
|
+
<Button.Aligner side="bottom">
|
602
602
|
<Button icon={IconZap} variant="ghost"/>
|
603
603
|
</Button.Aligner>
|
604
604
|
</View>
|
@@ -609,7 +609,7 @@ export const aligner = () => (<Example>
|
|
609
609
|
<View.Item grow>
|
610
610
|
<Placeholder />
|
611
611
|
</View.Item>
|
612
|
-
<Button.Aligner
|
612
|
+
<Button.Aligner side="start">
|
613
613
|
<Button icon={IconZap} variant="ghost"/>
|
614
614
|
</Button.Aligner>
|
615
615
|
</View>
|
@@ -620,7 +620,7 @@ export const aligner = () => (<Example>
|
|
620
620
|
<View.Item grow>
|
621
621
|
<Placeholder />
|
622
622
|
</View.Item>
|
623
|
-
<Button.Aligner
|
623
|
+
<Button.Aligner side="end">
|
624
624
|
<Button icon={IconZap} variant="ghost"/>
|
625
625
|
</Button.Aligner>
|
626
626
|
</View>
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { type AlignerProps } from "../_private/Aligner";
|
3
|
-
declare const MenuItemAligner: (props:
|
3
|
+
declare const MenuItemAligner: (props: AlignerProps) => React.JSX.Element;
|
4
4
|
export default MenuItemAligner;
|
@@ -2,6 +2,6 @@ import React from "react";
|
|
2
2
|
import Aligner from "../_private/Aligner/index.js";
|
3
3
|
import s from "./MenuItem.module.css";
|
4
4
|
const MenuItemAligner = (props) => {
|
5
|
-
return React.createElement(Aligner, Object.assign({}, props, { side: "inline", className: [s.aligner, props.className] }));
|
5
|
+
return (React.createElement(Aligner, Object.assign({}, props, { side: props.side || "inline", className: [s.aligner, props.className] })));
|
6
6
|
};
|
7
7
|
export default MenuItemAligner;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { type AlignerProps } from "../_private/Aligner";
|
3
2
|
import type * as T from "./TextArea.types";
|
4
3
|
declare const TextArea: {
|
5
4
|
(props: T.Props): React.JSX.Element;
|
6
|
-
Aligner(props:
|
5
|
+
Aligner: (props: import("../_private/Aligner").AlignerProps) => React.JSX.Element;
|
7
6
|
};
|
8
7
|
export default TextArea;
|
@@ -23,5 +23,5 @@ const TextArea = (props) => {
|
|
23
23
|
return (React.createElement("div", Object.assign({}, attributes, { "data-rs-aligner-target": true, className: rootClassName }),
|
24
24
|
React.createElement("textarea", Object.assign({}, inputAttributes, { className: s.input, rows: 3, disabled: disabled, name: name, placeholder: placeholder, value: value, defaultValue: defaultValue, onChange: handleChange, onFocus: onFocus || (inputAttributes === null || inputAttributes === void 0 ? void 0 : inputAttributes.onFocus), onBlur: onBlur || (inputAttributes === null || inputAttributes === void 0 ? void 0 : inputAttributes.onBlur), id: inputId }))));
|
25
25
|
};
|
26
|
-
TextArea.Aligner =
|
26
|
+
TextArea.Aligner = Aligner;
|
27
27
|
export default TextArea;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { type AlignerProps } from "../_private/Aligner";
|
3
2
|
import type * as T from "./TextField.types";
|
4
3
|
declare const TextField: {
|
5
4
|
(props: T.Props): React.JSX.Element;
|
6
|
-
Aligner(props:
|
5
|
+
Aligner: (props: import("../_private/Aligner").AlignerProps) => React.JSX.Element;
|
7
6
|
};
|
8
7
|
export default TextField;
|
@@ -45,5 +45,5 @@ const TextField = (props) => {
|
|
45
45
|
React.createElement("input", Object.assign({}, inputAttributes, { className: s.input, disabled: disabled, name: name, placeholder: placeholder, value: value, defaultValue: defaultValue, onChange: handleChange, onFocus: onFocus || (inputAttributes === null || inputAttributes === void 0 ? void 0 : inputAttributes.onFocus), onBlur: onBlur || (inputAttributes === null || inputAttributes === void 0 ? void 0 : inputAttributes.onBlur), id: inputId })),
|
46
46
|
React.createElement(TextFieldSlot, { position: "end", icon: endIcon, slot: endSlot, size: size, affix: suffix })));
|
47
47
|
};
|
48
|
-
TextField.Aligner =
|
48
|
+
TextField.Aligner = Aligner;
|
49
49
|
export default TextField;
|
@@ -7,10 +7,14 @@ const GlobalColorMode = (props) => {
|
|
7
7
|
const { defaultMode, children } = props;
|
8
8
|
const [mode, setMode] = React.useState(defaultMode || "light");
|
9
9
|
const changeColorMode = React.useCallback((targetMode) => {
|
10
|
-
// Avoid components styles animating when switching to another color mode
|
11
|
-
disableTransitions();
|
12
10
|
document.documentElement.setAttribute("data-rs-color-mode", targetMode);
|
13
|
-
setMode(
|
11
|
+
setMode((prevMode) => {
|
12
|
+
if (prevMode !== targetMode) {
|
13
|
+
// Avoid components styles animating when switching to another color mode
|
14
|
+
disableTransitions();
|
15
|
+
}
|
16
|
+
return targetMode;
|
17
|
+
});
|
14
18
|
}, []);
|
15
19
|
useIsomorphicLayoutEffect(() => {
|
16
20
|
onNextFrame(() => {
|
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.4.
|
4
|
+
"version": "2.4.8",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"email": "hello@reshaped.so",
|
7
7
|
"homepage": "https://reshaped.so",
|