reshaped 3.9.0-canary.19 → 3.9.0-canary.20
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/dist/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(j,s){typeof exports=="object"&&typeof module!="undefined"?s(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],s):(j=typeof globalThis!="undefined"?globalThis:j||self,s(j.Reshaped={},j["react/jsx-runtime"],j.React,j.ReactDOM))})(this,(function(j,s,a,Ae){"use strict";var md=Object.defineProperty,hd=Object.defineProperties;var fd=Object.getOwnPropertyDescriptors;var Bo=Object.getOwnPropertySymbols;var Ml=Object.prototype.hasOwnProperty,Il=Object.prototype.propertyIsEnumerable;var jl=j=>{throw TypeError(j)};var tn=(j,s,a)=>s in j?md(j,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):j[s]=a,b=(j,s)=>{for(var a in s||(s={}))Ml.call(s,a)&&tn(j,a,s[a]);if(Bo)for(var a of Bo(s))Il.call(s,a)&&tn(j,a,s[a]);return j},N=(j,s)=>hd(j,fd(s));var ve=(j,s)=>{var a={};for(var Ae in j)Ml.call(j,Ae)&&s.indexOf(Ae)<0&&(a[Ae]=j[Ae]);if(j!=null&&Bo)for(var Ae of Bo(j))s.indexOf(Ae)<0&&Il.call(j,Ae)&&(a[Ae]=j[Ae]);return a};var xe=(j,s,a)=>tn(j,typeof s!="symbol"?s+"":s,a),Dl=(j,s,a)=>s.has(j)||jl("Cannot "+a);var re=(j,s,a)=>(Dl(j,s,"read from private field"),a?a.call(j):s.get(j)),it=(j,s,a)=>s.has(j)?jl("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(j):s.set(j,a),Mt=(j,s,a,Ae)=>(Dl(j,s,"write to private field"),Ae?Ae.call(j,a):s.set(j,a),a);var Tt,Ce,ht,Wt,Ot,Ut,ao,Ao,co;const P=(...e)=>e.reduce((t,o)=>{if(Array.isArray(o)){const r=P(...o);return r?`${t} ${r}`:t}return o?`${t} ${o}`:t},"").trim(),on=(e,t,o)=>{const{base:r,excludeValueFromClassName:n}=o||{},i=typeof e=="string"?e:e(t);return t===!0&&r||n?i:t===!0&&!r?`${i}-true`:t===!1&&!r?`${i}-false`:t!==void 0?`${i}-${t}`:null},ae=(e,t,o,r)=>{if(typeof o!="object"){const n=on(t,o,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return n?[e[n]]:[]}return Object.keys(o).reduce((n,i)=>{const l=i==="s",c=on(t,o[i],{base:l,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=l?"":`--${i}`;return[...n,e[`${c}${d}`]]},[])},O=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((o,r)=>{const n=t[r];return n===void 0||n===!1?o:N(b({},o),{[`${e}-${r}`]:n})},{}),Ll=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,ce=(e,t)=>Ll(e)?Object.keys(e).reduce((r,n)=>{const i=e[n];return i==null?r:N(b({},r),{[n]:t(i,n)})},{}):t(e,"s"),Pl=e=>e?{variables:O("--rs-align",e)}:{},Al=e=>e?{variables:O("--rs-ratio",e)}:{},rn={root:"_root_23jyt_1","--bleed":"_--bleed_23jyt_8","--bleed-true--m":"_--bleed-true--m_23jyt_1","--bleed-false--m":"_--bleed-false--m_23jyt_1","--bleed-true--l":"_--bleed-true--l_23jyt_1","--bleed-false--l":"_--bleed-false--l_23jyt_1","--bleed-true--xl":"_--bleed-true--xl_23jyt_1","--bleed-false--xl":"_--bleed-false--xl_23jyt_1"},Fl=e=>{if(e===void 0)return{};const t=ae(rn,"--bleed",ce(e,r=>typeof r=="number"&&r>0)),o=O("--rs-bleed",e);return{classNames:[rn.root,t],variables:o}},Vl={"--border-neutral":"_--border-neutral_xj2hx_1","--border-neutral-faded":"_--border-neutral-faded_xj2hx_1","--border-positive":"_--border-positive_xj2hx_1","--border-positive-faded":"_--border-positive-faded_xj2hx_1","--border-warning":"_--border-warning_xj2hx_1","--border-warning-faded":"_--border-warning-faded_xj2hx_1","--border-critical":"_--border-critical_xj2hx_1","--border-critical-faded":"_--border-critical-faded_xj2hx_1","--border-primary":"_--border-primary_xj2hx_1","--border-primary-faded":"_--border-primary-faded_xj2hx_1","--border-disabled":"_--border-disabled_xj2hx_1","--border-brand":"_--border-brand_xj2hx_1","--border-transparent":"_--border-transparent_xj2hx_1","--border-neutral--m":"_--border-neutral--m_xj2hx_1","--border-neutral-faded--m":"_--border-neutral-faded--m_xj2hx_1","--border-positive--m":"_--border-positive--m_xj2hx_1","--border-positive-faded--m":"_--border-positive-faded--m_xj2hx_1","--border-warning--m":"_--border-warning--m_xj2hx_1","--border-warning-faded--m":"_--border-warning-faded--m_xj2hx_1","--border-critical--m":"_--border-critical--m_xj2hx_1","--border-critical-faded--m":"_--border-critical-faded--m_xj2hx_1","--border-primary--m":"_--border-primary--m_xj2hx_1","--border-primary-faded--m":"_--border-primary-faded--m_xj2hx_1","--border-disabled--m":"_--border-disabled--m_xj2hx_1","--border-brand--m":"_--border-brand--m_xj2hx_1","--border-transparent--m":"_--border-transparent--m_xj2hx_1","--border-neutral--l":"_--border-neutral--l_xj2hx_1","--border-neutral-faded--l":"_--border-neutral-faded--l_xj2hx_1","--border-positive--l":"_--border-positive--l_xj2hx_1","--border-positive-faded--l":"_--border-positive-faded--l_xj2hx_1","--border-warning--l":"_--border-warning--l_xj2hx_1","--border-warning-faded--l":"_--border-warning-faded--l_xj2hx_1","--border-critical--l":"_--border-critical--l_xj2hx_1","--border-critical-faded--l":"_--border-critical-faded--l_xj2hx_1","--border-primary--l":"_--border-primary--l_xj2hx_1","--border-primary-faded--l":"_--border-primary-faded--l_xj2hx_1","--border-disabled--l":"_--border-disabled--l_xj2hx_1","--border-brand--l":"_--border-brand--l_xj2hx_1","--border-transparent--l":"_--border-transparent--l_xj2hx_1","--border-neutral--xl":"_--border-neutral--xl_xj2hx_1","--border-neutral-faded--xl":"_--border-neutral-faded--xl_xj2hx_1","--border-positive--xl":"_--border-positive--xl_xj2hx_1","--border-positive-faded--xl":"_--border-positive-faded--xl_xj2hx_1","--border-warning--xl":"_--border-warning--xl_xj2hx_1","--border-warning-faded--xl":"_--border-warning-faded--xl_xj2hx_1","--border-critical--xl":"_--border-critical--xl_xj2hx_1","--border-critical-faded--xl":"_--border-critical-faded--xl_xj2hx_1","--border-primary--xl":"_--border-primary--xl_xj2hx_1","--border-primary-faded--xl":"_--border-primary-faded--xl_xj2hx_1","--border-disabled--xl":"_--border-disabled--xl_xj2hx_1","--border-brand--xl":"_--border-brand--xl_xj2hx_1","--border-transparent--xl":"_--border-transparent--xl_xj2hx_1"},Bl=e=>e?{variables:O("--rs-border-w",ce(e,t=>t?"1px":"0px"))}:{},ql=e=>e?{variables:O("--rs-border-w-top",ce(e,t=>t?"1px":"0px"))}:{},Hl=e=>e?{variables:O("--rs-border-w-bottom",ce(e,t=>t?"1px":"0px"))}:{},Wl=e=>e?{variables:O("--rs-border-w-start",ce(e,t=>t?"1px":"0px"))}:{},Ol=e=>e?{variables:O("--rs-border-w-end",ce(e,t=>t?"1px":"0px"))}:{},Ul=e=>e?{variables:O("--rs-border-w-block",ce(e,t=>t?"1px":"0px"))}:{},Yl=e=>e?{variables:O("--rs-border-w-inline",ce(e,t=>t?"1px":"0px"))}:{},Kl=e=>e?{classNames:ae(Vl,"--border",e)}:{},nn={root:"_root_14o7b_5","--type-literal":"_--type-literal_14o7b_14","--type-unit":"_--type-unit_14o7b_18","--type-literal--m":"_--type-literal--m_14o7b_1","--type-unit--m":"_--type-unit--m_14o7b_1","--type-literal--l":"_--type-literal--l_14o7b_1","--type-unit--l":"_--type-unit--l_14o7b_1","--type-literal--xl":"_--type-literal--xl_14o7b_1","--type-unit--xl":"_--type-unit--xl_14o7b_1"},Gl=e=>{if(!e)return{};const t=O("--rs-h",e),o=ae(nn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[nn.root,o],variables:t}},Xl=e=>e===void 0?{}:{variables:O("--rs-inset",e)},Ql=e=>e===void 0?{}:{variables:O("--rs-inset-top",e)},Zl=e=>e===void 0?{}:{variables:O("--rs-inset-bottom",e)},Jl=e=>e===void 0?{}:{variables:O("--rs-inset-start",e)},Rl=e=>e===void 0?{}:{variables:O("--rs-inset-end",e)},ea=e=>e===void 0?{}:{variables:O("--rs-inset-inline",e)},ta=e=>e===void 0?{}:{variables:O("--rs-inset-block",e)},oa=e=>e?{variables:O("--rs-justify",e)}:{},sn={root:"_root_1rdxk_1","--type-literal":"_--type-literal_1rdxk_1","--type-unit":"_--type-unit_1rdxk_1","--type-literal--m":"_--type-literal--m_1rdxk_1","--type-unit--m":"_--type-unit--m_1rdxk_1","--type-literal--l":"_--type-literal--l_1rdxk_1","--type-unit--l":"_--type-unit--l_1rdxk_1","--type-literal--xl":"_--type-literal--xl_1rdxk_1","--type-unit--xl":"_--type-unit--xl_1rdxk_1"},ra=e=>{if(!e)return{};const t=O("--rs-max-h",e),o=ae(sn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[sn.root,o],variables:t}},ln={root:"_root_qeyze_1","--type-literal":"_--type-literal_qeyze_1","--type-unit":"_--type-unit_qeyze_1","--type-literal--m":"_--type-literal--m_qeyze_1","--type-unit--m":"_--type-unit--m_qeyze_1","--type-literal--l":"_--type-literal--l_qeyze_1","--type-unit--l":"_--type-unit--l_qeyze_1","--type-literal--xl":"_--type-literal--xl_qeyze_1","--type-unit--xl":"_--type-unit--xl_qeyze_1"},na=e=>{if(!e)return{};const t=O("--rs-max-w",e),o=ae(ln,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[ln.root,o],variables:t}},an={root:"_root_zookh_1","--type-literal":"_--type-literal_zookh_1","--type-unit":"_--type-unit_zookh_1","--type-literal--m":"_--type-literal--m_zookh_1","--type-unit--m":"_--type-unit--m_zookh_1","--type-literal--l":"_--type-literal--l_zookh_1","--type-unit--l":"_--type-unit--l_zookh_1","--type-literal--xl":"_--type-literal--xl_zookh_1","--type-unit--xl":"_--type-unit--xl_zookh_1"},sa=e=>{if(!e)return{};const t=O("--rs-min-h",e),o=ae(an,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[an.root,o],variables:t}},cn={root:"_root_1nz80_1","--type-literal":"_--type-literal_1nz80_1","--type-unit":"_--type-unit_1nz80_1","--type-literal--m":"_--type-literal--m_1nz80_1","--type-unit--m":"_--type-unit--m_1nz80_1","--type-literal--l":"_--type-literal--l_1nz80_1","--type-unit--l":"_--type-unit--l_1nz80_1","--type-literal--xl":"_--type-literal--xl_1nz80_1","--type-unit--xl":"_--type-unit--xl_1nz80_1"},ia=e=>{if(!e)return{};const t=O("--rs-min-w",e),o=ae(cn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[cn.root,o],variables:t}},la=e=>e?{variables:O("--rs-p",e)}:{},aa=e=>e===void 0?{}:{variables:O("--rs-p-top",e)},ca=e=>e===void 0?{}:{variables:O("--rs-p-bottom",e)},da=e=>e===void 0?{}:{variables:O("--rs-p-start",e)},ua=e=>e===void 0?{}:{variables:O("--rs-p-end",e)},_a=e=>e===void 0?{}:{variables:O("--rs-p-inline",e)},ma=e=>e===void 0?{}:{variables:O("--rs-p-block",e)},ha=e=>e?{variables:O("--rs-position",e)}:{},dn={root:"_root_w529z_1","--radius-none":"_--radius-none_w529z_1","--radius-small":"_--radius-small_w529z_1","--radius-medium":"_--radius-medium_w529z_1","--radius-large":"_--radius-large_w529z_1","--radius-circular":"_--radius-circular_w529z_1","--radius-none--m":"_--radius-none--m_w529z_1","--radius-small--m":"_--radius-small--m_w529z_1","--radius-medium--m":"_--radius-medium--m_w529z_1","--radius-large--m":"_--radius-large--m_w529z_1","--radius-circular--m":"_--radius-circular--m_w529z_1","--radius-none--l":"_--radius-none--l_w529z_1","--radius-small--l":"_--radius-small--l_w529z_1","--radius-medium--l":"_--radius-medium--l_w529z_1","--radius-large--l":"_--radius-large--l_w529z_1","--radius-circular--l":"_--radius-circular--l_w529z_1","--radius-none--xl":"_--radius-none--xl_w529z_1","--radius-small--xl":"_--radius-small--xl_w529z_1","--radius-medium--xl":"_--radius-medium--xl_w529z_1","--radius-large--xl":"_--radius-large--xl_w529z_1","--radius-circular--xl":"_--radius-circular--xl_w529z_1"},fa=e=>e?{classNames:[dn.root,...ae(dn,"--radius",e)]}:{},ga=e=>e?{variables:O("--rs-text-align",e)}:{},un={root:"_root_1kn8l_1","--type-literal":"_--type-literal_1kn8l_1","--type-unit":"_--type-unit_1kn8l_1","--type-literal--m":"_--type-literal--m_1kn8l_1","--type-unit--m":"_--type-unit--m_1kn8l_1","--type-literal--l":"_--type-literal--l_1kn8l_1","--type-unit--l":"_--type-unit--l_1kn8l_1","--type-literal--xl":"_--type-literal--xl_1kn8l_1","--type-unit--xl":"_--type-unit--xl_1kn8l_1"},ba={align:Pl,aspectRatio:Al,bleed:Fl,border:Bl,borderTop:ql,borderBottom:Hl,borderStart:Wl,borderEnd:Ol,borderInline:Yl,borderBlock:Ul,borderColor:Kl,height:Gl,padding:la,paddingTop:aa,paddingBottom:ca,paddingStart:da,paddingEnd:ua,paddingInline:_a,paddingBlock:ma,inset:Xl,insetTop:Ql,insetBottom:Zl,insetStart:Jl,insetEnd:Rl,insetInline:ea,insetBlock:ta,justify:oa,maxHeight:ra,maxWidth:na,minHeight:sa,minWidth:ia,position:ha,radius:fa,textAlign:ga,width:e=>{if(!e)return{};const t=O("--rs-w",e),o=ae(un,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[un.root,o],variables:t}}},Qe=e=>{const t={variables:{},classNames:[]};return Object.entries(e).forEach(([r,n])=>{const i=ba[r],l=i(n);l.variables&&(t.variables=b(b({},t.variables),l.variables)),l.classNames&&t.classNames.push(l.classNames)}),t},et={root:"_root_johd4_2","--clamp":"_--clamp_johd4_22","--break-all":"_--break-all_johd4_29","--wrap-balance":"_--wrap-balance_johd4_33","--numeric":"_--numeric_johd4_37","--variant-title-1":"_--variant-title-1_johd4_1","--variant-title-2":"_--variant-title-2_johd4_1","--variant-title-3":"_--variant-title-3_johd4_1","--variant-title-4":"_--variant-title-4_johd4_1","--variant-title-5":"_--variant-title-5_johd4_1","--variant-title-6":"_--variant-title-6_johd4_1","--variant-featured-1":"_--variant-featured-1_johd4_1","--variant-featured-2":"_--variant-featured-2_johd4_1","--variant-featured-3":"_--variant-featured-3_johd4_1","--variant-body-1":"_--variant-body-1_johd4_1","--variant-body-2":"_--variant-body-2_johd4_1","--variant-body-3":"_--variant-body-3_johd4_1","--variant-caption-1":"_--variant-caption-1_johd4_1","--variant-caption-2":"_--variant-caption-2_johd4_1","--weight-regular":"_--weight-regular_johd4_1","--weight-medium":"_--weight-medium_johd4_1","--weight-bold":"_--weight-bold_johd4_1","--color-neutral":"_--color-neutral_johd4_1","--color-neutral-faded":"_--color-neutral-faded_johd4_1","--color-primary":"_--color-primary_johd4_1","--color-warning":"_--color-warning_johd4_1","--color-positive":"_--color-positive_johd4_1","--color-critical":"_--color-critical_johd4_1","--color-disabled":"_--color-disabled_johd4_1","--decoration-line-through":"_--decoration-line-through_johd4_175","--monospace":"_--monospace_johd4_179","--variant-title-1--m":"_--variant-title-1--m_johd4_1","--variant-title-2--m":"_--variant-title-2--m_johd4_1","--variant-title-3--m":"_--variant-title-3--m_johd4_1","--variant-title-4--m":"_--variant-title-4--m_johd4_1","--variant-title-5--m":"_--variant-title-5--m_johd4_1","--variant-title-6--m":"_--variant-title-6--m_johd4_1","--variant-featured-1--m":"_--variant-featured-1--m_johd4_1","--variant-featured-2--m":"_--variant-featured-2--m_johd4_1","--variant-featured-3--m":"_--variant-featured-3--m_johd4_1","--variant-body-1--m":"_--variant-body-1--m_johd4_1","--variant-body-2--m":"_--variant-body-2--m_johd4_1","--variant-body-3--m":"_--variant-body-3--m_johd4_1","--variant-caption-1--m":"_--variant-caption-1--m_johd4_1","--variant-caption-2--m":"_--variant-caption-2--m_johd4_1","--weight-regular--m":"_--weight-regular--m_johd4_1","--weight-medium--m":"_--weight-medium--m_johd4_1","--weight-bold--m":"_--weight-bold--m_johd4_1","--variant-title-1--l":"_--variant-title-1--l_johd4_1","--variant-title-2--l":"_--variant-title-2--l_johd4_1","--variant-title-3--l":"_--variant-title-3--l_johd4_1","--variant-title-4--l":"_--variant-title-4--l_johd4_1","--variant-title-5--l":"_--variant-title-5--l_johd4_1","--variant-title-6--l":"_--variant-title-6--l_johd4_1","--variant-featured-1--l":"_--variant-featured-1--l_johd4_1","--variant-featured-2--l":"_--variant-featured-2--l_johd4_1","--variant-featured-3--l":"_--variant-featured-3--l_johd4_1","--variant-body-1--l":"_--variant-body-1--l_johd4_1","--variant-body-2--l":"_--variant-body-2--l_johd4_1","--variant-body-3--l":"_--variant-body-3--l_johd4_1","--variant-caption-1--l":"_--variant-caption-1--l_johd4_1","--variant-caption-2--l":"_--variant-caption-2--l_johd4_1","--weight-regular--l":"_--weight-regular--l_johd4_1","--weight-medium--l":"_--weight-medium--l_johd4_1","--weight-bold--l":"_--weight-bold--l_johd4_1","--variant-title-1--xl":"_--variant-title-1--xl_johd4_1","--variant-title-2--xl":"_--variant-title-2--xl_johd4_1","--variant-title-3--xl":"_--variant-title-3--xl_johd4_1","--variant-title-4--xl":"_--variant-title-4--xl_johd4_1","--variant-title-5--xl":"_--variant-title-5--xl_johd4_1","--variant-title-6--xl":"_--variant-title-6--xl_johd4_1","--variant-featured-1--xl":"_--variant-featured-1--xl_johd4_1","--variant-featured-2--xl":"_--variant-featured-2--xl_johd4_1","--variant-featured-3--xl":"_--variant-featured-3--xl_johd4_1","--variant-body-1--xl":"_--variant-body-1--xl_johd4_1","--variant-body-2--xl":"_--variant-body-2--xl_johd4_1","--variant-body-3--xl":"_--variant-body-3--xl_johd4_1","--variant-caption-1--xl":"_--variant-caption-1--xl_johd4_1","--variant-caption-2--xl":"_--variant-caption-2--xl_johd4_1","--weight-regular--xl":"_--weight-regular--xl_johd4_1","--weight-medium--xl":"_--weight-medium--xl_johd4_1","--weight-bold--xl":"_--weight-bold--xl_johd4_1"},pa={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},se=e=>{const{variant:t,color:o,weight:r,align:n,decoration:i,maxLines:l,wrap:c,monospace:d,numeric:u,children:m,className:_,attributes:g}=e,h=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),v=Qe({textAlign:n}),f=e.as||h&&pa[h]||"div",p=P(et.root,o&&et[`--color-${o}`],...ae(et,"--variant",t),...ae(et,"--weight",r),i&&et[`--decoration-${i}`],l!==void 0&&et["--clamp"],l===1&&et["--break-all"],c&&et[`--wrap-${c}`],d&&et["--monospace"],u&&et["--numeric"],_,v.classNames),y=N(b(b({},g==null?void 0:g.style),v.variables),{"--rs-text-lines":l});return s.jsx(f,N(b({},g),{className:p,style:y,children:m}))};se.displayName="Text";const It={root:"_root_1tl54_1","--color-neutral":"_--color-neutral_1tl54_25","--blank":"_--blank_1tl54_29","--vertical":"_--vertical_1tl54_35",label:"_label_1tl54_63","--content-position-center":"_--content-position-center_1tl54_89","--content-position-start":"_--content-position-start_1tl54_96","--vertical-true--m":"_--vertical-true--m_1tl54_1","--vertical-false--m":"_--vertical-false--m_1tl54_1","--vertical-true--l":"_--vertical-true--l_1tl54_1","--vertical-false--l":"_--vertical-false--l_1tl54_1","--vertical-true--xl":"_--vertical-true--xl_1tl54_1","--vertical-false--xl":"_--vertical-false--xl_1tl54_1"},Kt=e=>{const{vertical:t,blank:o,children:r,contentPosition:n="center",color:i,offset:l,className:c,attributes:d}=e,u=P(It.root,c,o&&It["--blank"],i&&It[`--color-${i}`],r?It[`--content-position-${n}`]:void 0,...ae(It,"--vertical",t));let m;return(typeof t=="boolean"||t===void 0)&&(m=t?"vertical":"horizontal"),s.jsx("div",N(b({},d),{role:"separator","aria-orientation":m,className:u,style:N(b({},d==null?void 0:d.style),{"--rs-divider-offset":l}),children:r&&s.jsx(se,{color:"neutral-faded",variant:"caption-1",className:It.label,children:r})}))};Kt.displayName="Divider";const qo={root:"_root_11ilc_1","--hidden":"_--hidden_11ilc_5","--visibility":"_--visibility_11ilc_9","--hidden-true--m":"_--hidden-true--m_11ilc_1","--hidden-false--m":"_--hidden-false--m_11ilc_1","--hidden-true--l":"_--hidden-true--l_11ilc_1","--hidden-false--l":"_--hidden-false--l_11ilc_1","--hidden-true--xl":"_--hidden-true--xl_11ilc_1","--hidden-false--xl":"_--hidden-false--xl_11ilc_1"},pt=e=>{const{as:t="div",children:o,visibility:r,hide:n}=e,i=P(qo.root,...ae(qo,"--hidden",n),r&&qo["--visibility"]);return s.jsx(t,{className:i,children:o})};pt.displayName="Hidden";const ze={root:"_root_9u073_1",item:"_item_9u073_11","--animated":"_--animated_9u073_19","--bg-neutral":"_--bg-neutral_9u073_1","--bg-positive":"_--bg-positive_9u073_1","--bg-warning":"_--bg-warning_9u073_1","--bg-critical":"_--bg-critical_9u073_1","--bg-primary":"_--bg-primary_9u073_1","--bg-neutral-faded":"_--bg-neutral-faded_9u073_1","--bg-positive-faded":"_--bg-positive-faded_9u073_1","--bg-warning-faded":"_--bg-warning-faded_9u073_1","--bg-critical-faded":"_--bg-critical-faded_9u073_1","--bg-primary-faded":"_--bg-primary-faded_9u073_1","--bg-page":"_--bg-page_9u073_1","--bg-page-faded":"_--bg-page-faded_9u073_1","--bg-disabled":"_--bg-disabled_9u073_1","--bg-disabled-faded":"_--bg-disabled-faded_9u073_1","--bg-elevation-base":"_--bg-elevation-base_9u073_1","--bg-elevation-raised":"_--bg-elevation-raised_9u073_1","--bg-elevation-overlay":"_--bg-elevation-overlay_9u073_1","--bg-brand":"_--bg-brand_9u073_39","--bg-white":"_--bg-white_9u073_44","--bg-black":"_--bg-black_9u073_49","--shadow-raised":"_--shadow-raised_9u073_54","--shadow-overlay":"_--shadow-overlay_9u073_58","--overflow-hidden":"_--overflow-hidden_9u073_62","--overflow-auto":"_--overflow-auto_9u073_66","--divided":"_--divided_9u073_70","--flex":"_--flex_9u073_74","--direction-column":"_--direction-column_9u073_1","item--gap-before":"_item--gap-before_9u073_86","item--gap-auto":"_item--gap-auto_9u073_90","--direction-column-reverse":"_--direction-column-reverse_9u073_1","--direction-row":"_--direction-row_9u073_1","--direction-row-reverse":"_--direction-row-reverse_9u073_1","--nowrap":"_--nowrap_9u073_145","--wrap":"_--wrap_9u073_153","--nowrap-false--m":"_--nowrap-false--m_9u073_1","--wrap-true--m":"_--wrap-true--m_9u073_1","--nowrap-true--m":"_--nowrap-true--m_9u073_1","--wrap-false--m":"_--wrap-false--m_9u073_1","--nowrap-false--l":"_--nowrap-false--l_9u073_1","--wrap-true--l":"_--wrap-true--l_9u073_1","--nowrap-true--l":"_--nowrap-true--l_9u073_1","--wrap-false--l":"_--wrap-false--l_9u073_1","--nowrap-false--xl":"_--nowrap-false--xl_9u073_1","--wrap-true--xl":"_--wrap-true--xl_9u073_1","--nowrap-true--xl":"_--nowrap-true--xl_9u073_1","--wrap-false--xl":"_--wrap-false--xl_9u073_1",divider:"_divider_9u073_171","item--grow":"_item--grow_9u073_175","item--shrink":"_item--shrink_9u073_193","item--columns":"_item--columns_9u073_197","item--columns-1":"_item--columns-1_9u073_1","item--columns-2":"_item--columns-2_9u073_1","item--columns-3":"_item--columns-3_9u073_1","item--columns-4":"_item--columns-4_9u073_1","item--columns-5":"_item--columns-5_9u073_1","item--columns-6":"_item--columns-6_9u073_1","item--columns-7":"_item--columns-7_9u073_1","item--columns-8":"_item--columns-8_9u073_1","item--columns-9":"_item--columns-9_9u073_1","item--columns-10":"_item--columns-10_9u073_1","item--columns-11":"_item--columns-11_9u073_1","item--columns-12":"_item--columns-12_9u073_1","item--columns-auto":"_item--columns-auto_9u073_218","item--columns-1--m":"_item--columns-1--m_9u073_1","item--columns-auto--m":"_item--columns-auto--m_9u073_1","item--columns-2--m":"_item--columns-2--m_9u073_1","item--columns-3--m":"_item--columns-3--m_9u073_1","item--columns-4--m":"_item--columns-4--m_9u073_1","item--columns-5--m":"_item--columns-5--m_9u073_1","item--columns-6--m":"_item--columns-6--m_9u073_1","item--columns-7--m":"_item--columns-7--m_9u073_1","item--columns-8--m":"_item--columns-8--m_9u073_1","item--columns-9--m":"_item--columns-9--m_9u073_1","item--columns-10--m":"_item--columns-10--m_9u073_1","item--columns-11--m":"_item--columns-11--m_9u073_1","item--columns-12--m":"_item--columns-12--m_9u073_1","item--columns-1--l":"_item--columns-1--l_9u073_1","item--columns-auto--l":"_item--columns-auto--l_9u073_1","item--columns-2--l":"_item--columns-2--l_9u073_1","item--columns-3--l":"_item--columns-3--l_9u073_1","item--columns-4--l":"_item--columns-4--l_9u073_1","item--columns-5--l":"_item--columns-5--l_9u073_1","item--columns-6--l":"_item--columns-6--l_9u073_1","item--columns-7--l":"_item--columns-7--l_9u073_1","item--columns-8--l":"_item--columns-8--l_9u073_1","item--columns-9--l":"_item--columns-9--l_9u073_1","item--columns-10--l":"_item--columns-10--l_9u073_1","item--columns-11--l":"_item--columns-11--l_9u073_1","item--columns-12--l":"_item--columns-12--l_9u073_1","item--columns-1--xl":"_item--columns-1--xl_9u073_1","item--columns-auto--xl":"_item--columns-auto--xl_9u073_1","item--columns-2--xl":"_item--columns-2--xl_9u073_1","item--columns-3--xl":"_item--columns-3--xl_9u073_1","item--columns-4--xl":"_item--columns-4--xl_9u073_1","item--columns-5--xl":"_item--columns-5--xl_9u073_1","item--columns-6--xl":"_item--columns-6--xl_9u073_1","item--columns-7--xl":"_item--columns-7--xl_9u073_1","item--columns-8--xl":"_item--columns-8--xl_9u073_1","item--columns-9--xl":"_item--columns-9--xl_9u073_1","item--columns-10--xl":"_item--columns-10--xl_9u073_1","item--columns-11--xl":"_item--columns-11--xl_9u073_1","item--columns-12--xl":"_item--columns-12--xl_9u073_1","--direction-column--m":"_--direction-column--m_9u073_1","--direction-column-reverse--m":"_--direction-column-reverse--m_9u073_1","--direction-row--m":"_--direction-row--m_9u073_1","--direction-row-reverse--m":"_--direction-row-reverse--m_9u073_1","item--grow-true--m":"_item--grow-true--m_9u073_1","item--grow-false--m":"_item--grow-false--m_9u073_1","--direction-column--l":"_--direction-column--l_9u073_1","--direction-column-reverse--l":"_--direction-column-reverse--l_9u073_1","--direction-row--l":"_--direction-row--l_9u073_1","--direction-row-reverse--l":"_--direction-row-reverse--l_9u073_1","item--grow-true--l":"_item--grow-true--l_9u073_1","item--grow-false--l":"_item--grow-false--l_9u073_1","--direction-column--xl":"_--direction-column--xl_9u073_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_9u073_1","--direction-row--xl":"_--direction-row--xl_9u073_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_9u073_1","item--grow-true--xl":"_item--grow-true--xl_9u073_1","item--grow-false--xl":"_item--grow-false--xl_9u073_1"},Ho=e=>{const{columns:t,grow:o,shrink:r,gapBefore:n,as:i="div",order:l,children:c,className:d,attributes:u}=e,m=P(ze.item,d,n==="auto"&&ze["item--gap-auto"],n!==void 0&&ze["item--gap-before"],t&&ze["item--columns"],r&&ze["item--shrink"],...ae(ze,"item--grow",o),...ae(ze,"item--columns",t)),_=b(b({},O("--rs-view-item-order",l)),O("--rs-view-item-gap-before",n));return s.jsx(i,N(b({},u),{style:b(b({},u==null?void 0:u.style),_),className:m,children:c}))},Wo=e=>{var Le;const{align:t,justify:o,wrap:r,gap:n,height:i,width:l,aspectRatio:c,maxHeight:d,maxWidth:u,minHeight:m,minWidth:_,padding:g,paddingInline:h,paddingBlock:v,paddingBottom:f,paddingEnd:p,paddingStart:y,paddingTop:x,bleed:w,animated:C,backgroundColor:z,borderColor:I,borderTop:S,borderBottom:k,borderStart:$,borderEnd:E,borderInline:M,borderBlock:T,borderRadius:L,shadow:A,textAlign:F,overflow:D,position:V,inset:W,insetTop:K,insetBottom:G,insetStart:oe,insetEnd:B,zIndex:R,grow:U,shrink:Y,as:X="div",children:ee,divided:ge,className:Z,attributes:q}=e,Q=(Le=e.border)!=null?Le:I?!S&&!k&&!$&&!E&&!M&&!T:void 0;let J=!!t||!!o||!!n||!!e.direction;const ue=e.direction||(J?"column":void 0),Ee=Qe({align:t,inset:W,insetTop:K,insetBottom:G,insetStart:oe,insetEnd:B,bleed:w,width:l,height:i,maxWidth:u,maxHeight:d,minWidth:_,minHeight:m,position:V,aspectRatio:c,textAlign:F,justify:o,padding:g,paddingInline:h,paddingBlock:v,paddingBottom:f,paddingEnd:p,paddingStart:y,paddingTop:x,borderColor:I,border:Q,borderTop:S,borderBottom:k,borderStart:$,borderEnd:E,borderInline:M,borderBlock:T,radius:L});let ne=0,ie;const le=({className:me,key:fe})=>{const Xe=P(ze.divider,me);let ye=!1;return typeof ue=="string"&&ue.startsWith("row")?ye=!0:ue&&(ye=Object.keys(ue).reduce((He,Ne)=>{const Te=ue[Ne];return Te?N(b({},He),{[Ne]:Te.startsWith("row")}):He},{})),s.jsx("div",{className:Xe,children:s.jsx(Kt,{vertical:ye,blank:!0})},`${fe}-divider`)},_e=({className:me,child:fe,index:Xe})=>{var Fo,Vo;const ye=a.isValidElement(fe),Pe=ye&&fe.type===Ho,He=ye&&fe.type===Wo,Ne=fe.key,Te=!!Xe&&ge&&le({className:me,key:Ne});let Yt;return Pe?Yt=a.cloneElement(fe,{className:P(me,fe.props.className)}):!me&&(a.isValidElement(fe)||a.Children.count(ee===1)||typeof fe=="string")?Yt=fe:Yt=s.jsx("div",{className:me,children:fe},Ne),(Pe||He)&&((Fo=fe.props)!=null&&Fo.grow)&&(ie=fe.props.grow,J=!0),Pe&&((Vo=fe.props)==null?void 0:Vo.gap)==="auto"&&(ie=!0),s.jsxs(a.Fragment,{children:[Te,Yt]},Ne?`${Ne}-fragment`:void 0)},pe=a.Children.map(ee,(me,fe)=>{if(!me)return null;const Xe=ne;if(ne+=1,a.isValidElement(me)&&me.type===pt){const ye=me.props,{children:Pe}=ye,He=ve(ye,["children"]),Ne=me.key||fe;return a.createElement(pt,N(b({},He),{key:Ne}),_e({child:Pe,index:Xe}))}return me.type===a.Fragment&&a.Children.count(me.props.children)>1?me.props.children.map(Pe=>Pe?(ne+=1,_e({child:Pe,index:ne})):null):_e({child:me,index:Xe})}),we=P(ze.root,Z,Ee.classNames,z&&ze[`--bg-${z}`],A&&ze[`--shadow-${A}`],D&&ze[`--overflow-${D}`],C&&ze["--animated"],ge&&ze["--divided"],(J||ie)&&ze["--flex"],...ae(ze,"--direction",ue),...ae(ze,"--nowrap",ie||r===!1),...ae(ze,"--wrap",r),...ae(ze,"item--grow",U),Y&&ze["item--shrink"]),$e=b(b(b(b({},q==null?void 0:q.style),O("--rs-view-gap",n)),Ee.variables),R?{"--rs-view-z":R}:{});return s.jsx(X,N(b({},q),{className:we,style:$e,children:pe}))};Wo.displayName="View",Ho.displayName="View.Item";const H=Wo;H.Item=Ho;const uo={root:"_root_kbofm_1","--position-top":"_--position-top_kbofm_1","--position-top-start":"_--position-top-start_kbofm_1","--position-top-end":"_--position-top-end_kbofm_1","--position-bottom":"_--position-bottom_kbofm_101","--position-bottom-start":"_--position-bottom-start_kbofm_1","--position-bottom-end":"_--position-bottom-end_kbofm_1","--elevated":"_--elevated_kbofm_66","--active":"_--active_kbofm_80"},va=["top","bottom"],_n=e=>{const{position:t="bottom",positionType:o,offset:r,padding:n,paddingBlock:i=3,paddingInline:l=4,children:c,elevated:d,active:u=!0,className:m,attributes:_}=e,g=o!=null?o:r?"absolute":va.includes(t)?"relative":"absolute",h=r!=null?r:g==="relative"?void 0:4,v=h&&O("--rs-action-bar-offset",h),f=P(uo.root,(d||!!v)&&uo["--elevated"],t&&uo[`--position-${t}`],u&&uo["--active"],m);return s.jsx(H,{className:f,attributes:N(b({},_),{style:b(b({},_==null?void 0:_.style),v)}),position:g,paddingBlock:n||i,paddingInline:n||l,children:c})};_n.displayName="ActionBar";const Oo={root:"_root_wxiwp_1","--auto":"_--auto_wxiwp_12","--color-neutral":"_--color-neutral_wxiwp_1","--color-neutral-faded":"_--color-neutral-faded_wxiwp_1","--color-primary":"_--color-primary_wxiwp_1","--color-positive":"_--color-positive_wxiwp_1","--color-warning":"_--color-warning_wxiwp_1","--color-critical":"_--color-critical_wxiwp_1","--color-disabled":"_--color-disabled_wxiwp_1"},he=e=>{const{svg:t,className:o,color:r,size:n="1em",autoWidth:i,attributes:l}=e,c=Qe({height:n}),d=P(Oo.root,o,c.classNames,r&&Oo[`--color-${r}`],i&&Oo["--auto"]),u=a.isValidElement(t)||t===null?t:s.jsx(t,{}),m=b(b({},l==null?void 0:l.style),c.variables);return s.jsx("span",N(b({},l),{"aria-hidden":"true",className:d,style:m,children:u&&a.cloneElement(u,{focusable:!1})}))};he.displayName="Icon";const ya={icon:"_icon_1elkf_1"},mn=e=>{const{title:t,children:o,icon:r,actionsSlot:n,color:i="neutral",inline:l,bleed:c,className:d,attributes:u}=e,m=i==="neutral",_=()=>l?s.jsxs(s.Fragment,{children:[t&&s.jsx(se,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&o&&" ",o&&s.jsx(se,{variant:"body-3",as:"span",children:o})]}):s.jsxs(H,{gap:1,grow:!0,children:[t&&s.jsx(se,{variant:"body-3",weight:"medium",children:t}),o&&s.jsx(se,{variant:"body-3",children:o})]}),g=h=>n?s.jsxs(H,{gap:l?4:2,direction:l?"row":"column",children:[l?s.jsx(H.Item,{grow:!0,children:h}):h,n&&s.jsx(se,{variant:"body-3",weight:"medium",children:s.jsx(H,{direction:"row",gap:3,children:n})})]}):h;return s.jsx(H,{direction:"row",gap:3,padding:4,bleed:c,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:N(b({},u),{role:i==="critical"?"alert":"status"}),children:r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:ya.icon,children:s.jsx(he,{svg:r,size:5,color:m?"primary":i})}),s.jsx(H.Item,{grow:!0,children:g(_())})]}):g(_())})};mn.displayName="Alert";const We=e=>{const t=a.useId();return e||t};let vt={},lt=null;const xa=e=>{vt[e]&&(e===lt&&(lt=vt[e].parentId),delete vt[e],lt===null&&(vt={}))},wa=(e,t,o)=>{vt[e]={parentId:lt,triggerRef:o,contentRef:t},lt=e},hn=e=>{const{active:t,contentRef:o,triggerRef:r,hasTrigger:n=!0}=e,i=We();return a.useEffect(()=>{if(t)return wa(i,o,r),()=>xa(i)},[t,i,o,r]),a.useCallback(()=>{var _;if(!t)return!0;const l=lt?vt[lt]:void 0,c=(_=l==null?void 0:l.triggerRef)==null?void 0:_.current,d=l!=null&&l.parentId?vt[l.parentId]:void 0,u=d==null?void 0:d.contentRef.current,m=u&&c&&u.contains(c);return n&&!m?!0:!lt||lt===i},[i,t,n])},be=typeof window!="undefined"?a.useLayoutEffect:a.useEffect,Se=e=>{const t=a.useRef(e);return be(()=>{t.current=e},[e]),t},Gt="+",Ye=new Map;let Xt=[];const fn=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),_o=e=>fn(e).split(Gt).sort().join(Gt),gn=e=>{if(e.key)return e.altKey&&/^[Key|Digit|Numpad]/.test(e.code)?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},bn=(e,t)=>{Object.keys(e).forEach(o=>{o.split(",").forEach(r=>{const n=e[o];n&&t(_o(r),n)})})};class Ca{constructor(){xe(this,"hotkeyMap",{});xe(this,"getSize",()=>Object.keys(this.hotkeyMap).length);xe(this,"bindHotkeys",(t,o,r)=>{bn(t,(n,i)=>{i&&(this.hotkeyMap[n]||(this.hotkeyMap[n]=new Set),this.hotkeyMap[n].add({callback:i,ref:o,options:r}))})});xe(this,"unbindHotkeys",t=>{bn(t,(o,r)=>{var n,i;r&&((n=this.hotkeyMap[o])==null||n.forEach(l=>{l.callback===r&&this.hotkeyMap[o].delete(l)}),(i=this.hotkeyMap[o])!=null&&i.size||delete this.hotkeyMap[o])})});xe(this,"handleKeyDown",(t,o)=>{if(!t.size)return;const r=[...t.keys()],n=_o(r.join(Gt)),i=n.split(Gt),l=this.hotkeyMap[n],c=_o(n.replace("control","mod")),d=_o(n.replace("meta","mod")),u=i.includes("control")&&this.hotkeyMap[c],m=i.includes("meta")&&this.hotkeyMap[d];[l,u,m].forEach(_=>{_&&_!=null&&_.size&&_.forEach(g=>{const h=o.composedPath()[0];if(g.ref.current&&!(h===g.ref.current||g.ref.current.contains(h)))return;const v=t.get(n);g.options.preventDefault&&(v==null||v.preventDefault(),o.preventDefault()),g.callback(o)})})})}}const Uo=new Ca,pn=a.createContext({}),Na=e=>{const{children:t}=e,[o,r]=a.useState(0),[n,i]=a.useState(0),l=a.useCallback(h=>{if(h.repeat||n===0)return;const v=gn(h);v&&(Ye.set(v,h),r(Ye.size),h.metaKey&&Xt.push(...Ye.keys()),Ye.has("Meta")&&Xt.push(v))},[n]),c=a.useCallback(h=>{if(n===0)return;const v=gn(h);v&&(Ye.delete(v),(v==="meta"||v==="control")&&Ye.delete("mod"),v==="meta"&&(Xt.forEach(f=>{Ye.has(f)&&Ye.delete(f)}),Xt=[]),r(Ye.size))},[n]),d=h=>!fn(h).split(Gt).some(f=>!Ye.has(f)),u=a.useCallback(h=>{h.key&&(l(h),Uo.handleKeyDown(Ye,h))},[l]),m=a.useCallback(h=>{h.key&&c(h)},[c]),_=a.useCallback(()=>{Ye.clear(),Xt=[]},[]),g=a.useCallback((h,v,f={})=>(i(p=>p+1),Uo.bindHotkeys(h,v,f),()=>{i(p=>p-1),Uo.unbindHotkeys(h)}),[]);return a.useEffect(()=>(window.addEventListener("keydown",u),window.addEventListener("keyup",m),window.addEventListener("blur",_),()=>{window.removeEventListener("keydown",u),window.removeEventListener("keyup",m),window.removeEventListener("blur",_)}),[u,m,_]),s.jsx(pn.Provider,{value:{addHotkeys:g,isPressed:d},children:t})},ka=()=>a.useContext(pn),Ke=(e,t=[],o)=>{const{addHotkeys:r,isPressed:n}=ka(),i=a.useRef(null),l=(o==null?void 0:o.ref)||i;return a.useEffect(()=>{if(o!=null&&o.disabled)return;const c=r(e,l,{preventDefault:o==null?void 0:o.preventDefault});return()=>c==null?void 0:c()},[r,Object.keys(e).join(","),o==null?void 0:o.disabled,o==null?void 0:o.preventDefault,...t]),{ref:l,checkHotkeyState:n}},vn=(e,t,o)=>{const{disabled:r}=o||{},n=Se(t),i=a.useRef(!1);a.useEffect(()=>{const l=c=>{i.current=!1;const d=c.composedPath()[0];e.forEach(u=>{u.current&&(u.current===d||u.current.contains(d))&&(i.current=!0)})};return document.addEventListener("mousedown",l,{passive:!0}),document.addEventListener("touchstart",l,{passive:!0}),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l)}},[...e]),a.useEffect(()=>{if(!n.current||r)return;const l=c=>{var d;"button"in c&&c.button===2||i.current||(d=n.current)==null||d.call(n,c)};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}},[n,r,...e])},Yo=a.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),za=e=>{const t=a.useState(e||!1),[o,r]=t;return be(()=>{const n=new MutationObserver(i=>{i.forEach(l=>{if(l.attributeName!=="dir")return;const c=l.target.dir==="rtl";o!==c&&r(c)})});return n.observe(document.documentElement,{attributes:!0}),()=>n.disconnect()},[o]),be(()=>{document.documentElement.setAttribute("dir",o?"rtl":"ltr")},[o]),t},at=()=>a.useContext(Yo).rtl,Sa=e=>"width"in e&&e.width!==void 0?e:N(b({},e),{width:0,height:0,left:e.x,right:e.x,top:e.y,bottom:e.y,toJSON:()=>{}}),jt=e=>{const t=e==null?void 0:e.getRootNode();return t instanceof ShadowRoot?t:null},mo=()=>{document.body.style.userSelect="none"},ho=()=>{document.body.style.userSelect=""},Ea=(e,t)=>{let o=e.parentElement;for(;o;){if(t(o))return o;o=o.parentElement}return null},Ko=e=>{const{el:t,iteration:o=0}=e,r=t&&window.getComputedStyle(t),n=r==null?void 0:r.position,i=n==="fixed"||n==="sticky";if(o===0){const l=jt(t);if(l!=null&&l.firstElementChild)return l.firstElementChild}return t===document.body||!t?document.body:i?t:Ko({el:t.parentElement,iteration:o+1})},Go=e=>{const{el:t,iteration:o=0}=e,r=t&&window.getComputedStyle(t),n=r==null?void 0:r.overflowY,i=(n==null?void 0:n.includes("scroll"))||(n==null?void 0:n.includes("auto"));return!t.parentElement||i&&t.scrollHeight>t.clientHeight?t:Go({el:t.parentElement,iteration:o+1})},yn=(e,t)=>{Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set.call(e,t),e.dispatchEvent(new Event("change",{bubbles:!0}))},fo="data-rs-focus",xn='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex],[contenteditable]',Qt=e=>{const t=e?jt(e):null,o=t!=null?t:document;return o.querySelector(`[${fo}]`)||o.activeElement},go=(e,t)=>{var n;const o=jt(e);(n=(o!=null?o:document).querySelector(`[${fo}]`))==null||n.removeAttribute(fo),t!=null&&t.pseudoFocus?e.setAttribute(fo,"true"):e.focus()},Zt=(e,t)=>{const r=Array.from(e.querySelectorAll(xn)).filter(n=>{if(n.hasAttribute("disabled")||n.clientHeight===0||!(t!=null&&t.includeNegativeTabIndex)&&n.getAttribute("tabindex")==="-1")return!1;if(n.type==="radio"){let i;if(n.form){const l=n.form.elements.namedItem(n.name);if(!l)return!1;"length"in l?i=Array.from(l).filter(d=>"type"in d&&d.type==="radio"):i=[l]}else i=Array.from(e.querySelectorAll(`[type="radio"][name="${n.name}"]`));if(i!=null&&i.length){const l=Array.from(i).find(c=>c.checked);if(l&&n!==l||!l&&n!==i[0])return!1}}return!0});return t!=null&&t.additionalElement&&r.length&&r.unshift(t.additionalElement),r},wn=e=>{const{root:t,target:o,options:r}=e,n=Zt(t,{additionalElement:r==null?void 0:r.additionalElement,includeNegativeTabIndex:r==null?void 0:r.includeNegativeTabIndex}),i=n.length-1,l=Qt(t),c=n.indexOf(l),d={next:c+1,prev:c-1,first:0,last:i};let u=d[o];const m=u>i||u<0;return m&&(r!=null&&r.circular?u=o==="prev"?d.last:d.first:u=o==="prev"?d.first:d.last),{overflow:m,el:n[u],focusableElements:n}},bo=(e,t,o)=>{const r=wn({root:e,target:t,options:o});return go(r.el),{el:r.el,focusableElements:r.focusableElements}},$a=(e,t)=>bo(e,"next",N(b({},t),{includeNegativeTabIndex:!0})),Ta=(e,t)=>bo(e,"prev",N(b({},t),{includeNegativeTabIndex:!0})),Ma=e=>bo(e,"first",{includeNegativeTabIndex:!0}),Ia=e=>bo(e,"last",{includeNegativeTabIndex:!0}),Xo="data-rs-keyboard",ja=()=>{document.documentElement.setAttribute(Xo,"true")},Da=()=>{document.documentElement.removeAttribute(Xo)},po=()=>document.documentElement.hasAttribute(Xo),La="Escape",Pa=" ",Cn="Enter",Aa="Tab",yt="ArrowUp",xt="ArrowDown",wt="ArrowRight",Ct="ArrowLeft",Fa="Backspace";class Va{constructor(){xe(this,"chain",{});xe(this,"tailId",null);xe(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 o=this.tailId,r=o&&this.get(o),n=this.generateId();return this.chain[n]={previousId:o,data:t},r&&(r.nextId=n),this.tailId=n,n}remove(t){var d,u;const o=this.chain[t];if(!o)return;const r=o.previousId,n=r&&this.get(r),i=o.nextId,l=i&&this.get(i);n&&(n.nextId=(d=o.nextId)!=null?d:null),l&&(l.previousId=(u=o.previousId)!=null?u:null),i||(this.tailId=r!=null?r:null);const c=this.get(t).data;return delete this.chain[t],c}removePreviousTill(t,o){const r=this.get(t),n=this.remove(t);return!r||!r.previousId||o(r)?n:this.removePreviousTill(r.previousId,o)}}class Ba{constructor(t){xe(this,"root");xe(this,"hiddenElements",[]);xe(this,"hideSiblingsFromScreenReader",t=>{let o=t.parentNode&&t.parentNode.firstChild;for(;o;){const r=o!==t,n=o.nodeType===1&&!o.hasAttribute("aria-hidden");r&&n&&(o.setAttribute("aria-hidden","true"),this.hiddenElements.push(o)),o=o.nextSibling}});xe(this,"release",()=>{this.hiddenElements.forEach(t=>{t.removeAttribute("aria-hidden")}),this.hiddenElements=[]});xe(this,"trap",()=>{let t=this.root;for(this.release();t!==document.body&&t.parentElement;)this.hideSiblingsFromScreenReader(t),t=t.parentElement});this.root=t}}const Ue=class Ue{constructor(){it(this,Tt);it(this,Ce,null);it(this,ht,null);it(this,Wt,{});xe(this,"trapped");it(this,Ot,null);it(this,Ut,null);it(this,ao,t=>{if(t.defaultPrevented||Ue.chain.tailId!==re(this,Tt)||!re(this,Ce))return;const{mode:o,onRelease:r,pseudoFocus:n,includeTrigger:i}=re(this,Wt);let l="tabs";(o==="action-menu"||o==="selection-menu"||o==="action-bar")&&(l="arrows");const c=t.key,d=c===Aa,u=d&&t.shiftKey,m=d&&!t.shiftKey,_=[Ct,wt,yt,xt].includes(c),g=l==="arrows"&&c===(o==="action-bar"?Ct:yt),h=l==="arrows"&&c===(o==="action-bar"?wt:xt),v=u&&l==="tabs"||g,f=m&&l==="tabs"||h,p=Qt(re(this,Ce))===re(this,ht),y=wn({root:re(this,Ce),target:v?"prev":"next",options:{additionalElement:i?re(this,ht):void 0,circular:!0}});if(d&&l==="arrows"||o==="content-menu"&&d&&y.overflow){u&&!p&&t.preventDefault(),this.release(),r==null||r();return}if(!v&&!f){_&&(o==="action-bar"||o==="action-menu")&&t.preventDefault();return}t.preventDefault(),y.el&&go(y.el,{pseudoFocus:n})});it(this,Ao,()=>{const t=jt(re(this,Ce));(t!=null?t:document).addEventListener("keydown",re(this,ao))});it(this,co,()=>{const t=jt(re(this,Ce));(t!=null?t:document).removeEventListener("keydown",re(this,ao))});xe(this,"trap",(t,o={})=>{const{mode:r="dialog",includeTrigger:n,initialFocusEl:i}=o;Mt(this,Ce,t),Mt(this,Ot,new Ba(t));const l=Qt(re(this,Ce)),c=Zt(re(this,Ce),{additionalElement:n?l:void 0}),d=r==="selection-menu";if(Mt(this,Wt,N(b({},o),{pseudoFocus:d})),Mt(this,ht,l),Mt(this,Ut,new MutationObserver(()=>{if(!re(this,Ce))return;const _=Qt(re(this,Ce));if(re(this,Ce).contains(_))return;const g=Zt(re(this,Ce),{additionalElement:n?l:void 0});g.length&&go(g[0],{pseudoFocus:d})})),re(this,co).call(this),re(this,Ut).observe(re(this,Ce),{childList:!0,subtree:!0}),!c.length&&!i)return;re(this,Ao).call(this),r==="dialog"&&re(this,Ot).trap();const u=Ue.chain.tailId&&Ue.chain.get(Ue.chain.tailId),m=Qt(re(this,Ce));(!u||re(this,Ce)!==re(u.data,Ce))&&(Mt(this,Tt,Ue.chain.add(this)),re(this,Ce).contains(m)||go(i||c[0],{pseudoFocus:d})),this.trapped=!0});xe(this,"release",(t={})=>{var n,i;const{withoutFocusReturn:o}=t;if(!this.trapped||!re(this,Tt)||!re(this,Ce))return;this.trapped=!1,re(this,ht)&&!o&&re(this,ht).focus({preventScroll:!po()}),Ue.chain.removePreviousTill(re(this,Tt),l=>document.body.contains(re(l.data,ht))),(n=re(this,Ut))==null||n.disconnect(),re(this,co).call(this),(i=re(this,Ot))==null||i.release();const r=Ue.chain.tailId&&Ue.chain.get(Ue.chain.tailId);r&&re(r.data,Ce)&&new Ue().trap(re(r.data,Ce),re(r.data,Wt))})}};Tt=new WeakMap,Ce=new WeakMap,ht=new WeakMap,Wt=new WeakMap,Ot=new WeakMap,Ut=new WeakMap,ao=new WeakMap,Ao=new WeakMap,co=new WeakMap,xe(Ue,"chain",new Va);let Dt=Ue;const Ge=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},Qo="data-rs-no-transition",qa=()=>{document.documentElement.setAttribute(Qo,"true")},Ha=()=>{document.documentElement.removeAttribute(Qo)},Wa=()=>!document.documentElement.hasAttribute(Qo),Nn=600,Oa=150,kn={left:0,top:0,position:"absolute",visibility:"hidden",animation:"none",transition:"none",zIndex:"var(--rs-z-index-absolute)"},zn=a.createContext({}),Sn=a.createContext(null),En=a.createContext(null),Lt=()=>a.useContext(zn),Ua=()=>a.useContext(Sn),Ya=()=>a.useContext(En),Ka=zn.Provider,Ga=Sn.Provider,Xa=En.Provider,Oe=8,Qa=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,$n=(e,t)=>Math.floor(e/2-t/2),Za=e=>{var B,R;const{triggerBounds:t,flyoutBounds:o,containerBounds:r,position:n,rtl:i,width:l,contentGap:c=0,contentShift:d=0,passedContainer:u,fallbackAdjustLayout:m,fallbackMinHeight:_}=e,g=l==="full"||l==="100%";let h=0,v=0,f=null,p=null,y,x,w=n;i&&(w=Qa(w)),(g||x==="trigger")&&(w=w.includes("top")?"top":"bottom");const C=!!w.match(/^(start|end)/),z=o.width+(C?c:0),I=o.height+(C?0:c),S=t.width,k=t.height,$=u==null?void 0:u.scrollLeft,E=u==null?void 0:u.scrollTop,M=$!=null?$:window.scrollX,T=E!=null?E:window.scrollY,L=(B=u==null?void 0:u.clientHeight)!=null?B:window.innerHeight,A=(R=u==null?void 0:u.clientWidth)!=null?R:window.innerWidth,F=u?r.bottom:window.innerHeight-T,D=t.left-r.left+($||0),V=r.right-t.right-($||0),W=t.top-r.top+(E||0),K=F-t.bottom-(E||0);switch(w){case"start":case"start-top":case"start-bottom":h=D-z,p=V+S;break;case"end":case"end-top":case"end-bottom":h=D+S;break;case"bottom":case"top":h=D+$n(S,z)+d;break;case"top-start":case"bottom-start":h=D+d;break;case"top-end":case"bottom-end":h=D+S-z+d,p=V-d;break}switch(w){case"top":case"top-start":case"top-end":v=W-I,f=K+k;break;case"bottom":case"bottom-start":case"bottom-end":v=W+k;break;case"start":case"end":v=W+$n(k,I)+d;break;case"start-top":case"end-top":v=W+d;break;case"start-bottom":case"end-bottom":v=W+k-I+d,f=K-d;break}if(m){const U=()=>({top:-v+T+Oe,bottom:v+I+Oe-T-L,left:-h+M+Oe,right:h+z+Oe-M-A}),Y=U();C?Y.top>0?(v=Oe+T,f!==null&&(f=f-Y.top)):Y.bottom>0&&(v=v-Y.bottom):Y.left>0?(h=Oe+M,p!==null&&(p=p-Y.left)):Y.right>0&&(h=h-Y.right);const X=U();X.top>0?(y=Math.max(_?parseInt(_):0,I-X.top),v=v+(I-y)):X.bottom>0&&(y=Math.max(_?parseInt(_):0,I-X.bottom),f!==null&&(f=f+(I-y)))}g?(h=Oe,x=window.innerWidth-Oe*2):l==="trigger"&&(x=t.width);const G=p!==null?-p:h,oe=f!==null?-f:v;return{position:w,styles:{left:p===null?"0px":null,right:p===null?null:"0px",top:f===null?"0px":null,bottom:f===null?null:"0px",transform:`translate(${G}px, ${oe}px)`,height:y!==void 0?`${y}px`:null,width:x!==void 0?`${x}px`:l!=null?l:null},boundaries:{left:h,top:v,height:y!=null?y:Math.ceil(I),width:x!=null?x:Math.ceil(z)}}},Tn={top:["top-start","top-end","top"],bottom:["bottom-start","bottom-end","bottom"],start:["start-top","start-bottom","start"],end:["end-top","end-bottom","end"]},Ja={top:["bottom","start","end"],bottom:["top","end","start"],start:["end","top","bottom"],end:["start","bottom","top"]},Ra=(e,t)=>{const o=new Set([e]),r=e.split("-"),[n]=r,i=Tn[n],l=i.indexOf(e),c=[l];return i.forEach((d,u)=>{u!==l&&c.push(u)}),[n,...Ja[n]].forEach(d=>{const u=Tn[d];c.forEach(m=>{const _=u[m];(t==null?void 0:t.indexOf(_))!==-1&&o.add(_)})}),Array.from(o)},ec=e=>{const{flyoutBounds:t,visualContainerBounds:o,renderContainerBounds:r}=e;return!(r.left+t.left<o.left+Oe||r.top+t.top<o.top+Oe||r.left+t.left+t.width>o.left+o.width-Oe||r.top+t.top+t.height>o.top+o.height-Oe)},tc=e=>{var T;const{triggerEl:t,flyoutEl:o,triggerBounds:r,contentShift:n=0,contentGap:i=0,position:l,fallbackPositions:c,fallbackAdjustLayout:d,fallbackMinHeight:u,width:m,container:_,lastUsedPosition:g,onPositionChoose:h,rtl:v}=e,f=o.cloneNode(!0),p=getComputedStyle(o).getPropertyValue("--rs-unit-x1"),y=p?parseInt(p):4,x=r||(t==null?void 0:t.getBoundingClientRect());if(!x)return;const w=Sa(x);f.style.cssText="",Object.keys(kn).forEach(L=>{const A=kn[L];A&&(f.style[L]=A.toString())}),m==="trigger"?f.style.width=`${w.width}px`:m&&m!=="full"&&(f.style.width=m),(t&&jt(t)||document.body).appendChild(f);const z=!_&&t?Ko({el:t}):void 0,S=(_||z||document.body).getBoundingClientRect(),k=(L,A)=>{const F=(A==null?void 0:A.width)||m;F==="full"?f.style.width=`calc(100% - ${Oe*2}px)`:F==="trigger"?f.style.width=`${w.width}px`:f.style.width="";const D=f.getBoundingClientRect(),V={width:D.width,height:D.height};return Za({triggerBounds:w,flyoutBounds:V,containerBounds:S,position:L,contentGap:i*y,contentShift:n*y,rtl:v,width:F,passedContainer:_||(z!==document.body?z:void 0),fallbackAdjustLayout:d,fallbackMinHeight:u})},$=L=>{var F;const A=(F=_==null?void 0:_.getBoundingClientRect())!=null?F:{width:window.innerWidth,height:window.innerHeight,left:window.scrollX,top:window.scrollY};return ec({flyoutBounds:L.boundaries,visualContainerBounds:A,renderContainerBounds:S})};let E=null;const M=Ra(l,c);return M.some(L=>{const A=k(L),F=$(A);return F&&(E=A),F}),E||["top","bottom"].filter(A=>M.includes(A)).some(A=>{const F=k(A,{width:"full"}),D=$(F);return D&&(E=F),D}),E||(E=k(g)),h(E.position),(T=f.parentNode)==null||T.removeChild(f),Object.entries(E.styles).forEach(([L,A])=>{o.style.setProperty(L,A)}),{position:E.position}},oc=(e,t)=>{switch(t.type){case"render":return N(b({},e),{status:"rendered"});case"position":return N(b({},e),{status:t.payload.sync?e.status:"positioned",position:t.payload.position});case"show":return e.status!=="positioned"?e:N(b({},e),{status:"visible"});case"hide":return N(b({},e),{status:"hidden"});case"remove":return N(b({},e),{status:"idle"});default:throw new Error("[Reshaped] Invalid flyout reducer type")}},rc=e=>{const $=e,{triggerElRef:t,flyoutElRef:o,triggerBoundsRef:r,contentGap:n,contentShift:i}=$,l=ve($,["triggerElRef","flyoutElRef","triggerBoundsRef","contentGap","contentShift"]),{position:c="bottom",fallbackPositions:d,fallbackAdjustLayout:u,fallbackMinWidth:m,fallbackMinHeight:_,width:g,container:h}=l,v=a.useRef(c),f=a.useMemo(()=>d,[d==null?void 0:d.join(" ")]),[p]=at(),[y,x]=a.useReducer(oc,{position:c,status:"idle"}),w=a.useCallback(()=>{x({type:"render"})},[]),C=a.useCallback(()=>{x({type:"show"})},[]),z=a.useCallback(()=>{x({type:"hide"})},[]),I=a.useCallback(()=>{x({type:"remove"})},[]),S=a.useCallback(E=>{v.current=E},[]),k=a.useCallback(E=>{if(!o.current)return;const M=(E==null?void 0:E.fallback)!==!1,T=tc({triggerEl:t.current,flyoutEl:o.current,triggerBounds:r.current,width:g,position:M?c:v.current,fallbackPositions:M?f:[],fallbackAdjustLayout:u,fallbackMinHeight:_,lastUsedPosition:v.current,onPositionChoose:S,rtl:p,container:h,contentGap:n,contentShift:i});T&&x({type:"position",payload:N(b({},T),{sync:E==null?void 0:E.sync})})},[h,c,f,u,p,o,t,r,g,n,i,S,m,_]);return a.useEffect(()=>{y.status==="rendered"&&k()},[y.status,k]),a.useMemo(()=>({position:y.position,status:y.status,updatePosition:k,render:w,hide:z,remove:I,show:C}),[w,k,z,I,C,y.position,y.status])};class nc{constructor(){xe(this,"status","cold");xe(this,"timer");xe(this,"warm",()=>{if(clearTimeout(this.timer),this.status==="cooling"){this.status="warm";return}this.status="warming",this.timer=setTimeout(()=>{this.status="warm",this.timer=void 0},100)});xe(this,"cool",()=>{if(clearTimeout(this.timer),this.status==="warming"){this.status="cold";return}this.status="cooling",this.timer=setTimeout(()=>{this.status="cold",this.timer=void 0},500)})}}const Nt=new nc,Zo=e=>{var El;const{triggerType:t="click",groupTimeouts:o,onOpen:r,onClose:n,children:i,disabled:l,forcePosition:c,fallbackAdjustLayout:d,fallbackMinWidth:u,fallbackMinHeight:m,trapFocusMode:_="dialog",width:g,disableHideAnimation:h,disableContentHover:v,disableCloseOnOutsideClick:f,autoFocus:p=!0,originCoordinates:y,contentGap:x=2,contentShift:w,contentMaxHeight:C,contentMaxWidth:z,contentClassName:I,contentAttributes:S,position:k,active:$,id:E,instanceRef:M,containerRef:T,initialFocusRef:L,positionRef:A}=e,F=e.fallbackPositions===!1||c?[]:e.fallbackPositions,D=Se(r),V=Se(n),W=l===!0?!1:$,K=Lt(),{elRef:G}=Ua()||{},{elRef:oe}=Ya()||{},B=K.trapFocusMode==="action-menu"||K.trapFocusMode==="content-menu",[R]=at(),U=a.useRef(null),Y=!!(G!=null&&G.current)&&((El=oe==null?void 0:oe.current)==null?void 0:El.contains(G.current)),ee=(!oe||Y)&&G||U,ge=a.useRef(null),Z=a.useRef(null),q=We(E),Q=a.useRef(null),J=a.useRef(null),ue=a.useRef(!1),Ee=a.useRef(!1),ne=a.useRef(!1),ie=a.useRef(!0),le=a.useRef(!1),_e=a.useRef(y!=null?y:null);_e.current=y!=null?y:null;const pe=rc({triggerElRef:A!=null?A:ee,flyoutElRef:Z,triggerBoundsRef:y?_e:ge,width:g,position:k,defaultActive:W,container:T==null?void 0:T.current,fallbackPositions:F,fallbackAdjustLayout:d,fallbackMinWidth:u,fallbackMinHeight:m,contentGap:x,contentShift:w}),{status:we,updatePosition:$e,render:Le,hide:me,remove:fe,show:Xe}=pe,ye=we!=="idle",Pe=hn({active:ye&&t!=="hover",contentRef:Z,triggerRef:ee}),He=a.useCallback(()=>{Q.current&&clearTimeout(Q.current)},[]),Ne=a.useCallback(()=>{var te;ue.current||ye&&t!=="hover"||(te=D.current)==null||te.call(D)},[D,ye,t]),Te=a.useCallback(te=>{var $l,Tl;!(t==="click"&&!Pe())&&(ye||l)&&(($l=V.current)==null||$l.call(V,{reason:te.reason}),te!=null&&te.closeParents&&((Tl=K==null?void 0:K.handleClose)==null||Tl.call(K,{closeParents:!0,reason:te.reason})))},[ye,Pe,t,V,l,K]),Yt=a.useCallback(te=>{var ft;!po()||(ft=Z.current)!=null&&ft.contains(te.relatedTarget)||ne.current||Te({})},[Te]),Fo=a.useCallback(()=>{t==="hover"&&!po()||Ne()},[Ne,t]),Vo=a.useCallback(()=>{t==="hover"&&(le.current=!0)},[t]),sd=a.useCallback(()=>{He(),le.current?(Ne(),le.current=!1):(o&&Nt.warm(),Q.current=setTimeout(()=>{Ne()},o&&Nt.status==="warming"||B?Nn:0))},[He,Ne,o,B]),id=a.useCallback(te=>{var st,ft;te.relatedTarget===Z.current||te.relatedTarget instanceof Node&&((st=Z.current)!=null&&st.contains(te.relatedTarget))||te.relatedTarget===ee.current||te.relatedTarget instanceof Node&&((ft=ee.current)!=null&&ft.contains(te.relatedTarget))||(Nt.cool(),He(),B?Q.current=setTimeout(()=>{Te({})},Oa):Te({}))},[He,Te,ee,Z,B]),ld=a.useCallback(()=>{ye?Te({}):Ne()},[ye,Ne,Te]),ad=a.useCallback(()=>{var ft;const te=(ft=A==null?void 0:A.current)!=null?ft:ee.current,st=te==null?void 0:te.getBoundingClientRect();st&&(ge.current=st)},[ee,A]),cd=()=>{ne.current=!0,le.current=!0},dd=()=>{ne.current=!1},ud=a.useCallback(te=>{W&&(Z.current!==te.currentTarget||te.propertyName!=="transform"||(Ee.current=!0,ge.current=null))},[W]),_d=a.useCallback(te=>{Z.current!==te.currentTarget||te.propertyName!=="transform"||we==="hidden"&&(Ee.current=!1,fe())},[fe,we]);return be(()=>{if(W){Le();return}l&&Nt.cool(),Wa()&&!h&&Ee.current&&(Nt.status==="cooling"||!o)?me():fe()},[W,Le,me,fe,h,l,o]),a.useEffect(()=>{we==="positioned"&&Ge(()=>Xe())},[we,Xe]),be(()=>{var st;if(we!=="visible"||!Z.current||(st=J.current)!=null&&st.trapped||_===!1)return;const te=p?L==null?void 0:L.current:Z.current.querySelector("[role][tabindex='-1']");J.current=new Dt,J.current.trap(Z.current,{mode:_,initialFocusEl:te,includeTrigger:t==="hover"&&_!=="dialog"&&!B,onRelease:()=>{Te({})}})},[we,t,_,p]),a.useEffect(()=>{var te;!h&&we!=="hidden"||h&&ye||(te=J.current)!=null&&te.trapped&&(t==="hover"&&(ue.current=!0,setTimeout(()=>{ue.current=!1},100)),J.current.release({withoutFocusReturn:!ie.current}),ie.current=!0)},[we,ye,t,h]),a.useEffect(()=>()=>{var te;return(te=J.current)==null?void 0:te.release()},[]),a.useEffect(()=>{if(!ye)return;const te=new ResizeObserver(()=>$e({sync:!0}));return te.observe(document.body),ee.current&&te.observe(ee.current),Z.current&&te.observe(Z.current),()=>te.disconnect()},[$e,ee,ye,Z]),a.useEffect(()=>{$e({sync:!0})},[R,$e]),a.useImperativeHandle(M,()=>({open:Ne,close:()=>Te({}),updatePosition:()=>$e({sync:!0})}),[Ne,Te,$e]),Ke({Escape:()=>Te({reason:"escape-key"})},[Te]),vn([Z,ee],()=>{ie.current=!1,Te({reason:"outside-click"})},{disabled:!ye||f}),s.jsx(Ka,{value:{id:q,flyout:pe,width:g,triggerElRef:ee,flyoutElRef:Z,handleClose:Te,handleOpen:Ne,handleFocus:Fo,handleBlur:Yt,handleMouseEnter:sd,handleMouseLeave:id,handleTouchStart:Vo,handleTransitionStart:ud,handleTransitionEnd:_d,handleMouseDown:ad,handleClick:ld,handleContentMouseDown:cd,handleContentMouseUp:dd,triggerType:t,trapFocusMode:_,contentClassName:I,contentAttributes:S,contentGap:x,contentMaxHeight:C,contentMaxWidth:z,containerRef:T,disableContentHover:v,autoFocus:p,isSubmenu:B},children:i})};Zo.displayName="FlyoutControlled";const Mn=e=>{const{defaultActive:t,onClose:o,onOpen:r}=e,[n,i]=a.useState(t||!1),l=d=>{i(!1),o==null||o(d)},c=()=>{i(!0),r==null||r()};return s.jsx(Zo,N(b({},e),{defaultActive:void 0,active:n,onClose:l,onOpen:c}))};Mn.displayName="FlyoutUncontrolled";const In=e=>{const{active:t}=e;return typeof t=="boolean"?s.jsx(Zo,b({},e)):s.jsx(Mn,b({},e))};In.displayName="Flyout";const jn=a.createContext({}),Jo=a.createContext({}),sc={root:"_root_153o0_1"},vo=e=>e?e.hasAttribute("data-rs-root")||e===document.documentElement||!e.parentElement?e:vo(e.parentElement):document.documentElement,Ro=()=>a.useContext(Jo),Dn=()=>{const{colorMode:e,theme:t,setTheme:o,rootTheme:r,setRootTheme:n}=a.useContext(jn),{mode:i,setMode:l,invertMode:c}=a.useContext(Jo);return a.useMemo(()=>({theme:t,setTheme:o,rootTheme:r,setRootTheme:n,colorMode:e||i,setColorMode:l,invertColorMode:c}),[e,i,l,c,t,o,n,r])},Ln=e=>typeof e=="string"?e:` ${e.join(" ")} `,Pt=e=>s.jsx(Pn,b({},e)),Pn=e=>{const{name:t,defaultName:o,colorMode:r,scoped:n,scopeRef:i,children:l,className:c}=e,[d,u]=a.useState(!1),[m,_]=a.useState(o),g=Ro(),h=Dn(),v=!h.theme,f=t||m||h.theme,p=v||n?f:h.rootTheme,y=v||n?g.mode:h.colorMode,w=r==="inverted"?y==="light"?"dark":"light":r||y,C=P(sc.root,c),z=a.useCallback(k=>{v?_(k):h.setRootTheme(k)},[v,h]),I=a.useCallback(k=>{_(k)},[]);be(()=>{u(!0)},[]),be(()=>{if(!document||!v)return;const k=vo(i==null?void 0:i.current),$=k.getAttribute("data-rs-color-mode"),E=Ln(f);return E&&k.setAttribute("data-rs-theme",E),$||k.setAttribute("data-rs-color-mode",w),()=>{k.removeAttribute("data-rs-theme"),$||k.removeAttribute("data-rs-color-mode")}},[f,w,v,i]);const S=a.useMemo(()=>({theme:f,rootTheme:p,colorMode:w,setTheme:I,setRootTheme:z}),[f,w,I,z,p]);return s.jsx(jn.Provider,{value:S,children:s.jsx("div",{className:C,ref:i,"data-rs-root":n?!0:void 0,"data-rs-theme":v?void 0:Ln(f),"data-rs-color-mode":v||!r&&!d?void 0:w,children:l})})};Pt.displayName="Theme";const An=e=>{const{defaultMode:t,mode:o,scopeRef:r,children:n}=e,[i,l]=a.useState(t),c=Ro(),d=a.useCallback(m=>{vo(r==null?void 0:r.current).setAttribute("data-rs-color-mode",m),c.mode&&!r&&c.setMode(m),l(m)},[r,c]);be(()=>{qa(),Ge(()=>{Ha()})},[i,o]),be(()=>{const m=vo(r==null?void 0:r.current).getAttribute("data-rs-color-mode");m&&d(m)},[d,r]);const u=a.useMemo(()=>({mode:o||i,setMode:d,invertMode:()=>{d(i==="light"?"dark":"light")}}),[i,o,d]);return s.jsx(Jo.Provider,{value:u,children:n})};An.displayName="GlobalColorMode";const kt=e=>{const[t,o]=a.useState(e||!1),r=a.useCallback(()=>{o(!0)},[]),n=a.useCallback(()=>{o(!1)},[]),i=a.useCallback(l=>{o(typeof l=="boolean"?l:c=>!c)},[]);return a.useMemo(()=>({active:t,activate:r,deactivate:n,toggle:i}),[r,n,i,t])},ic={root:"_root_hqrz2_1"},Fn=a.createContext({}),lc=()=>a.useContext(Fn),Vn=e=>{var _;const{children:t,targetRef:o}=e,r=kt(),n=a.useRef(null),i=(_=n.current)==null?void 0:_.getRootNode(),c=i instanceof ShadowRoot?i:document.body,d=lc(),u=o||d.scopeRef,m=(u==null?void 0:u.current)||c;return be(()=>(r.activate(),()=>r.deactivate()),[]),[Ae.createPortal(s.jsx(Pt,{children:t}),m),!r.active&&s.jsx("div",{ref:n,className:ic.root},"root")]};function Bn(e){const{children:t}=e,o=a.useRef(null);return s.jsx(Fn.Provider,{value:{scopeRef:o},children:t(o)})}Vn.displayName="Portal",Bn.displayName="PortalScope";const yo=Vn;yo.Scope=Bn;const er=(e,t)=>e>t?[]:Array.from({length:t-e+1},(o,r)=>e+r),tr=e=>{let t=null,o=null;return function(...r){o=r,t===null&&(t=requestAnimationFrame(()=>{t=null,e(...o)}))}},gt={content:"_content_1tsb0_1","--hover":"_--hover_1tsb0_18","--hover-disabled":"_--hover-disabled_1tsb0_22",inner:"_inner_1tsb0_23","--width-trigger":"_--width-trigger_1tsb0_51","--position-top":"_--position-top_1tsb0_55","--position-top-end":"_--position-top-end_1tsb0_56","--position-top-start":"_--position-top-start_1tsb0_57","--position-bottom":"_--position-bottom_1tsb0_63","--position-bottom-end":"_--position-bottom-end_1tsb0_64","--position-bottom-start":"_--position-bottom-start_1tsb0_65","--position-start":"_--position-start_1tsb0_81","--position-start-top":"_--position-start-top_1tsb0_82","--position-start-bottom":"_--position-start-bottom_1tsb0_83","--position-end":"_--position-end_1tsb0_89","--position-end-top":"_--position-end-top_1tsb0_90","--position-end-bottom":"_--position-end-bottom_1tsb0_91","--visible":"_--visible_1tsb0_107","--animated":"_--animated_1tsb0_112"},qn=e=>{const{children:t,className:o,attributes:r}=e,{flyout:n,id:i,flyoutElRef:l,triggerElRef:c,handleClose:d,handleTransitionEnd:u,handleTransitionStart:m,triggerType:_,handleMouseEnter:g,handleMouseLeave:h,handleContentMouseDown:v,handleContentMouseUp:f,contentClassName:p,contentAttributes:y,contentGap:x,contentMaxHeight:w,contentMaxWidth:C,trapFocusMode:z,disableContentHover:I,autoFocus:S,width:k,containerRef:$,isSubmenu:E}=Lt(),{status:M,position:T}=n,[L,A]=a.useState(!1),F=a.useMemo(()=>!L||!c?null:Ko({el:c.current}),[L,c]),D=a.useMemo(()=>{if(L&&c!=null&&c.current)return Go({el:c.current})},[L,c]),V=$||{current:F};if(be(()=>{A(!0)},[]),a.useEffect(()=>{const B=l.current;if(B)return B.addEventListener("transitionstart",m),()=>B.removeEventListener("transitionstart",m)},[m,l,M]),a.useEffect(()=>{if(M!=="visible"||!D)return;const B=c==null?void 0:c.current,R=D,U=tr(()=>{const Y=B==null?void 0:B.getBoundingClientRect(),X=R.getBoundingClientRect();Y&&(Y.top<X.top||Y.left<X.left||Y.right>X.right||Y.bottom>X.bottom)?d({}):n.updatePosition({sync:!0,fallback:!1})});return D.addEventListener("scroll",U,{passive:!0}),()=>D.removeEventListener("scroll",U)},[D,n,M,d,c]),M==="idle"||!L)return null;const W=P(gt.content,_==="hover"&>["--hover"],M==="visible"&>["--visible"],(Nt.status==="cooling"||!Nt.timer||E||_!=="hover")&>["--animated"],T&>[`--position-${T}`],k==="trigger"&>["--width-trigger"],_==="hover"&&I&>["--hover-disabled"]),K=P(gt.inner,o,p);let G=r==null?void 0:r.role;_==="hover"?G="tooltip":z==="dialog"?G="dialog":z==="selection-menu"?G="listbox":z==="action-menu"?G="menu":z==="action-bar"&&(G="menubar");const oe=s.jsx(Xa,{value:{elRef:l},children:s.jsx("div",{className:W,style:{"--rs-flyout-gap":x,"--rs-flyout-max-h":w,"--rs-flyout-max-w":C},ref:l,onTransitionEnd:u,onMouseEnter:_==="hover"?g:void 0,onMouseLeave:_==="hover"?h:void 0,onMouseDown:v,onTouchStart:v,onMouseUp:f,onTouchEnd:f,children:s.jsx("div",N(b({role:G},r),{id:i,tabIndex:S?void 0:-1,"aria-modal":G==="dialog"?!0:void 0,style:b(b({},r==null?void 0:r.style),y==null?void 0:y.style),className:K,children:t}))})});return s.jsx(yo,{targetRef:V,children:oe})};qn.displayName="Flyout.Content";const Hn=e=>{const{children:t}=e,{id:o,triggerElRef:r,triggerType:n,flyout:i,handleFocus:l,handleBlur:c,handleMouseEnter:d,handleMouseLeave:u,handleMouseDown:m,handleTouchStart:_,handleClick:g,trapFocusMode:h,isSubmenu:v}=Lt(),f=i.status!=="idle",p={ref:r};return(n==="click"||h==="action-menu")&&(p.onClick=g,p.onMouseDown=m),n==="hover"&&(p.onMouseEnter=d,p.onMouseLeave=u,p.onTouchStart=_),(n==="hover"&&!v||n==="focus")&&(p.onFocus=l,p.onBlur=c,p["aria-describedby"]=f?o:void 0),(n==="click"||n==="focus"||h==="action-menu")&&(h==="dialog"?p["aria-haspopup"]="dialog":h==="selection-menu"?(p["aria-haspopup"]="listbox",p["aria-autocomplete"]="list"):p["aria-haspopup"]="menu",p["aria-expanded"]=f,p["aria-controls"]=f?o:void 0),s.jsx(Ga,{value:{elRef:r},children:t(p)})};Hn.displayName="Flyout.Trigger";const ct=In;ct.Trigger=Hn,ct.Content=qn;const zt={root:"_root_5umpz_2",touch:"_touch_5umpz_21","--inset":"_--inset_5umpz_44","--disabled-focus-ring":"_--disabled-focus-ring_5umpz_48","--radius-inherit":"_--radius-inherit_5umpz_52","--disabled":"_--disabled_5umpz_48","--full-width":"_--full-width_5umpz_82"},Ie=a.forwardRef((e,t)=>{const{children:o,render:r,href:n,onClick:i,type:l,disabled:c,insetFocus:d,disableFocusRing:u,borderRadius:m,as:_,stopPropagation:g,fullWidth:h,touchHitbox:v,className:f,attributes:p}=e,y=P(zt.root,f,c&&zt["--disabled"],m&&zt[`--radius-${m}`],d&&zt["--inset"],u&&zt["--disabled-focus-ring"],h&&zt["--full-width"]),x=b({},p),w=i||(p==null?void 0:p.onClick),C=(p==null?void 0:p.onFocus)||(p==null?void 0:p.onBlur),z=!!(n||p!=null&&p.href),I=!!(w||C||l||p!=null&&p.ref),S=!z&&I&&(!_||_==="button");let k;if(z)k="a",x.href=c?void 0:n||(p==null?void 0:p.href);else if(S)k="button",x.type=l||(p==null?void 0:p.type)||"button",x.disabled=c||(p==null?void 0:p.disabled);else if(I){const A=!(_==="label")||w||C;k=_||"span",x.role=A?"button":void 0,x.tabIndex=A?0:void 0}else k=_||"span";const $=L=>{var A;c||(g&&L.stopPropagation(),i==null||i(L),(A=p==null?void 0:p.onClick)==null||A.call(p,L))},E=L=>{const A=L.key===Pa,F=L.key===Cn;!A&&!F||x.role==="button"&&(g&&L.stopPropagation(),L.preventDefault(),$(L))},M=s.jsxs(s.Fragment,{children:[v&&(z||I)&&!c&&s.jsx("span",{className:zt.touch}),o]}),T=N(b({ref:t},x),{className:y,onClick:$,onKeyDown:E,"aria-disabled":c?!0:void 0,children:M});return r?r(T):s.jsx(k,b({},T))});Ie.displayName="Actionable";const xo={root:"_root_1f1sc_15","rs-reshaped-loader":"_rs-reshaped-loader_1f1sc_1",inner:"_inner_1f1sc_44","--color-inherit":"_--color-inherit_1f1sc_63","--color-primary":"_--color-primary_1f1sc_67","--color-positive":"_--color-positive_1f1sc_71","--color-critical":"_--color-critical_1f1sc_75","--size-small":"_--size-small_1f1sc_1","--size-medium":"_--size-medium_1f1sc_1","--size-large":"_--size-large_1f1sc_1","--size-small--m":"_--size-small--m_1f1sc_1","--size-medium--m":"_--size-medium--m_1f1sc_1","--size-large--m":"_--size-large--m_1f1sc_1","--size-small--l":"_--size-small--l_1f1sc_1","--size-medium--l":"_--size-medium--l_1f1sc_1","--size-large--l":"_--size-large--l_1f1sc_1","--size-small--xl":"_--size-small--xl_1f1sc_1","--size-medium--xl":"_--size-medium--xl_1f1sc_1","--size-large--xl":"_--size-large--xl_1f1sc_1"},or=e=>{const{size:t="small",color:o="primary",className:r,attributes:n}=e,i=e.ariaLabel||(n==null?void 0:n["aria-label"]),l=P(xo.root,r,ae(xo,"--size",t),o&&xo[`--color-${o}`]);return s.jsx("span",N(b({},n),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:l,children:s.jsx("span",{className:xo.inner})}))};or.displayName="Loader";const je={root:"_root_lcajc_5","--loading":"_--loading_lcajc_59","--highlighted":"_--highlighted_lcajc_59","--disabled":"_--disabled_lcajc_59",text:"_text_lcajc_72",icon:"_icon_lcajc_78","--icon-position-end":"_--icon-position-end_lcajc_87",loader:"_loader_lcajc_99","--icon-only":"_--icon-only_lcajc_107","--rounded":"_--rounded_lcajc_125","--size-small":"_--size-small_lcajc_1","--size-medium":"_--size-medium_lcajc_1","--size-large":"_--size-large_lcajc_1","--size-xlarge":"_--size-xlarge_lcajc_1","--full-width":"_--full-width_lcajc_174","--variant-solid":"_--variant-solid_lcajc_186","--color-neutral":"_--color-neutral_lcajc_187","--color-primary":"_--color-primary_lcajc_296","--color-critical":"_--color-critical_lcajc_297","--color-positive":"_--color-positive_lcajc_298","--color-media":"_--color-media_lcajc_201","--variant-faded":"_--variant-faded_lcajc_208","--color-inherit":"_--color-inherit_lcajc_224","--variant-outline":"_--variant-outline_lcajc_232","--variant-ghost":"_--variant-ghost_lcajc_268","--elevated":"_--elevated_lcajc_288",group:"_group_lcajc_349",aligner:"_aligner_lcajc_445","--size-small--m":"_--size-small--m_lcajc_1","--size-medium--m":"_--size-medium--m_lcajc_1","--size-large--m":"_--size-large--m_lcajc_1","--size-xlarge--m":"_--size-xlarge--m_lcajc_1","--full-width-true--m":"_--full-width-true--m_lcajc_1","--full-width-false--m":"_--full-width-false--m_lcajc_1","--size-small--l":"_--size-small--l_lcajc_1","--size-medium--l":"_--size-medium--l_lcajc_1","--size-large--l":"_--size-large--l_lcajc_1","--size-xlarge--l":"_--size-xlarge--l_lcajc_1","--full-width-true--l":"_--full-width-true--l_lcajc_1","--full-width-false--l":"_--full-width-false--l_lcajc_1","--size-small--xl":"_--size-small--xl_lcajc_1","--size-medium--xl":"_--size-medium--xl_lcajc_1","--size-large--xl":"_--size-large--xl_lcajc_1","--size-xlarge--xl":"_--size-xlarge--xl_lcajc_1","--full-width-true--xl":"_--full-width-true--xl_lcajc_1","--full-width-false--xl":"_--full-width-false--xl_lcajc_1"},Wn=a.forwardRef((e,t)=>{const{variant:o="solid",color:r="neutral",elevated:n,highlighted:i,fullWidth:l,loading:c,loadingAriaLabel:d,disabled:u,type:m,href:_,size:g="medium",children:h,rounded:v,onClick:f,icon:p,endIcon:y,stopPropagation:x,as:w,render:C,className:z,attributes:I}=e,S=(p||y)&&!h,k=P(je.root,z,r&&je[`--color-${r}`],o&&je[`--variant-${o}`],ae(je,"--size",g),ae(je,"--full-width",l),n&&o!=="ghost"&&je["--elevated"],v&&je["--rounded"],u&&je["--disabled"],c&&je["--loading"],i&&je["--highlighted"],S&&je["--icon-only"]),$=E=>{if(!(E==="start"&&p||E==="end"&&y))return null;const A=P(je.icon,E==="end"&&je["--icon-position-end"]),F=ce(g,D=>D==="large"?5:D==="xlarge"?6:4);return s.jsx(he,{className:A,svg:E==="start"?p:y,size:F,autoWidth:!0})};return s.jsxs(Ie,{disabled:u||c,className:k,attributes:N(b({},I),{"data-rs-aligner-target":!0}),type:m,onClick:f,href:_,ref:t,as:w,stopPropagation:x,render:C,children:[c&&s.jsx("div",{className:je.loader,children:s.jsx(or,{color:"inherit",attributes:{"aria-label":d}})}),$("start"),h&&s.jsx("span",{className:je.text,children:h}),$("end")]})});Wn.displayName="Button";const On={root:"_root_1quhz_2","--side-all":"_--side-all_1quhz_7","--side-start":"_--side-start_1quhz_11","--side-inline":"_--side-inline_1quhz_12","--side-end":"_--side-end_1quhz_16","--side-top":"_--side-top_1quhz_21","--side-block":"_--side-block_1quhz_22","--side-bottom":"_--side-bottom_1quhz_26"},Jt=e=>{const{side:t="all",children:o,className:r,attributes:n}=e,i=typeof t=="string"?[t]:t,l=P(On.root,i.map(c=>On[`--side-${c}`]),r);return s.jsx("div",N(b({},n),{className:l,children:o}))};Jt.displayName="Aligner";const Un=e=>s.jsx(Jt,N(b({},e),{side:e.side||e.position,className:[je.aligner,e.className]}));Un.displayName="Button.Aligner";const Yn=e=>{const{children:t,className:o,attributes:r}=e,n=P(je.group,o);return s.jsx("div",N(b({},r),{className:n,role:"group",children:t}))};Yn.displayName="Button.Group";const Me=Wn;Me.Aligner=Un,Me.Group=Yn;const Kn=()=>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"})]}),Rt={root:"_root_1q0pg_1",close:"_close_1q0pg_9","--variant-media":"_--variant-media_1q0pg_16","--hide-close":"_--hide-close_1q0pg_17","--align-center":"_--align-center_1q0pg_26"},rr=e=>{const{children:t,align:o,onClose:r,hideCloseButton:n,variant:i,closeAriaLabel:l,className:c,attributes:d}=e,u=P(Rt.root,c,i&&Rt[`--variant-${i}`],o&&Rt[`--align-${o}`],n&&Rt["--hide-close"]),m=i==="media"?"div":Me.Aligner;return s.jsxs("div",N(b({},d),{className:u,children:[t,!n&&s.jsx(m,{className:Rt.close,children:s.jsx(Me,N(b({size:"small"},i==="media"?{color:"media",variant:"faded"}:{variant:"ghost"}),{onClick:()=>r==null?void 0:r(),attributes:{"aria-label":r?l:void 0},icon:Kn}))})]}))};rr.displayName="Dismissible";const eo={content:"_content_1jtpe_1","content--variant-elevated":"_content--variant-elevated_1jtpe_8","content--elevation-raised":"_content--elevation-raised_1jtpe_16","content--variant-headless":"_content--variant-headless_1jtpe_20","content--radius-small":"_content--radius-small_1jtpe_24","content--has-width":"_content--has-width_1jtpe_28"},Gn=e=>{var h,v;const g=e,{width:t,variant:o="elevated",triggerType:r="click",position:n="bottom",elevation:i,borderRadius:l}=g,c=ve(g,["width","variant","triggerType","position","elevation","borderRadius"]),d=(h=e.padding)!=null?h:o==="headless"?0:4,u=(v=e.trapFocusMode)!=null?v:r==="hover"?"content-menu":void 0,m=Qe({padding:d}),_=P(eo.content,!!t&&eo["content--has-width"],o&&eo[`content--variant-${o}`],i&&eo[`content--elevation-${i}`],l&&eo[`content--radius-${l}`],m.classNames);return s.jsx(ct,N(b({},c),{position:n,trapFocusMode:u,triggerType:r,width:t,contentClassName:_,contentAttributes:{style:b({},m.variables)}}))},Xn=e=>{const{handleClose:t}=Lt();return s.jsx(rr,N(b({},e),{onClose:()=>t({})}))};Gn.displayName="Popover",Xn.displayName="Popover.Dismissible";const dt=Gn;dt.Dismissible=Xn,dt.Trigger=ct.Trigger,dt.Content=ct.Content;const tt={root:"_root_44o4b_1",icon:"_icon_44o4b_22",content:"_content_44o4b_27","--rounded-corners":"_--rounded-corners_44o4b_32","--size-small":"_--size-small_44o4b_1","--size-medium":"_--size-medium_44o4b_1","--size-large":"_--size-large_44o4b_1","--color-neutral":"_--color-neutral_44o4b_74","--selected":"_--selected_44o4b_77","--highlighted":"_--highlighted_44o4b_79","--color-critical":"_--color-critical_44o4b_90","--color-primary":"_--color-primary_44o4b_106","--disabled":"_--disabled_44o4b_133",aligner:"_aligner_44o4b_154","--rounded-corners-true--m":"_--rounded-corners-true--m_44o4b_1","--rounded-corners-false--m":"_--rounded-corners-false--m_44o4b_1","--size-small--m":"_--size-small--m_44o4b_1","--size-medium--m":"_--size-medium--m_44o4b_1","--size-large--m":"_--size-large--m_44o4b_1","--rounded-corners-true--l":"_--rounded-corners-true--l_44o4b_1","--rounded-corners-false--l":"_--rounded-corners-false--l_44o4b_1","--size-small--l":"_--size-small--l_44o4b_1","--size-medium--l":"_--size-medium--l_44o4b_1","--size-large--l":"_--size-large--l_44o4b_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_44o4b_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_44o4b_1","--size-small--xl":"_--size-small--xl_44o4b_1","--size-medium--xl":"_--size-medium--xl_44o4b_1","--size-large--xl":"_--size-large--xl_44o4b_1"},Qn=a.forwardRef((e,t)=>{const{icon:o,startSlot:r,endSlot:n,children:i,color:l="primary",selected:c,highlighted:d,disabled:u,onClick:m,href:_,size:g="medium",roundedCorners:h,stopPropagation:v,as:f,render:p,className:y,attributes:x}=e,w=P(tt.root,y,ae(tt,"--size",g),ae(tt,"--rounded-corners",h),l&&tt[`--color-${l}`],c&&tt["--selected"],u&&tt["--disabled"],d&&tt["--highlighted"]),C=ce(g,I=>I==="large"?3:2),z=ce(g,I=>I==="large"?5:4);return s.jsx(Ie,{disabled:u,className:w,attributes:N(b({},x),{"data-rs-aligner-target":!0}),onClick:m,href:_,ref:t,as:f,stopPropagation:v,render:p,children:s.jsxs(H,{direction:"row",gap:C,align:"center",children:[o&&s.jsx(he,{svg:o,className:tt.icon,size:z}),!o&&r,i&&s.jsx(H.Item,{grow:!0,className:tt.content,children:i}),n]})})});Qn.displayName="MenuItem";const Zn=e=>s.jsx(Jt,N(b({},e),{side:e.side||"inline",className:[tt.aligner,e.className]}));Zn.displayName="MenuItem.Aligner";const nr=Qn;nr.Aligner=Zn;const At=()=>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"})}),wo={menu:"_menu_f04ws_1",section:"_section_f04ws_5",item:"_item_f04ws_11",arrow:"_arrow_f04ws_19"},sr=a.createContext(null),Jn=a.createContext(!1),ir=e=>{const c=e,{children:t,position:o="bottom-start",triggerType:r="click",trapFocusMode:n="action-menu",borderRadius:i="small"}=c,l=ve(c,["children","position","triggerType","trapFocusMode","borderRadius"]);return s.jsx(dt,N(b({},l),{position:o,padding:0,trapFocusMode:n,triggerType:r,borderRadius:i,disableHideAnimation:r!=="hover",children:t}))},Rn=e=>{const{children:t,attributes:o,className:r}=e,{flyout:n}=Lt(),i=a.useContext(sr),[l]=at(),{ref:c}=Ke({[l?wt:Ct]:()=>{var m;(m=i==null?void 0:i.current)==null||m.close()}},[i==null?void 0:i.current],{disabled:n.status==="idle",ref:o==null?void 0:o.ref}),d=P(wo.menu,r),u=m=>{var _;m.stopPropagation(),(_=o==null?void 0:o.onClick)==null||_.call(o,m)};return s.jsx(dt.Content,{className:d,attributes:N(b({},o),{ref:c,onClick:u}),children:t})},es=e=>{const{children:t}=e;return s.jsx("div",{className:wo.section,role:"group",children:t})},lr=e=>{const{onClick:t}=e,{handleClose:o}=Lt(),r=a.useContext(Jn),n=i=>{o&&!r&&o({closeParents:!0,reason:"item-selection"}),t&&t(i)};return s.jsx(nr,N(b({},e),{roundedCorners:!0,className:[wo.item,e.className],attributes:b({role:"menuitem"},e.attributes),onClick:n}))},ts=e=>{const l=e,{children:t,position:o="end-top",contentGap:r=.5}=l,n=ve(l,["children","position","contentGap"]),i=a.useRef(null);return s.jsx(sr.Provider,{value:i,children:s.jsx(ir,N(b({},n),{triggerType:"hover",position:o,contentGap:r,instanceRef:i,children:t}))})},ac=e=>{const c=e,{children:t,attributes:o}=c,r=ve(c,["children","attributes"]),n=a.useContext(sr),[i]=at(),{ref:l}=Ke({[i?Ct:wt]:()=>{var d;(d=n==null?void 0:n.current)==null||d.open()}},[],{ref:o==null?void 0:o.ref,preventDefault:!0});return s.jsx(lr,N(b({},r),{attributes:N(b({},o),{ref:l}),endSlot:s.jsx(he,{autoWidth:!0,svg:At,className:wo.arrow}),children:t}))},os=e=>{const r=e,{attributes:t}=r,o=ve(r,["attributes"]);return s.jsx(Jn.Provider,{value:!0,children:s.jsx(dt.Trigger,{children:n=>s.jsx(ac,N(b({},o),{attributes:b(b({},t),n)}))})})};ir.displayName="DropdownMenu",Rn.displayName="DropdownMenu.Content",es.displayName="DropdownMenu.Section",lr.displayName="DropdownMenu.Item",ts.displayName="DropdownMenu.SubMenu",os.displayName="DropdownMenu.SubTrigger";const ke=ir;ke.Dismissible=dt.Dismissible,ke.Trigger=dt.Trigger,ke.Content=Rn,ke.Section=es,ke.Item=lr,ke.SubMenu=ts,ke.SubTrigger=os;const rs=a.createContext({attributes:{}}),cc=rs.Provider,to=()=>a.useContext(rs),Ze=()=>{const{attributes:e,required:t,hasError:o,disabled:r}=to();return{attributes:e,required:t,hasError:o,disabled:r}},ar=(e,t)=>`${e}-${t||"caption"}`,ns=e=>{const{children:t,id:o,required:r,hasError:n,group:i,disabled:l,size:c}=e,d=We(o),u=i?"fieldset":"div",[m,_]=a.useState(!1),[g,h]=a.useState(!1),v=[m&&ar(d),g&&ar(d,"error")].filter(Boolean).join(" "),f={id:d,"aria-describedby":v},p=()=>{h(!0)},y=()=>{_(!0)};return s.jsx(u,{children:s.jsx(cc,{value:{required:r,hasError:n,errorRef:p,helperRef:y,attributes:f,group:i,disabled:l,size:c},children:t})})};ns.displayName="FormControl";const ss={label:"_label_1v514_5",caption:"_caption_1v514_14"},is=e=>{const{children:t,variant:o,disabled:r}=e,{attributes:n,size:i,helperRef:l,errorRef:c}=to(),d=ar(n.id,o),u=o==="error"?"critical":"neutral-faded",m=o==="error"?c:l;return s.jsx(se,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!o?"disabled":u,attributes:{id:d,role:"alert","aria-disabled":r,ref:m},className:ss.caption,children:t})},ls=e=>{const{children:t}=e,{hasError:o}=to();return o?s.jsx(is,{variant:"error",children:t}):null};ls.displayName="FormControl.Error";const as=e=>{const{children:t}=e,{disabled:o}=to();return s.jsx(is,{disabled:o,children:t})};as.displayName="FormControl.Helper";const cs=e=>{const{children:t}=e,{attributes:o,required:r,group:n,disabled:i,size:l}=to(),c=`${o.id}-label`,d=n?"legend":"label";return s.jsxs(se,{variant:l==="large"?"body-2":"body-3",weight:"medium",className:ss.label,color:i?"disabled":void 0,"aria-disabled":i,children:[s.jsx(d,{id:c,htmlFor:n?void 0:o.id,children:t}),r&&s.jsx(se,{color:i?"disabled":"critical",as:"span",children:"*"})]})};cs.displayName="FormControl.Label";const Co=ns;Co.Label=cs,Co.Helper=as,Co.Error=ls;const De={root:"_root_1rtvh_1",icon:"_icon_1rtvh_23","--focused":"_--focused_1rtvh_24","--multiline":"_--multiline_1rtvh_28",input:"_input_1rtvh_31","--rounded":"_--rounded_1rtvh_36",affix:"_affix_1rtvh_39",inner:"_inner_1rtvh_50",slot:"_slot_1rtvh_89","icon--position-end":"_icon--position-end_1rtvh_102","affix--position-end":"_affix--position-end_1rtvh_103","slot--position-end":"_slot--position-end_1rtvh_104","slot--position-start":"_slot--position-start_1rtvh_108","affix--position-start":"_affix--position-start_1rtvh_119","--disabled":"_--disabled_1rtvh_144","--size-small":"_--size-small_1rtvh_1","--size-medium":"_--size-medium_1rtvh_1","--size-large":"_--size-large_1rtvh_1","--size-xlarge":"_--size-xlarge_1rtvh_1","--variant-faded":"_--variant-faded_1rtvh_202","--variant-ghost":"_--variant-ghost_1rtvh_208","--variant-headless":"_--variant-headless_1rtvh_214","--status-error":"_--status-error_1rtvh_221","--size-small--m":"_--size-small--m_1rtvh_1","--size-medium--m":"_--size-medium--m_1rtvh_1","--size-large--m":"_--size-large--m_1rtvh_1","--size-xlarge--m":"_--size-xlarge--m_1rtvh_1","--size-small--l":"_--size-small--l_1rtvh_1","--size-medium--l":"_--size-medium--l_1rtvh_1","--size-large--l":"_--size-large--l_1rtvh_1","--size-xlarge--l":"_--size-xlarge--l_1rtvh_1","--size-small--xl":"_--size-small--xl_1rtvh_1","--size-medium--xl":"_--size-medium--xl_1rtvh_1","--size-large--xl":"_--size-large--xl_1rtvh_1","--size-xlarge--xl":"_--size-xlarge--xl_1rtvh_1"},ds=e=>{const{slot:t,icon:o,size:r,affix:n,position:i,id:l}=e;if(!o&&!t&&!n)return null;const c=a.isValidElement(t)&&t.type===a.Fragment?t.props.children:t,d=t&&a.Children.map(c,g=>s.jsx("div",{className:P(De.slot,De[`slot--position-${i}`]),children:g},"slot")),u=o&&s.jsx("label",{className:P(De.icon,De[`icon--position-${i}`]),htmlFor:l,children:s.jsx(he,{size:ce(r,g=>g==="large"?5:g==="xlarge"?6:4),svg:o,autoWidth:!0})},"icon"),m=n&&s.jsx("span",{className:P(De.affix,De[`affix--position-${i}`]),children:n},"affix");return(i==="start"?[u,d,m]:[u,m,d]).filter(Boolean)},us=e=>{var F;const{onChange:t,onFocus:o,onBlur:r,name:n,value:i,defaultValue:l,placeholder:c,icon:d,endIcon:u,startSlot:m,endSlot:_,startSlotPadding:g,endSlotPadding:h,prefix:v,suffix:f,size:p="medium",variant:y="outline",focused:x,multiline:w,rounded:C,className:z,attributes:I}=e,S=Ze(),k=We(e.id),$=(S==null?void 0:S.attributes.id)||((F=e.inputAttributes)==null?void 0:F.id)||k,E=(S==null?void 0:S.disabled)||e.disabled,M=(S==null?void 0:S.hasError)||e.hasError,T=b(b({},e.inputAttributes),S==null?void 0:S.attributes),L=P(De.root,z,p&&ae(De,"--size",p),M&&De["--status-error"],E&&De["--disabled"],x&&De["--focused"],w&&De["--multiline"],C&&De["--rounded"],y&&De[`--variant-${y}`]),A=D=>{t&&t({name:n,value:D.target.value,event:D})};return s.jsxs("div",N(b({},I),{style:N(b({},I==null?void 0:I.style),{"--rs-text-field-start-slot-padding":g!==void 0&&g>=0?`calc(var(--rs-unit-x1) * ${g})`:void 0,"--rs-text-field-end-slot-padding":h!==void 0&&h>=0?`calc(var(--rs-unit-x1) * ${h})`:void 0}),"data-rs-aligner-target":!0,className:L,children:[s.jsx(ds,{position:"start",icon:d,slot:m,size:p,affix:v,id:k}),s.jsxs("div",{className:De.inner,children:[s.jsx("input",N(b({type:"text",autoComplete:"off"},T),{className:P(De.input,T.className),disabled:E,name:n,placeholder:c,value:i,defaultValue:l,onChange:A,onFocus:o||(T==null?void 0:T.onFocus),onBlur:r||(T==null?void 0:T.onBlur),id:$})),s.jsx(ds,{position:"end",icon:u,slot:_,size:p,affix:f,id:k})]})]}))};us.displayName="TextField";const No=us;No.Aligner=Jt;const dc={"item--disabled":"_item--disabled_1vi4i_1"},_s=a.createContext({}),ms=e=>{var Z;const ge=e,{children:t,onChange:o,onInput:r,onItemSelect:n,name:i,containerRef:l,instanceRef:c,onBackspace:d,onEnter:u,active:m,onOpen:_,onClose:g,fallbackAdjustLayout:h,fallbackMinWidth:v,fallbackMinHeight:f,contentMaxHeight:p}=ge,y=ve(ge,["children","onChange","onInput","onItemSelect","name","containerRef","instanceRef","onBackspace","onEnter","active","onOpen","onClose","fallbackAdjustLayout","fallbackMinWidth","fallbackMinHeight","contentMaxHeight"]),[x,w]=a.useState(),C=Se(d),z=a.useRef(null),I=a.useRef(null),S=(Z=y.inputAttributes)==null?void 0:Z.ref,k=S&&typeof S!="string"&&"current"in S?S:I,[$,E]=a.useState(!1),M=!!a.Children.toArray(t).filter(Boolean).length,T=a.useRef(!1),L=Se(_),A=Se(g),F=Se(o),D=Se(n),V=Se(u),W=M&&(m!=null?m:$),K=a.useCallback(()=>{T.current=!0,setTimeout(()=>{T.current=!1},100)},[]),G=a.useCallback(()=>{var q;T.current||(E(!0),(q=L.current)==null||q.call(L))},[L]),oe=q=>{var Q;E(!1),(Q=A.current)==null||Q.call(A,q)},B=a.useCallback(q=>{var Q,J;(Q=F.current)==null||Q.call(F,{value:q.value,name:i}),(J=D.current)==null||J.call(D,q),K()},[K,F,D,i]),R=q=>{o==null||o(q),G()},U=q=>{var Q,J;r==null||r({value:q.currentTarget.value,name:i,event:q}),(J=(Q=y.inputAttributes)==null?void 0:Q.onInput)==null||J.call(Q,q)},Y=()=>{var q;K(),(q=k.current)==null||q.focus()},X=a.useCallback(()=>{const q=z.current;return q?Array.from(q.querySelectorAll("[role=option]:not([disabled])")):[]},[]);Ke({[Cn]:()=>{var J;const Q=X().find(ue=>ue.id===x);Q==null||Q.click(),(J=V.current)==null||J.call(V)},[Fa]:()=>{var q;(q=C.current)==null||q.call(C)}},[X,V,C,x],{ref:k}),Ke({[yt]:()=>{const q=X();if(q.length){const Q=q.findIndex(ue=>ue.id===x),J=q.at(Q-1)||q.at(-1);w(J.id)}},[xt]:()=>{G();const q=X();if(q.length){const Q=q.findIndex(ue=>ue.id===x),J=q.at(Q+1)||q.at(0);w(J.id)}}},[G,X,x],{ref:k,preventDefault:!0}),be(()=>{W&&requestAnimationFrame(()=>{var J;const Q=(J=X()[0])==null?void 0:J.id;Q&&w(Q)})},[W]);const ee=a.useMemo(()=>({onItemClick:B,highlightedId:x,setHighlightedId:w}),[x,B]);return s.jsx(_s.Provider,{value:ee,children:s.jsxs(ke,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:!1,active:W,onClose:oe,onOpen:G,containerRef:l,fallbackAdjustLayout:h,fallbackMinWidth:v,fallbackMinHeight:f,contentMaxHeight:p,disableHideAnimation:!0,instanceRef:c,children:[s.jsx(ke.Trigger,{children:J=>{var ue=J,{ref:q}=ue,Q=ve(ue,["ref"]);return s.jsx(No,N(b({},y),{name:i,onChange:R,focused:W,attributes:N(b({},y.attributes),{ref:q,onClick:Q.onFocus}),inputAttributes:N(b(b({},y.inputAttributes),Q),{onFocus:Ee=>{var ne,ie,le;(ne=Q.onFocus)==null||ne.call(Q),(ie=y.onFocus)==null||ie.call(y,Ee),T.current||(le=k.current)==null||le.select()},onInput:U,onClick:Q.onFocus,ref:k,role:"combobox","aria-activedescendant":x,"aria-haspopup":"listbox","aria-autocomplete":"list"})}))}}),s.jsx(ke.Content,{attributes:{onClick:Y,role:"listbox",ref:z},children:t})]})})},hs=e=>{const _=e,{value:t,data:o,onClick:r,disabled:n}=_,i=ve(_,["value","data","onClick","disabled"]),{onItemClick:l,highlightedId:c}=a.useContext(_s),d=We(),u=c===d,m=g=>{r==null||r(g),l({value:t,data:o})};return s.jsx(ke.Item,N(b({},i),{className:[n&&dc["item--disabled"],i.className],highlighted:u,disabled:n,attributes:N(b({},i.attributes),{role:"option",id:d,tabIndex:u?0:-1}),onClick:m}))};ms.displayName="Autocomplete",hs.displayName="Autocomplete.Item";const fs=ms;fs.Item=hs;const oo={root:"_root_1eg8e_1",image:"_image_1eg8e_5",fallback:"_fallback_1eg8e_17","--outline":"_--outline_1eg8e_25","image--display-mode-cover":"_image--display-mode-cover_1eg8e_37","image--display-mode-contain":"_image--display-mode-contain_1eg8e_41"},cr=e=>{const{src:t,alt:o,width:r,maxWidth:n,height:i,aspectRatio:l,onLoad:c,onError:d,fallback:u,outline:m,displayMode:_="cover",borderRadius:g,className:h,attributes:v,imageAttributes:f,renderImage:p}=e,[y,x]=a.useState("loading"),w=Qe({radius:g,width:r,height:i,maxWidth:n,aspectRatio:l}),C=P(oo.root,w.classNames,m&&oo["--outline"],h),z=P([oo.image,_&&oo[`image--display-mode-${_}`]]),I=(y==="error"||!t)&&!!u,S=b(b({},v==null?void 0:v.style),w.variables),k=T=>{var L;x("success"),c==null||c(T),(L=f==null?void 0:f.onLoad)==null||L.call(f,T)},$=T=>{var L;x("error"),d==null||d(T),(L=f==null?void 0:f.onError)==null||L.call(f,T)};if(a.useEffect(()=>{x("loading")},[t]),I){if(typeof u=="string"){const T=N(b({},v),{src:u!=null?u:"",alt:o!=null?o:"",role:o?void 0:"presentation",className:z,style:S});return p?p(T):s.jsx("img",b({},T))}return s.jsx("div",N(b({},v),{className:P([oo.fallback,C]),style:S,children:u}))}const E=N(b(b({},v),f),{src:t!=null?t:"",alt:o!=null?o:"",role:o?void 0:"presentation",onLoad:k,onError:$,className:m?z:P([z,C]),style:S}),M=p?p(E):s.jsx("img",b({},E));return m?s.jsx("div",N(b({},v),{className:C,style:S,children:M})):M};cr.displayName="Image";const dr={root:"_root_1de3p_1","--variant-faded":"_--variant-faded_1de3p_13","--color-neutral":"_--color-neutral_1de3p_14","--color-critical":"_--color-critical_1de3p_18","--color-positive":"_--color-positive_1de3p_22","--color-warning":"_--color-warning_1de3p_26","--color-primary":"_--color-primary_1de3p_30"},gs=e=>{const{color:t="neutral",variant:o,src:r,size:n=12,squared:i,initials:l,icon:c,className:d,renderImage:u,imageAttributes:m,attributes:_}=e,g=e.alt||(m==null?void 0:m.alt),h=i?ce(n,p=>p>=24?"large":p>=12?"medium":"small"):"circular";if(r)return s.jsx(cr,{src:r,alt:g,renderImage:u,outline:!0,borderRadius:h,width:n,aspectRatio:1,className:d,attributes:_,imageAttributes:m});const v=Qe({height:n}),f=P(dr.root,d,v==null?void 0:v.classNames,t&&dr[`--color-${t}`],o&&dr[`--variant-${o}`]);return s.jsx(H,{borderRadius:h,attributes:N(b({},_),{style:b({},v==null?void 0:v.variables)}),backgroundColor:o==="faded"?`${t}-${o}`:t,className:f,children:c?s.jsx(he,{svg:c,size:ce(n,p=>Math.ceil(p*.4))}):l})};gs.displayName="Avatar";const Fe={root:"_root_1oeg1_1",icon:"_icon_1oeg1_32",dismiss:"_dismiss_1oeg1_38","--highlighted":"_--highlighted_1oeg1_44","--actionable":"_--actionable_1oeg1_49","--variant-faded":"_--variant-faded_1oeg1_1","--variant-outline":"_--variant-outline_1oeg1_1","--color-positive":"_--color-positive_1oeg1_68","--color-critical":"_--color-critical_1oeg1_87","--color-warning":"_--color-warning_1oeg1_106","--color-primary":"_--color-primary_1oeg1_125","--size-small":"_--size-small_1oeg1_1","--size-medium":"_--size-medium_1oeg1_1","--size-large":"_--size-large_1oeg1_1","--rounded":"_--rounded_1oeg1_170","--hidden":"_--hidden_1oeg1_174",container:"_container_1oeg1_181","--container-overlap":"_--container-overlap_1oeg1_207","--container-position-top-end":"_--container-position-top-end_1oeg1_211","--container-position-bottom-end":"_--container-position-bottom-end_1oeg1_223"},bs=a.forwardRef((e,t)=>{const{children:o,color:r,rounded:n,size:i="medium",icon:l,endIcon:c,variant:d,hidden:u,highlighted:m,href:_,onClick:g,onDismiss:h,dismissAriaLabel:v,className:f,attributes:p}=e,y=!!(g||_),x=i==="small"?3:4,w=P(Fe.root,f,n&&Fe["--rounded"],u&&Fe["--hidden"],i&&Fe[`--size-${i}`],r&&Fe[`--color-${r}`],d&&Fe[`--variant-${d}`],y&&Fe["--actionable"],m&&Fe["--highlighted"]),C=z=>{z.stopPropagation(),h==null||h()};return s.jsxs(Ie,{onClick:g,href:_,className:w,attributes:p,ref:t,touchHitbox:!0,children:[l&&s.jsx(he,{svg:l,autoWidth:!0,size:x,className:Fe.icon}),o&&s.jsx(se,{variant:i==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":u?"true":void 0},children:o}),c&&s.jsx(he,{svg:c,autoWidth:!0,size:x,className:Fe.icon}),h&&s.jsx(Ie,{onClick:C,className:Fe.dismiss,as:"span",attributes:{"aria-label":v},touchHitbox:!0,children:s.jsx(he,{svg:Kn,size:x})})]})});bs.displayName="Badge";const ps=e=>{const{children:t,position:o="top-end",overlap:r,className:n,attributes:i}=e,l=P(Fe.container,n,r&&Fe["--container-overlap"],o&&Fe[`--container-position-${o}`]);return s.jsx("div",N(b({},i),{className:l,children:t}))};ps.displayName="Badge.Container";const vs=bs;vs.Container=ps;const ys=()=>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"})]}),xs=e=>{const{children:t,separator:o,color:r,defaultVisibleItems:n,expandAriaLabel:i,disableExpand:l,ariaLabel:c,className:d,attributes:u}=e,m=n&&n>=2?n:null,[_,g]=a.useState(!1),h=P(d),v=a.Children.count(t);let f=0;const p=()=>{g(!0)};return s.jsx("nav",N(b({},u),{"aria-label":c||(u==null?void 0:u["aria-label"]),className:h,children:s.jsx(H,{as:"ol",direction:"row",gap:2,align:"center",children:a.Children.map(t,(y,x)=>{if(!y)return null;const w=v-(m||0),C=f===0,z=f>w,I=!m||C||z||_,S=f===w;f+=1;let k=null;return I?k=y:S&&(k=l?s.jsx(he,{svg:ys,size:4}):s.jsx(Me.Aligner,{children:s.jsx(Me,{variant:"ghost",size:"small",icon:ys,onClick:p,attributes:{"aria-label":i}})})),k===null?null:s.jsxs(H,{as:"li",gap:2,direction:"row",align:"center",children:[x>0&&(I||S)&&s.jsx(se,{color:"neutral-faded",children:o||s.jsx(he,{svg:At,size:3})}),s.jsx(se,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:k})]},x)})})}))};xs.displayName="Breadcrumbs";const ro={root:"_root_x1qvh_1","--color-primary":"_--color-primary_x1qvh_6","--color-critical":"_--color-critical_x1qvh_10","--color-positive":"_--color-positive_x1qvh_14","--color-warning":"_--color-warning_x1qvh_18","--color-inherit":"_--color-inherit_x1qvh_22","--variant-plain":"_--variant-plain_x1qvh_27","--disabled":"_--disabled_x1qvh_32","--variant-underline":"_--variant-underline_x1qvh_39","--with-icon":"_--with-icon_x1qvh_57"},ur=a.forwardRef((e,t)=>{const{icon:o,disabled:r,href:n,color:i="primary",variant:l="underline",className:c,children:d,attributes:u,type:m,onClick:_,stopPropagation:g,render:h}=e,v=P(ro.root,c,r&&ro["--disabled"],l&&ro[`--variant-${l}`],i&&ro[`--color-${i}`],o&&ro["--with-icon"]);return s.jsxs(Ie,{href:n,disabled:r,className:v,attributes:u,type:m,onClick:_,ref:t,stopPropagation:g,render:h,children:[o&&s.jsx(he,{svg:o}),d]})});ur.displayName="Link";const ws=e=>{const{children:t,onClick:o,href:r,icon:n,disabled:i}=e;return!r&&!o&&!i?s.jsx(se,{variant:"body-3",weight:"medium",color:"neutral",children:t}):s.jsx(ur,{onClick:o,href:r,icon:n,disabled:i,variant:"plain",color:"inherit",children:t})};ws.displayName="Breadcrumbs.Item";const Cs=xs;Cs.Item=ws;const Ns=7,ks=1,ot=e=>{const{date:t}=e;return[t.getFullYear(),(t.getMonth()+1).toString().padStart(2,"0"),t.getDate().toString().padStart(2,"0")].join("-")},_r=e=>{const{date:t,firstWeekDay:o=ks}=e,r=t.getDay();return r<o?Ns-r-o:r-o},uc=e=>{const{firstWeekDay:t=ks,renderWeekDay:o}=e,r=new Date(2021,1,t),n=[];for(let i=t;i<t+Ns;i++){const l=o?o({weekDay:i,date:r}):r.toLocaleDateString("en-US",{weekday:"short"});n.push(l.slice(0,2)),r.setDate(r.getDate()+1)}return n},_c=e=>{const{renderMonthLabel:t}=e;return new Array(12).fill(null).map((o,r)=>{const n=new Date(0,r);return t?t({month:r,date:n}):n.toLocaleString("default",{month:"short"})})},mc=e=>{const{date:t,firstWeekDay:o}=e,r=t.getMonth(),n=t.getFullYear(),i=[],l=new Date(n,r,1),c=_r({date:l,firstWeekDay:o});for(c!==0&&i.push(new Array(c).fill(null));r===l.getMonth();)(_r({date:l,firstWeekDay:o})===0||!i.length)&&i.push([]),i[i.length-1].push(new Date(l)),l.setDate(l.getDate()+1);const d=_r({date:l,firstWeekDay:o});return d!==0&&i[i.length-1].push(...new Array(7-d).fill(null)),i},zs=e=>(e==null?void 0:e.querySelectorAll("[data-rs-date]"))||[],mr=(e,t)=>{const o=new Date(e);return o.setMonth(t),o},hc=e=>mr(e,e.getMonth()-1),Ss=e=>mr(e,e.getMonth()+1),Es=(e,t)=>{const o=new Date(e);return o.setFullYear(t),o},fc=e=>Es(e,e.getFullYear()-1),gc=e=>Es(e,e.getFullYear()+1),bc=e=>{const{date:t,min:o,max:r}=e,n=t.getMonth(),i=t.getFullYear(),l=new Date(i,n,0),c=Ss(t);return c.setDate(0),{isFirstMonth:o&&o>l,isLastMonth:r&&r<c}},pc=e=>{const{date:t,startValue:o,lastFocusedDate:r}=e,n=new Date,i=t.getMonth(),l=o==null?void 0:o.getMonth(),c=n.getMonth(),d=r==null?void 0:r.getMonth(),u=ot({date:t}),m=ot({date:n}),_=o&&ot({date:o}),g=r&&ot({date:r});return r&&i===d?u===g:o&&i===l?u===_:i===c?u===m:!0},vc={root:"_root_p9kz2_1"},ko=e=>{const{children:t}=e;return s.jsx("div",{className:vc.root,children:t})};ko.displayName="HiddenVisually";const zo=()=>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"})}),Ve={selection:"_selection_1qf7s_6",weekday:"_weekday_1qf7s_11",control:"_control_1qf7s_17",cell:"_cell_1qf7s_21","cell-button":"_cell-button_1qf7s_26","--active":"_--active_1qf7s_31","--selection-range":"_--selection-range_1qf7s_59","--selection-start":"_--selection-start_1qf7s_65","--selection-end":"_--selection-end_1qf7s_75"},$s=e=>{const{selectionMode:t,onMonthTitleClick:o,monthTitleRef:r,monthDate:n,renderSelectedMonthLabel:i,hidePrevious:l,hideNext:c,onNextClick:d,onPreviousClick:u,monthSelectionAriaLabel:m="Select a month",previousMonthAriaLabel:_="Previous month",previousYearAriaLabel:g="Previous year",nextMonthAriaLabel:h="Next month",nextYearAriaLabel:v="Next year"}=e,f=a.useRef(null),p=a.useRef(null);return a.useEffect(()=>{if(!l||document.activeElement!==f.current)return;const y=p.current||(r==null?void 0:r.current);Ge(()=>{y==null||y.focus()})},[l,r]),a.useEffect(()=>{if(!c||document.activeElement!==p.current)return;const y=f.current||(r==null?void 0:r.current);Ge(()=>{y==null||y.focus()})},[c,r]),s.jsxs(H,{direction:"row",gap:2,align:"center",children:[s.jsx(pt,{visibility:!0,hide:l,children:s.jsx("div",{className:Ve.control,children:s.jsx(Me,{variant:"ghost",icon:zo,onClick:u,attributes:{ref:f,"aria-label":t==="date"?_:g}})})}),s.jsxs(H.Item,{grow:!0,children:[t==="date"&&s.jsxs(Me,{fullWidth:!0,variant:"ghost",onClick:o,attributes:{ref:r},children:[i?i({date:n}):n.toLocaleDateString("en-US",{month:"long",year:"numeric"}),s.jsx(ko,{children:m})]}),t==="month"&&s.jsx(se,{align:"center",weight:"medium",children:n.toLocaleDateString("en-US",{year:"numeric"})})]}),s.jsx(pt,{visibility:!0,hide:c,children:s.jsx("div",{className:Ve.control,children:s.jsx(Me,{variant:"ghost",icon:At,onClick:d,attributes:{ref:p,"aria-label":t==="date"?h:v}})})})]})};$s.displayName="CalendarControls";const Ts=e=>{const{date:t,isoDate:o,startValue:r,endValue:n,disabled:i,focusable:l,onChange:c,range:d,hoveredDate:u,onDateHover:m,onDateHoverEnd:_,onDateFocus:g,selectedDates:h,disabledDates:v,renderAriaLabel:f,renderSlot:p}=e;if(!t)return s.jsx("td",{className:Ve.cell,"aria-hidden":"true"});const y=r&&ot({date:r}),x=n&&ot({date:n}),w=!!(o&&y&&o===y),C=!!(o&&x&&o===x),z=!!(o&&y&&o>y),I=!!(o&&x&&o<x),S=!!(u&&!n&&u>t),k=!!(h!=null&&h.some(D=>ot({date:D})===o)),$=i||(v==null?void 0:v.some(D=>ot({date:D})===o));let E;switch(!0){case(z&&S):case(z&&I):E="range";break;case(w&&(!d||C)):case k:E="standalone";break;case w:E="start";break;case C:E="end";break}const M=P([Ve.cell,E&&Ve["--active"],E&&Ve[`--selection-${E}`]]),T=()=>{if(!d){c==null||c({value:t});return}const D=r&&n,V=!r&&!n,W=r&&t<r,K=D||V||W,G=K?t:r,oe=K?null:t;c==null||c({value:{start:G,end:oe}})},L=()=>{m(t)},A=()=>{_(t)},F=()=>{L(),g(t)};return s.jsx("td",{className:M,role:$?"presentation":"gridcell",children:s.jsxs(Ie,{fullWidth:!0,insetFocus:!0,className:Ve["cell-button"],disabled:$,onClick:T,attributes:{role:"checkbox",tabIndex:l?0:-1,"aria-hidden":$,"aria-label":f?f({date:t}):t.toLocaleDateString("en-us",{month:"long",day:"numeric",weekday:"long"}),"aria-checked":!!E,"data-rs-date":ot({date:t}),onMouseEnter:L,onMouseLeave:A,onFocus:F,onBlur:A},children:[t.getDate(),p==null?void 0:p({date:t,selected:!!(E&&E!=="range")})]})})};Ts.displayName="CalendarDate";const Ms=e=>{const{date:t,value:o,onChange:r,min:n,max:i,range:l,firstWeekDay:c,selectedDates:d,disabledDates:u,hoveredDate:m,onDateHover:_,onDateHoverEnd:g,renderWeekDay:h,renderDateAriaLabel:v,renderDateSlot:f}=e;let p=!1;const[y,x]=a.useState(),w=t.getMonth(),C=mc({date:t,firstWeekDay:c}),z=uc({firstWeekDay:c,renderWeekDay:h});return s.jsxs("table",{className:Ve.selection,role:"grid",children:[s.jsx("thead",{"aria-hidden":"true",children:s.jsx("tr",{children:z.map(I=>s.jsx("th",{className:Ve.weekday,scope:"col",children:I},I))})}),s.jsx("tbody",{children:C.map(I=>{var k;const S=[w,(k=I[0])==null?void 0:k.getDate()].filter(Boolean).join("-");return s.jsx("tr",{className:Ve.row,children:I.map(($,E)=>{const M=!!$&&(n&&$<n||i&&$>i),T=o&&"start"in o?o.start:o,L=o&&"end"in o?o.end:o,A=$&&ot({date:$}),F=M?!1:!p&&!!$&&pc({date:$,lastFocusedDate:y,startValue:T});return F&&(p=!0),s.jsx(Ts,{date:$,isoDate:A,disabled:M,range:l,focusable:F,startValue:T,endValue:L,onChange:r,hoveredDate:m,onDateHover:_,onDateHoverEnd:g,onDateFocus:x,renderAriaLabel:v,selectedDates:d,disabledDates:u,renderSlot:f},E)})},S)})})]})};Ms.displayName="CalendarMonth";const hr=3,Is=e=>{const{renderMonthLabel:t,renderMonthAriaLabel:o,monthDate:r,min:n,max:i,onMonthClick:l}=e,c=a.useRef(null),d=_c({renderMonthLabel:t}),u=[];for(let m=0;m<d.length;m+=hr){const _=d.slice(m,m+hr);u.push(_)}return a.useEffect(()=>{var _;const m=(_=c.current)==null?void 0:_.querySelector('[tabIndex="0"]');Ge(()=>{m==null||m.focus()})},[]),s.jsx("table",{ref:c,role:"grid",className:Ve.selection,children:s.jsx("tbody",{children:u.map((m,_)=>s.jsx("tr",{className:Ve.row,children:m.map((g,h)=>{const v=_*hr+h,f=new Date(r.getFullYear(),v),p=n&&n.getFullYear()>=f.getFullYear()&&n.getMonth()>f.getMonth(),x=i&&i.getFullYear()<=f.getFullYear()&&i.getMonth()<f.getMonth()||p;return s.jsx("td",{role:x?"presentation":"gridcell",className:Ve.cell,children:s.jsx(Ie,{fullWidth:!0,insetFocus:!0,className:Ve["cell-button"],disabled:x,onClick:()=>l(v),attributes:{tabIndex:v===r.getMonth()?0:-1,"aria-hidden":x,"aria-label":o?o({month:v}):g,"data-rs-date":`${r.getFullYear()}-${(v+1).toString().padStart(2,"0")}`},children:g})},g)})},_))})})};Is.displayName="CalendarYear";const yc=e=>{const{rootRef:t,changeToNextMonth:o,changeToPreviousMonth:r,monthDate:n,verticalDelta:i,min:l,max:c}=e,d=a.useRef(0),u=a.useCallback(m=>{const{delta:_,onMonthChange:g}=m,h=document.activeElement;if(!h)return;const v=zs(t.current),f=Array.from(v),y=f.findIndex($=>$===h)+_,x=f[y],w=h.getAttribute("data-rs-date");if(!w)return;const[C,z,I]=w==null?void 0:w.split("-").map(Number);let S;if(I?S=new Date(C,z-1,I+_):_>0?S=new Date(C,z-1+_,1):S=new Date(C,z-1+_+1,0),!(l&&S<l||c&&S>c)){if(x){x.focus();return}d.current=y<0?y:y-(f.length-1),g()}},[t,l,c]);a.useEffect(()=>{const m=d.current;if(m===0)return;const _=zs(t.current),g=m<0?_.length+m:m-1,h=_[g];h&&h.focus(),d.current=0},[n,t]),Ke({[Ct]:()=>u({delta:-1,onMonthChange:r}),[wt]:()=>u({delta:1,onMonthChange:o}),[yt]:()=>u({delta:-i,onMonthChange:r}),[xt]:()=>u({delta:i,onMonthChange:o})},[o,r,u,i],{ref:t,preventDefault:!0})},So=e=>{const{value:t,onChange:o,defaultMonth:r,month:n,onMonthChange:i,min:l,max:c,range:d,firstWeekDay:u,selectedDates:m,disabledDates:_,monthsToRender:g=1,renderMonthLabel:h,renderSelectedMonthLabel:v,renderWeekDay:f,previousMonthAriaLabel:p,previousYearAriaLabel:y,nextMonthAriaLabel:x,nextYearAriaLabel:w,monthSelectionAriaLabel:C,renderMonthAriaLabel:z,renderDateAriaLabel:I,renderDateSlot:S}=e,[k,$]=a.useState("date"),[E,M]=a.useState(n||r||new Date),[T,L]=a.useState(null),A=a.useRef(null),F=a.useRef(k),D=bc({date:E,min:l,max:c}),V=a.useRef(null),W=()=>{if(k==="month"){const Y=fc(E);i==null||i({date:Y}),n===void 0&&M(Y);return}const U=hc(E);i==null||i({date:U}),n===void 0&&M(U)},K=()=>{if(k==="month"){const Y=gc(E);i==null||i({date:Y}),n===void 0&&M(Y);return}const U=Ss(E);i==null||i({date:U}),n===void 0&&M(U)},G=()=>{$("month")},oe=U=>{const Y=mr(E,U);i==null||i({date:Y}),n===void 0&&M(Y),$("date")},B=U=>{L(U)},R=U=>{T&&+T==+U&&L(null)};return a.useEffect(()=>{k==="date"&&k!==F.current&&Ge(()=>{var U;(U=A.current)==null||U.focus()}),F.current=k},[k]),a.useEffect(()=>{n&&M(n)},[n]),yc({monthDate:E,rootRef:V,changeToNextMonth:K,changeToPreviousMonth:W,verticalDelta:k==="date"?7:3,min:l,max:c}),s.jsxs(H,{gap:2,children:[s.jsx(H,{direction:"row",gap:4,children:Array.from({length:k==="date"?g:1}).map((U,Y)=>{const X=D.isFirstMonth||g>0&&Y>0,ee=D.isLastMonth||k==="date"&&g>0&&Y<g-1,ge=new Date(E);return ge.setMonth(ge.getMonth()+Y),s.jsx(H.Item,{grow:!0,children:s.jsx($s,{renderSelectedMonthLabel:v,monthDate:ge,selectionMode:k,hidePrevious:X,hideNext:ee,monthTitleRef:Y===0?A:void 0,onMonthTitleClick:G,onNextClick:K,onPreviousClick:W,previousMonthAriaLabel:p,previousYearAriaLabel:y,nextMonthAriaLabel:x,nextYearAriaLabel:w,monthSelectionAriaLabel:C,monthsToRender:g})},Y)})}),s.jsxs(H,{direction:"row",gap:4,attributes:{ref:V},children:[k==="date"&&Array.from({length:g}).map((U,Y)=>{const X=new Date(E);return X.setMonth(X.getMonth()+Y),s.jsx(H.Item,{grow:!0,children:s.jsx(Ms,{date:X,value:t,onChange:o,min:l,max:c,range:d,firstWeekDay:u,hoveredDate:T,selectedDates:m,disabledDates:_,onDateHover:B,onDateHoverEnd:R,renderWeekDay:f,renderDateAriaLabel:I,renderDateSlot:S})},Y)}),k==="month"&&s.jsx(Is,{monthDate:E,onMonthClick:oe,renderMonthLabel:h,renderMonthAriaLabel:z,min:l,max:c})]})]})};So.displayName="CalendarControlled";const js=e=>{const c=e,{onChange:t,defaultValue:o,range:r}=c,n=ve(c,["onChange","defaultValue","range"]),[i,l]=a.useState(o||null);return r?s.jsx(So,N(b({range:!0},n),{value:i,onChange:d=>{l(d.value),t==null||t(d)}})):s.jsx(So,N(b({},n),{value:i,onChange:d=>{l(d.value),t==null||t(d)}}))};js.displayName="CalendarUncontrolled";const Ds=e=>e.value!==void 0?s.jsx(So,b({},e)):s.jsx(js,b({},e));Ds.displayName="Calendar";const Eo={root:"_root_158rr_1","--selected":"_--selected_158rr_15","--elevated":"_--elevated_158rr_21","--actionable":"_--actionable_158rr_26"},Ls=a.forwardRef((e,t)=>{const{padding:o=4}=e,{selected:r,elevated:n,bleed:i,height:l,onClick:c,href:d,children:u,className:m,attributes:_,as:g="div"}=e,h=!!d||!!c,v=Qe({radius:"medium",bleed:i,height:l,padding:o}),f=P(Eo.root,v.classNames,h&&Eo["--actionable"],n&&Eo["--elevated"],r&&Eo["--selected"],m),p=b(b({},_==null?void 0:_.style),v.variables);return h?s.jsx(Ie,{className:f,attributes:N(b({},_),{style:p}),href:d,as:g,onClick:c,ref:t,children:u}):s.jsx(g,N(b({},_),{onClick:c,href:d,ref:t,className:f,style:p,children:u}))});Ls.displayName="Card";const ut={root:"_root_k04za_1",control:"_control_k04za_9","--control-prev":"_--control-prev_k04za_21","--control-next":"_--control-next_k04za_25","--control-visible":"_--control-visible_k04za_29",scroll:"_scroll_k04za_34",item:"_item_k04za_61","--control-rendered":"_--control-rendered_k04za_73","--bleed":"_--bleed_k04za_79","--bleed-true--m":"_--bleed-true--m_k04za_1","--bleed-false--m":"_--bleed-false--m_k04za_1","--bleed-true--l":"_--bleed-true--l_k04za_1","--bleed-false--l":"_--bleed-false--l_k04za_1","--bleed-true--xl":"_--bleed-true--xl_k04za_1","--bleed-false--xl":"_--bleed-false--xl_k04za_1"},fr=a.forwardRef((e,t)=>{const{type:o,scrollElRef:r,oppositeControlElRef:n,scrollPosition:i,onClick:l,isRTL:c,mounted:d}=e,[u,m]=a.useState(!1),[_,g]=a.useState(!1),h=o==="forward",v=o===(c?"back":"forward"),f=P(ut.control,v?ut["--control-next"]:ut["--control-prev"],u&&ut["--control-visible"],_&&ut["--control-rendered"]);return be(()=>{var I;const p=r.current;if(!p||!d)return;let y;const x=Math.abs(i),w=x<=0,C=x+p.clientWidth>=p.scrollWidth-1;return(h?C:w)?(m(!1),y=setTimeout(()=>g(!1),1500),(I=n.current)==null||I.focus()):(g(!0),m(!0)),()=>{y&&clearTimeout(y)}},[i,r,d,h]),s.jsx("div",{className:f,children:s.jsx(Me,{size:"small",onClick:l,icon:v?At:zo,rounded:!0,variant:"outline",elevated:!0,attributes:{"aria-disabled":!u,"aria-hidden":!0},ref:t})})});fr.displayName="CarouselControl";const Ps=e=>{const{children:t,gap:o=3,visibleItems:r,bleed:n,navigationDisplay:i,onChange:l,onScroll:c,instanceRef:d,className:u,attributes:m}=e,_=a.useRef(0),g=a.useRef([]),[h,v]=a.useState(!1),[f,p]=a.useState(0),[y]=at(),x=a.useRef(null),w=a.useRef(null),C=a.useRef(null),z={};typeof n=="object"&&Object.entries(n).forEach(([D,V])=>{z[D]=typeof V=="number"&&V>0});const I=P(ut.root,u,...ae(ut,"--bleed",typeof n=="number"?!0:z)),S=(D,V)=>{g.current[V]=D},k=tr(D=>{const V=D.target,W=E();p(V.scrollLeft),c==null||c(D),_.current!==W&&(l==null||l({index:W})),_.current=W}),$=()=>{const V=getComputedStyle(x.current).gap.split(" ")[0];return Number(V.replace("px",""))},E=()=>{let D=0,V=0;const W=x.current;if(!W)return D;const K=y?-W.scrollLeft:W.scrollLeft,G=$();return g.current.some((oe,B)=>oe?V+oe.clientWidth/2>=K?(D=B,!0):(V+=(oe==null?void 0:oe.clientWidth)+G,!1):!1),D},M=D=>{const V=x.current,W=g.current[D];W&&V.scrollTo({left:y?W.offsetLeft-(V.clientWidth-W.clientWidth):W.offsetLeft,top:0,behavior:"smooth"})},T=()=>{const D=x.current;D.scrollBy({left:D.clientWidth+$(),top:0,behavior:"smooth"})},L=()=>{const D=x.current;D.scrollBy({left:-D.clientWidth-$(),top:0,behavior:"smooth"})},A=y?T:L,F=y?L:T;return a.useImperativeHandle(d,()=>({navigateBack:A,navigateForward:F,navigateTo:M})),be(()=>{v(!0)},[]),s.jsxs("section",N(b({},m),{className:I,style:b(b(b({},O("--rs-carousel-items",r)),O("--rs-carousel-bleed",n)),m==null?void 0:m.style),children:[i!=="hidden"&&s.jsxs(s.Fragment,{children:[s.jsx(fr,{isRTL:y,type:"back",ref:w,oppositeControlElRef:C,scrollElRef:x,scrollPosition:f,onClick:A,mounted:h}),s.jsx(fr,{isRTL:y,type:"forward",ref:C,oppositeControlElRef:w,scrollElRef:x,scrollPosition:f,onClick:F,mounted:h})]}),s.jsx(H,{as:"ul",direction:"row",wrap:!1,gap:o,className:ut.scroll,attributes:{ref:x,onScroll:k},children:a.Children.map(t,(D,V)=>s.jsx(H.Item,{className:ut.item,as:"li",attributes:{ref:W=>S(W,V)},children:D}))})]}))};Ps.displayName="Carousel";const As=a.createContext(null),Fs=()=>a.useContext(As),gr=e=>{const{onChange:t,name:o,disabled:r,value:n,children:i,hasError:l}=e,c=d=>{const{event:u,value:m,checked:_}=d;if(!m)return;let g=[...n];_?g.push(m):g=g.filter(h=>h!==m),t&&t({name:o,value:g,event:u})};return s.jsx(As.Provider,{value:{onChange:c,disabled:r,value:n,name:o,hasError:l},children:i})};gr.displayName="CheckboxGroupControlled";const Vs=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=a.useState(t||[]),i=l=>{l.value&&(n(l.value),o&&o(l))};return s.jsx(gr,N(b({},e),{value:r,defaultValue:void 0,onChange:i}))};Vs.displayName="CheckboxGroupUncontrolled";const Bs=e=>{const{value:t}=e;return t!==void 0?s.jsx(gr,b({},e)):s.jsx(Vs,b({},e))};Bs.displayName="CheckboxGroup";const qs=a.createContext(null),Hs=()=>a.useContext(qs),br=e=>{const{onChange:t,name:o,disabled:r,value:n,children:i,hasError:l}=e,c=({event:d,value:u})=>{u&&t&&t({name:o,value:u,event:d})};return s.jsx(qs.Provider,{value:{onChange:c,disabled:r,value:n,name:o,hasError:l},children:i})};br.displayName="RadioGroupControlled";const Ws=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=a.useState(t||null),i=l=>{l.value&&(n(l.value),o&&o(l))};return s.jsx(br,N(b({},e),{value:r,defaultValue:void 0,onChange:i}))};Ws.displayName="RadioGroupUncontrolled";const Os=e=>{const{value:t}=e;return t!==void 0?s.jsx(br,b({},e)):s.jsx(Ws,b({},e))};Os.displayName="RadioGroup";const xc={root:"_root_1feer_1"},no=e=>{var y,x,w,C,z,I;const{type:t,value:o,className:r,onBlur:n,onFocus:i,onChange:l,attributes:c}=e,d=P(xc.root,r),u=Fs(),m=Hs(),_=Ze(),g=(x=(y=u==null?void 0:u.name)!=null?y:m==null?void 0:m.name)!=null?x:e.name,h=(z=(C=(w=_==null?void 0:_.disabled)!=null?w:e.disabled)!=null?C:u==null?void 0:u.disabled)!=null?z:m==null?void 0:m.disabled,v=o&&((I=u==null?void 0:u.value)==null?void 0:I.includes(o))||o&&(m==null?void 0:m.value)===o||e.checked,f=u?void 0:e.defaultChecked,p=S=>{if(!g)return;const{checked:k}=S.target,$={name:g,value:o,checked:k,event:S};l&&l($),u!=null&&u.onChange&&u.onChange($),m!=null&&m.onChange&&m.onChange($)};return s.jsx("input",N(b({},c),{className:d,type:t,name:g,value:o,checked:v,defaultChecked:f,disabled:h,onChange:p,onFocus:i||(c==null?void 0:c.onFocus),onBlur:n||(c==null?void 0:c.onBlur)}))};no.displayName="HiddenInput";const pr=()=>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"})}),bt={root:"_root_ykdxc_12",decorator:"_decorator_ykdxc_23",field:"_field_ykdxc_28","--size-small":"_--size-small_ykdxc_1","--size-medium":"_--size-medium_ykdxc_1","--size-large":"_--size-large_ykdxc_1",icon:"_icon_ykdxc_75",input:"_input_ykdxc_85","--error":"_--error_ykdxc_92","--disabled":"_--disabled_ykdxc_114","--size-small--m":"_--size-small--m_ykdxc_1","--size-medium--m":"_--size-medium--m_ykdxc_1","--size-large--m":"_--size-large--m_ykdxc_1","--size-small--l":"_--size-small--l_ykdxc_1","--size-medium--l":"_--size-medium--l_ykdxc_1","--size-large--l":"_--size-large--l_ykdxc_1","--size-small--xl":"_--size-small--xl_ykdxc_1","--size-medium--xl":"_--size-medium--xl_ykdxc_1","--size-large--xl":"_--size-large--xl_ykdxc_1"},Us=e=>{var C;const{children:t,value:o,onChange:r,onFocus:n,onBlur:i,indeterminate:l,size:c="medium",className:d,attributes:u,inputAttributes:m}=e,_=Fs(),g=Ze(),h=(g==null?void 0:g.hasError)||e.hasError||(_==null?void 0:_.hasError),v=(g==null?void 0:g.disabled)||e.disabled||(_==null?void 0:_.disabled),f=_?(C=_.value)==null?void 0:C.includes(o):e.checked,p=_?void 0:e.defaultChecked,y=_?_.name:e.name,x=a.useRef(null),w=P(bt.root,d,c&&h&&bt["--error"],v&&bt["--disabled"],c&&ae(bt,"--size",c));return be(()=>{x.current.indeterminate=l||!1},[l,f]),s.jsxs("label",N(b({},u),{className:w,children:[s.jsxs("span",{className:bt.field,children:[s.jsx(no,{className:bt.input,type:"checkbox",checked:f,defaultChecked:p,name:y,disabled:v,value:o,onChange:r,onFocus:n,onBlur:i,attributes:N(b({},m),{ref:x})}),s.jsx("div",{className:bt.decorator,children:s.jsx(he,{svg:pr,className:bt.icon,size:ce(c,z=>z==="large"?5:z==="small"?3:4)})})]}),t&&s.jsx(se,{as:"span",variant:ce(c,z=>z==="large"?"body-2":z==="small"?"caption-1":"body-3"),children:t})]}))};Us.displayName="Checkbox";const $o=e=>e.preventDefault(),vr=()=>{window.addEventListener("wheel",$o),window.addEventListener("touchmove",$o)},yr=()=>{window.removeEventListener("wheel",$o),window.removeEventListener("touchmove",$o)},xr=e=>{var o;const t=((o=window.navigator.userAgentData)==null?void 0:o.platform)||window.navigator.platform;return typeof window!="undefined"?e.test(t):!1},wc=()=>xr(/^iPhone/i),Cc=()=>xr(/^Mac/i),Nc=()=>xr(/^iPad/i)||Cc()&&navigator.maxTouchPoints>1,kc=()=>wc()||Nc();class Ys{constructor(){xe(this,"cache",new Map);xe(this,"set",(t,o)=>{const r={},n=this.cache.get(t);Object.keys(o).forEach(i=>{r[i]=t.style.getPropertyValue(i)}),this.cache.set(t,b(b({},r),n)),Object.assign(t.style,o)});xe(this,"reset",()=>{for(const[t,o]of this.cache.entries())Object.assign(t.style,o);this.cache.clear()})}}const Ks=new Ys,zc=()=>{const e=window.visualViewport,t=(e==null?void 0:e.offsetLeft)||0,o=(e==null?void 0:e.offsetTop)||0,{scrollX:r,scrollY:n}=window;return Ks.set(document.body,{position:"fixed",top:`${-(n-Math.floor(o))}px`,left:`${-(r-Math.floor(t))}px`,right:"0",overflow:"hidden"}),()=>{Ks.reset(),window.scrollTo({top:n,left:r,behavior:"instant"})}},Sc=(()=>{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}})(),wr=new Ys,Ec=e=>{const{container:t}=e,o=t.getBoundingClientRect(),r=o.left+o.right<window.innerWidth;if(wr.set(t,{overflow:"hidden"}),r){const n=Sc();wr.set(t,{paddingRight:`${n}px`})}return()=>wr.reset()};let Cr=0;const $c=e=>{var i;const t=kc();let o=()=>{},r=document.body;e.originEl&&(r=Go({el:e.originEl})),e.containerEl&&(r=e.containerEl);const n=r===document.body;if(n&&(Cr+=1),!(n&&Cr>1))return t&&n?o=zc():o=Ec({container:r}),(i=e.cb)==null||i.call(e),l=>{n&&(Cr-=1),o(),l==null||l()}},Nr=e=>{const{containerRef:t,originRef:o}=e||{},[r,n]=a.useState(!1),i=a.useRef(null),l=a.useCallback(()=>{i.current=$c({containerEl:t==null?void 0:t.current,originEl:o==null?void 0:o.current,cb:()=>n(!0)})},[t,o]),c=a.useCallback(()=>{var d;(d=i.current)==null||d.call(i,()=>n(!1)),i.current=null},[]);return a.useMemo(()=>({scrollLocked:r,lockScroll:l,unlockScroll:c}),[r,l,c])},Tc={root:"_root_th78q_1"},Gs=e=>{const _=e,{position:t="end-top",onOpen:o,onClose:r}=_,n=ve(_,["position","onOpen","onClose"]),[i,l]=a.useState(),c=a.useRef(null),{lockScroll:d,unlockScroll:u}=Nr({originRef:c}),m=Se(o);return a.useEffect(()=>{const g=c.current;if(!g)return;const h=v=>{var f;v.preventDefault(),l({x:v.clientX,y:v.clientY}),d(),(f=m.current)==null||f.call(m)};return g.addEventListener("contextmenu",h),()=>g.removeEventListener("contextmenu",h)},[d,m]),a.useEffect(()=>()=>u(),[u]),s.jsx("div",{className:Tc.root,ref:c,children:s.jsx(ke,N(b({},n),{position:t,originCoordinates:i,active:!!i,onClose:g=>{l(void 0),u(),r==null||r(g)}}))})};Gs.displayName="ContextMenu";const Ft=Gs;Ft.Content=ke.Content,Ft.Item=ke.Item,Ft.Section=ke.Section,Ft.SubMenu=ke.SubMenu,Ft.SubTrigger=ke.SubTrigger;const _t={root:"_root_1vs2n_1",triggerLayer:"_triggerLayer_1vs2n_13",trigger:"_trigger_1vs2n_13","--inline":"_--inline_1vs2n_29","--variant-outline":"_--variant-outline_1vs2n_47","--highlighted":"_--highlighted_1vs2n_54","--disabled":"_--disabled_1vs2n_67"},Xs=e=>{const{children:t}=e;return s.jsx("span",{className:_t.trigger,children:t})},Qs=e=>{const{name:t,children:o,height:r,variant:n="outline",inline:i,className:l,disabled:c,attributes:d,inputAttributes:u,onChange:m}=e,_=kt(),g=P(_t.root,n&&_t[`--variant-${n}`],i&&_t["--inline"],_.active&&_t["--highlighted"],c&&_t["--disabled"],l),h=C=>{var z;C.preventDefault(),(z=d==null?void 0:d.onDragOver)==null||z.call(d,C)},v=C=>{var z;_.activate(),(z=d==null?void 0:d.onDragEnter)==null||z.call(d,C)},f=C=>{var z;C.currentTarget.contains(C.relatedTarget)||(_.deactivate(),(z=d==null?void 0:d.onDragLeave)==null||z.call(d,C))},p=C=>{var z;C.preventDefault(),_.deactivate(),m==null||m({name:t,value:Array.from(C.dataTransfer.files),event:C}),(z=d==null?void 0:d.onDrop)==null||z.call(d,C)},y=C=>{var I;const z=C.target.files;z&&(m==null||m({name:t,event:C,value:Array.from(z)}),(I=u==null?void 0:u.onChange)==null||I.call(u,C))},x=s.jsx(ko,{children:s.jsx("input",N(b({},u),{type:"file",className:_t.field,name:t,disabled:c,onChange:y}))}),w=typeof o=="function"?o({highlighted:_.active}):o;return s.jsx(H,{className:g,height:r,borderRadius:"medium",attributes:N(b({},d),{onDragOver:h,onDragEnter:v,onDragLeave:f,onDrop:p}),children:n==="outline"&&!i?s.jsxs(H,{as:"label",className:_t.triggerLayer,padding:6,borderRadius:"medium",gap:2,align:"center",justify:"center",textAlign:"center",height:"100%",children:[x,s.jsx(H.Item,{children:w})]}):s.jsxs("label",{className:_t.triggerLayer,children:[x,w]})})};Qs.displayName="FileUpload",Xs.displayName="FileUpload.Trigger";const Zs=Qs;Zs.Trigger=Xs;const Js={root:"_root_bzk9x_1","--active":"_--active_bzk9x_14"},Rs=e=>{const{children:t,active:o,className:r,attributes:n}=e,i=P(Js.root,o&&Js["--active"],r);return s.jsx(se,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:n,children:t})};Rs.displayName="Hotkey";const rt={root:"_root_1irm5_1",wrapper:"_wrapper_1irm5_26",inner:"_inner_1irm5_32",content:"_content_1irm5_38","--visible":"_--visible_1irm5_44","--click-through":"_--click-through_1irm5_49","--blurred":"_--blurred_1irm5_54","--contained":"_--contained_1irm5_72","--animated":"_--animated_1irm5_76","--overflow-auto":"_--overflow-auto_1irm5_85"},kr=e=>{const{active:t,children:o,transparent:r,blurred:n,overflow:i,onClose:l,onOpen:c,onAfterClose:d,onAfterOpen:u,disableCloseOnClick:m,containerRef:_,className:g,attributes:h}=e,v=Se(l),f=Se(c),p=r===!0,y=p?0:(1-(r||0))*.7,[x,w]=a.useState(!1),[C,z]=a.useState(!1),[I,S]=a.useState([0,0]),k=a.useRef(null),{lockScroll:$,unlockScroll:E}=Nr({containerRef:_}),M=a.useRef(null),T=a.useRef(!1),{active:L,activate:A,deactivate:F}=kt(t||!1),{active:D,activate:V,deactivate:W}=kt(t||!1),K=hn({active:t,contentRef:k,hasTrigger:!1}),G=P(rt.root,D&&rt["--visible"],p&&rt["--click-through"],n&&rt["--blurred"],C&&rt["--animated"],_&&rt["--contained"],i==="auto"&&rt["--overflow-auto"],g),oe=X=>{if(!k.current)return;const ee=k.current.firstChild;if(ee)return ee.contains(X)},B=a.useCallback(X=>{var ee;!D||!K()||(M.current&&(_!=null&&_.current)&&(_.current.style.overflow=M.current,_.current.style.removeProperty("isolation"),M.current=null),(ee=v.current)==null||ee.call(v,{reason:X.reason}))},[D,K,v,_]),R=X=>{T.current=!oe(X.target)},U=X=>{const ee=!oe(X.target);!(T.current&&ee&&!p)||m||B({reason:"overlay-click"})},Y=X=>{if(!(X.propertyName!=="opacity"||X.target!==X.currentTarget)){if(z(!1),D){u==null||u();return}E(),F(),d==null||d()}};return Ke({Escape:()=>B({reason:"escape-key"})},[B]),a.useEffect(()=>{z(!0),t&&!L&&A(),!t&&L&&W()},[t,A,W,L]),a.useEffect(()=>{L&&(p||$(),Ge(()=>{V()}))},[L,V,$,p]),a.useEffect(()=>{var ge;if(!L||!k.current)return;const X=new Dt,ee=_==null?void 0:_.current;return ee&&(M.current=ee.style.overflow,ee.style.overflow="hidden",ee.style.isolation="isolate",S([ee.scrollLeft,ee.scrollTop])),X.trap(k.current,{initialFocusEl:k.current.querySelector("[role=dialog][tabindex='-1']")}),(ge=f.current)==null||ge.call(f),()=>X.release()},[L,f,_]),a.useEffect(()=>()=>E(),[E]),be(()=>{w(!0)},[]),!L||!x?null:s.jsx(yo,{targetRef:_,children:s.jsx(yo.Scope,{children:X=>s.jsx("div",N(b({},h),{ref:X,style:{"--rs-overlay-opacity":y,"--rs-overlay-offset-x":_?`${I[0]}px`:void 0,"--rs-overlay-offset-y":_?`${I[1]}px`:void 0},role:"button",tabIndex:-1,className:G,onMouseDown:R,onMouseUp:U,onTransitionEnd:Y,children:s.jsx("div",{className:rt.wrapper,children:s.jsx("div",{className:rt.inner,children:s.jsx("div",{className:rt.content,ref:k,children:typeof o=="function"?o({active:D}):o})})})}))})})};kr.displayName="Overlay";const zr={m:660,l:900,xl:1280},ei=e=>{var n,i,l,c,d,u;const{defaultViewport:t}=a.useContext(Yo),[o,r]=a.useState(t);return be(()=>{const m=document.querySelector("[data-rs-theme]"),_=m&&window.getComputedStyle(m),g={m:_&&Number(_.getPropertyValue("--rs-viewport-m-min"))||zr.m,l:_&&Number(_.getPropertyValue("--rs-viewport-l-min"))||zr.l,xl:_&&Number(_.getPropertyValue("--rs-viewport-xl-min"))||zr.xl},h={s:`(max-width: ${g.m-1}px)`,m:`(min-width: ${g.m}px) and (max-width: ${g.l-1}px)`,l:`(min-width: ${g.l}px) and (max-width: ${g.xl-1}px)`,xl:`(min-width: ${g.xl}px)`},f=Object.keys(h).map(p=>{const y=window.matchMedia(h[p]);return{mq:y,handler:()=>y.matches&&r(p)}});return f.forEach(({handler:p,mq:y})=>{p(),y.addEventListener("change",p)}),()=>{f.forEach(({handler:p,mq:y})=>{y.removeEventListener("change",p)})}},[]),typeof e!="object"||e===null||!("s"in e)?e:o==="xl"?(l=(i=(n=e.xl)!=null?n:e.l)!=null?i:e.m)!=null?l:e.s:o==="l"?(d=(c=e.l)!=null?c:e.m)!=null?d:e.s:o==="m"&&(u=e.m)!=null?u:e.s},Vt={root:"_root_cjmtc_1","--contained":"_--contained_cjmtc_16","--position-center":"_--position-center_cjmtc_1","--active":"_--active_cjmtc_41","--position-bottom":"_--position-bottom_cjmtc_1","--position-start":"_--position-start_cjmtc_1","--position-end":"_--position-end_cjmtc_1","--position-full-screen":"_--position-full-screen_cjmtc_1","--dragging":"_--dragging_cjmtc_154","--overflow-visible":"_--overflow-visible_cjmtc_158","--position-center--m":"_--position-center--m_cjmtc_1","--position-bottom--m":"_--position-bottom--m_cjmtc_1","--position-start--m":"_--position-start--m_cjmtc_1","--position-end--m":"_--position-end--m_cjmtc_1","--position-full-screen--m":"_--position-full-screen--m_cjmtc_1","--position-center--l":"_--position-center--l_cjmtc_1","--position-bottom--l":"_--position-bottom--l_cjmtc_1","--position-start--l":"_--position-start--l_cjmtc_1","--position-end--l":"_--position-end--l_cjmtc_1","--position-full-screen--l":"_--position-full-screen--l_cjmtc_1","--position-center--xl":"_--position-center--xl_cjmtc_1","--position-bottom--xl":"_--position-bottom--xl_cjmtc_1","--position-start--xl":"_--position-start--xl_cjmtc_1","--position-end--xl":"_--position-end--xl_cjmtc_1","--position-full-screen--xl":"_--position-full-screen--xl_cjmtc_1"},Sr=32,Mc=100,Ic=32,ti=a.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),oi=()=>a.useContext(ti),ri=e=>{const{children:t}=e,{id:o,setTitleMounted:r}=oi();return a.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(se,{variant:"featured-3",weight:"bold",attributes:{id:`${o}-title`},children:t})},ni=e=>{const{children:t}=e,{id:o,setSubtitleMounted:r}=oi();return a.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(se,{variant:"body-3",color:"neutral-faded",attributes:{id:`${o}-subtitle`},children:t})},si=e=>{const{children:t,onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:i,active:l,size:c,padding:d=4,position:u="center",overflow:m,transparentOverlay:_,blurredOverlay:g,ariaLabel:h,autoFocus:v=!0,disableSwipeGesture:f,disableCloseOnOutsideClick:p,containerRef:y,overlayClassName:x,className:w,attributes:C}=e,z=Se(o),I=We(),S=ei(u),[k,$]=a.useState(!1),[E,M]=a.useState(!1),[T,L]=a.useState(!1),A=a.useRef(null),F=(C==null?void 0:C.ref)||A,D=a.useRef({x:0,y:0}),V=a.useRef(0),W=a.useRef(0),K=a.useRef(0),[G,oe]=a.useState(0),[B,R]=a.useState(0),U=Qe({padding:d}),Y=a.useMemo(()=>({titleMounted:k,setTitleMounted:$,subtitleMounted:E,setSubtitleMounted:M,id:I}),[I,E,k]),X=()=>{D.current={x:0,y:0},V.current=0,K.current=0,oe(0)},ee=Z=>{var J;if(f||(J=window.getSelection())!=null&&J.toString())return;let q=Z.target;const Q=F.current;for(;q&&(q===Q||Q!=null&&Q.contains(q));){if(q.scrollTop!==0||q.scrollLeft!==0||q.matches("input,textarea"))return;q=q?q.parentElement:null}S==="start"&&Z.targetTouches[0].clientX<Ic||(mo(),vr(),L(!0))},ge=Z=>{l||Z.propertyName==="transform"&&Z.currentTarget===Z.target&&X()};return a.useEffect(()=>{if(!T)return;const Z=()=>{var J;ho(),yr(),L(!1);const Q=S==="start"?K.current<0:K.current>0;Math.abs(W.current)>Sr&&Q?(J=z.current)==null||J.call(z,{reason:"drag"}):X()},q=Q=>{var _e,pe;if(!T||S==="center"||((_e=F.current)==null?void 0:_e.scrollTop)!==0||((pe=F.current)==null?void 0:pe.scrollLeft)!==0)return;const J=Q.targetTouches[0],ue={x:J.clientX,y:J.clientY},Ee=S==="bottom"?"y":"x",ne=S==="bottom"?"x":"y";D.current[Ee]||(D.current=ue,V.current=ue[Ee]);const ie=Math.abs(ue[Ee]-D.current[Ee]),le=Math.abs(ue[ne]-D.current[ne]);if(u!=="bottom"&&(ie<le||le>Mc)){V.current=ue[Ee];return}K.current=ue[Ee]-V.current,V.current=ue[Ee],oe(we=>S==="start"?Math.min(0,we+K.current):Math.max(0,we+K.current))};return document.addEventListener("touchmove",q,{passive:!0}),document.addEventListener("touchend",Z,{passive:!0}),()=>{document.removeEventListener("touchmove",q),document.removeEventListener("touchend",Z)}},[T,S,z,u,F]),a.useEffect(()=>{const Z=F.current;if(!Z||!S)return;const Q=["start","end"].includes(S)?Z.clientWidth:Z.clientHeight,J=Math.abs(G)/Q;R(J/2),W.current=G},[G,S,F]),s.jsx(kr,{onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:i,disableCloseOnClick:p,active:l,transparent:_||B,blurred:g,overflow:S==="center"?"auto":"hidden",className:x,containerRef:y,attributes:{onTouchStart:ee},children:({active:Z})=>{const q=P(Vt.root,w,Z&&Vt["--active"],T&&Vt["--dragging"],m&&Vt[`--overflow-${m}`],y&&Vt["--contained"],ae(Vt,"--position",u),U.classNames);return s.jsx(ti.Provider,{value:Y,children:s.jsx("div",N(b({},C),{style:N(b(b({},U.variables),O("--rs-modal-size",c)),{"--rs-modal-drag":Math.abs(G)<Sr?"0px":`${G+Sr*(S==="start"?1:-1)}px`}),"aria-labelledby":k?`${I}-title`:void 0,"aria-describedby":E?`${I}-subtitle`:void 0,"aria-label":h||(C==null?void 0:C["aria-label"]),className:q,"aria-modal":"true",role:"dialog",tabIndex:v?void 0:-1,ref:F,onTransitionEnd:ge,children:t}))})}})};si.displayName="Modal",ri.displayName="Modal.Title",ni.displayName="Modal.Subtitle";const Er=si;Er.Title=ri,Er.Subtitle=ni;const ii=()=>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"})}),jc=()=>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:"18 15 12 9 6 15"})}),Dc=()=>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("line",{x1:"5",y1:"12",x2:"19",y2:"12"})}),Lc=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),Je={field:"_field_meivp_1","controls-wrapper":"_controls-wrapper_meivp_5",controls:"_controls_meivp_5","controls--size-small":"_controls--size-small_meivp_1",control:"_control_meivp_5","controls--size-medium":"_controls--size-medium_meivp_1","controls--size-large":"_controls--size-large_meivp_1","controls--size-xlarge":"_controls--size-xlarge_meivp_1","icon--touch":"_icon--touch_meivp_107","--outline":"_--outline_meivp_111","icon--mouse":"_icon--mouse_meivp_139","controls--size-small--m":"_controls--size-small--m_meivp_1","controls--size-medium--m":"_controls--size-medium--m_meivp_1","controls--size-large--m":"_controls--size-large--m_meivp_1","controls--size-xlarge--m":"_controls--size-xlarge--m_meivp_1","controls--size-small--l":"_controls--size-small--l_meivp_1","controls--size-medium--l":"_controls--size-medium--l_meivp_1","controls--size-large--l":"_controls--size-large--l_meivp_1","controls--size-xlarge--l":"_controls--size-xlarge--l_meivp_1","controls--size-small--xl":"_controls--size-small--xl_meivp_1","controls--size-medium--xl":"_controls--size-medium--xl_meivp_1","controls--size-large--xl":"_controls--size-large--xl_meivp_1","controls--size-xlarge--xl":"_controls--size-xlarge--xl_meivp_1"},$r=e=>{var oe;const G=e,{increaseAriaLabel:t,decreaseAriaLabel:o,min:r,max:n,step:i=1,name:l,value:c,onChange:d,size:u="medium"}=G,m=ve(G,["increaseAriaLabel","decreaseAriaLabel","min","max","step","name","value","onChange","size"]),_=Ze(),g=We(m.id),h=(_==null?void 0:_.attributes.id)||((oe=e.inputAttributes)==null?void 0:oe.id)||g,v=(_==null?void 0:_.disabled)||e.disabled,f=(_==null?void 0:_.hasError)||e.hasError,p=v||(c&&n?c>=n:!1),y=v||(c&&r?c<=r:!1),x=a.useRef(null),w=a.useRef(null),[C,z]=a.useState((c==null?void 0:c.toString())||""),I=a.useRef(c),S=Se(d),k=a.useRef(null),$=a.useRef(null),E=a.useCallback(B=>{var Z,q;const R=i*B,U=I.current;let Y=U===null?R:U+R;n!==void 0&&Y>n&&(Y=n),r!==void 0&&Y<r&&(Y=r);const X=((Z=i.toString().split(".")[1])==null?void 0:Z.length)||0,ee=((q=U==null?void 0:U.toString().split(".")[1])==null?void 0:q.length)||0,ge=Math.max(X,ee);return Number(Y.toFixed(ge))},[i,r,n]),M=a.useCallback((B,R)=>{var U;(U=S.current)==null||U.call(S,{value:B,name:l}),R!=null&&R.programmatic||(I.current=B)},[l,S]),T=a.useCallback(()=>{const B=E(1);M(B,{programmatic:!0})},[E,M]),L=a.useCallback(()=>{const B=E(-1);M(B,{programmatic:!0})},[E,M]),A=B=>{if(!B.value.match(/^(-?)[0-9]*(\.?)[0-9]*$/))return;const R=parseFloat(B.value);R>Number.MAX_SAFE_INTEGER||R<Number.MIN_SAFE_INTEGER||(z(B.value),!isNaN(R)&&M(R))},F=(B,R)=>{var U;v||(R(),B.pointerType!=="touch"&&((U=x.current)==null||U.focus()),k.current=setTimeout(()=>{$.current=setInterval(()=>{R()},50)},500))},D=()=>{v||(k.current&&(clearTimeout(k.current),k.current=null),$.current&&(clearTimeout($.current),$.current=null))};Ke({[yt]:T,[xt]:L},[T,L],{preventDefault:!0,ref:w}),a.useEffect(()=>{var B;I.current=c,z((B=c==null?void 0:c.toString())!=null?B:"")},[c]);const V=ce(u,B=>B==="large"||B==="xlarge"?4:3),W=ce(u,B=>B==="small"?3:4),K=s.jsx("span",{className:Je["controls-wrapper"],children:s.jsxs("span",{className:Je.controls,children:[s.jsxs(Ie,{className:Je.control,disabled:p,disableFocusRing:!0,as:"span",attributes:{"aria-label":t,"aria-controls":h,role:"button",tabIndex:p?void 0:-1,onPointerDown:B=>F(B,T),onPointerUp:D,onPointerLeave:D,onContextMenu:B=>B.preventDefault()},children:[s.jsx(he,{svg:jc,size:V,className:Je["icon--mouse"]}),s.jsx(he,{svg:Lc,size:W,className:Je["icon--touch"]})]}),s.jsxs(Ie,{className:Je.control,disabled:y,disableFocusRing:!0,as:"span",attributes:{"aria-label":o,"aria-controls":h,role:"button",tabIndex:y?void 0:-1,onPointerDown:B=>F(B,L),onPointerUp:D,onPointerLeave:D,onContextMenu:B=>B.preventDefault()},children:[s.jsx(he,{svg:ii,size:V,className:Je["icon--mouse"]}),s.jsx(he,{svg:Dc,size:W,className:Je["icon--touch"]})]})]})});return s.jsx(No,N(b({},m),{className:[m.className,ae(Je,"controls--size",u),!(m.variant==="faded"||m.variant==="headless")&&Je["--outline"]],attributes:N(b({},m.attributes),{role:"group",ref:w}),inputAttributes:N(b({},m.inputAttributes),{ref:x,inputMode:"numeric",autoComplete:"off",autoCorrect:"off",spellCheck:"false",min:r,max:n,step:i,className:Je.field}),size:u,id:h,hasError:f,disabled:v,value:C,onChange:A,name:l,endSlot:K,endSlotPadding:0}))};$r.displayName="NumberFieldControlled";const li=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=a.useState(t!=null?t:null),i=l=>{n(l.value),o&&o(l)};return s.jsx($r,N(b({},e),{value:r,defaultValue:void 0,onChange:i}))};li.displayName="NumberFieldUncontrolled";const ai=e=>{const{value:t}=e;return t!==void 0?s.jsx($r,b({},e)):s.jsx(li,b({},e))};ai.displayName="NumberField";const ci={page:"_page_j10le_1"},Tr=e=>{const{total:t,page:o=1,onChange:r,pageAriaLabel:n,previousAriaLabel:i,nextAriaLabel:l,className:c,attributes:d}=e,u=1,m=1,_=[],g=(m+1)*2+u*2+1,h=t>g&&o-u>m+2,v=t>g&&o+u<t-m;let f=u*2+1;h||(f+=m+1),v||(f+=m+1);const p=h?Math.min(t-f+1,Math.max(1,o-u)):1,y=v?Math.min(p+f-1,t):t;h&&_.push(...er(1,m),null),_.push(...er(p,y)),v&&_.push(null,...er(t-m+1,t));const x=w=>{const C=Math.min(t,Math.max(1,w));r==null||r({page:C})};return s.jsxs(H,{direction:"row",align:"center",gap:1,className:c,attributes:d,children:[s.jsx(Me,{variant:"ghost",size:"small",icon:zo,onClick:()=>x(o-1),disabled:o===1,attributes:{"aria-label":i}}),_.map((w,C)=>w===null?s.jsx(H,{width:7,align:"center",children:"..."},`dots-${C}`):s.jsx(Me,{size:"small",variant:w===o?"solid":"ghost",color:w===o?"primary":"neutral",onClick:()=>x(w),attributes:{"aria-label":n==null?void 0:n({page:w}),"aria-current":w===o},className:ci.page,children:w},C)),s.jsx(Me,{variant:"ghost",size:"small",className:ci.page,icon:At,onClick:()=>x(o+1),disabled:o===t,attributes:{"aria-label":l}})]})};Tr.displayName="PaginationControlled";const di=e=>{const c=e,{defaultPage:t=1,onChange:o}=c,r=ve(c,["defaultPage","onChange"]),[n,i]=a.useState(t||1),l=d=>{i(d.page),o==null||o(d)};return s.jsx(Tr,N(b({},r),{onChange:l,page:n}))};di.displayName="PaginationUncontrolled";const ui=e=>{const{page:t}=e;return t!==void 0?s.jsx(Tr,b({},e)):s.jsx(di,b({},e))};ui.displayName="Pagination";const _i="\\d",mi="[a-zA-Z]",Pc=`(${_i}|${mi})`,To={root:"_root_eojch_1",input:"_input_eojch_6",item:"_item_eojch_23","item--focused":"_item--focused_eojch_28"},Ac={small:7,medium:9,large:12,xlarge:14},Fc={numeric:_i,alphabetic:mi,alphanumeric:Pc},Mr=e=>{const{valueLength:t=4,value:o,onChange:r,name:n,pattern:i="numeric",size:l="medium",variant:c="outline",className:d,attributes:u,inputAttributes:m}=e,_=Fc[i],g=ce(l,M=>Ac[M]),h=ce(l,M=>M==="medium"?"body-3":"body-2"),v=ce(l,M=>M==="xlarge"?"medium":"small"),[f,p]=a.useState(null),y=Ze(),x=a.useRef(o.length===t?"edit":"type"),w=a.useRef(null),C=[],z=a.useCallback(M=>{var D;const T=w.current;if(!T||T.selectionStart===null)return;const L=x.current,A=(D=M!=null?M:T.selectionStart)!=null?D:0,F=Math.min(L==="type"?T.value.length:T.value.length-1,Math.max(0,A));x.current==="type"?(T.selectionStart=F,T.selectionEnd=F):(T.selectionStart=F,T.selectionEnd=F+1),p(Math.min(T.selectionStart,t-1))},[t]);Ke({[`${Ct},${yt}`]:()=>{Ge(()=>{const M=w.current;if(!M||M.selectionStart===null)return;const T=x.current,L=o.length?"edit":"type";x.current=L,z(T==="type"&&L==="edit"?M.selectionStart:M.selectionStart-1)})},[`${wt},${xt}`]:()=>{Ge(()=>{const M=w.current;if(!M||M.selectionStart===null)return;const T=M.selectionStart===o.length&&M.selectionStart!==t?"type":"edit";x.current=T,z(M.selectionStart)})}},[o,z,t],{ref:w});const I=()=>{z(o.length)},S=()=>{p(null)},k=M=>{if(f===null||!w.current)return;const T=M.clipboardData.getData("text"),L=o.slice(0,f)+o.slice(f+T.length);w.current.value=L,w.current.selectionEnd=f},$=M=>{const T=M.target,L=T.value,A=new RegExp(`^${_}+$`);if(L&&!L.match(A)||T.selectionStart===null)return;const F=L.length===t||L.length>T.selectionStart?"edit":"type";x.current=F,r==null||r({event:M,name:n,value:L}),Ge(()=>{z()})},E=(M,T)=>{w.current&&(M.preventDefault(),w.current.focus(),x.current=T>=o.length?"type":"edit",z(T))};for(let M=0;M<t;M++)C.push(s.jsx(H,{height:g,width:g,borderRadius:v,borderColor:c==="faded"?"transparent":"neutral",backgroundColor:c==="faded"?"neutral-faded":"elevation-base",align:"center",justify:"center",className:[To.item,f===M&&To["item--focused"]],attributes:{onMouseDown:T=>{E(T,M)},onTouchStart:T=>{E(T,M)}},children:o[M]&&s.jsx(se,{variant:h,children:o[M]})},M));return s.jsxs(H,{gap:2,direction:"row",className:[To.root,d],attributes:u,children:[C,s.jsx("input",N(b(b({},m),y.attributes),{type:"text",className:To.input,onFocus:I,onBlur:S,onPaste:k,onInput:$,value:o,name:n,maxLength:t,ref:w,autoComplete:(m==null?void 0:m.autoComplete)||"one-time-code",inputMode:i==="numeric"?"numeric":void 0,pattern:`${_}{${t}}`}))]})};Mr.displayName="PinFieldControlled";const hi=e=>{const c=e,{defaultValue:t,onChange:o}=c,r=ve(c,["defaultValue","onChange"]),[n,i]=a.useState(t||""),l=d=>{i(d.value),o==null||o(d)};return s.jsx(Mr,N(b({},r),{value:n,onChange:l}))};hi.displayName="PinFieldUncontrolled";const fi=e=>{const{value:t}=e;return t!==void 0?s.jsx(Mr,b({},e)):s.jsx(hi,b({},e))};fi.displayName="PinField";const so={root:"_root_1qk35_1",value:"_value_1qk35_9","--duration":"_--duration_1qk35_24","--size-small":"_--size-small_1qk35_28","--size-medium":"_--size-medium_1qk35_32","--color-primary":"_--color-primary_1qk35_36","--color-critical":"_--color-critical_1qk35_40","--color-warning":"_--color-warning_1qk35_44","--color-positive":"_--color-positive_1qk35_48","--color-media":"_--color-media_1qk35_52"},gi=e=>{const{value:t=0,min:o=0,max:r=100,color:n="primary",size:i="medium",duration:l,ariaLabel:c,className:d,attributes:u}=e,m=P(so.root,d,n&&so[`--color-${n}`],i&&so[`--size-${i}`],!!l&&so["--duration"]),_=r-o,g=t-o,f=`${Math.max(o,Math.min(r,g))/_*100-100}%`;return s.jsx("div",N(b({role:"progressbar"},u),{className:m,"aria-label":c||(u==null?void 0:u["aria-label"]),"aria-valuemax":r,"aria-valuemin":o,"aria-valuenow":t,children:s.jsx("div",{className:so.value,style:{"--rs-progress-value":f,"--rs-progress-duration":l?`${l}ms`:void 0}})}))};gi.displayName="Progress";const Bt={root:"_root_1r02e_1",container:"_container_1r02e_17",item:"_item_1r02e_26","item--active":"_item--active_1r02e_40","item--variant-secondary":"_item--variant-secondary_1r02e_45","--color-media":"_--color-media_1r02e_50"},Ir=7,jr=Math.floor(Ir/2),bi=e=>{const{total:t,activeIndex:o=0,color:r="primary",ariaLabel:n,className:i,attributes:l}=e,c=P(Bt.root,i,r&&Bt[`--color-${r}`]),d=n?{"aria-label":n,role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":t-1}:{},u=t>Ir?Math.min(t-Ir,Math.max(0,o-jr)):0;return s.jsx("div",N(b({},l),{className:c,children:s.jsx("div",N(b({},d),{className:Bt.container,style:{"--rs-progress-indicator-mod":u},children:Array.from({length:t}).map((m,_)=>{const g=P(Bt.item,_===o&&Bt["item--active"],(_<o-(jr-1)||_>o+(jr-1))&&Bt["item--variant-secondary"]);return s.jsx("div",{className:g},_)})}))}))};bi.displayName="ProgressIndicator";const St={root:"_root_2agld_12",decorator:"_decorator_2agld_22",field:"_field_2agld_28","--size-small":"_--size-small_2agld_1","--size-medium":"_--size-medium_2agld_1","--size-large":"_--size-large_2agld_1",input:"_input_2agld_74","--error":"_--error_2agld_81","--disabled":"_--disabled_2agld_101","--size-small--m":"_--size-small--m_2agld_1","--size-medium--m":"_--size-medium--m_2agld_1","--size-large--m":"_--size-large--m_2agld_1","--size-small--l":"_--size-small--l_2agld_1","--size-medium--l":"_--size-medium--l_2agld_1","--size-large--l":"_--size-large--l_2agld_1","--size-small--xl":"_--size-small--xl_2agld_1","--size-medium--xl":"_--size-medium--xl_2agld_1","--size-large--xl":"_--size-large--xl_2agld_1"},pi=e=>{const{children:t,value:o,onChange:r,onFocus:n,onBlur:i,size:l="medium",className:c,attributes:d,inputAttributes:u}=e,m=Ze(),_=Hs(),g=(m==null?void 0:m.hasError)||e.hasError||(_==null?void 0:_.hasError),h=(m==null?void 0:m.disabled)||e.disabled||(_==null?void 0:_.disabled),v=_?_.value===o:e.checked,f=_?void 0:e.defaultChecked,p=_?_.name:e.name,y=P(St.root,c,g&&St["--error"],h&&St["--disabled"],l&&ae(St,"--size",l));return s.jsxs("label",N(b({},d),{className:y,children:[s.jsxs("span",{className:St.field,children:[s.jsx(no,{className:St.input,type:"radio",checked:v,defaultChecked:f,name:p,disabled:h,value:o,onChange:r,onFocus:n,onBlur:i,attributes:u}),s.jsx("div",{className:St.decorator})]}),t&&s.jsx(se,{as:"span",variant:ce(l,x=>x==="large"?"body-2":x==="small"?"caption-1":"body-3"),children:t})]}))};pi.displayName="Radio";const Dr={root:"_root_1t6gl_1",scrim:"_scrim_1t6gl_16","--position-cover":"_--position-cover_1t6gl_28","--position-top":"_--position-top_1t6gl_42","--position-bottom":"_--position-bottom_1t6gl_48","--position-start":"_--position-start_1t6gl_54","--position-end":"_--position-end_1t6gl_65"},vi=e=>{var h,v;const{children:t,backgroundSlot:o,position:r="cover",paddingInline:n,paddingBlock:i,padding:l,borderRadius:c,attributes:d,className:u,scrimClassName:m}=e,_=P(Dr.root,r&&Dr[`--position-${r}`],u),g=P(Dr.scrim,m);return s.jsxs(H,{borderRadius:c,attributes:d,className:_,position:o?"relative":"absolute",inset:o?void 0:0,overflow:"hidden",children:[o,s.jsx("div",{className:g,children:s.jsx(H,{paddingInline:(h=n!=null?n:l)!=null?h:4,paddingBlock:(v=i!=null?i:l)!=null?v:3,zIndex:5,height:["start","end"].includes(r)?"100%":void 0,width:["top","bottom","cover"].includes(r)?"100%":void 0,textAlign:r==="cover"?"center":void 0,children:t})})]})};vi.displayName="Scrim";const Be={root:"_root_1v9qj_1",input:"_input_1v9qj_25","input--placeholder":"_input--placeholder_1v9qj_52",slot:"_slot_1v9qj_57",arrow:"_arrow_1v9qj_72",group:"_group_1v9qj_83","group-label":"_group-label_1v9qj_94","--size-small":"_--size-small_1v9qj_1","--size-medium":"_--size-medium_1v9qj_1","--size-large":"_--size-large_1v9qj_1","--size-xlarge":"_--size-xlarge_1v9qj_1","--variant-faded":"_--variant-faded_1v9qj_158","--variant-ghost":"_--variant-ghost_1v9qj_170","--variant-headless":"_--variant-headless_1v9qj_171","--status-error":"_--status-error_1v9qj_179","--disabled":"_--disabled_1v9qj_201","--size-small--m":"_--size-small--m_1v9qj_1","--size-medium--m":"_--size-medium--m_1v9qj_1","--size-large--m":"_--size-large--m_1v9qj_1","--size-xlarge--m":"_--size-xlarge--m_1v9qj_1","--size-small--l":"_--size-small--l_1v9qj_1","--size-medium--l":"_--size-medium--l_1v9qj_1","--size-large--l":"_--size-large--l_1v9qj_1","--size-xlarge--l":"_--size-xlarge--l_1v9qj_1","--size-small--xl":"_--size-small--xl_1v9qj_1","--size-medium--xl":"_--size-medium--xl_1v9qj_1","--size-large--xl":"_--size-large--xl_1v9qj_1","--size-xlarge--xl":"_--size-xlarge--xl_1v9qj_1"},Vc=()=>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"})]}),yi=e=>{const{disabled:t,size:o}=e;return s.jsx("div",{className:Be.arrow,children:s.jsx(he,{svg:Vc,color:t?"disabled":"neutral-faded",size:ce(o,r=>r==="large"||r==="xlarge"?5:4)})})},xi=e=>{const{startSlot:t,icon:o,size:r}=e;return!t&&!o?null:o?s.jsx("div",{className:Be.slot,children:s.jsx(he,{size:ce(r,n=>n==="large"?5:n==="xlarge"?6:4),svg:o})}):s.jsx("div",{className:Be.slot,children:t})},Bc=e=>{const{startSlot:t,icon:o,size:r,inputAttributes:n,onFocus:i,onBlur:l,disabled:c,name:d,value:u,defaultValue:m,onChange:_,onClick:g,placeholder:h,id:v,children:f}=e,[p,y]=a.useState(u===void 0?!m:!u),x=P(Be.input,h&&p&&Be["input--placeholder"]),w=C=>{const z=C.target.value;u===void 0&&y(!z),_&&_({name:d,value:z,event:C})};return a.useEffect(()=>{u!==void 0&&y(!u)},[u]),s.jsxs(s.Fragment,{children:[s.jsx(xi,{startSlot:t,icon:o,size:r}),s.jsxs("select",N(b({},n),{onFocus:i||(n==null?void 0:n.onFocus),onBlur:l||(n==null?void 0:n.onBlur),onClick:g||(n==null?void 0:n.onClick),className:x,disabled:c,name:d,value:u,defaultValue:m,onChange:w,id:v,children:[h&&s.jsx("option",{value:"",children:h}),f]})),s.jsx(yi,{disabled:c,size:r})]})},wi=e=>{var g,h;const t=Ze(),o=We(e.id),r=N(b({},e),{id:((g=t==null?void 0:t.attributes)==null?void 0:g.id)||((h=e.inputAttributes)==null?void 0:h.id)||o,disabled:(t==null?void 0:t.disabled)||e.disabled,hasError:(t==null?void 0:t.hasError)||e.hasError,inputAttributes:b(b({},e.inputAttributes),t==null?void 0:t.attributes)}),{children:n,className:i,size:l="medium",variant:c="outline",hasError:d,disabled:u,attributes:m}=r,_=P(Be.root,i,l&&ae(Be,"--size",l),d&&Be["--status-error"],u&&Be["--disabled"],c&&Be[`--variant-${c}`]);return s.jsx("div",N(b({},m),{className:_,children:n(r)}))},Ci=e=>{const{children:t,disabled:o,onClick:r,onFocus:n,onBlur:i,inputAttributes:l,startSlot:c,icon:d,size:u,placeholder:m,value:_,name:g,id:h}=e;return s.jsxs(s.Fragment,{children:[s.jsxs(Ie,{className:Be.input,disabled:o,disableFocusRing:!0,onClick:r,attributes:b({onFocus:n||(l==null?void 0:l.onFocus),onBlur:i||(l==null?void 0:l.onBlur)},l),children:[s.jsx(xi,{startSlot:c,icon:d,size:u}),t?s.jsx(se,{maxLines:typeof t=="string"?1:void 0,children:t}):null,m&&!t?s.jsx(se,{color:"disabled",children:m}):null,s.jsx(yi,{disabled:o,size:u})]}),s.jsx("input",{type:"hidden",value:typeof _=="string"?_:JSON.stringify(_),name:g,id:h})]})},Ni=e=>{const{children:t}=e;return s.jsx(wi,N(b({},e),{children:o=>{const{options:r}=o,n=a.Children.toArray(t).some(l=>a.isValidElement(l)&&l.type==="option");return!(r||n)?s.jsx(Ci,N(b({},o),{children:t})):s.jsxs(Bc,N(b({},o),{children:[r==null?void 0:r.map(l=>s.jsx("option",{value:l.value,disabled:l.disabled,children:l.label},l.value)),t]}))}}))};Ni.displayName="Select";const Mo=e=>{const{label:t,children:o}=e;return s.jsxs(H,{attributes:{role:"group"},gap:1,className:Be.group,children:[t&&s.jsx("div",{className:Be["group-label"],children:s.jsx(se,{variant:"caption-1",color:"neutral-faded",children:t})}),s.jsx(H.Item,{children:o})]})};Mo.displayName="Select.Group";const Lr=e=>{const r=e,{value:t}=r,o=ve(r,["value"]);return s.jsx(ke.Item,N(b({},o),{className:[o.className,Be.option],color:"neutral",attributes:N(b({},o.attributes),{value:t,role:"option"})}))};Lr.displayName="Select.Option";const Pr=e=>{const{children:t,value:o,name:r,placeholder:n,size:i,multiple:l,width:c="trigger",position:d,fallbackPositions:u,positionRef:m,renderValue:_}=e,g=a.useRef(null),h=a.useRef(""),v=a.useRef(null),f=a.useRef(null),p=[],y=[],x=l?o.length>0:o,w=S=>a.Children.map(S,(k,$)=>{var E;if(!a.isValidElement(k))return null;if(k.type===Lr){const M=k,T=M.props,A=(l?o.includes(T.value):T.value===o)||!n&&!o&&$===0;return A&&y.push(T),p.push({value:T.value,text:typeof T.children=="string"?T.children:T.value}),a.cloneElement(M,{key:T.value,onClick:F=>{var D,V,W;if((D=T.onClick)==null||D.call(T,F),l){const K=A?o.filter(G=>G!==T.value):[...o,T.value];(V=e.onChange)==null||V.call(e,{value:K,name:r})}else(W=e.onChange)==null||W.call(e,{value:T.value,name:r})},startSlot:(T==null?void 0:T.startSlot)!==void 0?T.startSlot:x&&s.jsx(he,{svg:A?pr:null}),attributes:N(b({},M.props.attributes),{ref:A?g:void 0})})}if(k.type===Mo){const M=k,T=M.props;return a.cloneElement(M,{key:(E=T.label)!=null?E:$,children:w(T.children)})}return k}),C=w(t),z=S=>{var E;const k=S.key;if(((E=document.activeElement)==null?void 0:E.tagName)==="INPUT"||k.length!==1||!k.match(/[\w\s]/))return;v.current&&clearTimeout(v.current),h.current+=k.toLowerCase();const $=p.find(M=>M.text.toLowerCase().startsWith(h.current));if($&&f.current){const M=f.current.querySelector(`[value="${$.value}"]`);M==null||M.focus()}v.current=setTimeout(()=>{h.current=""},1e3)},I=()=>_?_(l?{value:o}:{value:o}):y.length===1?y[0].children:y.length>1?s.jsx(H,{direction:"row",gap:4,children:y.map(S=>s.jsx(H.Item,{children:S.children},S.value))}):null;return s.jsx(wi,N(b({},e),{children:S=>s.jsxs(ke,{width:c,disableHideAnimation:!0,position:d!=null?d:"bottom",fallbackPositions:u!=null?u:d?void 0:["bottom","top"],fallbackAdjustLayout:!0,fallbackMinHeight:"220px",borderRadius:ce(i,k=>k==="large"||k==="xlarge"?"medium":"small"),initialFocusRef:g,positionRef:m,children:[s.jsx(ke.Trigger,{children:k=>{const $=N(b({},S),{inputAttributes:b(b({},S.inputAttributes),k)});return s.jsx(Ci,N(b({},$),{value:o,children:I()}))}}),s.jsx(ke.Content,{attributes:{ref:f,onKeyDown:z,role:void 0},children:C})]})}))};Pr.displayName="SelectCustomControlled";const ki=e=>{const c=e,{defaultValue:t,onChange:o,multiple:r}=c,n=ve(c,["defaultValue","onChange","multiple"]),[i,l]=a.useState(t||(r?[]:""));return s.jsx(Pr,N(b({},n),{multiple:r,value:i,onChange:d=>{l(d.value),o==null||o(d)}}))};ki.displayName="SelectCustomUncontrolled";const zi=e=>{const{value:t}=e;return t!==void 0?s.jsx(Pr,b({},e)):s.jsx(ki,b({},e))};zi.displayName="SelectCustom";const io=Ni;io.Custom=zi,io.Option=Lr,io.Group=Mo,io.OptionGroup=Mo;const qc={root:"_root_xavah_1"},Si=e=>{const{borderRadius:t="small",width:o,height:r,className:n,attributes:i}=e,l=P(qc.root,n);return s.jsx(H,{backgroundColor:"disabled",width:o,height:r,borderRadius:t,className:l,attributes:i})};Si.displayName="Skeleton";const nt={root:"_root_7bdnx_1",thumb:"_thumb_7bdnx_13","thumb--active":"_thumb--active_7bdnx_13",input:"_input_7bdnx_13",bar:"_bar_7bdnx_18",selection:"_selection_7bdnx_34",tooltip:"_tooltip_7bdnx_39",thumbs:"_thumbs_7bdnx_61","--orientation-horizontal":"_--orientation-horizontal_7bdnx_1","--orientation-vertical":"_--orientation-vertical_7bdnx_1","--disabled":"_--disabled_7bdnx_220"},Ei=e=>{const t=e.toString().split(".")[1];return(t==null?void 0:t.length)||0},Ar=(e,t)=>{const o=t%1!==0,r=Math.round(e/t)*t;if(o){const n=Ei(t);return Number(r.toFixed(n))}return r},$i=({event:e,vertical:t})=>t?e instanceof MouseEvent?e.clientY:e.changedTouches[0].clientY:e instanceof MouseEvent?e.clientX:e.changedTouches[0].clientX,Fr=a.forwardRef((e,t)=>{const{name:o,value:r,disabled:n,active:i,position:l,max:c,min:d,step:u,onChange:m,onDragStart:_,renderValue:g,tooltipRef:h,inputRef:v,orientation:f}=e,p=a.useId(),y=P(nt.thumb,i&&nt["thumb--active"]),x=Ei(u),w=g?g({value:r}):r.toFixed(x),C=z=>{m(+z.target.value,{native:!0})};return s.jsxs(s.Fragment,{children:[s.jsx("input",{className:nt.input,type:"range",name:o,value:r,onChange:C,disabled:n,max:c,min:d,step:u,"aria-labelledby":p,"aria-orientation":f,ref:v}),s.jsx("div",{ref:t,className:y,onMouseDown:_,onTouchStart:_,style:{"--ts-slider-thumb-position":`${l}%`},id:p,"aria-hidden":"true",children:g!==!1&&s.jsx(Pt,{colorMode:"inverted",children:s.jsx(se,{variant:"caption-1",weight:"medium",className:nt.tooltip,attributes:{ref:h},children:w})})})]})});Fr.displayName="SliderThumb";const Ti=16,Io=e=>{var J,ue,Ee;const{name:t,range:o,max:r,min:n,step:i=1,onChange:l,onChangeCommit:c,renderValue:d,className:u,attributes:m,orientation:_="horizontal"}=e,g=Se(l),h=Se(c),v=_==="vertical",f=o&&e.minValue!==void 0?Ar(e.minValue,i):void 0,p=Ar(o?e.maxValue:e.value,i),y=(J=e.minName)!=null?J:e.name,x=(ue=e.maxName)!=null?ue:e.name,w=a.useRef(null),C=a.useRef(null),z=a.useRef(null),I=a.useRef(null),S=a.useRef(null),k=a.useRef(null),$=a.useRef(null),[E,M]=a.useState(null),[T]=at(),L=Ze(),A=We(),F=((Ee=L==null?void 0:L.attributes)==null?void 0:Ee.id)||A,D=`${F}-min`,V=`${F}-max`,W=(L==null?void 0:L.disabled)||e.disabled,K=P(nt.root,W&&nt["--disabled"],_&&nt[`--orientation-${_}`],u),G=a.useCallback(ne=>{const ie=w.current;if(!ie)return;const le=v?ie.clientHeight:ie.clientWidth,pe=ie.getBoundingClientRect()[v?"top":"left"]+Ti/2,we=ne-pe,$e=le-Ti;let Le=we/$e;(T||v)&&(Le=1-Le);let me=(r-n)*Le+n;return me=Math.max(n,Math.min(r,me)),Ar(me,i)},[r,n,T,i,v]),oe=ne=>(ne-n)/(r-n)*100,B=a.useCallback(ne=>{var Pe,He,Ne;if(v)return;const ie=ne===D?I:S,le=ne===D?C:z;let _e=0;const pe=(Pe=w.current)==null?void 0:Pe.getBoundingClientRect(),we=(He=ie.current)==null?void 0:He.getBoundingClientRect(),$e=(Ne=le.current)==null?void 0:Ne.getBoundingClientRect(),Le=pe==null?void 0:pe.left,me=Le&&Le+(pe==null?void 0:pe.width),fe=$e&&we&&$e.left-we.width/2,Xe=$e&&we&&$e.left+we.width/2;fe&&Le&&fe<Le&&(_e=we.width/2-8),Xe&&me&&Xe>me&&(_e=-(we.width/2-8));const ye=ie.current;ye&&ye.style.setProperty("--rs-slider-tooltip-offset",`${_e||0}px`)},[D,v]),R=a.useCallback((ne,ie={})=>{var _e,pe;if(!o)return;const le={minValue:ne,maxValue:p,name:t,minName:y,maxName:x};ie.commit&&((_e=h.current)==null||_e.call(h,le)),ie.native&&((pe=g.current)==null||pe.call(g,le)),yn(k.current,ne.toString())},[p,t,y,x,o,h,g]),U=a.useCallback((ne,ie={})=>{var _e,pe;const le=o?{minValue:f,maxValue:ne,name:t,minName:y,maxName:x}:{value:ne,name:t};ie.commit&&((_e=h.current)==null||_e.call(h,le)),ie.native&&((pe=g.current)==null||pe.call(g,le)),yn($.current,ne.toString())},[f,t,y,x,o,g,h]),Y=({nativeEvent:ne})=>{if(W)return;let ie,le;const _e=$i({event:ne,vertical:v}),pe=G(_e);[{ref:C,id:D},{ref:z,id:V}].forEach($e=>{if(!$e.ref.current)return;const me=$e.ref.current.getBoundingClientRect(),fe=Math.abs((v?me.top:me.left)-_e);(ie===void 0||fe<=ie)&&(ie=fe,le=$e.id)}),!(!le||pe===void 0)&&(le===D&&R(pe),le===V&&U(pe),mo(),vr(),M(le))},X=ne=>{W||(ne.stopPropagation(),M(D))},ee=ne=>{W||(ne.stopPropagation(),M(V))},ge=a.useCallback(()=>{E===D&&f!==void 0&&R(f,{commit:!0}),E===V&&U(p,{commit:!0}),ho(),yr(),M(null)},[f,p,R,U,E,D,V]),Z=a.useCallback(ne=>{if(!E)return;const ie=$i({event:ne,vertical:v}),le=G(ie);if(le===void 0)return;let _e=E;E===D&&le>p&&(_e=V),E===V&&f&&le<f&&(_e=D),_e===D&&R(le),_e===V&&U(le),E!==_e&&M(_e)},[E,f,p,G,U,R,V,D,v]);a.useEffect(()=>{B(D),B(V)},[D,V,f,p,B]),a.useEffect(()=>(window.addEventListener("mouseup",ge),window.addEventListener("touchend",ge),window.addEventListener("mousemove",Z),window.addEventListener("touchmove",Z),()=>{window.removeEventListener("mouseup",ge),window.removeEventListener("touchend",ge),window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z)}),[ge,Z]);const q=f&&oe(f),Q=oe(p);return s.jsxs("div",N(b({},m),{className:K,onMouseDown:Y,onTouchStart:Y,children:[s.jsx("div",{className:nt.bar,ref:w,children:s.jsx("div",{className:nt.selection,style:{"--rs-slider-selection-start":`${q||0}%`,"--rs-slider-selection-size":`${Q-(q||0)}%`}})}),s.jsxs("div",{className:nt.thumbs,children:[f!==void 0&&q!==void 0&&s.jsx(Fr,{id:D,active:D===E,name:y,disabled:W,onChange:R,value:f,onDragStart:X,position:q,max:r,min:n,ref:C,tooltipRef:I,inputRef:k,renderValue:d,step:i,orientation:_}),s.jsx(Fr,{id:V,active:V===E,name:x,disabled:W,onChange:U,value:p,onDragStart:ee,position:Q,max:r,min:n,ref:z,tooltipRef:S,inputRef:$,renderValue:d,step:i,orientation:_})]})]}))};Io.displayName="SliderControlled";const Mi=(e,t,o)=>Math.min(Math.max(e,t),o),Ii=e=>{const{min:t,max:o,onChange:r,range:n}=e,i="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,l="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(n?o:t),[c,d]=a.useState(Mi(i,t,o)),[u,m]=a.useState(Mi(l,t,o)),_=h=>{n||(m(h.value),r==null||r(h))},g=h=>{n&&(d(h.minValue),m(h.maxValue),r==null||r(h))};return n?s.jsx(Io,N(b({},e),{min:t,max:o,minValue:c,maxValue:u,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:g})):s.jsx(Io,N(b({},e),{min:t,max:o,value:u,defaultValue:void 0,onChange:_}))};Ii.displayName="SliderUncontrolled";const ji=e=>{const n=e,{min:t=0,max:o=100}=n,r=ve(n,["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(Io,N(b({},r),{min:t,max:o})):s.jsx(Ii,N(b({},r),{min:t,max:o}))};ji.displayName="Slider";const Di={root:"_root_1as3o_1","--animated":"_--animated_1as3o_6"},Vr=e=>{const{children:t,active:o,attributes:r}=e,n=a.useRef(null),i=a.useRef(!1),[l,c]=a.useState(o?"auto":null),d=P(Di.root,i.current&&l!=="auto"&&Di["--animated"]),u=m=>{m.propertyName==="height"&&c(o?"auto":null)};return a.useEffect(()=>{Ge(()=>{i.current=!0})},[]),be(()=>{const m=n.current;!m||!i.current||(o?(m.style.height="auto",requestAnimationFrame(()=>{const _=m.clientHeight;m.style.height="0",requestAnimationFrame(()=>{c(_)})})):(m.style.height=`${m.clientHeight}px`,requestAnimationFrame(()=>{c(0)})))},[o]),s.jsx("div",N(b({},r),{className:d,ref:n,style:l!==null?{height:l,overflow:l==="auto"?"visible":void 0}:void 0,onTransitionEnd:u,role:"region",hidden:!o&&l===null,children:t}))};Vr.displayName="Expandable";const Hc={verticalDivider:"_verticalDivider_oa23g_1"},Wc=e=>{const{title:t,subtitle:o,children:r,direction:n,className:i,attributes:l,labelDisplay:c,step:d,completed:u,active:m,last:_}=e,g=c&&ce(c,v=>v==="hidden"),h=s.jsx(H,{gap:3,grow:!0,children:s.jsxs(H.Item,{children:[s.jsx(se,{variant:"body-3",weight:"medium",children:t}),s.jsx(se,{variant:"caption-1",color:"neutral-faded",children:o})]})});return s.jsxs(H,{attributes:l,className:i,children:[s.jsxs(H,{direction:"row",gap:2,align:"center",position:"static",children:[s.jsxs(H.Item,{children:[s.jsx(H,{align:"center",justify:"center",backgroundColor:m||u?"primary":"neutral-faded",borderColor:m||u?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:s.jsx(se,{variant:"body-3",weight:m?"bold":"medium",children:u?s.jsx(he,{svg:pr,size:4}):d})}),n==="column"&&!_&&s.jsx(Kt,{vertical:!0,className:Hc.verticalDivider})]}),c?s.jsx(pt,{hide:g,children:h}):h]}),n==="column"&&r&&s.jsx(Vr,{active:m,children:s.jsx(H,{paddingStart:10,paddingTop:2,children:r})})]})},Br=e=>null,Li=e=>{const{children:t,direction:o="row",activeId:r,labelDisplay:n,gap:i=3,className:l,attributes:c}=e,d=o==="column",u=a.Children.count(t);return s.jsx(H,{attributes:c,direction:o,align:d?"stretch":"center",className:l,gap:i,wrap:!1,children:a.Children.map(t,(m,_)=>{if(!a.isValidElement(m)||m.type!==Br)return null;const g=m.props,h=g.id||`${_}`;return s.jsxs(a.Fragment,{children:[s.jsx(Wc,N(b({},g),{id:h,active:(r==null?void 0:r.toString())===h,step:_+1,last:_===u-1,direction:o,labelDisplay:n})),!d&&_<u-1&&s.jsx(H,{grow:!0,children:s.jsx(Kt,{})})]},_)})})};Li.displayName="Stepper",Br.displayName="Stepper.Item";const Pi=Li;Pi.Item=Br;const Et={root:"_root_icbs0_1","--reversed":"_--reversed_icbs0_9",input:"_input_icbs0_14",area:"_area_icbs0_26",thumb:"_thumb_icbs0_30",hitbox:"_hitbox_icbs0_76","--size-small":"_--size-small_icbs0_1","--size-medium":"_--size-medium_icbs0_1","--size-large":"_--size-large_icbs0_1","--size-small--m":"_--size-small--m_icbs0_1","--size-medium--m":"_--size-medium--m_icbs0_1","--size-large--m":"_--size-large--m_icbs0_1","--size-small--l":"_--size-small--l_icbs0_1","--size-medium--l":"_--size-medium--l_icbs0_1","--size-large--l":"_--size-large--l_icbs0_1","--size-small--xl":"_--size-small--xl_icbs0_1","--size-medium--xl":"_--size-medium--xl_icbs0_1","--size-large--xl":"_--size-large--xl_icbs0_1"},Ai=e=>{var x;const{children:t,name:o,checked:r,size:n="medium",reversed:i,defaultChecked:l,onChange:c,onFocus:d,onBlur:u,className:m,attributes:_}=e,g=P(Et.root,n&&ae(Et,"--size",n),i&&Et["--reversed"],m),h=Ze(),v=We((h==null?void 0:h.attributes.id)||e.id||((x=e.inputAttributes)==null?void 0:x.id)),f=b(b({},e.inputAttributes),h==null?void 0:h.attributes),p=(h==null?void 0:h.disabled)||e.disabled,y=w=>{c&&c({name:o,event:w,checked:w.target.checked})};return s.jsxs("label",N(b({},_),{className:g,children:[s.jsx("input",N(b({type:"checkbox"},f),{className:Et.input,name:o,checked:r,defaultChecked:l,disabled:p,onChange:y,onFocus:d||(f==null?void 0:f.onFocus),onBlur:u||(f==null?void 0:f.onBlur),id:v})),s.jsxs("span",{className:Et.area,"aria-hidden":"true",children:[s.jsx("span",{className:Et.hitbox}),s.jsx("span",{className:Et.thumb})]}),t&&s.jsx(se,{variant:ce(n,w=>w==="large"?"body-2":w==="medium"?"body-3":"caption-1"),weight:"medium",color:p?"disabled":void 0,children:t})]}))};Ai.displayName="Switch";const Fi=(e,t={})=>{const{disabled:o}=t,[r]=at(),[n,i]=a.useState(null),l=a.useCallback(()=>{const c=e.current;if(!c)return;c.clientWidth<c.scrollWidth||i(null);const u=c.scrollLeft*(r?-1:1),m=u>1,_=u+c.clientWidth<c.scrollWidth-1;if(_&&m)return i("both");if(m)return i("start");if(_)return i("end")},[r,e]);return be(()=>{const c=e.current;if(!c||o)return;const d=tr(l);return requestAnimationFrame(()=>l()),window.addEventListener("resize",d),c.addEventListener("scroll",d),()=>{window.removeEventListener("resize",d),c.removeEventListener("scroll",d)}},[r,o]),n},qe={root:"_root_xlh1v_13",table:"_table_xlh1v_26",row:"_row_xlh1v_32",cell:"_cell_xlh1v_46",head:"_head_xlh1v_61",body:"_body_xlh1v_61","cell--align-start":"_cell--align-start_xlh1v_1","cell--align-center":"_cell--align-center_xlh1v_1","cell--align-end":"_cell--align-end_xlh1v_1","cell--valign-start":"_cell--valign-start_xlh1v_1","cell--valign-center":"_cell--valign-center_xlh1v_1","cell--valign-end":"_cell--valign-end_xlh1v_1","cell--width-auto":"_cell--width-auto_xlh1v_77","--row-highlighted":"_--row-highlighted_xlh1v_81","--border-outer":"_--border-outer_xlh1v_85","--border-column":"_--border-column_xlh1v_90","--fade-start":"_--fade-start_xlh1v_100","--fade-end":"_--fade-end_xlh1v_101"},Vi=e=>{const{minWidth:t,rowSpan:o,colSpan:r,align:n,verticalAlign:i,tagName:l,padding:c,paddingInline:d,paddingBlock:u,children:m,className:_,attributes:g}=e,h=e.width==="auto"?"0px":e.width,v=Qe({width:h,minWidth:t}),f=P(qe.cell,v.classNames,(h===0||h==="0px")&&qe["cell--width-auto"],n&&qe[`cell--align-${n}`],i&&qe[`cell--valign-${i}`],_),p=b(b(b({},v.variables),O("--rs-table-p-vertical",u!=null?u:c)),O("--rs-table-p-horizontal",d!=null?d:c));return s.jsx(l,N(b({},g),{className:f,rowSpan:o,colSpan:r,style:p,children:m}))},Bi=e=>s.jsx(Vi,N(b({},e),{tagName:"td"})),qi=e=>s.jsx(Vi,N(b({},e),{tagName:"th"})),Hi=e=>{const{highlighted:t,children:o,className:r,attributes:n}=e,i=e.onClick||(n==null?void 0:n.onClick),l=P(qe.row,t&&qe["--row-highlighted"],r);return s.jsx("tr",N(b({},n),{className:l,onClick:i,tabIndex:i?0:void 0,children:o}))},jo=e=>{const{children:t,attributes:o,className:r}=e;return s.jsx("tbody",N(b({},o),{className:P(qe.body,r),children:t}))},qr=e=>{const{children:t,attributes:o,className:r}=e;return s.jsx("thead",N(b({},o),{className:P(qe.head,r),children:t}))},Wi=e=>{const{children:t,border:o,columnBorder:r,className:n,attributes:i}=e,l=a.useRef(null),c=Fi(l),d=P(qe.root,n,o&&qe["--border-outer"],r&&qe["--border-column"],(c==="start"||c==="both")&&qe["--fade-start"],(c==="end"||c==="both")&&qe["--fade-end"]),[u]=a.Children.toArray(t),m=a.isValidElement(u),_=m&&u.type===jo,g=m&&u.type===qr;return s.jsx("div",N(b({},i),{className:d,ref:l,children:s.jsx("table",{className:qe.table,children:_||g?t:s.jsx(jo,{children:t})})}))};Wi.displayName="Table",Bi.displayName="TableCell",qi.displayName="TableHeading",Hi.displayName="TableRow",jo.displayName="TableBody",qr.displayName="TableHead";const qt=Wi;qt.Cell=Bi,qt.Heading=qi,qt.Row=Hi,qt.Body=jo,qt.Head=qr;const Oi=a.createContext({}),Oc=Oi.Provider,Hr=e=>{const r=a.useContext(Oi),{id:t}=r,o=ve(r,["id"]);return N(b({},o),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Wr=e=>{const{children:t,value:o,onChange:r,onSilentChange:n,itemWidth:i,variant:l,name:c,disableSelectionAnimation:d,direction:u="row",size:m="medium"}=e,_=We(),g=a.useRef(null),h=a.useRef(g.current),v=a.useRef(null),[f,p]=a.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=x=>{x!==void 0&&n&&n({value:x,name:c})};return s.jsx(Oc,{value:{value:o,name:c,size:m,direction:u,itemWidth:i,variant:l,onChange:r,id:_,setDefaultValue:y,elActiveRef:g,elPrevActiveRef:h,elScrollableRef:v,selection:f,setSelection:p,disableSelectionAnimation:d},children:t})};Wr.displayName="TabsControlled";const Ui=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=a.useState(t),i=({value:c})=>{n(c),o&&o({value:c})},l=({value:c})=>{n(c)};return s.jsx(Wr,N(b({},e),{onChange:i,onSilentChange:l,value:r,defaultValue:void 0}))};Ui.displayName="TabsUncontrolled";const Yi=e=>{const{value:t}=e;return t!==void 0?s.jsx(Wr,b({},e)):s.jsx(Ui,b({},e))};Yi.displayName="Tabs";const de={root:"_root_daddq_25",inner:"_inner_daddq_39",list:"_list_daddq_48",listItem:"_listItem_daddq_53",button:"_button_daddq_58",buttonContent:"_buttonContent_daddq_85",icon:"_icon_daddq_93",radio:"_radio_daddq_102",item:"_item_daddq_106","item--active":"_item--active_daddq_114","item--disabled":"_item--disabled_daddq_119",selector:"_selector_daddq_125","selector--hidden":"_selector--hidden_daddq_148","selector--animated":"_selector--animated_daddq_152",control:"_control_daddq_159","control--active":"_control--active_daddq_170","control--next":"_control--next_daddq_179","control--prev":"_control--prev_daddq_183",panel:"_panel_daddq_188","panel--hidden":"_panel--hidden_daddq_195","--scrollable":"_--scrollable_daddq_200","--direction-row":"_--direction-row_daddq_225","--direction-column":"_--direction-column_daddq_267","--variant-borderless":"_--variant-borderless_daddq_312","--variant-pills":"_--variant-pills_daddq_313","--variant-pills-elevated":"_--variant-pills-elevated_daddq_314","--size-medium":"_--size-medium_daddq_394","--size-large":"_--size-large_daddq_399","--item-width-equal":"_--item-width-equal_daddq_404",buttonText:"_buttonText_daddq_422","--fade-start":"_--fade-start_daddq_432","--fade-end":"_--fade-end_daddq_433"},Or=a.forwardRef((e,t)=>{const{value:o,children:r,icon:n,href:i,disabled:l,attributes:c}=e,{onChange:d,panelId:u,buttonId:m,name:_,size:g,value:h,selection:v,elActiveRef:f,elPrevActiveRef:p,elScrollableRef:y}=Hr(o),x=a.useRef(null),w=h===o,C=w&&v.status==="idle",z=P(de.item,C&&de["item--active"],l&&de["item--disabled"]),I=!!_,S={role:"tab",tabIndex:w?0:-1,"aria-selected":w},k=a.useCallback(()=>{p.current=f.current,f.current=x.current},[f,p]),$=()=>{var W,K;if(i&&!d)return;const E=y.current,M=(W=x.current)==null?void 0:W.parentElement,T=(K=f.current)==null?void 0:K.parentElement;if(d&&d({value:o,name:_}),!E||!M||!T||E.scrollWidth===E.clientWidth||!y.current)return;const L=48,A=x.current&&Ea(x.current,G=>G.hasAttribute("data-rs-tabs-item"));if(!A)return;const F=y.current,D=A.offsetLeft-F.scrollLeft,V=F.scrollLeft+F.clientWidth-(A.offsetLeft+A.clientWidth);(D<L||V<L)&&y.current.scrollTo({left:A.offsetLeft+A.clientWidth/2-F.clientWidth/2,behavior:"smooth"})};return be(()=>{w&&k()},[w,k]),s.jsx("div",N(b({},c),{className:z,ref:x,role:"presentation",children:s.jsxs(Ie,{ref:t,href:i,disableFocusRing:!0,disabled:l,onClick:_?void 0:$,className:de.button,as:_?"label":void 0,attributes:N(b({},!I&&S),{"aria-controls":u,id:m}),children:[_&&s.jsx(no,{type:"radio",name:_,value:o,checked:C,onChange:$,className:de.radio}),s.jsxs("span",{className:de.buttonContent,children:[n&&s.jsx(he,{svg:n,className:de.icon,size:4}),r&&s.jsx(se,{variant:g==="large"?"body-2":"body-3",weight:"medium",className:de.buttonText,children:r})]})]})}))});Or.displayName="Tabs.Item";const Ur=e=>{const{ref:t,disabled:o,orientation:r,circular:n}=e,i=[],l=[];(!r||r==="vertical")&&(i.push("ArrowUp"),l.push("ArrowDown")),(!r||r==="horizontal")&&(i.push("ArrowLeft"),l.push("ArrowRight"));const c=a.useCallback(d=>{var h;const{el:u,focusableElements:m}=d,_=m.find(v=>v.getAttribute("tabindex")!=="-1"),g=(h=u!=null?u:_)!=null?h:m[0];m.forEach(v=>v.setAttribute("tabindex","-1")),g==null||g.setAttribute("tabindex","0")},[]);a.useEffect(()=>{if(!t.current||o)return;const d=Zt(t.current);c({focusableElements:d})},[t,c,o]),Ke({[i.join(", ")]:()=>{if(!t.current)return;const d=Ta(t.current,{circular:n});c(d)},[l.join(", ")]:()=>{if(!t.current)return;const d=$a(t.current,{circular:n});c(d)},Home:()=>{if(!t.current)return;const d=Ma(t.current);c(d)},End:()=>{if(!t.current)return;const d=Ia(t.current);c(d)}},[c,n],{ref:t,preventDefault:!0,disabled:o})},Ki=(e,t)=>e===t||!e?null:e.classList.contains(de.listItem)?e:Ki(e.parentElement,t),Gi=e=>{const{children:t,className:o,attributes:r}=e,{value:n,setDefaultValue:i,itemWidth:l,variant:c,name:d,direction:u,size:m,selection:_,setSelection:g,elActiveRef:h,elPrevActiveRef:v,elScrollableRef:f,disableSelectionAnimation:p}=Hr(),[y]=at(),x=Fi(f,{disabled:l==="equal"}),w=P(de.root,m&&de[`--size-${m}`],u&&de[`--direction-${u}`],l&&de[`--item-width-${l}`],c&&de[`--variant-${c}`],x&&de["--scrollable"],(x==="start"||x==="both")&&de["--fade-start"],(x==="end"||x==="both")&&de["--fade-end"],o),C=P(de.selector,_.status==="idle"&&de["selector--hidden"],_.status==="animated"&&de["selector--animated"]),z=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},I=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},S=()=>{g($=>N(b({},$),{status:"idle"}))},k=a.useCallback($=>{if(!f.current)return null;const E=Ki($,f.current);return E?{scaleX:E.clientWidth,scaleY:E.clientHeight,top:E.offsetTop,left:E.offsetLeft}:null},[f]);return Ur({ref:f,disabled:!!d}),be(()=>{if(n)return;const $=a.Children.toArray(t)[0];if(!a.isValidElement($)||!$||$.type!==Or)return;const E=$.props;i(E.value)},[n]),be(()=>{if(!v.current||v.current===h.current)return;const $=k(v.current);if($){if(p){g(N(b({},$),{status:"idle"}));return}g(N(b({},$),{status:"prepared"}))}},[n,k,p]),be(()=>{if(_.status!=="prepared"||!h.current)return;const $=k(h.current);$&&g(N(b({},$),{status:"animated"}))},[_]),s.jsxs("div",N(b({},r),{className:w,children:[s.jsx("div",{className:de.inner,ref:f,children:s.jsxs("div",{className:de.list,role:"tablist",children:[a.Children.map(t,($,E)=>{if(!a.isValidElement($))return null;const M=$.props;return s.jsx("div",{className:de.listItem,"data-rs-tabs-item":!0,children:$},M.value||$.key||E)}),!p&&s.jsx("div",{onTransitionEnd:S,className:C,style:{"--rs-tab-selection-x":_.left,"--rs-tab-selection-y":_.top,"--rs-tab-selection-scale-x":_.scaleX,"--rs-tab-selection-scale-y":_.scaleY}})]})}),s.jsx(Ie,{onClick:I,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[de.control,de["control--prev"],(x==="start"||x==="both")&&de["control--active"]],children:s.jsx(he,{svg:zo,size:5})}),s.jsx(Ie,{onClick:z,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[de.control,de["control--next"],(x==="end"||x==="both")&&de["control--active"]],children:s.jsx(he,{svg:At,size:5})})]}))};Gi.displayName="Tabs.List";const Xi=e=>{const{value:t,children:o,className:r,attributes:n}=e,{value:i,panelId:l,buttonId:c}=Hr(t),[d,u]=a.useState(!0),m=a.useRef(null),_=t===i,g=P(de.panel,!_&&de["panel--hidden"],r);return a.useEffect(()=>{const h=m.current;if(!h)return;const v=()=>{u(!Zt(h).length)};v();const f=new MutationObserver(v);return f.observe(h,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex","disabled","href"]}),()=>f.disconnect()},[]),s.jsx("div",N(b({},n),{ref:m,className:g,tabIndex:d?0:void 0,role:"tabpanel",id:l,"aria-labelledby":c,children:_&&o}))};Xi.displayName="Tabs.Panel";const Do=Yi;Do.Item=Or,Do.List=Gi,Do.Panel=Xi;const $t={root:"_root_72pr2_1",input:"_input_72pr2_20","--size-medium":"_--size-medium_72pr2_1","--size-large":"_--size-large_72pr2_1","--size-xlarge":"_--size-xlarge_72pr2_1","--variant-faded":"_--variant-faded_72pr2_87","--variant-ghost":"_--variant-ghost_72pr2_95","--variant-headless":"_--variant-headless_72pr2_103","--status-error":"_--status-error_72pr2_111","--resize-none":"_--resize-none_72pr2_122","--resize-auto":"_--resize-auto_72pr2_123","--size-medium--m":"_--size-medium--m_72pr2_1","--size-large--m":"_--size-large--m_72pr2_1","--size-xlarge--m":"_--size-xlarge--m_72pr2_1","--size-medium--l":"_--size-medium--l_72pr2_1","--size-large--l":"_--size-large--l_72pr2_1","--size-xlarge--l":"_--size-xlarge--l_72pr2_1","--size-medium--xl":"_--size-medium--xl_72pr2_1","--size-large--xl":"_--size-large--xl_72pr2_1","--size-xlarge--xl":"_--size-xlarge--xl_72pr2_1"},Qi=e=>{var S,k;const{onChange:t,onFocus:o,onBlur:r,name:n,value:i,defaultValue:l,placeholder:c,size:d="medium",variant:u="outline",resize:m,className:_,attributes:g}=e,[h,v]=a.useState(i||l||""),f=Ze(),p=We(e.id),y=((S=f==null?void 0:f.attributes)==null?void 0:S.id)||((k=e.inputAttributes)==null?void 0:k.id)||p,x=(f==null?void 0:f.disabled)||e.disabled,w=(f==null?void 0:f.hasError)||e.hasError,C=b(b({},e.inputAttributes),f==null?void 0:f.attributes),z=P($t.root,d&&ae($t,"--size",d),w&&$t["--status-error"],x&&$t["--disabled"],u&&$t[`--variant-${u}`],m!==void 0&&$t[`--resize-${m}`],_),I=$=>{const E=$.target.value;t==null||t({name:n,value:E,event:$}),m==="auto"&&typeof i!="string"&&v(E)};return a.useEffect(()=>{typeof i!="string"||m!=="auto"||v(i)},[i,m]),s.jsx("div",N(b({},g),{"data-rs-aligner-target":!0,className:z,"data-rs-textarea-value":h,children:s.jsx("textarea",N(b({rows:3},C),{className:$t.input,disabled:x,name:n,placeholder:c,value:i,defaultValue:l,onChange:I,onFocus:o||(C==null?void 0:C.onFocus),onBlur:r||(C==null?void 0:C.onBlur),id:y}))}))};Qi.displayName="TextArea";const Zi=Qi;Zi.Aligner=Jt;const Yr={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Lo=e=>{const{children:t,markerSlot:o,className:r,attributes:n}=e,i=o!==null,l=P(Yr.item,!i&&Yr["item--full-width"],r);return s.jsxs(H,{as:"li",direction:"row",align:"stretch",gap:3,attributes:n,className:l,children:[i&&s.jsx("span",{className:Yr.marker,children:o}),s.jsx(H.Item,{grow:!0,children:t})]})},Ji=e=>{const{children:t,className:o,attributes:r}=e,n=P(o);return s.jsx("ul",N(b({},r),{className:n,children:a.Children.map(t,(i,l)=>a.isValidElement(i)&&i.type===Lo?i:s.jsx(Lo,{children:i},l))}))};Ji.displayName="Timeline",Lo.displayName="Timeline.Item";const Ri=Ji;Ri.Item=Lo;const el={short:4e3,long:8e3},lo=["top-start","top","top-end","bottom-start","bottom","bottom-end"],tl={queues:lo.reduce((e,t)=>b({[t]:[]},e),{}),id:"",show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},Po=a.createContext(tl),ol=()=>{const{add:e,hide:t,id:o}=a.useContext(Po);return a.useMemo(()=>({show:e,hide:t,id:o}),[e,t,o])},Re={container:"_container_13298_1","container--visible":"_container--visible_13298_1",wrapper:"_wrapper_13298_12","container--index-0":"_container--index-0_13298_1","container--index-1":"_container--index-1_13298_1","container--index-2":"_container--index-2_13298_112","container--index-overflow":"_container--index-overflow_13298_116",region:"_region_13298_65","region--nested":"_region--nested_13298_1","region--position-top":"_region--position-top_13298_1","region--position-top-start":"_region--position-top-start_13298_1","region--position-top-end":"_region--position-top-end_13298_1","region--position-bottom":"_region--position-bottom_13298_1","region--position-bottom-start":"_region--position-bottom-start_13298_1","region--position-bottom-end":"_region--position-bottom-end_13298_1"},rl=e=>{const{size:t="small",text:o,children:r,color:n="inverted",icon:i,title:l,actionsSlot:c,startSlot:d,collapsed:u,className:m,attributes:_}=e;let g=n==="inverted"||n==="neutral"?"elevation-overlay":n;n==="neutral"&&(g=u?"neutral":"elevation-overlay");const h=n==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",f=t==="large";let p=[];c&&(p=Array.isArray(c)?c:[c]);const y=(l||o)&&s.jsxs(a.Fragment,{children:[l&&s.jsxs(se,{variant:"body-3",weight:"bold",as:v,children:[l," "]}),s.jsx(se,{variant:"body-3",as:v,children:o})]}),x=s.jsxs(H,{backgroundColor:g,borderColor:h,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:f?"start":"center",className:[Re.toast,m],attributes:_,children:[i&&s.jsx(he,{size:5,svg:i,className:Re.icon}),d&&!i&&s.jsx(H.Item,{children:d}),s.jsx(H.Item,{grow:!0,children:s.jsxs(H,{direction:f?"column":"row",align:f?"start":"center",gap:3,children:[s.jsx(H.Item,{grow:!0,children:y&&r||t!=="small"?s.jsxs(H,{gap:.5,children:[y,r&&s.jsx(H,{gap:3,children:r})]}):y||r}),p.length&&s.jsx(H,{direction:"row",align:"center",gap:2,children:p.map((w,C)=>{const z=t==="large"?C===0:C===p.length-1,S={variant:z?"solid":"ghost",size:"small",color:z?n==="neutral"||n==="inverted"?"neutral":"media":"inherit",elevated:n!=="neutral"};return w.type===Me?a.createElement(Me,N(b(b({},S),w.props),{key:C})):w})})]})})]});return n==="inverted"?s.jsx(Pt,{colorMode:"inverted",children:x}):x};rl.displayName="Toast";const nl=e=>{const{toastProps:t,id:o,status:r,inspected:n,index:i}=e,{timeout:l="short"}=t,{show:c,hide:d,remove:u}=a.useContext(Po),[m,_]=a.useState(),g=a.useRef(null),h=a.useRef(!1),v=a.useRef(null),f=r==="entered",p=P(Re.container,f&&Re["container--visible"],i===0&&Re[`container--index-${i}`],!n&&(i===1||i===2)&&Re[`container--index-${i}`],!n&&i>=3&&Re["container--index-overflow"]),y=a.useCallback(()=>{g.current&&clearTimeout(g.current)},[]),x=a.useCallback(()=>{y();const C=typeof l=="string"?el[l]:l;l!==0&&(g.current=setTimeout(()=>{d(o)},C!=null?C:el.short))},[d,o,l,y]),w=C=>{C.propertyName==="height"&&(f||u(o))};return a.useEffect(()=>{f&&(n?y():x())},[n,x,y,f]),a.useEffect(()=>{v.current&&_(v.current.clientHeight),c(o),x()},[c,o,x]),a.useEffect(()=>{if(!v.current)return;const C=new Dt;f?C.trap(v.current,{includeTrigger:!0,mode:"content-menu"}):po()&&C.release()},[f]),a.useEffect(()=>{if(!f||i>0)return;const C=()=>{h.current=!0,Ge(()=>{h.current=!1}),v.current&&_(v.current.clientHeight)};return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[f,i]),s.jsx("li",{className:p,style:{height:r==="entered"?`calc(${m}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:h.current?"0s":void 0},onTransitionEnd:w,onFocus:y,onBlur:x,children:s.jsx("span",{className:Re.wrapper,children:s.jsx(rl,N(b({},t),{collapsed:i>0&&!n,attributes:N(b({},t.attributes),{ref:v})}))})})};nl.displayName="ToastContainer";const sl=e=>{const{position:t,nested:o}=e,{queues:r,options:n}=a.useContext(Po),[i,l]=a.useState(!1),c=a.useRef(!1),d=a.useRef(null),u=r[t],{width:m,expanded:_}=(n==null?void 0:n[t])||{},g=P(Re.region,Re[`region--position-${t}`],o&&Re["region--nested"]),h=u.filter(w=>w.status==="entered").length;let v=0;const f=()=>{c.current=!0},p=w=>{let C=w.target,z=!1;for(;C&&C!==d.current&&!z;)z=C.matches(xn),C=C.parentElement;z||l(I=>!I),c.current=!1},y=()=>{c.current||l(!0)},x=()=>{c.current||l(!1)};return a.useEffect(()=>{u.length===0&&l(!1)},[u.length]),u.length?s.jsx("ul",{role:"region","aria-live":"polite",className:g,ref:d,onTouchStart:f,onClick:p,onMouseEnter:y,onMouseLeave:x,style:{width:m},children:u.map((w,C)=>{const z=h-C+v-1;return w.status!=="entered"&&(v+=1),s.jsx(nl,N(b({},w),{index:z,inspected:i||!!_}),w.id)})}):null};sl.displayName="ToastRegion";let Uc=0;const Yc=()=>`__rs-toast-${Uc++}`,Kc=(e,t)=>{let o;switch(t.type){case"add":{const r=t.payload.toastProps||{},{position:n="bottom-end"}=r,i=ve(r,["position"]);return N(b({},e),{[n]:[...e[n],{id:t.payload.id,toastProps:i,status:"entering"}]})}case"show":{const{id:n}=t.payload;return o=b({},e),lo.forEach(i=>{o[i]=o[i].map(l=>l.status!=="entering"?l:l.id===n?N(b({},l),{status:"entered"}):l)}),o}case"hide":{const{id:n}=t.payload;return o=b({},e),lo.forEach(i=>{o[i]=o[i].map(l=>l.id===n?N(b({},l),{status:"exiting"}):l)}),o}case"remove":{const{id:n}=t.payload;return o=b({},e),lo.forEach(i=>{o[i]=o[i].filter(l=>l.id!==n)}),o}}},Kr=e=>{const{children:t,options:o}=e,r=ol(),n=a.useId(),[i,l]=a.useReducer(Kc,tl.queues),c=a.useCallback(g=>{const h=Yc();return l({type:"add",payload:{toastProps:g,id:h}}),h},[]),d=a.useCallback(g=>{l({type:"show",payload:{id:g}})},[]),u=a.useCallback(g=>{l({type:"hide",payload:{id:g}})},[]),m=a.useCallback(g=>{l({type:"remove",payload:{id:g}})},[]),_=a.useMemo(()=>({queues:i,id:n,add:c,show:d,hide:u,remove:m,inspecting:!1,options:o}),[i,d,u,c,m,n,o]);return s.jsxs(Po.Provider,{value:_,children:[t,lo.map(g=>s.jsx(sl,{position:g,nested:!!r.id},g))]})};Kr.displayName="ToastProiver";const il=a.createContext(null),Gc=()=>a.useContext(il),Gr=e=>{const m=e,{onChange:t,value:o,selectionMode:r="single",children:n,color:i,selectedColor:l}=m,c=ve(m,["onChange","value","selectionMode","children","color","selectedColor"]),d=a.useRef(null),u=_=>{const{event:g,value:h,checked:v}=_;if(!h)return;let f=r==="single"?[h]:[...o];r==="multiple"&&(v?f.push(h):f=f.filter(p=>p!==h)),t&&t({value:f,event:g})};return Ur({ref:d}),s.jsx(il.Provider,{value:{onChange:u,value:o,selectedColor:l,color:i},children:s.jsx(Me.Group,N(b({},c),{attributes:b({ref:d},c==null?void 0:c.attributes),children:n}))})};Gr.displayName="ToggleButtonGroupControlled";const ll=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=a.useState(t||[]),i=l=>{l.value&&(n(l.value),o&&o(l))};return s.jsx(Gr,N(b({},e),{value:r,defaultValue:void 0,onChange:i}))};ll.displayName="ToggleButtonGroupUncontrolled";const al=e=>{const{value:t}=e;return t!==void 0?s.jsx(Gr,b({},e)):s.jsx(ll,b({},e))};al.displayName="ToggleButtonGroup";const Xr=e=>{var h,v,f;const g=e,{variant:t="outline",selectedColor:o,value:r,onChange:n,onClick:i,color:l}=g,c=ve(g,["variant","selectedColor","value","onChange","onClick","color"]),d=Gc(),u=(v=r?(h=d==null?void 0:d.value)==null?void 0:h.includes(r):void 0)!=null?v:e.checked,m=u&&(o||(d==null?void 0:d.selectedColor))||l||(d==null?void 0:d.color),_=p=>{var x;const y={checked:!u,value:r!=null?r:"",event:p};i==null||i(p),d?(x=d==null?void 0:d.onChange)==null||x.call(d,y):n==null||n(y)};return s.jsx(Me,N(b({},c),{color:m,variant:t,onClick:_,highlighted:u,attributes:N(b({},c.attributes),{"aria-pressed":u,tabIndex:(f=d==null?void 0:d.value)!=null&&f.length?u?0:-1:void 0})}))};Xr.displayName="ToggleButtonControlled";const cl=e=>{const l=e,{defaultChecked:t,onChange:o}=l,r=ve(l,["defaultChecked","onChange"]),n=kt(t),i=c=>{o==null||o(c),n.toggle(c.checked)};return s.jsx(Xr,N(b({},r),{onChange:i,checked:n.active}))};cl.displayName="ToggleButtonUncontrolled";const dl=e=>{const{checked:t}=e;return t!==void 0?s.jsx(Xr,b({},e)):s.jsx(cl,b({},e))};dl.displayName="ToggleButton";const Xc={root:"_root_1vb26_1"},ul=e=>{const c=e,{text:t,children:o,position:r="bottom",color:n="inverted",contentMaxWidth:i="360px"}=c,l=ve(c,["text","children","position","color","contentMaxWidth"]);return t?s.jsxs(ct,N(b({},l),{position:r,triggerType:"hover",groupTimeouts:l.active===void 0,contentMaxWidth:i,children:[s.jsx(ct.Trigger,{children:o}),s.jsx(ct.Content,{children:s.jsx(Pt,{colorMode:n,children:s.jsx(se,{variant:"caption-1",className:Xc.root,children:t})})})]})):o({ref:null})};ul.displayName="Tooltip";const _l=a.createContext({disabledRef:null,disable:()=>{},enable:()=>{},activate:()=>{},deactivate:()=>{}}),Qc=e=>{const t=a.useRef(!1),o=a.useCallback(()=>{t.current=!0},[]),r=a.useCallback(()=>{t.current=!1},[]),n=a.useCallback(()=>{t.current||ja()},[]),i=a.useCallback(()=>{t.current||Da()},[]),l=a.useCallback(u=>{u.metaKey||u.altKey||u.ctrlKey||u.key!==La&&n()},[n]),c=a.useCallback(()=>{i()},[i]);a.useEffect(()=>(window.addEventListener("keydown",l),window.addEventListener("mousedown",c),()=>{window.removeEventListener("keydown",l),window.removeEventListener("mousedown",c)}),[c,l]);const d=a.useMemo(()=>({disabledRef:t,disable:o,enable:r,activate:n,deactivate:i}),[o,r,n,i]);return s.jsx(_l.Provider,{value:d,children:e.children})},Zc={root:"_root_1cpr1_1"},Jc=e=>{const{children:t,defaultRTL:o,defaultViewport:r="s",toastOptions:n}=e,i=za(o);return s.jsx(Qc,{children:s.jsx(Yo.Provider,{value:{rtl:i,defaultViewport:r},children:s.jsx(Na,{children:s.jsx(Kr,{options:n,children:t})})})})},ml=e=>{const{theme:t,defaultTheme:o="reshaped",colorMode:r,defaultColorMode:n,scoped:i,className:l}=e,c=P(Zc.root,l),d=a.useRef(null),u=Ro();return s.jsx(An,{defaultMode:n||u.mode||"light",mode:r,scopeRef:u&&i?d:void 0,children:s.jsx(Pn,{name:t,defaultName:o,className:c,scoped:i,scopeRef:u&&i?d:void 0,children:s.jsx(Jc,N(b({},e),{children:e.children}))})})};ml.displayName="Reshaped";const Qr=a.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Zr=e=>{const{children:t,onToggle:o,active:r,iconPosition:n,iconSize:i,gap:l,className:c,attributes:d}=e,u=P(c),m=We(),_=Se(o),g=a.useMemo(()=>({triggerId:`${m}-trigger`,contentId:`${m}-content`,active:r,onToggle:_.current,iconPosition:n,iconSize:i,gap:l}),[r,n,i,m,_,l]);return s.jsx("div",N(b({},d),{className:u,children:s.jsx(Qr.Provider,{value:g,children:t})}))};Zr.displayName="AccordionControlled";const hl=e=>{const c=e,{defaultActive:t,onToggle:o}=c,r=ve(c,["defaultActive","onToggle"]),[n,i]=a.useState(t||!1),l=d=>{i(d),o==null||o(d)};return s.jsx(Zr,N(b({},r),{onToggle:l,active:n}))};hl.displayName="AccordionUncontrolled";const fl=e=>{const{active:t}=e;return t!==void 0?s.jsx(Zr,b({},e)):s.jsx(hl,b({},e))};fl.displayName="Accordion";const gl=e=>{const{children:t}=e,{active:o,triggerId:r,contentId:n,gap:i}=a.useContext(Qr);return s.jsx(Vr,{active:o,attributes:{"aria-labelledby":r,id:n},children:i?s.jsx(H,{paddingTop:i,children:t}):t})};gl.displayName="Accordion.Content";const bl={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},pl=e=>{const{children:t}=e,{active:o,onToggle:r,triggerId:n,contentId:i,iconPosition:l="end",iconSize:c}=a.useContext(Qr),d=P(bl.icon,o&&bl["icon--active"]),u=()=>{r==null||r(!o)},m={"aria-expanded":o,"aria-controls":i,id:n};return typeof t=="function"?s.jsx(s.Fragment,{children:t(N(b({},m),{onClick:u}),{active:o})}):s.jsx(Ie,{onClick:u,fullWidth:!0,attributes:m,children:s.jsxs(H,{gap:2,direction:l==="start"?"row-reverse":"row",align:"center",children:[s.jsx(H.Item,{grow:!0,children:t}),s.jsx(he,{size:c||4,svg:ii,className:d})]})})};pl.displayName="Accordion.Trigger";const Jr=fl;Jr.Trigger=pl,Jr.Content=gl;const Rc={root:"_root_1yz7x_1"},vl=e=>{const{children:t,padding:o=4,width:r,align:n,justify:i,height:l,maxHeight:c,className:d,attributes:u}=e,m=P(Rc.root,d);return s.jsx(H,{attributes:u,className:m,paddingInline:o,align:n,justify:i,height:l,maxHeight:c,width:r,maxWidth:"100%",children:t})};vl.displayName="Container";const yl={root:"_root_3bv1t_1",item:"_item_3bv1t_67"},xl=e=>{const{area:t,colStart:o,colEnd:r,colSpan:n,rowStart:i,rowEnd:l,rowSpan:c,children:d,className:u,as:m="div",attributes:_}=e,g=P(yl.item,u),h=ce(n,p=>p&&`span ${p}`),v=ce(c,p=>p&&`span ${p}`),f=b(b(b(b(b(b(b(b({},_==null?void 0:_.style),O("--rs-grid-area",t)),O("--rs-grid-col-end",h)),O("--rs-grid-col-end",r)),O("--rs-grid-col-start",o)),O("--rs-grid-row-end",v)),O("--rs-grid-row-end",l)),O("--rs-grid-row-start",i));return s.jsx(m,N(b({},_),{className:g,style:f,children:d}))},wl=e=>{const{areas:t,columns:o,rows:r,gap:n,columnGap:i,rowGap:l,align:c,justify:d,autoColumns:u,autoRows:m,autoFlow:_,children:g,className:h,width:v,height:f,maxWidth:p,as:y="div",attributes:x}=e,w=Qe({align:c,justify:d,width:v,height:f,maxWidth:p}),C=ce(r,$=>typeof $=="number"?`repeat(${$}, 1fr)`:$),z=ce(o,$=>typeof $=="number"?`repeat(${$}, 1fr)`:$),I=ce(t,$=>$?`"${$==null?void 0:$.join('" "')}"
|
|
2
|
-
`:void 0),S=P(yl.root,w.classNames,h),k=b(b(b(b(b(b(b(b(b(b(b({},x==null?void 0:x.style),O("--rs-grid-gap",n)),O("--rs-grid-column-gap",i)),O("--rs-grid-row-gap",l)),O("--rs-grid-rows",C)),O("--rs-grid-columns",z)),O("--rs-grid-areas",I)),O("--rs-grid-auto-flow",_)),O("--rs-grid-auto-columns",u)),O("--rs-grid-auto-rows",m)),w.variables);return s.jsx(y,N(b({},x),{className:S,style:k,children:g}))};wl.displayName="Grid",xl.displayName="Grid.Item";const Cl=wl;Cl.Item=xl;const Ht={root:"_root_17pp4_1",item:"_item_17pp4_5",handle:"_handle_17pp4_16","--variant-bordered":"_--variant-bordered_17pp4_34","handle--dragging":"_handle--dragging_17pp4_60","--variant-borderless":"_--variant-borderless_17pp4_46","--direction-row":"_--direction-row_17pp4_69","--direction-column":"_--direction-column_17pp4_73"},ed=(e,t)=>{const{disabled:o,containerRef:r,orientation:n="all"}=t||{},i=Se(e),l=kt(),c=a.useRef(null),d=a.useRef(null),u=r||d,m=a.useRef({x:0,y:0}),_=n==="vertical"||n==="all",g=n==="horizontal"||n==="all",h=(v,f)=>{var z;const p=c.current;if(!p)return;const x=((z=u.current)!=null?z:document.body).getBoundingClientRect(),w=p==null?void 0:p.getBoundingClientRect(),C={x:0,y:0,triggerX:0,triggerY:0};if(_){const I=Math.round(w.y)-x.y+f;C.y=Math.max(0,Math.min(I,x.height-w.height)),C.triggerY=w.y-x.y}if(g){const I=Math.round(w.x)-x.x+v;C.x=Math.max(0,Math.min(I,x.width-w.width)),C.triggerX=w.x-x.x}e(C)};return Ke({[Ct]:()=>g&&h(-20,0),[wt]:()=>g&&h(20,0),[yt]:()=>_&&h(0,-20),[xt]:()=>_&&h(0,20)},[],{ref:c,preventDefault:!0,disabled:o}),a.useEffect(()=>{const v=c.current;if(!v||!l.active)return;const f=y=>{var E,M;const x=y instanceof MouseEvent?y:y.changedTouches[0],C=((E=u.current)!=null?E:document.body).getBoundingClientRect(),z=v.getBoundingClientRect(),I=x.clientX-C.x,S=x.clientY-C.y,k=I-m.current.x,$=S-m.current.y;(M=i.current)==null||M.call(i,{x:g?Math.max(0,Math.min(k,C.width-z.width)):0,y:_?Math.max(0,Math.min($,C.height-z.height)):0,triggerX:z.x-C.x,triggerY:z.y-C.y})},p=()=>{m.current={x:0,y:0},l.deactivate(),ho(),yr()};return document.addEventListener("touchmove",f,{passive:!0}),document.addEventListener("touchend",p,{passive:!0}),document.addEventListener("mousemove",f,{passive:!0}),document.addEventListener("mouseup",p,{passive:!0}),()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",p),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}},[l,g,_,u,i]),a.useEffect(()=>{const v=c.current;if(!v||o)return;const f=p=>{const y=p instanceof MouseEvent?p:p.changedTouches[0],x=v.getBoundingClientRect();m.current={x:y.clientX-x.x,y:y.clientY-x.y},l.activate(),mo(),vr()};return v.addEventListener("touchstart",f,{passive:!0}),v.addEventListener("mousedown",f,{passive:!0}),()=>{v.removeEventListener("touchstart",f),v.removeEventListener("mousedown",f)}},[l,o]),{ref:c,containerRef:u,active:l.active}},Nl=a.createContext({}),td=e=>{const{children:t}=e,{containerRef:o,onDrag:r,index:n,direction:i}=a.useContext(Nl),{ref:l,active:c}=ed(u=>{r(N(b({},u),{index:n}))},{containerRef:o,orientation:i==="row"?"horizontal":"vertical"}),d=P(Ht.handle,c&&Ht["handle--dragging"]);return t?s.jsx(H.Item,{children:t({ref:l},{direction:i,status:c?"dragging":"idle"})}):s.jsx(H.Item,{className:d,attributes:{role:"button",tabIndex:0,"aria-hidden":!0,ref:u=>{l.current=u}}})},Rr=()=>null,od=a.forwardRef((e,t)=>{const{children:o,defaultSize:r,minSize:n,maxSize:i}=e,l=a.useRef(null);return s.jsx(H.Item,{grow:!0,className:Ht.item,attributes:{ref:c=>{typeof t=="function"&&t(c),l.current=c},style:{"--rs-resizable-default-size":r,"--rs-resizable-min-size":n,"--rs-resizable-max-size":i}},children:o})}),kl=e=>{const{children:t,variant:o="borderless",height:r,direction:n="row",gap:i=2,className:l,attributes:c}=e,d=P(Ht.root,Ht[`--direction-${n}`],o&&Ht[`--variant-${o}`],l),u=a.useRef(null),m=a.useRef([]),_=n==="row";let g=0,h=0;m.current=[];const v=y=>{const{item:x,grow:w,itemsSize:C,itemsCount:z}=y,{minSize:I,maxSize:S}=x.props,k=w/z/100*C,$=I&&Number(I.replace("px","")),E=S&&Number(S==null?void 0:S.replace("px",""));return!!($&&$>k||E&&E<k)},f=y=>{const{index:x,x:w,y:C,triggerX:z,triggerY:I}=y,S=m.current[x],k=m.current[x+1];if(!S.el||!k.el)return;const $=m.current.length;let E=$*100,M=0;m.current.forEach((oe,B)=>{oe.el&&(M+=_?oe.el.clientWidth:oe.el.clientHeight,!(B===x||B===x+1)&&(E-=Number(oe.el.style.flexGrow||100)))},0);const T=_?S.el.clientWidth:S.el.clientHeight,L=_?S.el.offsetLeft:S.el.offsetTop,A=_?k.el.clientWidth:k.el.clientHeight,F=(_?z:I)-T-L,D=(_?w:C)-F,V=T+A,W=Math.min(1,Math.max(0,(D-L)/V)),K=Math.floor(W*E),G=Math.floor(E-K);v({item:S,itemsSize:M,grow:K,itemsCount:$})||v({item:k,itemsSize:M,grow:G,itemsCount:$})||(S.el.style.flexGrow=K.toString(),k.el.style.flexGrow=G.toString())};a.useEffect(()=>{const y=[];let x=0;m.current.forEach(w=>{w.el&&(x+=_?w.el.clientWidth:w.el.clientHeight)}),m.current.forEach((w,C)=>{if(!w.el)return;const z=(_?w.el.clientWidth:w.el.clientHeight)/x;y[C]=m.current.length*z*100}),m.current.forEach((w,C)=>{!w.el||!y[C]||(w.el.style.flexGrow=y[C].toString(),w.el.setAttribute("data-rs-resizable-item-mounted",""))})},[_]);const p=a.Children.map(t,y=>{const x=a.isValidElement(y);if(x&&y.props&&y.type!==Rr)return s.jsx(Nl.Provider,{value:{containerRef:u,index:g++,onDrag:f,direction:n},children:y});if(x&&y.props&&y.type===Rr){const w=g;return s.jsx(od,N(b({},y.props),{index:h++,ref:C=>{m.current[w]={el:C,props:y.props}}}))}return null});return s.jsx(H,{attributes:N(b({},c),{ref:u}),className:d,height:r,direction:n,align:"stretch",gap:i,children:p})};kl.displayName="Resizable";const en=kl;en.Item=Rr,en.Handle=td;const mt={root:"_root_xnsfu_1",scrollable:"_scrollable_xnsfu_9",content:"_content_xnsfu_30",scrollbar:"_scrollbar_xnsfu_37",thumb:"_thumb_xnsfu_43","--scrollbar-y":"_--scrollbar-y_xnsfu_59","--scrollbar-x":"_--scrollbar-x_xnsfu_71","--display-visible":"_--display-visible_xnsfu_91","--display-hover":"_--display-hover_xnsfu_96","--scrollbar-dragging":"_--scrollbar-dragging_xnsfu_100"},zl=e=>{const{ratio:t,position:o,vertical:r,onThumbMove:n}=e,i=Se(n),[l,c]=a.useState(!1),d=a.useRef(0),u=a.useRef(null),m=P(mt.scrollbar,r?mt["--scrollbar-y"]:mt["--scrollbar-x"],l&&mt["--scrollbar-dragging"]),_=f=>{const p=u.current,y=d.current;if(d.current=0,y||!p||f.currentTarget!==p)return;const x=p.getBoundingClientRect(),w=r?f.pageY-x.top:f.pageX-x.left,C=r?p.clientHeight:p.clientWidth;n({value:w/C-t/2,type:"absolute"})},g=a.useCallback(f=>{var w;d.current||(d.current=r?f.pageY:f.pageX);const p=u.current;if(!p||!l)return;const y=r?f.movementY:f.movementX,x=r?p.scrollHeight:p.scrollWidth;(w=i.current)==null||w.call(i,{value:y/x,type:"relative"})},[r,l,i]),h=a.useCallback(()=>{c(!1),ho()},[]),v=()=>{c(!0),mo()};return a.useEffect(()=>{if(l)return document.addEventListener("mousemove",g),document.addEventListener("mouseup",h),()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",h)}},[g,h,l]),s.jsx("div",{className:m,style:{"--rs-scroll-area-ratio":t,"--rs-scroll-area-position":o},ref:u,onClick:_,onMouseDown:v,"aria-hidden":"true",children:s.jsx("div",{className:mt.thumb})})},Sl=a.forwardRef((e,t)=>{const{children:o,height:r,maxHeight:n,scrollbarDisplay:i="hover",onScroll:l,className:c,attributes:d}=e,[u,m]=a.useState({x:1,y:1}),[_,g]=a.useState({x:0,y:0}),h=a.useRef(null),v=a.useRef(null),f=Qe({height:r,maxHeight:n}),p=P(mt.root,i&&mt[`--display-${i}`],c),y=P(mt.content,f.classNames),x=a.useCallback(()=>{const I=h.current;I&&m({x:I.clientWidth/I.scrollWidth,y:I.clientHeight/I.scrollHeight})},[]),w=I=>{const{scrollLeft:S,scrollTop:k,clientWidth:$,clientHeight:E,scrollWidth:M,scrollHeight:T}=I.currentTarget;g({x:S/M,y:k/T}),l==null||l({x:M===$?0:S/(M-$),y:T===E?0:k/(T-E)})},C=I=>{const S=h.current;if(!S)return;const k=S.scrollHeight*I.value;I.type==="absolute"?S.scrollTop=k:S.scrollTop+=k},z=I=>{const S=h.current;if(!S)return;const k=S.scrollWidth*I.value;I.type==="absolute"?S.scrollLeft=k:S.scrollLeft+=k};return a.useImperativeHandle(t,()=>h.current),be(()=>{x()},[x]),be(()=>{const I=v.current;if(!I)return;const S=new ResizeObserver(x);return S.observe(I),()=>S.disconnect()},[x]),s.jsxs("div",N(b({},d),{ref:v,className:p,children:[s.jsx("div",{className:mt.scrollable,ref:h,onScroll:w,children:s.jsx("div",{className:y,style:b({},f.variables),children:o})}),u.y<1&&i!=="hidden"&&s.jsx(zl,{vertical:!0,onThumbMove:C,ratio:u.y,position:_.y}),u.x<1&&i!=="hidden"&&s.jsx(zl,{onThumbMove:z,ratio:u.x,position:_.x})]}))});Sl.displayName="ScrollArea";const rd=()=>{const e=a.useContext(_l);return a.useMemo(()=>({enable:e.enable,disable:e.disable,activate:e.activate,deactivate:e.deactivate}),[e])},nd=e=>{const{w:t="auto",h:o=50,minW:r=o,children:n}=e;return s.jsx("div",{style:{width:t,height:o,minWidth:r,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-radius-small)"},children:n})};j.Accordion=Jr,j.ActionBar=_n,j.Actionable=Ie,j.Alert=mn,j.Autocomplete=fs,j.Avatar=gs,j.Badge=vs,j.Breadcrumbs=Cs,j.Button=Me,j.Calendar=Ds,j.Card=Ls,j.Carousel=Ps,j.Checkbox=Us,j.CheckboxGroup=Bs,j.Container=vl,j.ContextMenu=Ft,j.Dismissible=rr,j.Divider=Kt,j.DropdownMenu=ke,j.FileUpload=Zs,j.Flyout=ct,j.FormControl=Co,j.Grid=Cl,j.Hidden=pt,j.HiddenInput=no,j.HiddenVisually=ko,j.Hotkey=Rs,j.Icon=he,j.Image=cr,j.Link=ur,j.Loader=or,j.MenuItem=nr,j.Modal=Er,j.NumberField=ai,j.Overlay=kr,j.Pagination=ui,j.PinField=fi,j.Placeholder=nd,j.Popover=dt,j.Progress=gi,j.ProgressIndicator=bi,j.Radio=pi,j.RadioGroup=Os,j.Reshaped=ml,j.Resizable=en,j.Scrim=vi,j.ScrollArea=Sl,j.Select=io,j.Skeleton=Si,j.Slider=ji,j.Stepper=Pi,j.Switch=Ai,j.Table=qt,j.Tabs=Do,j.Text=se,j.TextArea=Zi,j.TextField=No,j.Theme=Pt,j.Timeline=Ri,j.ToastProvider=Kr,j.ToggleButton=dl,j.ToggleButtonGroup=al,j.Tooltip=ul,j.TrapFocus=Dt,j.View=H,j.classNames=P,j.responsivePropDependency=ce,j.useFormControl=Ze,j.useHandlerRef=Se,j.useHotkeys=Ke,j.useIsomorphicLayoutEffect=be,j.useKeyboardArrowNavigation=Ur,j.useKeyboardMode=rd,j.useOnClickOutside=vn,j.useRTL=at,j.useResponsiveClientValue=ei,j.useScrollLock=Nr,j.useTheme=Dn,j.useToast=ol,j.useToggle=kt,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(j,s){typeof exports=="object"&&typeof module!="undefined"?s(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],s):(j=typeof globalThis!="undefined"?globalThis:j||self,s(j.Reshaped={},j["react/jsx-runtime"],j.React,j.ReactDOM))})(this,(function(j,s,a,Ae){"use strict";var md=Object.defineProperty,hd=Object.defineProperties;var fd=Object.getOwnPropertyDescriptors;var Bo=Object.getOwnPropertySymbols;var Ml=Object.prototype.hasOwnProperty,Il=Object.prototype.propertyIsEnumerable;var jl=j=>{throw TypeError(j)};var tn=(j,s,a)=>s in j?md(j,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):j[s]=a,b=(j,s)=>{for(var a in s||(s={}))Ml.call(s,a)&&tn(j,a,s[a]);if(Bo)for(var a of Bo(s))Il.call(s,a)&&tn(j,a,s[a]);return j},N=(j,s)=>hd(j,fd(s));var ve=(j,s)=>{var a={};for(var Ae in j)Ml.call(j,Ae)&&s.indexOf(Ae)<0&&(a[Ae]=j[Ae]);if(j!=null&&Bo)for(var Ae of Bo(j))s.indexOf(Ae)<0&&Il.call(j,Ae)&&(a[Ae]=j[Ae]);return a};var xe=(j,s,a)=>tn(j,typeof s!="symbol"?s+"":s,a),Dl=(j,s,a)=>s.has(j)||jl("Cannot "+a);var re=(j,s,a)=>(Dl(j,s,"read from private field"),a?a.call(j):s.get(j)),it=(j,s,a)=>s.has(j)?jl("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(j):s.set(j,a),Mt=(j,s,a,Ae)=>(Dl(j,s,"write to private field"),Ae?Ae.call(j,a):s.set(j,a),a);var Tt,Ce,ht,Wt,Ot,Ut,ao,Ao,co;const A=(...e)=>e.reduce((t,o)=>{if(Array.isArray(o)){const r=A(...o);return r?`${t} ${r}`:t}return o?`${t} ${o}`:t},"").trim(),on=(e,t,o)=>{const{base:r,excludeValueFromClassName:n}=o||{},i=typeof e=="string"?e:e(t);return t===!0&&r||n?i:t===!0&&!r?`${i}-true`:t===!1&&!r?`${i}-false`:t!==void 0?`${i}-${t}`:null},ae=(e,t,o,r)=>{if(typeof o!="object"){const n=on(t,o,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return n?[e[n]]:[]}return Object.keys(o).reduce((n,i)=>{const l=i==="s",c=on(t,o[i],{base:l,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=l?"":`--${i}`;return[...n,e[`${c}${d}`]]},[])},O=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((o,r)=>{const n=t[r];return n===void 0||n===!1?o:N(b({},o),{[`${e}-${r}`]:n})},{}),Ll=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,ce=(e,t)=>Ll(e)?Object.keys(e).reduce((r,n)=>{const i=e[n];return i==null?r:N(b({},r),{[n]:t(i,n)})},{}):t(e,"s"),Pl=e=>e?{variables:O("--rs-align",e)}:{},Al=e=>e?{variables:O("--rs-ratio",e)}:{},rn={root:"_root_23jyt_1","--bleed":"_--bleed_23jyt_8","--bleed-true--m":"_--bleed-true--m_23jyt_1","--bleed-false--m":"_--bleed-false--m_23jyt_1","--bleed-true--l":"_--bleed-true--l_23jyt_1","--bleed-false--l":"_--bleed-false--l_23jyt_1","--bleed-true--xl":"_--bleed-true--xl_23jyt_1","--bleed-false--xl":"_--bleed-false--xl_23jyt_1"},Fl=e=>{if(e===void 0)return{};const t=ae(rn,"--bleed",ce(e,r=>typeof r=="number"&&r>0)),o=O("--rs-bleed",e);return{classNames:[rn.root,t],variables:o}},Vl={"--border-neutral":"_--border-neutral_xj2hx_1","--border-neutral-faded":"_--border-neutral-faded_xj2hx_1","--border-positive":"_--border-positive_xj2hx_1","--border-positive-faded":"_--border-positive-faded_xj2hx_1","--border-warning":"_--border-warning_xj2hx_1","--border-warning-faded":"_--border-warning-faded_xj2hx_1","--border-critical":"_--border-critical_xj2hx_1","--border-critical-faded":"_--border-critical-faded_xj2hx_1","--border-primary":"_--border-primary_xj2hx_1","--border-primary-faded":"_--border-primary-faded_xj2hx_1","--border-disabled":"_--border-disabled_xj2hx_1","--border-brand":"_--border-brand_xj2hx_1","--border-transparent":"_--border-transparent_xj2hx_1","--border-neutral--m":"_--border-neutral--m_xj2hx_1","--border-neutral-faded--m":"_--border-neutral-faded--m_xj2hx_1","--border-positive--m":"_--border-positive--m_xj2hx_1","--border-positive-faded--m":"_--border-positive-faded--m_xj2hx_1","--border-warning--m":"_--border-warning--m_xj2hx_1","--border-warning-faded--m":"_--border-warning-faded--m_xj2hx_1","--border-critical--m":"_--border-critical--m_xj2hx_1","--border-critical-faded--m":"_--border-critical-faded--m_xj2hx_1","--border-primary--m":"_--border-primary--m_xj2hx_1","--border-primary-faded--m":"_--border-primary-faded--m_xj2hx_1","--border-disabled--m":"_--border-disabled--m_xj2hx_1","--border-brand--m":"_--border-brand--m_xj2hx_1","--border-transparent--m":"_--border-transparent--m_xj2hx_1","--border-neutral--l":"_--border-neutral--l_xj2hx_1","--border-neutral-faded--l":"_--border-neutral-faded--l_xj2hx_1","--border-positive--l":"_--border-positive--l_xj2hx_1","--border-positive-faded--l":"_--border-positive-faded--l_xj2hx_1","--border-warning--l":"_--border-warning--l_xj2hx_1","--border-warning-faded--l":"_--border-warning-faded--l_xj2hx_1","--border-critical--l":"_--border-critical--l_xj2hx_1","--border-critical-faded--l":"_--border-critical-faded--l_xj2hx_1","--border-primary--l":"_--border-primary--l_xj2hx_1","--border-primary-faded--l":"_--border-primary-faded--l_xj2hx_1","--border-disabled--l":"_--border-disabled--l_xj2hx_1","--border-brand--l":"_--border-brand--l_xj2hx_1","--border-transparent--l":"_--border-transparent--l_xj2hx_1","--border-neutral--xl":"_--border-neutral--xl_xj2hx_1","--border-neutral-faded--xl":"_--border-neutral-faded--xl_xj2hx_1","--border-positive--xl":"_--border-positive--xl_xj2hx_1","--border-positive-faded--xl":"_--border-positive-faded--xl_xj2hx_1","--border-warning--xl":"_--border-warning--xl_xj2hx_1","--border-warning-faded--xl":"_--border-warning-faded--xl_xj2hx_1","--border-critical--xl":"_--border-critical--xl_xj2hx_1","--border-critical-faded--xl":"_--border-critical-faded--xl_xj2hx_1","--border-primary--xl":"_--border-primary--xl_xj2hx_1","--border-primary-faded--xl":"_--border-primary-faded--xl_xj2hx_1","--border-disabled--xl":"_--border-disabled--xl_xj2hx_1","--border-brand--xl":"_--border-brand--xl_xj2hx_1","--border-transparent--xl":"_--border-transparent--xl_xj2hx_1"},Bl=e=>e?{variables:O("--rs-border-w",ce(e,t=>t?"1px":"0px"))}:{},Hl=e=>e?{variables:O("--rs-border-w-top",ce(e,t=>t?"1px":"0px"))}:{},ql=e=>e?{variables:O("--rs-border-w-bottom",ce(e,t=>t?"1px":"0px"))}:{},Wl=e=>e?{variables:O("--rs-border-w-start",ce(e,t=>t?"1px":"0px"))}:{},Ol=e=>e?{variables:O("--rs-border-w-end",ce(e,t=>t?"1px":"0px"))}:{},Ul=e=>e?{variables:O("--rs-border-w-block",ce(e,t=>t?"1px":"0px"))}:{},Yl=e=>e?{variables:O("--rs-border-w-inline",ce(e,t=>t?"1px":"0px"))}:{},Kl=e=>e?{classNames:ae(Vl,"--border",e)}:{},nn={root:"_root_14o7b_5","--type-literal":"_--type-literal_14o7b_14","--type-unit":"_--type-unit_14o7b_18","--type-literal--m":"_--type-literal--m_14o7b_1","--type-unit--m":"_--type-unit--m_14o7b_1","--type-literal--l":"_--type-literal--l_14o7b_1","--type-unit--l":"_--type-unit--l_14o7b_1","--type-literal--xl":"_--type-literal--xl_14o7b_1","--type-unit--xl":"_--type-unit--xl_14o7b_1"},Gl=e=>{if(!e)return{};const t=O("--rs-h",e),o=ae(nn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[nn.root,o],variables:t}},Xl=e=>e===void 0?{}:{variables:O("--rs-inset",e)},Ql=e=>e===void 0?{}:{variables:O("--rs-inset-top",e)},Zl=e=>e===void 0?{}:{variables:O("--rs-inset-bottom",e)},Jl=e=>e===void 0?{}:{variables:O("--rs-inset-start",e)},Rl=e=>e===void 0?{}:{variables:O("--rs-inset-end",e)},ea=e=>e===void 0?{}:{variables:O("--rs-inset-inline",e)},ta=e=>e===void 0?{}:{variables:O("--rs-inset-block",e)},oa=e=>e?{variables:O("--rs-justify",e)}:{},sn={root:"_root_1rdxk_1","--type-literal":"_--type-literal_1rdxk_1","--type-unit":"_--type-unit_1rdxk_1","--type-literal--m":"_--type-literal--m_1rdxk_1","--type-unit--m":"_--type-unit--m_1rdxk_1","--type-literal--l":"_--type-literal--l_1rdxk_1","--type-unit--l":"_--type-unit--l_1rdxk_1","--type-literal--xl":"_--type-literal--xl_1rdxk_1","--type-unit--xl":"_--type-unit--xl_1rdxk_1"},ra=e=>{if(!e)return{};const t=O("--rs-max-h",e),o=ae(sn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[sn.root,o],variables:t}},ln={root:"_root_qeyze_1","--type-literal":"_--type-literal_qeyze_1","--type-unit":"_--type-unit_qeyze_1","--type-literal--m":"_--type-literal--m_qeyze_1","--type-unit--m":"_--type-unit--m_qeyze_1","--type-literal--l":"_--type-literal--l_qeyze_1","--type-unit--l":"_--type-unit--l_qeyze_1","--type-literal--xl":"_--type-literal--xl_qeyze_1","--type-unit--xl":"_--type-unit--xl_qeyze_1"},na=e=>{if(!e)return{};const t=O("--rs-max-w",e),o=ae(ln,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[ln.root,o],variables:t}},an={root:"_root_zookh_1","--type-literal":"_--type-literal_zookh_1","--type-unit":"_--type-unit_zookh_1","--type-literal--m":"_--type-literal--m_zookh_1","--type-unit--m":"_--type-unit--m_zookh_1","--type-literal--l":"_--type-literal--l_zookh_1","--type-unit--l":"_--type-unit--l_zookh_1","--type-literal--xl":"_--type-literal--xl_zookh_1","--type-unit--xl":"_--type-unit--xl_zookh_1"},sa=e=>{if(!e)return{};const t=O("--rs-min-h",e),o=ae(an,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[an.root,o],variables:t}},cn={root:"_root_1nz80_1","--type-literal":"_--type-literal_1nz80_1","--type-unit":"_--type-unit_1nz80_1","--type-literal--m":"_--type-literal--m_1nz80_1","--type-unit--m":"_--type-unit--m_1nz80_1","--type-literal--l":"_--type-literal--l_1nz80_1","--type-unit--l":"_--type-unit--l_1nz80_1","--type-literal--xl":"_--type-literal--xl_1nz80_1","--type-unit--xl":"_--type-unit--xl_1nz80_1"},ia=e=>{if(!e)return{};const t=O("--rs-min-w",e),o=ae(cn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[cn.root,o],variables:t}},la=e=>e?{variables:O("--rs-p",e)}:{},aa=e=>e===void 0?{}:{variables:O("--rs-p-top",e)},ca=e=>e===void 0?{}:{variables:O("--rs-p-bottom",e)},da=e=>e===void 0?{}:{variables:O("--rs-p-start",e)},ua=e=>e===void 0?{}:{variables:O("--rs-p-end",e)},_a=e=>e===void 0?{}:{variables:O("--rs-p-inline",e)},ma=e=>e===void 0?{}:{variables:O("--rs-p-block",e)},ha=e=>e?{variables:O("--rs-position",e)}:{},dn={root:"_root_w529z_1","--radius-none":"_--radius-none_w529z_1","--radius-small":"_--radius-small_w529z_1","--radius-medium":"_--radius-medium_w529z_1","--radius-large":"_--radius-large_w529z_1","--radius-circular":"_--radius-circular_w529z_1","--radius-none--m":"_--radius-none--m_w529z_1","--radius-small--m":"_--radius-small--m_w529z_1","--radius-medium--m":"_--radius-medium--m_w529z_1","--radius-large--m":"_--radius-large--m_w529z_1","--radius-circular--m":"_--radius-circular--m_w529z_1","--radius-none--l":"_--radius-none--l_w529z_1","--radius-small--l":"_--radius-small--l_w529z_1","--radius-medium--l":"_--radius-medium--l_w529z_1","--radius-large--l":"_--radius-large--l_w529z_1","--radius-circular--l":"_--radius-circular--l_w529z_1","--radius-none--xl":"_--radius-none--xl_w529z_1","--radius-small--xl":"_--radius-small--xl_w529z_1","--radius-medium--xl":"_--radius-medium--xl_w529z_1","--radius-large--xl":"_--radius-large--xl_w529z_1","--radius-circular--xl":"_--radius-circular--xl_w529z_1"},fa=e=>e?{classNames:[dn.root,...ae(dn,"--radius",e)]}:{},ga=e=>e?{variables:O("--rs-text-align",e)}:{},un={root:"_root_1kn8l_1","--type-literal":"_--type-literal_1kn8l_1","--type-unit":"_--type-unit_1kn8l_1","--type-literal--m":"_--type-literal--m_1kn8l_1","--type-unit--m":"_--type-unit--m_1kn8l_1","--type-literal--l":"_--type-literal--l_1kn8l_1","--type-unit--l":"_--type-unit--l_1kn8l_1","--type-literal--xl":"_--type-literal--xl_1kn8l_1","--type-unit--xl":"_--type-unit--xl_1kn8l_1"},ba={align:Pl,aspectRatio:Al,bleed:Fl,border:Bl,borderTop:Hl,borderBottom:ql,borderStart:Wl,borderEnd:Ol,borderInline:Yl,borderBlock:Ul,borderColor:Kl,height:Gl,padding:la,paddingTop:aa,paddingBottom:ca,paddingStart:da,paddingEnd:ua,paddingInline:_a,paddingBlock:ma,inset:Xl,insetTop:Ql,insetBottom:Zl,insetStart:Jl,insetEnd:Rl,insetInline:ea,insetBlock:ta,justify:oa,maxHeight:ra,maxWidth:na,minHeight:sa,minWidth:ia,position:ha,radius:fa,textAlign:ga,width:e=>{if(!e)return{};const t=O("--rs-w",e),o=ae(un,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[un.root,o],variables:t}}},Qe=e=>{const t={variables:{},classNames:[]};return Object.entries(e).forEach(([r,n])=>{const i=ba[r],l=i(n);l.variables&&(t.variables=b(b({},t.variables),l.variables)),l.classNames&&t.classNames.push(l.classNames)}),t},et={root:"_root_johd4_2","--clamp":"_--clamp_johd4_22","--break-all":"_--break-all_johd4_29","--wrap-balance":"_--wrap-balance_johd4_33","--numeric":"_--numeric_johd4_37","--variant-title-1":"_--variant-title-1_johd4_1","--variant-title-2":"_--variant-title-2_johd4_1","--variant-title-3":"_--variant-title-3_johd4_1","--variant-title-4":"_--variant-title-4_johd4_1","--variant-title-5":"_--variant-title-5_johd4_1","--variant-title-6":"_--variant-title-6_johd4_1","--variant-featured-1":"_--variant-featured-1_johd4_1","--variant-featured-2":"_--variant-featured-2_johd4_1","--variant-featured-3":"_--variant-featured-3_johd4_1","--variant-body-1":"_--variant-body-1_johd4_1","--variant-body-2":"_--variant-body-2_johd4_1","--variant-body-3":"_--variant-body-3_johd4_1","--variant-caption-1":"_--variant-caption-1_johd4_1","--variant-caption-2":"_--variant-caption-2_johd4_1","--weight-regular":"_--weight-regular_johd4_1","--weight-medium":"_--weight-medium_johd4_1","--weight-bold":"_--weight-bold_johd4_1","--color-neutral":"_--color-neutral_johd4_1","--color-neutral-faded":"_--color-neutral-faded_johd4_1","--color-primary":"_--color-primary_johd4_1","--color-warning":"_--color-warning_johd4_1","--color-positive":"_--color-positive_johd4_1","--color-critical":"_--color-critical_johd4_1","--color-disabled":"_--color-disabled_johd4_1","--decoration-line-through":"_--decoration-line-through_johd4_175","--monospace":"_--monospace_johd4_179","--variant-title-1--m":"_--variant-title-1--m_johd4_1","--variant-title-2--m":"_--variant-title-2--m_johd4_1","--variant-title-3--m":"_--variant-title-3--m_johd4_1","--variant-title-4--m":"_--variant-title-4--m_johd4_1","--variant-title-5--m":"_--variant-title-5--m_johd4_1","--variant-title-6--m":"_--variant-title-6--m_johd4_1","--variant-featured-1--m":"_--variant-featured-1--m_johd4_1","--variant-featured-2--m":"_--variant-featured-2--m_johd4_1","--variant-featured-3--m":"_--variant-featured-3--m_johd4_1","--variant-body-1--m":"_--variant-body-1--m_johd4_1","--variant-body-2--m":"_--variant-body-2--m_johd4_1","--variant-body-3--m":"_--variant-body-3--m_johd4_1","--variant-caption-1--m":"_--variant-caption-1--m_johd4_1","--variant-caption-2--m":"_--variant-caption-2--m_johd4_1","--weight-regular--m":"_--weight-regular--m_johd4_1","--weight-medium--m":"_--weight-medium--m_johd4_1","--weight-bold--m":"_--weight-bold--m_johd4_1","--variant-title-1--l":"_--variant-title-1--l_johd4_1","--variant-title-2--l":"_--variant-title-2--l_johd4_1","--variant-title-3--l":"_--variant-title-3--l_johd4_1","--variant-title-4--l":"_--variant-title-4--l_johd4_1","--variant-title-5--l":"_--variant-title-5--l_johd4_1","--variant-title-6--l":"_--variant-title-6--l_johd4_1","--variant-featured-1--l":"_--variant-featured-1--l_johd4_1","--variant-featured-2--l":"_--variant-featured-2--l_johd4_1","--variant-featured-3--l":"_--variant-featured-3--l_johd4_1","--variant-body-1--l":"_--variant-body-1--l_johd4_1","--variant-body-2--l":"_--variant-body-2--l_johd4_1","--variant-body-3--l":"_--variant-body-3--l_johd4_1","--variant-caption-1--l":"_--variant-caption-1--l_johd4_1","--variant-caption-2--l":"_--variant-caption-2--l_johd4_1","--weight-regular--l":"_--weight-regular--l_johd4_1","--weight-medium--l":"_--weight-medium--l_johd4_1","--weight-bold--l":"_--weight-bold--l_johd4_1","--variant-title-1--xl":"_--variant-title-1--xl_johd4_1","--variant-title-2--xl":"_--variant-title-2--xl_johd4_1","--variant-title-3--xl":"_--variant-title-3--xl_johd4_1","--variant-title-4--xl":"_--variant-title-4--xl_johd4_1","--variant-title-5--xl":"_--variant-title-5--xl_johd4_1","--variant-title-6--xl":"_--variant-title-6--xl_johd4_1","--variant-featured-1--xl":"_--variant-featured-1--xl_johd4_1","--variant-featured-2--xl":"_--variant-featured-2--xl_johd4_1","--variant-featured-3--xl":"_--variant-featured-3--xl_johd4_1","--variant-body-1--xl":"_--variant-body-1--xl_johd4_1","--variant-body-2--xl":"_--variant-body-2--xl_johd4_1","--variant-body-3--xl":"_--variant-body-3--xl_johd4_1","--variant-caption-1--xl":"_--variant-caption-1--xl_johd4_1","--variant-caption-2--xl":"_--variant-caption-2--xl_johd4_1","--weight-regular--xl":"_--weight-regular--xl_johd4_1","--weight-medium--xl":"_--weight-medium--xl_johd4_1","--weight-bold--xl":"_--weight-bold--xl_johd4_1"},pa={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},se=e=>{const{variant:t,color:o,weight:r,align:n,decoration:i,maxLines:l,wrap:c,monospace:d,numeric:u,children:m,className:_,attributes:g}=e,h=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),v=Qe({textAlign:n}),f=e.as||h&&pa[h]||"div",p=A(et.root,o&&et[`--color-${o}`],...ae(et,"--variant",t),...ae(et,"--weight",r),i&&et[`--decoration-${i}`],l!==void 0&&et["--clamp"],l===1&&et["--break-all"],c&&et[`--wrap-${c}`],d&&et["--monospace"],u&&et["--numeric"],_,v.classNames),y=N(b(b({},g==null?void 0:g.style),v.variables),{"--rs-text-lines":l});return s.jsx(f,N(b({},g),{className:p,style:y,children:m}))};se.displayName="Text";const It={root:"_root_1tl54_1","--color-neutral":"_--color-neutral_1tl54_25","--blank":"_--blank_1tl54_29","--vertical":"_--vertical_1tl54_35",label:"_label_1tl54_63","--content-position-center":"_--content-position-center_1tl54_89","--content-position-start":"_--content-position-start_1tl54_96","--vertical-true--m":"_--vertical-true--m_1tl54_1","--vertical-false--m":"_--vertical-false--m_1tl54_1","--vertical-true--l":"_--vertical-true--l_1tl54_1","--vertical-false--l":"_--vertical-false--l_1tl54_1","--vertical-true--xl":"_--vertical-true--xl_1tl54_1","--vertical-false--xl":"_--vertical-false--xl_1tl54_1"},Kt=e=>{const{vertical:t,blank:o,children:r,contentPosition:n="center",color:i,offset:l,className:c,attributes:d}=e,u=A(It.root,c,o&&It["--blank"],i&&It[`--color-${i}`],r?It[`--content-position-${n}`]:void 0,...ae(It,"--vertical",t));let m;return(typeof t=="boolean"||t===void 0)&&(m=t?"vertical":"horizontal"),s.jsx("div",N(b({},d),{role:"separator","aria-orientation":m,className:u,style:N(b({},d==null?void 0:d.style),{"--rs-divider-offset":l}),children:r&&s.jsx(se,{color:"neutral-faded",variant:"caption-1",className:It.label,children:r})}))};Kt.displayName="Divider";const Ho={root:"_root_11ilc_1","--hidden":"_--hidden_11ilc_5","--visibility":"_--visibility_11ilc_9","--hidden-true--m":"_--hidden-true--m_11ilc_1","--hidden-false--m":"_--hidden-false--m_11ilc_1","--hidden-true--l":"_--hidden-true--l_11ilc_1","--hidden-false--l":"_--hidden-false--l_11ilc_1","--hidden-true--xl":"_--hidden-true--xl_11ilc_1","--hidden-false--xl":"_--hidden-false--xl_11ilc_1"},pt=e=>{const{as:t="div",children:o,visibility:r,hide:n}=e,i=A(Ho.root,...ae(Ho,"--hidden",n),r&&Ho["--visibility"]);return s.jsx(t,{className:i,children:o})};pt.displayName="Hidden";const ze={root:"_root_9u073_1",item:"_item_9u073_11","--animated":"_--animated_9u073_19","--bg-neutral":"_--bg-neutral_9u073_1","--bg-positive":"_--bg-positive_9u073_1","--bg-warning":"_--bg-warning_9u073_1","--bg-critical":"_--bg-critical_9u073_1","--bg-primary":"_--bg-primary_9u073_1","--bg-neutral-faded":"_--bg-neutral-faded_9u073_1","--bg-positive-faded":"_--bg-positive-faded_9u073_1","--bg-warning-faded":"_--bg-warning-faded_9u073_1","--bg-critical-faded":"_--bg-critical-faded_9u073_1","--bg-primary-faded":"_--bg-primary-faded_9u073_1","--bg-page":"_--bg-page_9u073_1","--bg-page-faded":"_--bg-page-faded_9u073_1","--bg-disabled":"_--bg-disabled_9u073_1","--bg-disabled-faded":"_--bg-disabled-faded_9u073_1","--bg-elevation-base":"_--bg-elevation-base_9u073_1","--bg-elevation-raised":"_--bg-elevation-raised_9u073_1","--bg-elevation-overlay":"_--bg-elevation-overlay_9u073_1","--bg-brand":"_--bg-brand_9u073_39","--bg-white":"_--bg-white_9u073_44","--bg-black":"_--bg-black_9u073_49","--shadow-raised":"_--shadow-raised_9u073_54","--shadow-overlay":"_--shadow-overlay_9u073_58","--overflow-hidden":"_--overflow-hidden_9u073_62","--overflow-auto":"_--overflow-auto_9u073_66","--divided":"_--divided_9u073_70","--flex":"_--flex_9u073_74","--direction-column":"_--direction-column_9u073_1","item--gap-before":"_item--gap-before_9u073_86","item--gap-auto":"_item--gap-auto_9u073_90","--direction-column-reverse":"_--direction-column-reverse_9u073_1","--direction-row":"_--direction-row_9u073_1","--direction-row-reverse":"_--direction-row-reverse_9u073_1","--nowrap":"_--nowrap_9u073_145","--wrap":"_--wrap_9u073_153","--nowrap-false--m":"_--nowrap-false--m_9u073_1","--wrap-true--m":"_--wrap-true--m_9u073_1","--nowrap-true--m":"_--nowrap-true--m_9u073_1","--wrap-false--m":"_--wrap-false--m_9u073_1","--nowrap-false--l":"_--nowrap-false--l_9u073_1","--wrap-true--l":"_--wrap-true--l_9u073_1","--nowrap-true--l":"_--nowrap-true--l_9u073_1","--wrap-false--l":"_--wrap-false--l_9u073_1","--nowrap-false--xl":"_--nowrap-false--xl_9u073_1","--wrap-true--xl":"_--wrap-true--xl_9u073_1","--nowrap-true--xl":"_--nowrap-true--xl_9u073_1","--wrap-false--xl":"_--wrap-false--xl_9u073_1",divider:"_divider_9u073_171","item--grow":"_item--grow_9u073_175","item--shrink":"_item--shrink_9u073_193","item--columns":"_item--columns_9u073_197","item--columns-1":"_item--columns-1_9u073_1","item--columns-2":"_item--columns-2_9u073_1","item--columns-3":"_item--columns-3_9u073_1","item--columns-4":"_item--columns-4_9u073_1","item--columns-5":"_item--columns-5_9u073_1","item--columns-6":"_item--columns-6_9u073_1","item--columns-7":"_item--columns-7_9u073_1","item--columns-8":"_item--columns-8_9u073_1","item--columns-9":"_item--columns-9_9u073_1","item--columns-10":"_item--columns-10_9u073_1","item--columns-11":"_item--columns-11_9u073_1","item--columns-12":"_item--columns-12_9u073_1","item--columns-auto":"_item--columns-auto_9u073_218","item--columns-1--m":"_item--columns-1--m_9u073_1","item--columns-auto--m":"_item--columns-auto--m_9u073_1","item--columns-2--m":"_item--columns-2--m_9u073_1","item--columns-3--m":"_item--columns-3--m_9u073_1","item--columns-4--m":"_item--columns-4--m_9u073_1","item--columns-5--m":"_item--columns-5--m_9u073_1","item--columns-6--m":"_item--columns-6--m_9u073_1","item--columns-7--m":"_item--columns-7--m_9u073_1","item--columns-8--m":"_item--columns-8--m_9u073_1","item--columns-9--m":"_item--columns-9--m_9u073_1","item--columns-10--m":"_item--columns-10--m_9u073_1","item--columns-11--m":"_item--columns-11--m_9u073_1","item--columns-12--m":"_item--columns-12--m_9u073_1","item--columns-1--l":"_item--columns-1--l_9u073_1","item--columns-auto--l":"_item--columns-auto--l_9u073_1","item--columns-2--l":"_item--columns-2--l_9u073_1","item--columns-3--l":"_item--columns-3--l_9u073_1","item--columns-4--l":"_item--columns-4--l_9u073_1","item--columns-5--l":"_item--columns-5--l_9u073_1","item--columns-6--l":"_item--columns-6--l_9u073_1","item--columns-7--l":"_item--columns-7--l_9u073_1","item--columns-8--l":"_item--columns-8--l_9u073_1","item--columns-9--l":"_item--columns-9--l_9u073_1","item--columns-10--l":"_item--columns-10--l_9u073_1","item--columns-11--l":"_item--columns-11--l_9u073_1","item--columns-12--l":"_item--columns-12--l_9u073_1","item--columns-1--xl":"_item--columns-1--xl_9u073_1","item--columns-auto--xl":"_item--columns-auto--xl_9u073_1","item--columns-2--xl":"_item--columns-2--xl_9u073_1","item--columns-3--xl":"_item--columns-3--xl_9u073_1","item--columns-4--xl":"_item--columns-4--xl_9u073_1","item--columns-5--xl":"_item--columns-5--xl_9u073_1","item--columns-6--xl":"_item--columns-6--xl_9u073_1","item--columns-7--xl":"_item--columns-7--xl_9u073_1","item--columns-8--xl":"_item--columns-8--xl_9u073_1","item--columns-9--xl":"_item--columns-9--xl_9u073_1","item--columns-10--xl":"_item--columns-10--xl_9u073_1","item--columns-11--xl":"_item--columns-11--xl_9u073_1","item--columns-12--xl":"_item--columns-12--xl_9u073_1","--direction-column--m":"_--direction-column--m_9u073_1","--direction-column-reverse--m":"_--direction-column-reverse--m_9u073_1","--direction-row--m":"_--direction-row--m_9u073_1","--direction-row-reverse--m":"_--direction-row-reverse--m_9u073_1","item--grow-true--m":"_item--grow-true--m_9u073_1","item--grow-false--m":"_item--grow-false--m_9u073_1","--direction-column--l":"_--direction-column--l_9u073_1","--direction-column-reverse--l":"_--direction-column-reverse--l_9u073_1","--direction-row--l":"_--direction-row--l_9u073_1","--direction-row-reverse--l":"_--direction-row-reverse--l_9u073_1","item--grow-true--l":"_item--grow-true--l_9u073_1","item--grow-false--l":"_item--grow-false--l_9u073_1","--direction-column--xl":"_--direction-column--xl_9u073_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_9u073_1","--direction-row--xl":"_--direction-row--xl_9u073_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_9u073_1","item--grow-true--xl":"_item--grow-true--xl_9u073_1","item--grow-false--xl":"_item--grow-false--xl_9u073_1"},qo=e=>{const{columns:t,grow:o,shrink:r,gapBefore:n,as:i="div",order:l,children:c,className:d,attributes:u}=e,m=A(ze.item,d,n==="auto"&&ze["item--gap-auto"],n!==void 0&&ze["item--gap-before"],t&&ze["item--columns"],r&&ze["item--shrink"],...ae(ze,"item--grow",o),...ae(ze,"item--columns",t)),_=b(b({},O("--rs-view-item-order",l)),O("--rs-view-item-gap-before",n));return s.jsx(i,N(b({},u),{style:b(b({},u==null?void 0:u.style),_),className:m,children:c}))},Wo=e=>{var Le;const{align:t,justify:o,wrap:r,gap:n,height:i,width:l,aspectRatio:c,maxHeight:d,maxWidth:u,minHeight:m,minWidth:_,padding:g,paddingInline:h,paddingBlock:v,paddingBottom:f,paddingEnd:p,paddingStart:y,paddingTop:x,bleed:w,animated:C,backgroundColor:z,borderColor:I,borderTop:S,borderBottom:k,borderStart:$,borderEnd:E,borderInline:M,borderBlock:T,borderRadius:L,shadow:P,textAlign:F,overflow:D,position:V,inset:W,insetTop:K,insetBottom:G,insetStart:oe,insetEnd:B,zIndex:R,grow:U,shrink:Y,as:X="div",children:ee,divided:ge,className:Z,attributes:H}=e,Q=(Le=e.border)!=null?Le:I?!S&&!k&&!$&&!E&&!M&&!T:void 0;let J=!!t||!!o||!!n||!!e.direction;const ue=e.direction||(J?"column":void 0),Ee=Qe({align:t,inset:W,insetTop:K,insetBottom:G,insetStart:oe,insetEnd:B,bleed:w,width:l,height:i,maxWidth:u,maxHeight:d,minWidth:_,minHeight:m,position:V,aspectRatio:c,textAlign:F,justify:o,padding:g,paddingInline:h,paddingBlock:v,paddingBottom:f,paddingEnd:p,paddingStart:y,paddingTop:x,borderColor:I,border:Q,borderTop:S,borderBottom:k,borderStart:$,borderEnd:E,borderInline:M,borderBlock:T,radius:L});let ne=0,ie;const le=({className:me,key:fe})=>{const Xe=A(ze.divider,me);let ye=!1;return typeof ue=="string"&&ue.startsWith("row")?ye=!0:ue&&(ye=Object.keys(ue).reduce((qe,Ne)=>{const Te=ue[Ne];return Te?N(b({},qe),{[Ne]:Te.startsWith("row")}):qe},{})),s.jsx("div",{className:Xe,children:s.jsx(Kt,{vertical:ye,blank:!0})},`${fe}-divider`)},_e=({className:me,child:fe,index:Xe})=>{var Fo,Vo;const ye=a.isValidElement(fe),Pe=ye&&fe.type===qo,qe=ye&&fe.type===Wo,Ne=fe.key,Te=!!Xe&&ge&&le({className:me,key:Ne});let Yt;return Pe?Yt=a.cloneElement(fe,{className:A(me,fe.props.className)}):!me&&(a.isValidElement(fe)||a.Children.count(ee===1)||typeof fe=="string")?Yt=fe:Yt=s.jsx("div",{className:me,children:fe},Ne),(Pe||qe)&&((Fo=fe.props)!=null&&Fo.grow)&&(ie=fe.props.grow,J=!0),Pe&&((Vo=fe.props)==null?void 0:Vo.gap)==="auto"&&(ie=!0),s.jsxs(a.Fragment,{children:[Te,Yt]},Ne?`${Ne}-fragment`:void 0)},pe=a.Children.map(ee,(me,fe)=>{if(!me)return null;const Xe=ne;if(ne+=1,a.isValidElement(me)&&me.type===pt){const ye=me.props,{children:Pe}=ye,qe=ve(ye,["children"]),Ne=me.key||fe;return a.createElement(pt,N(b({},qe),{key:Ne}),_e({child:Pe,index:Xe}))}return me.type===a.Fragment&&a.Children.count(me.props.children)>1?me.props.children.map(Pe=>Pe?(ne+=1,_e({child:Pe,index:ne})):null):_e({child:me,index:Xe})}),we=A(ze.root,Z,Ee.classNames,z&&ze[`--bg-${z}`],P&&ze[`--shadow-${P}`],D&&ze[`--overflow-${D}`],C&&ze["--animated"],ge&&ze["--divided"],(J||ie)&&ze["--flex"],...ae(ze,"--direction",ue),...ae(ze,"--nowrap",ie||r===!1),...ae(ze,"--wrap",r),...ae(ze,"item--grow",U),Y&&ze["item--shrink"]),$e=b(b(b(b({},H==null?void 0:H.style),O("--rs-view-gap",n)),Ee.variables),R?{"--rs-view-z":R}:{});return s.jsx(X,N(b({},H),{className:we,style:$e,children:pe}))};Wo.displayName="View",qo.displayName="View.Item";const q=Wo;q.Item=qo;const uo={root:"_root_kbofm_1","--position-top":"_--position-top_kbofm_1","--position-top-start":"_--position-top-start_kbofm_1","--position-top-end":"_--position-top-end_kbofm_1","--position-bottom":"_--position-bottom_kbofm_101","--position-bottom-start":"_--position-bottom-start_kbofm_1","--position-bottom-end":"_--position-bottom-end_kbofm_1","--elevated":"_--elevated_kbofm_66","--active":"_--active_kbofm_80"},va=["top","bottom"],_n=e=>{const{position:t="bottom",positionType:o,offset:r,padding:n,paddingBlock:i=3,paddingInline:l=4,children:c,elevated:d,active:u=!0,className:m,attributes:_}=e,g=o!=null?o:r?"absolute":va.includes(t)?"relative":"absolute",h=r!=null?r:g==="relative"?void 0:4,v=h&&O("--rs-action-bar-offset",h),f=A(uo.root,(d||!!v)&&uo["--elevated"],t&&uo[`--position-${t}`],u&&uo["--active"],m);return s.jsx(q,{className:f,attributes:N(b({},_),{style:b(b({},_==null?void 0:_.style),v)}),position:g,paddingBlock:n||i,paddingInline:n||l,children:c})};_n.displayName="ActionBar";const Oo={root:"_root_wxiwp_1","--auto":"_--auto_wxiwp_12","--color-neutral":"_--color-neutral_wxiwp_1","--color-neutral-faded":"_--color-neutral-faded_wxiwp_1","--color-primary":"_--color-primary_wxiwp_1","--color-positive":"_--color-positive_wxiwp_1","--color-warning":"_--color-warning_wxiwp_1","--color-critical":"_--color-critical_wxiwp_1","--color-disabled":"_--color-disabled_wxiwp_1"},he=e=>{const{svg:t,className:o,color:r,size:n="1em",autoWidth:i,attributes:l}=e,c=Qe({height:n}),d=A(Oo.root,o,c.classNames,r&&Oo[`--color-${r}`],i&&Oo["--auto"]),u=a.isValidElement(t)||t===null?t:s.jsx(t,{}),m=b(b({},l==null?void 0:l.style),c.variables);return s.jsx("span",N(b({},l),{"aria-hidden":"true",className:d,style:m,children:u&&a.cloneElement(u,{focusable:!1})}))};he.displayName="Icon";const ya={icon:"_icon_1elkf_1"},mn=e=>{const{title:t,children:o,icon:r,actionsSlot:n,color:i="neutral",inline:l,bleed:c,className:d,attributes:u}=e,m=i==="neutral",_=()=>l?s.jsxs(s.Fragment,{children:[t&&s.jsx(se,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&o&&" ",o&&s.jsx(se,{variant:"body-3",as:"span",children:o})]}):s.jsxs(q,{gap:1,grow:!0,children:[t&&s.jsx(se,{variant:"body-3",weight:"medium",children:t}),o&&s.jsx(se,{variant:"body-3",children:o})]}),g=h=>n?s.jsxs(q,{gap:l?4:2,direction:l?"row":"column",children:[l?s.jsx(q.Item,{grow:!0,children:h}):h,n&&s.jsx(se,{variant:"body-3",weight:"medium",children:s.jsx(q,{direction:"row",gap:3,children:n})})]}):h;return s.jsx(q,{direction:"row",gap:3,padding:4,bleed:c,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:N(b({},u),{role:i==="critical"?"alert":"status"}),children:r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:ya.icon,children:s.jsx(he,{svg:r,size:5,color:m?"primary":i})}),s.jsx(q.Item,{grow:!0,children:g(_())})]}):g(_())})};mn.displayName="Alert";const We=e=>{const t=a.useId();return e||t};let vt={},lt=null;const xa=e=>{vt[e]&&(e===lt&&(lt=vt[e].parentId),delete vt[e],lt===null&&(vt={}))},wa=(e,t,o)=>{vt[e]={parentId:lt,triggerRef:o,contentRef:t},lt=e},hn=e=>{const{active:t,contentRef:o,triggerRef:r,hasTrigger:n=!0}=e,i=We();return a.useEffect(()=>{if(t)return wa(i,o,r),()=>xa(i)},[t,i,o,r]),a.useCallback(()=>{var _;if(!t)return!0;const l=lt?vt[lt]:void 0,c=(_=l==null?void 0:l.triggerRef)==null?void 0:_.current,d=l!=null&&l.parentId?vt[l.parentId]:void 0,u=d==null?void 0:d.contentRef.current,m=u&&c&&u.contains(c);return n&&!m?!0:!lt||lt===i},[i,t,n])},be=typeof window!="undefined"?a.useLayoutEffect:a.useEffect,Se=e=>{const t=a.useRef(e);return be(()=>{t.current=e},[e]),t},Gt="+",Ye=new Map;let Xt=[];const fn=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),_o=e=>fn(e).split(Gt).sort().join(Gt),gn=e=>{if(e.key)return e.altKey&&/^[Key|Digit|Numpad]/.test(e.code)?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},bn=(e,t)=>{Object.keys(e).forEach(o=>{o.split(",").forEach(r=>{const n=e[o];n&&t(_o(r),n)})})};class Ca{constructor(){xe(this,"hotkeyMap",{});xe(this,"getSize",()=>Object.keys(this.hotkeyMap).length);xe(this,"bindHotkeys",(t,o,r)=>{bn(t,(n,i)=>{i&&(this.hotkeyMap[n]||(this.hotkeyMap[n]=new Set),this.hotkeyMap[n].add({callback:i,ref:o,options:r}))})});xe(this,"unbindHotkeys",t=>{bn(t,(o,r)=>{var n,i;r&&((n=this.hotkeyMap[o])==null||n.forEach(l=>{l.callback===r&&this.hotkeyMap[o].delete(l)}),(i=this.hotkeyMap[o])!=null&&i.size||delete this.hotkeyMap[o])})});xe(this,"handleKeyDown",(t,o)=>{if(!t.size)return;const r=[...t.keys()],n=_o(r.join(Gt)),i=n.split(Gt),l=this.hotkeyMap[n],c=_o(n.replace("control","mod")),d=_o(n.replace("meta","mod")),u=i.includes("control")&&this.hotkeyMap[c],m=i.includes("meta")&&this.hotkeyMap[d];[l,u,m].forEach(_=>{_&&_!=null&&_.size&&_.forEach(g=>{const h=o.composedPath()[0];if(g.ref.current&&!(h===g.ref.current||g.ref.current.contains(h)))return;const v=t.get(n);g.options.preventDefault&&(v==null||v.preventDefault(),o.preventDefault()),g.callback(o)})})})}}const Uo=new Ca,pn=a.createContext({}),Na=e=>{const{children:t}=e,[o,r]=a.useState(0),[n,i]=a.useState(0),l=a.useCallback(h=>{if(h.repeat||n===0)return;const v=gn(h);v&&(Ye.set(v,h),r(Ye.size),h.metaKey&&Xt.push(...Ye.keys()),Ye.has("Meta")&&Xt.push(v))},[n]),c=a.useCallback(h=>{if(n===0)return;const v=gn(h);v&&(Ye.delete(v),(v==="meta"||v==="control")&&Ye.delete("mod"),v==="meta"&&(Xt.forEach(f=>{Ye.has(f)&&Ye.delete(f)}),Xt=[]),r(Ye.size))},[n]),d=h=>!fn(h).split(Gt).some(f=>!Ye.has(f)),u=a.useCallback(h=>{h.key&&(l(h),Uo.handleKeyDown(Ye,h))},[l]),m=a.useCallback(h=>{h.key&&c(h)},[c]),_=a.useCallback(()=>{Ye.clear(),Xt=[]},[]),g=a.useCallback((h,v,f={})=>(i(p=>p+1),Uo.bindHotkeys(h,v,f),()=>{i(p=>p-1),Uo.unbindHotkeys(h)}),[]);return a.useEffect(()=>(window.addEventListener("keydown",u),window.addEventListener("keyup",m),window.addEventListener("blur",_),()=>{window.removeEventListener("keydown",u),window.removeEventListener("keyup",m),window.removeEventListener("blur",_)}),[u,m,_]),s.jsx(pn.Provider,{value:{addHotkeys:g,isPressed:d},children:t})},ka=()=>a.useContext(pn),Ke=(e,t=[],o)=>{const{addHotkeys:r,isPressed:n}=ka(),i=a.useRef(null),l=(o==null?void 0:o.ref)||i;return a.useEffect(()=>{if(o!=null&&o.disabled)return;const c=r(e,l,{preventDefault:o==null?void 0:o.preventDefault});return()=>c==null?void 0:c()},[r,Object.keys(e).join(","),o==null?void 0:o.disabled,o==null?void 0:o.preventDefault,...t]),{ref:l,checkHotkeyState:n}},vn=(e,t,o)=>{const{disabled:r}=o||{},n=Se(t),i=a.useRef(!1);a.useEffect(()=>{const l=c=>{i.current=!1;const d=c.composedPath()[0];e.forEach(u=>{u.current&&(u.current===d||u.current.contains(d))&&(i.current=!0)})};return document.addEventListener("mousedown",l,{passive:!0}),document.addEventListener("touchstart",l,{passive:!0}),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l)}},[...e]),a.useEffect(()=>{if(!n.current||r)return;const l=c=>{var d;"button"in c&&c.button===2||i.current||(d=n.current)==null||d.call(n,c)};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}},[n,r,...e])},Yo=a.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),za=e=>{const t=a.useState(e||!1),[o,r]=t;return be(()=>{const n=new MutationObserver(i=>{i.forEach(l=>{if(l.attributeName!=="dir")return;const c=l.target.dir==="rtl";o!==c&&r(c)})});return n.observe(document.documentElement,{attributes:!0}),()=>n.disconnect()},[o]),be(()=>{document.documentElement.setAttribute("dir",o?"rtl":"ltr")},[o]),t},at=()=>a.useContext(Yo).rtl,Sa=e=>"width"in e&&e.width!==void 0?e:N(b({},e),{width:0,height:0,left:e.x,right:e.x,top:e.y,bottom:e.y,toJSON:()=>{}}),jt=e=>{const t=e==null?void 0:e.getRootNode();return t instanceof ShadowRoot?t:null},mo=()=>{document.body.style.userSelect="none"},ho=()=>{document.body.style.userSelect=""},Ea=(e,t)=>{let o=e.parentElement;for(;o;){if(t(o))return o;o=o.parentElement}return null},Ko=e=>{const{el:t,iteration:o=0}=e,r=t&&window.getComputedStyle(t),n=r==null?void 0:r.position,i=n==="fixed"||n==="sticky";if(o===0){const l=jt(t);if(l!=null&&l.firstElementChild)return l.firstElementChild}return t===document.body||!t?document.body:i?t:Ko({el:t.parentElement,iteration:o+1})},Go=e=>{const{el:t,iteration:o=0}=e,r=t&&window.getComputedStyle(t),n=r==null?void 0:r.overflowY,i=(n==null?void 0:n.includes("scroll"))||(n==null?void 0:n.includes("auto"));return!t.parentElement||i&&t.scrollHeight>t.clientHeight?t:Go({el:t.parentElement,iteration:o+1})},yn=(e,t)=>{Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set.call(e,t),e.dispatchEvent(new Event("change",{bubbles:!0}))},fo="data-rs-focus",xn='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex],[contenteditable]',Qt=e=>{const t=e?jt(e):null,o=t!=null?t:document;return o.querySelector(`[${fo}]`)||o.activeElement},go=(e,t)=>{var n;const o=jt(e);(n=(o!=null?o:document).querySelector(`[${fo}]`))==null||n.removeAttribute(fo),t!=null&&t.pseudoFocus?e.setAttribute(fo,"true"):e.focus()},Zt=(e,t)=>{const r=Array.from(e.querySelectorAll(xn)).filter(n=>{if(n.hasAttribute("disabled")||n.clientHeight===0||!(t!=null&&t.includeNegativeTabIndex)&&n.getAttribute("tabindex")==="-1")return!1;if(n.type==="radio"){let i;if(n.form){const l=n.form.elements.namedItem(n.name);if(!l)return!1;"length"in l?i=Array.from(l).filter(d=>"type"in d&&d.type==="radio"):i=[l]}else i=Array.from(e.querySelectorAll(`[type="radio"][name="${n.name}"]`));if(i!=null&&i.length){const l=Array.from(i).find(c=>c.checked);if(l&&n!==l||!l&&n!==i[0])return!1}}return!0});return t!=null&&t.additionalElement&&r.length&&r.unshift(t.additionalElement),r},wn=e=>{const{root:t,target:o,options:r}=e,n=Zt(t,{additionalElement:r==null?void 0:r.additionalElement,includeNegativeTabIndex:r==null?void 0:r.includeNegativeTabIndex}),i=n.length-1,l=Qt(t),c=n.indexOf(l),d={next:c+1,prev:c-1,first:0,last:i};let u=d[o];const m=u>i||u<0;return m&&(r!=null&&r.circular?u=o==="prev"?d.last:d.first:u=o==="prev"?d.first:d.last),{overflow:m,el:n[u],focusableElements:n}},bo=(e,t,o)=>{const r=wn({root:e,target:t,options:o});return go(r.el),{el:r.el,focusableElements:r.focusableElements}},$a=(e,t)=>bo(e,"next",N(b({},t),{includeNegativeTabIndex:!0})),Ta=(e,t)=>bo(e,"prev",N(b({},t),{includeNegativeTabIndex:!0})),Ma=e=>bo(e,"first",{includeNegativeTabIndex:!0}),Ia=e=>bo(e,"last",{includeNegativeTabIndex:!0}),Xo="data-rs-keyboard",ja=()=>{document.documentElement.setAttribute(Xo,"true")},Da=()=>{document.documentElement.removeAttribute(Xo)},po=()=>document.documentElement.hasAttribute(Xo),La="Escape",Pa=" ",Cn="Enter",Aa="Tab",yt="ArrowUp",xt="ArrowDown",wt="ArrowRight",Ct="ArrowLeft",Fa="Backspace";class Va{constructor(){xe(this,"chain",{});xe(this,"tailId",null);xe(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 o=this.tailId,r=o&&this.get(o),n=this.generateId();return this.chain[n]={previousId:o,data:t},r&&(r.nextId=n),this.tailId=n,n}remove(t){var d,u;const o=this.chain[t];if(!o)return;const r=o.previousId,n=r&&this.get(r),i=o.nextId,l=i&&this.get(i);n&&(n.nextId=(d=o.nextId)!=null?d:null),l&&(l.previousId=(u=o.previousId)!=null?u:null),i||(this.tailId=r!=null?r:null);const c=this.get(t).data;return delete this.chain[t],c}removePreviousTill(t,o){const r=this.get(t),n=this.remove(t);return!r||!r.previousId||o(r)?n:this.removePreviousTill(r.previousId,o)}}class Ba{constructor(t){xe(this,"root");xe(this,"hiddenElements",[]);xe(this,"hideSiblingsFromScreenReader",t=>{let o=t.parentNode&&t.parentNode.firstChild;for(;o;){const r=o!==t,n=o.nodeType===1&&!o.hasAttribute("aria-hidden");r&&n&&(o.setAttribute("aria-hidden","true"),this.hiddenElements.push(o)),o=o.nextSibling}});xe(this,"release",()=>{this.hiddenElements.forEach(t=>{t.removeAttribute("aria-hidden")}),this.hiddenElements=[]});xe(this,"trap",()=>{let t=this.root;for(this.release();t!==document.body&&t.parentElement;)this.hideSiblingsFromScreenReader(t),t=t.parentElement});this.root=t}}const Ue=class Ue{constructor(){it(this,Tt);it(this,Ce,null);it(this,ht,null);it(this,Wt,{});xe(this,"trapped");it(this,Ot,null);it(this,Ut,null);it(this,ao,t=>{if(t.defaultPrevented||Ue.chain.tailId!==re(this,Tt)||!re(this,Ce))return;const{mode:o,onRelease:r,pseudoFocus:n,includeTrigger:i}=re(this,Wt);let l="tabs";(o==="action-menu"||o==="selection-menu"||o==="action-bar")&&(l="arrows");const c=t.key,d=c===Aa,u=d&&t.shiftKey,m=d&&!t.shiftKey,_=[Ct,wt,yt,xt].includes(c),g=l==="arrows"&&c===(o==="action-bar"?Ct:yt),h=l==="arrows"&&c===(o==="action-bar"?wt:xt),v=u&&l==="tabs"||g,f=m&&l==="tabs"||h,p=Qt(re(this,Ce))===re(this,ht),y=wn({root:re(this,Ce),target:v?"prev":"next",options:{additionalElement:i?re(this,ht):void 0,circular:!0}});if(d&&l==="arrows"||o==="content-menu"&&d&&y.overflow){u&&!p&&t.preventDefault(),this.release(),r==null||r();return}if(!v&&!f){_&&(o==="action-bar"||o==="action-menu")&&t.preventDefault();return}t.preventDefault(),y.el&&go(y.el,{pseudoFocus:n})});it(this,Ao,()=>{const t=jt(re(this,Ce));(t!=null?t:document).addEventListener("keydown",re(this,ao))});it(this,co,()=>{const t=jt(re(this,Ce));(t!=null?t:document).removeEventListener("keydown",re(this,ao))});xe(this,"trap",(t,o={})=>{const{mode:r="dialog",includeTrigger:n,initialFocusEl:i}=o;Mt(this,Ce,t),Mt(this,Ot,new Ba(t));const l=Qt(re(this,Ce)),c=Zt(re(this,Ce),{additionalElement:n?l:void 0}),d=r==="selection-menu";if(Mt(this,Wt,N(b({},o),{pseudoFocus:d})),Mt(this,ht,l),Mt(this,Ut,new MutationObserver(()=>{if(!re(this,Ce))return;const _=Qt(re(this,Ce));if(re(this,Ce).contains(_))return;const g=Zt(re(this,Ce),{additionalElement:n?l:void 0});g.length&&go(g[0],{pseudoFocus:d})})),re(this,co).call(this),re(this,Ut).observe(re(this,Ce),{childList:!0,subtree:!0}),!c.length&&!i)return;re(this,Ao).call(this),r==="dialog"&&re(this,Ot).trap();const u=Ue.chain.tailId&&Ue.chain.get(Ue.chain.tailId),m=Qt(re(this,Ce));(!u||re(this,Ce)!==re(u.data,Ce))&&(Mt(this,Tt,Ue.chain.add(this)),re(this,Ce).contains(m)||go(i||c[0],{pseudoFocus:d})),this.trapped=!0});xe(this,"release",(t={})=>{var n,i;const{withoutFocusReturn:o}=t;if(!this.trapped||!re(this,Tt)||!re(this,Ce))return;this.trapped=!1,re(this,ht)&&!o&&re(this,ht).focus({preventScroll:!po()}),Ue.chain.removePreviousTill(re(this,Tt),l=>document.body.contains(re(l.data,ht))),(n=re(this,Ut))==null||n.disconnect(),re(this,co).call(this),(i=re(this,Ot))==null||i.release();const r=Ue.chain.tailId&&Ue.chain.get(Ue.chain.tailId);r&&re(r.data,Ce)&&new Ue().trap(re(r.data,Ce),re(r.data,Wt))})}};Tt=new WeakMap,Ce=new WeakMap,ht=new WeakMap,Wt=new WeakMap,Ot=new WeakMap,Ut=new WeakMap,ao=new WeakMap,Ao=new WeakMap,co=new WeakMap,xe(Ue,"chain",new Va);let Dt=Ue;const Ge=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},Qo="data-rs-no-transition",Ha=()=>{document.documentElement.setAttribute(Qo,"true")},qa=()=>{document.documentElement.removeAttribute(Qo)},Wa=()=>!document.documentElement.hasAttribute(Qo),Nn=600,Oa=150,kn={left:0,top:0,position:"absolute",visibility:"hidden",animation:"none",transition:"none",zIndex:"var(--rs-z-index-absolute)"},zn=a.createContext({}),Sn=a.createContext(null),En=a.createContext(null),Lt=()=>a.useContext(zn),Ua=()=>a.useContext(Sn),Ya=()=>a.useContext(En),Ka=zn.Provider,Ga=Sn.Provider,Xa=En.Provider,Oe=8,Qa=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,$n=(e,t)=>Math.floor(e/2-t/2),Za=e=>{var B,R;const{triggerBounds:t,flyoutBounds:o,containerBounds:r,position:n,rtl:i,width:l,contentGap:c=0,contentShift:d=0,passedContainer:u,fallbackAdjustLayout:m,fallbackMinHeight:_}=e,g=l==="full"||l==="100%";let h=0,v=0,f=null,p=null,y,x,w=n;i&&(w=Qa(w)),(g||x==="trigger")&&(w=w.includes("top")?"top":"bottom");const C=!!w.match(/^(start|end)/),z=o.width+(C?c:0),I=o.height+(C?0:c),S=t.width,k=t.height,$=u==null?void 0:u.scrollLeft,E=u==null?void 0:u.scrollTop,M=$!=null?$:window.scrollX,T=E!=null?E:window.scrollY,L=(B=u==null?void 0:u.clientHeight)!=null?B:window.innerHeight,P=(R=u==null?void 0:u.clientWidth)!=null?R:window.innerWidth,F=u?r.bottom:window.innerHeight-T,D=t.left-r.left+($||0),V=r.right-t.right-($||0),W=t.top-r.top+(E||0),K=F-t.bottom-(E||0);switch(w){case"start":case"start-top":case"start-bottom":h=D-z,p=V+S;break;case"end":case"end-top":case"end-bottom":h=D+S;break;case"bottom":case"top":h=D+$n(S,z)+d;break;case"top-start":case"bottom-start":h=D+d;break;case"top-end":case"bottom-end":h=D+S-z+d,p=V-d;break}switch(w){case"top":case"top-start":case"top-end":v=W-I,f=K+k;break;case"bottom":case"bottom-start":case"bottom-end":v=W+k;break;case"start":case"end":v=W+$n(k,I)+d;break;case"start-top":case"end-top":v=W+d;break;case"start-bottom":case"end-bottom":v=W+k-I+d,f=K-d;break}if(m){const U=()=>({top:-v+T+Oe,bottom:v+I+Oe-T-L,left:-h+M+Oe,right:h+z+Oe-M-P}),Y=U();C?Y.top>0?(v=Oe+T,f!==null&&(f=f-Y.top)):Y.bottom>0&&(v=v-Y.bottom):Y.left>0?(h=Oe+M,p!==null&&(p=p-Y.left)):Y.right>0&&(h=h-Y.right);const X=U();X.top>0?(y=Math.max(_?parseInt(_):0,I-X.top),v=v+(I-y)):X.bottom>0&&(y=Math.max(_?parseInt(_):0,I-X.bottom),f!==null&&(f=f+(I-y)))}g?(h=Oe,x=window.innerWidth-Oe*2):l==="trigger"&&(x=t.width);const G=p!==null?-p:h,oe=f!==null?-f:v;return{position:w,styles:{left:p===null?"0px":null,right:p===null?null:"0px",top:f===null?"0px":null,bottom:f===null?null:"0px",transform:`translate(${G}px, ${oe}px)`,height:y!==void 0?`${y}px`:null,width:x!==void 0?`${x}px`:l!=null?l:null},boundaries:{left:h,top:v,height:y!=null?y:Math.ceil(I),width:x!=null?x:Math.ceil(z)}}},Tn={top:["top-start","top-end","top"],bottom:["bottom-start","bottom-end","bottom"],start:["start-top","start-bottom","start"],end:["end-top","end-bottom","end"]},Ja={top:["bottom","start","end"],bottom:["top","end","start"],start:["end","top","bottom"],end:["start","bottom","top"]},Ra=(e,t)=>{const o=new Set([e]),r=e.split("-"),[n]=r,i=Tn[n],l=i.indexOf(e),c=[l];return i.forEach((d,u)=>{u!==l&&c.push(u)}),[n,...Ja[n]].forEach(d=>{const u=Tn[d];c.forEach(m=>{const _=u[m];(t==null?void 0:t.indexOf(_))!==-1&&o.add(_)})}),Array.from(o)},ec=e=>{const{flyoutBounds:t,visualContainerBounds:o,renderContainerBounds:r}=e;return!(r.left+t.left<o.left+Oe||r.top+t.top<o.top+Oe||r.left+t.left+t.width>o.left+o.width-Oe||r.top+t.top+t.height>o.top+o.height-Oe)},tc=e=>{var T;const{triggerEl:t,flyoutEl:o,triggerBounds:r,contentShift:n=0,contentGap:i=0,position:l,fallbackPositions:c,fallbackAdjustLayout:d,fallbackMinHeight:u,width:m,container:_,lastUsedPosition:g,onPositionChoose:h,rtl:v}=e,f=o.cloneNode(!0),p=getComputedStyle(o).getPropertyValue("--rs-unit-x1"),y=p?parseInt(p):4,x=r||(t==null?void 0:t.getBoundingClientRect());if(!x)return;const w=Sa(x);f.style.cssText="",Object.keys(kn).forEach(L=>{const P=kn[L];P&&(f.style[L]=P.toString())}),m==="trigger"?f.style.width=`${w.width}px`:m&&m!=="full"&&(f.style.width=m),(t&&jt(t)||document.body).appendChild(f);const z=!_&&t?Ko({el:t}):void 0,S=(_||z||document.body).getBoundingClientRect(),k=(L,P)=>{const F=(P==null?void 0:P.width)||m;F==="full"?f.style.width=`calc(100% - ${Oe*2}px)`:F==="trigger"?f.style.width=`${w.width}px`:f.style.width=F||"";const D=f.getBoundingClientRect(),V={width:D.width,height:D.height};return Za({triggerBounds:w,flyoutBounds:V,containerBounds:S,position:L,contentGap:i*y,contentShift:n*y,rtl:v,width:F,passedContainer:_||(z!==document.body?z:void 0),fallbackAdjustLayout:d,fallbackMinHeight:u})},$=L=>{var F;const P=(F=_==null?void 0:_.getBoundingClientRect())!=null?F:{width:window.innerWidth,height:window.innerHeight,left:window.scrollX,top:window.scrollY};return console.log("visualContainerBounds",L.position,P,L.boundaries),ec({flyoutBounds:L.boundaries,visualContainerBounds:P,renderContainerBounds:S})};let E=null;const M=Ra(l,c);return M.some(L=>{const P=k(L),F=$(P);return F&&(E=P),F}),E||["top","bottom"].filter(P=>M.includes(P)).some(P=>{const F=k(P,{width:"full"}),D=$(F);return D&&(E=F),D}),E||(E=k(g)),h(E.position),(T=f.parentNode)==null||T.removeChild(f),Object.entries(E.styles).forEach(([L,P])=>{o.style.setProperty(L,P)}),{position:E.position}},oc=(e,t)=>{switch(t.type){case"render":return N(b({},e),{status:"rendered"});case"position":return N(b({},e),{status:t.payload.sync?e.status:"positioned",position:t.payload.position});case"show":return e.status!=="positioned"?e:N(b({},e),{status:"visible"});case"hide":return N(b({},e),{status:"hidden"});case"remove":return N(b({},e),{status:"idle"});default:throw new Error("[Reshaped] Invalid flyout reducer type")}},rc=e=>{const $=e,{triggerElRef:t,flyoutElRef:o,triggerBoundsRef:r,contentGap:n,contentShift:i}=$,l=ve($,["triggerElRef","flyoutElRef","triggerBoundsRef","contentGap","contentShift"]),{position:c="bottom",fallbackPositions:d,fallbackAdjustLayout:u,fallbackMinWidth:m,fallbackMinHeight:_,width:g,container:h}=l,v=a.useRef(c),f=a.useMemo(()=>d,[d==null?void 0:d.join(" ")]),[p]=at(),[y,x]=a.useReducer(oc,{position:c,status:"idle"}),w=a.useCallback(()=>{x({type:"render"})},[]),C=a.useCallback(()=>{x({type:"show"})},[]),z=a.useCallback(()=>{x({type:"hide"})},[]),I=a.useCallback(()=>{x({type:"remove"})},[]),S=a.useCallback(E=>{v.current=E},[]),k=a.useCallback(E=>{if(!o.current)return;const M=(E==null?void 0:E.fallback)!==!1,T=tc({triggerEl:t.current,flyoutEl:o.current,triggerBounds:r.current,width:g,position:M?c:v.current,fallbackPositions:M?f:[],fallbackAdjustLayout:u,fallbackMinHeight:_,lastUsedPosition:v.current,onPositionChoose:S,rtl:p,container:h,contentGap:n,contentShift:i});T&&x({type:"position",payload:N(b({},T),{sync:E==null?void 0:E.sync})})},[h,c,f,u,p,o,t,r,g,n,i,S,m,_]);return a.useEffect(()=>{y.status==="rendered"&&k()},[y.status,k]),a.useMemo(()=>({position:y.position,status:y.status,updatePosition:k,render:w,hide:z,remove:I,show:C}),[w,k,z,I,C,y.position,y.status])};class nc{constructor(){xe(this,"status","cold");xe(this,"timer");xe(this,"warm",()=>{if(clearTimeout(this.timer),this.status==="cooling"){this.status="warm";return}this.status="warming",this.timer=setTimeout(()=>{this.status="warm",this.timer=void 0},100)});xe(this,"cool",()=>{if(clearTimeout(this.timer),this.status==="warming"){this.status="cold";return}this.status="cooling",this.timer=setTimeout(()=>{this.status="cold",this.timer=void 0},500)})}}const Nt=new nc,Zo=e=>{var El;const{triggerType:t="click",groupTimeouts:o,onOpen:r,onClose:n,children:i,disabled:l,forcePosition:c,fallbackAdjustLayout:d,fallbackMinWidth:u,fallbackMinHeight:m,trapFocusMode:_="dialog",width:g,disableHideAnimation:h,disableContentHover:v,disableCloseOnOutsideClick:f,autoFocus:p=!0,originCoordinates:y,contentGap:x=2,contentShift:w,contentMaxHeight:C,contentMaxWidth:z,contentClassName:I,contentAttributes:S,position:k,active:$,id:E,instanceRef:M,containerRef:T,initialFocusRef:L,positionRef:P}=e,F=e.fallbackPositions===!1||c?[]:e.fallbackPositions,D=Se(r),V=Se(n),W=l===!0?!1:$,K=Lt(),{elRef:G}=Ua()||{},{elRef:oe}=Ya()||{},B=K.trapFocusMode==="action-menu"||K.trapFocusMode==="content-menu",[R]=at(),U=a.useRef(null),Y=!!(G!=null&&G.current)&&((El=oe==null?void 0:oe.current)==null?void 0:El.contains(G.current)),ee=(!oe||Y)&&G||U,ge=a.useRef(null),Z=a.useRef(null),H=We(E),Q=a.useRef(null),J=a.useRef(null),ue=a.useRef(!1),Ee=a.useRef(!1),ne=a.useRef(!1),ie=a.useRef(!0),le=a.useRef(!1),_e=a.useRef(y!=null?y:null);_e.current=y!=null?y:null;const pe=rc({triggerElRef:P!=null?P:ee,flyoutElRef:Z,triggerBoundsRef:y?_e:ge,width:g,position:k,defaultActive:W,container:T==null?void 0:T.current,fallbackPositions:F,fallbackAdjustLayout:d,fallbackMinWidth:u,fallbackMinHeight:m,contentGap:x,contentShift:w}),{status:we,updatePosition:$e,render:Le,hide:me,remove:fe,show:Xe}=pe,ye=we!=="idle",Pe=hn({active:ye&&t!=="hover",contentRef:Z,triggerRef:ee}),qe=a.useCallback(()=>{Q.current&&clearTimeout(Q.current)},[]),Ne=a.useCallback(()=>{var te;ue.current||ye&&t!=="hover"||(te=D.current)==null||te.call(D)},[D,ye,t]),Te=a.useCallback(te=>{var $l,Tl;!(t==="click"&&!Pe())&&(ye||l)&&(($l=V.current)==null||$l.call(V,{reason:te.reason}),te!=null&&te.closeParents&&((Tl=K==null?void 0:K.handleClose)==null||Tl.call(K,{closeParents:!0,reason:te.reason})))},[ye,Pe,t,V,l,K]),Yt=a.useCallback(te=>{var ft;!po()||(ft=Z.current)!=null&&ft.contains(te.relatedTarget)||ne.current||Te({})},[Te]),Fo=a.useCallback(()=>{t==="hover"&&!po()||Ne()},[Ne,t]),Vo=a.useCallback(()=>{t==="hover"&&(le.current=!0)},[t]),sd=a.useCallback(()=>{qe(),le.current?(Ne(),le.current=!1):(o&&Nt.warm(),Q.current=setTimeout(()=>{Ne()},o&&Nt.status==="warming"||B?Nn:0))},[qe,Ne,o,B]),id=a.useCallback(te=>{var st,ft;te.relatedTarget===Z.current||te.relatedTarget instanceof Node&&((st=Z.current)!=null&&st.contains(te.relatedTarget))||te.relatedTarget===ee.current||te.relatedTarget instanceof Node&&((ft=ee.current)!=null&&ft.contains(te.relatedTarget))||(Nt.cool(),qe(),B?Q.current=setTimeout(()=>{Te({})},Oa):Te({}))},[qe,Te,ee,Z,B]),ld=a.useCallback(()=>{ye?Te({}):Ne()},[ye,Ne,Te]),ad=a.useCallback(()=>{var ft;const te=(ft=P==null?void 0:P.current)!=null?ft:ee.current,st=te==null?void 0:te.getBoundingClientRect();st&&(ge.current=st)},[ee,P]),cd=()=>{ne.current=!0,le.current=!0},dd=()=>{ne.current=!1},ud=a.useCallback(te=>{W&&(Z.current!==te.currentTarget||te.propertyName!=="transform"||(Ee.current=!0,ge.current=null))},[W]),_d=a.useCallback(te=>{Z.current!==te.currentTarget||te.propertyName!=="transform"||we==="hidden"&&(Ee.current=!1,fe())},[fe,we]);return be(()=>{if(W){Le();return}l&&Nt.cool(),Wa()&&!h&&Ee.current&&(Nt.status==="cooling"||!o)?me():fe()},[W,Le,me,fe,h,l,o]),a.useEffect(()=>{we==="positioned"&&Ge(()=>Xe())},[we,Xe]),be(()=>{var st;if(we!=="visible"||!Z.current||(st=J.current)!=null&&st.trapped||_===!1)return;const te=p?L==null?void 0:L.current:Z.current.querySelector("[role][tabindex='-1']");J.current=new Dt,J.current.trap(Z.current,{mode:_,initialFocusEl:te,includeTrigger:t==="hover"&&_!=="dialog"&&!B,onRelease:()=>{Te({})}})},[we,t,_,p]),a.useEffect(()=>{var te;!h&&we!=="hidden"||h&&ye||(te=J.current)!=null&&te.trapped&&(t==="hover"&&(ue.current=!0,setTimeout(()=>{ue.current=!1},100)),J.current.release({withoutFocusReturn:!ie.current}),ie.current=!0)},[we,ye,t,h]),a.useEffect(()=>()=>{var te;return(te=J.current)==null?void 0:te.release()},[]),a.useEffect(()=>{if(!ye)return;const te=new ResizeObserver(()=>$e({sync:!0}));return te.observe(document.body),ee.current&&te.observe(ee.current),Z.current&&te.observe(Z.current),()=>te.disconnect()},[$e,ee,ye,Z]),a.useEffect(()=>{$e({sync:!0})},[R,$e]),a.useImperativeHandle(M,()=>({open:Ne,close:()=>Te({}),updatePosition:()=>$e({sync:!0})}),[Ne,Te,$e]),Ke({Escape:()=>Te({reason:"escape-key"})},[Te]),vn([Z,ee],()=>{ie.current=!1,Te({reason:"outside-click"})},{disabled:!ye||f}),s.jsx(Ka,{value:{id:H,flyout:pe,width:g,triggerElRef:ee,flyoutElRef:Z,handleClose:Te,handleOpen:Ne,handleFocus:Fo,handleBlur:Yt,handleMouseEnter:sd,handleMouseLeave:id,handleTouchStart:Vo,handleTransitionStart:ud,handleTransitionEnd:_d,handleMouseDown:ad,handleClick:ld,handleContentMouseDown:cd,handleContentMouseUp:dd,triggerType:t,trapFocusMode:_,contentClassName:I,contentAttributes:S,contentGap:x,contentMaxHeight:C,contentMaxWidth:z,containerRef:T,disableContentHover:v,autoFocus:p,isSubmenu:B},children:i})};Zo.displayName="FlyoutControlled";const Mn=e=>{const{defaultActive:t,onClose:o,onOpen:r}=e,[n,i]=a.useState(t||!1),l=d=>{i(!1),o==null||o(d)},c=()=>{i(!0),r==null||r()};return s.jsx(Zo,N(b({},e),{defaultActive:void 0,active:n,onClose:l,onOpen:c}))};Mn.displayName="FlyoutUncontrolled";const In=e=>{const{active:t}=e;return typeof t=="boolean"?s.jsx(Zo,b({},e)):s.jsx(Mn,b({},e))};In.displayName="Flyout";const jn=a.createContext({}),Jo=a.createContext({}),sc={root:"_root_153o0_1"},vo=e=>e?e.hasAttribute("data-rs-root")||e===document.documentElement||!e.parentElement?e:vo(e.parentElement):document.documentElement,Ro=()=>a.useContext(Jo),Dn=()=>{const{colorMode:e,theme:t,setTheme:o,rootTheme:r,setRootTheme:n}=a.useContext(jn),{mode:i,setMode:l,invertMode:c}=a.useContext(Jo);return a.useMemo(()=>({theme:t,setTheme:o,rootTheme:r,setRootTheme:n,colorMode:e||i,setColorMode:l,invertColorMode:c}),[e,i,l,c,t,o,n,r])},Ln=e=>typeof e=="string"?e:` ${e.join(" ")} `,Pt=e=>s.jsx(Pn,b({},e)),Pn=e=>{const{name:t,defaultName:o,colorMode:r,scoped:n,scopeRef:i,children:l,className:c}=e,[d,u]=a.useState(!1),[m,_]=a.useState(o),g=Ro(),h=Dn(),v=!h.theme,f=t||m||h.theme,p=v||n?f:h.rootTheme,y=v||n?g.mode:h.colorMode,w=r==="inverted"?y==="light"?"dark":"light":r||y,C=A(sc.root,c),z=a.useCallback(k=>{v?_(k):h.setRootTheme(k)},[v,h]),I=a.useCallback(k=>{_(k)},[]);be(()=>{u(!0)},[]),be(()=>{if(!document||!v)return;const k=vo(i==null?void 0:i.current),$=k.getAttribute("data-rs-color-mode"),E=Ln(f);return E&&k.setAttribute("data-rs-theme",E),$||k.setAttribute("data-rs-color-mode",w),()=>{k.removeAttribute("data-rs-theme"),$||k.removeAttribute("data-rs-color-mode")}},[f,w,v,i]);const S=a.useMemo(()=>({theme:f,rootTheme:p,colorMode:w,setTheme:I,setRootTheme:z}),[f,w,I,z,p]);return s.jsx(jn.Provider,{value:S,children:s.jsx("div",{className:C,ref:i,"data-rs-root":n?!0:void 0,"data-rs-theme":v?void 0:Ln(f),"data-rs-color-mode":v||!r&&!d?void 0:w,children:l})})};Pt.displayName="Theme";const An=e=>{const{defaultMode:t,mode:o,scopeRef:r,children:n}=e,[i,l]=a.useState(t),c=Ro(),d=a.useCallback(m=>{vo(r==null?void 0:r.current).setAttribute("data-rs-color-mode",m),c.mode&&!r&&c.setMode(m),l(m)},[r,c]);be(()=>{Ha(),Ge(()=>{qa()})},[i,o]),be(()=>{const m=vo(r==null?void 0:r.current).getAttribute("data-rs-color-mode");m&&d(m)},[d,r]);const u=a.useMemo(()=>({mode:o||i,setMode:d,invertMode:()=>{d(i==="light"?"dark":"light")}}),[i,o,d]);return s.jsx(Jo.Provider,{value:u,children:n})};An.displayName="GlobalColorMode";const kt=e=>{const[t,o]=a.useState(e||!1),r=a.useCallback(()=>{o(!0)},[]),n=a.useCallback(()=>{o(!1)},[]),i=a.useCallback(l=>{o(typeof l=="boolean"?l:c=>!c)},[]);return a.useMemo(()=>({active:t,activate:r,deactivate:n,toggle:i}),[r,n,i,t])},ic={root:"_root_hqrz2_1"},Fn=a.createContext({}),lc=()=>a.useContext(Fn),Vn=e=>{var _;const{children:t,targetRef:o}=e,r=kt(),n=a.useRef(null),i=(_=n.current)==null?void 0:_.getRootNode(),c=i instanceof ShadowRoot?i:document.body,d=lc(),u=o||d.scopeRef,m=(u==null?void 0:u.current)||c;return be(()=>(r.activate(),()=>r.deactivate()),[]),[Ae.createPortal(s.jsx(Pt,{children:t}),m),!r.active&&s.jsx("div",{ref:n,className:ic.root},"root")]};function Bn(e){const{children:t}=e,o=a.useRef(null);return s.jsx(Fn.Provider,{value:{scopeRef:o},children:t(o)})}Vn.displayName="Portal",Bn.displayName="PortalScope";const yo=Vn;yo.Scope=Bn;const er=(e,t)=>e>t?[]:Array.from({length:t-e+1},(o,r)=>e+r),tr=e=>{let t=null,o=null;return function(...r){o=r,t===null&&(t=requestAnimationFrame(()=>{t=null,e(...o)}))}},gt={content:"_content_1tsb0_1","--hover":"_--hover_1tsb0_18","--hover-disabled":"_--hover-disabled_1tsb0_22",inner:"_inner_1tsb0_23","--width-trigger":"_--width-trigger_1tsb0_51","--position-top":"_--position-top_1tsb0_55","--position-top-end":"_--position-top-end_1tsb0_56","--position-top-start":"_--position-top-start_1tsb0_57","--position-bottom":"_--position-bottom_1tsb0_63","--position-bottom-end":"_--position-bottom-end_1tsb0_64","--position-bottom-start":"_--position-bottom-start_1tsb0_65","--position-start":"_--position-start_1tsb0_81","--position-start-top":"_--position-start-top_1tsb0_82","--position-start-bottom":"_--position-start-bottom_1tsb0_83","--position-end":"_--position-end_1tsb0_89","--position-end-top":"_--position-end-top_1tsb0_90","--position-end-bottom":"_--position-end-bottom_1tsb0_91","--visible":"_--visible_1tsb0_107","--animated":"_--animated_1tsb0_112"},Hn=e=>{const{children:t,className:o,attributes:r}=e,{flyout:n,id:i,flyoutElRef:l,triggerElRef:c,handleClose:d,handleTransitionEnd:u,handleTransitionStart:m,triggerType:_,handleMouseEnter:g,handleMouseLeave:h,handleContentMouseDown:v,handleContentMouseUp:f,contentClassName:p,contentAttributes:y,contentGap:x,contentMaxHeight:w,contentMaxWidth:C,trapFocusMode:z,disableContentHover:I,autoFocus:S,width:k,containerRef:$,isSubmenu:E}=Lt(),{status:M,position:T}=n,[L,P]=a.useState(!1),F=a.useMemo(()=>!L||!c?null:Ko({el:c.current}),[L,c]),D=a.useMemo(()=>{if(L&&c!=null&&c.current)return Go({el:c.current})},[L,c]),V=$||{current:F};if(be(()=>{P(!0)},[]),a.useEffect(()=>{const B=l.current;if(B)return B.addEventListener("transitionstart",m),()=>B.removeEventListener("transitionstart",m)},[m,l,M]),a.useEffect(()=>{if(M!=="visible"||!D)return;const B=c==null?void 0:c.current,R=D,U=tr(()=>{const Y=B==null?void 0:B.getBoundingClientRect(),X=R.getBoundingClientRect();Y&&(Y.top<X.top||Y.left<X.left||Y.right>X.right||Y.bottom>X.bottom)?d({}):n.updatePosition({sync:!0,fallback:!1})});return D.addEventListener("scroll",U,{passive:!0}),()=>D.removeEventListener("scroll",U)},[D,n,M,d,c]),M==="idle"||!L)return null;const W=A(gt.content,_==="hover"&>["--hover"],M==="visible"&>["--visible"],(Nt.status==="cooling"||!Nt.timer||E||_!=="hover")&>["--animated"],T&>[`--position-${T}`],k==="trigger"&>["--width-trigger"],_==="hover"&&I&>["--hover-disabled"]),K=A(gt.inner,o,p);let G=r==null?void 0:r.role;_==="hover"?G="tooltip":z==="dialog"?G="dialog":z==="selection-menu"?G="listbox":z==="action-menu"?G="menu":z==="action-bar"&&(G="menubar");const oe=s.jsx(Xa,{value:{elRef:l},children:s.jsx("div",{className:W,style:{"--rs-flyout-gap":x,"--rs-flyout-max-h":w,"--rs-flyout-max-w":C},ref:l,onTransitionEnd:u,onMouseEnter:_==="hover"?g:void 0,onMouseLeave:_==="hover"?h:void 0,onMouseDown:v,onTouchStart:v,onMouseUp:f,onTouchEnd:f,children:s.jsx("div",N(b({role:G},r),{id:i,tabIndex:S?void 0:-1,"aria-modal":G==="dialog"?!0:void 0,style:b(b({},r==null?void 0:r.style),y==null?void 0:y.style),className:K,children:t}))})});return s.jsx(yo,{targetRef:V,children:oe})};Hn.displayName="Flyout.Content";const qn=e=>{const{children:t}=e,{id:o,triggerElRef:r,triggerType:n,flyout:i,handleFocus:l,handleBlur:c,handleMouseEnter:d,handleMouseLeave:u,handleMouseDown:m,handleTouchStart:_,handleClick:g,trapFocusMode:h,isSubmenu:v}=Lt(),f=i.status!=="idle",p={ref:r};return(n==="click"||h==="action-menu")&&(p.onClick=g,p.onMouseDown=m),n==="hover"&&(p.onMouseEnter=d,p.onMouseLeave=u,p.onTouchStart=_),(n==="hover"&&!v||n==="focus")&&(p.onFocus=l,p.onBlur=c,p["aria-describedby"]=f?o:void 0),(n==="click"||n==="focus"||h==="action-menu")&&(h==="dialog"?p["aria-haspopup"]="dialog":h==="selection-menu"?(p["aria-haspopup"]="listbox",p["aria-autocomplete"]="list"):p["aria-haspopup"]="menu",p["aria-expanded"]=f,p["aria-controls"]=f?o:void 0),s.jsx(Ga,{value:{elRef:r},children:t(p)})};qn.displayName="Flyout.Trigger";const ct=In;ct.Trigger=qn,ct.Content=Hn;const zt={root:"_root_5umpz_2",touch:"_touch_5umpz_21","--inset":"_--inset_5umpz_44","--disabled-focus-ring":"_--disabled-focus-ring_5umpz_48","--radius-inherit":"_--radius-inherit_5umpz_52","--disabled":"_--disabled_5umpz_48","--full-width":"_--full-width_5umpz_82"},Ie=a.forwardRef((e,t)=>{const{children:o,render:r,href:n,onClick:i,type:l,disabled:c,insetFocus:d,disableFocusRing:u,borderRadius:m,as:_,stopPropagation:g,fullWidth:h,touchHitbox:v,className:f,attributes:p}=e,y=A(zt.root,f,c&&zt["--disabled"],m&&zt[`--radius-${m}`],d&&zt["--inset"],u&&zt["--disabled-focus-ring"],h&&zt["--full-width"]),x=b({},p),w=i||(p==null?void 0:p.onClick),C=(p==null?void 0:p.onFocus)||(p==null?void 0:p.onBlur),z=!!(n||p!=null&&p.href),I=!!(w||C||l||p!=null&&p.ref),S=!z&&I&&(!_||_==="button");let k;if(z)k="a",x.href=c?void 0:n||(p==null?void 0:p.href);else if(S)k="button",x.type=l||(p==null?void 0:p.type)||"button",x.disabled=c||(p==null?void 0:p.disabled);else if(I){const P=!(_==="label")||w||C;k=_||"span",x.role=P?"button":void 0,x.tabIndex=P?0:void 0}else k=_||"span";const $=L=>{var P;c||(g&&L.stopPropagation(),i==null||i(L),(P=p==null?void 0:p.onClick)==null||P.call(p,L))},E=L=>{const P=L.key===Pa,F=L.key===Cn;!P&&!F||x.role==="button"&&(g&&L.stopPropagation(),L.preventDefault(),$(L))},M=s.jsxs(s.Fragment,{children:[v&&(z||I)&&!c&&s.jsx("span",{className:zt.touch}),o]}),T=N(b({ref:t},x),{className:y,onClick:$,onKeyDown:E,"aria-disabled":c?!0:void 0,children:M});return r?r(T):s.jsx(k,b({},T))});Ie.displayName="Actionable";const xo={root:"_root_1f1sc_15","rs-reshaped-loader":"_rs-reshaped-loader_1f1sc_1",inner:"_inner_1f1sc_44","--color-inherit":"_--color-inherit_1f1sc_63","--color-primary":"_--color-primary_1f1sc_67","--color-positive":"_--color-positive_1f1sc_71","--color-critical":"_--color-critical_1f1sc_75","--size-small":"_--size-small_1f1sc_1","--size-medium":"_--size-medium_1f1sc_1","--size-large":"_--size-large_1f1sc_1","--size-small--m":"_--size-small--m_1f1sc_1","--size-medium--m":"_--size-medium--m_1f1sc_1","--size-large--m":"_--size-large--m_1f1sc_1","--size-small--l":"_--size-small--l_1f1sc_1","--size-medium--l":"_--size-medium--l_1f1sc_1","--size-large--l":"_--size-large--l_1f1sc_1","--size-small--xl":"_--size-small--xl_1f1sc_1","--size-medium--xl":"_--size-medium--xl_1f1sc_1","--size-large--xl":"_--size-large--xl_1f1sc_1"},or=e=>{const{size:t="small",color:o="primary",className:r,attributes:n}=e,i=e.ariaLabel||(n==null?void 0:n["aria-label"]),l=A(xo.root,r,ae(xo,"--size",t),o&&xo[`--color-${o}`]);return s.jsx("span",N(b({},n),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:l,children:s.jsx("span",{className:xo.inner})}))};or.displayName="Loader";const je={root:"_root_lcajc_5","--loading":"_--loading_lcajc_59","--highlighted":"_--highlighted_lcajc_59","--disabled":"_--disabled_lcajc_59",text:"_text_lcajc_72",icon:"_icon_lcajc_78","--icon-position-end":"_--icon-position-end_lcajc_87",loader:"_loader_lcajc_99","--icon-only":"_--icon-only_lcajc_107","--rounded":"_--rounded_lcajc_125","--size-small":"_--size-small_lcajc_1","--size-medium":"_--size-medium_lcajc_1","--size-large":"_--size-large_lcajc_1","--size-xlarge":"_--size-xlarge_lcajc_1","--full-width":"_--full-width_lcajc_174","--variant-solid":"_--variant-solid_lcajc_186","--color-neutral":"_--color-neutral_lcajc_187","--color-primary":"_--color-primary_lcajc_296","--color-critical":"_--color-critical_lcajc_297","--color-positive":"_--color-positive_lcajc_298","--color-media":"_--color-media_lcajc_201","--variant-faded":"_--variant-faded_lcajc_208","--color-inherit":"_--color-inherit_lcajc_224","--variant-outline":"_--variant-outline_lcajc_232","--variant-ghost":"_--variant-ghost_lcajc_268","--elevated":"_--elevated_lcajc_288",group:"_group_lcajc_349",aligner:"_aligner_lcajc_445","--size-small--m":"_--size-small--m_lcajc_1","--size-medium--m":"_--size-medium--m_lcajc_1","--size-large--m":"_--size-large--m_lcajc_1","--size-xlarge--m":"_--size-xlarge--m_lcajc_1","--full-width-true--m":"_--full-width-true--m_lcajc_1","--full-width-false--m":"_--full-width-false--m_lcajc_1","--size-small--l":"_--size-small--l_lcajc_1","--size-medium--l":"_--size-medium--l_lcajc_1","--size-large--l":"_--size-large--l_lcajc_1","--size-xlarge--l":"_--size-xlarge--l_lcajc_1","--full-width-true--l":"_--full-width-true--l_lcajc_1","--full-width-false--l":"_--full-width-false--l_lcajc_1","--size-small--xl":"_--size-small--xl_lcajc_1","--size-medium--xl":"_--size-medium--xl_lcajc_1","--size-large--xl":"_--size-large--xl_lcajc_1","--size-xlarge--xl":"_--size-xlarge--xl_lcajc_1","--full-width-true--xl":"_--full-width-true--xl_lcajc_1","--full-width-false--xl":"_--full-width-false--xl_lcajc_1"},Wn=a.forwardRef((e,t)=>{const{variant:o="solid",color:r="neutral",elevated:n,highlighted:i,fullWidth:l,loading:c,loadingAriaLabel:d,disabled:u,type:m,href:_,size:g="medium",children:h,rounded:v,onClick:f,icon:p,endIcon:y,stopPropagation:x,as:w,render:C,className:z,attributes:I}=e,S=(p||y)&&!h,k=A(je.root,z,r&&je[`--color-${r}`],o&&je[`--variant-${o}`],ae(je,"--size",g),ae(je,"--full-width",l),n&&o!=="ghost"&&je["--elevated"],v&&je["--rounded"],u&&je["--disabled"],c&&je["--loading"],i&&je["--highlighted"],S&&je["--icon-only"]),$=E=>{if(!(E==="start"&&p||E==="end"&&y))return null;const P=A(je.icon,E==="end"&&je["--icon-position-end"]),F=ce(g,D=>D==="large"?5:D==="xlarge"?6:4);return s.jsx(he,{className:P,svg:E==="start"?p:y,size:F,autoWidth:!0})};return s.jsxs(Ie,{disabled:u||c,className:k,attributes:N(b({},I),{"data-rs-aligner-target":!0}),type:m,onClick:f,href:_,ref:t,as:w,stopPropagation:x,render:C,children:[c&&s.jsx("div",{className:je.loader,children:s.jsx(or,{color:"inherit",attributes:{"aria-label":d}})}),$("start"),h&&s.jsx("span",{className:je.text,children:h}),$("end")]})});Wn.displayName="Button";const On={root:"_root_1quhz_2","--side-all":"_--side-all_1quhz_7","--side-start":"_--side-start_1quhz_11","--side-inline":"_--side-inline_1quhz_12","--side-end":"_--side-end_1quhz_16","--side-top":"_--side-top_1quhz_21","--side-block":"_--side-block_1quhz_22","--side-bottom":"_--side-bottom_1quhz_26"},Jt=e=>{const{side:t="all",children:o,className:r,attributes:n}=e,i=typeof t=="string"?[t]:t,l=A(On.root,i.map(c=>On[`--side-${c}`]),r);return s.jsx("div",N(b({},n),{className:l,children:o}))};Jt.displayName="Aligner";const Un=e=>s.jsx(Jt,N(b({},e),{side:e.side||e.position,className:[je.aligner,e.className]}));Un.displayName="Button.Aligner";const Yn=e=>{const{children:t,className:o,attributes:r}=e,n=A(je.group,o);return s.jsx("div",N(b({},r),{className:n,role:"group",children:t}))};Yn.displayName="Button.Group";const Me=Wn;Me.Aligner=Un,Me.Group=Yn;const Kn=()=>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"})]}),Rt={root:"_root_1q0pg_1",close:"_close_1q0pg_9","--variant-media":"_--variant-media_1q0pg_16","--hide-close":"_--hide-close_1q0pg_17","--align-center":"_--align-center_1q0pg_26"},rr=e=>{const{children:t,align:o,onClose:r,hideCloseButton:n,variant:i,closeAriaLabel:l,className:c,attributes:d}=e,u=A(Rt.root,c,i&&Rt[`--variant-${i}`],o&&Rt[`--align-${o}`],n&&Rt["--hide-close"]),m=i==="media"?"div":Me.Aligner;return s.jsxs("div",N(b({},d),{className:u,children:[t,!n&&s.jsx(m,{className:Rt.close,children:s.jsx(Me,N(b({size:"small"},i==="media"?{color:"media",variant:"faded"}:{variant:"ghost"}),{onClick:()=>r==null?void 0:r(),attributes:{"aria-label":r?l:void 0},icon:Kn}))})]}))};rr.displayName="Dismissible";const eo={content:"_content_1jtpe_1","content--variant-elevated":"_content--variant-elevated_1jtpe_8","content--elevation-raised":"_content--elevation-raised_1jtpe_16","content--variant-headless":"_content--variant-headless_1jtpe_20","content--radius-small":"_content--radius-small_1jtpe_24","content--has-width":"_content--has-width_1jtpe_28"},Gn=e=>{var h,v;const g=e,{width:t,variant:o="elevated",triggerType:r="click",position:n="bottom",elevation:i,borderRadius:l}=g,c=ve(g,["width","variant","triggerType","position","elevation","borderRadius"]),d=(h=e.padding)!=null?h:o==="headless"?0:4,u=(v=e.trapFocusMode)!=null?v:r==="hover"?"content-menu":void 0,m=Qe({padding:d}),_=A(eo.content,!!t&&eo["content--has-width"],o&&eo[`content--variant-${o}`],i&&eo[`content--elevation-${i}`],l&&eo[`content--radius-${l}`],m.classNames);return s.jsx(ct,N(b({},c),{position:n,trapFocusMode:u,triggerType:r,width:t,contentClassName:_,contentAttributes:{style:b({},m.variables)}}))},Xn=e=>{const{handleClose:t}=Lt();return s.jsx(rr,N(b({},e),{onClose:()=>t({})}))};Gn.displayName="Popover",Xn.displayName="Popover.Dismissible";const dt=Gn;dt.Dismissible=Xn,dt.Trigger=ct.Trigger,dt.Content=ct.Content;const tt={root:"_root_44o4b_1",icon:"_icon_44o4b_22",content:"_content_44o4b_27","--rounded-corners":"_--rounded-corners_44o4b_32","--size-small":"_--size-small_44o4b_1","--size-medium":"_--size-medium_44o4b_1","--size-large":"_--size-large_44o4b_1","--color-neutral":"_--color-neutral_44o4b_74","--selected":"_--selected_44o4b_77","--highlighted":"_--highlighted_44o4b_79","--color-critical":"_--color-critical_44o4b_90","--color-primary":"_--color-primary_44o4b_106","--disabled":"_--disabled_44o4b_133",aligner:"_aligner_44o4b_154","--rounded-corners-true--m":"_--rounded-corners-true--m_44o4b_1","--rounded-corners-false--m":"_--rounded-corners-false--m_44o4b_1","--size-small--m":"_--size-small--m_44o4b_1","--size-medium--m":"_--size-medium--m_44o4b_1","--size-large--m":"_--size-large--m_44o4b_1","--rounded-corners-true--l":"_--rounded-corners-true--l_44o4b_1","--rounded-corners-false--l":"_--rounded-corners-false--l_44o4b_1","--size-small--l":"_--size-small--l_44o4b_1","--size-medium--l":"_--size-medium--l_44o4b_1","--size-large--l":"_--size-large--l_44o4b_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_44o4b_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_44o4b_1","--size-small--xl":"_--size-small--xl_44o4b_1","--size-medium--xl":"_--size-medium--xl_44o4b_1","--size-large--xl":"_--size-large--xl_44o4b_1"},Qn=a.forwardRef((e,t)=>{const{icon:o,startSlot:r,endSlot:n,children:i,color:l="primary",selected:c,highlighted:d,disabled:u,onClick:m,href:_,size:g="medium",roundedCorners:h,stopPropagation:v,as:f,render:p,className:y,attributes:x}=e,w=A(tt.root,y,ae(tt,"--size",g),ae(tt,"--rounded-corners",h),l&&tt[`--color-${l}`],c&&tt["--selected"],u&&tt["--disabled"],d&&tt["--highlighted"]),C=ce(g,I=>I==="large"?3:2),z=ce(g,I=>I==="large"?5:4);return s.jsx(Ie,{disabled:u,className:w,attributes:N(b({},x),{"data-rs-aligner-target":!0}),onClick:m,href:_,ref:t,as:f,stopPropagation:v,render:p,children:s.jsxs(q,{direction:"row",gap:C,align:"center",children:[o&&s.jsx(he,{svg:o,className:tt.icon,size:z}),!o&&r,i&&s.jsx(q.Item,{grow:!0,className:tt.content,children:i}),n]})})});Qn.displayName="MenuItem";const Zn=e=>s.jsx(Jt,N(b({},e),{side:e.side||"inline",className:[tt.aligner,e.className]}));Zn.displayName="MenuItem.Aligner";const nr=Qn;nr.Aligner=Zn;const At=()=>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"})}),wo={menu:"_menu_f04ws_1",section:"_section_f04ws_5",item:"_item_f04ws_11",arrow:"_arrow_f04ws_19"},sr=a.createContext(null),Jn=a.createContext(!1),ir=e=>{const c=e,{children:t,position:o="bottom-start",triggerType:r="click",trapFocusMode:n="action-menu",borderRadius:i="small"}=c,l=ve(c,["children","position","triggerType","trapFocusMode","borderRadius"]);return s.jsx(dt,N(b({},l),{position:o,padding:0,trapFocusMode:n,triggerType:r,borderRadius:i,disableHideAnimation:r!=="hover",children:t}))},Rn=e=>{const{children:t,attributes:o,className:r}=e,{flyout:n}=Lt(),i=a.useContext(sr),[l]=at(),{ref:c}=Ke({[l?wt:Ct]:()=>{var m;(m=i==null?void 0:i.current)==null||m.close()}},[i==null?void 0:i.current],{disabled:n.status==="idle",ref:o==null?void 0:o.ref}),d=A(wo.menu,r),u=m=>{var _;m.stopPropagation(),(_=o==null?void 0:o.onClick)==null||_.call(o,m)};return s.jsx(dt.Content,{className:d,attributes:N(b({},o),{ref:c,onClick:u}),children:t})},es=e=>{const{children:t}=e;return s.jsx("div",{className:wo.section,role:"group",children:t})},lr=e=>{const{onClick:t}=e,{handleClose:o}=Lt(),r=a.useContext(Jn),n=i=>{o&&!r&&o({closeParents:!0,reason:"item-selection"}),t&&t(i)};return s.jsx(nr,N(b({},e),{roundedCorners:!0,className:[wo.item,e.className],attributes:b({role:"menuitem"},e.attributes),onClick:n}))},ts=e=>{const l=e,{children:t,position:o="end-top",contentGap:r=.5}=l,n=ve(l,["children","position","contentGap"]),i=a.useRef(null);return s.jsx(sr.Provider,{value:i,children:s.jsx(ir,N(b({},n),{triggerType:"hover",position:o,contentGap:r,instanceRef:i,children:t}))})},ac=e=>{const c=e,{children:t,attributes:o}=c,r=ve(c,["children","attributes"]),n=a.useContext(sr),[i]=at(),{ref:l}=Ke({[i?Ct:wt]:()=>{var d;(d=n==null?void 0:n.current)==null||d.open()}},[],{ref:o==null?void 0:o.ref,preventDefault:!0});return s.jsx(lr,N(b({},r),{attributes:N(b({},o),{ref:l}),endSlot:s.jsx(he,{autoWidth:!0,svg:At,className:wo.arrow}),children:t}))},os=e=>{const r=e,{attributes:t}=r,o=ve(r,["attributes"]);return s.jsx(Jn.Provider,{value:!0,children:s.jsx(dt.Trigger,{children:n=>s.jsx(ac,N(b({},o),{attributes:b(b({},t),n)}))})})};ir.displayName="DropdownMenu",Rn.displayName="DropdownMenu.Content",es.displayName="DropdownMenu.Section",lr.displayName="DropdownMenu.Item",ts.displayName="DropdownMenu.SubMenu",os.displayName="DropdownMenu.SubTrigger";const ke=ir;ke.Dismissible=dt.Dismissible,ke.Trigger=dt.Trigger,ke.Content=Rn,ke.Section=es,ke.Item=lr,ke.SubMenu=ts,ke.SubTrigger=os;const rs=a.createContext({attributes:{}}),cc=rs.Provider,to=()=>a.useContext(rs),Ze=()=>{const{attributes:e,required:t,hasError:o,disabled:r}=to();return{attributes:e,required:t,hasError:o,disabled:r}},ar=(e,t)=>`${e}-${t||"caption"}`,ns=e=>{const{children:t,id:o,required:r,hasError:n,group:i,disabled:l,size:c}=e,d=We(o),u=i?"fieldset":"div",[m,_]=a.useState(!1),[g,h]=a.useState(!1),v=[m&&ar(d),g&&ar(d,"error")].filter(Boolean).join(" "),f={id:d,"aria-describedby":v},p=()=>{h(!0)},y=()=>{_(!0)};return s.jsx(u,{children:s.jsx(cc,{value:{required:r,hasError:n,errorRef:p,helperRef:y,attributes:f,group:i,disabled:l,size:c},children:t})})};ns.displayName="FormControl";const ss={label:"_label_1v514_5",caption:"_caption_1v514_14"},is=e=>{const{children:t,variant:o,disabled:r}=e,{attributes:n,size:i,helperRef:l,errorRef:c}=to(),d=ar(n.id,o),u=o==="error"?"critical":"neutral-faded",m=o==="error"?c:l;return s.jsx(se,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!o?"disabled":u,attributes:{id:d,role:"alert","aria-disabled":r,ref:m},className:ss.caption,children:t})},ls=e=>{const{children:t}=e,{hasError:o}=to();return o?s.jsx(is,{variant:"error",children:t}):null};ls.displayName="FormControl.Error";const as=e=>{const{children:t}=e,{disabled:o}=to();return s.jsx(is,{disabled:o,children:t})};as.displayName="FormControl.Helper";const cs=e=>{const{children:t}=e,{attributes:o,required:r,group:n,disabled:i,size:l}=to(),c=`${o.id}-label`,d=n?"legend":"label";return s.jsxs(se,{variant:l==="large"?"body-2":"body-3",weight:"medium",className:ss.label,color:i?"disabled":void 0,"aria-disabled":i,children:[s.jsx(d,{id:c,htmlFor:n?void 0:o.id,children:t}),r&&s.jsx(se,{color:i?"disabled":"critical",as:"span",children:"*"})]})};cs.displayName="FormControl.Label";const Co=ns;Co.Label=cs,Co.Helper=as,Co.Error=ls;const De={root:"_root_1rtvh_1",icon:"_icon_1rtvh_23","--focused":"_--focused_1rtvh_24","--multiline":"_--multiline_1rtvh_28",input:"_input_1rtvh_31","--rounded":"_--rounded_1rtvh_36",affix:"_affix_1rtvh_39",inner:"_inner_1rtvh_50",slot:"_slot_1rtvh_89","icon--position-end":"_icon--position-end_1rtvh_102","affix--position-end":"_affix--position-end_1rtvh_103","slot--position-end":"_slot--position-end_1rtvh_104","slot--position-start":"_slot--position-start_1rtvh_108","affix--position-start":"_affix--position-start_1rtvh_119","--disabled":"_--disabled_1rtvh_144","--size-small":"_--size-small_1rtvh_1","--size-medium":"_--size-medium_1rtvh_1","--size-large":"_--size-large_1rtvh_1","--size-xlarge":"_--size-xlarge_1rtvh_1","--variant-faded":"_--variant-faded_1rtvh_202","--variant-ghost":"_--variant-ghost_1rtvh_208","--variant-headless":"_--variant-headless_1rtvh_214","--status-error":"_--status-error_1rtvh_221","--size-small--m":"_--size-small--m_1rtvh_1","--size-medium--m":"_--size-medium--m_1rtvh_1","--size-large--m":"_--size-large--m_1rtvh_1","--size-xlarge--m":"_--size-xlarge--m_1rtvh_1","--size-small--l":"_--size-small--l_1rtvh_1","--size-medium--l":"_--size-medium--l_1rtvh_1","--size-large--l":"_--size-large--l_1rtvh_1","--size-xlarge--l":"_--size-xlarge--l_1rtvh_1","--size-small--xl":"_--size-small--xl_1rtvh_1","--size-medium--xl":"_--size-medium--xl_1rtvh_1","--size-large--xl":"_--size-large--xl_1rtvh_1","--size-xlarge--xl":"_--size-xlarge--xl_1rtvh_1"},ds=e=>{const{slot:t,icon:o,size:r,affix:n,position:i,id:l}=e;if(!o&&!t&&!n)return null;const c=a.isValidElement(t)&&t.type===a.Fragment?t.props.children:t,d=t&&a.Children.map(c,g=>s.jsx("div",{className:A(De.slot,De[`slot--position-${i}`]),children:g},"slot")),u=o&&s.jsx("label",{className:A(De.icon,De[`icon--position-${i}`]),htmlFor:l,children:s.jsx(he,{size:ce(r,g=>g==="large"?5:g==="xlarge"?6:4),svg:o,autoWidth:!0})},"icon"),m=n&&s.jsx("span",{className:A(De.affix,De[`affix--position-${i}`]),children:n},"affix");return(i==="start"?[u,d,m]:[u,m,d]).filter(Boolean)},us=e=>{var F;const{onChange:t,onFocus:o,onBlur:r,name:n,value:i,defaultValue:l,placeholder:c,icon:d,endIcon:u,startSlot:m,endSlot:_,startSlotPadding:g,endSlotPadding:h,prefix:v,suffix:f,size:p="medium",variant:y="outline",focused:x,multiline:w,rounded:C,className:z,attributes:I}=e,S=Ze(),k=We(e.id),$=(S==null?void 0:S.attributes.id)||((F=e.inputAttributes)==null?void 0:F.id)||k,E=(S==null?void 0:S.disabled)||e.disabled,M=(S==null?void 0:S.hasError)||e.hasError,T=b(b({},e.inputAttributes),S==null?void 0:S.attributes),L=A(De.root,z,p&&ae(De,"--size",p),M&&De["--status-error"],E&&De["--disabled"],x&&De["--focused"],w&&De["--multiline"],C&&De["--rounded"],y&&De[`--variant-${y}`]),P=D=>{t&&t({name:n,value:D.target.value,event:D})};return s.jsxs("div",N(b({},I),{style:N(b({},I==null?void 0:I.style),{"--rs-text-field-start-slot-padding":g!==void 0&&g>=0?`calc(var(--rs-unit-x1) * ${g})`:void 0,"--rs-text-field-end-slot-padding":h!==void 0&&h>=0?`calc(var(--rs-unit-x1) * ${h})`:void 0}),"data-rs-aligner-target":!0,className:L,children:[s.jsx(ds,{position:"start",icon:d,slot:m,size:p,affix:v,id:k}),s.jsxs("div",{className:De.inner,children:[s.jsx("input",N(b({type:"text",autoComplete:"off"},T),{className:A(De.input,T.className),disabled:E,name:n,placeholder:c,value:i,defaultValue:l,onChange:P,onFocus:o||(T==null?void 0:T.onFocus),onBlur:r||(T==null?void 0:T.onBlur),id:$})),s.jsx(ds,{position:"end",icon:u,slot:_,size:p,affix:f,id:k})]})]}))};us.displayName="TextField";const No=us;No.Aligner=Jt;const dc={"item--disabled":"_item--disabled_1vi4i_1"},_s=a.createContext({}),ms=e=>{var Z;const ge=e,{children:t,onChange:o,onInput:r,onItemSelect:n,name:i,containerRef:l,instanceRef:c,onBackspace:d,onEnter:u,active:m,onOpen:_,onClose:g,fallbackAdjustLayout:h,fallbackMinWidth:v,fallbackMinHeight:f,contentMaxHeight:p}=ge,y=ve(ge,["children","onChange","onInput","onItemSelect","name","containerRef","instanceRef","onBackspace","onEnter","active","onOpen","onClose","fallbackAdjustLayout","fallbackMinWidth","fallbackMinHeight","contentMaxHeight"]),[x,w]=a.useState(),C=Se(d),z=a.useRef(null),I=a.useRef(null),S=(Z=y.inputAttributes)==null?void 0:Z.ref,k=S&&typeof S!="string"&&"current"in S?S:I,[$,E]=a.useState(!1),M=!!a.Children.toArray(t).filter(Boolean).length,T=a.useRef(!1),L=Se(_),P=Se(g),F=Se(o),D=Se(n),V=Se(u),W=M&&(m!=null?m:$),K=a.useCallback(()=>{T.current=!0,setTimeout(()=>{T.current=!1},100)},[]),G=a.useCallback(()=>{var H;T.current||(E(!0),(H=L.current)==null||H.call(L))},[L]),oe=H=>{var Q;E(!1),(Q=P.current)==null||Q.call(P,H)},B=a.useCallback(H=>{var Q,J;(Q=F.current)==null||Q.call(F,{value:H.value,name:i}),(J=D.current)==null||J.call(D,H),K()},[K,F,D,i]),R=H=>{o==null||o(H),G()},U=H=>{var Q,J;r==null||r({value:H.currentTarget.value,name:i,event:H}),(J=(Q=y.inputAttributes)==null?void 0:Q.onInput)==null||J.call(Q,H)},Y=()=>{var H;K(),(H=k.current)==null||H.focus()},X=a.useCallback(()=>{const H=z.current;return H?Array.from(H.querySelectorAll("[role=option]:not([disabled])")):[]},[]);Ke({[Cn]:()=>{var J;const Q=X().find(ue=>ue.id===x);Q==null||Q.click(),(J=V.current)==null||J.call(V)},[Fa]:()=>{var H;(H=C.current)==null||H.call(C)}},[X,V,C,x],{ref:k}),Ke({[yt]:()=>{const H=X();if(H.length){const Q=H.findIndex(ue=>ue.id===x),J=H.at(Q-1)||H.at(-1);w(J.id)}},[xt]:()=>{G();const H=X();if(H.length){const Q=H.findIndex(ue=>ue.id===x),J=H.at(Q+1)||H.at(0);w(J.id)}}},[G,X,x],{ref:k,preventDefault:!0}),be(()=>{W&&requestAnimationFrame(()=>{var J;const Q=(J=X()[0])==null?void 0:J.id;Q&&w(Q)})},[W]);const ee=a.useMemo(()=>({onItemClick:B,highlightedId:x,setHighlightedId:w}),[x,B]);return s.jsx(_s.Provider,{value:ee,children:s.jsxs(ke,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:!1,active:W,onClose:oe,onOpen:G,containerRef:l,fallbackAdjustLayout:h,fallbackMinWidth:v,fallbackMinHeight:f,contentMaxHeight:p,disableHideAnimation:!0,instanceRef:c,children:[s.jsx(ke.Trigger,{children:J=>{var ue=J,{ref:H}=ue,Q=ve(ue,["ref"]);return s.jsx(No,N(b({},y),{name:i,onChange:R,focused:W,attributes:N(b({},y.attributes),{ref:H,onClick:Q.onFocus}),inputAttributes:N(b(b({},y.inputAttributes),Q),{onFocus:Ee=>{var ne,ie,le;(ne=Q.onFocus)==null||ne.call(Q),(ie=y.onFocus)==null||ie.call(y,Ee),T.current||(le=k.current)==null||le.select()},onInput:U,onClick:Q.onFocus,ref:k,role:"combobox","aria-activedescendant":x,"aria-haspopup":"listbox","aria-autocomplete":"list"})}))}}),s.jsx(ke.Content,{attributes:{onClick:Y,role:"listbox",ref:z},children:t})]})})},hs=e=>{const _=e,{value:t,data:o,onClick:r,disabled:n}=_,i=ve(_,["value","data","onClick","disabled"]),{onItemClick:l,highlightedId:c}=a.useContext(_s),d=We(),u=c===d,m=g=>{r==null||r(g),l({value:t,data:o})};return s.jsx(ke.Item,N(b({},i),{className:[n&&dc["item--disabled"],i.className],highlighted:u,disabled:n,attributes:N(b({},i.attributes),{role:"option",id:d,tabIndex:u?0:-1}),onClick:m}))};ms.displayName="Autocomplete",hs.displayName="Autocomplete.Item";const fs=ms;fs.Item=hs;const oo={root:"_root_1eg8e_1",image:"_image_1eg8e_5",fallback:"_fallback_1eg8e_17","--outline":"_--outline_1eg8e_25","image--display-mode-cover":"_image--display-mode-cover_1eg8e_37","image--display-mode-contain":"_image--display-mode-contain_1eg8e_41"},cr=e=>{const{src:t,alt:o,width:r,maxWidth:n,height:i,aspectRatio:l,onLoad:c,onError:d,fallback:u,outline:m,displayMode:_="cover",borderRadius:g,className:h,attributes:v,imageAttributes:f,renderImage:p}=e,[y,x]=a.useState("loading"),w=Qe({radius:g,width:r,height:i,maxWidth:n,aspectRatio:l}),C=A(oo.root,w.classNames,m&&oo["--outline"],h),z=A([oo.image,_&&oo[`image--display-mode-${_}`]]),I=(y==="error"||!t)&&!!u,S=b(b({},v==null?void 0:v.style),w.variables),k=T=>{var L;x("success"),c==null||c(T),(L=f==null?void 0:f.onLoad)==null||L.call(f,T)},$=T=>{var L;x("error"),d==null||d(T),(L=f==null?void 0:f.onError)==null||L.call(f,T)};if(a.useEffect(()=>{x("loading")},[t]),I){if(typeof u=="string"){const T=N(b({},v),{src:u!=null?u:"",alt:o!=null?o:"",role:o?void 0:"presentation",className:z,style:S});return p?p(T):s.jsx("img",b({},T))}return s.jsx("div",N(b({},v),{className:A([oo.fallback,C]),style:S,children:u}))}const E=N(b(b({},v),f),{src:t!=null?t:"",alt:o!=null?o:"",role:o?void 0:"presentation",onLoad:k,onError:$,className:m?z:A([z,C]),style:S}),M=p?p(E):s.jsx("img",b({},E));return m?s.jsx("div",N(b({},v),{className:C,style:S,children:M})):M};cr.displayName="Image";const dr={root:"_root_1de3p_1","--variant-faded":"_--variant-faded_1de3p_13","--color-neutral":"_--color-neutral_1de3p_14","--color-critical":"_--color-critical_1de3p_18","--color-positive":"_--color-positive_1de3p_22","--color-warning":"_--color-warning_1de3p_26","--color-primary":"_--color-primary_1de3p_30"},gs=e=>{const{color:t="neutral",variant:o,src:r,size:n=12,squared:i,initials:l,icon:c,className:d,renderImage:u,imageAttributes:m,attributes:_}=e,g=e.alt||(m==null?void 0:m.alt),h=i?ce(n,p=>p>=24?"large":p>=12?"medium":"small"):"circular";if(r)return s.jsx(cr,{src:r,alt:g,renderImage:u,outline:!0,borderRadius:h,width:n,aspectRatio:1,className:d,attributes:_,imageAttributes:m});const v=Qe({height:n}),f=A(dr.root,d,v==null?void 0:v.classNames,t&&dr[`--color-${t}`],o&&dr[`--variant-${o}`]);return s.jsx(q,{borderRadius:h,attributes:N(b({},_),{style:b({},v==null?void 0:v.variables)}),backgroundColor:o==="faded"?`${t}-${o}`:t,className:f,children:c?s.jsx(he,{svg:c,size:ce(n,p=>Math.ceil(p*.4))}):l})};gs.displayName="Avatar";const Fe={root:"_root_1oeg1_1",icon:"_icon_1oeg1_32",dismiss:"_dismiss_1oeg1_38","--highlighted":"_--highlighted_1oeg1_44","--actionable":"_--actionable_1oeg1_49","--variant-faded":"_--variant-faded_1oeg1_1","--variant-outline":"_--variant-outline_1oeg1_1","--color-positive":"_--color-positive_1oeg1_68","--color-critical":"_--color-critical_1oeg1_87","--color-warning":"_--color-warning_1oeg1_106","--color-primary":"_--color-primary_1oeg1_125","--size-small":"_--size-small_1oeg1_1","--size-medium":"_--size-medium_1oeg1_1","--size-large":"_--size-large_1oeg1_1","--rounded":"_--rounded_1oeg1_170","--hidden":"_--hidden_1oeg1_174",container:"_container_1oeg1_181","--container-overlap":"_--container-overlap_1oeg1_207","--container-position-top-end":"_--container-position-top-end_1oeg1_211","--container-position-bottom-end":"_--container-position-bottom-end_1oeg1_223"},bs=a.forwardRef((e,t)=>{const{children:o,color:r,rounded:n,size:i="medium",icon:l,endIcon:c,variant:d,hidden:u,highlighted:m,href:_,onClick:g,onDismiss:h,dismissAriaLabel:v,className:f,attributes:p}=e,y=!!(g||_),x=i==="small"?3:4,w=A(Fe.root,f,n&&Fe["--rounded"],u&&Fe["--hidden"],i&&Fe[`--size-${i}`],r&&Fe[`--color-${r}`],d&&Fe[`--variant-${d}`],y&&Fe["--actionable"],m&&Fe["--highlighted"]),C=z=>{z.stopPropagation(),h==null||h()};return s.jsxs(Ie,{onClick:g,href:_,className:w,attributes:p,ref:t,touchHitbox:!0,children:[l&&s.jsx(he,{svg:l,autoWidth:!0,size:x,className:Fe.icon}),o&&s.jsx(se,{variant:i==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":u?"true":void 0},children:o}),c&&s.jsx(he,{svg:c,autoWidth:!0,size:x,className:Fe.icon}),h&&s.jsx(Ie,{onClick:C,className:Fe.dismiss,as:"span",attributes:{"aria-label":v},touchHitbox:!0,children:s.jsx(he,{svg:Kn,size:x})})]})});bs.displayName="Badge";const ps=e=>{const{children:t,position:o="top-end",overlap:r,className:n,attributes:i}=e,l=A(Fe.container,n,r&&Fe["--container-overlap"],o&&Fe[`--container-position-${o}`]);return s.jsx("div",N(b({},i),{className:l,children:t}))};ps.displayName="Badge.Container";const vs=bs;vs.Container=ps;const ys=()=>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"})]}),xs=e=>{const{children:t,separator:o,color:r,defaultVisibleItems:n,expandAriaLabel:i,disableExpand:l,ariaLabel:c,className:d,attributes:u}=e,m=n&&n>=2?n:null,[_,g]=a.useState(!1),h=A(d),v=a.Children.count(t);let f=0;const p=()=>{g(!0)};return s.jsx("nav",N(b({},u),{"aria-label":c||(u==null?void 0:u["aria-label"]),className:h,children:s.jsx(q,{as:"ol",direction:"row",gap:2,align:"center",children:a.Children.map(t,(y,x)=>{if(!y)return null;const w=v-(m||0),C=f===0,z=f>w,I=!m||C||z||_,S=f===w;f+=1;let k=null;return I?k=y:S&&(k=l?s.jsx(he,{svg:ys,size:4}):s.jsx(Me.Aligner,{children:s.jsx(Me,{variant:"ghost",size:"small",icon:ys,onClick:p,attributes:{"aria-label":i}})})),k===null?null:s.jsxs(q,{as:"li",gap:2,direction:"row",align:"center",children:[x>0&&(I||S)&&s.jsx(se,{color:"neutral-faded",children:o||s.jsx(he,{svg:At,size:3})}),s.jsx(se,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:k})]},x)})})}))};xs.displayName="Breadcrumbs";const ro={root:"_root_x1qvh_1","--color-primary":"_--color-primary_x1qvh_6","--color-critical":"_--color-critical_x1qvh_10","--color-positive":"_--color-positive_x1qvh_14","--color-warning":"_--color-warning_x1qvh_18","--color-inherit":"_--color-inherit_x1qvh_22","--variant-plain":"_--variant-plain_x1qvh_27","--disabled":"_--disabled_x1qvh_32","--variant-underline":"_--variant-underline_x1qvh_39","--with-icon":"_--with-icon_x1qvh_57"},ur=a.forwardRef((e,t)=>{const{icon:o,disabled:r,href:n,color:i="primary",variant:l="underline",className:c,children:d,attributes:u,type:m,onClick:_,stopPropagation:g,render:h}=e,v=A(ro.root,c,r&&ro["--disabled"],l&&ro[`--variant-${l}`],i&&ro[`--color-${i}`],o&&ro["--with-icon"]);return s.jsxs(Ie,{href:n,disabled:r,className:v,attributes:u,type:m,onClick:_,ref:t,stopPropagation:g,render:h,children:[o&&s.jsx(he,{svg:o}),d]})});ur.displayName="Link";const ws=e=>{const{children:t,onClick:o,href:r,icon:n,disabled:i}=e;return!r&&!o&&!i?s.jsx(se,{variant:"body-3",weight:"medium",color:"neutral",children:t}):s.jsx(ur,{onClick:o,href:r,icon:n,disabled:i,variant:"plain",color:"inherit",children:t})};ws.displayName="Breadcrumbs.Item";const Cs=xs;Cs.Item=ws;const Ns=7,ks=1,ot=e=>{const{date:t}=e;return[t.getFullYear(),(t.getMonth()+1).toString().padStart(2,"0"),t.getDate().toString().padStart(2,"0")].join("-")},_r=e=>{const{date:t,firstWeekDay:o=ks}=e,r=t.getDay();return r<o?Ns-r-o:r-o},uc=e=>{const{firstWeekDay:t=ks,renderWeekDay:o}=e,r=new Date(2021,1,t),n=[];for(let i=t;i<t+Ns;i++){const l=o?o({weekDay:i,date:r}):r.toLocaleDateString("en-US",{weekday:"short"});n.push(l.slice(0,2)),r.setDate(r.getDate()+1)}return n},_c=e=>{const{renderMonthLabel:t}=e;return new Array(12).fill(null).map((o,r)=>{const n=new Date(0,r);return t?t({month:r,date:n}):n.toLocaleString("default",{month:"short"})})},mc=e=>{const{date:t,firstWeekDay:o}=e,r=t.getMonth(),n=t.getFullYear(),i=[],l=new Date(n,r,1),c=_r({date:l,firstWeekDay:o});for(c!==0&&i.push(new Array(c).fill(null));r===l.getMonth();)(_r({date:l,firstWeekDay:o})===0||!i.length)&&i.push([]),i[i.length-1].push(new Date(l)),l.setDate(l.getDate()+1);const d=_r({date:l,firstWeekDay:o});return d!==0&&i[i.length-1].push(...new Array(7-d).fill(null)),i},zs=e=>(e==null?void 0:e.querySelectorAll("[data-rs-date]"))||[],mr=(e,t)=>{const o=new Date(e);return o.setMonth(t),o},hc=e=>mr(e,e.getMonth()-1),Ss=e=>mr(e,e.getMonth()+1),Es=(e,t)=>{const o=new Date(e);return o.setFullYear(t),o},fc=e=>Es(e,e.getFullYear()-1),gc=e=>Es(e,e.getFullYear()+1),bc=e=>{const{date:t,min:o,max:r}=e,n=t.getMonth(),i=t.getFullYear(),l=new Date(i,n,0),c=Ss(t);return c.setDate(0),{isFirstMonth:o&&o>l,isLastMonth:r&&r<c}},pc=e=>{const{date:t,startValue:o,lastFocusedDate:r}=e,n=new Date,i=t.getMonth(),l=o==null?void 0:o.getMonth(),c=n.getMonth(),d=r==null?void 0:r.getMonth(),u=ot({date:t}),m=ot({date:n}),_=o&&ot({date:o}),g=r&&ot({date:r});return r&&i===d?u===g:o&&i===l?u===_:i===c?u===m:!0},vc={root:"_root_p9kz2_1"},ko=e=>{const{children:t}=e;return s.jsx("div",{className:vc.root,children:t})};ko.displayName="HiddenVisually";const zo=()=>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"})}),Ve={selection:"_selection_1iezs_1",weekday:"_weekday_1iezs_6",control:"_control_1iezs_12",cell:"_cell_1iezs_16","cell-button":"_cell-button_1iezs_21","--active":"_--active_1iezs_26","--selection-range":"_--selection-range_1iezs_31","--selection-start":"_--selection-start_1iezs_37","--selection-end":"_--selection-end_1iezs_47"},$s=e=>{const{selectionMode:t,onMonthTitleClick:o,monthTitleRef:r,monthDate:n,renderSelectedMonthLabel:i,hidePrevious:l,hideNext:c,onNextClick:d,onPreviousClick:u,monthSelectionAriaLabel:m="Select a month",previousMonthAriaLabel:_="Previous month",previousYearAriaLabel:g="Previous year",nextMonthAriaLabel:h="Next month",nextYearAriaLabel:v="Next year"}=e,f=a.useRef(null),p=a.useRef(null);return a.useEffect(()=>{if(!l||document.activeElement!==f.current)return;const y=p.current||(r==null?void 0:r.current);Ge(()=>{y==null||y.focus()})},[l,r]),a.useEffect(()=>{if(!c||document.activeElement!==p.current)return;const y=f.current||(r==null?void 0:r.current);Ge(()=>{y==null||y.focus()})},[c,r]),s.jsxs(q,{direction:"row",gap:2,align:"center",children:[s.jsx(pt,{visibility:!0,hide:l,children:s.jsx("div",{className:Ve.control,children:s.jsx(Me,{variant:"ghost",icon:zo,onClick:u,attributes:{ref:f,"aria-label":t==="date"?_:g}})})}),s.jsxs(q.Item,{grow:!0,children:[t==="date"&&s.jsxs(Me,{fullWidth:!0,variant:"ghost",onClick:o,attributes:{ref:r},children:[i?i({date:n}):n.toLocaleDateString("en-US",{month:"long",year:"numeric"}),s.jsx(ko,{children:m})]}),t==="month"&&s.jsx(se,{align:"center",weight:"medium",children:n.toLocaleDateString("en-US",{year:"numeric"})})]}),s.jsx(pt,{visibility:!0,hide:c,children:s.jsx("div",{className:Ve.control,children:s.jsx(Me,{variant:"ghost",icon:At,onClick:d,attributes:{ref:p,"aria-label":t==="date"?h:v}})})})]})};$s.displayName="CalendarControls";const Ts=e=>{const{date:t,isoDate:o,startValue:r,endValue:n,disabled:i,focusable:l,onChange:c,range:d,hoveredDate:u,onDateHover:m,onDateHoverEnd:_,onDateFocus:g,selectedDates:h,disabledDates:v,renderAriaLabel:f,renderSlot:p}=e;if(!t)return s.jsx("td",{className:Ve.cell,"aria-hidden":"true"});const y=r&&ot({date:r}),x=n&&ot({date:n}),w=!!(o&&y&&o===y),C=!!(o&&x&&o===x),z=!!(o&&y&&o>y),I=!!(o&&x&&o<x),S=!!(u&&!n&&u>t),k=!!(h!=null&&h.some(D=>ot({date:D})===o)),$=i||(v==null?void 0:v.some(D=>ot({date:D})===o));let E;switch(!0){case(z&&S):case(z&&I):E="range";break;case(w&&(!d||C)):case k:E="standalone";break;case w:E="start";break;case C:E="end";break}const M=A([Ve.cell,E&&Ve["--active"],E&&Ve[`--selection-${E}`]]),T=()=>{if(!d){c==null||c({value:t});return}const D=r&&n,V=!r&&!n,W=r&&t<r,K=D||V||W,G=K?t:r,oe=K?null:t;c==null||c({value:{start:G,end:oe}})},L=()=>{m(t)},P=()=>{_(t)},F=()=>{L(),g(t)};return s.jsx("td",{className:M,role:$?"presentation":"gridcell",children:s.jsxs(Ie,{fullWidth:!0,insetFocus:!0,className:Ve["cell-button"],disabled:$,onClick:T,attributes:{role:"checkbox",tabIndex:l?0:-1,"aria-hidden":$,"aria-label":f?f({date:t}):t.toLocaleDateString("en-us",{month:"long",day:"numeric",weekday:"long"}),"aria-checked":!!E,"data-rs-date":ot({date:t}),onMouseEnter:L,onMouseLeave:P,onFocus:F,onBlur:P},children:[t.getDate(),p==null?void 0:p({date:t,selected:!!(E&&E!=="range")})]})})};Ts.displayName="CalendarDate";const Ms=e=>{const{date:t,value:o,onChange:r,min:n,max:i,range:l,firstWeekDay:c,selectedDates:d,disabledDates:u,hoveredDate:m,onDateHover:_,onDateHoverEnd:g,renderWeekDay:h,renderDateAriaLabel:v,renderDateSlot:f}=e;let p=!1;const[y,x]=a.useState(),w=t.getMonth(),C=mc({date:t,firstWeekDay:c}),z=uc({firstWeekDay:c,renderWeekDay:h});return s.jsxs("table",{className:Ve.selection,role:"grid",children:[s.jsx("thead",{"aria-hidden":"true",children:s.jsx("tr",{children:z.map(I=>s.jsx("th",{className:Ve.weekday,scope:"col",children:I},I))})}),s.jsx("tbody",{children:C.map(I=>{var k;const S=[w,(k=I[0])==null?void 0:k.getDate()].filter(Boolean).join("-");return s.jsx("tr",{className:Ve.row,children:I.map(($,E)=>{const M=!!$&&(n&&$<n||i&&$>i),T=o&&"start"in o?o.start:o,L=o&&"end"in o?o.end:o,P=$&&ot({date:$}),F=M?!1:!p&&!!$&&pc({date:$,lastFocusedDate:y,startValue:T});return F&&(p=!0),s.jsx(Ts,{date:$,isoDate:P,disabled:M,range:l,focusable:F,startValue:T,endValue:L,onChange:r,hoveredDate:m,onDateHover:_,onDateHoverEnd:g,onDateFocus:x,renderAriaLabel:v,selectedDates:d,disabledDates:u,renderSlot:f},E)})},S)})})]})};Ms.displayName="CalendarMonth";const hr=3,Is=e=>{const{renderMonthLabel:t,renderMonthAriaLabel:o,monthDate:r,min:n,max:i,onMonthClick:l}=e,c=a.useRef(null),d=_c({renderMonthLabel:t}),u=[];for(let m=0;m<d.length;m+=hr){const _=d.slice(m,m+hr);u.push(_)}return a.useEffect(()=>{var _;const m=(_=c.current)==null?void 0:_.querySelector('[tabIndex="0"]');Ge(()=>{m==null||m.focus()})},[]),s.jsx("table",{ref:c,role:"grid",className:Ve.selection,children:s.jsx("tbody",{children:u.map((m,_)=>s.jsx("tr",{className:Ve.row,children:m.map((g,h)=>{const v=_*hr+h,f=new Date(r.getFullYear(),v),p=n&&n.getFullYear()>=f.getFullYear()&&n.getMonth()>f.getMonth(),x=i&&i.getFullYear()<=f.getFullYear()&&i.getMonth()<f.getMonth()||p;return s.jsx("td",{role:x?"presentation":"gridcell",className:Ve.cell,children:s.jsx(Ie,{fullWidth:!0,insetFocus:!0,className:Ve["cell-button"],disabled:x,onClick:()=>l(v),attributes:{tabIndex:v===r.getMonth()?0:-1,"aria-hidden":x,"aria-label":o?o({month:v}):g,"data-rs-date":`${r.getFullYear()}-${(v+1).toString().padStart(2,"0")}`},children:g})},g)})},_))})})};Is.displayName="CalendarYear";const yc=e=>{const{rootRef:t,changeToNextMonth:o,changeToPreviousMonth:r,monthDate:n,verticalDelta:i,min:l,max:c}=e,d=a.useRef(0),u=a.useCallback(m=>{const{delta:_,onMonthChange:g}=m,h=document.activeElement;if(!h)return;const v=zs(t.current),f=Array.from(v),y=f.findIndex($=>$===h)+_,x=f[y],w=h.getAttribute("data-rs-date");if(!w)return;const[C,z,I]=w==null?void 0:w.split("-").map(Number);let S;if(I?S=new Date(C,z-1,I+_):_>0?S=new Date(C,z-1+_,1):S=new Date(C,z-1+_+1,0),!(l&&S<l||c&&S>c)){if(x){x.focus();return}d.current=y<0?y:y-(f.length-1),g()}},[t,l,c]);a.useEffect(()=>{const m=d.current;if(m===0)return;const _=zs(t.current),g=m<0?_.length+m:m-1,h=_[g];h&&h.focus(),d.current=0},[n,t]),Ke({[Ct]:()=>u({delta:-1,onMonthChange:r}),[wt]:()=>u({delta:1,onMonthChange:o}),[yt]:()=>u({delta:-i,onMonthChange:r}),[xt]:()=>u({delta:i,onMonthChange:o})},[o,r,u,i],{ref:t,preventDefault:!0})},So=e=>{const{value:t,onChange:o,defaultMonth:r,month:n,onMonthChange:i,min:l,max:c,range:d,firstWeekDay:u,selectedDates:m,disabledDates:_,monthsToRender:g=1,renderMonthLabel:h,renderSelectedMonthLabel:v,renderWeekDay:f,previousMonthAriaLabel:p,previousYearAriaLabel:y,nextMonthAriaLabel:x,nextYearAriaLabel:w,monthSelectionAriaLabel:C,renderMonthAriaLabel:z,renderDateAriaLabel:I,renderDateSlot:S}=e,[k,$]=a.useState("date"),[E,M]=a.useState(n||r||new Date),[T,L]=a.useState(null),P=a.useRef(null),F=a.useRef(k),D=bc({date:E,min:l,max:c}),V=a.useRef(null),W=()=>{if(k==="month"){const Y=fc(E);i==null||i({date:Y}),n===void 0&&M(Y);return}const U=hc(E);i==null||i({date:U}),n===void 0&&M(U)},K=()=>{if(k==="month"){const Y=gc(E);i==null||i({date:Y}),n===void 0&&M(Y);return}const U=Ss(E);i==null||i({date:U}),n===void 0&&M(U)},G=()=>{$("month")},oe=U=>{const Y=mr(E,U);i==null||i({date:Y}),n===void 0&&M(Y),$("date")},B=U=>{L(U)},R=U=>{T&&+T==+U&&L(null)};return a.useEffect(()=>{k==="date"&&k!==F.current&&Ge(()=>{var U;(U=P.current)==null||U.focus()}),F.current=k},[k]),a.useEffect(()=>{n&&M(n)},[n]),yc({monthDate:E,rootRef:V,changeToNextMonth:K,changeToPreviousMonth:W,verticalDelta:k==="date"?7:3,min:l,max:c}),s.jsxs(q,{gap:2,children:[s.jsx(q,{direction:"row",gap:4,children:Array.from({length:k==="date"?g:1}).map((U,Y)=>{const X=D.isFirstMonth||g>0&&Y>0,ee=D.isLastMonth||k==="date"&&g>0&&Y<g-1,ge=new Date(E);return ge.setMonth(ge.getMonth()+Y),s.jsx(q.Item,{grow:!0,children:s.jsx($s,{renderSelectedMonthLabel:v,monthDate:ge,selectionMode:k,hidePrevious:X,hideNext:ee,monthTitleRef:Y===0?P:void 0,onMonthTitleClick:G,onNextClick:K,onPreviousClick:W,previousMonthAriaLabel:p,previousYearAriaLabel:y,nextMonthAriaLabel:x,nextYearAriaLabel:w,monthSelectionAriaLabel:C,monthsToRender:g})},Y)})}),s.jsxs(q,{direction:"row",gap:4,attributes:{ref:V},children:[k==="date"&&Array.from({length:g}).map((U,Y)=>{const X=new Date(E);return X.setMonth(X.getMonth()+Y),s.jsx(q.Item,{grow:!0,children:s.jsx(Ms,{date:X,value:t,onChange:o,min:l,max:c,range:d,firstWeekDay:u,hoveredDate:T,selectedDates:m,disabledDates:_,onDateHover:B,onDateHoverEnd:R,renderWeekDay:f,renderDateAriaLabel:I,renderDateSlot:S})},Y)}),k==="month"&&s.jsx(Is,{monthDate:E,onMonthClick:oe,renderMonthLabel:h,renderMonthAriaLabel:z,min:l,max:c})]})]})};So.displayName="CalendarControlled";const js=e=>{const c=e,{onChange:t,defaultValue:o,range:r}=c,n=ve(c,["onChange","defaultValue","range"]),[i,l]=a.useState(o||null);return r?s.jsx(So,N(b({range:!0},n),{value:i,onChange:d=>{l(d.value),t==null||t(d)}})):s.jsx(So,N(b({},n),{value:i,onChange:d=>{l(d.value),t==null||t(d)}}))};js.displayName="CalendarUncontrolled";const Ds=e=>e.value!==void 0?s.jsx(So,b({},e)):s.jsx(js,b({},e));Ds.displayName="Calendar";const Eo={root:"_root_158rr_1","--selected":"_--selected_158rr_15","--elevated":"_--elevated_158rr_21","--actionable":"_--actionable_158rr_26"},Ls=a.forwardRef((e,t)=>{const{padding:o=4}=e,{selected:r,elevated:n,bleed:i,height:l,onClick:c,href:d,children:u,className:m,attributes:_,as:g="div"}=e,h=!!d||!!c,v=Qe({radius:"medium",bleed:i,height:l,padding:o}),f=A(Eo.root,v.classNames,h&&Eo["--actionable"],n&&Eo["--elevated"],r&&Eo["--selected"],m),p=b(b({},_==null?void 0:_.style),v.variables);return h?s.jsx(Ie,{className:f,attributes:N(b({},_),{style:p}),href:d,as:g,onClick:c,ref:t,children:u}):s.jsx(g,N(b({},_),{onClick:c,href:d,ref:t,className:f,style:p,children:u}))});Ls.displayName="Card";const ut={root:"_root_k04za_1",control:"_control_k04za_9","--control-prev":"_--control-prev_k04za_21","--control-next":"_--control-next_k04za_25","--control-visible":"_--control-visible_k04za_29",scroll:"_scroll_k04za_34",item:"_item_k04za_61","--control-rendered":"_--control-rendered_k04za_73","--bleed":"_--bleed_k04za_79","--bleed-true--m":"_--bleed-true--m_k04za_1","--bleed-false--m":"_--bleed-false--m_k04za_1","--bleed-true--l":"_--bleed-true--l_k04za_1","--bleed-false--l":"_--bleed-false--l_k04za_1","--bleed-true--xl":"_--bleed-true--xl_k04za_1","--bleed-false--xl":"_--bleed-false--xl_k04za_1"},fr=a.forwardRef((e,t)=>{const{type:o,scrollElRef:r,oppositeControlElRef:n,scrollPosition:i,onClick:l,isRTL:c,mounted:d}=e,[u,m]=a.useState(!1),[_,g]=a.useState(!1),h=o==="forward",v=o===(c?"back":"forward"),f=A(ut.control,v?ut["--control-next"]:ut["--control-prev"],u&&ut["--control-visible"],_&&ut["--control-rendered"]);return be(()=>{var I;const p=r.current;if(!p||!d)return;let y;const x=Math.abs(i),w=x<=0,C=x+p.clientWidth>=p.scrollWidth-1;return(h?C:w)?(m(!1),y=setTimeout(()=>g(!1),1500),(I=n.current)==null||I.focus()):(g(!0),m(!0)),()=>{y&&clearTimeout(y)}},[i,r,d,h]),s.jsx("div",{className:f,children:s.jsx(Me,{size:"small",onClick:l,icon:v?At:zo,rounded:!0,variant:"outline",elevated:!0,attributes:{"aria-disabled":!u,"aria-hidden":!0},ref:t})})});fr.displayName="CarouselControl";const Ps=e=>{const{children:t,gap:o=3,visibleItems:r,bleed:n,navigationDisplay:i,onChange:l,onScroll:c,instanceRef:d,className:u,attributes:m}=e,_=a.useRef(0),g=a.useRef([]),[h,v]=a.useState(!1),[f,p]=a.useState(0),[y]=at(),x=a.useRef(null),w=a.useRef(null),C=a.useRef(null),z={};typeof n=="object"&&Object.entries(n).forEach(([D,V])=>{z[D]=typeof V=="number"&&V>0});const I=A(ut.root,u,...ae(ut,"--bleed",typeof n=="number"?!0:z)),S=(D,V)=>{g.current[V]=D},k=tr(D=>{const V=D.target,W=E();p(V.scrollLeft),c==null||c(D),_.current!==W&&(l==null||l({index:W})),_.current=W}),$=()=>{const V=getComputedStyle(x.current).gap.split(" ")[0];return Number(V.replace("px",""))},E=()=>{let D=0,V=0;const W=x.current;if(!W)return D;const K=y?-W.scrollLeft:W.scrollLeft,G=$();return g.current.some((oe,B)=>oe?V+oe.clientWidth/2>=K?(D=B,!0):(V+=(oe==null?void 0:oe.clientWidth)+G,!1):!1),D},M=D=>{const V=x.current,W=g.current[D];W&&V.scrollTo({left:y?W.offsetLeft-(V.clientWidth-W.clientWidth):W.offsetLeft,top:0,behavior:"smooth"})},T=()=>{const D=x.current;D.scrollBy({left:D.clientWidth+$(),top:0,behavior:"smooth"})},L=()=>{const D=x.current;D.scrollBy({left:-D.clientWidth-$(),top:0,behavior:"smooth"})},P=y?T:L,F=y?L:T;return a.useImperativeHandle(d,()=>({navigateBack:P,navigateForward:F,navigateTo:M})),be(()=>{v(!0)},[]),s.jsxs("section",N(b({},m),{className:I,style:b(b(b({},O("--rs-carousel-items",r)),O("--rs-carousel-bleed",n)),m==null?void 0:m.style),children:[i!=="hidden"&&s.jsxs(s.Fragment,{children:[s.jsx(fr,{isRTL:y,type:"back",ref:w,oppositeControlElRef:C,scrollElRef:x,scrollPosition:f,onClick:P,mounted:h}),s.jsx(fr,{isRTL:y,type:"forward",ref:C,oppositeControlElRef:w,scrollElRef:x,scrollPosition:f,onClick:F,mounted:h})]}),s.jsx(q,{as:"ul",direction:"row",wrap:!1,gap:o,className:ut.scroll,attributes:{ref:x,onScroll:k},children:a.Children.map(t,(D,V)=>s.jsx(q.Item,{className:ut.item,as:"li",attributes:{ref:W=>S(W,V)},children:D}))})]}))};Ps.displayName="Carousel";const As=a.createContext(null),Fs=()=>a.useContext(As),gr=e=>{const{onChange:t,name:o,disabled:r,value:n,children:i,hasError:l}=e,c=d=>{const{event:u,value:m,checked:_}=d;if(!m)return;let g=[...n];_?g.push(m):g=g.filter(h=>h!==m),t&&t({name:o,value:g,event:u})};return s.jsx(As.Provider,{value:{onChange:c,disabled:r,value:n,name:o,hasError:l},children:i})};gr.displayName="CheckboxGroupControlled";const Vs=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=a.useState(t||[]),i=l=>{l.value&&(n(l.value),o&&o(l))};return s.jsx(gr,N(b({},e),{value:r,defaultValue:void 0,onChange:i}))};Vs.displayName="CheckboxGroupUncontrolled";const Bs=e=>{const{value:t}=e;return t!==void 0?s.jsx(gr,b({},e)):s.jsx(Vs,b({},e))};Bs.displayName="CheckboxGroup";const Hs=a.createContext(null),qs=()=>a.useContext(Hs),br=e=>{const{onChange:t,name:o,disabled:r,value:n,children:i,hasError:l}=e,c=({event:d,value:u})=>{u&&t&&t({name:o,value:u,event:d})};return s.jsx(Hs.Provider,{value:{onChange:c,disabled:r,value:n,name:o,hasError:l},children:i})};br.displayName="RadioGroupControlled";const Ws=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=a.useState(t||null),i=l=>{l.value&&(n(l.value),o&&o(l))};return s.jsx(br,N(b({},e),{value:r,defaultValue:void 0,onChange:i}))};Ws.displayName="RadioGroupUncontrolled";const Os=e=>{const{value:t}=e;return t!==void 0?s.jsx(br,b({},e)):s.jsx(Ws,b({},e))};Os.displayName="RadioGroup";const xc={root:"_root_1feer_1"},no=e=>{var y,x,w,C,z,I;const{type:t,value:o,className:r,onBlur:n,onFocus:i,onChange:l,attributes:c}=e,d=A(xc.root,r),u=Fs(),m=qs(),_=Ze(),g=(x=(y=u==null?void 0:u.name)!=null?y:m==null?void 0:m.name)!=null?x:e.name,h=(z=(C=(w=_==null?void 0:_.disabled)!=null?w:e.disabled)!=null?C:u==null?void 0:u.disabled)!=null?z:m==null?void 0:m.disabled,v=o&&((I=u==null?void 0:u.value)==null?void 0:I.includes(o))||o&&(m==null?void 0:m.value)===o||e.checked,f=u?void 0:e.defaultChecked,p=S=>{if(!g)return;const{checked:k}=S.target,$={name:g,value:o,checked:k,event:S};l&&l($),u!=null&&u.onChange&&u.onChange($),m!=null&&m.onChange&&m.onChange($)};return s.jsx("input",N(b({},c),{className:d,type:t,name:g,value:o,checked:v,defaultChecked:f,disabled:h,onChange:p,onFocus:i||(c==null?void 0:c.onFocus),onBlur:n||(c==null?void 0:c.onBlur)}))};no.displayName="HiddenInput";const pr=()=>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"})}),bt={root:"_root_ykdxc_12",decorator:"_decorator_ykdxc_23",field:"_field_ykdxc_28","--size-small":"_--size-small_ykdxc_1","--size-medium":"_--size-medium_ykdxc_1","--size-large":"_--size-large_ykdxc_1",icon:"_icon_ykdxc_75",input:"_input_ykdxc_85","--error":"_--error_ykdxc_92","--disabled":"_--disabled_ykdxc_114","--size-small--m":"_--size-small--m_ykdxc_1","--size-medium--m":"_--size-medium--m_ykdxc_1","--size-large--m":"_--size-large--m_ykdxc_1","--size-small--l":"_--size-small--l_ykdxc_1","--size-medium--l":"_--size-medium--l_ykdxc_1","--size-large--l":"_--size-large--l_ykdxc_1","--size-small--xl":"_--size-small--xl_ykdxc_1","--size-medium--xl":"_--size-medium--xl_ykdxc_1","--size-large--xl":"_--size-large--xl_ykdxc_1"},Us=e=>{var C;const{children:t,value:o,onChange:r,onFocus:n,onBlur:i,indeterminate:l,size:c="medium",className:d,attributes:u,inputAttributes:m}=e,_=Fs(),g=Ze(),h=(g==null?void 0:g.hasError)||e.hasError||(_==null?void 0:_.hasError),v=(g==null?void 0:g.disabled)||e.disabled||(_==null?void 0:_.disabled),f=_?(C=_.value)==null?void 0:C.includes(o):e.checked,p=_?void 0:e.defaultChecked,y=_?_.name:e.name,x=a.useRef(null),w=A(bt.root,d,c&&h&&bt["--error"],v&&bt["--disabled"],c&&ae(bt,"--size",c));return be(()=>{x.current.indeterminate=l||!1},[l,f]),s.jsxs("label",N(b({},u),{className:w,children:[s.jsxs("span",{className:bt.field,children:[s.jsx(no,{className:bt.input,type:"checkbox",checked:f,defaultChecked:p,name:y,disabled:v,value:o,onChange:r,onFocus:n,onBlur:i,attributes:N(b({},m),{ref:x})}),s.jsx("div",{className:bt.decorator,children:s.jsx(he,{svg:pr,className:bt.icon,size:ce(c,z=>z==="large"?5:z==="small"?3:4)})})]}),t&&s.jsx(se,{as:"span",variant:ce(c,z=>z==="large"?"body-2":z==="small"?"caption-1":"body-3"),children:t})]}))};Us.displayName="Checkbox";const $o=e=>e.preventDefault(),vr=()=>{window.addEventListener("wheel",$o),window.addEventListener("touchmove",$o)},yr=()=>{window.removeEventListener("wheel",$o),window.removeEventListener("touchmove",$o)},xr=e=>{var o;const t=((o=window.navigator.userAgentData)==null?void 0:o.platform)||window.navigator.platform;return typeof window!="undefined"?e.test(t):!1},wc=()=>xr(/^iPhone/i),Cc=()=>xr(/^Mac/i),Nc=()=>xr(/^iPad/i)||Cc()&&navigator.maxTouchPoints>1,kc=()=>wc()||Nc();class Ys{constructor(){xe(this,"cache",new Map);xe(this,"set",(t,o)=>{const r={},n=this.cache.get(t);Object.keys(o).forEach(i=>{r[i]=t.style.getPropertyValue(i)}),this.cache.set(t,b(b({},r),n)),Object.assign(t.style,o)});xe(this,"reset",()=>{for(const[t,o]of this.cache.entries())Object.assign(t.style,o);this.cache.clear()})}}const Ks=new Ys,zc=()=>{const e=window.visualViewport,t=(e==null?void 0:e.offsetLeft)||0,o=(e==null?void 0:e.offsetTop)||0,{scrollX:r,scrollY:n}=window;return Ks.set(document.body,{position:"fixed",top:`${-(n-Math.floor(o))}px`,left:`${-(r-Math.floor(t))}px`,right:"0",overflow:"hidden"}),()=>{Ks.reset(),window.scrollTo({top:n,left:r,behavior:"instant"})}},Sc=(()=>{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}})(),wr=new Ys,Ec=e=>{const{container:t}=e,o=t.getBoundingClientRect(),r=o.left+o.right<window.innerWidth;if(wr.set(t,{overflow:"hidden"}),r){const n=Sc();wr.set(t,{paddingRight:`${n}px`})}return()=>wr.reset()};let Cr=0;const $c=e=>{var i;const t=kc();let o=()=>{},r=document.body;e.originEl&&(r=Go({el:e.originEl})),e.containerEl&&(r=e.containerEl);const n=r===document.body;if(n&&(Cr+=1),!(n&&Cr>1))return t&&n?o=zc():o=Ec({container:r}),(i=e.cb)==null||i.call(e),l=>{n&&(Cr-=1),o(),l==null||l()}},Nr=e=>{const{containerRef:t,originRef:o}=e||{},[r,n]=a.useState(!1),i=a.useRef(null),l=a.useCallback(()=>{i.current=$c({containerEl:t==null?void 0:t.current,originEl:o==null?void 0:o.current,cb:()=>n(!0)})},[t,o]),c=a.useCallback(()=>{var d;(d=i.current)==null||d.call(i,()=>n(!1)),i.current=null},[]);return a.useMemo(()=>({scrollLocked:r,lockScroll:l,unlockScroll:c}),[r,l,c])},Tc={root:"_root_th78q_1"},Gs=e=>{const _=e,{position:t="end-top",onOpen:o,onClose:r}=_,n=ve(_,["position","onOpen","onClose"]),[i,l]=a.useState(),c=a.useRef(null),{lockScroll:d,unlockScroll:u}=Nr({originRef:c}),m=Se(o);return a.useEffect(()=>{const g=c.current;if(!g)return;const h=v=>{var f;v.preventDefault(),l({x:v.clientX,y:v.clientY}),d(),(f=m.current)==null||f.call(m)};return g.addEventListener("contextmenu",h),()=>g.removeEventListener("contextmenu",h)},[d,m]),a.useEffect(()=>()=>u(),[u]),s.jsx("div",{className:Tc.root,ref:c,children:s.jsx(ke,N(b({},n),{position:t,originCoordinates:i,active:!!i,onClose:g=>{l(void 0),u(),r==null||r(g)}}))})};Gs.displayName="ContextMenu";const Ft=Gs;Ft.Content=ke.Content,Ft.Item=ke.Item,Ft.Section=ke.Section,Ft.SubMenu=ke.SubMenu,Ft.SubTrigger=ke.SubTrigger;const _t={root:"_root_1vs2n_1",triggerLayer:"_triggerLayer_1vs2n_13",trigger:"_trigger_1vs2n_13","--inline":"_--inline_1vs2n_29","--variant-outline":"_--variant-outline_1vs2n_47","--highlighted":"_--highlighted_1vs2n_54","--disabled":"_--disabled_1vs2n_67"},Xs=e=>{const{children:t}=e;return s.jsx("span",{className:_t.trigger,children:t})},Qs=e=>{const{name:t,children:o,height:r,variant:n="outline",inline:i,className:l,disabled:c,attributes:d,inputAttributes:u,onChange:m}=e,_=kt(),g=A(_t.root,n&&_t[`--variant-${n}`],i&&_t["--inline"],_.active&&_t["--highlighted"],c&&_t["--disabled"],l),h=C=>{var z;C.preventDefault(),(z=d==null?void 0:d.onDragOver)==null||z.call(d,C)},v=C=>{var z;_.activate(),(z=d==null?void 0:d.onDragEnter)==null||z.call(d,C)},f=C=>{var z;C.currentTarget.contains(C.relatedTarget)||(_.deactivate(),(z=d==null?void 0:d.onDragLeave)==null||z.call(d,C))},p=C=>{var z;C.preventDefault(),_.deactivate(),m==null||m({name:t,value:Array.from(C.dataTransfer.files),event:C}),(z=d==null?void 0:d.onDrop)==null||z.call(d,C)},y=C=>{var I;const z=C.target.files;z&&(m==null||m({name:t,event:C,value:Array.from(z)}),(I=u==null?void 0:u.onChange)==null||I.call(u,C))},x=s.jsx(ko,{children:s.jsx("input",N(b({},u),{type:"file",className:_t.field,name:t,disabled:c,onChange:y}))}),w=typeof o=="function"?o({highlighted:_.active}):o;return s.jsx(q,{className:g,height:r,borderRadius:"medium",attributes:N(b({},d),{onDragOver:h,onDragEnter:v,onDragLeave:f,onDrop:p}),children:n==="outline"&&!i?s.jsxs(q,{as:"label",className:_t.triggerLayer,padding:6,borderRadius:"medium",gap:2,align:"center",justify:"center",textAlign:"center",height:"100%",children:[x,s.jsx(q.Item,{children:w})]}):s.jsxs("label",{className:_t.triggerLayer,children:[x,w]})})};Qs.displayName="FileUpload",Xs.displayName="FileUpload.Trigger";const Zs=Qs;Zs.Trigger=Xs;const Js={root:"_root_bzk9x_1","--active":"_--active_bzk9x_14"},Rs=e=>{const{children:t,active:o,className:r,attributes:n}=e,i=A(Js.root,o&&Js["--active"],r);return s.jsx(se,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:n,children:t})};Rs.displayName="Hotkey";const rt={root:"_root_1irm5_1",wrapper:"_wrapper_1irm5_26",inner:"_inner_1irm5_32",content:"_content_1irm5_38","--visible":"_--visible_1irm5_44","--click-through":"_--click-through_1irm5_49","--blurred":"_--blurred_1irm5_54","--contained":"_--contained_1irm5_72","--animated":"_--animated_1irm5_76","--overflow-auto":"_--overflow-auto_1irm5_85"},kr=e=>{const{active:t,children:o,transparent:r,blurred:n,overflow:i,onClose:l,onOpen:c,onAfterClose:d,onAfterOpen:u,disableCloseOnClick:m,containerRef:_,className:g,attributes:h}=e,v=Se(l),f=Se(c),p=r===!0,y=p?0:(1-(r||0))*.7,[x,w]=a.useState(!1),[C,z]=a.useState(!1),[I,S]=a.useState([0,0]),k=a.useRef(null),{lockScroll:$,unlockScroll:E}=Nr({containerRef:_}),M=a.useRef(null),T=a.useRef(!1),{active:L,activate:P,deactivate:F}=kt(t||!1),{active:D,activate:V,deactivate:W}=kt(t||!1),K=hn({active:t,contentRef:k,hasTrigger:!1}),G=A(rt.root,D&&rt["--visible"],p&&rt["--click-through"],n&&rt["--blurred"],C&&rt["--animated"],_&&rt["--contained"],i==="auto"&&rt["--overflow-auto"],g),oe=X=>{if(!k.current)return;const ee=k.current.firstChild;if(ee)return ee.contains(X)},B=a.useCallback(X=>{var ee;!D||!K()||(M.current&&(_!=null&&_.current)&&(_.current.style.overflow=M.current,_.current.style.removeProperty("isolation"),M.current=null),(ee=v.current)==null||ee.call(v,{reason:X.reason}))},[D,K,v,_]),R=X=>{T.current=!oe(X.target)},U=X=>{const ee=!oe(X.target);!(T.current&&ee&&!p)||m||B({reason:"overlay-click"})},Y=X=>{if(!(X.propertyName!=="opacity"||X.target!==X.currentTarget)){if(z(!1),D){u==null||u();return}E(),F(),d==null||d()}};return Ke({Escape:()=>B({reason:"escape-key"})},[B]),a.useEffect(()=>{z(!0),t&&!L&&P(),!t&&L&&W()},[t,P,W,L]),a.useEffect(()=>{L&&(p||$(),Ge(()=>{V()}))},[L,V,$,p]),a.useEffect(()=>{var ge;if(!L||!k.current)return;const X=new Dt,ee=_==null?void 0:_.current;return ee&&(M.current=ee.style.overflow,ee.style.overflow="hidden",ee.style.isolation="isolate",S([ee.scrollLeft,ee.scrollTop])),X.trap(k.current,{initialFocusEl:k.current.querySelector("[role=dialog][tabindex='-1']")}),(ge=f.current)==null||ge.call(f),()=>X.release()},[L,f,_]),a.useEffect(()=>()=>E(),[E]),be(()=>{w(!0)},[]),!L||!x?null:s.jsx(yo,{targetRef:_,children:s.jsx(yo.Scope,{children:X=>s.jsx("div",N(b({},h),{ref:X,style:{"--rs-overlay-opacity":y,"--rs-overlay-offset-x":_?`${I[0]}px`:void 0,"--rs-overlay-offset-y":_?`${I[1]}px`:void 0},role:"button",tabIndex:-1,className:G,onMouseDown:R,onMouseUp:U,onTransitionEnd:Y,children:s.jsx("div",{className:rt.wrapper,children:s.jsx("div",{className:rt.inner,children:s.jsx("div",{className:rt.content,ref:k,children:typeof o=="function"?o({active:D}):o})})})}))})})};kr.displayName="Overlay";const zr={m:660,l:900,xl:1280},ei=e=>{var n,i,l,c,d,u;const{defaultViewport:t}=a.useContext(Yo),[o,r]=a.useState(t);return be(()=>{const m=document.querySelector("[data-rs-theme]"),_=m&&window.getComputedStyle(m),g={m:_&&Number(_.getPropertyValue("--rs-viewport-m-min"))||zr.m,l:_&&Number(_.getPropertyValue("--rs-viewport-l-min"))||zr.l,xl:_&&Number(_.getPropertyValue("--rs-viewport-xl-min"))||zr.xl},h={s:`(max-width: ${g.m-1}px)`,m:`(min-width: ${g.m}px) and (max-width: ${g.l-1}px)`,l:`(min-width: ${g.l}px) and (max-width: ${g.xl-1}px)`,xl:`(min-width: ${g.xl}px)`},f=Object.keys(h).map(p=>{const y=window.matchMedia(h[p]);return{mq:y,handler:()=>y.matches&&r(p)}});return f.forEach(({handler:p,mq:y})=>{p(),y.addEventListener("change",p)}),()=>{f.forEach(({handler:p,mq:y})=>{y.removeEventListener("change",p)})}},[]),typeof e!="object"||e===null||!("s"in e)?e:o==="xl"?(l=(i=(n=e.xl)!=null?n:e.l)!=null?i:e.m)!=null?l:e.s:o==="l"?(d=(c=e.l)!=null?c:e.m)!=null?d:e.s:o==="m"&&(u=e.m)!=null?u:e.s},Vt={root:"_root_cjmtc_1","--contained":"_--contained_cjmtc_16","--position-center":"_--position-center_cjmtc_1","--active":"_--active_cjmtc_41","--position-bottom":"_--position-bottom_cjmtc_1","--position-start":"_--position-start_cjmtc_1","--position-end":"_--position-end_cjmtc_1","--position-full-screen":"_--position-full-screen_cjmtc_1","--dragging":"_--dragging_cjmtc_154","--overflow-visible":"_--overflow-visible_cjmtc_158","--position-center--m":"_--position-center--m_cjmtc_1","--position-bottom--m":"_--position-bottom--m_cjmtc_1","--position-start--m":"_--position-start--m_cjmtc_1","--position-end--m":"_--position-end--m_cjmtc_1","--position-full-screen--m":"_--position-full-screen--m_cjmtc_1","--position-center--l":"_--position-center--l_cjmtc_1","--position-bottom--l":"_--position-bottom--l_cjmtc_1","--position-start--l":"_--position-start--l_cjmtc_1","--position-end--l":"_--position-end--l_cjmtc_1","--position-full-screen--l":"_--position-full-screen--l_cjmtc_1","--position-center--xl":"_--position-center--xl_cjmtc_1","--position-bottom--xl":"_--position-bottom--xl_cjmtc_1","--position-start--xl":"_--position-start--xl_cjmtc_1","--position-end--xl":"_--position-end--xl_cjmtc_1","--position-full-screen--xl":"_--position-full-screen--xl_cjmtc_1"},Sr=32,Mc=100,Ic=32,ti=a.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),oi=()=>a.useContext(ti),ri=e=>{const{children:t}=e,{id:o,setTitleMounted:r}=oi();return a.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(se,{variant:"featured-3",weight:"bold",attributes:{id:`${o}-title`},children:t})},ni=e=>{const{children:t}=e,{id:o,setSubtitleMounted:r}=oi();return a.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(se,{variant:"body-3",color:"neutral-faded",attributes:{id:`${o}-subtitle`},children:t})},si=e=>{const{children:t,onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:i,active:l,size:c,padding:d=4,position:u="center",overflow:m,transparentOverlay:_,blurredOverlay:g,ariaLabel:h,autoFocus:v=!0,disableSwipeGesture:f,disableCloseOnOutsideClick:p,containerRef:y,overlayClassName:x,className:w,attributes:C}=e,z=Se(o),I=We(),S=ei(u),[k,$]=a.useState(!1),[E,M]=a.useState(!1),[T,L]=a.useState(!1),P=a.useRef(null),F=(C==null?void 0:C.ref)||P,D=a.useRef({x:0,y:0}),V=a.useRef(0),W=a.useRef(0),K=a.useRef(0),[G,oe]=a.useState(0),[B,R]=a.useState(0),U=Qe({padding:d}),Y=a.useMemo(()=>({titleMounted:k,setTitleMounted:$,subtitleMounted:E,setSubtitleMounted:M,id:I}),[I,E,k]),X=()=>{D.current={x:0,y:0},V.current=0,K.current=0,oe(0)},ee=Z=>{var J;if(f||(J=window.getSelection())!=null&&J.toString())return;let H=Z.target;const Q=F.current;for(;H&&(H===Q||Q!=null&&Q.contains(H));){if(H.scrollTop!==0||H.scrollLeft!==0||H.matches("input,textarea"))return;H=H?H.parentElement:null}S==="start"&&Z.targetTouches[0].clientX<Ic||(mo(),vr(),L(!0))},ge=Z=>{l||Z.propertyName==="transform"&&Z.currentTarget===Z.target&&X()};return a.useEffect(()=>{if(!T)return;const Z=()=>{var J;ho(),yr(),L(!1);const Q=S==="start"?K.current<0:K.current>0;Math.abs(W.current)>Sr&&Q?(J=z.current)==null||J.call(z,{reason:"drag"}):X()},H=Q=>{var _e,pe;if(!T||S==="center"||((_e=F.current)==null?void 0:_e.scrollTop)!==0||((pe=F.current)==null?void 0:pe.scrollLeft)!==0)return;const J=Q.targetTouches[0],ue={x:J.clientX,y:J.clientY},Ee=S==="bottom"?"y":"x",ne=S==="bottom"?"x":"y";D.current[Ee]||(D.current=ue,V.current=ue[Ee]);const ie=Math.abs(ue[Ee]-D.current[Ee]),le=Math.abs(ue[ne]-D.current[ne]);if(u!=="bottom"&&(ie<le||le>Mc)){V.current=ue[Ee];return}K.current=ue[Ee]-V.current,V.current=ue[Ee],oe(we=>S==="start"?Math.min(0,we+K.current):Math.max(0,we+K.current))};return document.addEventListener("touchmove",H,{passive:!0}),document.addEventListener("touchend",Z,{passive:!0}),()=>{document.removeEventListener("touchmove",H),document.removeEventListener("touchend",Z)}},[T,S,z,u,F]),a.useEffect(()=>{const Z=F.current;if(!Z||!S)return;const Q=["start","end"].includes(S)?Z.clientWidth:Z.clientHeight,J=Math.abs(G)/Q;R(J/2),W.current=G},[G,S,F]),s.jsx(kr,{onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:i,disableCloseOnClick:p,active:l,transparent:_||B,blurred:g,overflow:S==="center"?"auto":"hidden",className:x,containerRef:y,attributes:{onTouchStart:ee},children:({active:Z})=>{const H=A(Vt.root,w,Z&&Vt["--active"],T&&Vt["--dragging"],m&&Vt[`--overflow-${m}`],y&&Vt["--contained"],ae(Vt,"--position",u),U.classNames);return s.jsx(ti.Provider,{value:Y,children:s.jsx("div",N(b({},C),{style:N(b(b({},U.variables),O("--rs-modal-size",c)),{"--rs-modal-drag":Math.abs(G)<Sr?"0px":`${G+Sr*(S==="start"?1:-1)}px`}),"aria-labelledby":k?`${I}-title`:void 0,"aria-describedby":E?`${I}-subtitle`:void 0,"aria-label":h||(C==null?void 0:C["aria-label"]),className:H,"aria-modal":"true",role:"dialog",tabIndex:v?void 0:-1,ref:F,onTransitionEnd:ge,children:t}))})}})};si.displayName="Modal",ri.displayName="Modal.Title",ni.displayName="Modal.Subtitle";const Er=si;Er.Title=ri,Er.Subtitle=ni;const ii=()=>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"})}),jc=()=>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:"18 15 12 9 6 15"})}),Dc=()=>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("line",{x1:"5",y1:"12",x2:"19",y2:"12"})}),Lc=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),Je={field:"_field_meivp_1","controls-wrapper":"_controls-wrapper_meivp_5",controls:"_controls_meivp_5","controls--size-small":"_controls--size-small_meivp_1",control:"_control_meivp_5","controls--size-medium":"_controls--size-medium_meivp_1","controls--size-large":"_controls--size-large_meivp_1","controls--size-xlarge":"_controls--size-xlarge_meivp_1","icon--touch":"_icon--touch_meivp_107","--outline":"_--outline_meivp_111","icon--mouse":"_icon--mouse_meivp_139","controls--size-small--m":"_controls--size-small--m_meivp_1","controls--size-medium--m":"_controls--size-medium--m_meivp_1","controls--size-large--m":"_controls--size-large--m_meivp_1","controls--size-xlarge--m":"_controls--size-xlarge--m_meivp_1","controls--size-small--l":"_controls--size-small--l_meivp_1","controls--size-medium--l":"_controls--size-medium--l_meivp_1","controls--size-large--l":"_controls--size-large--l_meivp_1","controls--size-xlarge--l":"_controls--size-xlarge--l_meivp_1","controls--size-small--xl":"_controls--size-small--xl_meivp_1","controls--size-medium--xl":"_controls--size-medium--xl_meivp_1","controls--size-large--xl":"_controls--size-large--xl_meivp_1","controls--size-xlarge--xl":"_controls--size-xlarge--xl_meivp_1"},$r=e=>{var oe;const G=e,{increaseAriaLabel:t,decreaseAriaLabel:o,min:r,max:n,step:i=1,name:l,value:c,onChange:d,size:u="medium"}=G,m=ve(G,["increaseAriaLabel","decreaseAriaLabel","min","max","step","name","value","onChange","size"]),_=Ze(),g=We(m.id),h=(_==null?void 0:_.attributes.id)||((oe=e.inputAttributes)==null?void 0:oe.id)||g,v=(_==null?void 0:_.disabled)||e.disabled,f=(_==null?void 0:_.hasError)||e.hasError,p=v||(c&&n?c>=n:!1),y=v||(c&&r?c<=r:!1),x=a.useRef(null),w=a.useRef(null),[C,z]=a.useState((c==null?void 0:c.toString())||""),I=a.useRef(c),S=Se(d),k=a.useRef(null),$=a.useRef(null),E=a.useCallback(B=>{var Z,H;const R=i*B,U=I.current;let Y=U===null?R:U+R;n!==void 0&&Y>n&&(Y=n),r!==void 0&&Y<r&&(Y=r);const X=((Z=i.toString().split(".")[1])==null?void 0:Z.length)||0,ee=((H=U==null?void 0:U.toString().split(".")[1])==null?void 0:H.length)||0,ge=Math.max(X,ee);return Number(Y.toFixed(ge))},[i,r,n]),M=a.useCallback((B,R)=>{var U;(U=S.current)==null||U.call(S,{value:B,name:l}),R!=null&&R.programmatic||(I.current=B)},[l,S]),T=a.useCallback(()=>{const B=E(1);M(B,{programmatic:!0})},[E,M]),L=a.useCallback(()=>{const B=E(-1);M(B,{programmatic:!0})},[E,M]),P=B=>{if(!B.value.match(/^(-?)[0-9]*(\.?)[0-9]*$/))return;const R=parseFloat(B.value);R>Number.MAX_SAFE_INTEGER||R<Number.MIN_SAFE_INTEGER||(z(B.value),!isNaN(R)&&M(R))},F=(B,R)=>{var U;v||(R(),B.pointerType!=="touch"&&((U=x.current)==null||U.focus()),k.current=setTimeout(()=>{$.current=setInterval(()=>{R()},50)},500))},D=()=>{v||(k.current&&(clearTimeout(k.current),k.current=null),$.current&&(clearTimeout($.current),$.current=null))};Ke({[yt]:T,[xt]:L},[T,L],{preventDefault:!0,ref:w}),a.useEffect(()=>{var B;I.current=c,z((B=c==null?void 0:c.toString())!=null?B:"")},[c]);const V=ce(u,B=>B==="large"||B==="xlarge"?4:3),W=ce(u,B=>B==="small"?3:4),K=s.jsx("span",{className:Je["controls-wrapper"],children:s.jsxs("span",{className:Je.controls,children:[s.jsxs(Ie,{className:Je.control,disabled:p,disableFocusRing:!0,as:"span",attributes:{"aria-label":t,"aria-controls":h,role:"button",tabIndex:p?void 0:-1,onPointerDown:B=>F(B,T),onPointerUp:D,onPointerLeave:D,onContextMenu:B=>B.preventDefault()},children:[s.jsx(he,{svg:jc,size:V,className:Je["icon--mouse"]}),s.jsx(he,{svg:Lc,size:W,className:Je["icon--touch"]})]}),s.jsxs(Ie,{className:Je.control,disabled:y,disableFocusRing:!0,as:"span",attributes:{"aria-label":o,"aria-controls":h,role:"button",tabIndex:y?void 0:-1,onPointerDown:B=>F(B,L),onPointerUp:D,onPointerLeave:D,onContextMenu:B=>B.preventDefault()},children:[s.jsx(he,{svg:ii,size:V,className:Je["icon--mouse"]}),s.jsx(he,{svg:Dc,size:W,className:Je["icon--touch"]})]})]})});return s.jsx(No,N(b({},m),{className:[m.className,ae(Je,"controls--size",u),!(m.variant==="faded"||m.variant==="headless")&&Je["--outline"]],attributes:N(b({},m.attributes),{role:"group",ref:w}),inputAttributes:N(b({},m.inputAttributes),{ref:x,inputMode:"numeric",autoComplete:"off",autoCorrect:"off",spellCheck:"false",min:r,max:n,step:i,className:Je.field}),size:u,id:h,hasError:f,disabled:v,value:C,onChange:P,name:l,endSlot:K,endSlotPadding:0}))};$r.displayName="NumberFieldControlled";const li=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=a.useState(t!=null?t:null),i=l=>{n(l.value),o&&o(l)};return s.jsx($r,N(b({},e),{value:r,defaultValue:void 0,onChange:i}))};li.displayName="NumberFieldUncontrolled";const ai=e=>{const{value:t}=e;return t!==void 0?s.jsx($r,b({},e)):s.jsx(li,b({},e))};ai.displayName="NumberField";const ci={page:"_page_j10le_1"},Tr=e=>{const{total:t,page:o=1,onChange:r,pageAriaLabel:n,previousAriaLabel:i,nextAriaLabel:l,className:c,attributes:d}=e,u=1,m=1,_=[],g=(m+1)*2+u*2+1,h=t>g&&o-u>m+2,v=t>g&&o+u<t-m;let f=u*2+1;h||(f+=m+1),v||(f+=m+1);const p=h?Math.min(t-f+1,Math.max(1,o-u)):1,y=v?Math.min(p+f-1,t):t;h&&_.push(...er(1,m),null),_.push(...er(p,y)),v&&_.push(null,...er(t-m+1,t));const x=w=>{const C=Math.min(t,Math.max(1,w));r==null||r({page:C})};return s.jsxs(q,{direction:"row",align:"center",gap:1,className:c,attributes:d,children:[s.jsx(Me,{variant:"ghost",size:"small",icon:zo,onClick:()=>x(o-1),disabled:o===1,attributes:{"aria-label":i}}),_.map((w,C)=>w===null?s.jsx(q,{width:7,align:"center",children:"..."},`dots-${C}`):s.jsx(Me,{size:"small",variant:w===o?"solid":"ghost",color:w===o?"primary":"neutral",onClick:()=>x(w),attributes:{"aria-label":n==null?void 0:n({page:w}),"aria-current":w===o},className:ci.page,children:w},C)),s.jsx(Me,{variant:"ghost",size:"small",className:ci.page,icon:At,onClick:()=>x(o+1),disabled:o===t,attributes:{"aria-label":l}})]})};Tr.displayName="PaginationControlled";const di=e=>{const c=e,{defaultPage:t=1,onChange:o}=c,r=ve(c,["defaultPage","onChange"]),[n,i]=a.useState(t||1),l=d=>{i(d.page),o==null||o(d)};return s.jsx(Tr,N(b({},r),{onChange:l,page:n}))};di.displayName="PaginationUncontrolled";const ui=e=>{const{page:t}=e;return t!==void 0?s.jsx(Tr,b({},e)):s.jsx(di,b({},e))};ui.displayName="Pagination";const _i="\\d",mi="[a-zA-Z]",Pc=`(${_i}|${mi})`,To={root:"_root_eojch_1",input:"_input_eojch_6",item:"_item_eojch_23","item--focused":"_item--focused_eojch_28"},Ac={small:7,medium:9,large:12,xlarge:14},Fc={numeric:_i,alphabetic:mi,alphanumeric:Pc},Mr=e=>{const{valueLength:t=4,value:o,onChange:r,name:n,pattern:i="numeric",size:l="medium",variant:c="outline",className:d,attributes:u,inputAttributes:m}=e,_=Fc[i],g=ce(l,M=>Ac[M]),h=ce(l,M=>M==="medium"?"body-3":"body-2"),v=ce(l,M=>M==="xlarge"?"medium":"small"),[f,p]=a.useState(null),y=Ze(),x=a.useRef(o.length===t?"edit":"type"),w=a.useRef(null),C=[],z=a.useCallback(M=>{var D;const T=w.current;if(!T||T.selectionStart===null)return;const L=x.current,P=(D=M!=null?M:T.selectionStart)!=null?D:0,F=Math.min(L==="type"?T.value.length:T.value.length-1,Math.max(0,P));x.current==="type"?(T.selectionStart=F,T.selectionEnd=F):(T.selectionStart=F,T.selectionEnd=F+1),p(Math.min(T.selectionStart,t-1))},[t]);Ke({[`${Ct},${yt}`]:()=>{Ge(()=>{const M=w.current;if(!M||M.selectionStart===null)return;const T=x.current,L=o.length?"edit":"type";x.current=L,z(T==="type"&&L==="edit"?M.selectionStart:M.selectionStart-1)})},[`${wt},${xt}`]:()=>{Ge(()=>{const M=w.current;if(!M||M.selectionStart===null)return;const T=M.selectionStart===o.length&&M.selectionStart!==t?"type":"edit";x.current=T,z(M.selectionStart)})}},[o,z,t],{ref:w});const I=()=>{z(o.length)},S=()=>{p(null)},k=M=>{if(f===null||!w.current)return;const T=M.clipboardData.getData("text"),L=o.slice(0,f)+o.slice(f+T.length);w.current.value=L,w.current.selectionEnd=f},$=M=>{const T=M.target,L=T.value,P=new RegExp(`^${_}+$`);if(L&&!L.match(P)||T.selectionStart===null)return;const F=L.length===t||L.length>T.selectionStart?"edit":"type";x.current=F,r==null||r({event:M,name:n,value:L}),Ge(()=>{z()})},E=(M,T)=>{w.current&&(M.preventDefault(),w.current.focus(),x.current=T>=o.length?"type":"edit",z(T))};for(let M=0;M<t;M++)C.push(s.jsx(q,{height:g,width:g,borderRadius:v,borderColor:c==="faded"?"transparent":"neutral",backgroundColor:c==="faded"?"neutral-faded":"elevation-base",align:"center",justify:"center",className:[To.item,f===M&&To["item--focused"]],attributes:{onMouseDown:T=>{E(T,M)},onTouchStart:T=>{E(T,M)}},children:o[M]&&s.jsx(se,{variant:h,children:o[M]})},M));return s.jsxs(q,{gap:2,direction:"row",className:[To.root,d],attributes:u,children:[C,s.jsx("input",N(b(b({},m),y.attributes),{type:"text",className:To.input,onFocus:I,onBlur:S,onPaste:k,onInput:$,value:o,name:n,maxLength:t,ref:w,autoComplete:(m==null?void 0:m.autoComplete)||"one-time-code",inputMode:i==="numeric"?"numeric":void 0,pattern:`${_}{${t}}`}))]})};Mr.displayName="PinFieldControlled";const hi=e=>{const c=e,{defaultValue:t,onChange:o}=c,r=ve(c,["defaultValue","onChange"]),[n,i]=a.useState(t||""),l=d=>{i(d.value),o==null||o(d)};return s.jsx(Mr,N(b({},r),{value:n,onChange:l}))};hi.displayName="PinFieldUncontrolled";const fi=e=>{const{value:t}=e;return t!==void 0?s.jsx(Mr,b({},e)):s.jsx(hi,b({},e))};fi.displayName="PinField";const so={root:"_root_1qk35_1",value:"_value_1qk35_9","--duration":"_--duration_1qk35_24","--size-small":"_--size-small_1qk35_28","--size-medium":"_--size-medium_1qk35_32","--color-primary":"_--color-primary_1qk35_36","--color-critical":"_--color-critical_1qk35_40","--color-warning":"_--color-warning_1qk35_44","--color-positive":"_--color-positive_1qk35_48","--color-media":"_--color-media_1qk35_52"},gi=e=>{const{value:t=0,min:o=0,max:r=100,color:n="primary",size:i="medium",duration:l,ariaLabel:c,className:d,attributes:u}=e,m=A(so.root,d,n&&so[`--color-${n}`],i&&so[`--size-${i}`],!!l&&so["--duration"]),_=r-o,g=t-o,f=`${Math.max(o,Math.min(r,g))/_*100-100}%`;return s.jsx("div",N(b({role:"progressbar"},u),{className:m,"aria-label":c||(u==null?void 0:u["aria-label"]),"aria-valuemax":r,"aria-valuemin":o,"aria-valuenow":t,children:s.jsx("div",{className:so.value,style:{"--rs-progress-value":f,"--rs-progress-duration":l?`${l}ms`:void 0}})}))};gi.displayName="Progress";const Bt={root:"_root_1r02e_1",container:"_container_1r02e_17",item:"_item_1r02e_26","item--active":"_item--active_1r02e_40","item--variant-secondary":"_item--variant-secondary_1r02e_45","--color-media":"_--color-media_1r02e_50"},Ir=7,jr=Math.floor(Ir/2),bi=e=>{const{total:t,activeIndex:o=0,color:r="primary",ariaLabel:n,className:i,attributes:l}=e,c=A(Bt.root,i,r&&Bt[`--color-${r}`]),d=n?{"aria-label":n,role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":t-1}:{},u=t>Ir?Math.min(t-Ir,Math.max(0,o-jr)):0;return s.jsx("div",N(b({},l),{className:c,children:s.jsx("div",N(b({},d),{className:Bt.container,style:{"--rs-progress-indicator-mod":u},children:Array.from({length:t}).map((m,_)=>{const g=A(Bt.item,_===o&&Bt["item--active"],(_<o-(jr-1)||_>o+(jr-1))&&Bt["item--variant-secondary"]);return s.jsx("div",{className:g},_)})}))}))};bi.displayName="ProgressIndicator";const St={root:"_root_2agld_12",decorator:"_decorator_2agld_22",field:"_field_2agld_28","--size-small":"_--size-small_2agld_1","--size-medium":"_--size-medium_2agld_1","--size-large":"_--size-large_2agld_1",input:"_input_2agld_74","--error":"_--error_2agld_81","--disabled":"_--disabled_2agld_101","--size-small--m":"_--size-small--m_2agld_1","--size-medium--m":"_--size-medium--m_2agld_1","--size-large--m":"_--size-large--m_2agld_1","--size-small--l":"_--size-small--l_2agld_1","--size-medium--l":"_--size-medium--l_2agld_1","--size-large--l":"_--size-large--l_2agld_1","--size-small--xl":"_--size-small--xl_2agld_1","--size-medium--xl":"_--size-medium--xl_2agld_1","--size-large--xl":"_--size-large--xl_2agld_1"},pi=e=>{const{children:t,value:o,onChange:r,onFocus:n,onBlur:i,size:l="medium",className:c,attributes:d,inputAttributes:u}=e,m=Ze(),_=qs(),g=(m==null?void 0:m.hasError)||e.hasError||(_==null?void 0:_.hasError),h=(m==null?void 0:m.disabled)||e.disabled||(_==null?void 0:_.disabled),v=_?_.value===o:e.checked,f=_?void 0:e.defaultChecked,p=_?_.name:e.name,y=A(St.root,c,g&&St["--error"],h&&St["--disabled"],l&&ae(St,"--size",l));return s.jsxs("label",N(b({},d),{className:y,children:[s.jsxs("span",{className:St.field,children:[s.jsx(no,{className:St.input,type:"radio",checked:v,defaultChecked:f,name:p,disabled:h,value:o,onChange:r,onFocus:n,onBlur:i,attributes:u}),s.jsx("div",{className:St.decorator})]}),t&&s.jsx(se,{as:"span",variant:ce(l,x=>x==="large"?"body-2":x==="small"?"caption-1":"body-3"),children:t})]}))};pi.displayName="Radio";const Dr={root:"_root_1t6gl_1",scrim:"_scrim_1t6gl_16","--position-cover":"_--position-cover_1t6gl_28","--position-top":"_--position-top_1t6gl_42","--position-bottom":"_--position-bottom_1t6gl_48","--position-start":"_--position-start_1t6gl_54","--position-end":"_--position-end_1t6gl_65"},vi=e=>{var h,v;const{children:t,backgroundSlot:o,position:r="cover",paddingInline:n,paddingBlock:i,padding:l,borderRadius:c,attributes:d,className:u,scrimClassName:m}=e,_=A(Dr.root,r&&Dr[`--position-${r}`],u),g=A(Dr.scrim,m);return s.jsxs(q,{borderRadius:c,attributes:d,className:_,position:o?"relative":"absolute",inset:o?void 0:0,overflow:"hidden",children:[o,s.jsx("div",{className:g,children:s.jsx(q,{paddingInline:(h=n!=null?n:l)!=null?h:4,paddingBlock:(v=i!=null?i:l)!=null?v:3,zIndex:5,height:["start","end"].includes(r)?"100%":void 0,width:["top","bottom","cover"].includes(r)?"100%":void 0,textAlign:r==="cover"?"center":void 0,children:t})})]})};vi.displayName="Scrim";const Be={root:"_root_1v9qj_1",input:"_input_1v9qj_25","input--placeholder":"_input--placeholder_1v9qj_52",slot:"_slot_1v9qj_57",arrow:"_arrow_1v9qj_72",group:"_group_1v9qj_83","group-label":"_group-label_1v9qj_94","--size-small":"_--size-small_1v9qj_1","--size-medium":"_--size-medium_1v9qj_1","--size-large":"_--size-large_1v9qj_1","--size-xlarge":"_--size-xlarge_1v9qj_1","--variant-faded":"_--variant-faded_1v9qj_158","--variant-ghost":"_--variant-ghost_1v9qj_170","--variant-headless":"_--variant-headless_1v9qj_171","--status-error":"_--status-error_1v9qj_179","--disabled":"_--disabled_1v9qj_201","--size-small--m":"_--size-small--m_1v9qj_1","--size-medium--m":"_--size-medium--m_1v9qj_1","--size-large--m":"_--size-large--m_1v9qj_1","--size-xlarge--m":"_--size-xlarge--m_1v9qj_1","--size-small--l":"_--size-small--l_1v9qj_1","--size-medium--l":"_--size-medium--l_1v9qj_1","--size-large--l":"_--size-large--l_1v9qj_1","--size-xlarge--l":"_--size-xlarge--l_1v9qj_1","--size-small--xl":"_--size-small--xl_1v9qj_1","--size-medium--xl":"_--size-medium--xl_1v9qj_1","--size-large--xl":"_--size-large--xl_1v9qj_1","--size-xlarge--xl":"_--size-xlarge--xl_1v9qj_1"},Vc=()=>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"})]}),yi=e=>{const{disabled:t,size:o}=e;return s.jsx("div",{className:Be.arrow,children:s.jsx(he,{svg:Vc,color:t?"disabled":"neutral-faded",size:ce(o,r=>r==="large"||r==="xlarge"?5:4)})})},xi=e=>{const{startSlot:t,icon:o,size:r}=e;return!t&&!o?null:o?s.jsx("div",{className:Be.slot,children:s.jsx(he,{size:ce(r,n=>n==="large"?5:n==="xlarge"?6:4),svg:o})}):s.jsx("div",{className:Be.slot,children:t})},Bc=e=>{const{startSlot:t,icon:o,size:r,inputAttributes:n,onFocus:i,onBlur:l,disabled:c,name:d,value:u,defaultValue:m,onChange:_,onClick:g,placeholder:h,id:v,children:f}=e,[p,y]=a.useState(u===void 0?!m:!u),x=A(Be.input,h&&p&&Be["input--placeholder"]),w=C=>{const z=C.target.value;u===void 0&&y(!z),_&&_({name:d,value:z,event:C})};return a.useEffect(()=>{u!==void 0&&y(!u)},[u]),s.jsxs(s.Fragment,{children:[s.jsx(xi,{startSlot:t,icon:o,size:r}),s.jsxs("select",N(b({},n),{onFocus:i||(n==null?void 0:n.onFocus),onBlur:l||(n==null?void 0:n.onBlur),onClick:g||(n==null?void 0:n.onClick),className:x,disabled:c,name:d,value:u,defaultValue:m,onChange:w,id:v,children:[h&&s.jsx("option",{value:"",children:h}),f]})),s.jsx(yi,{disabled:c,size:r})]})},wi=e=>{var g,h;const t=Ze(),o=We(e.id),r=N(b({},e),{id:((g=t==null?void 0:t.attributes)==null?void 0:g.id)||((h=e.inputAttributes)==null?void 0:h.id)||o,disabled:(t==null?void 0:t.disabled)||e.disabled,hasError:(t==null?void 0:t.hasError)||e.hasError,inputAttributes:b(b({},e.inputAttributes),t==null?void 0:t.attributes)}),{children:n,className:i,size:l="medium",variant:c="outline",hasError:d,disabled:u,attributes:m}=r,_=A(Be.root,i,l&&ae(Be,"--size",l),d&&Be["--status-error"],u&&Be["--disabled"],c&&Be[`--variant-${c}`]);return s.jsx("div",N(b({},m),{className:_,children:n(r)}))},Ci=e=>{const{children:t,disabled:o,onClick:r,onFocus:n,onBlur:i,inputAttributes:l,startSlot:c,icon:d,size:u,placeholder:m,value:_,name:g,id:h}=e;return s.jsxs(s.Fragment,{children:[s.jsxs(Ie,{className:Be.input,disabled:o,disableFocusRing:!0,onClick:r,attributes:b({onFocus:n||(l==null?void 0:l.onFocus),onBlur:i||(l==null?void 0:l.onBlur)},l),children:[s.jsx(xi,{startSlot:c,icon:d,size:u}),t?s.jsx(se,{maxLines:typeof t=="string"?1:void 0,children:t}):null,m&&!t?s.jsx(se,{color:"disabled",children:m}):null,s.jsx(yi,{disabled:o,size:u})]}),s.jsx("input",{type:"hidden",value:typeof _=="string"?_:JSON.stringify(_),name:g,id:h})]})},Ni=e=>{const{children:t}=e;return s.jsx(wi,N(b({},e),{children:o=>{const{options:r}=o,n=a.Children.toArray(t).some(l=>a.isValidElement(l)&&l.type==="option");return!(r||n)?s.jsx(Ci,N(b({},o),{children:t})):s.jsxs(Bc,N(b({},o),{children:[r==null?void 0:r.map(l=>s.jsx("option",{value:l.value,disabled:l.disabled,children:l.label},l.value)),t]}))}}))};Ni.displayName="Select";const Mo=e=>{const{label:t,children:o}=e;return s.jsxs(q,{attributes:{role:"group"},gap:1,className:Be.group,children:[t&&s.jsx("div",{className:Be["group-label"],children:s.jsx(se,{variant:"caption-1",color:"neutral-faded",children:t})}),s.jsx(q.Item,{children:o})]})};Mo.displayName="Select.Group";const Lr=e=>{const r=e,{value:t}=r,o=ve(r,["value"]);return s.jsx(ke.Item,N(b({},o),{className:[o.className,Be.option],color:"neutral",attributes:N(b({},o.attributes),{value:t,role:"option"})}))};Lr.displayName="Select.Option";const Pr=e=>{const{children:t,value:o,name:r,placeholder:n,size:i,multiple:l,width:c="trigger",position:d,fallbackPositions:u,positionRef:m,renderValue:_}=e,g=a.useRef(null),h=a.useRef(""),v=a.useRef(null),f=a.useRef(null),p=[],y=[],x=l?o.length>0:o,w=S=>a.Children.map(S,(k,$)=>{var E;if(!a.isValidElement(k))return null;if(k.type===Lr){const M=k,T=M.props,P=(l?o.includes(T.value):T.value===o)||!n&&!o&&$===0;return P&&y.push(T),p.push({value:T.value,text:typeof T.children=="string"?T.children:T.value}),a.cloneElement(M,{key:T.value,onClick:F=>{var D,V,W;if((D=T.onClick)==null||D.call(T,F),l){const K=P?o.filter(G=>G!==T.value):[...o,T.value];(V=e.onChange)==null||V.call(e,{value:K,name:r})}else(W=e.onChange)==null||W.call(e,{value:T.value,name:r})},startSlot:(T==null?void 0:T.startSlot)!==void 0?T.startSlot:x&&s.jsx(he,{svg:P?pr:null}),attributes:N(b({},M.props.attributes),{ref:P?g:void 0})})}if(k.type===Mo){const M=k,T=M.props;return a.cloneElement(M,{key:(E=T.label)!=null?E:$,children:w(T.children)})}return k}),C=w(t),z=S=>{var E;const k=S.key;if(((E=document.activeElement)==null?void 0:E.tagName)==="INPUT"||k.length!==1||!k.match(/[\w\s]/))return;v.current&&clearTimeout(v.current),h.current+=k.toLowerCase();const $=p.find(M=>M.text.toLowerCase().startsWith(h.current));if($&&f.current){const M=f.current.querySelector(`[value="${$.value}"]`);M==null||M.focus()}v.current=setTimeout(()=>{h.current=""},1e3)},I=()=>_?_(l?{value:o}:{value:o}):y.length===1?y[0].children:y.length>1?s.jsx(q,{direction:"row",gap:4,children:y.map(S=>s.jsx(q.Item,{children:S.children},S.value))}):null;return s.jsx(wi,N(b({},e),{children:S=>s.jsxs(ke,{width:c,disableHideAnimation:!0,position:d!=null?d:"bottom",fallbackPositions:u!=null?u:d?void 0:["bottom","top"],fallbackAdjustLayout:!0,fallbackMinHeight:"220px",borderRadius:ce(i,k=>k==="large"||k==="xlarge"?"medium":"small"),initialFocusRef:g,positionRef:m,children:[s.jsx(ke.Trigger,{children:k=>{const $=N(b({},S),{inputAttributes:b(b({},S.inputAttributes),k)});return s.jsx(Ci,N(b({},$),{value:o,children:I()}))}}),s.jsx(ke.Content,{attributes:{ref:f,onKeyDown:z,role:void 0},children:C})]})}))};Pr.displayName="SelectCustomControlled";const ki=e=>{const c=e,{defaultValue:t,onChange:o,multiple:r}=c,n=ve(c,["defaultValue","onChange","multiple"]),[i,l]=a.useState(t||(r?[]:""));return s.jsx(Pr,N(b({},n),{multiple:r,value:i,onChange:d=>{l(d.value),o==null||o(d)}}))};ki.displayName="SelectCustomUncontrolled";const zi=e=>{const{value:t}=e;return t!==void 0?s.jsx(Pr,b({},e)):s.jsx(ki,b({},e))};zi.displayName="SelectCustom";const io=Ni;io.Custom=zi,io.Option=Lr,io.Group=Mo,io.OptionGroup=Mo;const Hc={root:"_root_xavah_1"},Si=e=>{const{borderRadius:t="small",width:o,height:r,className:n,attributes:i}=e,l=A(Hc.root,n);return s.jsx(q,{backgroundColor:"disabled",width:o,height:r,borderRadius:t,className:l,attributes:i})};Si.displayName="Skeleton";const nt={root:"_root_7bdnx_1",thumb:"_thumb_7bdnx_13","thumb--active":"_thumb--active_7bdnx_13",input:"_input_7bdnx_13",bar:"_bar_7bdnx_18",selection:"_selection_7bdnx_34",tooltip:"_tooltip_7bdnx_39",thumbs:"_thumbs_7bdnx_61","--orientation-horizontal":"_--orientation-horizontal_7bdnx_1","--orientation-vertical":"_--orientation-vertical_7bdnx_1","--disabled":"_--disabled_7bdnx_220"},Ei=e=>{const t=e.toString().split(".")[1];return(t==null?void 0:t.length)||0},Ar=(e,t)=>{const o=t%1!==0,r=Math.round(e/t)*t;if(o){const n=Ei(t);return Number(r.toFixed(n))}return r},$i=({event:e,vertical:t})=>t?e instanceof MouseEvent?e.clientY:e.changedTouches[0].clientY:e instanceof MouseEvent?e.clientX:e.changedTouches[0].clientX,Fr=a.forwardRef((e,t)=>{const{name:o,value:r,disabled:n,active:i,position:l,max:c,min:d,step:u,onChange:m,onDragStart:_,renderValue:g,tooltipRef:h,inputRef:v,orientation:f}=e,p=a.useId(),y=A(nt.thumb,i&&nt["thumb--active"]),x=Ei(u),w=g?g({value:r}):r.toFixed(x),C=z=>{m(+z.target.value,{native:!0})};return s.jsxs(s.Fragment,{children:[s.jsx("input",{className:nt.input,type:"range",name:o,value:r,onChange:C,disabled:n,max:c,min:d,step:u,"aria-labelledby":p,"aria-orientation":f,ref:v}),s.jsx("div",{ref:t,className:y,onMouseDown:_,onTouchStart:_,style:{"--ts-slider-thumb-position":`${l}%`},id:p,"aria-hidden":"true",children:g!==!1&&s.jsx(Pt,{colorMode:"inverted",children:s.jsx(se,{variant:"caption-1",weight:"medium",className:nt.tooltip,attributes:{ref:h},children:w})})})]})});Fr.displayName="SliderThumb";const Ti=16,Io=e=>{var J,ue,Ee;const{name:t,range:o,max:r,min:n,step:i=1,onChange:l,onChangeCommit:c,renderValue:d,className:u,attributes:m,orientation:_="horizontal"}=e,g=Se(l),h=Se(c),v=_==="vertical",f=o&&e.minValue!==void 0?Ar(e.minValue,i):void 0,p=Ar(o?e.maxValue:e.value,i),y=(J=e.minName)!=null?J:e.name,x=(ue=e.maxName)!=null?ue:e.name,w=a.useRef(null),C=a.useRef(null),z=a.useRef(null),I=a.useRef(null),S=a.useRef(null),k=a.useRef(null),$=a.useRef(null),[E,M]=a.useState(null),[T]=at(),L=Ze(),P=We(),F=((Ee=L==null?void 0:L.attributes)==null?void 0:Ee.id)||P,D=`${F}-min`,V=`${F}-max`,W=(L==null?void 0:L.disabled)||e.disabled,K=A(nt.root,W&&nt["--disabled"],_&&nt[`--orientation-${_}`],u),G=a.useCallback(ne=>{const ie=w.current;if(!ie)return;const le=v?ie.clientHeight:ie.clientWidth,pe=ie.getBoundingClientRect()[v?"top":"left"]+Ti/2,we=ne-pe,$e=le-Ti;let Le=we/$e;(T||v)&&(Le=1-Le);let me=(r-n)*Le+n;return me=Math.max(n,Math.min(r,me)),Ar(me,i)},[r,n,T,i,v]),oe=ne=>(ne-n)/(r-n)*100,B=a.useCallback(ne=>{var Pe,qe,Ne;if(v)return;const ie=ne===D?I:S,le=ne===D?C:z;let _e=0;const pe=(Pe=w.current)==null?void 0:Pe.getBoundingClientRect(),we=(qe=ie.current)==null?void 0:qe.getBoundingClientRect(),$e=(Ne=le.current)==null?void 0:Ne.getBoundingClientRect(),Le=pe==null?void 0:pe.left,me=Le&&Le+(pe==null?void 0:pe.width),fe=$e&&we&&$e.left-we.width/2,Xe=$e&&we&&$e.left+we.width/2;fe&&Le&&fe<Le&&(_e=we.width/2-8),Xe&&me&&Xe>me&&(_e=-(we.width/2-8));const ye=ie.current;ye&&ye.style.setProperty("--rs-slider-tooltip-offset",`${_e||0}px`)},[D,v]),R=a.useCallback((ne,ie={})=>{var _e,pe;if(!o)return;const le={minValue:ne,maxValue:p,name:t,minName:y,maxName:x};ie.commit&&((_e=h.current)==null||_e.call(h,le)),ie.native&&((pe=g.current)==null||pe.call(g,le)),yn(k.current,ne.toString())},[p,t,y,x,o,h,g]),U=a.useCallback((ne,ie={})=>{var _e,pe;const le=o?{minValue:f,maxValue:ne,name:t,minName:y,maxName:x}:{value:ne,name:t};ie.commit&&((_e=h.current)==null||_e.call(h,le)),ie.native&&((pe=g.current)==null||pe.call(g,le)),yn($.current,ne.toString())},[f,t,y,x,o,g,h]),Y=({nativeEvent:ne})=>{if(W)return;let ie,le;const _e=$i({event:ne,vertical:v}),pe=G(_e);[{ref:C,id:D},{ref:z,id:V}].forEach($e=>{if(!$e.ref.current)return;const me=$e.ref.current.getBoundingClientRect(),fe=Math.abs((v?me.top:me.left)-_e);(ie===void 0||fe<=ie)&&(ie=fe,le=$e.id)}),!(!le||pe===void 0)&&(le===D&&R(pe),le===V&&U(pe),mo(),vr(),M(le))},X=ne=>{W||(ne.stopPropagation(),M(D))},ee=ne=>{W||(ne.stopPropagation(),M(V))},ge=a.useCallback(()=>{E===D&&f!==void 0&&R(f,{commit:!0}),E===V&&U(p,{commit:!0}),ho(),yr(),M(null)},[f,p,R,U,E,D,V]),Z=a.useCallback(ne=>{if(!E)return;const ie=$i({event:ne,vertical:v}),le=G(ie);if(le===void 0)return;let _e=E;E===D&&le>p&&(_e=V),E===V&&f&&le<f&&(_e=D),_e===D&&R(le),_e===V&&U(le),E!==_e&&M(_e)},[E,f,p,G,U,R,V,D,v]);a.useEffect(()=>{B(D),B(V)},[D,V,f,p,B]),a.useEffect(()=>(window.addEventListener("mouseup",ge),window.addEventListener("touchend",ge),window.addEventListener("mousemove",Z),window.addEventListener("touchmove",Z),()=>{window.removeEventListener("mouseup",ge),window.removeEventListener("touchend",ge),window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z)}),[ge,Z]);const H=f&&oe(f),Q=oe(p);return s.jsxs("div",N(b({},m),{className:K,onMouseDown:Y,onTouchStart:Y,children:[s.jsx("div",{className:nt.bar,ref:w,children:s.jsx("div",{className:nt.selection,style:{"--rs-slider-selection-start":`${H||0}%`,"--rs-slider-selection-size":`${Q-(H||0)}%`}})}),s.jsxs("div",{className:nt.thumbs,children:[f!==void 0&&H!==void 0&&s.jsx(Fr,{id:D,active:D===E,name:y,disabled:W,onChange:R,value:f,onDragStart:X,position:H,max:r,min:n,ref:C,tooltipRef:I,inputRef:k,renderValue:d,step:i,orientation:_}),s.jsx(Fr,{id:V,active:V===E,name:x,disabled:W,onChange:U,value:p,onDragStart:ee,position:Q,max:r,min:n,ref:z,tooltipRef:S,inputRef:$,renderValue:d,step:i,orientation:_})]})]}))};Io.displayName="SliderControlled";const Mi=(e,t,o)=>Math.min(Math.max(e,t),o),Ii=e=>{const{min:t,max:o,onChange:r,range:n}=e,i="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,l="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(n?o:t),[c,d]=a.useState(Mi(i,t,o)),[u,m]=a.useState(Mi(l,t,o)),_=h=>{n||(m(h.value),r==null||r(h))},g=h=>{n&&(d(h.minValue),m(h.maxValue),r==null||r(h))};return n?s.jsx(Io,N(b({},e),{min:t,max:o,minValue:c,maxValue:u,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:g})):s.jsx(Io,N(b({},e),{min:t,max:o,value:u,defaultValue:void 0,onChange:_}))};Ii.displayName="SliderUncontrolled";const ji=e=>{const n=e,{min:t=0,max:o=100}=n,r=ve(n,["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(Io,N(b({},r),{min:t,max:o})):s.jsx(Ii,N(b({},r),{min:t,max:o}))};ji.displayName="Slider";const Di={root:"_root_1as3o_1","--animated":"_--animated_1as3o_6"},Vr=e=>{const{children:t,active:o,attributes:r}=e,n=a.useRef(null),i=a.useRef(!1),[l,c]=a.useState(o?"auto":null),d=A(Di.root,i.current&&l!=="auto"&&Di["--animated"]),u=m=>{m.propertyName==="height"&&c(o?"auto":null)};return a.useEffect(()=>{Ge(()=>{i.current=!0})},[]),be(()=>{const m=n.current;!m||!i.current||(o?(m.style.height="auto",requestAnimationFrame(()=>{const _=m.clientHeight;m.style.height="0",requestAnimationFrame(()=>{c(_)})})):(m.style.height=`${m.clientHeight}px`,requestAnimationFrame(()=>{c(0)})))},[o]),s.jsx("div",N(b({},r),{className:d,ref:n,style:l!==null?{height:l,overflow:l==="auto"?"visible":void 0}:void 0,onTransitionEnd:u,role:"region",hidden:!o&&l===null,children:t}))};Vr.displayName="Expandable";const qc={verticalDivider:"_verticalDivider_oa23g_1"},Wc=e=>{const{title:t,subtitle:o,children:r,direction:n,className:i,attributes:l,labelDisplay:c,step:d,completed:u,active:m,last:_}=e,g=c&&ce(c,v=>v==="hidden"),h=s.jsx(q,{gap:3,grow:!0,children:s.jsxs(q.Item,{children:[s.jsx(se,{variant:"body-3",weight:"medium",children:t}),s.jsx(se,{variant:"caption-1",color:"neutral-faded",children:o})]})});return s.jsxs(q,{attributes:l,className:i,children:[s.jsxs(q,{direction:"row",gap:2,align:"center",position:"static",children:[s.jsxs(q.Item,{children:[s.jsx(q,{align:"center",justify:"center",backgroundColor:m||u?"primary":"neutral-faded",borderColor:m||u?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:s.jsx(se,{variant:"body-3",weight:m?"bold":"medium",children:u?s.jsx(he,{svg:pr,size:4}):d})}),n==="column"&&!_&&s.jsx(Kt,{vertical:!0,className:qc.verticalDivider})]}),c?s.jsx(pt,{hide:g,children:h}):h]}),n==="column"&&r&&s.jsx(Vr,{active:m,children:s.jsx(q,{paddingStart:10,paddingTop:2,children:r})})]})},Br=e=>null,Li=e=>{const{children:t,direction:o="row",activeId:r,labelDisplay:n,gap:i=3,className:l,attributes:c}=e,d=o==="column",u=a.Children.count(t);return s.jsx(q,{attributes:c,direction:o,align:d?"stretch":"center",className:l,gap:i,wrap:!1,children:a.Children.map(t,(m,_)=>{if(!a.isValidElement(m)||m.type!==Br)return null;const g=m.props,h=g.id||`${_}`;return s.jsxs(a.Fragment,{children:[s.jsx(Wc,N(b({},g),{id:h,active:(r==null?void 0:r.toString())===h,step:_+1,last:_===u-1,direction:o,labelDisplay:n})),!d&&_<u-1&&s.jsx(q,{grow:!0,children:s.jsx(Kt,{})})]},_)})})};Li.displayName="Stepper",Br.displayName="Stepper.Item";const Pi=Li;Pi.Item=Br;const Et={root:"_root_icbs0_1","--reversed":"_--reversed_icbs0_9",input:"_input_icbs0_14",area:"_area_icbs0_26",thumb:"_thumb_icbs0_30",hitbox:"_hitbox_icbs0_76","--size-small":"_--size-small_icbs0_1","--size-medium":"_--size-medium_icbs0_1","--size-large":"_--size-large_icbs0_1","--size-small--m":"_--size-small--m_icbs0_1","--size-medium--m":"_--size-medium--m_icbs0_1","--size-large--m":"_--size-large--m_icbs0_1","--size-small--l":"_--size-small--l_icbs0_1","--size-medium--l":"_--size-medium--l_icbs0_1","--size-large--l":"_--size-large--l_icbs0_1","--size-small--xl":"_--size-small--xl_icbs0_1","--size-medium--xl":"_--size-medium--xl_icbs0_1","--size-large--xl":"_--size-large--xl_icbs0_1"},Ai=e=>{var x;const{children:t,name:o,checked:r,size:n="medium",reversed:i,defaultChecked:l,onChange:c,onFocus:d,onBlur:u,className:m,attributes:_}=e,g=A(Et.root,n&&ae(Et,"--size",n),i&&Et["--reversed"],m),h=Ze(),v=We((h==null?void 0:h.attributes.id)||e.id||((x=e.inputAttributes)==null?void 0:x.id)),f=b(b({},e.inputAttributes),h==null?void 0:h.attributes),p=(h==null?void 0:h.disabled)||e.disabled,y=w=>{c&&c({name:o,event:w,checked:w.target.checked})};return s.jsxs("label",N(b({},_),{className:g,children:[s.jsx("input",N(b({type:"checkbox"},f),{className:Et.input,name:o,checked:r,defaultChecked:l,disabled:p,onChange:y,onFocus:d||(f==null?void 0:f.onFocus),onBlur:u||(f==null?void 0:f.onBlur),id:v})),s.jsxs("span",{className:Et.area,"aria-hidden":"true",children:[s.jsx("span",{className:Et.hitbox}),s.jsx("span",{className:Et.thumb})]}),t&&s.jsx(se,{variant:ce(n,w=>w==="large"?"body-2":w==="medium"?"body-3":"caption-1"),weight:"medium",color:p?"disabled":void 0,children:t})]}))};Ai.displayName="Switch";const Fi=(e,t={})=>{const{disabled:o}=t,[r]=at(),[n,i]=a.useState(null),l=a.useCallback(()=>{const c=e.current;if(!c)return;c.clientWidth<c.scrollWidth||i(null);const u=c.scrollLeft*(r?-1:1),m=u>1,_=u+c.clientWidth<c.scrollWidth-1;if(_&&m)return i("both");if(m)return i("start");if(_)return i("end")},[r,e]);return be(()=>{const c=e.current;if(!c||o)return;const d=tr(l);return requestAnimationFrame(()=>l()),window.addEventListener("resize",d),c.addEventListener("scroll",d),()=>{window.removeEventListener("resize",d),c.removeEventListener("scroll",d)}},[r,o]),n},He={root:"_root_xlh1v_13",table:"_table_xlh1v_26",row:"_row_xlh1v_32",cell:"_cell_xlh1v_46",head:"_head_xlh1v_61",body:"_body_xlh1v_61","cell--align-start":"_cell--align-start_xlh1v_1","cell--align-center":"_cell--align-center_xlh1v_1","cell--align-end":"_cell--align-end_xlh1v_1","cell--valign-start":"_cell--valign-start_xlh1v_1","cell--valign-center":"_cell--valign-center_xlh1v_1","cell--valign-end":"_cell--valign-end_xlh1v_1","cell--width-auto":"_cell--width-auto_xlh1v_77","--row-highlighted":"_--row-highlighted_xlh1v_81","--border-outer":"_--border-outer_xlh1v_85","--border-column":"_--border-column_xlh1v_90","--fade-start":"_--fade-start_xlh1v_100","--fade-end":"_--fade-end_xlh1v_101"},Vi=e=>{const{minWidth:t,rowSpan:o,colSpan:r,align:n,verticalAlign:i,tagName:l,padding:c,paddingInline:d,paddingBlock:u,children:m,className:_,attributes:g}=e,h=e.width==="auto"?"0px":e.width,v=Qe({width:h,minWidth:t}),f=A(He.cell,v.classNames,(h===0||h==="0px")&&He["cell--width-auto"],n&&He[`cell--align-${n}`],i&&He[`cell--valign-${i}`],_),p=b(b(b({},v.variables),O("--rs-table-p-vertical",u!=null?u:c)),O("--rs-table-p-horizontal",d!=null?d:c));return s.jsx(l,N(b({},g),{className:f,rowSpan:o,colSpan:r,style:p,children:m}))},Bi=e=>s.jsx(Vi,N(b({},e),{tagName:"td"})),Hi=e=>s.jsx(Vi,N(b({},e),{tagName:"th"})),qi=e=>{const{highlighted:t,children:o,className:r,attributes:n}=e,i=e.onClick||(n==null?void 0:n.onClick),l=A(He.row,t&&He["--row-highlighted"],r);return s.jsx("tr",N(b({},n),{className:l,onClick:i,tabIndex:i?0:void 0,children:o}))},jo=e=>{const{children:t,attributes:o,className:r}=e;return s.jsx("tbody",N(b({},o),{className:A(He.body,r),children:t}))},Hr=e=>{const{children:t,attributes:o,className:r}=e;return s.jsx("thead",N(b({},o),{className:A(He.head,r),children:t}))},Wi=e=>{const{children:t,border:o,columnBorder:r,className:n,attributes:i}=e,l=a.useRef(null),c=Fi(l),d=A(He.root,n,o&&He["--border-outer"],r&&He["--border-column"],(c==="start"||c==="both")&&He["--fade-start"],(c==="end"||c==="both")&&He["--fade-end"]),[u]=a.Children.toArray(t),m=a.isValidElement(u),_=m&&u.type===jo,g=m&&u.type===Hr;return s.jsx("div",N(b({},i),{className:d,ref:l,children:s.jsx("table",{className:He.table,children:_||g?t:s.jsx(jo,{children:t})})}))};Wi.displayName="Table",Bi.displayName="TableCell",Hi.displayName="TableHeading",qi.displayName="TableRow",jo.displayName="TableBody",Hr.displayName="TableHead";const Ht=Wi;Ht.Cell=Bi,Ht.Heading=Hi,Ht.Row=qi,Ht.Body=jo,Ht.Head=Hr;const Oi=a.createContext({}),Oc=Oi.Provider,qr=e=>{const r=a.useContext(Oi),{id:t}=r,o=ve(r,["id"]);return N(b({},o),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Wr=e=>{const{children:t,value:o,onChange:r,onSilentChange:n,itemWidth:i,variant:l,name:c,disableSelectionAnimation:d,direction:u="row",size:m="medium"}=e,_=We(),g=a.useRef(null),h=a.useRef(g.current),v=a.useRef(null),[f,p]=a.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=x=>{x!==void 0&&n&&n({value:x,name:c})};return s.jsx(Oc,{value:{value:o,name:c,size:m,direction:u,itemWidth:i,variant:l,onChange:r,id:_,setDefaultValue:y,elActiveRef:g,elPrevActiveRef:h,elScrollableRef:v,selection:f,setSelection:p,disableSelectionAnimation:d},children:t})};Wr.displayName="TabsControlled";const Ui=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=a.useState(t),i=({value:c})=>{n(c),o&&o({value:c})},l=({value:c})=>{n(c)};return s.jsx(Wr,N(b({},e),{onChange:i,onSilentChange:l,value:r,defaultValue:void 0}))};Ui.displayName="TabsUncontrolled";const Yi=e=>{const{value:t}=e;return t!==void 0?s.jsx(Wr,b({},e)):s.jsx(Ui,b({},e))};Yi.displayName="Tabs";const de={root:"_root_daddq_25",inner:"_inner_daddq_39",list:"_list_daddq_48",listItem:"_listItem_daddq_53",button:"_button_daddq_58",buttonContent:"_buttonContent_daddq_85",icon:"_icon_daddq_93",radio:"_radio_daddq_102",item:"_item_daddq_106","item--active":"_item--active_daddq_114","item--disabled":"_item--disabled_daddq_119",selector:"_selector_daddq_125","selector--hidden":"_selector--hidden_daddq_148","selector--animated":"_selector--animated_daddq_152",control:"_control_daddq_159","control--active":"_control--active_daddq_170","control--next":"_control--next_daddq_179","control--prev":"_control--prev_daddq_183",panel:"_panel_daddq_188","panel--hidden":"_panel--hidden_daddq_195","--scrollable":"_--scrollable_daddq_200","--direction-row":"_--direction-row_daddq_225","--direction-column":"_--direction-column_daddq_267","--variant-borderless":"_--variant-borderless_daddq_312","--variant-pills":"_--variant-pills_daddq_313","--variant-pills-elevated":"_--variant-pills-elevated_daddq_314","--size-medium":"_--size-medium_daddq_394","--size-large":"_--size-large_daddq_399","--item-width-equal":"_--item-width-equal_daddq_404",buttonText:"_buttonText_daddq_422","--fade-start":"_--fade-start_daddq_432","--fade-end":"_--fade-end_daddq_433"},Or=a.forwardRef((e,t)=>{const{value:o,children:r,icon:n,href:i,disabled:l,attributes:c}=e,{onChange:d,panelId:u,buttonId:m,name:_,size:g,value:h,selection:v,elActiveRef:f,elPrevActiveRef:p,elScrollableRef:y}=qr(o),x=a.useRef(null),w=h===o,C=w&&v.status==="idle",z=A(de.item,C&&de["item--active"],l&&de["item--disabled"]),I=!!_,S={role:"tab",tabIndex:w?0:-1,"aria-selected":w},k=a.useCallback(()=>{p.current=f.current,f.current=x.current},[f,p]),$=()=>{var W,K;if(i&&!d)return;const E=y.current,M=(W=x.current)==null?void 0:W.parentElement,T=(K=f.current)==null?void 0:K.parentElement;if(d&&d({value:o,name:_}),!E||!M||!T||E.scrollWidth===E.clientWidth||!y.current)return;const L=48,P=x.current&&Ea(x.current,G=>G.hasAttribute("data-rs-tabs-item"));if(!P)return;const F=y.current,D=P.offsetLeft-F.scrollLeft,V=F.scrollLeft+F.clientWidth-(P.offsetLeft+P.clientWidth);(D<L||V<L)&&y.current.scrollTo({left:P.offsetLeft+P.clientWidth/2-F.clientWidth/2,behavior:"smooth"})};return be(()=>{w&&k()},[w,k]),s.jsx("div",N(b({},c),{className:z,ref:x,role:"presentation",children:s.jsxs(Ie,{ref:t,href:i,disableFocusRing:!0,disabled:l,onClick:_?void 0:$,className:de.button,as:_?"label":void 0,attributes:N(b({},!I&&S),{"aria-controls":u,id:m}),children:[_&&s.jsx(no,{type:"radio",name:_,value:o,checked:C,onChange:$,className:de.radio}),s.jsxs("span",{className:de.buttonContent,children:[n&&s.jsx(he,{svg:n,className:de.icon,size:4}),r&&s.jsx(se,{variant:g==="large"?"body-2":"body-3",weight:"medium",className:de.buttonText,children:r})]})]})}))});Or.displayName="Tabs.Item";const Ur=e=>{const{ref:t,disabled:o,orientation:r,circular:n}=e,i=[],l=[];(!r||r==="vertical")&&(i.push("ArrowUp"),l.push("ArrowDown")),(!r||r==="horizontal")&&(i.push("ArrowLeft"),l.push("ArrowRight"));const c=a.useCallback(d=>{var h;const{el:u,focusableElements:m}=d,_=m.find(v=>v.getAttribute("tabindex")!=="-1"),g=(h=u!=null?u:_)!=null?h:m[0];m.forEach(v=>v.setAttribute("tabindex","-1")),g==null||g.setAttribute("tabindex","0")},[]);a.useEffect(()=>{if(!t.current||o)return;const d=Zt(t.current);c({focusableElements:d})},[t,c,o]),Ke({[i.join(", ")]:()=>{if(!t.current)return;const d=Ta(t.current,{circular:n});c(d)},[l.join(", ")]:()=>{if(!t.current)return;const d=$a(t.current,{circular:n});c(d)},Home:()=>{if(!t.current)return;const d=Ma(t.current);c(d)},End:()=>{if(!t.current)return;const d=Ia(t.current);c(d)}},[c,n],{ref:t,preventDefault:!0,disabled:o})},Ki=(e,t)=>e===t||!e?null:e.classList.contains(de.listItem)?e:Ki(e.parentElement,t),Gi=e=>{const{children:t,className:o,attributes:r}=e,{value:n,setDefaultValue:i,itemWidth:l,variant:c,name:d,direction:u,size:m,selection:_,setSelection:g,elActiveRef:h,elPrevActiveRef:v,elScrollableRef:f,disableSelectionAnimation:p}=qr(),[y]=at(),x=Fi(f,{disabled:l==="equal"}),w=A(de.root,m&&de[`--size-${m}`],u&&de[`--direction-${u}`],l&&de[`--item-width-${l}`],c&&de[`--variant-${c}`],x&&de["--scrollable"],(x==="start"||x==="both")&&de["--fade-start"],(x==="end"||x==="both")&&de["--fade-end"],o),C=A(de.selector,_.status==="idle"&&de["selector--hidden"],_.status==="animated"&&de["selector--animated"]),z=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},I=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},S=()=>{g($=>N(b({},$),{status:"idle"}))},k=a.useCallback($=>{if(!f.current)return null;const E=Ki($,f.current);return E?{scaleX:E.clientWidth,scaleY:E.clientHeight,top:E.offsetTop,left:E.offsetLeft}:null},[f]);return Ur({ref:f,disabled:!!d}),be(()=>{if(n)return;const $=a.Children.toArray(t)[0];if(!a.isValidElement($)||!$||$.type!==Or)return;const E=$.props;i(E.value)},[n]),be(()=>{if(!v.current||v.current===h.current)return;const $=k(v.current);if($){if(p){g(N(b({},$),{status:"idle"}));return}g(N(b({},$),{status:"prepared"}))}},[n,k,p]),be(()=>{if(_.status!=="prepared"||!h.current)return;const $=k(h.current);$&&g(N(b({},$),{status:"animated"}))},[_]),s.jsxs("div",N(b({},r),{className:w,children:[s.jsx("div",{className:de.inner,ref:f,children:s.jsxs("div",{className:de.list,role:"tablist",children:[a.Children.map(t,($,E)=>{if(!a.isValidElement($))return null;const M=$.props;return s.jsx("div",{className:de.listItem,"data-rs-tabs-item":!0,children:$},M.value||$.key||E)}),!p&&s.jsx("div",{onTransitionEnd:S,className:C,style:{"--rs-tab-selection-x":_.left,"--rs-tab-selection-y":_.top,"--rs-tab-selection-scale-x":_.scaleX,"--rs-tab-selection-scale-y":_.scaleY}})]})}),s.jsx(Ie,{onClick:I,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[de.control,de["control--prev"],(x==="start"||x==="both")&&de["control--active"]],children:s.jsx(he,{svg:zo,size:5})}),s.jsx(Ie,{onClick:z,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[de.control,de["control--next"],(x==="end"||x==="both")&&de["control--active"]],children:s.jsx(he,{svg:At,size:5})})]}))};Gi.displayName="Tabs.List";const Xi=e=>{const{value:t,children:o,className:r,attributes:n}=e,{value:i,panelId:l,buttonId:c}=qr(t),[d,u]=a.useState(!0),m=a.useRef(null),_=t===i,g=A(de.panel,!_&&de["panel--hidden"],r);return a.useEffect(()=>{const h=m.current;if(!h)return;const v=()=>{u(!Zt(h).length)};v();const f=new MutationObserver(v);return f.observe(h,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex","disabled","href"]}),()=>f.disconnect()},[]),s.jsx("div",N(b({},n),{ref:m,className:g,tabIndex:d?0:void 0,role:"tabpanel",id:l,"aria-labelledby":c,children:_&&o}))};Xi.displayName="Tabs.Panel";const Do=Yi;Do.Item=Or,Do.List=Gi,Do.Panel=Xi;const $t={root:"_root_72pr2_1",input:"_input_72pr2_20","--size-medium":"_--size-medium_72pr2_1","--size-large":"_--size-large_72pr2_1","--size-xlarge":"_--size-xlarge_72pr2_1","--variant-faded":"_--variant-faded_72pr2_87","--variant-ghost":"_--variant-ghost_72pr2_95","--variant-headless":"_--variant-headless_72pr2_103","--status-error":"_--status-error_72pr2_111","--resize-none":"_--resize-none_72pr2_122","--resize-auto":"_--resize-auto_72pr2_123","--size-medium--m":"_--size-medium--m_72pr2_1","--size-large--m":"_--size-large--m_72pr2_1","--size-xlarge--m":"_--size-xlarge--m_72pr2_1","--size-medium--l":"_--size-medium--l_72pr2_1","--size-large--l":"_--size-large--l_72pr2_1","--size-xlarge--l":"_--size-xlarge--l_72pr2_1","--size-medium--xl":"_--size-medium--xl_72pr2_1","--size-large--xl":"_--size-large--xl_72pr2_1","--size-xlarge--xl":"_--size-xlarge--xl_72pr2_1"},Qi=e=>{var S,k;const{onChange:t,onFocus:o,onBlur:r,name:n,value:i,defaultValue:l,placeholder:c,size:d="medium",variant:u="outline",resize:m,className:_,attributes:g}=e,[h,v]=a.useState(i||l||""),f=Ze(),p=We(e.id),y=((S=f==null?void 0:f.attributes)==null?void 0:S.id)||((k=e.inputAttributes)==null?void 0:k.id)||p,x=(f==null?void 0:f.disabled)||e.disabled,w=(f==null?void 0:f.hasError)||e.hasError,C=b(b({},e.inputAttributes),f==null?void 0:f.attributes),z=A($t.root,d&&ae($t,"--size",d),w&&$t["--status-error"],x&&$t["--disabled"],u&&$t[`--variant-${u}`],m!==void 0&&$t[`--resize-${m}`],_),I=$=>{const E=$.target.value;t==null||t({name:n,value:E,event:$}),m==="auto"&&typeof i!="string"&&v(E)};return a.useEffect(()=>{typeof i!="string"||m!=="auto"||v(i)},[i,m]),s.jsx("div",N(b({},g),{"data-rs-aligner-target":!0,className:z,"data-rs-textarea-value":h,children:s.jsx("textarea",N(b({rows:3},C),{className:$t.input,disabled:x,name:n,placeholder:c,value:i,defaultValue:l,onChange:I,onFocus:o||(C==null?void 0:C.onFocus),onBlur:r||(C==null?void 0:C.onBlur),id:y}))}))};Qi.displayName="TextArea";const Zi=Qi;Zi.Aligner=Jt;const Yr={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Lo=e=>{const{children:t,markerSlot:o,className:r,attributes:n}=e,i=o!==null,l=A(Yr.item,!i&&Yr["item--full-width"],r);return s.jsxs(q,{as:"li",direction:"row",align:"stretch",gap:3,attributes:n,className:l,children:[i&&s.jsx("span",{className:Yr.marker,children:o}),s.jsx(q.Item,{grow:!0,children:t})]})},Ji=e=>{const{children:t,className:o,attributes:r}=e,n=A(o);return s.jsx("ul",N(b({},r),{className:n,children:a.Children.map(t,(i,l)=>a.isValidElement(i)&&i.type===Lo?i:s.jsx(Lo,{children:i},l))}))};Ji.displayName="Timeline",Lo.displayName="Timeline.Item";const Ri=Ji;Ri.Item=Lo;const el={short:4e3,long:8e3},lo=["top-start","top","top-end","bottom-start","bottom","bottom-end"],tl={queues:lo.reduce((e,t)=>b({[t]:[]},e),{}),id:"",show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},Po=a.createContext(tl),ol=()=>{const{add:e,hide:t,id:o}=a.useContext(Po);return a.useMemo(()=>({show:e,hide:t,id:o}),[e,t,o])},Re={container:"_container_13298_1","container--visible":"_container--visible_13298_1",wrapper:"_wrapper_13298_12","container--index-0":"_container--index-0_13298_1","container--index-1":"_container--index-1_13298_1","container--index-2":"_container--index-2_13298_112","container--index-overflow":"_container--index-overflow_13298_116",region:"_region_13298_65","region--nested":"_region--nested_13298_1","region--position-top":"_region--position-top_13298_1","region--position-top-start":"_region--position-top-start_13298_1","region--position-top-end":"_region--position-top-end_13298_1","region--position-bottom":"_region--position-bottom_13298_1","region--position-bottom-start":"_region--position-bottom-start_13298_1","region--position-bottom-end":"_region--position-bottom-end_13298_1"},rl=e=>{const{size:t="small",text:o,children:r,color:n="inverted",icon:i,title:l,actionsSlot:c,startSlot:d,collapsed:u,className:m,attributes:_}=e;let g=n==="inverted"||n==="neutral"?"elevation-overlay":n;n==="neutral"&&(g=u?"neutral":"elevation-overlay");const h=n==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",f=t==="large";let p=[];c&&(p=Array.isArray(c)?c:[c]);const y=(l||o)&&s.jsxs(a.Fragment,{children:[l&&s.jsxs(se,{variant:"body-3",weight:"bold",as:v,children:[l," "]}),s.jsx(se,{variant:"body-3",as:v,children:o})]}),x=s.jsxs(q,{backgroundColor:g,borderColor:h,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:f?"start":"center",className:[Re.toast,m],attributes:_,children:[i&&s.jsx(he,{size:5,svg:i,className:Re.icon}),d&&!i&&s.jsx(q.Item,{children:d}),s.jsx(q.Item,{grow:!0,children:s.jsxs(q,{direction:f?"column":"row",align:f?"start":"center",gap:3,children:[s.jsx(q.Item,{grow:!0,children:y&&r||t!=="small"?s.jsxs(q,{gap:.5,children:[y,r&&s.jsx(q,{gap:3,children:r})]}):y||r}),p.length&&s.jsx(q,{direction:"row",align:"center",gap:2,children:p.map((w,C)=>{const z=t==="large"?C===0:C===p.length-1,S={variant:z?"solid":"ghost",size:"small",color:z?n==="neutral"||n==="inverted"?"neutral":"media":"inherit",elevated:n!=="neutral"};return w.type===Me?a.createElement(Me,N(b(b({},S),w.props),{key:C})):w})})]})})]});return n==="inverted"?s.jsx(Pt,{colorMode:"inverted",children:x}):x};rl.displayName="Toast";const nl=e=>{const{toastProps:t,id:o,status:r,inspected:n,index:i}=e,{timeout:l="short"}=t,{show:c,hide:d,remove:u}=a.useContext(Po),[m,_]=a.useState(),g=a.useRef(null),h=a.useRef(!1),v=a.useRef(null),f=r==="entered",p=A(Re.container,f&&Re["container--visible"],i===0&&Re[`container--index-${i}`],!n&&(i===1||i===2)&&Re[`container--index-${i}`],!n&&i>=3&&Re["container--index-overflow"]),y=a.useCallback(()=>{g.current&&clearTimeout(g.current)},[]),x=a.useCallback(()=>{y();const C=typeof l=="string"?el[l]:l;l!==0&&(g.current=setTimeout(()=>{d(o)},C!=null?C:el.short))},[d,o,l,y]),w=C=>{C.propertyName==="height"&&(f||u(o))};return a.useEffect(()=>{f&&(n?y():x())},[n,x,y,f]),a.useEffect(()=>{v.current&&_(v.current.clientHeight),c(o),x()},[c,o,x]),a.useEffect(()=>{if(!v.current)return;const C=new Dt;f?C.trap(v.current,{includeTrigger:!0,mode:"content-menu"}):po()&&C.release()},[f]),a.useEffect(()=>{if(!f||i>0)return;const C=()=>{h.current=!0,Ge(()=>{h.current=!1}),v.current&&_(v.current.clientHeight)};return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[f,i]),s.jsx("li",{className:p,style:{height:r==="entered"?`calc(${m}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:h.current?"0s":void 0},onTransitionEnd:w,onFocus:y,onBlur:x,children:s.jsx("span",{className:Re.wrapper,children:s.jsx(rl,N(b({},t),{collapsed:i>0&&!n,attributes:N(b({},t.attributes),{ref:v})}))})})};nl.displayName="ToastContainer";const sl=e=>{const{position:t,nested:o}=e,{queues:r,options:n}=a.useContext(Po),[i,l]=a.useState(!1),c=a.useRef(!1),d=a.useRef(null),u=r[t],{width:m,expanded:_}=(n==null?void 0:n[t])||{},g=A(Re.region,Re[`region--position-${t}`],o&&Re["region--nested"]),h=u.filter(w=>w.status==="entered").length;let v=0;const f=()=>{c.current=!0},p=w=>{let C=w.target,z=!1;for(;C&&C!==d.current&&!z;)z=C.matches(xn),C=C.parentElement;z||l(I=>!I),c.current=!1},y=()=>{c.current||l(!0)},x=()=>{c.current||l(!1)};return a.useEffect(()=>{u.length===0&&l(!1)},[u.length]),u.length?s.jsx("ul",{role:"region","aria-live":"polite",className:g,ref:d,onTouchStart:f,onClick:p,onMouseEnter:y,onMouseLeave:x,style:{width:m},children:u.map((w,C)=>{const z=h-C+v-1;return w.status!=="entered"&&(v+=1),s.jsx(nl,N(b({},w),{index:z,inspected:i||!!_}),w.id)})}):null};sl.displayName="ToastRegion";let Uc=0;const Yc=()=>`__rs-toast-${Uc++}`,Kc=(e,t)=>{let o;switch(t.type){case"add":{const r=t.payload.toastProps||{},{position:n="bottom-end"}=r,i=ve(r,["position"]);return N(b({},e),{[n]:[...e[n],{id:t.payload.id,toastProps:i,status:"entering"}]})}case"show":{const{id:n}=t.payload;return o=b({},e),lo.forEach(i=>{o[i]=o[i].map(l=>l.status!=="entering"?l:l.id===n?N(b({},l),{status:"entered"}):l)}),o}case"hide":{const{id:n}=t.payload;return o=b({},e),lo.forEach(i=>{o[i]=o[i].map(l=>l.id===n?N(b({},l),{status:"exiting"}):l)}),o}case"remove":{const{id:n}=t.payload;return o=b({},e),lo.forEach(i=>{o[i]=o[i].filter(l=>l.id!==n)}),o}}},Kr=e=>{const{children:t,options:o}=e,r=ol(),n=a.useId(),[i,l]=a.useReducer(Kc,tl.queues),c=a.useCallback(g=>{const h=Yc();return l({type:"add",payload:{toastProps:g,id:h}}),h},[]),d=a.useCallback(g=>{l({type:"show",payload:{id:g}})},[]),u=a.useCallback(g=>{l({type:"hide",payload:{id:g}})},[]),m=a.useCallback(g=>{l({type:"remove",payload:{id:g}})},[]),_=a.useMemo(()=>({queues:i,id:n,add:c,show:d,hide:u,remove:m,inspecting:!1,options:o}),[i,d,u,c,m,n,o]);return s.jsxs(Po.Provider,{value:_,children:[t,lo.map(g=>s.jsx(sl,{position:g,nested:!!r.id},g))]})};Kr.displayName="ToastProiver";const il=a.createContext(null),Gc=()=>a.useContext(il),Gr=e=>{const m=e,{onChange:t,value:o,selectionMode:r="single",children:n,color:i,selectedColor:l}=m,c=ve(m,["onChange","value","selectionMode","children","color","selectedColor"]),d=a.useRef(null),u=_=>{const{event:g,value:h,checked:v}=_;if(!h)return;let f=r==="single"?[h]:[...o];r==="multiple"&&(v?f.push(h):f=f.filter(p=>p!==h)),t&&t({value:f,event:g})};return Ur({ref:d}),s.jsx(il.Provider,{value:{onChange:u,value:o,selectedColor:l,color:i},children:s.jsx(Me.Group,N(b({},c),{attributes:b({ref:d},c==null?void 0:c.attributes),children:n}))})};Gr.displayName="ToggleButtonGroupControlled";const ll=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=a.useState(t||[]),i=l=>{l.value&&(n(l.value),o&&o(l))};return s.jsx(Gr,N(b({},e),{value:r,defaultValue:void 0,onChange:i}))};ll.displayName="ToggleButtonGroupUncontrolled";const al=e=>{const{value:t}=e;return t!==void 0?s.jsx(Gr,b({},e)):s.jsx(ll,b({},e))};al.displayName="ToggleButtonGroup";const Xr=e=>{var h,v,f;const g=e,{variant:t="outline",selectedColor:o,value:r,onChange:n,onClick:i,color:l}=g,c=ve(g,["variant","selectedColor","value","onChange","onClick","color"]),d=Gc(),u=(v=r?(h=d==null?void 0:d.value)==null?void 0:h.includes(r):void 0)!=null?v:e.checked,m=u&&(o||(d==null?void 0:d.selectedColor))||l||(d==null?void 0:d.color),_=p=>{var x;const y={checked:!u,value:r!=null?r:"",event:p};i==null||i(p),d?(x=d==null?void 0:d.onChange)==null||x.call(d,y):n==null||n(y)};return s.jsx(Me,N(b({},c),{color:m,variant:t,onClick:_,highlighted:u,attributes:N(b({},c.attributes),{"aria-pressed":u,tabIndex:(f=d==null?void 0:d.value)!=null&&f.length?u?0:-1:void 0})}))};Xr.displayName="ToggleButtonControlled";const cl=e=>{const l=e,{defaultChecked:t,onChange:o}=l,r=ve(l,["defaultChecked","onChange"]),n=kt(t),i=c=>{o==null||o(c),n.toggle(c.checked)};return s.jsx(Xr,N(b({},r),{onChange:i,checked:n.active}))};cl.displayName="ToggleButtonUncontrolled";const dl=e=>{const{checked:t}=e;return t!==void 0?s.jsx(Xr,b({},e)):s.jsx(cl,b({},e))};dl.displayName="ToggleButton";const Xc={root:"_root_1vb26_1"},ul=e=>{const c=e,{text:t,children:o,position:r="bottom",color:n="inverted",contentMaxWidth:i="360px"}=c,l=ve(c,["text","children","position","color","contentMaxWidth"]);return t?s.jsxs(ct,N(b({},l),{position:r,triggerType:"hover",groupTimeouts:l.active===void 0,contentMaxWidth:i,children:[s.jsx(ct.Trigger,{children:o}),s.jsx(ct.Content,{children:s.jsx(Pt,{colorMode:n,children:s.jsx(se,{variant:"caption-1",className:Xc.root,children:t})})})]})):o({ref:null})};ul.displayName="Tooltip";const _l=a.createContext({disabledRef:null,disable:()=>{},enable:()=>{},activate:()=>{},deactivate:()=>{}}),Qc=e=>{const t=a.useRef(!1),o=a.useCallback(()=>{t.current=!0},[]),r=a.useCallback(()=>{t.current=!1},[]),n=a.useCallback(()=>{t.current||ja()},[]),i=a.useCallback(()=>{t.current||Da()},[]),l=a.useCallback(u=>{u.metaKey||u.altKey||u.ctrlKey||u.key!==La&&n()},[n]),c=a.useCallback(()=>{i()},[i]);a.useEffect(()=>(window.addEventListener("keydown",l),window.addEventListener("mousedown",c),()=>{window.removeEventListener("keydown",l),window.removeEventListener("mousedown",c)}),[c,l]);const d=a.useMemo(()=>({disabledRef:t,disable:o,enable:r,activate:n,deactivate:i}),[o,r,n,i]);return s.jsx(_l.Provider,{value:d,children:e.children})},Zc={root:"_root_1cpr1_1"},Jc=e=>{const{children:t,defaultRTL:o,defaultViewport:r="s",toastOptions:n}=e,i=za(o);return s.jsx(Qc,{children:s.jsx(Yo.Provider,{value:{rtl:i,defaultViewport:r},children:s.jsx(Na,{children:s.jsx(Kr,{options:n,children:t})})})})},ml=e=>{const{theme:t,defaultTheme:o="reshaped",colorMode:r,defaultColorMode:n,scoped:i,className:l}=e,c=A(Zc.root,l),d=a.useRef(null),u=Ro();return s.jsx(An,{defaultMode:n||u.mode||"light",mode:r,scopeRef:u&&i?d:void 0,children:s.jsx(Pn,{name:t,defaultName:o,className:c,scoped:i,scopeRef:u&&i?d:void 0,children:s.jsx(Jc,N(b({},e),{children:e.children}))})})};ml.displayName="Reshaped";const Qr=a.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Zr=e=>{const{children:t,onToggle:o,active:r,iconPosition:n,iconSize:i,gap:l,className:c,attributes:d}=e,u=A(c),m=We(),_=Se(o),g=a.useMemo(()=>({triggerId:`${m}-trigger`,contentId:`${m}-content`,active:r,onToggle:_.current,iconPosition:n,iconSize:i,gap:l}),[r,n,i,m,_,l]);return s.jsx("div",N(b({},d),{className:u,children:s.jsx(Qr.Provider,{value:g,children:t})}))};Zr.displayName="AccordionControlled";const hl=e=>{const c=e,{defaultActive:t,onToggle:o}=c,r=ve(c,["defaultActive","onToggle"]),[n,i]=a.useState(t||!1),l=d=>{i(d),o==null||o(d)};return s.jsx(Zr,N(b({},r),{onToggle:l,active:n}))};hl.displayName="AccordionUncontrolled";const fl=e=>{const{active:t}=e;return t!==void 0?s.jsx(Zr,b({},e)):s.jsx(hl,b({},e))};fl.displayName="Accordion";const gl=e=>{const{children:t}=e,{active:o,triggerId:r,contentId:n,gap:i}=a.useContext(Qr);return s.jsx(Vr,{active:o,attributes:{"aria-labelledby":r,id:n},children:i?s.jsx(q,{paddingTop:i,children:t}):t})};gl.displayName="Accordion.Content";const bl={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},pl=e=>{const{children:t}=e,{active:o,onToggle:r,triggerId:n,contentId:i,iconPosition:l="end",iconSize:c}=a.useContext(Qr),d=A(bl.icon,o&&bl["icon--active"]),u=()=>{r==null||r(!o)},m={"aria-expanded":o,"aria-controls":i,id:n};return typeof t=="function"?s.jsx(s.Fragment,{children:t(N(b({},m),{onClick:u}),{active:o})}):s.jsx(Ie,{onClick:u,fullWidth:!0,attributes:m,children:s.jsxs(q,{gap:2,direction:l==="start"?"row-reverse":"row",align:"center",children:[s.jsx(q.Item,{grow:!0,children:t}),s.jsx(he,{size:c||4,svg:ii,className:d})]})})};pl.displayName="Accordion.Trigger";const Jr=fl;Jr.Trigger=pl,Jr.Content=gl;const Rc={root:"_root_1yz7x_1"},vl=e=>{const{children:t,padding:o=4,width:r,align:n,justify:i,height:l,maxHeight:c,className:d,attributes:u}=e,m=A(Rc.root,d);return s.jsx(q,{attributes:u,className:m,paddingInline:o,align:n,justify:i,height:l,maxHeight:c,width:r,maxWidth:"100%",children:t})};vl.displayName="Container";const yl={root:"_root_3bv1t_1",item:"_item_3bv1t_67"},xl=e=>{const{area:t,colStart:o,colEnd:r,colSpan:n,rowStart:i,rowEnd:l,rowSpan:c,children:d,className:u,as:m="div",attributes:_}=e,g=A(yl.item,u),h=ce(n,p=>p&&`span ${p}`),v=ce(c,p=>p&&`span ${p}`),f=b(b(b(b(b(b(b(b({},_==null?void 0:_.style),O("--rs-grid-area",t)),O("--rs-grid-col-end",h)),O("--rs-grid-col-end",r)),O("--rs-grid-col-start",o)),O("--rs-grid-row-end",v)),O("--rs-grid-row-end",l)),O("--rs-grid-row-start",i));return s.jsx(m,N(b({},_),{className:g,style:f,children:d}))},wl=e=>{const{areas:t,columns:o,rows:r,gap:n,columnGap:i,rowGap:l,align:c,justify:d,autoColumns:u,autoRows:m,autoFlow:_,children:g,className:h,width:v,height:f,maxWidth:p,as:y="div",attributes:x}=e,w=Qe({align:c,justify:d,width:v,height:f,maxWidth:p}),C=ce(r,$=>typeof $=="number"?`repeat(${$}, 1fr)`:$),z=ce(o,$=>typeof $=="number"?`repeat(${$}, 1fr)`:$),I=ce(t,$=>$?`"${$==null?void 0:$.join('" "')}"
|
|
2
|
+
`:void 0),S=A(yl.root,w.classNames,h),k=b(b(b(b(b(b(b(b(b(b(b({},x==null?void 0:x.style),O("--rs-grid-gap",n)),O("--rs-grid-column-gap",i)),O("--rs-grid-row-gap",l)),O("--rs-grid-rows",C)),O("--rs-grid-columns",z)),O("--rs-grid-areas",I)),O("--rs-grid-auto-flow",_)),O("--rs-grid-auto-columns",u)),O("--rs-grid-auto-rows",m)),w.variables);return s.jsx(y,N(b({},x),{className:S,style:k,children:g}))};wl.displayName="Grid",xl.displayName="Grid.Item";const Cl=wl;Cl.Item=xl;const qt={root:"_root_17pp4_1",item:"_item_17pp4_5",handle:"_handle_17pp4_16","--variant-bordered":"_--variant-bordered_17pp4_34","handle--dragging":"_handle--dragging_17pp4_60","--variant-borderless":"_--variant-borderless_17pp4_46","--direction-row":"_--direction-row_17pp4_69","--direction-column":"_--direction-column_17pp4_73"},ed=(e,t)=>{const{disabled:o,containerRef:r,orientation:n="all"}=t||{},i=Se(e),l=kt(),c=a.useRef(null),d=a.useRef(null),u=r||d,m=a.useRef({x:0,y:0}),_=n==="vertical"||n==="all",g=n==="horizontal"||n==="all",h=(v,f)=>{var z;const p=c.current;if(!p)return;const x=((z=u.current)!=null?z:document.body).getBoundingClientRect(),w=p==null?void 0:p.getBoundingClientRect(),C={x:0,y:0,triggerX:0,triggerY:0};if(_){const I=Math.round(w.y)-x.y+f;C.y=Math.max(0,Math.min(I,x.height-w.height)),C.triggerY=w.y-x.y}if(g){const I=Math.round(w.x)-x.x+v;C.x=Math.max(0,Math.min(I,x.width-w.width)),C.triggerX=w.x-x.x}e(C)};return Ke({[Ct]:()=>g&&h(-20,0),[wt]:()=>g&&h(20,0),[yt]:()=>_&&h(0,-20),[xt]:()=>_&&h(0,20)},[],{ref:c,preventDefault:!0,disabled:o}),a.useEffect(()=>{const v=c.current;if(!v||!l.active)return;const f=y=>{var E,M;const x=y instanceof MouseEvent?y:y.changedTouches[0],C=((E=u.current)!=null?E:document.body).getBoundingClientRect(),z=v.getBoundingClientRect(),I=x.clientX-C.x,S=x.clientY-C.y,k=I-m.current.x,$=S-m.current.y;(M=i.current)==null||M.call(i,{x:g?Math.max(0,Math.min(k,C.width-z.width)):0,y:_?Math.max(0,Math.min($,C.height-z.height)):0,triggerX:z.x-C.x,triggerY:z.y-C.y})},p=()=>{m.current={x:0,y:0},l.deactivate(),ho(),yr()};return document.addEventListener("touchmove",f,{passive:!0}),document.addEventListener("touchend",p,{passive:!0}),document.addEventListener("mousemove",f,{passive:!0}),document.addEventListener("mouseup",p,{passive:!0}),()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",p),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}},[l,g,_,u,i]),a.useEffect(()=>{const v=c.current;if(!v||o)return;const f=p=>{const y=p instanceof MouseEvent?p:p.changedTouches[0],x=v.getBoundingClientRect();m.current={x:y.clientX-x.x,y:y.clientY-x.y},l.activate(),mo(),vr()};return v.addEventListener("touchstart",f,{passive:!0}),v.addEventListener("mousedown",f,{passive:!0}),()=>{v.removeEventListener("touchstart",f),v.removeEventListener("mousedown",f)}},[l,o]),{ref:c,containerRef:u,active:l.active}},Nl=a.createContext({}),td=e=>{const{children:t}=e,{containerRef:o,onDrag:r,index:n,direction:i}=a.useContext(Nl),{ref:l,active:c}=ed(u=>{r(N(b({},u),{index:n}))},{containerRef:o,orientation:i==="row"?"horizontal":"vertical"}),d=A(qt.handle,c&&qt["handle--dragging"]);return t?s.jsx(q.Item,{children:t({ref:l},{direction:i,status:c?"dragging":"idle"})}):s.jsx(q.Item,{className:d,attributes:{role:"button",tabIndex:0,"aria-hidden":!0,ref:u=>{l.current=u}}})},Rr=()=>null,od=a.forwardRef((e,t)=>{const{children:o,defaultSize:r,minSize:n,maxSize:i}=e,l=a.useRef(null);return s.jsx(q.Item,{grow:!0,className:qt.item,attributes:{ref:c=>{typeof t=="function"&&t(c),l.current=c},style:{"--rs-resizable-default-size":r,"--rs-resizable-min-size":n,"--rs-resizable-max-size":i}},children:o})}),kl=e=>{const{children:t,variant:o="borderless",height:r,direction:n="row",gap:i=2,className:l,attributes:c}=e,d=A(qt.root,qt[`--direction-${n}`],o&&qt[`--variant-${o}`],l),u=a.useRef(null),m=a.useRef([]),_=n==="row";let g=0,h=0;m.current=[];const v=y=>{const{item:x,grow:w,itemsSize:C,itemsCount:z}=y,{minSize:I,maxSize:S}=x.props,k=w/z/100*C,$=I&&Number(I.replace("px","")),E=S&&Number(S==null?void 0:S.replace("px",""));return!!($&&$>k||E&&E<k)},f=y=>{const{index:x,x:w,y:C,triggerX:z,triggerY:I}=y,S=m.current[x],k=m.current[x+1];if(!S.el||!k.el)return;const $=m.current.length;let E=$*100,M=0;m.current.forEach((oe,B)=>{oe.el&&(M+=_?oe.el.clientWidth:oe.el.clientHeight,!(B===x||B===x+1)&&(E-=Number(oe.el.style.flexGrow||100)))},0);const T=_?S.el.clientWidth:S.el.clientHeight,L=_?S.el.offsetLeft:S.el.offsetTop,P=_?k.el.clientWidth:k.el.clientHeight,F=(_?z:I)-T-L,D=(_?w:C)-F,V=T+P,W=Math.min(1,Math.max(0,(D-L)/V)),K=Math.floor(W*E),G=Math.floor(E-K);v({item:S,itemsSize:M,grow:K,itemsCount:$})||v({item:k,itemsSize:M,grow:G,itemsCount:$})||(S.el.style.flexGrow=K.toString(),k.el.style.flexGrow=G.toString())};a.useEffect(()=>{const y=[];let x=0;m.current.forEach(w=>{w.el&&(x+=_?w.el.clientWidth:w.el.clientHeight)}),m.current.forEach((w,C)=>{if(!w.el)return;const z=(_?w.el.clientWidth:w.el.clientHeight)/x;y[C]=m.current.length*z*100}),m.current.forEach((w,C)=>{!w.el||!y[C]||(w.el.style.flexGrow=y[C].toString(),w.el.setAttribute("data-rs-resizable-item-mounted",""))})},[_]);const p=a.Children.map(t,y=>{const x=a.isValidElement(y);if(x&&y.props&&y.type!==Rr)return s.jsx(Nl.Provider,{value:{containerRef:u,index:g++,onDrag:f,direction:n},children:y});if(x&&y.props&&y.type===Rr){const w=g;return s.jsx(od,N(b({},y.props),{index:h++,ref:C=>{m.current[w]={el:C,props:y.props}}}))}return null});return s.jsx(q,{attributes:N(b({},c),{ref:u}),className:d,height:r,direction:n,align:"stretch",gap:i,children:p})};kl.displayName="Resizable";const en=kl;en.Item=Rr,en.Handle=td;const mt={root:"_root_xnsfu_1",scrollable:"_scrollable_xnsfu_9",content:"_content_xnsfu_30",scrollbar:"_scrollbar_xnsfu_37",thumb:"_thumb_xnsfu_43","--scrollbar-y":"_--scrollbar-y_xnsfu_59","--scrollbar-x":"_--scrollbar-x_xnsfu_71","--display-visible":"_--display-visible_xnsfu_91","--display-hover":"_--display-hover_xnsfu_96","--scrollbar-dragging":"_--scrollbar-dragging_xnsfu_100"},zl=e=>{const{ratio:t,position:o,vertical:r,onThumbMove:n}=e,i=Se(n),[l,c]=a.useState(!1),d=a.useRef(0),u=a.useRef(null),m=A(mt.scrollbar,r?mt["--scrollbar-y"]:mt["--scrollbar-x"],l&&mt["--scrollbar-dragging"]),_=f=>{const p=u.current,y=d.current;if(d.current=0,y||!p||f.currentTarget!==p)return;const x=p.getBoundingClientRect(),w=r?f.pageY-x.top:f.pageX-x.left,C=r?p.clientHeight:p.clientWidth;n({value:w/C-t/2,type:"absolute"})},g=a.useCallback(f=>{var w;d.current||(d.current=r?f.pageY:f.pageX);const p=u.current;if(!p||!l)return;const y=r?f.movementY:f.movementX,x=r?p.scrollHeight:p.scrollWidth;(w=i.current)==null||w.call(i,{value:y/x,type:"relative"})},[r,l,i]),h=a.useCallback(()=>{c(!1),ho()},[]),v=()=>{c(!0),mo()};return a.useEffect(()=>{if(l)return document.addEventListener("mousemove",g),document.addEventListener("mouseup",h),()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",h)}},[g,h,l]),s.jsx("div",{className:m,style:{"--rs-scroll-area-ratio":t,"--rs-scroll-area-position":o},ref:u,onClick:_,onMouseDown:v,"aria-hidden":"true",children:s.jsx("div",{className:mt.thumb})})},Sl=a.forwardRef((e,t)=>{const{children:o,height:r,maxHeight:n,scrollbarDisplay:i="hover",onScroll:l,className:c,attributes:d}=e,[u,m]=a.useState({x:1,y:1}),[_,g]=a.useState({x:0,y:0}),h=a.useRef(null),v=a.useRef(null),f=Qe({height:r,maxHeight:n}),p=A(mt.root,i&&mt[`--display-${i}`],c),y=A(mt.content,f.classNames),x=a.useCallback(()=>{const I=h.current;I&&m({x:I.clientWidth/I.scrollWidth,y:I.clientHeight/I.scrollHeight})},[]),w=I=>{const{scrollLeft:S,scrollTop:k,clientWidth:$,clientHeight:E,scrollWidth:M,scrollHeight:T}=I.currentTarget;g({x:S/M,y:k/T}),l==null||l({x:M===$?0:S/(M-$),y:T===E?0:k/(T-E)})},C=I=>{const S=h.current;if(!S)return;const k=S.scrollHeight*I.value;I.type==="absolute"?S.scrollTop=k:S.scrollTop+=k},z=I=>{const S=h.current;if(!S)return;const k=S.scrollWidth*I.value;I.type==="absolute"?S.scrollLeft=k:S.scrollLeft+=k};return a.useImperativeHandle(t,()=>h.current),be(()=>{x()},[x]),be(()=>{const I=v.current;if(!I)return;const S=new ResizeObserver(x);return S.observe(I),()=>S.disconnect()},[x]),s.jsxs("div",N(b({},d),{ref:v,className:p,children:[s.jsx("div",{className:mt.scrollable,ref:h,onScroll:w,children:s.jsx("div",{className:y,style:b({},f.variables),children:o})}),u.y<1&&i!=="hidden"&&s.jsx(zl,{vertical:!0,onThumbMove:C,ratio:u.y,position:_.y}),u.x<1&&i!=="hidden"&&s.jsx(zl,{onThumbMove:z,ratio:u.x,position:_.x})]}))});Sl.displayName="ScrollArea";const rd=()=>{const e=a.useContext(_l);return a.useMemo(()=>({enable:e.enable,disable:e.disable,activate:e.activate,deactivate:e.deactivate}),[e])},nd=e=>{const{w:t="auto",h:o=50,minW:r=o,children:n}=e;return s.jsx("div",{style:{width:t,height:o,minWidth:r,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-radius-small)"},children:n})};j.Accordion=Jr,j.ActionBar=_n,j.Actionable=Ie,j.Alert=mn,j.Autocomplete=fs,j.Avatar=gs,j.Badge=vs,j.Breadcrumbs=Cs,j.Button=Me,j.Calendar=Ds,j.Card=Ls,j.Carousel=Ps,j.Checkbox=Us,j.CheckboxGroup=Bs,j.Container=vl,j.ContextMenu=Ft,j.Dismissible=rr,j.Divider=Kt,j.DropdownMenu=ke,j.FileUpload=Zs,j.Flyout=ct,j.FormControl=Co,j.Grid=Cl,j.Hidden=pt,j.HiddenInput=no,j.HiddenVisually=ko,j.Hotkey=Rs,j.Icon=he,j.Image=cr,j.Link=ur,j.Loader=or,j.MenuItem=nr,j.Modal=Er,j.NumberField=ai,j.Overlay=kr,j.Pagination=ui,j.PinField=fi,j.Placeholder=nd,j.Popover=dt,j.Progress=gi,j.ProgressIndicator=bi,j.Radio=pi,j.RadioGroup=Os,j.Reshaped=ml,j.Resizable=en,j.Scrim=vi,j.ScrollArea=Sl,j.Select=io,j.Skeleton=Si,j.Slider=ji,j.Stepper=Pi,j.Switch=Ai,j.Table=Ht,j.Tabs=Do,j.Text=se,j.TextArea=Zi,j.TextField=No,j.Theme=Pt,j.Timeline=Ri,j.ToastProvider=Kr,j.ToggleButton=dl,j.ToggleButtonGroup=al,j.Tooltip=ul,j.TrapFocus=Dt,j.View=q,j.classNames=A,j.responsivePropDependency=ce,j.useFormControl=Ze,j.useHandlerRef=Se,j.useHotkeys=Ke,j.useIsomorphicLayoutEffect=be,j.useKeyboardArrowNavigation=Ur,j.useKeyboardMode=rd,j.useOnClickOutside=vn,j.useRTL=at,j.useResponsiveClientValue=ei,j.useScrollLock=Nr,j.useTheme=Dn,j.useToast=ol,j.useToggle=kt,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})}));
|