@fluidattacks/design 3.7.11 → 3.7.12-pr-01
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/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.d.ts +6 -0
- package/dist/components/inputs/fields/combobox/field/index.js +1 -0
- package/dist/components/inputs/fields/combobox/index.d.ts +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/combobox/types.d.ts +2 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/options-selector/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/styles.d.ts +2 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-B3dbWAOX.js → components-BZYBxxf4.js} +274 -268
- package/dist/{components-Cw3orcUd.mjs → components-D8xs8uyF.mjs} +1386 -1268
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-DLN39j-L.mjs → vendor-DnQeSF2D.mjs} +13446 -13446
- package/dist/{vendor-DNbqU5jS.js → vendor-W2AXDx_l.js} +3 -3
- package/package.json +1 -1
|
@@ -91,7 +91,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
91
91
|
* @copyright ReactTooltip Team
|
|
92
92
|
* @license MIT
|
|
93
93
|
*/const JI="react-tooltip-core-styles",XI="react-tooltip-base-styles",N3={core:!1,base:!1};function j3({css:e,id:t=XI,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||N3[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:process.env)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=JI),r||(r={});const{insertAt:a}=r;if(document.getElementById(t))return;const u=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",a==="top"&&u.firstChild?u.insertBefore(c,u.firstChild):u.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),N3[n]=!0}const K3=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[fC(Number(i)),hC({fallbackAxisSideDirection:"start"}),jI({padding:5})],border:u})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=a;return n?(c.push(KI({element:n,padding:5})),by(e,t,{placement:r,strategy:o,middleware:c}).then(({x:d,y:f,placement:h,middlewareData:m})=>{var g,v;const $={left:`${d}px`,top:`${f}px`,border:u},{x:C,y:x}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},y=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[h.split("-")[0]])!==null&&v!==void 0?v:"bottom",D=u&&{borderBottom:u,borderRight:u};let P=0;if(u){const E=`${u}`.match(/(\d+)px/);P=E!=null&&E[1]?Number(E[1]):1}return{tooltipStyles:$,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",...D,[y]:`-${4+P}px`},place:h}})):by(e,t,{placement:"bottom",strategy:o,middleware:c}).then(({x:d,y:f,placement:h})=>({tooltipStyles:{left:`${d}px`,top:`${f}px`},tooltipArrowStyles:{},place:h}))},U3=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),z3=(e,t,n)=>{let r=null;const i=function(...o){const a=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(a,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},W3=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",xy=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>xy(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!W3(e)||!W3(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>xy(e[i],t[i]))},QI=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},H3=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(QI(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},eL=typeof window<"u"?b.useLayoutEffect:b.useEffect,qr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},tL="DEFAULT_TOOLTIP_ID",nL={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},rL=b.createContext({getTooltipData:()=>nL});function gC(e=tL){return b.useContext(rL).getTooltipData(e)}var zs={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Hm={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const iL=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:u="top",offset:c=10,events:d=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:m,wrapper:g,delayShow:v=0,delayHide:$=0,float:C=!1,hidden:x=!1,noArrow:y=!1,clickable:D=!1,closeOnEsc:P=!1,closeOnScroll:E=!1,closeOnResize:T=!1,openEvents:k,closeEvents:S,globalCloseEvents:U,imperativeModeOnly:O,style:F,position:G,afterShow:K,afterHide:W,disableTooltip:j,content:L,contentWrapperRef:_,isOpen:M,defaultIsOpen:Y=!1,setIsOpen:V,activeAnchor:z,setActiveAnchor:re,border:oe,opacity:fe,arrowColor:ie,role:Ee="tooltip"})=>{var $e;const ne=b.useRef(null),ye=b.useRef(null),xe=b.useRef(null),he=b.useRef(null),le=b.useRef(null),[Fe,et]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:u}),[dt,Dn]=b.useState(!1),[yt,q]=b.useState(!1),[Z,te]=b.useState(null),pe=b.useRef(!1),Ce=b.useRef(null),{anchorRefs:De,setActiveAnchor:_e}=gC(t),Ve=b.useRef(!1),[mt,ut]=b.useState([]),Rt=b.useRef(!1),Pn=f||d.includes("click"),_n=Pn||(k==null?void 0:k.click)||(k==null?void 0:k.dblclick)||(k==null?void 0:k.mousedown),Yt=k?{...k}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!k&&Pn&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Ln=S?{...S}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!S&&Pn&&Object.assign(Ln,{mouseleave:!1,blur:!1,mouseout:!1});const tn=U?{...U}:{escape:P||!1,scroll:E||!1,resize:T||!1,clickOutsideAnchor:_n||!1};O&&(Object.assign(Yt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ln,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(tn,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),eL(()=>(Rt.current=!0,()=>{Rt.current=!1}),[]);const vt=Te=>{Rt.current&&(Te&&q(!0),setTimeout(()=>{Rt.current&&(V==null||V(Te),M===void 0&&Dn(Te))},10))};b.useEffect(()=>{if(M===void 0)return()=>null;M&&q(!0);const Te=setTimeout(()=>{Dn(M)},10);return()=>{clearTimeout(Te)}},[M]),b.useEffect(()=>{if(dt!==pe.current)if(qr(le),pe.current=dt,dt)K==null||K();else{const Te=(je=>{const Ye=je.match(/^([\d.]+)(ms|s)$/);if(!Ye)return 0;const[,Ft,rn]=Ye;return Number(Ft)*(rn==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));le.current=setTimeout(()=>{q(!1),te(null),W==null||W()},Te+25)}},[dt]);const Vn=Te=>{et(je=>xy(je,Te)?je:Te)},Cr=(Te=v)=>{qr(xe),yt?vt(!0):xe.current=setTimeout(()=>{vt(!0)},Te)},Rn=(Te=$)=>{qr(he),he.current=setTimeout(()=>{Ve.current||vt(!1)},Te)},er=Te=>{var je;if(!Te)return;const Ye=(je=Te.currentTarget)!==null&&je!==void 0?je:Te.target;if(!(Ye!=null&&Ye.isConnected))return re(null),void _e({current:null});v?Cr():vt(!0),re(Ye),_e({current:Ye}),qr(he)},On=()=>{D?Rn($||100):$?Rn():vt(!1),qr(xe)},tr=({x:Te,y:je})=>{var Ye;const Ft={getBoundingClientRect:()=>({x:Te,y:je,width:0,height:0,top:je,left:Te,right:Te,bottom:je})};K3({place:(Ye=Z==null?void 0:Z.place)!==null&&Ye!==void 0?Ye:u,offset:c,elementReference:Ft,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:m,border:oe}).then(rn=>{Vn(rn)})},Nn=Te=>{if(!Te)return;const je=Te,Ye={x:je.clientX,y:je.clientY};tr(Ye),Ce.current=Ye},En=Te=>{var je;if(!dt)return;const Ye=Te.target;Ye.isConnected&&(!((je=ne.current)===null||je===void 0)&&je.contains(Ye)||[document.querySelector(`[id='${o}']`),...mt].some(Ft=>Ft==null?void 0:Ft.contains(Ye))||(vt(!1),qr(xe)))},Ir=z3(er,50),Vt=z3(On,50),Cn=Te=>{Vt.cancel(),Ir(Te)},Ne=()=>{Ir.cancel(),Vt()},tt=b.useCallback(()=>{var Te,je;const Ye=(Te=Z==null?void 0:Z.position)!==null&&Te!==void 0?Te:G;Ye?tr(Ye):C?Ce.current&&tr(Ce.current):z!=null&&z.isConnected&&K3({place:(je=Z==null?void 0:Z.place)!==null&&je!==void 0?je:u,offset:c,elementReference:z,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:m,border:oe}).then(Ft=>{Rt.current&&Vn(Ft)})},[dt,z,L,F,u,Z==null?void 0:Z.place,c,h,G,Z==null?void 0:Z.position,C]);b.useEffect(()=>{var Te,je;const Ye=new Set(De);mt.forEach(gt=>{j!=null&&j(gt)||Ye.add({current:gt})});const Ft=document.querySelector(`[id='${o}']`);Ft&&!(j!=null&&j(Ft))&&Ye.add({current:Ft});const rn=()=>{vt(!1)},jn=H3(z),Kt=H3(ne.current);tn.scroll&&(window.addEventListener("scroll",rn),jn==null||jn.addEventListener("scroll",rn),Kt==null||Kt.addEventListener("scroll",rn));let an=null;tn.resize?window.addEventListener("resize",rn):z&&ne.current&&(an=dC(z,ne.current,tt,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const kt=gt=>{gt.key==="Escape"&&vt(!1)};tn.escape&&window.addEventListener("keydown",kt),tn.clickOutsideAnchor&&window.addEventListener("click",En);const wt=[],li=gt=>{dt&&(gt==null?void 0:gt.target)===z||er(gt)},ba=gt=>{dt&&(gt==null?void 0:gt.target)===z&&On()},hr=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Oo=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Cn}):Oo.includes(gt)&&wt.push({event:gt,listener:li}))}),Object.entries(Ln).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Ne}):Oo.includes(gt)&&wt.push({event:gt,listener:ba}))}),C&&wt.push({event:"pointermove",listener:Nn});const Mo=()=>{Ve.current=!0},Fo=()=>{Ve.current=!1,On()};return D&&!_n&&((Te=ne.current)===null||Te===void 0||Te.addEventListener("mouseenter",Mo),(je=ne.current)===null||je===void 0||je.addEventListener("mouseleave",Fo)),wt.forEach(({event:gt,listener:nr})=>{Ye.forEach(pr=>{var Kn;(Kn=pr.current)===null||Kn===void 0||Kn.addEventListener(gt,nr)})}),()=>{var gt,nr;tn.scroll&&(window.removeEventListener("scroll",rn),jn==null||jn.removeEventListener("scroll",rn),Kt==null||Kt.removeEventListener("scroll",rn)),tn.resize?window.removeEventListener("resize",rn):an==null||an(),tn.clickOutsideAnchor&&window.removeEventListener("click",En),tn.escape&&window.removeEventListener("keydown",kt),D&&!_n&&((gt=ne.current)===null||gt===void 0||gt.removeEventListener("mouseenter",Mo),(nr=ne.current)===null||nr===void 0||nr.removeEventListener("mouseleave",Fo)),wt.forEach(({event:pr,listener:Kn})=>{Ye.forEach(ko=>{var Lr;(Lr=ko.current)===null||Lr===void 0||Lr.removeEventListener(pr,Kn)})})}},[z,tt,yt,De,mt,k,S,U,Pn,v,$]),b.useEffect(()=>{var Te,je;let Ye=(je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a)!==null&&je!==void 0?je:"";!Ye&&t&&(Ye=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Ft=new MutationObserver(rn=>{const jn=[],Kt=[];rn.forEach(an=>{if(an.type==="attributes"&&an.attributeName==="data-tooltip-id"&&(an.target.getAttribute("data-tooltip-id")===t?jn.push(an.target):an.oldValue===t&&Kt.push(an.target)),an.type==="childList"){if(z){const kt=[...an.removedNodes].filter(wt=>wt.nodeType===1);if(Ye)try{Kt.push(...kt.filter(wt=>wt.matches(Ye))),Kt.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}kt.some(wt=>{var li;return!!(!((li=wt==null?void 0:wt.contains)===null||li===void 0)&&li.call(wt,z))&&(q(!1),vt(!1),re(null),qr(xe),qr(he),!0)})}if(Ye)try{const kt=[...an.addedNodes].filter(wt=>wt.nodeType===1);jn.push(...kt.filter(wt=>wt.matches(Ye))),jn.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}}}),(jn.length||Kt.length)&&ut(an=>[...an.filter(kt=>!Kt.includes(kt)),...jn])});return Ft.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ft.disconnect()}},[t,a,Z==null?void 0:Z.anchorSelect,z]),b.useEffect(()=>{tt()},[tt]),b.useEffect(()=>{if(!(_!=null&&_.current))return()=>null;const Te=new ResizeObserver(()=>{setTimeout(()=>tt())});return Te.observe(_.current),()=>{Te.disconnect()}},[L,_==null?void 0:_.current]),b.useEffect(()=>{var Te;const je=document.querySelector(`[id='${o}']`),Ye=[...mt,je];z&&Ye.includes(z)||re((Te=mt[0])!==null&&Te!==void 0?Te:je)},[o,mt,z]),b.useEffect(()=>(Y&&vt(!0),()=>{qr(xe),qr(he)}),[]),b.useEffect(()=>{var Te;let je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a;if(!je&&t&&(je=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),je)try{const Ye=Array.from(document.querySelectorAll(je));ut(Ye)}catch{ut([])}},[t,a,Z==null?void 0:Z.anchorSelect]),b.useEffect(()=>{xe.current&&(qr(xe),Cr(v))},[v]);const nn=($e=Z==null?void 0:Z.content)!==null&&$e!==void 0?$e:L,fr=dt&&Object.keys(Fe.tooltipStyles).length>0;return b.useImperativeHandle(e,()=>({open:Te=>{if(Te!=null&&Te.anchorSelect)try{document.querySelector(Te.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${Te.anchorSelect}" is not a valid CSS selector`)}te(Te??null),Te!=null&&Te.delay?Cr(Te.delay):vt(!0)},close:Te=>{Te!=null&&Te.delay?Rn(Te.delay):vt(!1)},activeAnchor:z,place:Fe.place,isOpen:!!(yt&&!x&&nn&&fr)})),yt&&!x&&nn?b.createElement(g,{id:t,role:Ee,className:$y("react-tooltip",zs.tooltip,Hm.tooltip,Hm[i],n,`react-tooltip__place-${Fe.place}`,zs[fr?"show":"closing"],fr?"react-tooltip__show":"react-tooltip__closing",h==="fixed"&&zs.fixed,D&&zs.clickable),onTransitionEnd:Te=>{qr(le),dt||Te.propertyName!=="opacity"||(q(!1),te(null),W==null||W())},style:{...F,...Fe.tooltipStyles,opacity:fe!==void 0&&fr?fe:void 0},ref:ne},nn,b.createElement(g,{className:$y("react-tooltip-arrow",zs.arrow,Hm.arrow,r,y&&zs.noArrow),style:{...Fe.tooltipArrowStyles,background:ie?`linear-gradient(to right bottom, transparent 50%, ${ie} 50%)`:void 0},ref:ye})):null},oL=({content:e})=>b.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),aL=b.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:u,variant:c="dark",place:d="top",offset:f=10,wrapper:h="div",children:m=null,events:g=["hover"],openOnClick:v=!1,positionStrategy:$="absolute",middlewares:C,delayShow:x=0,delayHide:y=0,float:D=!1,hidden:P=!1,noArrow:E=!1,clickable:T=!1,closeOnEsc:k=!1,closeOnScroll:S=!1,closeOnResize:U=!1,openEvents:O,closeEvents:F,globalCloseEvents:G,imperativeModeOnly:K=!1,style:W,position:j,isOpen:L,defaultIsOpen:_=!1,disableStyleInjection:M=!1,border:Y,opacity:V,arrowColor:z,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,role:Ee="tooltip"},$e)=>{const[ne,ye]=b.useState(r),[xe,he]=b.useState(i),[le,Fe]=b.useState(d),[et,dt]=b.useState(c),[Dn,yt]=b.useState(f),[q,Z]=b.useState(x),[te,pe]=b.useState(y),[Ce,De]=b.useState(D),[_e,Ve]=b.useState(P),[mt,ut]=b.useState(h),[Rt,Pn]=b.useState(g),[_n,Yt]=b.useState($),[Ln,tn]=b.useState(null),[vt,Vn]=b.useState(null),Cr=b.useRef(M),{anchorRefs:Rn,activeAnchor:er}=gC(e),On=Vt=>Vt==null?void 0:Vt.getAttributeNames().reduce((Cn,Ne)=>{var tt;return Ne.startsWith("data-tooltip-")&&(Cn[Ne.replace(/^data-tooltip-/,"")]=(tt=Vt==null?void 0:Vt.getAttribute(Ne))!==null&&tt!==void 0?tt:null),Cn},{}),tr=Vt=>{const Cn={place:Ne=>{var tt;Fe((tt=Ne)!==null&&tt!==void 0?tt:d)},content:Ne=>{ye(Ne??r)},html:Ne=>{he(Ne??i)},variant:Ne=>{var tt;dt((tt=Ne)!==null&&tt!==void 0?tt:c)},offset:Ne=>{yt(Ne===null?f:Number(Ne))},wrapper:Ne=>{var tt;ut((tt=Ne)!==null&&tt!==void 0?tt:h)},events:Ne=>{const tt=Ne==null?void 0:Ne.split(" ");Pn(tt??g)},"position-strategy":Ne=>{var tt;Yt((tt=Ne)!==null&&tt!==void 0?tt:$)},"delay-show":Ne=>{Z(Ne===null?x:Number(Ne))},"delay-hide":Ne=>{pe(Ne===null?y:Number(Ne))},float:Ne=>{De(Ne===null?D:Ne==="true")},hidden:Ne=>{Ve(Ne===null?P:Ne==="true")},"class-name":Ne=>{tn(Ne)}};Object.values(Cn).forEach(Ne=>Ne(null)),Object.entries(Vt).forEach(([Ne,tt])=>{var nn;(nn=Cn[Ne])===null||nn===void 0||nn.call(Cn,tt)})};b.useEffect(()=>{ye(r)},[r]),b.useEffect(()=>{he(i)},[i]),b.useEffect(()=>{Fe(d)},[d]),b.useEffect(()=>{dt(c)},[c]),b.useEffect(()=>{yt(f)},[f]),b.useEffect(()=>{Z(x)},[x]),b.useEffect(()=>{pe(y)},[y]),b.useEffect(()=>{De(D)},[D]),b.useEffect(()=>{Ve(P)},[P]),b.useEffect(()=>{Yt($)},[$]),b.useEffect(()=>{Cr.current!==M&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[M]),b.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:M==="core",disableBase:M}}))},[]),b.useEffect(()=>{var Vt;const Cn=new Set(Rn);let Ne=n;if(!Ne&&e&&(Ne=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Ne)try{document.querySelectorAll(Ne).forEach(je=>{Cn.add({current:je})})}catch{console.warn(`[react-tooltip] "${Ne}" is not a valid CSS selector`)}const tt=document.querySelector(`[id='${t}']`);if(tt&&Cn.add({current:tt}),!Cn.size)return()=>null;const nn=(Vt=vt??tt)!==null&&Vt!==void 0?Vt:er.current,fr=new MutationObserver(je=>{je.forEach(Ye=>{var Ft;if(!nn||Ye.type!=="attributes"||!(!((Ft=Ye.attributeName)===null||Ft===void 0)&&Ft.startsWith("data-tooltip-")))return;const rn=On(nn);tr(rn)})}),Te={attributes:!0,childList:!1,subtree:!1};if(nn){const je=On(nn);tr(je),fr.observe(nn,Te)}return()=>{fr.disconnect()}},[Rn,er,vt,t,n]),b.useEffect(()=>{W!=null&&W.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),Y&&!U3("border",`${Y}`)&&console.warn(`[react-tooltip] "${Y}" is not a valid \`border\`.`),W!=null&&W.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),V&&!U3("opacity",`${V}`)&&console.warn(`[react-tooltip] "${V}" is not a valid \`opacity\`.`)},[]);let Nn=m;const En=b.useRef(null);if(o){const Vt=o({content:(vt==null?void 0:vt.getAttribute("data-tooltip-content"))||ne||null,activeAnchor:vt});Nn=Vt?b.createElement("div",{ref:En,className:"react-tooltip-content-wrapper"},Vt):null}else ne&&(Nn=ne);xe&&(Nn=b.createElement(oL,{content:xe}));const Ir={forwardRef:$e,id:e,anchorId:t,anchorSelect:n,className:$y(a,Ln),classNameArrow:u,content:Nn,contentWrapperRef:En,place:le,variant:et,offset:Dn,wrapper:mt,events:Rt,openOnClick:v,positionStrategy:_n,middlewares:C,delayShow:q,delayHide:te,float:Ce,hidden:_e,noArrow:E,clickable:T,closeOnEsc:k,closeOnScroll:S,closeOnResize:U,openEvents:O,closeEvents:F,globalCloseEvents:G,imperativeModeOnly:K,style:W,position:j,isOpen:L,defaultIsOpen:_,border:Y,opacity:V,arrowColor:z,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,activeAnchor:vt,setActiveAnchor:Vt=>Vn(Vt),role:Ee};return b.createElement(iL,{...Ir})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||j3({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||j3({css:`
|
|
94
|
-
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const zt=typeof document<"u"?b.useLayoutEffect:()=>{};function wn(e){const t=b.useRef(null);return zt(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function sL(e){let[t,n]=b.useState(e),r=b.useRef(null),i=wn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});zt(()=>{r.current&&i()});let o=wn(a=>{r.current=a(t),i()});return[t,o]}const Zf={prefix:String(Math.round(Math.random()*1e10)),current:0},yC=b.createContext(Zf),uL=b.createContext(!1);let lL=!!(typeof window<"u"&&window.document&&window.document.createElement),Gm=new WeakMap;function cL(e=!1){let t=b.useContext(yC),n=b.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Gm.get(o);a==null?Gm.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Gm.delete(o))}n.current=++t.current}return n.current}function dL(e){let t=b.useContext(yC);t===Zf&&!lL&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=cL(!!e),r=t===Zf&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function fL(e){let t=b.useId(),[n]=b.useState(nb()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Zf.prefix}`;return e||`${r}-${t}`}const hL=typeof b.useId=="function"?fL:dL;function pL(){return!1}function mL(){return!0}function gL(e){return()=>{}}function nb(){return typeof b.useSyncExternalStore=="function"?b.useSyncExternalStore(gL,pL,mL):b.useContext(uL)}let yL=!!(typeof window<"u"&&window.document&&window.document.createElement),Xo=new Map;function Mr(e){let[t,n]=b.useState(e),r=b.useRef(null),i=hL(t),o=b.useCallback(a=>{r.current=a},[]);return yL&&(Xo.has(i)&&!Xo.get(i).includes(o)?Xo.set(i,[...Xo.get(i),o]):Xo.set(i,[o])),zt(()=>{let a=i;return()=>{Xo.delete(a)}},[i]),b.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function vL(e,t){if(e===t)return e;let n=Xo.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Xo.get(t);return r?(r.forEach(i=>i(e)),e):t}function Cu(e=[]){let t=Mr(),[n,r]=sL(t),i=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return zt(i,[t,i,...e]),n}function as(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Lt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},fa=e=>e&&"window"in e&&e.window===e?e:Lt(e).defaultView||window;function vC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=vC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bL(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=vC(e))&&(r&&(r+=" "),r+=t);return r}function xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=as(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=bL(o,a):i==="id"&&o&&a?t.id=vL(o,a):t[i]=a!==void 0?a:o}}return t}const $L=new Set(["id"]),xL=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),wL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),DL=/^(data-.*)$/;function Po(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&($L.has(a)||n&&xL.has(a)||r&&wL.has(a)||i!=null&&i.has(a)||DL.test(a))&&(o[a]=e[a]);return o}function vi(e){if(EL())e.focus({preventScroll:!0});else{let t=CL(e);e.focus(),SL(t)}}let nf=null;function EL(){if(nf==null){nf=!1;try{document.createElement("div").focus({get preventScroll(){return nf=!0,!0}})}catch{}}return nf}function CL(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function SL(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Hh(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function rb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function _o(e){let t=null;return()=>(t==null&&(t=e()),t)}const Co=_o(function(){return rb(/^Mac/i)}),TL=_o(function(){return rb(/^iPhone/i)}),bC=_o(function(){return rb(/^iPad/i)||Co()&&navigator.maxTouchPoints>1}),Mc=_o(function(){return TL()||bC()}),Pf=_o(function(){return Co()||Mc()}),ib=_o(function(){return Hh(/AppleWebKit/i)&&!AL()}),AL=_o(function(){return Hh(/Chrome/i)}),$C=_o(function(){return Hh(/Android/i)}),PL=_o(function(){return Hh(/Firefox/i)}),_L=b.createContext({isNative:!0,open:OL,useHref:e=>e});function Gh(){return b.useContext(_L)}function ss(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}=t;PL()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Co()?o=!0:a=!0);let d=ib()&&Co()&&!bC()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c,bubbles:!0,cancelable:!0});ss.isOpening=n,vi(e),e.dispatchEvent(d),ss.isOpening=!1}ss.isOpening=!1;function RL(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function OL(e,t){RL(e,n=>ss(n,t))}function ML(e){let t=Gh();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Zs=new Map,wy=new Set;function G3(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Zs.get(r.target);i||(i=new Set,Zs.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Zs.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Zs.delete(r.target)),Zs.size===0)){for(let o of wy)o();wy.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?G3():document.addEventListener("DOMContentLoaded",G3));function xC(e){requestAnimationFrame(()=>{Zs.size===0?e():wy.add(e)})}function Uu(){let e=b.useRef(new Map),t=b.useCallback((i,o,a,u)=>{let c=u!=null&&u.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:u}),i.addEventListener(o,a,u)},[]),n=b.useCallback((i,o,a,u)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;i.removeEventListener(o,d,u),e.current.delete(a)},[]),r=b.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return b.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Su(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Mr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function q3(e,t){const n=b.useRef(!0),r=b.useRef(null);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function FL(){return typeof window.ResizeObserver<"u"}function Y3(e){const{ref:t,box:n,onResize:r}=e;b.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(FL()){const o=new window.ResizeObserver(a=>{a.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function wC(e,t){zt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function dc(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function qh(e,t){let n=e;for(dc(n,t)&&(n=n.parentElement);n&&!dc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function kL(e,t){const n=[];for(;e&&e!==document.documentElement;)dc(e,t)&&n.push(e),e=e.parentElement;return n}let BL=0;const qm=new Map;function Fc(e){let[t,n]=b.useState();return zt(()=>{if(!e)return;let r=qm.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${BL++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},qm.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),qm.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function sa(e,t,n,r){let i=wn(n),o=n==null;b.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function DC(e,t){let n=Z3(e,t,"left"),r=Z3(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d}=getComputedStyle(e),f=e.scrollLeft+parseInt(d,10),h=e.scrollTop+parseInt(c,10),m=f+e.clientWidth,g=h+e.clientHeight;n<=a?a=n-parseInt(d,10):n+i>m&&(a+=n+i-m),r<=h?u=r-parseInt(c,10):r+o>g&&(u+=r+o-g),e.scrollLeft=a,e.scrollTop=u}function Z3(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function Jf(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let c=kL(e);for(let d of c)DC(d,e)}else{var n;let{left:c,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:h}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-h)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function Dy(e){return e.mozInputSource===0&&e.isTrusted?!0:$C()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function IL(e){return!$C()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function EC(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ob(e,t,n){let r=b.useRef(t),i=wn(()=>{n&&n(r.current)});b.useEffect(()=>{var o;let a=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}function Fr(e,t,n){let[r,i]=b.useState(e||t),o=b.useRef(e!==void 0),a=e!==void 0;b.useEffect(()=>{let d=o.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let u=a?e:r,c=b.useCallback((d,...f)=>{let h=(m,...g)=>{n&&(Object.is(u,m)||n(m,...g)),a||(u=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...v)=>{let $=d(a?u:g,...v);return h($,...f),a?g:$})):(a||i(d),h(d,...f))},[a,u,n]);return[u,c]}function Tu(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function rf(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let a=Math.pow(10,o);n=Math.round(n*a)/a}return n}function Sl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=rf(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(rf(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(rf((n-t)/r,r))*r),o=rf(o,r),o}let Qs="default",Ey="",_f=new WeakMap;function Cy(e){if(Mc()){if(Qs==="default"){const t=Lt(e);Ey=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Qs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(_f.set(e,e.style.userSelect),e.style.userSelect="none")}function Kl(e){if(Mc()){if(Qs!=="disabled")return;Qs="restoring",setTimeout(()=>{xC(()=>{if(Qs==="restoring"){const t=Lt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ey||""),Ey="",Qs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&_f.has(e)){let t=_f.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),_f.delete(e)}}const ab=b.createContext({register:()=>{}});ab.displayName="PressResponderContext";function LL(e,t){return t.get?t.get.call(e):t.value}function CC(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function VL(e,t){var n=CC(e,t,"get");return LL(e,n)}function NL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function kc(e,t,n){NL(e,t),t.set(e,n)}function jL(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function J3(e,t,n){var r=CC(e,t,"set");return jL(e,r,n),n}function KL(e){let t=b.useContext(ab);if(t){let{register:n,...r}=t;e=xt(r,e),n()}return wC(t,e.ref),e}var of=new WeakMap;class af{continuePropagation(){J3(this,of,!1)}get shouldStopPropagation(){return VL(this,of)}constructor(t,n,r,i){kc(this,of,{writable:!0,value:void 0}),J3(this,of,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=a==null?void 0:a.getBoundingClientRect();let c,d=0,f,h=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,h=r.clientY),u&&(f!=null&&h!=null?(c=f-u.left,d=h-u.top):(c=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=c,this.y=d}}const X3=Symbol("linkClicked");function Bc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...m}=KL(e),[g,v]=b.useState(!1),$=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:x}=Uu(),y=wn((S,U)=>{let O=$.current;if(a||O.didFirePressStart)return!1;let F=!0;if(O.isTriggeringEvent=!0,r){let G=new af("pressstart",U,S);r(G),F=G.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,v(!0),F}),D=wn((S,U,O=!0)=>{let F=$.current;if(!F.didFirePressStart)return!1;F.ignoreClickAfterPress=!0,F.didFirePressStart=!1,F.isTriggeringEvent=!0;let G=!0;if(i){let K=new af("pressend",U,S);i(K),G=K.shouldStopPropagation}if(n&&n(!1),v(!1),t&&O&&!a){let K=new af("press",U,S);t(K),G&&(G=K.shouldStopPropagation)}return F.isTriggeringEvent=!1,G}),P=wn((S,U)=>{let O=$.current;if(a)return!1;if(o){O.isTriggeringEvent=!0;let F=new af("pressup",U,S);return o(F),O.isTriggeringEvent=!1,F.shouldStopPropagation}return!0}),E=wn(S=>{let U=$.current;U.isPressed&&U.target&&(U.isOverTarget&&U.pointerType!=null&&D(fo(U.target,S),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,x(),f||Kl(U.target))}),T=wn(S=>{d&&E(S)}),k=b.useMemo(()=>{let S=$.current,U={onKeyDown(F){if(Ym(F.nativeEvent,F.currentTarget)&&F.currentTarget.contains(F.target)){var G;e$(F.target,F.key)&&F.preventDefault();let K=!0;if(!S.isPressed&&!F.repeat){S.target=F.currentTarget,S.isPressed=!0,K=y(F,"keyboard");let W=F.currentTarget,j=L=>{Ym(L,W)&&!L.repeat&&W.contains(L.target)&&S.target&&P(fo(S.target,L),"keyboard")};C(Lt(F.currentTarget),"keyup",as(j,O),!0)}K&&F.stopPropagation(),F.metaKey&&Co()&&((G=S.metaKeyEvents)===null||G===void 0||G.set(F.key,F.nativeEvent))}else F.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(F){if(!(F&&!F.currentTarget.contains(F.target))&&F&&F.button===0&&!S.isTriggeringEvent&&!ss.isOpening){let G=!0;if(a&&F.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Dy(F.nativeEvent))){!a&&!c&&vi(F.currentTarget);let K=y(F,"virtual"),W=P(F,"virtual"),j=D(F,"virtual");G=K&&W&&j}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,G&&F.stopPropagation()}}},O=F=>{var G;if(S.isPressed&&S.target&&Ym(F,S.target)){var K;e$(F.target,F.key)&&F.preventDefault();let j=F.target;D(fo(S.target,F),"keyboard",S.target.contains(j)),x(),F.key!=="Enter"&&sb(S.target)&&S.target.contains(j)&&!F[X3]&&(F[X3]=!0,ss(S.target,F,!1)),S.isPressed=!1,(K=S.metaKeyEvents)===null||K===void 0||K.delete(F.key)}else if(F.key==="Meta"&&(!((G=S.metaKeyEvents)===null||G===void 0)&&G.size)){var W;let j=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let L of j.values())(W=S.target)===null||W===void 0||W.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){U.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(IL(j.nativeEvent)){S.pointerType="virtual";return}Zm(j.currentTarget)&&j.preventDefault(),S.pointerType=j.pointerType;let L=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=j.pointerId,S.target=j.currentTarget,!a&&!c&&vi(j.currentTarget),f||Cy(S.target),L=y(j,S.pointerType),C(Lt(j.currentTarget),"pointermove",F,!1),C(Lt(j.currentTarget),"pointerup",G,!1),C(Lt(j.currentTarget),"pointercancel",W,!1)),L&&j.stopPropagation()},U.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Zm(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},U.onPointerUp=j=>{!j.currentTarget.contains(j.target)||S.pointerType==="virtual"||j.button===0&&Ws(j,j.currentTarget)&&P(j,S.pointerType||j.pointerType)};let F=j=>{j.pointerId===S.activePointerId&&(S.target&&Ws(j,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,y(fo(S.target,j),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(fo(S.target,j),S.pointerType,!1),T(j)))},G=j=>{j.pointerId===S.activePointerId&&S.isPressed&&j.button===0&&S.target&&(Ws(j,S.target)&&S.pointerType!=null?D(fo(S.target,j),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(fo(S.target,j),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,x(),f||Kl(S.target),"ontouchend"in S.target&&j.pointerType!=="mouse"&&C(S.target,"touchend",K,{once:!0}))},K=j=>{SC(j.currentTarget)&&j.preventDefault()},W=j=>{E(j)};U.onDragStart=j=>{j.currentTarget.contains(j.target)&&E(j)}}else{U.onMouseDown=K=>{if(K.button!==0||!K.currentTarget.contains(K.target))return;if(Zm(K.currentTarget)&&K.preventDefault(),S.ignoreEmulatedMouseEvents){K.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=K.currentTarget,S.pointerType=Dy(K.nativeEvent)?"virtual":"mouse",!a&&!c&&vi(K.currentTarget),y(K,S.pointerType)&&K.stopPropagation(),C(Lt(K.currentTarget),"mouseup",F,!1)},U.onMouseEnter=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,W=y(K,S.pointerType)),W&&K.stopPropagation()},U.onMouseLeave=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,W=D(K,S.pointerType,!1),T(K)),W&&K.stopPropagation()},U.onMouseUp=K=>{K.currentTarget.contains(K.target)&&!S.ignoreEmulatedMouseEvents&&K.button===0&&P(K,S.pointerType||"mouse")};let F=K=>{if(K.button===0){if(S.isPressed=!1,x(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&Ws(K,S.target)&&S.pointerType!=null?D(fo(S.target,K),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(fo(S.target,K),S.pointerType,!1),S.isOverTarget=!1}};U.onTouchStart=K=>{if(!K.currentTarget.contains(K.target))return;let W=UL(K.nativeEvent);if(!W)return;S.activePointerId=W.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=K.currentTarget,S.pointerType="touch",!a&&!c&&vi(K.currentTarget),f||Cy(S.target),y(Go(S.target,K),S.pointerType)&&K.stopPropagation(),C(fa(K.currentTarget),"scroll",G,!0)},U.onTouchMove=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=Q3(K.nativeEvent,S.activePointerId),j=!0;W&&Ws(W,K.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,j=y(Go(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,j=D(Go(S.target,K),S.pointerType,!1),T(Go(S.target,K))),j&&K.stopPropagation()},U.onTouchEnd=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=Q3(K.nativeEvent,S.activePointerId),j=!0;W&&Ws(W,K.currentTarget)&&S.pointerType!=null?(P(Go(S.target,K),S.pointerType),j=D(Go(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(j=D(Go(S.target,K),S.pointerType,!1)),j&&K.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&Kl(S.target),x()},U.onTouchCancel=K=>{K.currentTarget.contains(K.target)&&(K.stopPropagation(),S.isPressed&&E(Go(S.target,K)))};let G=K=>{S.isPressed&&K.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};U.onDragStart=K=>{K.currentTarget.contains(K.target)&&E(K)}}return U},[C,a,c,x,f,E,T,D,y,P]);return b.useEffect(()=>()=>{var S;f||Kl((S=$.current.target)!==null&&S!==void 0?S:void 0)},[f]),{isPressed:u||g,pressProps:xt(m,k)}}function sb(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ym(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof fa(i).HTMLInputElement&&!TC(i,n)||i instanceof fa(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&sb(i))&&n!=="Enter")}function UL(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Q3(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Go(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function fo(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function zL(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function WL(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Ws(e,t){let n=t.getBoundingClientRect(),r=zL(e);return WL(n,r)}function Zm(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function SC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!sb(e)}function e$(e,t){return e instanceof HTMLInputElement?!TC(e,t):SC(e)}const HL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function TC(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":HL.has(e.type)}function GL({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return b.createElement(ab.Provider,{value:t},e)}class qL{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function AC(e){let t=b.useRef({isFocused:!1,observer:null});zt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=wn(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new qL("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function YL(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=b.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),i&&i(!1),!0},[r,i]),a=AC(o),u=b.useCallback(c=>{const d=Lt(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),i&&i(!0),a(c))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let hs=null,ZL=new Set,Xl=new Map,us=!1,Sy=!1;function Yh(e,t){for(let n of ZL)n(e,t)}function JL(e){return!(e.metaKey||!Co()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xf(e){us=!0,JL(e)&&(hs="keyboard",Yh("keyboard",e))}function ni(e){hs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(us=!0,Yh("pointer",e))}function PC(e){Dy(e)&&(us=!0,hs="virtual")}function _C(e){e.target===window||e.target===document||(!us&&!Sy&&(hs="virtual",Yh("virtual",e)),us=!1,Sy=!1)}function RC(){us=!1,Sy=!0}function t$(e){if(typeof window>"u"||Xl.get(fa(e)))return;const t=fa(e),n=Lt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){us=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xf,!0),n.addEventListener("keyup",Xf,!0),n.addEventListener("click",PC,!0),t.addEventListener("focus",_C,!0),t.addEventListener("blur",RC,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ni,!0),n.addEventListener("pointermove",ni,!0),n.addEventListener("pointerup",ni,!0)):(n.addEventListener("mousedown",ni,!0),n.addEventListener("mousemove",ni,!0),n.addEventListener("mouseup",ni,!0)),t.addEventListener("beforeunload",()=>{OC(e)},{once:!0}),Xl.set(t,{focus:r})}const OC=(e,t)=>{const n=fa(e),r=Lt(e);t&&r.removeEventListener("DOMContentLoaded",t),Xl.has(n)&&(n.HTMLElement.prototype.focus=Xl.get(n).focus,r.removeEventListener("keydown",Xf,!0),r.removeEventListener("keyup",Xf,!0),r.removeEventListener("click",PC,!0),n.removeEventListener("focus",_C,!0),n.removeEventListener("blur",RC,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ni,!0),r.removeEventListener("pointermove",ni,!0),r.removeEventListener("pointerup",ni,!0)):(r.removeEventListener("mousedown",ni,!0),r.removeEventListener("mousemove",ni,!0),r.removeEventListener("mouseup",ni,!0)),Xl.delete(n))};function XL(e){const t=Lt(e);let n;return t.readyState!=="loading"?t$(e):(n=()=>{t$(e)},t.addEventListener("DOMContentLoaded",n)),()=>OC(e,n)}typeof document<"u"&&XL();function n$(){return hs!=="pointer"}function Qf(){return hs}function MC(e){hs=e,Yh(e,null)}function zu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=b.useRef({isFocusWithin:!1}),a=b.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=AC(a),c=b.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}let eh=!1,Jm=0;function Ty(){eh=!0,setTimeout(()=>{eh=!1},50)}function r$(e){e.pointerType==="touch"&&Ty()}function QL(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",r$):document.addEventListener("touchend",Ty),Jm++,()=>{Jm--,!(Jm>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",r$):document.removeEventListener("touchend",Ty))}}function eV(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=b.useState(!1),u=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(QL,[]);let{hoverProps:c,triggerHoverEnd:d}=b.useMemo(()=>{let f=(g,v)=>{if(u.pointerType=v,i||v==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let $=g.currentTarget;u.target=$,t&&t({type:"hoverstart",target:$,pointerType:v}),n&&n(!0),a(!0)},h=(g,v)=>{if(u.pointerType="",u.target=null,v==="touch"||!u.isHovered)return;u.isHovered=!1;let $=g.currentTarget;r&&r({type:"hoverend",target:$,pointerType:v}),n&&n(!1),a(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{eh&&g.pointerType==="mouse"||f(g,g.pointerType)},m.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(m.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!eh&&f(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,i,u]);return b.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:c,isHovered:o}}function tV(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=wn(c=>{n&&sf(c,t)&&(i&&i(c),o.current.isPointerDown=!0)}),u=wn(c=>{n&&n(c)});b.useEffect(()=>{let c=o.current;if(r)return;const d=t.current,f=Lt(d);if(typeof PointerEvent<"u"){let h=m=>{c.isPointerDown&&sf(m,t)&&u(m),c.isPointerDown=!1};return f.addEventListener("pointerdown",a,!0),f.addEventListener("pointerup",h,!0),()=>{f.removeEventListener("pointerdown",a,!0),f.removeEventListener("pointerup",h,!0)}}else{let h=g=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&sf(g,t)&&u(g),c.isPointerDown=!1},m=g=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&sf(g,t)&&u(g),c.isPointerDown=!1};return f.addEventListener("mousedown",a,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",a,!0),f.addEventListener("touchend",m,!0),()=>{f.removeEventListener("mousedown",a,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",a,!0),f.removeEventListener("touchend",m,!0)}}},[t,r,a,u])}function sf(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function i$(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function FC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:i$(e.onKeyDown),onKeyUp:i$(e.onKeyUp)}}}function kC(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=b.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:a}=Uu(),u=wn((f,h,m,g)=>{m===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:h,deltaX:m,deltaY:g,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),c=wn((f,h)=>{Kl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:b.useMemo(()=>{let f={},h=()=>{Cy(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=x=>{if(x.button===0){var y,D,P,E;u(x,"mouse",x.pageX-((P=(y=i.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&P!==void 0?P:0),x.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},v=x=>{x.button===0&&(c(x,"mouse"),a(window,"mousemove",g,!1),a(window,"mouseup",v,!1))};f.onMouseDown=x=>{x.button===0&&(h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},o(window,"mousemove",g,!1),o(window,"mouseup",v,!1))};let $=x=>{let y=[...x.changedTouches].findIndex(({identifier:k})=>k===i.current.id);if(y>=0){var D,P;let{pageX:k,pageY:S}=x.changedTouches[y];var E,T;u(x,"touch",k-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),S-((T=(P=i.current.lastPosition)===null||P===void 0?void 0:P.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:k,pageY:S}}},C=x=>{[...x.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(c(x,"touch"),i.current.id=null,a(window,"touchmove",$),a(window,"touchend",C),a(window,"touchcancel",C))};f.onTouchStart=x=>{if(x.changedTouches.length===0||i.current.id!=null)return;let{pageX:y,pageY:D,identifier:P}=x.changedTouches[0];h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:y,pageY:D},i.current.id=P,o(window,"touchmove",$,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let g=$=>{if($.pointerId===i.current.id){var C,x;let P=$.pointerType||"mouse";var y,D;u($,P,$.pageX-((y=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&y!==void 0?y:0),$.pageY-((D=(x=i.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},v=$=>{if($.pointerId===i.current.id){let C=$.pointerType||"mouse";c($,C),i.current.id=null,a(window,"pointermove",g,!1),a(window,"pointerup",v,!1),a(window,"pointercancel",v,!1)}};f.onPointerDown=$=>{$.button===0&&i.current.id==null&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId,o(window,"pointermove",g,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1))}}let m=(g,v,$)=>{h(),u(g,"keyboard",v,$),c(g,"keyboard")};return f.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},f},[i,o,a,u,c])}}const nV=500;function BC(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=nV,accessibilityDescription:a}=e;const u=b.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=Uu(),{pressProps:f}=Bc({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),u.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...m,type:"longpress"}),u.current=void 0},o),m.pointerType==="touch")){let g=v=>{v.preventDefault()};c(m.target,"contextmenu",g,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){u.current&&clearTimeout(u.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),h=Fc(i&&!t?a:void 0);return{longPressProps:xt(f,h)}}function ls(e){const t=Lt(e);if(Qf()==="virtual"){let n=t.activeElement;xC(()=>{t.activeElement===n&&e.isConnected&&vi(e)})}else vi(e)}function rV(e){const t=fa(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:a,visibility:u}=o(e);i=a!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function iV(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function IC(e,t){return e.nodeName!=="#comment"&&rV(e)&&iV(e,t)&&(!e.parentElement||IC(e.parentElement,e))}const o$=b.createContext(null),Ay="react-aria-focus-scope-restore";let Nt=null;function oV(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=b.useRef(null),a=b.useRef(null),u=b.useRef([]),{parentNode:c}=b.useContext(o$)||{},d=b.useMemo(()=>new _y({scopeRef:u}),[u]);zt(()=>{let m=c||mn.root;if(mn.getTreeNode(m.scopeRef)&&Nt&&!th(Nt,m.scopeRef)){let g=mn.getTreeNode(Nt);g&&(m=g)}m.addChild(d),mn.addNode(d)},[d,c]),zt(()=>{let m=mn.getTreeNode(u);m&&(m.contain=!!n)},[n]),zt(()=>{var m;let g=(m=o.current)===null||m===void 0?void 0:m.nextSibling,v=[],$=C=>C.stopPropagation();for(;g&&g!==a.current;)v.push(g),g.addEventListener(Ay,$),g=g.nextSibling;return u.current=v,()=>{for(let C of v)C.removeEventListener(Ay,$)}},[t]),fV(u,r,n),lV(u,n),hV(u,r,n),dV(u,i),b.useEffect(()=>{const m=Lt(u.current?u.current[0]:void 0).activeElement;let g=null;if(ui(m,u.current)){for(let v of mn.traverse())v.scopeRef&&ui(m,v.scopeRef.current)&&(g=v);g===mn.getTreeNode(u)&&(Nt=g.scopeRef)}},[u]),zt(()=>()=>{var m,g,v;let $=(v=(g=mn.getTreeNode(u))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&v!==void 0?v:null;(u===Nt||th(u,Nt))&&(!$||mn.getTreeNode($))&&(Nt=$),mn.removeTreeNode(u)},[u]);let f=b.useMemo(()=>aV(u),[]),h=b.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return b.createElement(o$.Provider,{value:h},b.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,b.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function aV(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[0].previousElementSibling,d=Ua(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&xr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[n.length-1].nextElementSibling,d=Ua(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&xr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ua(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let u=a.nextNode();return u&&xr(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ua(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let u=a.previousNode();return u&&xr(u,!0),u}}}const ub=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],sV=ub.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ub.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const uV=ub.join(':not([hidden]):not([tabindex="-1"]),');function Ua(e){return e[0].parentElement}function Ul(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function lV(e,t){let n=b.useRef(void 0),r=b.useRef(void 0);zt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Lt(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Ul(e)||d.isComposing)return;let f=o.activeElement,h=e.current;if(!h||!ui(f,h))return;let m=Ua(h),g=wr(m,{tabbable:!0},h);if(!f)return;g.currentNode=f;let v=d.shiftKey?g.previousNode():g.nextNode();v||(g.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,v=d.shiftKey?g.previousNode():g.nextNode()),d.preventDefault(),v&&xr(v,!0)},u=d=>{(!Nt||th(Nt,e))&&ui(d.target,e.current)?(Nt=e,n.current=d.target):Ul(e)&&!na(d.target,e)?n.current?n.current.focus():Nt&&Nt.current&&Py(Nt.current):Ul(e)&&(n.current=d.target)},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.activeElement&&Ul(e)&&!na(o.activeElement,e))if(Nt=e,o.body.contains(d.target)){var f;n.current=d.target,(f=n.current)===null||f===void 0||f.focus()}else Nt.current&&Py(Nt.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),zt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function LC(e){return na(e)}function ui(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function na(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of mn.traverse(mn.getTreeNode(t)))if(n&&ui(e,n.current))return!0;return!1}function cV(e){return na(e,Nt)}function th(e,t){var n;let r=(n=mn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function xr(e,t=!1){if(e!=null&&!t)try{ls(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function VC(e,t=!0){let n=e[0].previousElementSibling,r=Ua(e),i=wr(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=Ua(e),i=wr(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function Py(e,t=!0){xr(VC(e,t))}function dV(e,t){const n=b.useRef(t);b.useEffect(()=>{if(n.current){Nt=e;const r=Lt(e.current?e.current[0]:void 0);!ui(r.activeElement,Nt.current)&&e.current&&Py(e.current)}n.current=!1},[e])}function fV(e,t,n){zt(()=>{if(t||n)return;let r=e.current;const i=Lt(r?r[0]:void 0);let o=a=>{let u=a.target;ui(u,e.current)?Nt=e:LC(u)||(Nt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,t,n])}function a$(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function hV(e,t,n){const r=b.useRef(typeof document<"u"?Lt(e.current?e.current[0]:void 0).activeElement:null);zt(()=>{let i=e.current;const o=Lt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Nt||th(Nt,e))&&ui(o.activeElement,e.current)&&(Nt=e)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1))}},[e,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Ul(e)||a.isComposing)return;let u=i.activeElement;if(!na(u,e)||!a$(e))return;let c=mn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=wr(i.body,{tabbable:!0});f.currentNode=u;let h=a.shiftKey?f.previousNode():f.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!h||!na(h,e))&&d){f.currentNode=d;do h=a.shiftKey?f.previousNode():f.nextNode();while(na(h,e));a.preventDefault(),a.stopPropagation(),h?xr(h,!0):LC(d)?xr(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=mn.getTreeNode(e);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let u=mn.getTreeNode(e);if(!u)return;let c=u.nodeToRestore;if(t&&c&&(i.activeElement&&na(i.activeElement,e)||i.activeElement===i.body&&a$(e))){let d=mn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){s$(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&mn.getTreeNode(f.scopeRef)){let h=VC(f.scopeRef.current,!0);s$(h);return}f=f.parent}}})}}}},[e,t])}function s$(e){e.dispatchEvent(new CustomEvent(Ay,{bubbles:!0,cancelable:!0}))&&xr(e)}function wr(e,t,n){let r=t!=null&&t.tabbable?uV:sV,i=Lt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&IC(o)&&(!n||ui(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Zh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});r.contains(c)&&(d.currentNode=c);let f=d.nextNode();return!f&&a&&(d.currentNode=r,f=d.nextNode()),f&&xr(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});if(r.contains(c))d.currentNode=c;else{let h=Xm(d);return h&&xr(h,!0),h??null}let f=d.previousNode();if(!f&&a){d.currentNode=r;let h=Xm(d);if(!h)return null;f=h}return f&&xr(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=wr(r,{tabbable:i,accept:o}).nextNode();return u&&xr(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,a=wr(r,{tabbable:i,accept:o}),u=Xm(a);return u&&xr(u,!0),u??null}}}function Xm(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class lb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new _y({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ui(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new lb;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _y({scopeRef:null}),this.fastMap.set(null,this.root)}}class _y{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let mn=new lb,pV=b.createContext(null);function mV(e){let t=b.useContext(pV)||{};wC(t,e);let{ref:n,...r}=t;return r}function cb(e,t){let{focusProps:n}=YL(e),{keyboardProps:r}=FC(e),i=xt(n,r),o=mV(t),a=e.isDisabled?{}:o,u=b.useRef(e.autoFocus);return b.useEffect(()=>{u.current&&t.current&&ls(t.current),u.current=!1},[t]),{focusableProps:xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const gV=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),yV=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function vV(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return gV.has(n.script)}let t=e.split("-")[0];return yV.has(t)}const bV=Symbol.for("react-aria.i18n.locale");function NC(){let e=typeof window<"u"&&window[bV]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:vV(e)?"rtl":"ltr"}}let Ry=NC(),zl=new Set;function u$(){Ry=NC();for(let e of zl)e(Ry)}function $V(){let e=nb(),[t,n]=b.useState(Ry);return b.useEffect(()=>(zl.size===0&&window.addEventListener("languagechange",u$),zl.add(n),()=>{zl.delete(n),zl.size===0&&window.removeEventListener("languagechange",u$)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const xV=b.createContext(null);function Qn(){let e=$V();return b.useContext(xV)||e}const wV=Symbol.for("react-aria.i18n.locale"),DV=Symbol.for("react-aria.i18n.strings");let Hs;class ya{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=EV(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[wV];if(Hs===void 0){let i=window[DV];if(!i)return null;Hs={};for(let o in i)Hs[o]=new ya({[n]:i[o]},n)}let r=Hs==null?void 0:Hs[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function EV(e,t,n="en-US"){if(t[e])return t[e];let r=CV(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function CV(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const l$=new Map,c$=new Map;class jC{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=l$.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),l$.set(o,a));let u=a.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=c$.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),c$.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const d$=new WeakMap;function SV(e){let t=d$.get(e);return t||(t=new ya(e),d$.set(e,t)),t}function KC(e,t){return t&&ya.getGlobalDictionaryForPackage(t)||SV(e)}function Qi(e,t){let{locale:n}=Qn(),r=KC(e,t);return b.useMemo(()=>new jC(n,r),[n,r])}function du(e,t){return e-t*Math.floor(e/t)}const UC=1721426;function za(e,t,n,r){t=Ic(e,t);let i=t-1,o=-2;return n<=2?o=0:ra(t)&&(o=-1),UC-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function ra(e){return e%4===0&&(e%100!==0||e%400===0)}function Ic(e,t){return e==="BC"?1-t:t}function Jh(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const TV={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class dr{fromJulianDay(t){let n=t,r=n-UC,i=Math.floor(r/146097),o=du(r,146097),a=Math.floor(o/36524),u=du(o,36524),c=Math.floor(u/1461),d=du(u,1461),f=Math.floor(d/365),h=i*400+a*100+c*4+f+(a!==4&&f!==4?1:0),[m,g]=Jh(h),v=n-za(m,g,1,1),$=2;n<za(m,g,3,1)?$=0:ra(g)&&($=1);let C=Math.floor(((v+$)*12+373)/367),x=n-za(m,g,C,1)+1;return new hn(m,g,C,x)}toJulianDay(t){return za(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return TV[ra(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ra(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const AV={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function xn(e,t){return t=Qt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Oy(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function zC(e,t){return xn(e,Xh(t))}const PV={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function db(e,t,n){let r=e.calendar.toJulianDay(e),i=n?PV[n]:kV(t),o=Math.ceil(r+1-i)%7;return o<0&&(o+=7),o}function WC(e){return vo(Date.now(),e)}function Xh(e){return cr(WC(e))}function HC(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function GC(e,t){return f$(e)-f$(t)}function f$(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Qm=null;function Lc(){return Qm==null&&(Qm=new Intl.DateTimeFormat().resolvedOptions().timeZone),Qm}function Vc(e){return e.subtract({days:e.day-1})}function My(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function _V(e){return Vc(e.subtract({months:e.month-1}))}function RV(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function OV(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function fc(e,t,n){let r=db(e,t,n);return e.subtract({days:r})}function MV(e,t,n){return fc(e,t,n).add({days:6})}const h$=new Map;function FV(e){if(Intl.Locale){let n=h$.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&h$.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function kV(e){let t=FV(e);return t&&AV[t]||0}function BV(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((db(Vc(e),t,n)+r)/7)}function fb(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function hb(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Au(e){e=Qt(e,new dr);let t=Ic(e.era,e.year);return qC(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function qC(e,t,n,r,i,o,a){let u=new Date;return u.setUTCHours(r,i,o,a),u.setUTCFullYear(e,t-1,n),u.getTime()}function Fy(e,t){if(t==="UTC")return 0;if(e>0&&t===Lc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:u}=YC(e,t);return qC(n,r,i,o,a,u,0)-Math.floor(e/1e3)*1e3}const p$=new Map;function YC(e,t){let n=p$.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),p$.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const m$=864e5;function IV(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>LV(e,t,o))}function LV(e,t,n){let r=YC(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function yo(e,t,n="compatible"){let r=Di(e);if(t==="UTC")return Au(r);if(t===Lc()&&n==="compatible"){r=Qt(r,new dr);let c=new Date,d=Ic(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let i=Au(r),o=Fy(i-m$,t),a=Fy(i+m$,t),u=IV(r,t,i-o,i-a);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function ZC(e,t,n="compatible"){return new Date(yo(e,t,n))}function vo(e,t){let n=Fy(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),u=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),f=r.getUTCMilliseconds();return new mc(i<1?"BC":"AD",i<1?-i+1:i,o,a,t,n,u,c,d,f)}function cr(e){return new hn(e.calendar,e.era,e.year,e.month,e.day)}function Di(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new pc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function g$(e){return new Nc(e.hour,e.minute,e.second,e.millisecond)}function Qt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,cs(r),r}function JC(e,t,n){if(e instanceof mc)return e.timeZone===t?e:NV(e,t);let r=yo(e,t,n);return vo(r,t)}function VV(e){let t=Au(e)-e.offset;return new Date(t)}function NV(e,t){let n=Au(e)-e.offset;return Qt(vo(n,t),e.calendar)}const Tl=36e5;function Qh(e,t){let n=e.copy(),r="hour"in n?tS(n,t):0;ky(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,By(n),XC(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,jV(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,a;let c=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function ky(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function By(e){for(;e.month<1;)ky(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ky(e,1)}function jV(e){for(;e.day<1;)e.month--,By(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,By(e)}function XC(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function cs(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),XC(e)}function pb(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function QC(e,t){return Qh(e,pb(t))}function mb(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),cs(n),n}function hc(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),eS(n),n}function KV(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=uf(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=uf(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=uf(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=uf(e.hour,24),t}function eS(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function uf(e,t){let n=e%t;return n<0&&(n+=t),n}function tS(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,KV(e)}function nS(e,t){let n=e.copy();return tS(n,t),n}function UV(e,t){return nS(e,pb(t))}function gb(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),c=u.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=bo(c,n,0,u.length-1,r==null?void 0:r.round),i.era=u[c],cs(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=bo(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=bo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=bo(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),cs(i),i}function yb(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,u=23;if((r==null?void 0:r.hourCycle)===12){let c=o>=12;a=c?12:0,u=c?23:11}i.hour=bo(o,n,a,u,r==null?void 0:r.round);break}case"minute":i.minute=bo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=bo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=bo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function bo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function rS(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Qh(Di(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=yo(i,e.timeZone)}else n=Au(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=vo(n,e.timeZone);return Qt(r,e.calendar)}function zV(e,t){return rS(e,pb(t))}function WV(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let v=e.hour>=12;i=v?12:0,o=v?23:11}let a=Di(e),u=Qt(hc(a,{hour:i}),new dr),c=[yo(u,e.timeZone,"earlier"),yo(u,e.timeZone,"later")].filter(v=>vo(v,e.timeZone).day===u.day)[0],d=Qt(hc(a,{hour:o}),new dr),f=[yo(d,e.timeZone,"earlier"),yo(d,e.timeZone,"later")].filter(v=>vo(v,e.timeZone).day===d.day).pop(),h=Au(e)-e.offset,m=Math.floor(h/Tl),g=h%Tl;return h=bo(m,n,Math.floor(c/Tl),Math.floor(f/Tl),r==null?void 0:r.round)*Tl+g,Qt(vo(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return yb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=gb(Di(e),t,n,r),o=yo(i,e.timeZone);return Qt(vo(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function HV(e,t,n){let r=Di(e),i=hc(mb(r,t),t);if(i.compare(r)===0)return e;let o=yo(i,e.timeZone,n);return Qt(vo(o,e.timeZone),e.calendar)}const GV=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,qV=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function YV(e){let t=e.match(GV);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new hn(Fi(t[1],0,9999),Fi(t[2],1,12),1);return n.day=Fi(t[3],0,n.calendar.getDaysInMonth(n)),n}function ZV(e){let t=e.match(qV);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Fi(t[1],-9999,9999),r=n<1?"BC":"AD",i=new pc(r,n<1?-n+1:n,Fi(t[2],1,12),1,t[4]?Fi(t[4],0,23):0,t[5]?Fi(t[5],0,59):0,t[6]?Fi(t[6],0,59):0,t[7]?Fi(t[7],0,1/0)*1e3:0);return i.day=Fi(t[3],0,i.calendar.getDaysInMonth(i)),i}function Fi(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function iS(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function oS(e){let t=Qt(e,new dr),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function aS(e){return`${oS(e)}T${iS(e)}`}function JV(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function XV(e){return`${aS(e)}${JV(e.offset)}[${e.timeZone}]`}function vb(e){let t=typeof e[0]=="object"?e.shift():new dr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var QV=new WeakMap;class hn{copy(){return this.era?new hn(this.calendar,this.era,this.year,this.month,this.day):new hn(this.calendar,this.year,this.month,this.day)}add(t){return Qh(this,t)}subtract(t){return QC(this,t)}set(t){return mb(this,t)}cycle(t,n,r){return gb(this,t,n,r)}toDate(t){return ZC(this,t)}toString(){return oS(this)}compare(t){return HC(this,t)}constructor(...t){kc(this,QV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,cs(this)}}var eN=new WeakMap;class Nc{copy(){return new Nc(this.hour,this.minute,this.second,this.millisecond)}add(t){return nS(this,t)}subtract(t){return UV(this,t)}set(t){return hc(this,t)}cycle(t,n,r){return yb(this,t,n,r)}toString(){return iS(this)}compare(t){return GC(this,t)}constructor(t=0,n=0,r=0,i=0){kc(this,eN,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,eS(this)}}var tN=new WeakMap;class pc{copy(){return this.era?new pc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new pc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Qh(this,t)}subtract(t){return QC(this,t)}set(t){return mb(hc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return gb(this,t,n,r);default:return yb(this,t,n,r)}}toDate(t,n){return ZC(this,t,n)}toString(){return aS(this)}compare(t){let n=HC(this,t);return n===0?GC(this,Di(t)):n}constructor(...t){kc(this,tN,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,cs(this)}}var nN=new WeakMap;class mc{copy(){return this.era?new mc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new mc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return rS(this,t)}subtract(t){return zV(this,t)}set(t,n){return HV(this,t,n)}cycle(t,n,r){return WV(this,t,n,r)}toDate(){return VV(this)}toString(){return XV(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-JC(t,this.timeZone).toDate().getTime()}constructor(...t){kc(this,nN,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t),u=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=u,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,cs(this)}}const fu=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],rN=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Rf=[1867,1911,1925,1988,2018],Qo=["meiji","taisho","showa","heisei","reiwa"];function y$(e){const t=fu.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?fu.length-1:t===0?0:t-1}function eg(e){let t=Rf[Qo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new hn(e.year+t,e.month,e.day)}class iN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=y$(n);return new hn(this,Qo[r],n.year-Rf[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(eg(t))}balanceDate(t){let n=eg(t),r=y$(n);Qo[r]!==t.era&&(t.era=Qo[r],t.year=n.year-Rf[r]),this.constrainDate(t)}constrainDate(t){let n=Qo.indexOf(t.era),r=rN[n];if(r!=null){let[i,o,a]=r,u=i-Rf[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,o]=fu[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return Qo}getYearsInEra(t){let n=Qo.indexOf(t.era),r=fu[n],i=fu[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(eg(t))}getMinimumMonthInYear(t){let n=v$(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=v$(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function v$(e){if(e.year===1){let t=Qo.indexOf(e.era);return fu[t]}}const sS=-543;class oN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ic(n.era,n.year);return new hn(this,r-sS,n.month,n.day)}toJulianDay(t){return super.toJulianDay(b$(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(b$(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function b$(e){let[t,n]=Jh(e.year+sS);return new hn(t,n,e.month,e.day)}const nh=1911;function uS(e){return e.era==="minguo"?e.year+nh:1-e.year+nh}function $$(e){let t=e-nh;return t>0?["minguo",t]:["before_minguo",1-t]}class aN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ic(n.era,n.year),[i,o]=$$(r);return new hn(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(x$(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=$$(uS(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(x$(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-nh}constructor(...t){super(...t),this.identifier="roc"}}function x$(e){let[t,n]=Jh(uS(e));return new hn(t,n,e.month,e.day)}const w$=1948320,D$=[0,31,62,93,124,155,186,216,246,276,306,336];class sN{fromJulianDay(t){let n=t-w$,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-D$[a]+1;return new hn(this,r,a+1,u)}toJulianDay(t){let n=w$-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=D$[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||du(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const tg=78,E$=80;class uN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-tg,i=t-za(n.era,n.year,1,1),o;i<E$?(r--,o=ra(n.year-1)?31:30,i+=o+155+90+10):(o=ra(n.year)?31:30,i-=E$);let a,u;if(i<o)a=1,u=i+1;else{let c=i-o;c<155?(a=Math.floor(c/31)+2,u=c%31+1):(c-=155,a=Math.floor(c/30)+7,u=c%30+1)}return new hn(this,r,a,u)}toJulianDay(t){let n=t.year+tg,[r,i]=Jh(n),o,a;return ra(i)?(o=31,a=za(r,i,3,21)):(o=30,a=za(r,i,3,22)),t.month===1?a+t.day-1:(a+=o+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&ra(t.year+tg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const rh=1948440,C$=1948439,ei=1300,Gs=1600,lN=460322;function ih(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function lS(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+ih(t,r,1,1)))/29.5)+1),o=n-ih(t,r,i,1)+1;return new hn(e,r,i,o)}function S$(e){return(14+11*e)%30<11}class bb{fromJulianDay(t){return lS(this,rh,t)}toJulianDay(t){return ih(rh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&S$(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return S$(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class cN extends bb{fromJulianDay(t){return lS(this,C$,t)}toJulianDay(t){return ih(C$,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const dN="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Iy,hu;function Of(e){return lN+hu[e-ei]}function Wl(e,t){let n=e-ei,r=1<<11-(t-1);return Iy[n]&r?30:29}function T$(e,t){let n=Of(e);for(let r=1;r<t;r++)n+=Wl(e,r);return n}function A$(e){return hu[e+1-ei]-hu[e-ei]}class fN extends bb{fromJulianDay(t){let n=t-rh,r=Of(ei),i=Of(Gs);if(n<r||n>i)return super.fromJulianDay(t);{let o=ei-1,a=1,u=1;for(;u>0;){o++,u=n-Of(o)+1;let c=A$(o);if(u===c){a=12;break}else if(u<c){let d=Wl(o,a);for(a=1;u>d;)u-=d,a++,d=Wl(o,a);break}}return new hn(this,o,a,n-T$(o,a)+1)}}toJulianDay(t){return t.year<ei||t.year>Gs?super.toJulianDay(t):rh+T$(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ei||t.year>Gs?super.getDaysInMonth(t):Wl(t.year,t.month)}getDaysInYear(t){return t.year<ei||t.year>Gs?super.getDaysInYear(t):A$(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Iy||(Iy=new Uint16Array(Uint8Array.from(atob(dN),t=>t.charCodeAt(0)).buffer)),!hu){hu=new Uint32Array(Gs-ei+1);let t=0;for(let n=ei;n<=Gs;n++){hu[n-ei]=t;for(let r=1;r<=12;r++)t+=Wl(n,r)}}}}const P$=347997,cS=1080,dS=24*cS,hN=29,pN=12*cS+793,mN=hN*dS+pN;function Na(e){return du(e*7+1,19)<7}function Mf(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return du(3*(r+1),7)<3&&(r+=1),r}function gN(e){let t=Mf(e-1),n=Mf(e);return Mf(e+1)-n===356?2:n-t===382?1:0}function Ql(e){return Mf(e)+gN(e)}function fS(e){return Ql(e+1)-Ql(e)}function yN(e){let t=fS(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function lf(e,t){if(t>=6&&!Na(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=yN(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Na(e)?30:0:30}class vN{fromJulianDay(t){let n=t-P$,r=n*dS/mN,i=Math.floor((19*r+234)/235)+1,o=Ql(i),a=Math.floor(n-o);for(;a<1;)i--,o=Ql(i),a=Math.floor(n-o);let u=1,c=0;for(;c<a;)c+=lf(i,u),u++;u--,c-=lf(i,u);let d=a-c;return new hn(this,i,u,d)}toJulianDay(t){let n=Ql(t.year);for(let r=1;r<t.month;r++)n+=lf(t.year,r);return n+t.day+P$}getDaysInMonth(t){return lf(t.year,t.month)}getMonthsInYear(t){return Na(t.year)?13:12}getDaysInYear(t){return fS(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Na(n.year)&&!Na(t.year)&&n.month>6?t.month--:!Na(n.year)&&Na(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ly=1723856,_$=1824665,Vy=5500;function oh(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function $b(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-oh(e,n,1,1))/30),i=t+1-oh(e,n,r,1);return[n,r,i]}function hS(e){return Math.floor(e%4/3)}function pS(e,t){return t%13!==0?30:hS(e)+5}class xb{fromJulianDay(t){let[n,r,i]=$b(Ly,t),o="AM";return n<=0&&(o="AA",n+=Vy),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Vy),oh(Ly,n,t.month,t.day)}getDaysInMonth(t){return pS(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+hS(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class bN extends xb{fromJulianDay(t){let[n,r,i]=$b(Ly,t);return n+=Vy,new hn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class $N extends xb{fromJulianDay(t){let[n,r,i]=$b(_$,t),o="CE";return n<=0&&(o="BCE",n=1-n),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),oh(_$,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),pS(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function xN(e){switch(e){case"buddhist":return new oN;case"ethiopic":return new xb;case"ethioaa":return new bN;case"coptic":return new $N;case"hebrew":return new vN;case"indian":return new uN;case"islamic-civil":return new bb;case"islamic-tbla":return new cN;case"islamic-umalqura":return new fN;case"japanese":return new iN;case"persian":return new sN;case"roc":return new aN;case"gregory":default:return new dr}}let ng=new Map;class ii{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return EN()&&(this.resolvedHourCycle||(this.resolvedHourCycle=CN(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=mS(t,n),this.options=n}}const wN={true:{ja:"h11"},false:{}};function mS(e,t={}){if(typeof t.hour12=="boolean"&&DN()){t={...t};let i=wN[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(ng.has(n))return ng.get(n);let r=new Intl.DateTimeFormat(e,t);return ng.set(n,r),r}let rg=null;function DN(){return rg==null&&(rg=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),rg}let ig=null;function EN(){return ig==null&&(ig=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ig}function CN(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=mS(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Ni(e){e=EC(e??{},SN);let{locale:t}=Qn();return b.useMemo(()=>new ii(t,e),[t,e])}function SN(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let og=new Map,Ny=!1;try{Ny=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ah=!1;try{ah=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const gS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class yS{format(t){let n="";if(!Ny&&this.options.signDisplay!=null?n=AN(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ah){var r;let{unit:i,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!i)return n;let u=(r=gS[i])===null||r===void 0?void 0:r[o];n+=u[a]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ny&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ah&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=TN(t,n),this.options=n}}function TN(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ah){var r;let{unit:a,unitDisplay:u="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=gS[a])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,u)=>a[0]<u[0]?-1:1).join():"");if(og.has(i))return og.get(i);let o=new Intl.NumberFormat(e,t);return og.set(i,o),o}function AN(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),a=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(a,"+").replace("!!!",o)}else return e.format(n)}}const PN=new RegExp("^.*\\(.*\\).*$"),_N=["latn","arab","hanidec","deva","beng"];class vS{parse(t){return ag(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ag(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ag(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const R$=new Map;function ag(e,t,n){let r=O$(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of _N)if(i!==r.options.numberingSystem){let o=O$(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function O$(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=R$.get(n);return r||(r=new RN(e,t),R$.set(n,r)),r}class RN{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=cf(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new vS(this.locale,a).parse(new yS(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&PN.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=cf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=cf(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=cf(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=MN(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const M$=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),ON=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function MN(e,t,n,r){var i,o,a,u;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),f=c.formatToParts(10000.111),h=ON.map(O=>c.formatToParts(O));var m;let g=(m=(i=d.find(O=>O.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",v=(o=f.find(O=>O.type==="plusSign"))===null||o===void 0?void 0:o.value;!v&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(v="+");let C=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(O=>O.type==="decimal"))===null||a===void 0?void 0:a.value,x=(u=d.find(O=>O.type==="group"))===null||u===void 0?void 0:u.value,y=d.filter(O=>!M$.has(O.type)).map(O=>F$(O.value)),D=h.flatMap(O=>O.filter(F=>!M$.has(F.type)).map(F=>F$(F.value))),P=[...new Set([...y,...D])].sort((O,F)=>F.length-O.length),E=P.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${P.join("|")}|[\\p{White_Space}]`,"gu"),T=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(T.map((O,F)=>[O,F])),S=new RegExp(`[${T.join("")}]`,"g");return{minusSign:g,plusSign:v,decimal:C,group:x,literals:E,numeral:S,index:O=>String(k.get(O))}}function cf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function F$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function FN(e={}){let{locale:t}=Qn();return b.useMemo(()=>new yS(t,e),[t,e])}let sg=new Map;function bS(e){let{locale:t}=Qn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(sg.has(n))return sg.get(n);let r=new Intl.Collator(t,e);return sg.set(n,r),r}function $S(e){let t=bS({usage:"search",...e}),n=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(0,a.length),a)===0),[t]),r=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(-a.length),a)===0),[t]),i=b.useCallback((o,a)=>{if(a.length===0)return!0;o=o.normalize("NFC"),a=a.normalize("NFC");let u=0,c=a.length;for(;u+c<=o.length;u++){let d=o.slice(u,u+c);if(t.compare(a,d)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function kN(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:h,href:m,target:g,rel:v,type:$="button"}=e,C;n==="button"?C={type:$,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?m:void 0,target:n==="a"?g:void 0,type:n==="input"?$:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:x,isPressed:y}=Bc({onPressStart:o,onPressEnd:a,onPressChange:c,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=cb(e,t);f&&(D.tabIndex=r?-1:D.tabIndex);let P=xt(D,x,Po(e,{labelable:!0}));return{isPressed:y,buttonProps:xt(C,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var xS={};xS={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var wS={};wS={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var DS={};DS={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var ES={};ES={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var CS={};CS={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var SS={};SS={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var TS={};TS={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var AS={};AS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var PS={};PS={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var _S={};_S={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var RS={};RS={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var OS={};OS={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var MS={};MS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var FS={};FS={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var kS={};kS={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var BS={};BS={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var IS={};IS={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var LS={};LS={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var VS={};VS={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var NS={};NS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var jS={};jS={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var KS={};KS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var US={};US={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var zS={};zS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var WS={};WS={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var HS={};HS={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var GS={};GS={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var qS={};qS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var YS={};YS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var ZS={};ZS={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var JS={};JS={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var XS={};XS={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var QS={};QS={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var e5={};e5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var jc={};jc={"ar-AE":xS,"bg-BG":wS,"cs-CZ":DS,"da-DK":ES,"de-DE":CS,"el-GR":SS,"en-US":TS,"es-ES":AS,"et-EE":PS,"fi-FI":_S,"fr-FR":RS,"he-IL":OS,"hr-HR":MS,"hu-HU":FS,"it-IT":kS,"ja-JP":BS,"ko-KR":IS,"lt-LT":LS,"lv-LV":VS,"nb-NO":NS,"nl-NL":jS,"pl-PL":KS,"pt-BR":US,"pt-PT":zS,"ro-RO":WS,"ru-RU":HS,"sk-SK":GS,"sl-SI":qS,"sr-SP":YS,"sv-SE":ZS,"tr-TR":JS,"uk-UA":XS,"zh-CN":QS,"zh-TW":e5};function t5(e){return e&&e.__esModule?e.default:e}const wb=new WeakMap;function gc(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function BN(e){let t=Qi(t5(jc),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let o=Ni({weekday:"long",month:"long",year:"numeric",day:"numeric",era:gc(n)||gc(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!a&&n&&r)if(xn(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Ky(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,a,e.timeZone,t,o])}function jy(e,t,n,r){let i=Qi(t5(jc),"@react-aria/calendar"),o=gc(e)||gc(t),a=Ni({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=Ni({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(xn(e,Vc(e))){if(xn(t,My(e)))return a.format(e.toDate(n));if(xn(t,My(t)))return r?Ky(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?Ky(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,u,i,n,r])}function Ky(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<o.length;d++){let f=o[d];if(f.source==="shared"&&f.type==="literal")a=d;else if(f.source==="endRange")break}let u="",c="";for(let d=0;d<o.length;d++)d<a?u+=o[d].value:d>a&&(c+=o[d].value);return t.format("dateRange",{startDate:u,endDate:c})}const n5=7e3;let Xr=null;function pu(e,t="assertive",n=n5){Xr?Xr.announce(e,t,n):(Xr=new LN,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Xr.announce(e,t,n):setTimeout(()=>{Xr!=null&&Xr.isAttached()&&(Xr==null||Xr.announce(e,t,n))},100))}function IN(e){Xr&&Xr.clear(e)}class LN{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=n5){var i,o;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function VN(e){return e&&e.__esModule?e.default:e}function r5(e,t){let n=Qi(VN(jc),"@react-aria/calendar"),r=Po(e),i=jy(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=jy(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);q3(()=>{t.isFocused||pu(o)},[o]);let a=BN(t);q3(()=>{a&&pu(a,"polite",4e3)},[a]);let u=Cu([!!e.errorMessage,e.isInvalid,e.validationState]);wb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:a});let[c,d]=b.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&c&&(d(!1),t.setFocused(!0));let[h,m]=b.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(m(!1),t.setFocused(!0));let v=Su({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:xt(r,v,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:u},title:i}}function NN(e,t){return r5(e,t)}function jN(e,t,n){let r=r5(e,t),i=b.useRef(!1),o=b.useRef(typeof window<"u"?window:null);return sa(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),sa(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},sa(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function KN(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Qn(),o=g=>{switch(g.key){case"Enter":case" ":g.preventDefault(),t.selectFocusedDate();break;case"PageUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousSection(g.shiftKey);break;case"PageDown":g.preventDefault(),g.stopPropagation(),t.focusNextSection(g.shiftKey);break;case"End":g.preventDefault(),g.stopPropagation(),t.focusSectionEnd();break;case"Home":g.preventDefault(),g.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":g.preventDefault(),g.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(g.preventDefault(),t.setAnchorDate(null));break}},a=jy(n,r,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:c}=wb.get(t),d=Su({"aria-label":[u,a].filter(Boolean).join(", "),"aria-labelledby":c}),f=Ni({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=Qn(),m=b.useMemo(()=>{let g=fc(Xh(t.timeZone),h);return[...new Array(7).keys()].map(v=>{let C=g.add({days:v}).toDate(t.timeZone);return f.format(C)})},[h,t.timeZone,f]);return{gridProps:xt(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}function UN(e){return e&&e.__esModule?e.default:e}function zN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=wb.get(t),u=Qi(UN(jc),"@react-aria/calendar"),c=Ni({weekday:"long",day:"numeric",month:"long",year:"numeric",era:gc(r),timeZone:t.timeZone}),d=t.isSelected(r),f=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),m=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&xn(t.value,r));g&&(d=!0),r=EC(r,Oy);let v=b.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),$=zC(r,t.timeZone),C=b.useMemo(()=>{let F="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(xn(r,t.value.start)||xn(r,t.value.end))&&(F=a+", "),F+=c.format(v),$?F=u.format(d?"todayDateSelected":"todayDate",{date:F}):d&&(F=u.format("dateSelected",{date:F})),t.minValue&&xn(r,t.minValue)?F+=", "+u.format("minimumDate"):t.maxValue&&xn(r,t.maxValue)&&(F+=", "+u.format("maximumDate")),F},[c,v,u,d,$,r,t,a]),x="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?x=u.format("finishRangeSelectionPrompt"):x=u.format("startRangeSelectionPrompt"));let y=Fc(x),D=b.useRef(!1),P=b.useRef(!1),E=b.useRef(void 0),{pressProps:T,isPressed:k}=Bc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(F){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(F.pointerType==="mouse"||F.pointerType==="touch")){if(t.highlightedRange&&!g){if(xn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}else if(xn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}}let G=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};F.pointerType==="touch"?E.current=setTimeout(G,200):G()}},onPressEnd(){P.current=!1,D.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(F){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(P.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(F.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let G=r.add({days:1});t.isInvalid(G)&&(G=r.subtract({days:1})),t.isInvalid(G)||t.setFocusedDate(G)}else F.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=xn(r,t.focusedDate)?0:-1),b.useEffect(()=>{f&&n.current&&(vi(n.current),Qf()!=="pointer"&&document.activeElement===n.current&&Jf(n.current,{containingElement:qh(n.current)}))},[f,n]);let U=Ni({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),O=b.useMemo(()=>U.formatToParts(v).find(F=>F.type==="day").value,[U,v]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":g||void 0},buttonProps:xt(T,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!m||void 0,"aria-label":C,"aria-invalid":g||void 0,"aria-describedby":[g?o:void 0,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(F){"highlightDate"in t&&(F.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(F){"releasePointerCapture"in F.target&&F.target.releasePointerCapture(F.pointerId)},onContextMenu(F){F.preventDefault()}}),isPressed:k,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:O}}const ep={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},i5={...ep,customError:!0,valid:!1},ja={isInvalid:!1,validationDetails:ep,validationErrors:[]},WN=b.createContext({}),Pu="__formValidationState"+Date.now();function Kc(e){if(e[Pu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Pu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return HN(e)}function HN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:i5}:null,d=b.useMemo(()=>{if(!a||i==null)return null;let O=GN(a,i);return k$(O)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let f=b.useContext(WN),h=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(O=>Uy(f[O])):Uy(f[r]):[],[f,r]),[m,g]=b.useState(f),[v,$]=b.useState(!1);f!==m&&(g(f),$(!1));let C=b.useMemo(()=>k$(v?[]:h),[v,h]),x=b.useRef(ja),[y,D]=b.useState(ja),P=b.useRef(ja),E=()=>{if(!T)return;k(!1);let O=d||o||x.current;ug(O,P.current)||(P.current=O,D(O))},[T,k]=b.useState(!1);return b.useEffect(E),{realtimeValidation:c||C||d||o||ja,displayValidation:u==="native"?c||C||y:c||C||d||o||y,updateValidation(O){u==="aria"&&!ug(y,O)?D(O):x.current=O},resetValidation(){let O=ja;ug(O,P.current)||(P.current=O,D(O)),u==="native"&&k(!1),$(!0)},commitValidation(){u==="native"&&k(!0),$(!0)}}}function Uy(e){return e?Array.isArray(e)?e:[e]:[]}function GN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Uy(n)}return[]}function k$(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:i5}:null}function ug(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function sh(...e){let t=new Set,n=!1,r={...ep};for(let a of e){var i,o;for(let u of a.validationErrors)t.add(u);n||(n=a.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=a.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function o5(e,t,n){let{validationBehavior:r,focus:i}=e;zt(()=>{if(r==="native"&&(n!=null&&n.current)){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(YN(n.current))}});let o=wn(()=>{t.resetValidation()}),a=wn(c=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&n&&f&&ZN(f)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),MC("keyboard")}c.preventDefault()}),u=wn(()=>{t.commitValidation()});b.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let d=c.form;return c.addEventListener("invalid",a),c.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,a,u,o,r])}function qN(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function YN(e){return{isInvalid:!e.validity.valid,validationDetails:qN(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function ZN(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function tp(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Mr(t);let a=Mr(),u={};n?(r=r?`${a} ${r}`:a,u={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Su({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:c}}function np(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=tp(e),u=Cu([!!t,!!n,r,i]),c=Cu([!!t,!!n,r,i]);return a=xt(a,{"aria-describedby":[u,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:u},errorMessageProps:{id:c}}}const JN=0,XN=100,QN=1;function ej(e){const{isDisabled:t=!1,minValue:n=JN,maxValue:r=XN,numberFormatter:i,step:o=QN,orientation:a="horizontal"}=e;let u=b.useMemo(()=>{let z=(r-n)/10;return z=Sl(z,0,z+o,o),Math.max(z,o)},[o,r,n]),c=b.useCallback(z=>z==null?void 0:z.map((re,oe)=>{let fe=oe===0?n:z[oe-1],ie=oe===z.length-1?r:z[oe+1];return Sl(re,fe,ie,o)}),[n,r,o]),d=b.useMemo(()=>c(I$(e.value)),[e.value]),f=b.useMemo(()=>{var z;return c((z=I$(e.defaultValue))!==null&&z!==void 0?z:[n])},[e.defaultValue,n]),h=L$(e.value,e.defaultValue,e.onChange),m=L$(e.value,e.defaultValue,e.onChangeEnd);const[g,v]=Fr(d,f,h),[$,C]=b.useState(new Array(g.length).fill(!1)),x=b.useRef(new Array(g.length).fill(!0)),[y,D]=b.useState(void 0),P=b.useRef(g),E=b.useRef($);let T=z=>{P.current=z,v(z)},k=z=>{E.current=z,C(z)};function S(z){return(z-n)/(r-n)}function U(z){return z===0?n:g[z-1]}function O(z){return z===g.length-1?r:g[z+1]}function F(z){return x.current[z]}function G(z,re){x.current[z]=re}function K(z,re){if(t||!F(z))return;const oe=U(z),fe=O(z);re=Sl(re,oe,fe,o);let ie=B$(P.current,z,re);T(ie)}function W(z,re){if(t||!F(z))return;re&&(P.current=g);const oe=E.current[z];E.current=B$(E.current,z,re),k(E.current),oe&&!E.current.some(Boolean)&&m(P.current)}function j(z){return i.format(z)}function L(z,re){K(z,M(re))}function _(z){return Math.round((z-n)/o)*o+n}function M(z){const re=z*(r-n)+n;return Tu(_(re),n,r)}function Y(z,re=1){let oe=Math.max(re,o);K(z,Sl(g[z]+oe,n,r,o))}function V(z,re=1){let oe=Math.max(re,o);K(z,Sl(g[z]-oe,n,r,o))}return{values:g,getThumbValue:z=>g[z],setThumbValue:K,setThumbPercent:L,isThumbDragging:z=>$[z],setThumbDragging:W,focusedThumb:y,setFocusedThumb:D,getThumbPercent:z=>S(g[z]),getValuePercent:S,getThumbValueLabel:z=>j(g[z]),getFormattedValue:j,getThumbMinValue:U,getThumbMaxValue:O,getPercentValue:M,isThumbEditable:F,setThumbEditable:G,incrementThumb:Y,decrementThumb:V,step:o,pageSize:u,orientation:a,isDisabled:t}}function B$(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function I$(e){if(e!=null)return Array.isArray(e)?e:[e]}function L$(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const V$={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function tj(e={}){let{style:t,isFocusable:n}=e,[r,i]=b.useState(!1),{focusWithinProps:o}=zu({isDisabled:!n,onFocusWithinChange:u=>i(u)}),a=b.useMemo(()=>r?t:t?{...V$,...t}:V$,[r]);return{visuallyHiddenProps:{...o,style:a}}}function nj(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:a}=tj(e);return b.createElement(n,xt(o,a),t)}const Db=new WeakMap;function zy(e,t){let n=Db.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function rj(e,t,n){let{labelProps:r,fieldProps:i}=tp(e),o=e.orientation==="vertical";var a;Db.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Qn(),{addGlobalListener:c,removeGlobalListener:d}=Uu();const f=b.useRef(null),h=u==="rtl",m=b.useRef(null),{moveProps:g}=kC({onMoveStart(){m.current=null},onMove({deltaX:x,deltaY:y}){if(!n.current)return;let{height:D,width:P}=n.current.getBoundingClientRect(),E=o?D:P;m.current==null&&f.current!=null&&(m.current=t.getThumbPercent(f.current)*E);let T=o?y:x;if((o||h)&&(T=-T),m.current+=T,f.current!=null&&n.current){const k=Tu(m.current/E,0,1);t.setThumbPercent(f.current,k)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let v=b.useRef(void 0),$=(x,y,D,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,T)=>!t.isThumbDragging(T))){let{height:E,width:T,top:k,left:S}=n.current.getBoundingClientRect(),U=o?E:T,K=((o?P:D)-(o?k:S))/U;(u==="rtl"||o)&&(K=1-K);let W=t.getPercentValue(K),j,L=t.values.findIndex(_=>W-_<0);if(L===0)j=L;else if(L===-1)j=t.values.length-1;else{let _=t.values[L-1],M=t.values[L];Math.abs(_-W)<Math.abs(M-W)?j=L-1:j=L}j>=0&&t.isThumbEditable(j)?(x.preventDefault(),f.current=j,t.setFocusedThumb(j),v.current=y,t.setThumbDragging(f.current,!0),t.setThumbValue(j,W),c(window,"mouseup",C,!1),c(window,"touchend",C,!1),c(window,"pointerup",C,!1)):f.current=null}},C=x=>{var y,D;((D=x.pointerId)!==null&&D!==void 0?D:(y=x.changedTouches)===null||y===void 0?void 0:y[0].identifier)===v.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),d(window,"mouseup",C,!1),d(window,"touchend",C,!1),d(window,"pointerup",C,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var x;(x=document.getElementById(zy(t,0)))===null||x===void 0||x.focus(),MC("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:xt({onMouseDown(x){x.button!==0||x.altKey||x.ctrlKey||x.metaKey||$(x,void 0,x.clientX,x.clientY)},onPointerDown(x){x.pointerType==="mouse"&&(x.button!==0||x.altKey||x.ctrlKey||x.metaKey)||$(x,x.pointerId,x.clientX,x.clientY)},onTouchStart(x){$(x,x.changedTouches[0].identifier,x.changedTouches[0].clientX,x.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((x,y)=>zy(t,y)).join(" "),"aria-live":"off"}}}function ij(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:a,inputRef:u,orientation:c=t.orientation,name:d}=e,f=e.isDisabled||t.isDisabled,h=c==="vertical",{direction:m}=Qn(),{addGlobalListener:g,removeGlobalListener:v}=Uu(),$=Db.get(t);var C;const{labelProps:x,fieldProps:y}=tp({...e,id:zy(t,n),"aria-labelledby":`${$.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],P=b.useCallback(()=>{u.current&&vi(u.current)},[u]),E=t.focusedThumb===n;b.useEffect(()=>{E&&P()},[E,P]);let T=m==="rtl",k=b.useRef(null),{keyboardProps:S}=FC({onKeyDown(L){let{getThumbMaxValue:_,getThumbMinValue:M,decrementThumb:Y,incrementThumb:V,setThumbValue:z,setThumbDragging:re,pageSize:oe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),re(n,!0),L.key){case"PageUp":V(n,oe);break;case"PageDown":Y(n,oe);break;case"Home":z(n,M(n));break;case"End":z(n,_(n));break}re(n,!1)}}),{moveProps:U}=kC({onMoveStart(){k.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:_,pointerType:M,shiftKey:Y}){const{getThumbPercent:V,setThumbPercent:z,decrementThumb:re,incrementThumb:oe,step:fe,pageSize:ie}=t;if(!a.current)return;let{width:Ee,height:$e}=a.current.getBoundingClientRect(),ne=h?$e:Ee;if(k.current==null&&(k.current=V(n)*ne),M==="keyboard")L>0&&T||L<0&&!T||_>0?re(n,Y?ie:fe):oe(n,Y?ie:fe);else{let ye=h?_:L;(h||T)&&(ye=-ye),k.current+=ye,z(n,Tu(k.current/ne,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!f);const{focusableProps:O}=cb(xt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let F=b.useRef(void 0),G=L=>{P(),F.current=L,t.setThumbDragging(n,!0),g(window,"mouseup",K,!1),g(window,"touchend",K,!1),g(window,"pointerup",K,!1)},K=L=>{var _,M;((M=L.pointerId)!==null&&M!==void 0?M:(_=L.changedTouches)===null||_===void 0?void 0:_[0].identifier)===F.current&&(P(),t.setThumbDragging(n,!1),v(window,"mouseup",K,!1),v(window,"touchend",K,!1),v(window,"pointerup",K,!1))},W=t.getThumbPercent(n);(h||m==="rtl")&&(W=1-W);let j=f?{}:xt(S,U,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G(L.pointerId)},onTouchStart:L=>{G(L.changedTouches[0].identifier)}});return ob(u,D,L=>{t.setThumbValue(n,L)}),{inputProps:xt(O,y,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:f,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[$["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[$["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...j,style:{position:"absolute",[h?"top":"left"]:`${W*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(n),isDisabled:f,isFocused:E}}function oj(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:a="text",validationBehavior:u="aria"}=e,[c,d]=Fr(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=cb(e,t),h=Kc({...e,value:c}),{isInvalid:m,validationErrors:g,validationDetails:v}=h.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:x,errorMessageProps:y}=np({...e,isInvalid:m,errorMessage:e.errorMessage||g}),D=Po(e,{labelable:!0});const P={type:a,pattern:e.pattern};return ob(t,c,d),o5(e,h,t),b.useEffect(()=>{if(t.current instanceof fa(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:$,inputProps:xt(D,n==="input"?P:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:E=>d(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...C}),descriptionProps:x,errorMessageProps:y,isInvalid:m,validationErrors:g,validationDetails:v}}var a5={};a5={Empty:"فارغ"};var s5={};s5={Empty:"Изпразни"};var u5={};u5={Empty:"Prázdné"};var l5={};l5={Empty:"Tom"};var c5={};c5={Empty:"Leer"};var d5={};d5={Empty:"Άδειο"};var f5={};f5={Empty:"Empty"};var h5={};h5={Empty:"Vacío"};var p5={};p5={Empty:"Tühjenda"};var m5={};m5={Empty:"Tyhjä"};var g5={};g5={Empty:"Vide"};var y5={};y5={Empty:"ריק"};var v5={};v5={Empty:"Prazno"};var b5={};b5={Empty:"Üres"};var $5={};$5={Empty:"Vuoto"};var x5={};x5={Empty:"空"};var w5={};w5={Empty:"비어 있음"};var D5={};D5={Empty:"Tuščias"};var E5={};E5={Empty:"Tukšs"};var C5={};C5={Empty:"Tom"};var S5={};S5={Empty:"Leeg"};var T5={};T5={Empty:"Pusty"};var A5={};A5={Empty:"Vazio"};var P5={};P5={Empty:"Vazio"};var _5={};_5={Empty:"Gol"};var R5={};R5={Empty:"Не заполнено"};var O5={};O5={Empty:"Prázdne"};var M5={};M5={Empty:"Prazen"};var F5={};F5={Empty:"Prazno"};var k5={};k5={Empty:"Tomt"};var B5={};B5={Empty:"Boş"};var I5={};I5={Empty:"Пусто"};var L5={};L5={Empty:"空"};var V5={};V5={Empty:"空白"};var N5={};N5={"ar-AE":a5,"bg-BG":s5,"cs-CZ":u5,"da-DK":l5,"de-DE":c5,"el-GR":d5,"en-US":f5,"es-ES":h5,"et-EE":p5,"fi-FI":m5,"fr-FR":g5,"he-IL":y5,"hr-HR":v5,"hu-HU":b5,"it-IT":$5,"ja-JP":x5,"ko-KR":w5,"lt-LT":D5,"lv-LV":E5,"nb-NO":C5,"nl-NL":S5,"pl-PL":T5,"pt-BR":A5,"pt-PT":P5,"ro-RO":_5,"ru-RU":R5,"sk-SK":O5,"sl-SI":M5,"sr-SP":F5,"sv-SE":k5,"tr-TR":B5,"uk-UA":I5,"zh-CN":L5,"zh-TW":V5};function aj(e){return e&&e.__esModule?e.default:e}function sj(e){const t=b.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:a,isReadOnly:u,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:h,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:v}=e;const $=Qi(aj(N5),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);b.useEffect(()=>()=>C(),[]);let x=F=>{if(!(F.ctrlKey||F.metaKey||F.shiftKey||F.altKey||u))switch(F.key){case"PageUp":if(f){F.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(F.preventDefault(),d==null||d());break;case"PageDown":if(m){F.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":h&&(F.preventDefault(),h==null||h());break;case"Home":g&&(F.preventDefault(),g==null||g());break;case"End":v&&(F.preventDefault(),v==null||v());break}},y=b.useRef(!1),D=()=>{y.current=!0},P=()=>{y.current=!1},E=r===""?$.format("Empty"):(r||`${n}`).replace("-","−");b.useEffect(()=>{y.current&&(IN("assertive"),pu(E,"assertive"))},[E]);const T=wn(F=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&T(60)},F)}),k=wn(F=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&k(60)},F)});let S=F=>{F.preventDefault()},{addGlobalListener:U,removeAllGlobalListeners:O}=Uu();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":a||void 0,"aria-readonly":u||void 0,"aria-required":c||void 0,onKeyDown:x,onFocus:D,onBlur:P},incrementButtonProps:{onPressStart:()=>{T(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P},decrementButtonProps:{onPressStart:()=>{k(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P}}}var j5={};j5={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var K5={};K5={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var U5={};U5={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var z5={};z5={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var W5={};W5={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var H5={};H5={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var G5={};G5={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var q5={};q5={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Y5={};Y5={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Z5={};Z5={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var J5={};J5={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var X5={};X5={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Q5={};Q5={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var e2={};e2={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var t2={};t2={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var n2={};n2={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var r2={};r2={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var i2={};i2={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var o2={};o2={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var a2={};a2={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var s2={};s2={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var u2={};u2={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var l2={};l2={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var c2={};c2={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var d2={};d2={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var f2={};f2={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var h2={};h2={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var p2={};p2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var m2={};m2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var g2={};g2={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var y2={};y2={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var v2={};v2={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var b2={};b2={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var $2={};$2={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var x2={};x2={"ar-AE":j5,"bg-BG":K5,"cs-CZ":U5,"da-DK":z5,"de-DE":W5,"el-GR":H5,"en-US":G5,"es-ES":q5,"et-EE":Y5,"fi-FI":Z5,"fr-FR":J5,"he-IL":X5,"hr-HR":Q5,"hu-HU":e2,"it-IT":t2,"ja-JP":n2,"ko-KR":r2,"lt-LT":i2,"lv-LV":o2,"nb-NO":a2,"nl-NL":s2,"pl-PL":u2,"pt-BR":l2,"pt-PT":c2,"ro-RO":d2,"ru-RU":f2,"sk-SK":h2,"sl-SI":p2,"sr-SP":m2,"sv-SE":g2,"tr-TR":y2,"uk-UA":v2,"zh-CN":b2,"zh-TW":$2};const ji={top:"top",bottom:"top",left:"left",right:"left"},uh={top:"bottom",bottom:"top",left:"right",right:"left"},uj={top:"left",left:"top"},Wy={top:"height",left:"width"},w2={width:"totalWidth",height:"totalHeight"},df={};let Tn=typeof document<"u"?window.visualViewport:null;function N$(e){let t=0,n=0,r=0,i=0,o=0,a=0,u={};var c;let d=((c=Tn==null?void 0:Tn.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let v=document.documentElement;r=v.clientWidth,i=v.clientHeight;var f;t=(f=Tn==null?void 0:Tn.width)!==null&&f!==void 0?f:r;var h;n=(h=Tn==null?void 0:Tn.height)!==null&&h!==void 0?h:i,u.top=v.scrollTop||e.scrollTop,u.left=v.scrollLeft||e.scrollLeft,Tn&&(o=Tn.offsetTop,a=Tn.offsetLeft)}else({width:t,height:n,top:o,left:a}=mu(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(ib()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var m;o=(m=Tn==null?void 0:Tn.pageTop)!==null&&m!==void 0?m:0;var g;a=(g=Tn==null?void 0:Tn.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:a}}function lj(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function j$(e,t,n,r,i,o,a){var u;let c=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Wy[e]],f=r.scroll[ji[e]]+o,h=d+r.scroll[ji[e]]-o,m=t-c+a[e]-r[ji[e]],g=t-c+n+a[e]-r[ji[e]];return m<f?f-m:g>h?Math.max(h-g,f-m):0}function cj(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function K$(e){if(df[e])return df[e];let[t,n]=e.split(" "),r=ji[t]||"right",i=uj[r];ji[n]||(n="center");let o=Wy[r],a=Wy[i];return df[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},df[e]}function lg(e,t,n,r,i,o,a,u,c,d){let{placement:f,crossPlacement:h,axis:m,crossAxis:g,size:v,crossSize:$}=r,C={};var x;C[g]=(x=e[g])!==null&&x!==void 0?x:0;var y,D,P,E;h==="center"?C[g]+=(((y=e[$])!==null&&y!==void 0?y:0)-((D=n[$])!==null&&D!==void 0?D:0))/2:h!==g&&(C[g]+=((P=e[$])!==null&&P!==void 0?P:0)-((E=n[$])!==null&&E!==void 0?E:0)),C[g]+=o;const T=e[g]-n[$]+c+d,k=e[g]+e[$]-c-d;if(C[g]=Tu(C[g],T,k),f===m){const S=u?a[v]:t[w2[v]];C[uh[m]]=Math.floor(S-e[m]+i)}else C[m]=Math.floor(e[m]+e[v]+i);return C}function dj(e,t,n,r,i,o,a,u){const c=r?n.height:t[w2.height];var d;let f=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var h,m,g,v,$,C;let x=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-f-(((m=i.top)!==null&&m!==void 0?m:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,f+a-(t.top+((v=t.scroll.top)!==null&&v!==void 0?v:0))-((($=i.top)!==null&&$!==void 0?$:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,x)}function U$(e,t,n,r,i,o){let{placement:a,axis:u,size:c}=o;var d,f;if(a===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((f=r[u])!==null&&f!==void 0?f:0)-r[uh[u]]-i);var h;return Math.max(0,e[c]+e[u]+e.scroll[u]-t[u]-n[u]-n[c]-((h=r[u])!==null&&h!==void 0?h:0)-r[uh[u]]-i)}function fj(e,t,n,r,i,o,a,u,c,d,f,h,m,g,v,$){let C=K$(e),{size:x,crossAxis:y,crossSize:D,placement:P,crossPlacement:E}=C,T=lg(t,u,n,C,f,h,d,m,v,$),k=f,S=U$(u,d,t,i,o+f,C);if(a&&r[x]>S){let fe=K$(`${uh[P]} ${E}`),ie=lg(t,u,n,fe,f,h,d,m,v,$);U$(u,d,t,i,o+f,fe)>S&&(C=fe,T=ie,k=f)}let U="bottom";C.axis==="top"?C.placement==="top"?U="top":C.placement==="bottom"&&(U="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?U="bottom":C.crossPlacement==="bottom"&&(U="top"));let O=j$(y,T[y],n[D],u,c,o,d);T[y]+=O;let F=dj(T,u,d,m,i,o,n.height,U);g&&g<F&&(F=g),n.height=Math.min(n.height,F),T=lg(t,u,n,C,k,h,d,m,v,$),O=j$(y,T[y],n[D],u,c,o,d),T[y]+=O;let G={},K=t[y]+.5*t[D]-T[y]-i[ji[y]];const W=v/2+$;var j,L,_,M;const Y=ji[y]==="left"?((j=i.left)!==null&&j!==void 0?j:0)+((L=i.right)!==null&&L!==void 0?L:0):((_=i.top)!==null&&_!==void 0?_:0)+((M=i.bottom)!==null&&M!==void 0?M:0),V=n[D]-Y-v/2-$,z=t[y]+v/2-(T[y]+i[ji[y]]),re=t[y]+t[D]-v/2-(T[y]+i[ji[y]]),oe=Tu(K,z,re);return G[y]=Tu(oe,W,V),{position:T,maxHeight:F,arrowOffsetLeft:G.left,arrowOffsetTop:G.top,placement:C.placement}}function hj(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:h=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?pj(r):document.documentElement,v=g===document.documentElement;const $=window.getComputedStyle(g).position;let C=!!$&&$!=="static",x=v?mu(n):z$(n,g);if(!v){let{marginTop:G,marginLeft:K}=window.getComputedStyle(n);x.top+=parseInt(G,10)||0,x.left+=parseInt(K,10)||0}let y=mu(r),D=cj(r);var P,E;y.width+=((P=D.left)!==null&&P!==void 0?P:0)+((E=D.right)!==null&&E!==void 0?E:0);var T,k;y.height+=((T=D.top)!==null&&T!==void 0?T:0)+((k=D.bottom)!==null&&k!==void 0?k:0);let S=lj(i),U=N$(u),O=N$(g),F=u.tagName==="BODY"?mu(g):z$(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(O.scroll.top=0,O.scroll.left=0),fj(t,x,y,S,D,o,a,U,O,F,c,d,C,f,h,m)}function mu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:u,clientLeft:c}=document.documentElement;return{top:t+o-u,left:n+a-c,width:r,height:i}}function z$(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:a,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:a,height:u}}else{r=mu(e);let i=mu(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function pj(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!W$(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!W$(t);)t=t.parentElement;return t||document.documentElement}function W$(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const D2=new WeakMap;function mj(e){let{triggerRef:t,isOpen:n,onClose:r}=e;b.useEffect(()=>{if(!n||r===null)return;let i=o=>{let a=o.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||D2.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let ln=typeof document<"u"?window.visualViewport:null;function gj(e){let{direction:t}=Qn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:v,maxHeight:$,arrowBoundaryOffset:C=0}=e,[x,y]=b.useState(null),D=[m,a,i.current,r.current,o.current,u,c,d,f,h,g,t,$,C,n],P=b.useRef(ln==null?void 0:ln.scale);b.useEffect(()=>{g&&(P.current=ln==null?void 0:ln.scale)},[g]);let E=b.useCallback(()=>{if(m===!1||!g||!i.current||!r.current||!d||(ln==null?void 0:ln.scale)!==P.current)return;let O=null;if(o.current&&o.current.contains(document.activeElement)){var F;let M=(F=document.activeElement)===null||F===void 0?void 0:F.getBoundingClientRect(),Y=o.current.getBoundingClientRect();var G;if(O={type:"top",offset:((G=M==null?void 0:M.top)!==null&&G!==void 0?G:0)-Y.top},O.offset>Y.height/2){O.type="bottom";var K;O.offset=((K=M==null?void 0:M.bottom)!==null&&K!==void 0?K:0)-Y.bottom}}let W=i.current;if(!$&&i.current){var j;W.style.top="0px",W.style.bottom="";var L;W.style.maxHeight=((L=(j=window.visualViewport)===null||j===void 0?void 0:j.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let _=hj({placement:vj(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:h,maxHeight:$,arrowSize:n,arrowBoundaryOffset:C});if(_.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(_.position).forEach(M=>W.style[M]=_.position[M]+"px"),W.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":"",O&&document.activeElement&&o.current){let M=document.activeElement.getBoundingClientRect(),Y=o.current.getBoundingClientRect(),V=M[O.type]-Y[O.type];o.current.scrollTop+=V-O.offset}y(_)}},D);zt(E,D),yj(E),Y3({ref:i,onResize:E}),Y3({ref:r,onResize:E});let T=b.useRef(!1);zt(()=>{let O,F=()=>{T.current=!0,clearTimeout(O),O=setTimeout(()=>{T.current=!1},500),E()},G=()=>{T.current&&F()};return ln==null||ln.addEventListener("resize",F),ln==null||ln.addEventListener("scroll",G),()=>{ln==null||ln.removeEventListener("resize",F),ln==null||ln.removeEventListener("scroll",G)}},[E]);let k=b.useCallback(()=>{T.current||v==null||v()},[v,T]);mj({triggerRef:r,isOpen:g,onClose:v&&k});var S,U;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...x==null?void 0:x.position,maxHeight:(S=x==null?void 0:x.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(U=x==null?void 0:x.placement)!==null&&U!==void 0?U:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:E}}function yj(e){zt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function vj(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const ho=[];function bj(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:u}=e;b.useEffect(()=>(i&&ho.push(t),()=>{let v=ho.indexOf(t);v>=0&&ho.splice(v,1)}),[i,t]);let c=()=>{ho[ho.length-1]===t&&n&&n()},d=v=>{(!u||u(v.target))&&ho[ho.length-1]===t&&(v.stopPropagation(),v.preventDefault())},f=v=>{(!u||u(v.target))&&(ho[ho.length-1]===t&&(v.stopPropagation(),v.preventDefault()),c())},h=v=>{v.key==="Escape"&&!a&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),c())};tV({ref:t,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:m}=zu({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||cV(v.relatedTarget)||(!u||u(v.relatedTarget))&&(n==null||n())}}),g=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:h,...m},underlayProps:{onPointerDown:g}}}function $j(e,t,n){let{type:r}=e,{isOpen:i}=t;b.useEffect(()=>{n&&n.current&&D2.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let a=Mr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const cg=typeof document<"u"&&window.visualViewport,xj=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ff=0,dg;function wj(e={}){let{isDisabled:t}=e;zt(()=>{if(!t)return ff++,ff===1&&(Mc()?dg=Ej():dg=Dj()),()=>{ff--,ff===0&&dg()}},[t])}function Dj(){return as(eu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),eu(document.documentElement,"overflow","hidden"))}function Ej(){let e,t,n=d=>{e=qh(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=eu(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=d=>{let f=d.target;G$(f)&&f!==document.activeElement&&(d.preventDefault(),u(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""})),t&&t()},o=d=>{let f=d.target;G$(f)&&(u(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",cg&&(cg.height<window.innerHeight?requestAnimationFrame(()=>{H$(f)}):cg.addEventListener("resize",()=>H$(f),{once:!0}))}))},a=null,u=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset;a=as(Al(window,"scroll",d),eu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),eu(document.documentElement,"overflow","hidden"),eu(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(f,h)}),window.scrollTo(0,0)},c=as(Al(document,"touchstart",n,{passive:!1,capture:!0}),Al(document,"touchmove",r,{passive:!1,capture:!0}),Al(document,"touchend",i,{passive:!1,capture:!0}),Al(document,"focus",o,!0));return()=>{t==null||t(),a==null||a(),c()}}function eu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Al(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function H$(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=qh(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function G$(e){return e instanceof HTMLInputElement&&!xj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Pl=new WeakMap,Yr=[];function E2(e,t=document.body){let n=new Set(e),r=new Set,i=c=>{for(let m of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let d=m=>{if(n.has(m)||m.parentElement&&r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(c);if(h===NodeFilter.FILTER_ACCEPT&&o(c),h!==NodeFilter.FILTER_REJECT){let m=f.nextNode();for(;m!=null;)o(m),m=f.nextNode()}},o=c=>{var d;let f=(d=Pl.get(c))!==null&&d!==void 0?d:0;c.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&c.setAttribute("aria-hidden","true"),r.add(c),Pl.set(c,f+1))};Yr.length&&Yr[Yr.length-1].disconnect(),i(t);let a=new MutationObserver(c=>{for(let d of c)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&i(f)}});a.observe(t,{childList:!0,subtree:!0});let u={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Yr.push(u),()=>{a.disconnect();for(let c of r){let d=Pl.get(c);d!=null&&(d===1?(c.removeAttribute("aria-hidden"),Pl.delete(c)):Pl.set(c,d-1))}u===Yr[Yr.length-1]?(Yr.pop(),Yr.length&&Yr[Yr.length-1].observe()):Yr.splice(Yr.indexOf(u),1)}}function Cj(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...u}=e,{overlayProps:c,underlayProps:d}=bj({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},r),{overlayProps:f,arrowProps:h,placement:m}=gj({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:void 0});return wj({isDisabled:i||!t.isOpen}),zt(()=>{if(t.isOpen&&!i&&r.current)return E2([r.current])},[i,t.isOpen,r]),{popoverProps:xt(c,f),arrowProps:h,underlayProps:d,placement:m}}const Sj=b.createContext({});function Tj(){var e;return(e=b.useContext(Sj))!==null&&e!==void 0?e:{}}const C2=b.createContext(null);function Aj(e){let t=nb(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=b.useState(!1),a=b.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=Tj();if(!e.portalContainer&&u&&(n=u()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=b.createElement(oV,{restoreFocus:!0,contain:i&&!r},c)),c=b.createElement(C2.Provider,{value:a},b.createElement(GL,null,c)),aa.createPortal(c,n)}function Pj(){let e=b.useContext(C2),t=e==null?void 0:e.setContain;zt(()=>{t==null||t(!0)},[t])}const rp=new WeakMap;function _j(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function S2(e,t){let n=rp.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${_j(t)}`}function Hy(e){return Pf()?e.altKey:e.ctrlKey}function Js(e){return Co()?e.metaKey:e.ctrlKey}const Rj=1e3;function Oj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=b.useRef({search:"",timeout:void 0}).current,o=a=>{let u=Mj(a.key);if(!(!u||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(u===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let c=t.getKeyForSearch(i.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(i.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Rj)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function Mj(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function T2(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:m,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:$}=Qn(),C=Gh(),x=O=>{var F;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((F=r.current)===null||F===void 0)&&F.contains(O.target)))return;const G=(ie,Ee)=>{if(ie!=null){if(t.isLink(ie)&&v==="selection"&&c&&!Hy(O)){var $e;aa.flushSync(()=>{t.setFocusedKey(ie,Ee)});let ne=($e=g.current)===null||$e===void 0?void 0:$e.querySelector(`[data-key="${CSS.escape(ie.toString())}"]`),ye=t.getItemProps(ie);ne&&C.open(ne,O,ye.href,ye.routerOptions);return}if(t.setFocusedKey(ie,Ee),t.isLink(ie)&&v==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&!Hy(O)&&t.replaceSelection(ie)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var K,W,j;let ie=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.call(n,t.focusedKey):(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n);ie==null&&o&&(ie=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowUp":if(n.getKeyAbove){var L,_,M;let ie=t.focusedKey!=null?(L=n.getKeyAbove)===null||L===void 0?void 0:L.call(n,t.focusedKey):(_=n.getLastKey)===null||_===void 0?void 0:_.call(n);ie==null&&o&&(ie=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Y,V,z;let ie=t.focusedKey!=null?(Y=n.getKeyLeftOf)===null||Y===void 0?void 0:Y.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var re,oe,fe;let ie=t.focusedKey!=null?(re=n.getKeyRightOf)===null||re===void 0?void 0:re.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey):(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){O.preventDefault();let ie=n.getFirstKey(t.focusedKey,Js(O));t.setFocusedKey(ie),ie!=null&&(Js(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"End":if(n.getLastKey){O.preventDefault();let ie=n.getLastKey(t.focusedKey,Js(O));t.setFocusedKey(ie),ie!=null&&(Js(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ie=n.getKeyPageBelow(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ie=n.getKeyPageAbove(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"a":Js(O)&&t.selectionMode==="multiple"&&u!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(O.shiftKey)r.current.focus();else{let ie=wr(r.current,{tabbable:!0}),Ee,$e;do $e=ie.lastChild(),$e&&(Ee=$e);while($e);Ee&&!Ee.contains(document.activeElement)&&vi(Ee)}break}}},y=b.useRef({top:0,left:0});sa(g,"scroll",m?void 0:()=>{var O,F,G,K;y.current={top:(G=(O=g.current)===null||O===void 0?void 0:O.scrollTop)!==null&&G!==void 0?G:0,left:(K=(F=g.current)===null||F===void 0?void 0:F.scrollLeft)!==null&&K!==void 0?K:0}});let D=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var F,G;let j=_=>{_!=null&&(t.setFocusedKey(_),c&&t.replaceSelection(_))},L=O.relatedTarget;var K,W;L&&O.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?j((K=t.lastSelectedKey)!==null&&K!==void 0?K:(F=n.getLastKey)===null||F===void 0?void 0:F.call(n)):j((W=t.firstSelectedKey)!==null&&W!==void 0?W:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!m&&g.current&&(g.current.scrollTop=y.current.top,g.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&g.current){let j=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);j&&(j.contains(document.activeElement)||vi(j),Qf()==="keyboard"&&Jf(j,{containingElement:r.current}))}}},P=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)};const E=b.useRef(i);b.useEffect(()=>{if(E.current){var O,F;let W=null;var G;i==="first"&&(W=(G=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&G!==void 0?G:null);var K;i==="last"&&(W=(K=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n))!==null&&K!==void 0?K:null);let j=t.selectedKeys;if(j.size){for(let L of j)if(t.canSelectItem(L)){W=L;break}}t.setFocused(!0),t.setFocusedKey(W),W==null&&!f&&r.current&&ls(r.current)}},[]);let T=b.useRef(t.focusedKey);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||E.current)&&g.current&&r.current){let O=Qf(),F=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!F)return;(O==="keyboard"||E.current)&&(DC(g.current,F),O!=="virtual"&&Jf(F,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&T.current!=null&&r.current&&ls(r.current),T.current=t.focusedKey,E.current=!1}),sa(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let k={onKeyDown:x,onFocus:D,onBlur:P,onMouseDown(O){g.current===O.target&&O.preventDefault()}},{typeSelectProps:S}=Oj({keyboardDelegate:n,selectionManager:t});d||(k=xt(S,k));let U;return f||(U=t.focusedKey==null?0:-1),{collectionProps:{...k,tabIndex:U}}}function Fj(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=e,h=Gh(),m=_=>{if(_.pointerType==="keyboard"&&Hy(_))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(f==="selection"&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(f==="override"||f==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):_&&_.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||_&&(Js(_)||_.pointerType==="touch"||_.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};b.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!o&&(a?a():document.activeElement!==r.current&&r.current&&ls(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),u=u||t.isDisabled(n);let g={};!o&&!u?g={tabIndex:n===t.focusedKey?0:-1,onFocus(_){_.target===r.current&&t.setFocusedKey(n)}}:u&&(g.onMouseDown=_=>{_.preventDefault()});let v=t.isLink(n)&&f==="override",$=t.isLink(n)&&f!=="selection"&&f!=="none",C=!u&&t.canSelectItem(n)&&!v,x=(c||$)&&!u,y=x&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),D=x&&C&&t.selectionBehavior==="replace",P=y||D,E=b.useRef(null),T=P&&C,k=b.useRef(!1),S=b.useRef(!1),U=_=>{if(c&&c(),$&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions)}},O={};i?(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,_.pointerType==="keyboard"&&(!P||Y$())&&m(_)},d?(O.onPressUp=y?void 0:_=>{_.pointerType!=="keyboard"&&C&&m(_)},O.onPress=y?U:void 0):O.onPress=_=>{if(y||D&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!q$())return;U(_)}else _.pointerType!=="keyboard"&&C&&m(_)}):(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,S.current=y,C&&(_.pointerType==="mouse"&&!y||_.pointerType==="keyboard"&&(!x||Y$()))&&m(_)},O.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&P&&q$()||_.pointerType==="mouse"&&S.current)&&(P?U(_):C&&m(_))}),g["data-key"]=n,O.preventFocusOnPress=o;let{pressProps:F,isPressed:G}=Bc(O),K=D?_=>{E.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),U(_))}:void 0,{longPressProps:W}=BC({isDisabled:!T,onLongPress(_){_.pointerType==="touch"&&(m(_),t.setSelectionBehavior("toggle"))}}),j=_=>{E.current==="touch"&&k.current&&_.preventDefault()},L=t.isLink(n)?_=>{ss.isOpening||_.preventDefault()}:void 0;return{itemProps:xt(g,C||y?F:{},T?W:{},{onDoubleClick:K,onDragStartCapture:j,onClick:L}),isPressed:G,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:u,allowsSelection:C,hasAction:P}}function q$(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Y$(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Z${getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,o;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class A2{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(a,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!dc(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!dc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let a=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Z$(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Z$(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function kj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=e,u=bS({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=b.useMemo(()=>o||new A2({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:u,layoutDelegate:a}),[o,a,n,r,i,u,c]),{collectionProps:f}=T2({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function Bj(e,t,n){let r=Po(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=kj({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=zu({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=Mr(e.id);rp.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:f}=tp({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:xt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...xt(f,a)})}}function P2(e){return null}P2.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,a=t.title||t.children,u=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:u,"aria-label":t["aria-label"],hasChildNodes:Ij(t),*childNodes(){if(r)for(let c of r)yield{type:"item",value:c};else if(i){let c=[];b.Children.forEach(o,d=>{c.push({type:"item",element:d})}),yield*c}}}};function Ij(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&b.Children.count(e.children)>0)}let Lj=P2;class Vj{build(t,n){return this.context=n,J$(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(b.isValidElement(n)&&n.type===b.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];b.Children.forEach(n,a=>{a&&i.push(a)});let o=0;for(let a of i){let u=this.getFullNode({element:a,index:o},{});for(let c of u)o++,yield c}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var a;let u=(a=o.key)!==null&&a!==void 0?a:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(b.isValidElement(t.element)&&t.element.type===b.Fragment){let C=[];b.Children.forEach(t.element.props.children,y=>{C.push(y)});var o;let x=(o=t.index)!==null&&o!==void 0?o:0;for(const y of C)yield*this.getFullNode({element:y,index:x++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=i?i.key:null,yield C;return}a=n.renderer(t.value)}if(b.isValidElement(a)){let C=a.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let P=a.type;throw new Error(`Unknown element <${P}> in collection.`)}let x=C.getCollectionNode(a.props,this.context);var u;let y=(u=t.index)!==null&&u!==void 0?u:0,D=x.next();for(;!D.done&&D.value;){let P=D.value;t.index=y;var c;let E=(c=P.key)!==null&&c!==void 0?c:null;E==null&&(E=P.element?null:this.getKey(a,t,n,r));let k=[...this.getFullNode({...P,key:E,index:y,wrapper:Nj(t.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${a.key}`:a.key,i)];for(let S of k){var d,f;S.value=(f=(d=P.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${fg(S.type)}> in <${fg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${fg(t.type)}> is supported.`);y++,yield S}D=x.next(k)}return}if(t.key==null||t.type==null)return;let m=this;var g,v;let $={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(v=t.textValue)!==null&&v!==void 0?v:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:J$(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${$.key}${x.key}`);let y=m.getFullNode({...x,index:C},m.getChildState(n,x),$.key,$);for(let D of y)C++,yield D}})};yield $}constructor(){this.cache=new WeakMap}}function J$(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Nj(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function fg(e){return e[0].toUpperCase()+e.slice(1)}function jj(e,t,n){let r=b.useMemo(()=>new Vj,[]),{children:i,items:o,collection:a}=e;return b.useMemo(()=>{if(a)return a;let c=r.build({children:i,items:o},n);return t(c)},[r,i,o,a,n,t])}function ip(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Kj(e){return Uj(e)}function Uj(e,t){for(let n of e)return n}function hg(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...X$(e,t),t],i=[...X$(e,n),n],o=r.slice(0,i.length).findIndex((a,u)=>a!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function X$(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Q$=new WeakMap;function _2(e){let t=Q$.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(ip(o,e)):n++};return r(e),Q$.set(e,n),n}function zj(e,t,n){var r,i;let{key:o}=e,a=rp.get(t);var u;let c=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let m=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:a==null?void 0:a.shouldSelectOnPressUp;var g;let v=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var $;let C=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:a==null?void 0:a.shouldUseVirtualFocus;var x;let y=(x=e.isVirtualized)!==null&&x!==void 0?x:a==null?void 0:a.isVirtualized,D=Cu(),P=Cu(),E={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};Co()&&ib()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=P);let T=t.collection.getItem(o);if(y){let L=Number(T==null?void 0:T.index);E["aria-posinset"]=Number.isNaN(L)?void 0:L+1,E["aria-setsize"]=_2(t.collection)}let k=a!=null&&a.onAction?()=>{var L;return a==null||(L=a.onAction)===null||L===void 0?void 0:L.call(a,o)}:void 0,{itemProps:S,isPressed:U,isFocused:O,hasAction:F,allowsSelection:G}=Fj({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&v,isVirtualized:y,shouldUseVirtualFocus:C,isDisabled:c,onAction:k||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?as(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,k):void 0,linkBehavior:a==null?void 0:a.linkBehavior}),{hoverProps:K}=eV({isDisabled:c||!v,onHoverStart(){n$()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=Po(T==null?void 0:T.props);delete W.id;let j=ML(T==null?void 0:T.props);return{optionProps:{...E,...xt(W,S,K,j),id:S2(t,o)},labelProps:{id:D},descriptionProps:{id:P},isFocused:O,isFocusVisible:O&&n$(),isSelected:f,isDisabled:c,isPressed:U,allowsSelection:G,hasAction:F}}var R2={};R2={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var O2={};O2={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var M2={};M2={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var F2={};F2={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var k2={};k2={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var B2={};B2={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var I2={};I2={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var L2={};L2={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var V2={};V2={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var N2={};N2={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var j2={};j2={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var K2={};K2={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var U2={};U2={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var z2={};z2={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var W2={};W2={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var H2={};H2={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var G2={};G2={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var q2={};q2={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Y2={};Y2={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Z2={};Z2={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var J2={};J2={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var X2={};X2={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Q2={};Q2={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var eT={};eT={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var tT={};tT={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var nT={};nT={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var rT={};rT={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var iT={};iT={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var oT={};oT={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var aT={};aT={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var sT={};sT={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var uT={};uT={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var lT={};lT={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var cT={};cT={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var dT={};dT={"ar-AE":R2,"bg-BG":O2,"cs-CZ":M2,"da-DK":F2,"de-DE":k2,"el-GR":B2,"en-US":I2,"es-ES":L2,"et-EE":V2,"fi-FI":N2,"fr-FR":j2,"he-IL":K2,"hr-HR":U2,"hu-HU":z2,"it-IT":W2,"ja-JP":H2,"ko-KR":G2,"lt-LT":q2,"lv-LV":Y2,"nb-NO":Z2,"nl-NL":J2,"pl-PL":X2,"pt-BR":Q2,"pt-PT":eT,"ro-RO":tT,"ru-RU":nT,"sk-SK":rT,"sl-SI":iT,"sr-SP":oT,"sv-SE":aT,"tr-TR":sT,"uk-UA":uT,"zh-CN":lT,"zh-TW":cT};function Wj(e){return e&&e.__esModule?e.default:e}function Hj(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,a=Mr(),{triggerProps:u,overlayProps:c}=$j({type:r},t,n),d=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},f=Qi(Wj(dT),"@react-aria/menu"),{longPressProps:h}=BC({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?m:h,id:a,onKeyDown:d},menuProps:{...c,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function Gj(e){return e&&e.__esModule?e.default:e}function qj(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:a,layoutDelegate:u,shouldFocusWrap:c,isReadOnly:d,isDisabled:f}=e,h=b.useRef(null);n=n??h;let m=Qi(Gj(x2),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:v}=Hj({type:"listbox",isDisabled:f||d},t,n);rp.set(t,{id:v.id});let{collection:$}=t,{disabledKeys:C}=t.selectionManager,x=b.useMemo(()=>a||new A2({collection:$,disabledKeys:C,ref:o,layoutDelegate:u}),[a,u,$,C,o]),{collectionProps:y}=T2({selectionManager:t.selectionManager,keyboardDelegate:x,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),D=Gh(),P=he=>{if(!he.nativeEvent.isComposing)switch(he.key){case"Enter":case"Tab":if(t.isOpen&&he.key==="Enter"&&he.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let le=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(he.key==="Enter"&&le instanceof HTMLAnchorElement){let Fe=t.collection.getItem(t.selectionManager.focusedKey);Fe&&D.open(le,he,Fe.props.href,Fe.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&he.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},E=he=>{var le;let Fe=(n==null?void 0:n.current)&&n.current===he.relatedTarget,et=(le=r.current)===null||le===void 0?void 0:le.contains(he.relatedTarget);Fe||et||(e.onBlur&&e.onBlur(he),t.setFocused(!1))},T=he=>{t.isFocused||(e.onFocus&&e.onFocus(he),t.setFocused(!0))},{isInvalid:k,validationErrors:S,validationDetails:U}=t.displayValidation,{labelProps:O,inputProps:F,descriptionProps:G,errorMessageProps:K}=oj({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:as(t.isOpen&&y.onKeyDown,P,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:T,autoComplete:"off",validate:void 0,[Pu]:t},i),W=he=>{if(he.pointerType==="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(null,"manual")}},j=he=>{if(he.pointerType!=="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(he.pointerType==="keyboard"||he.pointerType==="virtual"?"first":null,"manual")}},L=Su({id:g.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),_=Su({id:v.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),M=b.useRef(0),Y=he=>{if(f||d)return;if(he.timeStamp-M.current<500){var le;he.preventDefault(),(le=i.current)===null||le===void 0||le.focus();return}let Fe=he.target.getBoundingClientRect(),et=he.changedTouches[0],dt=Math.ceil(Fe.left+.5*Fe.width),Dn=Math.ceil(Fe.top+.5*Fe.height);if(et.clientX===dt&&et.clientY===Dn){var yt;he.preventDefault(),(yt=i.current)===null||yt===void 0||yt.focus(),t.toggle(null,"manual"),M.current=he.timeStamp}},V=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var z;let re=(z=V==null?void 0:V.parentKey)!==null&&z!==void 0?z:null;var oe;let fe=(oe=t.selectionManager.focusedKey)!==null&&oe!==void 0?oe:null,ie=b.useRef(re),Ee=b.useRef(fe);b.useEffect(()=>{if(Pf()&&V!=null&&fe!=null&&fe!==Ee.current){let le=t.selectionManager.isSelected(fe),Fe=re!=null?t.collection.getItem(re):null,et=(Fe==null?void 0:Fe["aria-label"])||(typeof(Fe==null?void 0:Fe.rendered)=="string"?Fe.rendered:"")||"";var he;let dt=m.format("focusAnnouncement",{isGroupChange:(he=Fe&&re!==ie.current)!==null&&he!==void 0?he:!1,groupTitle:et,groupCount:Fe?[...ip(Fe,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:le});pu(dt)}ie.current=re,Ee.current=fe});let $e=_2(t.collection),ne=b.useRef($e),ye=b.useRef(t.isOpen);b.useEffect(()=>{let he=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||Pf());if(t.isOpen&&(he||$e!==ne.current)){let le=m.format("countAnnouncement",{optionCount:$e});pu(le)}ne.current=$e,ye.current=t.isOpen});let xe=b.useRef(t.selectedKey);return b.useEffect(()=>{if(Pf()&&t.isFocused&&t.selectedItem&&t.selectedKey!==xe.current){let he=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",le=m.format("selectedAnnouncement",{optionText:he});pu(le)}xe.current=t.selectedKey}),b.useEffect(()=>{if(t.isOpen)return E2([i.current,r.current].filter(he=>he!=null))},[t.isOpen,i,r]),{labelProps:O,buttonProps:{...g,...L,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:W,onPressStart:j,isDisabled:f||d},inputProps:xt(F,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?v.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?S2(t,V.key):void 0,onTouchEnd:Y,autoCorrect:"off",spellCheck:"false"}),listBoxProps:xt(v,_,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:G,errorMessageProps:K,isInvalid:k,validationErrors:S,validationDetails:U}}var fT={};fT={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var hT={};hT={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var pT={};pT={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var mT={};mT={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var gT={};gT={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var yT={};yT={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var vT={};vT={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var bT={};bT={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var $T={};$T={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var xT={};xT={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var wT={};wT={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var DT={};DT={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var ET={};ET={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var CT={};CT={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var ST={};ST={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var TT={};TT={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var AT={};AT={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var PT={};PT={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var _T={};_T={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var RT={};RT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var OT={};OT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var MT={};MT={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var FT={};FT={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var kT={};kT={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var BT={};BT={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var IT={};IT={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var LT={};LT={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var VT={};VT={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var NT={};NT={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var jT={};jT={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var KT={};KT={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var UT={};UT={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var zT={};zT={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var WT={};WT={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Uc={};Uc={"ar-AE":fT,"bg-BG":hT,"cs-CZ":pT,"da-DK":mT,"de-DE":gT,"el-GR":yT,"en-US":vT,"es-ES":bT,"et-EE":$T,"fi-FI":xT,"fr-FR":wT,"he-IL":DT,"hr-HR":ET,"hu-HU":CT,"it-IT":ST,"ja-JP":TT,"ko-KR":AT,"lt-LT":PT,"lv-LV":_T,"nb-NO":RT,"nl-NL":OT,"pl-PL":MT,"pt-BR":FT,"pt-PT":kT,"ro-RO":BT,"ru-RU":IT,"sk-SK":LT,"sl-SI":VT,"sr-SP":NT,"sv-SE":jT,"tr-TR":KT,"uk-UA":UT,"zh-CN":zT,"zh-TW":WT};function Eb(e,t,n){let{direction:r}=Qn(),i=b.useMemo(()=>Zh(t),[t]),o=c=>{if(c.currentTarget.contains(c.target)&&(c.altKey&&(c.key==="ArrowDown"||c.key==="ArrowUp")&&"setOpen"in e&&(c.preventDefault(),c.stopPropagation(),e.setOpen(!0)),!n))switch(c.key){case"ArrowLeft":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,f=wr(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let h;do h=f.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=f.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:u}=Bc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&a()},onPress(c){c.pointerType!=="mouse"&&a()}});return xt(u,{onKeyDown:o})}function Yj(e){return e&&e.__esModule?e.default:e}const HT=new WeakMap,ec="__role_"+Date.now(),GT="__focusManager_"+Date.now();function qT(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:a}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=np({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=b.useRef(null),{focusWithinProps:m}=zu({...e,onFocusWithin(O){var F;h.current=t.value,(F=e.onFocus)===null||F===void 0||F.call(e,O)},onBlurWithin:O=>{var F;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(F=e.onBlur)===null||F===void 0||F.call(e,O)},onFocusWithinChange:e.onFocusChange}),g=Qi(Yj(Uc),"@react-aria/datepicker"),v=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",C=t.value?g.format(v,{[$]:t.formatValue({month:"long"})}):"",x=Fc(C),y=e[ec]==="presentation"?c["aria-describedby"]:[x["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[GT],P=b.useMemo(()=>D||Zh(n),[D,n]),E=Eb(t,n,e[ec]==="presentation");HT.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:P});let T=b.useRef(e.autoFocus),k;e[ec]==="presentation"?k={role:"presentation"}:k=xt(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),b.useEffect(()=>{T.current&&P.focusFirst(),T.current=!1},[P]),ob(e.inputRef,t.value,t.setValue),o5({...e,focus(){P.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let U=Po(e);return{labelProps:{...u,onClick:()=>{P.focusFirst()}},fieldProps:xt(U,k,E,m,{onKeyDown(O){e.onKeyDown&&e.onKeyDown(O)},onKeyUp(O){e.onKeyUp&&e.onKeyUp(O)}}),inputProps:S,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:o,validationDetails:a}}function Zj(e,t,n){var r;let i=qT(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function Jj(e){return e&&e.__esModule?e.default:e}function Xj(e,t,n){let r=Mr(),i=Mr(),o=Mr(),a=Qi(Jj(Uc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=np({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=Eb(t,n),$=h["aria-labelledby"]||h.id,{locale:C}=Qn(),x=t.formatValue(C,{month:"long"}),y=x?a.format("selectedDateDescription",{date:x}):"",D=Fc(y),P=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=Po(e),T=b.useMemo(()=>Zh(n),[n]),{focusWithinProps:k}=zu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:xt(E,v,h,D,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":$,"aria-describedby":P,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...f,onClick:()=>{T.focusFirst()}},fieldProps:{...h,id:o,[ec]:"presentation","aria-describedby":P,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Pu]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:m,errorMessageProps:g,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${$}`,"aria-describedby":P,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${$}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function Qj(e){return e&&e.__esModule?e.default:e}function eK(){let{locale:e}=Qn(),t=KC(Qj(Uc),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new tK(e,t)}},[e,t])}class tK{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function nK(e,t,n){let r=b.useRef(""),{locale:i}=Qn(),o=eK(),{ariaLabel:a,ariaLabelledBy:u,ariaDescribedBy:c,focusManager:d}=HT.get(t),f=e.isPlaceholder?"":e.text,h=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=Ni({month:"long",timeZone:h.timeZone}),g=Ni({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let M=m.format(t.dateValue);f=M!==f?`${f} – ${M}`:M}else e.type==="hour"&&!e.isPlaceholder&&(f=g.format(t.dateValue));let{spinButtonProps:v}=sj({value:e.value,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),$=b.useMemo(()=>new vS(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let M=e.text.slice(0,-1),Y=$.parse(M);M=Y===0?"":M,M.length===0||Y===0?t.clearSegment(e.type):t.setSegment(e.type,Y),r.current=M}else e.type==="dayPeriod"&&t.clearSegment(e.type)},x=M=>{if(M.key==="a"&&(Co()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),C();break}},{startsWith:y}=$S({sensitivity:"base"}),D=Ni({hour:"numeric",hour12:!0}),P=b.useMemo(()=>{let M=new Date;return M.setHours(0),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),E=b.useMemo(()=>{let M=new Date;return M.setHours(12),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),T=Ni({year:"numeric",era:"narrow",timeZone:"UTC"}),k=b.useMemo(()=>{if(e.type!=="era")return[];let M=Qt(new hn(1,1,1),t.calendar),Y=t.calendar.getEras().map(z=>{let re=M.set({year:1,month:1,day:1,era:z}).toDate("UTC"),fe=T.formatToParts(re).find(ie=>ie.type==="era").value;return{era:z,formatted:fe}}),V=rK(Y.map(z=>z.formatted));if(V)for(let z of Y)z.formatted=z.formatted.slice(V);return Y},[T,t.calendar,e.type]),S=M=>{if(t.isDisabled||t.isReadOnly)return;let Y=r.current+M;switch(e.type){case"dayPeriod":if(y(P,M))t.setSegment("dayPeriod",0);else if(y(E,M))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let V=k.find(z=>y(z.formatted,M));V&&(t.setSegment("era",V.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(Y))return;let V=$.parse(Y),z=V,re=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":V>11&&(z=$.parse(M));break;case"h12":re=!1,V>12&&(z=$.parse(M));break}e.value!==void 0&&e.value>=12&&V>1&&(V+=12)}else e.maxValue!==void 0&&V>e.maxValue&&(z=$.parse(M));if(isNaN(V))return;let oe=z!==0||re;oe&&t.setSegment(e.type,z),e.maxValue!==void 0&&(+(V+"0")>e.maxValue||Y.length>=String(e.maxValue).length)?(r.current="",oe&&d.focusNext()):r.current=Y;break}}},U=()=>{r.current="",n.current&&Jf(n.current,{containingElement:qh(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},O=b.useRef(typeof document<"u"?document:null);sa(O,"selectionchange",()=>{var M;let Y=window.getSelection();Y!=null&&Y.anchorNode&&(!((M=n.current)===null||M===void 0)&&M.contains(Y==null?void 0:Y.anchorNode))&&Y.collapse(n.current)});let F=b.useRef("");sa(n,"beforeinput",M=>{if(n.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:M.data!=null&&S(M.data);break}}),sa(n,"input",M=>{let{inputType:Y,data:V}=M;switch(Y){case"insertCompositionText":n.current&&(n.current.textContent=F.current),V!=null&&(y(P,V)||y(E,V))&&S(V);break}}),zt(()=>{let M=n.current;return()=>{document.activeElement===M&&(d.focusPrevious()||d.focusNext())}},[n,d]);let G=Mc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},K=b.useMemo(()=>t.segments.find(M=>M.isEditable),[t.segments]);e!==K&&!t.isInvalid&&(c=void 0);let W=Mr(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":o.of(e.type),_=Su({"aria-label":`${L}${a?`, ${a}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:xt(v,_,{id:W,...G,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":c,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?"false":void 0,autoCorrect:j?"off":void 0,[parseInt(b.version,10)>=17?"enterKeyHint":"enterkeyhint"]:j?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!j?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:x,onFocus:U,style:{caretColor:"transparent"},onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function rK(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function iK(e){return e&&e.__esModule?e.default:e}function oK(e,t,n){var r,i,o;let a=Qi(iK(Uc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=np({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=h["aria-labelledby"]||h.id,{locale:$}=Qn(),C=t.formatValue($,{month:"long"}),x=C?a.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",y=Fc(x),D={"aria-label":a.format("startDate"),"aria-labelledby":v},P={"aria-label":a.format("endDate"),"aria-labelledby":v},E=Mr(),T=Mr(),k=Eb(t,n),S=[y["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,U=b.useMemo(()=>Zh(n,{accept:_=>_.id!==E}),[n,E]),O={[GT]:U,[ec]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},F=Po(e),{focusWithinProps:G}=zu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),K=b.useRef(ja),W=b.useRef(ja);var j,L;return{groupProps:xt(F,k,h,y,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(_){t.isOpen||e.onKeyDown&&e.onKeyDown(_)},onKeyUp(_){t.isOpen||e.onKeyUp&&e.onKeyUp(_)}}),labelProps:{...f,onClick:()=>{U.focusFirst()}},buttonProps:{...y,id:E,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${E} ${v}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:T,"aria-labelledby":`${E} ${v}`},startFieldProps:{...D,...O,value:(j=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&j!==void 0?j:null,onChange:_=>t.setDateTime("start",_),autoFocus:e.autoFocus,name:e.startName,[Pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){K.current=_,t.updateValidation(sh(_,W.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...P,...O,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:_=>t.setDateTime("end",_),name:e.endName,[Pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){W.current=_,t.updateValidation(sh(K.current,_))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:m,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function aK(e,t){let{role:n="dialog"}=e,r=Cu();r=e["aria-label"]?void 0:r;let i=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ls(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),ls(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),Pj(),{dialogProps:{...Po(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function gu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Gy(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let a=Wa(e,t,n).subtract(o);return yc(e,a,t,n,r,i)}function Wa(e,t,n,r,i){let o=e;return t.years?o=_V(e):t.months?o=Vc(e):t.weeks&&(o=fc(e,n)),yc(e,o,t,n,r,i)}function qy(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let a=Wa(e,t,n).subtract(o);return yc(e,a,t,n,r,i)}function yc(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let a=hb(t,Wa(cr(i),n,r));a&&(t=a)}if(o&&e.compare(o)<=0){let a=fb(t,qy(cr(o),n,r));a&&(t=a)}return t}function Yo(e,t,n){if(t){let r=hb(e,cr(t));r&&(e=r)}if(n){let r=fb(e,cr(n));r&&(e=r)}return e}function YT(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function ZT(e){let t=b.useMemo(()=>new ii(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:u,selectionAlignment:c,isDateUnavailable:d,pageBehavior:f="visible"}=e,h=b.useMemo(()=>i(n.calendar),[i,n.calendar]);var m;let[g,v]=Fr(e.value,(m=e.defaultValue)!==null&&m!==void 0?m:null,e.onChange),$=b.useMemo(()=>g?Qt(cr(g),h):null,[g,h]),C=b.useMemo(()=>g&&"timeZone"in g?g.timeZone:n.timeZone,[g,n.timeZone]),x=b.useMemo(()=>e.focusedValue?Yo(Qt(cr(e.focusedValue),h),a,u):void 0,[e.focusedValue,h,a,u]),y=b.useMemo(()=>Yo(e.defaultFocusedValue?Qt(cr(e.defaultFocusedValue),h):$||Qt(Xh(C),h),a,u),[e.defaultFocusedValue,$,C,h,a,u]),[D,P]=Fr(x,y,e.onFocusChange),[E,T]=b.useState(()=>{switch(c){case"start":return Wa(D,o,r,a,u);case"end":return qy(D,o,r,a,u);case"center":default:return Gy(D,o,r,a,u)}}),[k,S]=b.useState(e.autoFocus||!1),U=b.useMemo(()=>{let V={...o};return V.days?V.days--:V.days=-1,E.add(V)},[E,o]),[O,F]=b.useState(h.identifier);if(h.identifier!==O){let V=Qt(D,h);T(Gy(V,o,r,a,u)),P(V),F(h.identifier)}gu(D,a,u)?P(Yo(D,a,u)):D.compare(E)<0?T(qy(D,o,r,a,u)):D.compare(U)>0&&T(Wa(D,o,r,a,u));function G(V){V=Yo(V,a,u),P(V)}function K(V){if(!e.isDisabled&&!e.isReadOnly){let z=V;if(z===null){v(null);return}if(z=Yo(z,a,u),z=YT(z,E,d),!z)return;z=Qt(z,(g==null?void 0:g.calendar)||new dr),g&&"hour"in g?v(g.set(z)):v(z)}}let W=b.useMemo(()=>$?d&&d($)?!0:gu($,a,u):!1,[$,d,a,u]),j=e.isInvalid||e.validationState==="invalid"||W,L=j?"invalid":null,_=b.useMemo(()=>f==="visible"?o:pg(o),[f,o]);var M,Y;return{isDisabled:(M=e.isDisabled)!==null&&M!==void 0?M:!1,isReadOnly:(Y=e.isReadOnly)!==null&&Y!==void 0?Y:!1,value:$,setValue:K,visibleRange:{start:E,end:U},minValue:a,maxValue:u,focusedDate:D,timeZone:C,validationState:L,isValueInvalid:j,setFocusedDate(V){G(V),S(!0)},focusNextDay(){G(D.add({days:1}))},focusPreviousDay(){G(D.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&G(D.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&G(D.subtract({weeks:1}))},focusNextPage(){let V=E.add(_);P(Yo(D.add(_),a,u)),T(Wa(yc(D,V,_,r,a,u),_,r))},focusPreviousPage(){let V=E.subtract(_);P(Yo(D.subtract(_),a,u)),T(Wa(yc(D,V,_,r,a,u),_,r))},focusSectionStart(){o.days?G(E):o.weeks?G(fc(D,r)):(o.months||o.years)&&G(Vc(D))},focusSectionEnd(){o.days?G(U):o.weeks?G(MV(D,r)):(o.months||o.years)&&G(My(D))},focusNextSection(V){if(!V&&!o.days){G(D.add(pg(o)));return}o.days?this.focusNextPage():o.weeks?G(D.add({months:1})):(o.months||o.years)&&G(D.add({years:1}))},focusPreviousSection(V){if(!V&&!o.days){G(D.subtract(pg(o)));return}o.days?this.focusPreviousPage():o.weeks?G(D.subtract({months:1})):(o.months||o.years)&&G(D.subtract({years:1}))},selectFocusedDate(){K(D)},selectDate(V){K(V)},isFocused:k,setFocused:S,isInvalid(V){return gu(V,a,u)},isSelected(V){return $!=null&&xn(V,$)&&!this.isCellDisabled(V)&&!this.isCellUnavailable(V)},isCellFocused(V){return k&&D&&xn(V,D)},isCellDisabled(V){return e.isDisabled||V.compare(E)<0||V.compare(U)>0||this.isInvalid(V)},isCellUnavailable(V){return e.isDateUnavailable?e.isDateUnavailable(V):!1},isPreviousVisibleRangeInvalid(){let V=E.subtract({days:1});return xn(V,E)||this.isInvalid(V)},isNextVisibleRangeInvalid(){let V=U.add({days:1});return xn(V,U)||this.isInvalid(V)},getDatesInWeek(V,z=E){let re=z.add({weeks:V}),oe=[];re=fc(re,r);let fe=db(re,r);for(let ie=0;ie<fe;ie++)oe.push(null);for(;oe.length<7;){oe.push(re);let ie=re.add({days:1});if(xn(re,ie))break;re=ie}for(;oe.length<7;)oe.push(null);return oe}}}function pg(e){let t={...e};for(let n in e)t[n]=1;return t}function sK(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:u,maxValue:c,...d}=e,[f,h]=Fr(t,n||null,r),[m,g]=b.useState(null),v="center";if(f&&f.start&&f.end){let M=Gy(cr(f.start),a,o,u,c).add(a).subtract({days:1});f.end.compare(M)>0&&(v="start")}let $=b.useRef(null),[C,x]=b.useState(null),y=b.useMemo(()=>hb(u,C==null?void 0:C.start),[u,C]),D=b.useMemo(()=>fb(c,C==null?void 0:C.end),[c,C]),P=ZT({...d,value:f&&f.start,createCalendar:i,locale:o,visibleDuration:a,minValue:y,maxValue:D,selectionAlignment:v}),E=_=>{if(_&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const M=tx(_,P,-1),Y=tx(_,P,1);$.current={start:M,end:Y},x($.current)}else $.current=null,x(null)},[T,k]=b.useState(P.visibleRange);(!Oy(P.visibleRange.start,T.start)||!Oy(P.visibleRange.end,T.end))&&(E(m),k(P.visibleRange));let S=_=>{_?(g(_),E(_)):(g(null),E(null))},U=m?mg(m,P.focusedDate):f&&mg(f.start,f.end),O=_=>{if(e.isReadOnly)return;const M=Yo(_,y,D),Y=YT(M,P.visibleRange.start,e.isDateUnavailable);if(Y)if(!m)S(Y);else{let V=mg(m,Y);V&&h({start:ex(V.start,f==null?void 0:f.start),end:ex(V.end,f==null?void 0:f.end)}),S(null)}},[F,G]=b.useState(!1),{isDateUnavailable:K}=e,W=b.useMemo(()=>!f||m?!1:K&&(K(f.start)||K(f.end))?!0:gu(f.start,u,c)||gu(f.end,u,c),[K,f,m,u,c]),j=e.isInvalid||e.validationState==="invalid"||W;return{...P,value:f,setValue:h,anchorDate:m,setAnchorDate:S,highlightedRange:U,validationState:j?"invalid":null,isValueInvalid:j,selectFocusedDate(){O(P.focusedDate)},selectDate:O,highlightDate(_){m&&P.setFocusedDate(_)},isSelected(_){return!!(U&&_.compare(U.start)>=0&&_.compare(U.end)<=0&&!P.isCellDisabled(_)&&!P.isCellUnavailable(_))},isInvalid(_){var M,Y;return P.isInvalid(_)||gu(_,(M=$.current)===null||M===void 0?void 0:M.start,(Y=$.current)===null||Y===void 0?void 0:Y.end)},isDragging:F,setDragging:G}}function mg(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cr(e),end:cr(t)})}function ex(e,t){return e=Qt(e,(t==null?void 0:t.calendar)||new dr),t&&"hour"in t?t.set(e):e}function tx(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class Yy{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let u of a.childNodes)n(u)};for(let a of t)n(a);let r=null,i=0;for(let[a,u]of this.keyMap)r?(r.nextKey=a,u.prevKey=r.key):(this.firstKey=a,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class mi extends Set{constructor(t,n,r){super(t),t instanceof mi?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function uK(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function lK(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=b.useRef(!1),[,u]=b.useState(!1),c=b.useRef(null),d=b.useRef(null),[,f]=b.useState(null),h=b.useMemo(()=>nx(e.selectedKeys),[e.selectedKeys]),m=b.useMemo(()=>nx(e.defaultSelectedKeys,new mi),[e.defaultSelectedKeys]),[g,v]=Fr(h,m,e.onSelectionChange),$=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,x]=b.useState(i);i==="replace"&&C==="toggle"&&typeof g=="object"&&g.size===0&&x("replace");let y=b.useRef(i);return b.useEffect(()=>{i!==y.current&&(x(i),y.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:x,get isFocused(){return a.current},setFocused(D){a.current=D,u(D)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(D,P="first"){c.current=D,d.current=P,f(D)},selectedKeys:g,setSelectedKeys(D){(r||!uK(D,g))&&v(D)},disabledKeys:$,disabledBehavior:o}}function nx(e,t){return e?e==="all"?"all":new mi(e):t}class cK{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&hg(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&hg(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new mi([n],n,n);else{let a=this.state.selectedKeys;var i;let u=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new mi(a,u,n);var o;for(let c of this.getKeyRange(u,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(c);for(let c of this.getKeyRange(n,u))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?hg(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new mi(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new mi([n],n,n):new mi;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new mi;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=Kj(ip(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new mi)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function dK(e){let{filter:t,layoutDelegate:n}=e,r=lK(e),i=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=b.useCallback(f=>t?new Yy(t(f)):new Yy(f),[t]),a=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=jj(e,o,a),c=b.useMemo(()=>new cK(u,r,{layoutDelegate:n}),[u,r,n]);const d=b.useRef(null);return b.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const x=d.current.getItem(r.focusedKey),y=[...d.current.getKeys()].map(S=>{const U=d.current.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null),D=[...u.getKeys()].map(S=>{const U=u.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null);var f,h;const P=((f=y==null?void 0:y.length)!==null&&f!==void 0?f:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var m,g,v;let E=Math.min(P>1?Math.max(((m=x==null?void 0:x.index)!==null&&m!==void 0?m:0)-P+1,0):(g=x==null?void 0:x.index)!==null&&g!==void 0?g:0,((v=D==null?void 0:D.length)!==null&&v!==void 0?v:0)-1),T=null,k=!1;for(;E>=0;){if(!c.isDisabled(D[E].key)){T=D[E];break}if(E<D.length-1&&!k)E++;else{k=!0;var $,C;E>(($=x==null?void 0:x.index)!==null&&$!==void 0?$:0)&&(E=(C=x==null?void 0:x.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(T?T.key:null)}d.current=u},[u,c,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:c}}function fK(e){var t;let[n,r]=Fr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=b.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:u}=dK({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let h=(f=d.values().next().value)!==null&&f!==void 0?f:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),c=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:c}}function Cb(e){let[t,n]=Fr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=b.useCallback(()=>{n(!0)},[n]),i=b.useCallback(()=>{n(!1)},[n]),o=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function hK(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:a=!0}=e,[u,c]=b.useState(!1),[d,f]=b.useState(!1),[h,m]=b.useState(null),g=Z=>{e.onSelectionChange&&e.onSelectionChange(Z),Z===x&&(fe(),z())};var v;let{collection:$,selectionManager:C,selectedKey:x,setSelectedKey:y,selectedItem:D,disabledKeys:P}=fK({...e,onSelectionChange:g,items:(v=e.items)!==null&&v!==void 0?v:e.defaultItems}),E=e.defaultInputValue;if(E==null){var T,k;x==null?E="":E=(k=(T=$.getItem(x))===null||T===void 0?void 0:T.textValue)!==null&&k!==void 0?k:""}let[S,U]=Fr(e.inputValue,E,e.onInputChange),O=$,F=b.useMemo(()=>e.items!=null||!n?$:pK($,S,n),[$,S,n,e.items]),[G,K]=b.useState(F),W=b.useRef("focus"),L=Cb({...e,onOpenChange:Z=>{e.onOpenChange&&e.onOpenChange(Z,Z?W.current:void 0),C.setFocused(Z),Z||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),_=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";(i||F.size>0||pe&&O.size>0||e.items)&&(pe&&!L.isOpen&&e.items===void 0&&c(!0),W.current=te,m(Z),L.open())},M=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";!(i||F.size>0||pe&&O.size>0||e.items)&&!L.isOpen||(pe&&!L.isOpen&&e.items===void 0&&c(!0),L.isOpen||(W.current=te),V(Z))},Y=b.useCallback(()=>{K(u?O:F)},[u,O,F]),V=b.useCallback((Z=null)=>{L.isOpen&&Y(),m(Z),L.toggle()},[L,Y]),z=b.useCallback(()=>{L.isOpen&&(Y(),L.close())},[L,Y]),[re,oe]=b.useState(S),fe=()=>{var Z,te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";oe(pe),U(pe)};var ie,Ee;let $e=b.useRef((Ee=(ie=e.selectedKey)!==null&&ie!==void 0?ie:e.defaultSelectedKey)!==null&&Ee!==void 0?Ee:null);var ne;let ye=b.useRef(x!=null&&(ne=(t=$.getItem(x))===null||t===void 0?void 0:t.textValue)!==null&&ne!==void 0?ne:"");b.useEffect(()=>{var Z;d&&(F.size>0||i)&&!L.isOpen&&S!==re&&r!=="manual"&&_(null,"input"),!u&&!i&&L.isOpen&&F.size===0&&z(),x!=null&&x!==$e.current&&z(),S!==re&&(C.setFocusedKey(null),c(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&y(null)),x!==$e.current&&(e.inputValue===void 0||e.selectedKey===void 0)?fe():re!==S&&oe(S);var te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";!d&&x!=null&&e.inputValue===void 0&&x===$e.current&&ye.current!==pe&&(oe(pe),U(pe)),$e.current=x,ye.current=pe});let xe=Kc({...e,value:b.useMemo(()=>({inputValue:S,selectedKey:x}),[S,x])}),he=()=>{o&&x==null?le():Fe()},le=()=>{$e.current=null,y(null),z()},Fe=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Z,te;(Z=e.onSelectionChange)===null||Z===void 0||Z.call(e,x);var pe;let Ce=x!=null&&(pe=(te=$.getItem(x))===null||te===void 0?void 0:te.textValue)!==null&&pe!==void 0?pe:"";oe(Ce),z()}else fe(),z()};const et=()=>{if(o){var Z,te;const pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";S===pe?Fe():le()}else Fe()};let dt=()=>{L.isOpen&&C.focusedKey!=null?x===C.focusedKey?Fe():y(C.focusedKey):et()},Dn=b.useRef(S),yt=Z=>{Z?(Dn.current=S,r==="focus"&&!e.isReadOnly&&_(null,"focus")):(a&&et(),S!==Dn.current&&xe.commitValidation()),f(Z)},q=b.useMemo(()=>L.isOpen?u?O:F:G,[L.isOpen,O,F,u,G]);return{...xe,...L,focusStrategy:h,toggle:M,open:_,close:et,selectionManager:C,selectedKey:x,setSelectedKey:y,disabledKeys:P,isFocused:d,setFocused:yt,selectedItem:D,collection:q,inputValue:S,setInputValue:U,commit:dt,revert:he}}function pK(e,t,n){return new Yy(JT(e,e,t,n))}function JT(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let a=JT(e,ip(o,e),n,r);[...a].some(u=>u.type==="item")&&i.push({...o,childNodes:a})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var XT={};XT={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var QT={};QT={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var eA={};eA={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var tA={};tA={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var nA={};nA={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var rA={};rA={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var iA={};iA={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var oA={};oA={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var aA={};aA={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var sA={};sA={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var uA={};uA={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var lA={};lA={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var cA={};cA={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var dA={};dA={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var fA={};fA={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var hA={};hA={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var pA={};pA={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var mA={};mA={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var gA={};gA={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var yA={};yA={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var vA={};vA={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var bA={};bA={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var $A={};$A={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var xA={};xA={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var wA={};wA={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var DA={};DA={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var EA={};EA={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var CA={};CA={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var SA={};SA={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var TA={};TA={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var AA={};AA={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var PA={};PA={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var _A={};_A={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var RA={};RA={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var OA={};OA={"ar-AE":XT,"bg-BG":QT,"cs-CZ":eA,"da-DK":tA,"de-DE":nA,"el-GR":rA,"en-US":iA,"es-ES":oA,"et-EE":aA,"fi-FI":sA,"fr-FR":uA,"he-IL":lA,"hr-HR":cA,"hu-HU":dA,"it-IT":fA,"ja-JP":hA,"ko-KR":pA,"lt-LT":mA,"lv-LV":gA,"nb-NO":yA,"nl-NL":vA,"pl-PL":bA,"pt-BR":$A,"pt-PT":xA,"ro-RO":wA,"ru-RU":DA,"sk-SK":EA,"sl-SI":CA,"sr-SP":SA,"sv-SE":TA,"tr-TR":AA,"uk-UA":PA,"zh-CN":_A,"zh-TW":RA};function mK(e){return e&&e.__esModule?e.default:e}const MA=new ya(mK(OA));function FA(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function lh(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,c=o||a||u,d=[];if(c){let f=FA(),h=ya.getGlobalDictionaryForPackage("@react-stately/datepicker")||MA,m=new jC(f,h),g=new ii(f,xo({},i)),v=g.resolvedOptions().timeZone;a&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:g.format(t.toDate(v))})),o&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:g.format(n.toDate(v))})),u&&d.push(m.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function gK(e,t,n,r,i){var o;let a=lh((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let c=lh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=sh(a,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let f=ya.getGlobalDictionaryForPackage("@react-stately/datepicker")||MA;d=sh(d,{isInvalid:!0,validationErrors:[f.getStringForLocale("rangeReversed",FA())],validationDetails:{...ep,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const yK={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},vK={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function xo(e,t){e={...t.shouldForceLeadingZeros?vK:yK,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let u=i.indexOf(r);if(u<0&&(u=2),a>u)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(a,u+1).reduce((f,h)=>(f[h]=e[h],f),{});return t.hourCycle!=null&&(c.hour12=t.hourCycle===12),c.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(c.timeZoneName="short"),t.showEra&&a===0&&(c.era="short"),c}function tu(e){return e&&"hour"in e?e:new Nc}function kA(e,t){if(e===null)return null;if(e)return Qt(e,t)}function _l(e,t,n,r){if(e)return kA(e,n);let i=Qt(WC(r??Lc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?cr(i):r?i:Di(i)}function Sb(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=b.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function bK(e){let t=Cb(e),[n,r]=Fr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,a]=Sb(i,e.granularity),u=n!=null?n.toDate(a??"UTC"):null,c=o==="hour"||o==="minute"||o==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,m]=b.useState(null),[g,v]=b.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let $=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=b.useMemo(()=>({granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:$}),[o,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,$]),{minValue:x,maxValue:y,isDateUnavailable:D}=e,P=b.useMemo(()=>lh(n,x,y,D,C),[n,x,y,D,C]),E=Kc({...e,value:n,builtinValidation:P}),T=E.displayValidation.isInvalid,k=e.validationState||(T?"invalid":null),S=(F,G)=>{r("timeZone"in G?G.set(cr(F)):Di(F,G)),m(null),v(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:F=>{let G=typeof f=="function"?f():f;c?g||G?S(F,g||tu(e.defaultValue||e.placeholderValue)):m(F):(r(F),E.commitValidation()),G&&t.setOpen(!1)},setTimeValue:F=>{h&&F?S(h,F):v(F)},granularity:o,hasTime:c,...t,setOpen(F){!F&&!n&&h&&c&&S(h,g||tu(e.defaultValue||e.placeholderValue)),t.setOpen(F)},validationState:k,isInvalid:T,formatValue(F,G){if(!u)return"";let K=xo(G,C);return new ii(F,K).format(u)},getDateFormatter(F,G){let K={...C,...G},W=xo({},K);return new ii(F,W)}}}const $K=new ya({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function xK(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?$K.getStringForLocale(e,n):"––"}const hf={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},rx={year:5,month:2,day:7,hour:2,minute:15,second:15},wK={dayperiod:"dayPeriod"};function BA(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:a=!1,minValue:u,maxValue:c,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[h,m]=Sb(f,e.granularity),g=m||"UTC";if(f&&!(h in f))throw new Error("Invalid granularity "+h+" for value "+f.toString());let v=b.useMemo(()=>new ii(t),[t]),$=b.useMemo(()=>n(v.resolvedOptions().calendar),[n,v]);var C;let[x,y]=Fr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=b.useMemo(()=>{var ne;return(ne=kA(x,$))!==null&&ne!==void 0?ne:null},[x,$]),[P,E]=b.useState(()=>_l(e.placeholderValue,h,$,m)),T=D||P,k=$.identifier==="gregory"&&T.era==="BC",S=b.useMemo(()=>{var ne;return{granularity:h,maxGranularity:(ne=e.maxGranularity)!==null&&ne!==void 0?ne:"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,m,r,k]),U=b.useMemo(()=>xo({},S),[S]),O=b.useMemo(()=>new ii(t,U),[t,U]),F=b.useMemo(()=>O.resolvedOptions(),[O]),G=b.useMemo(()=>O.formatToParts(new Date).filter(ne=>hf[ne.type]).reduce((ne,ye)=>(ne[ye.type]=!0,ne),{}),[O]),[K,W]=b.useState(()=>e.value||e.defaultValue?{...G}:{}),j=b.useRef(null),L=b.useRef($.identifier);b.useEffect(()=>{$.identifier!==L.current&&(L.current=$.identifier,E(ne=>Object.keys(K).length>0?Qt(ne,$):_l(e.placeholderValue,h,$,m)))},[$,h,K,m,e.placeholderValue]),x&&Object.keys(K).length<Object.keys(G).length&&(K={...G},W(K)),x==null&&Object.keys(K).length===Object.keys(G).length&&(K={},W(K),E(_l(e.placeholderValue,h,$,m)));let _=D&&Object.keys(K).length>=Object.keys(G).length?D:P,M=ne=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(K),xe=Object.keys(G);ne==null?(y(null),E(_l(e.placeholderValue,h,$,m)),W({})):ye.length>=xe.length||ye.length===xe.length-1&&G.dayPeriod&&!K.dayPeriod&&j.current!=="dayPeriod"?(ne=Qt(ne,(f==null?void 0:f.calendar)||new dr),y(ne)):E(ne),j.current=null},Y=b.useMemo(()=>_.toDate(g),[_,g]),V=b.useMemo(()=>O.formatToParts(Y).map(ne=>{let ye=hf[ne.type];ne.type==="era"&&$.getEras().length===1&&(ye=!1);let xe=hf[ne.type]&&!K[ne.type],he=hf[ne.type]?xK(ne.type,ne.value,t):null;return{type:wK[ne.type]||ne.type,text:xe?he:ne.value,...DK(_,ne.type,F),isPlaceholder:xe,placeholder:he,isEditable:ye}}),[Y,K,O,F,_,$,t]);G.era&&K.year&&!K.era?(K.era=!0,W({...K})):!G.era&&K.era&&(delete K.era,W({...K}));let z=ne=>{K[ne]=!0,ne==="year"&&G.era&&(K.era=!0),W({...K})},re=(ne,ye)=>{if(K[ne])M(EK(_,ne,ye,F));else{z(ne);let xe=Object.keys(K),he=Object.keys(G);(xe.length>=he.length||xe.length===he.length-1&&G.dayPeriod&&!K.dayPeriod)&&M(_)}},oe=b.useMemo(()=>lh(x,u,c,d,S),[x,u,c,d,S]),fe=Kc({...e,value:x,builtinValidation:oe}),ie=fe.displayValidation.isInvalid,Ee=e.validationState||(ie?"invalid":null);var $e;return{...fe,value:D,dateValue:Y,calendar:$,setValue:M,segments:V,dateFormatter:O,validationState:Ee,isInvalid:ie,granularity:h,maxGranularity:($e=e.maxGranularity)!==null&&$e!==void 0?$e:"year",isDisabled:i,isReadOnly:o,isRequired:a,increment(ne){re(ne,1)},decrement(ne){re(ne,-1)},incrementPage(ne){re(ne,rx[ne]||1)},decrementPage(ne){re(ne,-(rx[ne]||1))},setSegment(ne,ye){z(ne),M(CK(_,ne,ye,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ne=Object.keys(K),ye=Object.keys(G);ne.length===ye.length-1&&G.dayPeriod&&!K.dayPeriod&&(K={...G},W(K),M(_.copy()))},clearSegment(ne){delete K[ne],j.current=ne,W({...K});let ye=_l(e.placeholderValue,h,$,m),xe=_;if(ne==="dayPeriod"&&"hour"in _&&"hour"in ye){let he=_.hour>=12,le=ye.hour>=12;he&&!le?xe=_.set({hour:_.hour-12}):!he&&le&&(xe=_.set({hour:_.hour+12}))}else ne in _&&(xe=_.set({[ne]:ye[ne]}));y(null),M(xe)},formatValue(ne){if(!D)return"";let ye=xo(ne,S);return new ii(t,ye).format(Y)},getDateFormatter(ne,ye){let xe={...S,...ye},he=xo({},xe);return new ii(ne,he)}}}function DK(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:RV(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:OV(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function EK(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return e.set({hour:o?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function CK(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return n>=12===o?e:e.set({hour:o?i-12:i+12})}case"hour":if(r.hour12){let o=e.hour>=12;!o&&n===12&&(n=0),o&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function SK(e){var t,n;let r=Cb(e),[i,o]=Fr(e.value,e.defaultValue||null,e.onChange),[a,u]=b.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},u(a));let c=i||a,d=L=>{u(L||{start:null,end:null}),Fa(L)?o(L):o(null)},f=(c==null?void 0:c.start)||(c==null?void 0:c.end)||e.placeholderValue||null,[h,m]=Sb(f,e.granularity),g=h==="hour"||h==="minute"||h==="second";var v;let $=(v=e.shouldCloseOnSelect)!==null&&v!==void 0?v:!0,[C,x]=b.useState(null),[y,D]=b.useState(null);c&&Fa(c)&&(C=c,"hour"in c.start&&(y=c));let P=(L,_)=>{d({start:"timeZone"in _.start?_.start.set(cr(L.start)):Di(L.start,_.start),end:"timeZone"in _.end?_.end.set(cr(L.end)):Di(L.end,_.end)}),x(null),D(null),K.commitValidation()},E=L=>{let _=typeof $=="function"?$():$;g?Fa(L)&&(y!=null&&y.start)&&(y!=null&&y.end)?P(L,{start:(y==null?void 0:y.start)||tu(e.placeholderValue),end:(y==null?void 0:y.end)||tu(e.placeholderValue)}):x(L):Fa(L)?(d(L),K.commitValidation()):x(L),_&&r.setOpen(!1)},T=L=>{Fa(C)&&Fa(L)?P(C,L):D(L)},k=(c==null||(t=c.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&c.start.era==="BC"||(c==null||(n=c.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&c.end.era==="BC",S=b.useMemo(()=>({granularity:h,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[h,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,k]),{minValue:U,maxValue:O,isDateUnavailable:F}=e,G=b.useMemo(()=>gK(c,U,O,F,S),[c,U,O,F,S]),K=Kc({...e,value:i,name:b.useMemo(()=>[e.startName,e.endName].filter(L=>L!=null),[e.startName,e.endName]),builtinValidation:G}),W=K.displayValidation.isInvalid,j=e.validationState||(W?"invalid":null);return{...K,value:c,setValue:d,dateRange:C,timeRange:y,granularity:h,hasTime:g,setDate(L,_){var M,Y;E(L==="start"?{start:_,end:(M=C==null?void 0:C.end)!==null&&M!==void 0?M:null}:{start:(Y=C==null?void 0:C.start)!==null&&Y!==void 0?Y:null,end:_})},setTime(L,_){var M,Y;T(L==="start"?{start:_,end:(M=y==null?void 0:y.end)!==null&&M!==void 0?M:null}:{start:(Y=y==null?void 0:y.start)!==null&&Y!==void 0?Y:null,end:_})},setDateTime(L,_){var M,Y;d(L==="start"?{start:_,end:(M=c==null?void 0:c.end)!==null&&M!==void 0?M:null}:{start:(Y=c==null?void 0:c.start)!==null&&Y!==void 0?Y:null,end:_})},setDateRange:E,setTimeRange:T,...r,setOpen(L){!L&&!(c!=null&&c.start&&(c!=null&&c.end))&&Fa(C)&&g&&P(C,{start:(y==null?void 0:y.start)||tu(e.placeholderValue),end:(y==null?void 0:y.end)||tu(e.placeholderValue)}),r.setOpen(L)},validationState:j,isInvalid:W,formatValue(L,_){if(!c||!c.start||!c.end)return null;let M="timeZone"in c.start?c.start.timeZone:void 0,Y=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),V="timeZone"in c.end?c.end.timeZone:void 0,z=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),re=xo(_,{granularity:Y,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:c.start.calendar.identifier==="gregory"&&c.start.era==="BC"||c.end.calendar.identifier==="gregory"&&c.end.era==="BC"}),oe=c.start.toDate(M||"UTC"),fe=c.end.toDate(V||"UTC"),ie=new ii(L,re),Ee;if(M===V&&Y===z&&c.start.compare(c.end)!==0){try{let $e=ie.formatRangeToParts(oe,fe),ne=-1;for(let he=0;he<$e.length;he++){let le=$e[he];if(le.source==="shared"&&le.type==="literal")ne=he;else if(le.source==="endRange")break}let ye="",xe="";for(let he=0;he<$e.length;he++)he<ne?ye+=$e[he].value:he>ne&&(xe+=$e[he].value);return{start:ye,end:xe}}catch{}Ee=ie}else{let $e=xo(_,{granularity:z,timeZone:V,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ee=new ii(L,$e)}return{start:ie.format(oe),end:Ee.format(fe)}},getDateFormatter(L,_){let M={...S,..._},Y=xo({},M);return new ii(L,Y)}}}function Fa(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function TK(e){let{placeholderValue:t=new Nc,minValue:n,maxValue:r,granularity:i,validate:o}=e;var a;let[u,c]=Fr(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=u||t,f=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,m=b.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?JC(Rl(t),D||h):Rl(t)},[t,d,h]),g=b.useMemo(()=>Rl(n,f),[n,f]),v=b.useMemo(()=>Rl(r,f),[r,f]),$=b.useMemo(()=>u&&"day"in u?g$(u):u,[u]),C=b.useMemo(()=>u==null?null:Rl(u),[u]);return{...BA({...e,value:C,defaultValue:void 0,minValue:g,maxValue:v,onChange:D=>{c(f||h?D:D&&g$(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:m??void 0,createCalendar:()=>new dr,validate:b.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:$}}function Rl(e,t=Xh(Lc())){return e?"day"in e?e:Di(t,e):null}var Ff={exports:{}},AK=Ff.exports,ix;function PK(){return ix||(ix=1,function(e,t){(function(n,r){e.exports=r()})(AK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",c="hour",d="day",f="week",h="month",m="quarter",g="year",v="date",$="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var j=["th","st","nd","rd"],L=W%100;return"["+W+(j[(L-20)%10]||j[L]||j[0])+"]"}},D=function(W,j,L){var _=String(W);return!_||_.length>=j?W:""+Array(j+1-_.length).join(L)+W},P={s:D,z:function(W){var j=-W.utcOffset(),L=Math.abs(j),_=Math.floor(L/60),M=L%60;return(j<=0?"+":"-")+D(_,2,"0")+":"+D(M,2,"0")},m:function W(j,L){if(j.date()<L.date())return-W(L,j);var _=12*(L.year()-j.year())+(L.month()-j.month()),M=j.clone().add(_,h),Y=L-M<0,V=j.clone().add(_+(Y?-1:1),h);return+(-(_+(L-M)/(Y?M-V:V-M))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:h,y:g,w:f,d,D:v,h:c,m:u,s:a,ms:o,Q:m}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},E="en",T={};T[E]=y;var k="$isDayjsObject",S=function(W){return W instanceof G||!(!W||!W[k])},U=function W(j,L,_){var M;if(!j)return E;if(typeof j=="string"){var Y=j.toLowerCase();T[Y]&&(M=Y),L&&(T[Y]=L,M=Y);var V=j.split("-");if(!M&&V.length>1)return W(V[0])}else{var z=j.name;T[z]=j,M=z}return!_&&M&&(E=M),M||!_&&E},O=function(W,j){if(S(W))return W.clone();var L=typeof j=="object"?j:{};return L.date=W,L.args=arguments,new G(L)},F=P;F.l=U,F.i=S,F.w=function(W,j){return O(W,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var G=function(){function W(L){this.$L=U(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[k]=!0}var j=W.prototype;return j.parse=function(L){this.$d=function(_){var M=_.date,Y=_.utc;if(M===null)return new Date(NaN);if(F.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var V=M.match(C);if(V){var z=V[2]-1||0,re=(V[7]||"0").substring(0,3);return Y?new Date(Date.UTC(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)):new Date(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)}}return new Date(M)}(L),this.init()},j.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==$},j.isSame=function(L,_){var M=O(L);return this.startOf(_)<=M&&M<=this.endOf(_)},j.isAfter=function(L,_){return O(L)<this.startOf(_)},j.isBefore=function(L,_){return this.endOf(_)<O(L)},j.$g=function(L,_,M){return F.u(L)?this[_]:this.set(M,L)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(L,_){var M=this,Y=!!F.u(_)||_,V=F.p(L),z=function(ye,xe){var he=F.w(M.$u?Date.UTC(M.$y,xe,ye):new Date(M.$y,xe,ye),M);return Y?he:he.endOf(d)},re=function(ye,xe){return F.w(M.toDate()[ye].apply(M.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(xe)),M)},oe=this.$W,fe=this.$M,ie=this.$D,Ee="set"+(this.$u?"UTC":"");switch(V){case g:return Y?z(1,0):z(31,11);case h:return Y?z(1,fe):z(0,fe+1);case f:var $e=this.$locale().weekStart||0,ne=(oe<$e?oe+7:oe)-$e;return z(Y?ie-ne:ie+(6-ne),fe);case d:case v:return re(Ee+"Hours",0);case c:return re(Ee+"Minutes",1);case u:return re(Ee+"Seconds",2);case a:return re(Ee+"Milliseconds",3);default:return this.clone()}},j.endOf=function(L){return this.startOf(L,!1)},j.$set=function(L,_){var M,Y=F.p(L),V="set"+(this.$u?"UTC":""),z=(M={},M[d]=V+"Date",M[v]=V+"Date",M[h]=V+"Month",M[g]=V+"FullYear",M[c]=V+"Hours",M[u]=V+"Minutes",M[a]=V+"Seconds",M[o]=V+"Milliseconds",M)[Y],re=Y===d?this.$D+(_-this.$W):_;if(Y===h||Y===g){var oe=this.clone().set(v,1);oe.$d[z](re),oe.init(),this.$d=oe.set(v,Math.min(this.$D,oe.daysInMonth())).$d}else z&&this.$d[z](re);return this.init(),this},j.set=function(L,_){return this.clone().$set(L,_)},j.get=function(L){return this[F.p(L)]()},j.add=function(L,_){var M,Y=this;L=Number(L);var V=F.p(_),z=function(fe){var ie=O(Y);return F.w(ie.date(ie.date()+Math.round(fe*L)),Y)};if(V===h)return this.set(h,this.$M+L);if(V===g)return this.set(g,this.$y+L);if(V===d)return z(1);if(V===f)return z(7);var re=(M={},M[u]=r,M[c]=i,M[a]=n,M)[V]||1,oe=this.$d.getTime()+L*re;return F.w(oe,this)},j.subtract=function(L,_){return this.add(-1*L,_)},j.format=function(L){var _=this,M=this.$locale();if(!this.isValid())return M.invalidDate||$;var Y=L||"YYYY-MM-DDTHH:mm:ssZ",V=F.z(this),z=this.$H,re=this.$m,oe=this.$M,fe=M.weekdays,ie=M.months,Ee=M.meridiem,$e=function(xe,he,le,Fe){return xe&&(xe[he]||xe(_,Y))||le[he].slice(0,Fe)},ne=function(xe){return F.s(z%12||12,xe,"0")},ye=Ee||function(xe,he,le){var Fe=xe<12?"AM":"PM";return le?Fe.toLowerCase():Fe};return Y.replace(x,function(xe,he){return he||function(le){switch(le){case"YY":return String(_.$y).slice(-2);case"YYYY":return F.s(_.$y,4,"0");case"M":return oe+1;case"MM":return F.s(oe+1,2,"0");case"MMM":return $e(M.monthsShort,oe,ie,3);case"MMMM":return $e(ie,oe);case"D":return _.$D;case"DD":return F.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return $e(M.weekdaysMin,_.$W,fe,2);case"ddd":return $e(M.weekdaysShort,_.$W,fe,3);case"dddd":return fe[_.$W];case"H":return String(z);case"HH":return F.s(z,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ye(z,re,!0);case"A":return ye(z,re,!1);case"m":return String(re);case"mm":return F.s(re,2,"0");case"s":return String(_.$s);case"ss":return F.s(_.$s,2,"0");case"SSS":return F.s(_.$ms,3,"0");case"Z":return V}return null}(xe)||V.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(L,_,M){var Y,V=this,z=F.p(_),re=O(L),oe=(re.utcOffset()-this.utcOffset())*r,fe=this-re,ie=function(){return F.m(V,re)};switch(z){case g:Y=ie()/12;break;case h:Y=ie();break;case m:Y=ie()/3;break;case f:Y=(fe-oe)/6048e5;break;case d:Y=(fe-oe)/864e5;break;case c:Y=fe/i;break;case u:Y=fe/r;break;case a:Y=fe/n;break;default:Y=fe}return M?Y:F.a(Y)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return T[this.$L]},j.locale=function(L,_){if(!L)return this.$L;var M=this.clone(),Y=U(L,_,!0);return Y&&(M.$L=Y),M},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},W}(),K=G.prototype;return O.prototype=K,[["$ms",o],["$s",a],["$m",u],["$H",c],["$W",d],["$M",h],["$y",g],["$D",v]].forEach(function(W){K[W[1]]=function(j){return this.$g(j,W[0],W[1])}}),O.extend=function(W,j){return W.$i||(W(j,G,O),W.$i=!0),O},O.locale=U,O.isDayjs=S,O.unix=function(W){return O(1e3*W)},O.en=T[E],O.Ls=T,O.p={},O})}(Ff)),Ff.exports}var _K=PK();const RK=Ao(_K);var zc=e=>e.type==="checkbox",Ha=e=>e instanceof Date,sr=e=>e==null;const IA=e=>typeof e=="object";var fn=e=>!sr(e)&&!Array.isArray(e)&&IA(e)&&!Ha(e),LA=e=>fn(e)&&e.target?zc(e.target)?e.target.checked:e.target.value:e,OK=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,VA=(e,t)=>e.has(OK(t)),MK=e=>{const t=e.constructor&&e.constructor.prototype;return fn(t)&&t.hasOwnProperty("isPrototypeOf")},Tb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function br(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Tb&&(e instanceof Blob||r))&&(n||fn(e)))if(t=n?[]:{},!n&&!MK(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=br(e[i]));else return e;return t}var op=e=>Array.isArray(e)?e.filter(Boolean):[],dn=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!fn(e))return n;const r=op(t.split(/[,[\].]+?/)).reduce((i,o)=>sr(i)?i:i[o],e);return dn(r)||r===e?dn(e[t])?n:e[t]:r},ti=e=>typeof e=="boolean",Ab=e=>/^\w*$/.test(e),NA=e=>op(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tt=(e,t,n)=>{let r=-1;const i=Ab(t)?[t]:NA(t),o=i.length,a=o-1;for(;++r<o;){const u=i[r];let c=n;if(r!==a){const d=e[u];c=fn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=c,e=e[u]}return e};const ch={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},po={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},jA=b.createContext(null),ap=()=>b.useContext(jA),FK=e=>{const{children:t,...n}=e;return b.createElement(jA.Provider,{value:n},t)};var KA=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==yi.all&&(t._proxyFormState[a]=!r||yi.all),n&&(n[a]=!0),e[a]}});return i},$r=e=>fn(e)&&!Object.keys(e).length,UA=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return $r(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||yi.all))},tc=e=>Array.isArray(e)?e:[e],zA=(e,t,n)=>!e||!t||e===t||tc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Pb(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function kK(e){const t=ap(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[a,u]=b.useState(n._formState),c=b.useRef(!0),d=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=b.useRef(i);return f.current=i,Pb({disabled:r,next:h=>c.current&&zA(f.current,h.name,o)&&UA(h,d.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),b.useEffect(()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),b.useMemo(()=>KA(a,n,d.current,!1),[a,n])}var Ki=e=>typeof e=="string",WA=(e,t,n,r,i)=>Ki(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ae(n,o))):(r&&(t.watchAll=!0),n);function HA(e){const t=ap(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},u=b.useRef(r);u.current=r,Pb({disabled:o,subject:n._subjects.values,next:f=>{zA(u.current,f.name,a)&&d(br(WA(u.current,n._names,f.values||n._formValues,!1,i)))}});const[c,d]=b.useState(n._getWatch(r,i));return b.useEffect(()=>n._removeUnmounted()),c}function BK(e){const t=ap(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=VA(i._names.array,n),u=HA({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),c=kK({control:i,name:n,exact:!0}),d=b.useRef(i.register(n,{...e.rules,value:u,...ti(e.disabled)?{disabled:e.disabled}:{}})),f=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(c.errors,n)}}),[c,n]),h=b.useMemo(()=>({name:n,value:u,...ti(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:m=>d.current.onChange({target:{value:LA(m),name:n},type:ch.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:ch.BLUR}),ref:m=>{const g=Ae(i._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:v=>m.setCustomValidity(v),reportValidity:()=>m.reportValidity()})}}),[n,i._formValues,r,c.disabled,u,i._fields]);return b.useEffect(()=>{const m=i._options.shouldUnregister||o,g=(v,$)=>{const C=Ae(i._fields,v);C&&C._f&&(C._f.mount=$)};if(g(n,!0),m){const v=br(Ae(i._options.defaultValues,n));Tt(i._defaultValues,n,v),dn(Ae(i._formValues,n))&&Tt(i._formValues,n,v)}return!a&&i.register(n),()=>{(a?m&&!i._state.action:m)?i.unregister(n):g(n,!1)}},[n,i,a,o]),b.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),b.useMemo(()=>({field:h,formState:c,fieldState:f}),[h,c,f])}const IK=e=>e.render(BK(e));var GA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ox=e=>({isOnSubmit:!e||e===yi.onSubmit,isOnBlur:e===yi.onBlur,isOnChange:e===yi.onChange,isOnAll:e===yi.all,isOnTouch:e===yi.onTouched}),ax=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const nc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ae(e,i);if(o){const{_f:a,...u}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(nc(u,t))break}else if(fn(u)&&nc(u,t))break}}};var LK=(e,t,n)=>{const r=tc(Ae(e,n));return Tt(r,"root",t[n]),Tt(e,n,r),e},_b=e=>e.type==="file",Li=e=>typeof e=="function",dh=e=>{if(!Tb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},kf=e=>Ki(e),Rb=e=>e.type==="radio",fh=e=>e instanceof RegExp;const sx={value:!1,isValid:!1},ux={value:!0,isValid:!0};var qA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dn(e[0].attributes.value)?dn(e[0].value)||e[0].value===""?ux:{value:e[0].value,isValid:!0}:ux:sx}return sx};const lx={isValid:!1,value:null};var YA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,lx):lx;function cx(e,t,n="validate"){if(kf(e)||Array.isArray(e)&&e.every(kf)||ti(e)&&!e)return{type:n,message:kf(e)?e:"",ref:t}}var qs=e=>fn(e)&&!fh(e)?e:{value:e,message:""},dx=async(e,t,n,r,i,o)=>{const{ref:a,refs:u,required:c,maxLength:d,minLength:f,min:h,max:m,pattern:g,validate:v,name:$,valueAsNumber:C,mount:x}=e._f,y=Ae(n,$);if(!x||t.has($))return{};const D=u?u[0]:a,P=G=>{i&&D.reportValidity&&(D.setCustomValidity(ti(G)?"":G||""),D.reportValidity())},E={},T=Rb(a),k=zc(a),S=T||k,U=(C||_b(a))&&dn(a.value)&&dn(y)||dh(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,O=GA.bind(null,$,r,E),F=(G,K,W,j=po.maxLength,L=po.minLength)=>{const _=G?K:W;E[$]={type:G?j:L,message:_,ref:a,...O(G?j:L,_)}};if(o?!Array.isArray(y)||!y.length:c&&(!S&&(U||sr(y))||ti(y)&&!y||k&&!qA(u).isValid||T&&!YA(u).isValid)){const{value:G,message:K}=kf(c)?{value:!!c,message:c}:qs(c);if(G&&(E[$]={type:po.required,message:K,ref:D,...O(po.required,K)},!r))return P(K),E}if(!U&&(!sr(h)||!sr(m))){let G,K;const W=qs(m),j=qs(h);if(!sr(y)&&!isNaN(y)){const L=a.valueAsNumber||y&&+y;sr(W.value)||(G=L>W.value),sr(j.value)||(K=L<j.value)}else{const L=a.valueAsDate||new Date(y),_=V=>new Date(new Date().toDateString()+" "+V),M=a.type=="time",Y=a.type=="week";Ki(W.value)&&y&&(G=M?_(y)>_(W.value):Y?y>W.value:L>new Date(W.value)),Ki(j.value)&&y&&(K=M?_(y)<_(j.value):Y?y<j.value:L<new Date(j.value))}if((G||K)&&(F(!!G,W.message,j.message,po.max,po.min),!r))return P(E[$].message),E}if((d||f)&&!U&&(Ki(y)||o&&Array.isArray(y))){const G=qs(d),K=qs(f),W=!sr(G.value)&&y.length>+G.value,j=!sr(K.value)&&y.length<+K.value;if((W||j)&&(F(W,G.message,K.message),!r))return P(E[$].message),E}if(g&&!U&&Ki(y)){const{value:G,message:K}=qs(g);if(fh(G)&&!y.match(G)&&(E[$]={type:po.pattern,message:K,ref:a,...O(po.pattern,K)},!r))return P(K),E}if(v){if(Li(v)){const G=await v(y,n),K=cx(G,D);if(K&&(E[$]={...K,...O(po.validate,K.message)},!r))return P(K.message),E}else if(fn(v)){let G={};for(const K in v){if(!$r(G)&&!r)break;const W=cx(await v[K](y,n),D,K);W&&(G={...W,...O(K,W.message)},P(W.message),r&&(E[$]=G))}if(!$r(G)&&(E[$]={ref:D,...G},!r))return E}}return P(!0),E};function VK(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=dn(e)?r++:e[t[r++]];return e}function NK(e){for(const t in e)if(e.hasOwnProperty(t)&&!dn(e[t]))return!1;return!0}function $n(e,t){const n=Array.isArray(t)?t:Ab(t)?[t]:NA(t),r=n.length===1?e:VK(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(fn(r)&&$r(r)||Array.isArray(r)&&NK(r))&&$n(e,n.slice(0,-1)),e}var gg=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},Zy=e=>sr(e)||!IA(e);function ea(e,t){if(Zy(e)||Zy(t))return e===t;if(Ha(e)&&Ha(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(Ha(o)&&Ha(a)||fn(o)&&fn(a)||Array.isArray(o)&&Array.isArray(a)?!ea(o,a):o!==a)return!1}}return!0}var ZA=e=>e.type==="select-multiple",jK=e=>Rb(e)||zc(e),yg=e=>dh(e)&&e.isConnected,JA=e=>{for(const t in e)if(Li(e[t]))return!0;return!1};function hh(e,t={}){const n=Array.isArray(e);if(fn(e)||n)for(const r in e)Array.isArray(e[r])||fn(e[r])&&!JA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},hh(e[r],t[r])):sr(e[r])||(t[r]=!0);return t}function XA(e,t,n){const r=Array.isArray(e);if(fn(e)||r)for(const i in e)Array.isArray(e[i])||fn(e[i])&&!JA(e[i])?dn(t)||Zy(n[i])?n[i]=Array.isArray(e[i])?hh(e[i],[]):{...hh(e[i])}:XA(e[i],sr(t)?{}:t[i],n[i]):n[i]=!ea(e[i],t[i]);return n}var Ol=(e,t)=>XA(e,t,hh(t)),QA=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dn(e)?e:t?e===""?NaN:e&&+e:n&&Ki(e)?new Date(e):r?r(e):e;function vg(e){const t=e.ref;return _b(t)?t.files:Rb(t)?YA(e.refs).value:ZA(t)?[...t.selectedOptions].map(({value:n})=>n):zc(t)?qA(e.refs).value:QA(dn(t.value)?e.ref.value:t.value,e)}var KK=(e,t,n,r)=>{const i={};for(const o of e){const a=Ae(t,o);a&&Tt(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Ml=e=>dn(e)?e:fh(e)?e.source:fn(e)?fh(e.value)?e.value.source:e.value:e;const fx="AsyncFunction";var UK=e=>!!e&&!!e.validate&&!!(Li(e.validate)&&e.validate.constructor.name===fx||fn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===fx)),zK=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function hx(e,t,n){const r=Ae(e,n);if(r||Ab(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ae(t,o),u=Ae(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var WK=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,HK=(e,t)=>!op(Ae(e,t)).length&&$n(e,t);const GK={mode:yi.onSubmit,reValidateMode:yi.onChange,shouldFocusError:!0};function qK(e={}){let t={...GK,...e},n={submitCount:0,isDirty:!1,isLoading:Li(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=fn(t.defaultValues)||fn(t.values)?br(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:br(i),a={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:gg(),array:gg(),state:gg()},m=ox(t.mode),g=ox(t.reValidateMode),v=t.criteriaMode===yi.all,$=q=>Z=>{clearTimeout(d),d=setTimeout(q,Z)},C=async q=>{if(!t.disabled&&(f.isValid||q)){const Z=t.resolver?$r((await S()).errors):await O(r,!0);Z!==n.isValid&&h.state.next({isValid:Z})}},x=(q,Z)=>{!t.disabled&&(f.isValidating||f.validatingFields)&&((q||Array.from(u.mount)).forEach(te=>{te&&(Z?Tt(n.validatingFields,te,Z):$n(n.validatingFields,te))}),h.state.next({validatingFields:n.validatingFields,isValidating:!$r(n.validatingFields)}))},y=(q,Z=[],te,pe,Ce=!0,De=!0)=>{if(pe&&te&&!t.disabled){if(a.action=!0,De&&Array.isArray(Ae(r,q))){const _e=te(Ae(r,q),pe.argA,pe.argB);Ce&&Tt(r,q,_e)}if(De&&Array.isArray(Ae(n.errors,q))){const _e=te(Ae(n.errors,q),pe.argA,pe.argB);Ce&&Tt(n.errors,q,_e),HK(n.errors,q)}if(f.touchedFields&&De&&Array.isArray(Ae(n.touchedFields,q))){const _e=te(Ae(n.touchedFields,q),pe.argA,pe.argB);Ce&&Tt(n.touchedFields,q,_e)}f.dirtyFields&&(n.dirtyFields=Ol(i,o)),h.state.next({name:q,isDirty:G(q,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Tt(o,q,Z)},D=(q,Z)=>{Tt(n.errors,q,Z),h.state.next({errors:n.errors})},P=q=>{n.errors=q,h.state.next({errors:n.errors,isValid:!1})},E=(q,Z,te,pe)=>{const Ce=Ae(r,q);if(Ce){const De=Ae(o,q,dn(te)?Ae(i,q):te);dn(De)||pe&&pe.defaultChecked||Z?Tt(o,q,Z?De:vg(Ce._f)):j(q,De),a.mount&&C()}},T=(q,Z,te,pe,Ce)=>{let De=!1,_e=!1;const Ve={name:q};if(!t.disabled){const mt=!!(Ae(r,q)&&Ae(r,q)._f&&Ae(r,q)._f.disabled);if(!te||pe){f.isDirty&&(_e=n.isDirty,n.isDirty=Ve.isDirty=G(),De=_e!==Ve.isDirty);const ut=mt||ea(Ae(i,q),Z);_e=!!(!mt&&Ae(n.dirtyFields,q)),ut||mt?$n(n.dirtyFields,q):Tt(n.dirtyFields,q,!0),Ve.dirtyFields=n.dirtyFields,De=De||f.dirtyFields&&_e!==!ut}if(te){const ut=Ae(n.touchedFields,q);ut||(Tt(n.touchedFields,q,te),Ve.touchedFields=n.touchedFields,De=De||f.touchedFields&&ut!==te)}De&&Ce&&h.state.next(Ve)}return De?Ve:{}},k=(q,Z,te,pe)=>{const Ce=Ae(n.errors,q),De=f.isValid&&ti(Z)&&n.isValid!==Z;if(t.delayError&&te?(c=$(()=>D(q,te)),c(t.delayError)):(clearTimeout(d),c=null,te?Tt(n.errors,q,te):$n(n.errors,q)),(te?!ea(Ce,te):Ce)||!$r(pe)||De){const _e={...pe,...De&&ti(Z)?{isValid:Z}:{},errors:n.errors,name:q};n={...n,..._e},h.state.next(_e)}},S=async q=>{x(q,!0);const Z=await t.resolver(o,t.context,KK(q||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(q),Z},U=async q=>{const{errors:Z}=await S(q);if(q)for(const te of q){const pe=Ae(Z,te);pe?Tt(n.errors,te,pe):$n(n.errors,te)}else n.errors=Z;return Z},O=async(q,Z,te={valid:!0})=>{for(const pe in q){const Ce=q[pe];if(Ce){const{_f:De,..._e}=Ce;if(De){const Ve=u.array.has(De.name),mt=Ce._f&&UK(Ce._f);mt&&f.validatingFields&&x([pe],!0);const ut=await dx(Ce,u.disabled,o,v,t.shouldUseNativeValidation&&!Z,Ve);if(mt&&f.validatingFields&&x([pe]),ut[De.name]&&(te.valid=!1,Z))break;!Z&&(Ae(ut,De.name)?Ve?LK(n.errors,ut,De.name):Tt(n.errors,De.name,ut[De.name]):$n(n.errors,De.name))}!$r(_e)&&await O(_e,Z,te)}}return te.valid},F=()=>{for(const q of u.unMount){const Z=Ae(r,q);Z&&(Z._f.refs?Z._f.refs.every(te=>!yg(te)):!yg(Z._f.ref))&&Ee(q)}u.unMount=new Set},G=(q,Z)=>!t.disabled&&(q&&Z&&Tt(o,q,Z),!ea(z(),i)),K=(q,Z,te)=>WA(q,u,{...a.mount?o:dn(Z)?i:Ki(q)?{[q]:Z}:Z},te,Z),W=q=>op(Ae(a.mount?o:i,q,t.shouldUnregister?Ae(i,q,[]):[])),j=(q,Z,te={})=>{const pe=Ae(r,q);let Ce=Z;if(pe){const De=pe._f;De&&(!De.disabled&&Tt(o,q,QA(Z,De)),Ce=dh(De.ref)&&sr(Z)?"":Z,ZA(De.ref)?[...De.ref.options].forEach(_e=>_e.selected=Ce.includes(_e.value)):De.refs?zc(De.ref)?De.refs.length>1?De.refs.forEach(_e=>(!_e.defaultChecked||!_e.disabled)&&(_e.checked=Array.isArray(Ce)?!!Ce.find(Ve=>Ve===_e.value):Ce===_e.value)):De.refs[0]&&(De.refs[0].checked=!!Ce):De.refs.forEach(_e=>_e.checked=_e.value===Ce):_b(De.ref)?De.ref.value="":(De.ref.value=Ce,De.ref.type||h.values.next({name:q,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&T(q,Ce,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&V(q)},L=(q,Z,te)=>{for(const pe in Z){const Ce=Z[pe],De=`${q}.${pe}`,_e=Ae(r,De);(u.array.has(q)||fn(Ce)||_e&&!_e._f)&&!Ha(Ce)?L(De,Ce,te):j(De,Ce,te)}},_=(q,Z,te={})=>{const pe=Ae(r,q),Ce=u.array.has(q),De=br(Z);Tt(o,q,De),Ce?(h.array.next({name:q,values:{...o}}),(f.isDirty||f.dirtyFields)&&te.shouldDirty&&h.state.next({name:q,dirtyFields:Ol(i,o),isDirty:G(q,De)})):pe&&!pe._f&&!sr(De)?L(q,De,te):j(q,De,te),ax(q,u)&&h.state.next({...n}),h.values.next({name:a.mount?q:void 0,values:{...o}})},M=async q=>{a.mount=!0;const Z=q.target;let te=Z.name,pe=!0;const Ce=Ae(r,te),De=()=>Z.type?vg(Ce._f):LA(q),_e=Ve=>{pe=Number.isNaN(Ve)||Ha(Ve)&&isNaN(Ve.getTime())||ea(Ve,Ae(o,te,Ve))};if(Ce){let Ve,mt;const ut=De(),Rt=q.type===ch.BLUR||q.type===ch.FOCUS_OUT,Pn=!zK(Ce._f)&&!t.resolver&&!Ae(n.errors,te)&&!Ce._f.deps||WK(Rt,Ae(n.touchedFields,te),n.isSubmitted,g,m),_n=ax(te,u,Rt);Tt(o,te,ut),Rt?(Ce._f.onBlur&&Ce._f.onBlur(q),c&&c(0)):Ce._f.onChange&&Ce._f.onChange(q);const Yt=T(te,ut,Rt,!1),Ln=!$r(Yt)||_n;if(!Rt&&h.values.next({name:te,type:q.type,values:{...o}}),Pn)return f.isValid&&(t.mode==="onBlur"&&Rt?C():Rt||C()),Ln&&h.state.next({name:te,..._n?{}:Yt});if(!Rt&&_n&&h.state.next({...n}),t.resolver){const{errors:tn}=await S([te]);if(_e(ut),pe){const vt=hx(n.errors,r,te),Vn=hx(tn,r,vt.name||te);Ve=Vn.error,te=Vn.name,mt=$r(tn)}}else x([te],!0),Ve=(await dx(Ce,u.disabled,o,v,t.shouldUseNativeValidation))[te],x([te]),_e(ut),pe&&(Ve?mt=!1:f.isValid&&(mt=await O(r,!0)));pe&&(Ce._f.deps&&V(Ce._f.deps),k(te,mt,Ve,Yt))}},Y=(q,Z)=>{if(Ae(n.errors,Z)&&q.focus)return q.focus(),1},V=async(q,Z={})=>{let te,pe;const Ce=tc(q);if(t.resolver){const De=await U(dn(q)?q:Ce);te=$r(De),pe=q?!Ce.some(_e=>Ae(De,_e)):te}else q?(pe=(await Promise.all(Ce.map(async De=>{const _e=Ae(r,De);return await O(_e&&_e._f?{[De]:_e}:_e)}))).every(Boolean),!(!pe&&!n.isValid)&&C()):pe=te=await O(r);return h.state.next({...!Ki(q)||f.isValid&&te!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:te}:{},errors:n.errors}),Z.shouldFocus&&!pe&&nc(r,Y,q?Ce:u.mount),pe},z=q=>{const Z={...a.mount?o:i};return dn(q)?Z:Ki(q)?Ae(Z,q):q.map(te=>Ae(Z,te))},re=(q,Z)=>({invalid:!!Ae((Z||n).errors,q),isDirty:!!Ae((Z||n).dirtyFields,q),error:Ae((Z||n).errors,q),isValidating:!!Ae(n.validatingFields,q),isTouched:!!Ae((Z||n).touchedFields,q)}),oe=q=>{q&&tc(q).forEach(Z=>$n(n.errors,Z)),h.state.next({errors:q?n.errors:{}})},fe=(q,Z,te)=>{const pe=(Ae(r,q,{_f:{}})._f||{}).ref,Ce=Ae(n.errors,q)||{},{ref:De,message:_e,type:Ve,...mt}=Ce;Tt(n.errors,q,{...mt,...Z,ref:pe}),h.state.next({name:q,errors:n.errors,isValid:!1}),te&&te.shouldFocus&&pe&&pe.focus&&pe.focus()},ie=(q,Z)=>Li(q)?h.values.subscribe({next:te=>q(K(void 0,Z),te)}):K(q,Z,!0),Ee=(q,Z={})=>{for(const te of q?tc(q):u.mount)u.mount.delete(te),u.array.delete(te),Z.keepValue||($n(r,te),$n(o,te)),!Z.keepError&&$n(n.errors,te),!Z.keepDirty&&$n(n.dirtyFields,te),!Z.keepTouched&&$n(n.touchedFields,te),!Z.keepIsValidating&&$n(n.validatingFields,te),!t.shouldUnregister&&!Z.keepDefaultValue&&$n(i,te);h.values.next({values:{...o}}),h.state.next({...n,...Z.keepDirty?{isDirty:G()}:{}}),!Z.keepIsValid&&C()},$e=({disabled:q,name:Z,field:te,fields:pe})=>{(ti(q)&&a.mount||q||u.disabled.has(Z))&&(q?u.disabled.add(Z):u.disabled.delete(Z),T(Z,vg(te?te._f:Ae(pe,Z)._f),!1,!1,!0))},ne=(q,Z={})=>{let te=Ae(r,q);const pe=ti(Z.disabled)||ti(t.disabled);return Tt(r,q,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:q}},name:q,mount:!0,...Z}}),u.mount.add(q),te?$e({field:te,disabled:ti(Z.disabled)?Z.disabled:t.disabled,name:q}):E(q,!0,Z.value),{...pe?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:Ml(Z.min),max:Ml(Z.max),minLength:Ml(Z.minLength),maxLength:Ml(Z.maxLength),pattern:Ml(Z.pattern)}:{},name:q,onChange:M,onBlur:M,ref:Ce=>{if(Ce){ne(q,Z),te=Ae(r,q);const De=dn(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,_e=jK(De),Ve=te._f.refs||[];if(_e?Ve.find(mt=>mt===De):De===te._f.ref)return;Tt(r,q,{_f:{...te._f,..._e?{refs:[...Ve.filter(yg),De,...Array.isArray(Ae(i,q))?[{}]:[]],ref:{type:De.type,name:q}}:{ref:De}}}),E(q,!1,void 0,De)}else te=Ae(r,q,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(VA(u.array,q)&&a.action)&&u.unMount.add(q)}}},ye=()=>t.shouldFocusError&&nc(r,Y,u.mount),xe=q=>{ti(q)&&(h.state.next({disabled:q}),nc(r,(Z,te)=>{const pe=Ae(r,te);pe&&(Z.disabled=pe._f.disabled||q,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(Ce=>{Ce.disabled=pe._f.disabled||q}))},0,!1))},he=(q,Z)=>async te=>{let pe;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let Ce=br(o);if(u.disabled.size)for(const De of u.disabled)Tt(Ce,De,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:De,values:_e}=await S();n.errors=De,Ce=_e}else await O(r);if($n(n.errors,"root"),$r(n.errors)){h.state.next({errors:{}});try{await q(Ce,te)}catch(De){pe=De}}else Z&&await Z({...n.errors},te),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(n.errors)&&!pe,submitCount:n.submitCount+1,errors:n.errors}),pe)throw pe},le=(q,Z={})=>{Ae(r,q)&&(dn(Z.defaultValue)?_(q,br(Ae(i,q))):(_(q,Z.defaultValue),Tt(i,q,br(Z.defaultValue))),Z.keepTouched||$n(n.touchedFields,q),Z.keepDirty||($n(n.dirtyFields,q),n.isDirty=Z.defaultValue?G(q,br(Ae(i,q))):G()),Z.keepError||($n(n.errors,q),f.isValid&&C()),h.state.next({...n}))},Fe=(q,Z={})=>{const te=q?br(q):i,pe=br(te),Ce=$r(q),De=Ce?i:pe;if(Z.keepDefaultValues||(i=te),!Z.keepValues){if(Z.keepDirtyValues){const _e=new Set([...u.mount,...Object.keys(Ol(i,o))]);for(const Ve of Array.from(_e))Ae(n.dirtyFields,Ve)?Tt(De,Ve,Ae(o,Ve)):_(Ve,Ae(De,Ve))}else{if(Tb&&dn(q))for(const _e of u.mount){const Ve=Ae(r,_e);if(Ve&&Ve._f){const mt=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(dh(mt)){const ut=mt.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Z.keepDefaultValues?br(i):{}:br(De),h.array.next({values:{...De}}),h.values.next({values:{...De}})}u={mount:Z.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!ea(q,i)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:Z.keepDirtyValues?Z.keepDefaultValues&&o?Ol(i,o):n.dirtyFields:Z.keepDefaultValues&&q?Ol(i,q):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},et=(q,Z)=>Fe(Li(q)?q(o):q,Z);return{control:{register:ne,unregister:Ee,getFieldState:re,handleSubmit:he,setError:fe,_executeSchema:S,_getWatch:K,_getDirty:G,_updateValid:C,_removeUnmounted:F,_updateFieldArray:y,_updateDisabledField:$e,_getFieldArray:W,_reset:Fe,_resetDefaultValues:()=>Li(t.defaultValues)&&t.defaultValues().then(q=>{et(q,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:q=>{n={...n,...q}},_disableForm:xe,_subjects:h,_proxyFormState:f,_setErrors:P,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(q){a=q},get _defaultValues(){return i},get _names(){return u},set _names(q){u=q},get _formState(){return n},set _formState(q){n=q},get _options(){return t},set _options(q){t={...t,...q}}},trigger:V,register:ne,handleSubmit:he,watch:ie,setValue:_,getValues:z,reset:et,resetField:le,clearErrors:oe,unregister:Ee,setError:fe,setFocus:(q,Z={})=>{const te=Ae(r,q),pe=te&&te._f;if(pe){const Ce=pe.refs?pe.refs[0]:pe.ref;Ce.focus&&(Ce.focus(),Z.shouldSelect&&Li(Ce.select)&&Ce.select())}},getFieldState:re}}function YK(e={}){const t=b.useRef(void 0),n=b.useRef(void 0),[r,i]=b.useState({isDirty:!1,isValidating:!1,isLoading:Li(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Li(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...qK(e),formState:r});const o=t.current.control;return o._options=e,Pb({subject:o._subjects.state,next:a=>{UA(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),b.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),b.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),b.useEffect(()=>{e.values&&!ea(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),b.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),b.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),b.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=KA(r,o),t.current}var ps=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],ZK="react-international-phone-",eP=(...e)=>e.filter(t=>!!t).join(" ").trim(),JK=(...e)=>eP(...e).split(" ").map(t=>`${ZK}${t}`).join(" "),Jn=({addPrefix:e,rawClassNames:t})=>eP(JK(...e),...t),XK=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),a=e.slice(r),u=o,c=0;for(let d of t.split("")){if(c>=a.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=a[c],c+=1):u+=d}return u},Xs=e=>e?/^\d+$/.test(e):!1,sp=e=>e.replace(/\D/g,""),QK=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,a=r.bottom-i.bottom;o>=0&&a>=0||(Math.abs(o)<Math.abs(a)?e.scrollTop+=o:e.scrollTop-=a),e.style.display=n},eU=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),tU=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=sp(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,f=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:f,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:c}=a();return u=`${t.prefix}${u}${t.charAfterDialCode}`,c=XK({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${c}`)},nU=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let f=r-1;f>=0;f-=1)if(Xs(t[f])){a=f;break}if(a===null){for(let f=0;f<t.length;f+=1)if(Xs(n[f]))return f;return t.length}let u=0;for(let f=0;f<a;f+=1)Xs(t[f])&&(u+=1);let c=0,d=0;for(let f=0;f<n.length&&(c+=1,Xs(n[f])&&(d+=1),!(d>=u+1));f+=1);if(o!=="backward")for(;!Xs(n[c])&&c<n.length;)c+=1;return c},Bf=({phone:e,prefix:t})=>e?`${t}${sp(e)}`:"";function Jy({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:a,forceDialCode:u,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:f,disableFormatting:h}){let m=e;c&&(m=m.startsWith(`${o}`)?m:`${o}${t.dialCode}${m}`);let g=f?dU({phone:m,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,v=(g==null?void 0:g.country)??t,$=tU(m,{prefix:o,mask:lU({phone:m,country:v,defaultMask:d,disableFormatting:h}),maskChar:tP,dialCode:v.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),C=f&&!(g!=null&&g.fullDialCodeMatch)?t:v;return{phone:Bf({phone:c?`${C.dialCode}${$}`:$,prefix:o}),inputValue:$,country:C}}var rU=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},iU=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,countryGuessingEnabled:c,defaultMask:d,disableFormatting:f,countries:h})=>{let m=e.nativeEvent,g=m.inputType,v=rU(g),$=!!(g!=null&&g.startsWith("insertFrom")),C=g==="insertText",x=(m==null?void 0:m.data)||void 0,y=e.target.value,D=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Bf({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!Xs(x)&&y!==i)return{inputValue:r,phone:Bf({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((x==null?void 0:x.length)??0),country:t};if(a&&!y.startsWith(`${i}${t.dialCode}`)&&!$){let S=y?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Bf({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:P,inputValue:E,country:T}=Jy({value:y,country:t,trimNonDigitsEnd:v==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,disableFormatting:f,defaultMask:d}),k=nU({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:y,phoneAfterFormatted:E,leftOffset:a?i.length+t.dialCode.length+o.length:0,deletion:v});return{phone:P,inputValue:E,cursorPosition:k,country:T}},oU=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},aU=()=>{let e=b.useRef(),t=b.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},sU={size:20,overrideLastItemDebounceMS:-1};function uU(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...sU,...t},[o,a]=b.useState(e),[u,c]=b.useState([o]),[d,f]=b.useState(0),h=aU();return[o,(m,g)=>{if(typeof m=="object"&&typeof o=="object"&&oU(m,o)||m===o)return;let v=r>0,$=h.check(),C=v&&$!==void 0?$>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!C)c(x=>[...x.slice(0,d),m]);else{let x=u.length>=n;c(y=>[...y.slice(x?1:0,d+1),m]),x||f(y=>y+1)}a(m),i==null||i(m)},()=>{if(d<=0)return{success:!1};let m=u[d-1];return a(m),f(g=>g-1),i==null||i(m),{success:!0,value:m}},()=>{if(d+1>=u.length)return{success:!1};let m=u[d+1];return a(m),f(g=>g+1),i==null||i(m),{success:!0,value:m}}]}var tP=".",Zr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:ps,preferredCountries:[]},nP=({defaultCountry:e=Zr.defaultCountry,value:t=Zr.value,countries:n=Zr.countries,prefix:r=Zr.prefix,defaultMask:i=Zr.defaultMask,charAfterDialCode:o=Zr.charAfterDialCode,historySaveDebounceMS:a=Zr.historySaveDebounceMS,disableCountryGuess:u=Zr.disableCountryGuess,disableDialCodePrefill:c=Zr.disableDialCodePrefill,forceDialCode:d=Zr.forceDialCode,disableDialCodeAndPrefix:f=Zr.disableDialCodeAndPrefix,disableFormatting:h=Zr.disableFormatting,onChange:m,inputRef:g})=>{let v={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:f?!1:d,disableDialCodeAndPrefix:f,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},$=b.useRef(null),C=g||$,x=W=>{Promise.resolve().then(()=>{var j;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((j=C.current)==null||j.setSelectionRange(W,W))})},[{phone:y,inputValue:D,country:P},E,T,k]=uU(()=>{let W=nu({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let j=W||nu({value:"us",field:"iso2",countries:n}),{phone:L,inputValue:_,country:M}=Jy({value:t,country:j,insertDialCodeOnEmpty:!c,...v});return x(_.length),{phone:L,inputValue:_,country:M.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:W,phone:j,country:L})=>{if(!m)return;let _=S(L);m({phone:j,inputValue:W,country:_})}}),S=b.useCallback(W=>nu({value:W,field:"iso2",countries:n}),[n]),U=b.useMemo(()=>S(P),[P,S]);b.useEffect(()=>{let W=C.current;if(!W)return;let j=L=>{if(!L.key)return;let _=L.ctrlKey,M=L.metaKey,Y=L.shiftKey;if(L.key.toLowerCase()==="z"){if(eU()){if(!M)return}else if(!_)return;Y?k():T()}};return W.addEventListener("keydown",j),()=>{W.removeEventListener("keydown",j)}},[C,T,k]);let O=W=>{W.preventDefault();let{phone:j,inputValue:L,country:_,cursorPosition:M}=iU(W,{country:U,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...v});return E({inputValue:L,phone:j,country:_.iso2}),x(M),t},F=(W,j={focusOnInput:!1})=>{let L=nu({value:W,field:"iso2",countries:n});if(!L){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let _=f?"":`${r}${L.dialCode}${o}`;E({inputValue:_,phone:`${r}${L.dialCode}`,country:L.iso2}),j.focusOnInput&&Promise.resolve().then(()=>{var M;(M=C.current)==null||M.focus()})},[G,K]=b.useState(!1);return b.useEffect(()=>{if(!G){K(!0),t!==y&&(m==null||m({inputValue:D,phone:y,country:U}));return}if(t===y)return;let{phone:W,inputValue:j,country:L}=Jy({value:t,country:U,insertDialCodeOnEmpty:!c,...v});E({phone:W,inputValue:j,country:L.iso2})},[t]),{phone:y,inputValue:D,country:U,setCountry:F,handlePhoneValueChange:O,inputRef:C}},lU=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${tP}]`,"g"),""):u;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let a=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let c=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return c.test(sp(d))});return o(a?i[a]:i.default)},gi=e=>{let[t,n,r,i,o,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:a}},cU=e=>`Field "${e}" is not supported`,nu=({field:e,value:t,countries:n=ps})=>{if(["priority"].includes(e))throw new Error(cU(e));let r=n.find(i=>{let o=gi(i);return t===o[e]});if(r)return gi(r)},dU=({phone:e,countries:t=ps,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=sp(e);if(!i)return r;let o=r,a=({country:c,fullDialCodeMatch:d})=>{var m,g;let f=c.dialCode===((m=o.country)==null?void 0:m.dialCode),h=(c.priority??0)<(((g=o.country)==null?void 0:g.priority)??0);(!f||h)&&(o={country:c,fullDialCodeMatch:d})};for(let c of t){let d=gi(c),{dialCode:f,areaCodes:h}=d;if(i.startsWith(f)){let m=o.country?Number(f)>=Number(o.country.dialCode):!0;if(h){let g=i.substring(f.length);for(let v of h)if(g.startsWith(v))return{country:d,fullDialCodeMatch:!0}}(m||f===i||!o.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<f.length&&f.startsWith(i)&&(!o.country||Number(f)<=Number(o.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let c=nu({value:n,field:"iso2",countries:t});if(!c)return o;let d=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let h=i.substring(f.dialCode.length);return f.areaCodes.some(m=>m.startsWith(h))})(c):!1;o&&((u=o.country)==null?void 0:u.dialCode)===c.dialCode&&o.country!==c&&o.fullDialCodeMatch&&(!c.areaCodes||d)&&(o={country:c,fullDialCodeMatch:!0})}return o},fU=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},hU="abcdefghijklmnopqrstuvwxyz",pU="1f1e6",px=hU.split("").reduce((e,t,n)=>({...e,[t]:fU(pU,n)}),{}),mU=e=>[px[e[0]],px[e[1]]].join("-"),Ob=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:a,...u})=>{if(!e)return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let c=()=>{if(n)return n;let d=mU(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...u})},gU=1e3,yU=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=ps,preferredCountries:i=[],flags:o,onSelect:a,onClose:u,...c})=>{let d=b.useRef(null),f=b.useRef(),h=b.useMemo(()=>{if(!i||!i.length)return r;let T=[],k=[...r];for(let S of i){let U=k.findIndex(O=>gi(O).iso2===S);if(U!==-1){let O=k.splice(U,1)[0];T.push(O)}}return T.concat(k)},[r,i]),m=b.useRef({updatedAt:void 0,value:""}),g=T=>{let k=m.current.updatedAt&&new Date().getTime()-m.current.updatedAt.getTime()>gU;m.current={value:k?T:`${m.current.value}${T}`,updatedAt:new Date};let S=h.findIndex(U=>gi(U).name.toLowerCase().startsWith(m.current.value));S!==-1&&C(S)},v=b.useCallback(T=>h.findIndex(k=>gi(k).iso2===T),[h]),[$,C]=b.useState(v(n)),x=()=>{f.current!==n&&C(v(n))},y=b.useCallback(T=>{C(v(T.iso2)),a==null||a(T)},[a,v]),D=T=>{let k=h.length-1,S=U=>T==="prev"?U-1:T==="next"?U+1:T==="last"?k:0;C(U=>{let O=S(U);return O<0?0:O>k?k:O})},P=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let k=gi(h[$]);y(k);return}if(T.key==="Escape"){u==null||u();return}if(T.key==="ArrowUp"){T.preventDefault(),D("prev");return}if(T.key==="ArrowDown"){T.preventDefault(),D("next");return}if(T.key==="PageUp"){T.preventDefault(),D("first");return}if(T.key==="PageDown"){T.preventDefault(),D("last");return}T.key===" "&&T.preventDefault(),T.key.length===1&&!T.altKey&&!T.ctrlKey&&!T.metaKey&&g(T.key.toLocaleLowerCase())},E=b.useCallback(()=>{if(!d.current||$===void 0)return;let T=gi(h[$]).iso2;if(T===f.current)return;let k=d.current.querySelector(`[data-country="${T}"]`);k&&(QK(d.current,k),f.current=T)},[$,h]);return b.useEffect(()=>{E()},[$,E]),b.useEffect(()=>{d.current&&(e?d.current.focus():x())},[e]),b.useEffect(()=>{x()},[n]),b.createElement("ul",{ref:d,role:"listbox",className:Jn({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:P,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${gi(h[$]).iso2}-option`},h.map((T,k)=>{let S=gi(T),U=S.iso2===n,O=k===$,F=i.includes(S.iso2),G=k===i.length-1,K=o==null?void 0:o.find(W=>W.iso2===S.iso2);return b.createElement(b.Fragment,{key:S.iso2},b.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":U,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Jn({addPrefix:["country-selector-dropdown__list-item",F&&"country-selector-dropdown__list-item--preferred",U&&"country-selector-dropdown__list-item--selected",O&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>y(S),style:c.listItemStyle,title:S.name},b.createElement(Ob,{iso2:S.iso2,src:K==null?void 0:K.src,className:Jn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},S.name),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,S.dialCode)),G?b.createElement("hr",{className:Jn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},vU=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=ps,preferredCountries:o=[],flags:a,renderButtonWrapper:u,...c})=>{let[d,f]=b.useState(!1),h=b.useMemo(()=>{if(e)return nu({value:e,field:"iso2",countries:i})},[i,e]),m=b.useRef(null),g=$=>{$.key&&["ArrowUp","ArrowDown"].includes($.key)&&($.preventDefault(),f(!0))},v=()=>{var x;let $={title:h==null?void 0:h.name,onClick:()=>f(y=>!y),onMouseDown:y=>y.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=b.createElement("div",{className:Jn({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},b.createElement(Ob,{iso2:e,src:(x=a==null?void 0:a.find(y=>y.iso2===e))==null?void 0:x.src,className:Jn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!r&&b.createElement("div",{className:Jn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return u?u({children:C,rootProps:$}):b.createElement("button",{...$,type:"button",className:Jn({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},C)};return b.createElement("div",{className:Jn({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:m},v(),b.createElement(yU,{show:d,countries:i,preferredCountries:o,flags:a,onSelect:$=>{f(!1),t==null||t($)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},bU=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>b.createElement("div",{className:Jn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);b.forwardRef(({value:e,onChange:t,countries:n=ps,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:u,style:c,className:d,inputStyle:f,inputClassName:h,countrySelectorStyleProps:m,dialCodePreviewStyleProps:g,inputProps:v,placeholder:$,disabled:C,name:x,onFocus:y,onBlur:D,required:P,autoFocus:E,...T},k)=>{let{phone:S,inputValue:U,inputRef:O,country:F,setCountry:G,handlePhoneValueChange:K}=nP({value:e,countries:n,...T,onChange:j=>{t==null||t(j.phone,{country:j.country,inputValue:j.inputValue})}}),W=T.disableDialCodeAndPrefix&&o&&(F==null?void 0:F.dialCode);return b.useImperativeHandle(k,()=>O.current?Object.assign(O.current,{setCountry:G,state:{phone:S,inputValue:U,country:F}}):null,[O,G,S,U,F]),b.createElement("div",{ref:k,className:Jn({addPrefix:["input-container"],rawClassNames:[d]}),style:c},b.createElement(vU,{onSelect:j=>G(j.iso2,{focusOnInput:!a}),flags:u,selectedCountry:F.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...m}),W&&b.createElement(bU,{dialCode:F.dialCode,prefix:T.prefix??"+",disabled:C,...g}),b.createElement("input",{onChange:K,value:U,type:"tel",ref:O,className:Jn({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:$,disabled:C,style:f,name:x,onFocus:y,onBlur:D,autoFocus:E,required:P,...v}))});var ia=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",$="[object Promise]",C="[object RegExp]",x="[object Set]",y="[object String]",D="[object Symbol]",P="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",U="[object Int8Array]",O="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",W="[object Uint16Array]",j="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,M=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,V={};V[o]=V[a]=V[E]=V[T]=V[u]=V[c]=V[k]=V[S]=V[U]=V[O]=V[F]=V[m]=V[g]=V[v]=V[C]=V[x]=V[y]=V[D]=V[G]=V[K]=V[W]=V[j]=!0,V[d]=V[f]=V[P]=!1;var z=typeof ia=="object"&&ia&&ia.Object===Object&&ia,re=typeof self=="object"&&self&&self.Object===Object&&self,oe=z||re||Function("return this")(),fe=t&&!t.nodeType&&t,ie=fe&&!0&&e&&!e.nodeType&&e,Ee=ie&&ie.exports===fe;function $e(N,ae){return N.set(ae[0],ae[1]),N}function ne(N,ae){return N.add(ae),N}function ye(N,ae){for(var ve=-1,Ie=N?N.length:0;++ve<Ie&&ae(N[ve],ve,N)!==!1;);return N}function xe(N,ae){for(var ve=-1,Ie=ae.length,yn=N.length;++ve<Ie;)N[yn+ve]=ae[ve];return N}function he(N,ae,ve,Ie){for(var yn=-1,Un=N?N.length:0;++yn<Un;)ve=ae(ve,N[yn],yn,N);return ve}function le(N,ae){for(var ve=-1,Ie=Array(N);++ve<N;)Ie[ve]=ae(ve);return Ie}function Fe(N,ae){return N==null?void 0:N[ae]}function et(N){var ae=!1;if(N!=null&&typeof N.toString!="function")try{ae=!!(N+"")}catch{}return ae}function dt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie,yn){ve[++ae]=[yn,Ie]}),ve}function Dn(N,ae){return function(ve){return N(ae(ve))}}function yt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie){ve[++ae]=Ie}),ve}var q=Array.prototype,Z=Function.prototype,te=Object.prototype,pe=oe["__core-js_shared__"],Ce=function(){var N=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),De=Z.toString,_e=te.hasOwnProperty,Ve=te.toString,mt=RegExp("^"+De.call(_e).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Ee?oe.Buffer:void 0,Rt=oe.Symbol,Pn=oe.Uint8Array,_n=Dn(Object.getPrototypeOf,Object),Yt=Object.create,Ln=te.propertyIsEnumerable,tn=q.splice,vt=Object.getOwnPropertySymbols,Vn=ut?ut.isBuffer:void 0,Cr=Dn(Object.keys,Object),Rn=ze(oe,"DataView"),er=ze(oe,"Map"),On=ze(oe,"Promise"),tr=ze(oe,"Set"),Nn=ze(oe,"WeakMap"),En=ze(Object,"create"),Ir=to(Rn),Vt=to(er),Cn=to(On),Ne=to(tr),tt=to(Nn),nn=Rt?Rt.prototype:void 0,fr=nn?nn.valueOf:void 0;function Te(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function je(){this.__data__=En?En(null):{}}function Ye(N){return this.has(N)&&delete this.__data__[N]}function Ft(N){var ae=this.__data__;if(En){var ve=ae[N];return ve===r?void 0:ve}return _e.call(ae,N)?ae[N]:void 0}function rn(N){var ae=this.__data__;return En?ae[N]!==void 0:_e.call(ae,N)}function jn(N,ae){var ve=this.__data__;return ve[N]=En&&ae===void 0?r:ae,this}Te.prototype.clear=je,Te.prototype.delete=Ye,Te.prototype.get=Ft,Te.prototype.has=rn,Te.prototype.set=jn;function Kt(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function an(){this.__data__=[]}function kt(N){var ae=this.__data__,ve=Ai(ae,N);if(ve<0)return!1;var Ie=ae.length-1;return ve==Ie?ae.pop():tn.call(ae,ve,1),!0}function wt(N){var ae=this.__data__,ve=Ai(ae,N);return ve<0?void 0:ae[ve][1]}function li(N){return Ai(this.__data__,N)>-1}function ba(N,ae){var ve=this.__data__,Ie=Ai(ve,N);return Ie<0?ve.push([N,ae]):ve[Ie][1]=ae,this}Kt.prototype.clear=an,Kt.prototype.delete=kt,Kt.prototype.get=wt,Kt.prototype.has=li,Kt.prototype.set=ba;function hr(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function Oo(){this.__data__={hash:new Te,map:new(er||Kt),string:new Te}}function Mo(N){return Ke(this,N).delete(N)}function Fo(N){return Ke(this,N).get(N)}function gt(N){return Ke(this,N).has(N)}function nr(N,ae){return Ke(this,N).set(N,ae),this}hr.prototype.clear=Oo,hr.prototype.delete=Mo,hr.prototype.get=Fo,hr.prototype.has=gt,hr.prototype.set=nr;function pr(N){this.__data__=new Kt(N)}function Kn(){this.__data__=new Kt}function ko(N){return this.__data__.delete(N)}function Lr(N){return this.__data__.get(N)}function nl(N){return this.__data__.has(N)}function $s(N,ae){var ve=this.__data__;if(ve instanceof Kt){var Ie=ve.__data__;if(!er||Ie.length<n-1)return Ie.push([N,ae]),this;ve=this.__data__=new hr(Ie)}return ve.set(N,ae),this}pr.prototype.clear=Kn,pr.prototype.delete=ko,pr.prototype.get=Lr,pr.prototype.has=nl,pr.prototype.set=$s;function rl(N,ae){var ve=sl(N)||Op(N)?le(N.length,String):[],Ie=ve.length,yn=!!Ie;for(var Un in N)_e.call(N,Un)&&!(yn&&(Un=="length"||rr(Un,Ie)))&&ve.push(Un);return ve}function Bo(N,ae,ve){var Ie=N[ae];(!(_e.call(N,ae)&&al(Ie,ve))||ve===void 0&&!(ae in N))&&(N[ae]=ve)}function Ai(N,ae){for(var ve=N.length;ve--;)if(al(N[ve][0],ae))return ve;return-1}function $a(N,ae){return N&&be(ae,ll(ae),N)}function xa(N,ae,ve,Ie,yn,Un,Nr){var zn;if(Ie&&(zn=Un?Ie(N,yn,Un,Nr):Ie(N)),zn!==void 0)return zn;if(!As(N))return N;var pn=sl(N);if(pn){if(zn=Mn(N),!ae)return ue(N,zn)}else{var Pi=Wt(N),_i=Pi==f||Pi==h;if(ul(N))return Es(N,ae);if(Pi==v||Pi==o||_i&&!Un){if(et(N))return Un?N:{};if(zn=Fn(_i?{}:N),!ae)return Re(N,$a(zn,N))}else{if(!V[Pi])return Un?N:{};zn=Vr(N,Pi,xa,ae)}}Nr||(Nr=new pr);var cl=Nr.get(N);if(cl)return cl;if(Nr.set(N,zn),!pn)var Ps=ve?it(N):ll(N);return ye(Ps||N,function(Wn,Ca){Ps&&(Ca=Wn,Wn=N[Ca]),Bo(zn,Ca,xa(Wn,ae,ve,Ie,Ca,N,Nr))}),zn}function xs(N){return As(N)?Yt(N):{}}function ws(N,ae,ve){var Ie=ae(N);return sl(N)?Ie:xe(Ie,ve(N))}function il(N){return Ve.call(N)}function Ds(N){if(!As(N)||Da(N))return!1;var ae=dd(N)||et(N)?mt:M;return ae.test(to(N))}function wa(N){if(!Ea(N))return Cr(N);var ae=[];for(var ve in Object(N))_e.call(N,ve)&&ve!="constructor"&&ae.push(ve);return ae}function Es(N,ae){if(ae)return N.slice();var ve=new N.constructor(N.length);return N.copy(ve),ve}function eo(N){var ae=new N.constructor(N.byteLength);return new Pn(ae).set(new Pn(N)),ae}function ol(N,ae){var ve=ae?eo(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.byteLength)}function Cs(N,ae,ve){var Ie=ae?ve(dt(N),!0):dt(N);return he(Ie,$e,new N.constructor)}function Io(N){var ae=new N.constructor(N.source,_.exec(N));return ae.lastIndex=N.lastIndex,ae}function Ss(N,ae,ve){var Ie=ae?ve(yt(N),!0):yt(N);return he(Ie,ne,new N.constructor)}function B(N){return fr?Object(fr.call(N)):{}}function X(N,ae){var ve=ae?eo(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.length)}function ue(N,ae){var ve=-1,Ie=N.length;for(ae||(ae=Array(Ie));++ve<Ie;)ae[ve]=N[ve];return ae}function be(N,ae,ve,Ie){ve||(ve={});for(var yn=-1,Un=ae.length;++yn<Un;){var Nr=ae[yn],zn=void 0;Bo(ve,Nr,zn===void 0?N[Nr]:zn)}return ve}function Re(N,ae){return be(N,Ot(N),ae)}function it(N){return ws(N,ll,Ot)}function Ke(N,ae){var ve=N.__data__;return Ts(ae)?ve[typeof ae=="string"?"string":"hash"]:ve.map}function ze(N,ae){var ve=Fe(N,ae);return Ds(ve)?ve:void 0}var Ot=vt?Dn(vt,Object):Bt,Wt=il;(Rn&&Wt(new Rn(new ArrayBuffer(1)))!=T||er&&Wt(new er)!=m||On&&Wt(On.resolve())!=$||tr&&Wt(new tr)!=x||Nn&&Wt(new Nn)!=P)&&(Wt=function(N){var ae=Ve.call(N),ve=ae==v?N.constructor:void 0,Ie=ve?to(ve):void 0;if(Ie)switch(Ie){case Ir:return T;case Vt:return m;case Cn:return $;case Ne:return x;case tt:return P}return ae});function Mn(N){var ae=N.length,ve=N.constructor(ae);return ae&&typeof N[0]=="string"&&_e.call(N,"index")&&(ve.index=N.index,ve.input=N.input),ve}function Fn(N){return typeof N.constructor=="function"&&!Ea(N)?xs(_n(N)):{}}function Vr(N,ae,ve,Ie){var yn=N.constructor;switch(ae){case E:return eo(N);case u:case c:return new yn(+N);case T:return ol(N,Ie);case k:case S:case U:case O:case F:case G:case K:case W:case j:return X(N,Ie);case m:return Cs(N,Ie,ve);case g:case y:return new yn(N);case C:return Io(N);case x:return Ss(N,Ie,ve);case D:return B(N)}}function rr(N,ae){return ae=ae??i,!!ae&&(typeof N=="number"||Y.test(N))&&N>-1&&N%1==0&&N<ae}function Ts(N){var ae=typeof N;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?N!=="__proto__":N===null}function Da(N){return!!Ce&&Ce in N}function Ea(N){var ae=N&&N.constructor,ve=typeof ae=="function"&&ae.prototype||te;return N===ve}function to(N){if(N!=null){try{return De.call(N)}catch{}try{return N+""}catch{}}return""}function Rp(N){return xa(N,!0,!0)}function al(N,ae){return N===ae||N!==N&&ae!==ae}function Op(N){return Mp(N)&&_e.call(N,"callee")&&(!Ln.call(N,"callee")||Ve.call(N)==o)}var sl=Array.isArray;function cd(N){return N!=null&&Fp(N.length)&&!dd(N)}function Mp(N){return kp(N)&&cd(N)}var ul=Vn||Mt;function dd(N){var ae=As(N)?Ve.call(N):"";return ae==f||ae==h}function Fp(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=i}function As(N){var ae=typeof N;return!!N&&(ae=="object"||ae=="function")}function kp(N){return!!N&&typeof N=="object"}function ll(N){return cd(N)?rl(N):wa(N)}function Bt(){return[]}function Mt(){return!1}e.exports=Rp})(Xy,Xy.exports);var oa=Xy.exports,Qy=function(){return Qy=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Qy.apply(this,arguments)};function $U(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(f){try{d(r.next(f))}catch(h){a(h)}}function c(f){try{d(r.throw(f))}catch(h){a(h)}}function d(f){f.done?o(f.value):i(f.value).then(u,c)}d((r=r.apply(e,[])).next())})}function xU(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(f){d=[6,f],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function ph(e,t,n,r,i){return $U(this,void 0,void 0,function(){var o,a;return xU(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];a=0,u.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return a++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var ev=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Qy({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},wU=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=oa(n);ph(t,a,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=ev(i,u);o.imgElement.setAttribute("src",a.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,o=oa(t);ph(this.imgElement,o,n,this.htmlPluginState).then(function(a){if(i.isMounted){var u=ev(r,a);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let en=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},DU=class extends Error{constructor(t="Unsupported"){super(t)}};function Mb(e){return new DU(e)}function EU(){return this._qualifierModel||{error:Mb(`unsupported qualifier ${this.constructor.name}`)}}let CU=class{constructor(){this._qualifierModel={}}toJson(){return EU.apply(this)}},rt=class extends CU{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof en?this.qualifierValue=n:(this.qualifierValue=new en,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},ai=class extends rt{constructor(t,n){let r;n?r=new en([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function SU(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function TU(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Mb(`unsupported action ${this.constructor.name}`)}}let AU=class{constructor(){this._actionModel={}}toJson(){return TU.apply(this)}},Ei=class extends AU{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),SU(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new ai(r)):this.qualifiers.set(n,new rt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ai(t)):t instanceof ai&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Fb extends Ei{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class up extends Fb{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new rt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new rt("h",t)),this}static fromJson(t){const n=new up;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function PU(){return new up}function rP(){return new Fb("faces")}function _U(){return new Fb("ocr_text")}class RU extends Ei{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`blur_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`blur_faces${t}`))):this.addQualifier(new rt("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(rP()),r&&r.regionType==="ocr_text"&&i.region(_U()),r&&r.regionType==="custom"&&i.region(up.fromJson(r)),i}}function ms(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const iP={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},OU={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},oP={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},aP={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},MU={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},sP={444:"CHROMA_444",420:"CHROMA_420"},FU={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},kU=ms(sP);ms(FU);const BU=ms(iP),IU=ms(OU),uP=ms(oP);ms(aP);ms(MU);class lP extends Ei{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=uP[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new en([t,`${n}`]).setDelimiter(":"):r=new en(t),new rt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=oP[n]||n;return new this(o,r||i)}}class LU extends lP{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=uP[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function lp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class VU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new en(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new en(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new en(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new en(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new en(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:a,numOfColors:u}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),o&&c.despeckleLevel(o),a&&c.detailsLevel(a),u&&c.numOfColors(u),c}}class NU extends LU{level(t){return this._actionModel.level=t,this.setLevel(t)}}class jU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new rt("e",new en("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new rt("e",new en(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new rt("e",new en(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class KU extends NU{color(t){return this._actionModel.color=t,this.addQualifier(new rt("co",new en(lp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class UU extends Ei{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`pixelate_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`pixelate_faces${t}`))):this.addQualifier(new rt("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(rP()),n&&n.regionType==="custom"&&i.region(PU()),i}}function zU(e){return new RU(e)}function WU(){return new lP("grayscale")}function mx(e){return new KU("colorize",e)}function HU(){return new VU}function GU(){return new jU}function qU(e){return new UU(e)}let YU=class extends Ei{constructor(t){super(),this._actionModel={},this.addQualifier(new rt("b",new en(lp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},gx=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Mb(`unsupported action ${this.constructor.name}`)}}};function ZU(e){const t=e;return"error"in t&&!!t.error}function JU(){return new ai("ignore_aspect_ratio")}function XU(){return new ai("lossy")}function QU(){return new ai("preserve_transparency")}function ez(e){return new ai("progressive",e)}function tz(){return new ai("region_relative")}function nz(){return new ai("relative")}let kb=class extends en{constructor(t){super(t),this.val=t}getValue(){return this.val}},cP=class extends Ei{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof kb?i=n.getValue():i=n,this._actionModel.actionType=IU[t],this._actionModel[r]=i,this.addQualifier(new rt(t,n))}},rz=class extends ai{constructor(t){super("progressive",t)}},tv=class extends cP{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(XU()),this}progressive(t){return t instanceof rz?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(ez(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(QU()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}},cp=class dP{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new gx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof dP?this.actions=this.actions.concat(t.actions):this.actions.push(new gx(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new tv("q",t)),this}format(t){return this.addAction(new tv("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new YU(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ei;let r=t;return typeof t=="string"&&(r=new ai(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(ZU(r))return r;t.push(r)}return{actions:t}}};function yx(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class iz extends en{}class oz extends Ei{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=BU[t]||t,this.addQualifier(new rt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new rt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new rt("w",t))}aspectRatio(t){if(t instanceof iz)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=yx(t),this.addQualifier(new rt("ar",yx(t)));if(t instanceof ai)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(nz())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(tz())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:a,width:u,height:c}=r,d=iP[n]||n,f=new this(d,u,c);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?JU():a),i&&f.relative(),o&&f.regionRelative(),f}}class Bb extends rt{constructor(t){super("g",new en(t))}}class fP extends Bb{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class hP extends Bb{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class pP extends Bb{constructor(t){super(t)}}function az(e){return new pP(e)}function mP(...e){const t=[...e];return new hP(t)}function gP(){return new fP}class _u extends en{constructor(t){super(),this.name=t}toString(){return this.name}}function sz(){return new _u("ocr_text")}function uz(e){return e&&`${e}`.split(":")[0]==="auto"}function lz(e){const t=Ib(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Ib(e){return`${e}`.replace("g_","")}function cz(e){return{compass:Ib(e),gravityType:"direction"}}function dz(e){return Ib(e)==="ocr_text"}function fz(){return{gravityType:"ocr"}}function hz(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function pz(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function yP(e){let t;const n=e==="auto"?new fP:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(pz)}}function mz(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),a=gP().autoFocus(...o);i.fallbackGravity=yP(a)}return i}function gz(e){const n=e.split(":").map(r=>new _u(r));return new hP(n)}function yz(e){return lz(e)?cz(e):dz(e)?fz():uz(e)||hz(e)?yP(e):mz(typeof e=="string"?gz(e):e)}class Lb extends en{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof _u?t:new _u(t);return new Lb(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class vP extends en{constructor(t){super(),this.val=t}toString(){return this.val}}function vz(e){return e.gravityType==="direction"}function bz(e){return e.gravityType==="ocr"}function $z(e){return e.gravityType==="auto"}function xz(e){const{object:t,weight:n,avoid:r}=e,i=new Lb(new _u(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function bP(e){const n=(e.autoFocus||[]).map(xz);return gP().autoFocus(...n)}function wz(e){const t=(e.focusOnObjects||[]).map(r=>new _u(r)),n=mP(...t);if(e.fallbackGravity){const r=bP(e.fallbackGravity);n.fallbackGravity(r)}return n}function Dz(e){return vz(e)?new pP(new vP(e.compass)):bz(e)?mP(sz()):$z(e)?bP(e):wz(e)}class Vb extends oz{gravity(t){this._actionModel.gravity=yz(t);const n=typeof t=="string"?new rt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(Dz(t.gravity)),n}}class Wc extends rt{constructor(t){super("b"),t&&this.addValue(t)}}const $P=100,Ez=0;class Cz extends Wc{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${$P}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var xP=Cz;class Nb extends Wc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>lp(n)),this}}class wP extends Nb{toString(){return`
|
|
94
|
+
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});var Mc=e=>e.type==="checkbox",Ua=e=>e instanceof Date,sr=e=>e==null;const yC=e=>typeof e=="object";var fn=e=>!sr(e)&&!Array.isArray(e)&&yC(e)&&!Ua(e),vC=e=>fn(e)&&e.target?Mc(e.target)?e.target.checked:e.target.value:e,sL=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,bC=(e,t)=>e.has(sL(t)),uL=e=>{const t=e.constructor&&e.constructor.prototype;return fn(t)&&t.hasOwnProperty("isPrototypeOf")},nb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function br(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(nb&&(e instanceof Blob||r))&&(n||fn(e)))if(t=n?[]:{},!n&&!uL(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=br(e[i]));else return e;return t}var Hh=e=>Array.isArray(e)?e.filter(Boolean):[],dn=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!fn(e))return n;const r=Hh(t.split(/[,[\].]+?/)).reduce((i,o)=>sr(i)?i:i[o],e);return dn(r)||r===e?dn(e[t])?n:e[t]:r},ti=e=>typeof e=="boolean",rb=e=>/^\w*$/.test(e),$C=e=>Hh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tt=(e,t,n)=>{let r=-1;const i=rb(t)?[t]:$C(t),o=i.length,a=o-1;for(;++r<o;){const u=i[r];let c=n;if(r!==a){const d=e[u];c=fn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=c,e=e[u]}return e};const Zf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},fo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},xC=b.createContext(null),Gh=()=>b.useContext(xC),lL=e=>{const{children:t,...n}=e;return b.createElement(xC.Provider,{value:n},t)};var wC=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==yi.all&&(t._proxyFormState[a]=!r||yi.all),n&&(n[a]=!0),e[a]}});return i},$r=e=>fn(e)&&!Object.keys(e).length,DC=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return $r(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||yi.all))},Xl=e=>Array.isArray(e)?e:[e],EC=(e,t,n)=>!e||!t||e===t||Xl(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function ib(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function cL(e){const t=Gh(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[a,u]=b.useState(n._formState),c=b.useRef(!0),d=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=b.useRef(i);return f.current=i,ib({disabled:r,next:h=>c.current&&EC(f.current,h.name,o)&&DC(h,d.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),b.useEffect(()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),b.useMemo(()=>wC(a,n,d.current,!1),[a,n])}var Ni=e=>typeof e=="string",CC=(e,t,n,r,i)=>Ni(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ae(n,o))):(r&&(t.watchAll=!0),n);function SC(e){const t=Gh(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},u=b.useRef(r);u.current=r,ib({disabled:o,subject:n._subjects.values,next:f=>{EC(u.current,f.name,a)&&d(br(CC(u.current,n._names,f.values||n._formValues,!1,i)))}});const[c,d]=b.useState(n._getWatch(r,i));return b.useEffect(()=>n._removeUnmounted()),c}function dL(e){const t=Gh(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=bC(i._names.array,n),u=SC({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),c=cL({control:i,name:n,exact:!0}),d=b.useRef(i.register(n,{...e.rules,value:u,...ti(e.disabled)?{disabled:e.disabled}:{}})),f=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(c.errors,n)}}),[c,n]),h=b.useMemo(()=>({name:n,value:u,...ti(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:m=>d.current.onChange({target:{value:vC(m),name:n},type:Zf.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:Zf.BLUR}),ref:m=>{const g=Ae(i._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:v=>m.setCustomValidity(v),reportValidity:()=>m.reportValidity()})}}),[n,i._formValues,r,c.disabled,u,i._fields]);return b.useEffect(()=>{const m=i._options.shouldUnregister||o,g=(v,$)=>{const C=Ae(i._fields,v);C&&C._f&&(C._f.mount=$)};if(g(n,!0),m){const v=br(Ae(i._options.defaultValues,n));Tt(i._defaultValues,n,v),dn(Ae(i._formValues,n))&&Tt(i._formValues,n,v)}return!a&&i.register(n),()=>{(a?m&&!i._state.action:m)?i.unregister(n):g(n,!1)}},[n,i,a,o]),b.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),b.useMemo(()=>({field:h,formState:c,fieldState:f}),[h,c,f])}const fL=e=>e.render(dL(e));var TC=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},G3=e=>({isOnSubmit:!e||e===yi.onSubmit,isOnBlur:e===yi.onBlur,isOnChange:e===yi.onChange,isOnAll:e===yi.all,isOnTouch:e===yi.onTouched}),q3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ql=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ae(e,i);if(o){const{_f:a,...u}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(Ql(u,t))break}else if(fn(u)&&Ql(u,t))break}}};var hL=(e,t,n)=>{const r=Xl(Ae(e,n));return Tt(r,"root",t[n]),Tt(e,n,r),e},ob=e=>e.type==="file",Li=e=>typeof e=="function",Jf=e=>{if(!nb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Pf=e=>Ni(e),ab=e=>e.type==="radio",Xf=e=>e instanceof RegExp;const Y3={value:!1,isValid:!1},Z3={value:!0,isValid:!0};var AC=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dn(e[0].attributes.value)?dn(e[0].value)||e[0].value===""?Z3:{value:e[0].value,isValid:!0}:Z3:Y3}return Y3};const J3={isValid:!1,value:null};var PC=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,J3):J3;function X3(e,t,n="validate"){if(Pf(e)||Array.isArray(e)&&e.every(Pf)||ti(e)&&!e)return{type:n,message:Pf(e)?e:"",ref:t}}var Ws=e=>fn(e)&&!Xf(e)?e:{value:e,message:""},Q3=async(e,t,n,r,i,o)=>{const{ref:a,refs:u,required:c,maxLength:d,minLength:f,min:h,max:m,pattern:g,validate:v,name:$,valueAsNumber:C,mount:x}=e._f,y=Ae(n,$);if(!x||t.has($))return{};const D=u?u[0]:a,P=G=>{i&&D.reportValidity&&(D.setCustomValidity(ti(G)?"":G||""),D.reportValidity())},E={},T=ab(a),k=Mc(a),S=T||k,U=(C||ob(a))&&dn(a.value)&&dn(y)||Jf(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,O=TC.bind(null,$,r,E),F=(G,K,W,j=fo.maxLength,L=fo.minLength)=>{const _=G?K:W;E[$]={type:G?j:L,message:_,ref:a,...O(G?j:L,_)}};if(o?!Array.isArray(y)||!y.length:c&&(!S&&(U||sr(y))||ti(y)&&!y||k&&!AC(u).isValid||T&&!PC(u).isValid)){const{value:G,message:K}=Pf(c)?{value:!!c,message:c}:Ws(c);if(G&&(E[$]={type:fo.required,message:K,ref:D,...O(fo.required,K)},!r))return P(K),E}if(!U&&(!sr(h)||!sr(m))){let G,K;const W=Ws(m),j=Ws(h);if(!sr(y)&&!isNaN(y)){const L=a.valueAsNumber||y&&+y;sr(W.value)||(G=L>W.value),sr(j.value)||(K=L<j.value)}else{const L=a.valueAsDate||new Date(y),_=V=>new Date(new Date().toDateString()+" "+V),M=a.type=="time",Y=a.type=="week";Ni(W.value)&&y&&(G=M?_(y)>_(W.value):Y?y>W.value:L>new Date(W.value)),Ni(j.value)&&y&&(K=M?_(y)<_(j.value):Y?y<j.value:L<new Date(j.value))}if((G||K)&&(F(!!G,W.message,j.message,fo.max,fo.min),!r))return P(E[$].message),E}if((d||f)&&!U&&(Ni(y)||o&&Array.isArray(y))){const G=Ws(d),K=Ws(f),W=!sr(G.value)&&y.length>+G.value,j=!sr(K.value)&&y.length<+K.value;if((W||j)&&(F(W,G.message,K.message),!r))return P(E[$].message),E}if(g&&!U&&Ni(y)){const{value:G,message:K}=Ws(g);if(Xf(G)&&!y.match(G)&&(E[$]={type:fo.pattern,message:K,ref:a,...O(fo.pattern,K)},!r))return P(K),E}if(v){if(Li(v)){const G=await v(y,n),K=X3(G,D);if(K&&(E[$]={...K,...O(fo.validate,K.message)},!r))return P(K.message),E}else if(fn(v)){let G={};for(const K in v){if(!$r(G)&&!r)break;const W=X3(await v[K](y,n),D,K);W&&(G={...W,...O(K,W.message)},P(W.message),r&&(E[$]=G))}if(!$r(G)&&(E[$]={ref:D,...G},!r))return E}}return P(!0),E};function pL(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=dn(e)?r++:e[t[r++]];return e}function mL(e){for(const t in e)if(e.hasOwnProperty(t)&&!dn(e[t]))return!1;return!0}function $n(e,t){const n=Array.isArray(t)?t:rb(t)?[t]:$C(t),r=n.length===1?e:pL(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(fn(r)&&$r(r)||Array.isArray(r)&&mL(r))&&$n(e,n.slice(0,-1)),e}var Gm=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},wy=e=>sr(e)||!yC(e);function ea(e,t){if(wy(e)||wy(t))return e===t;if(Ua(e)&&Ua(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(Ua(o)&&Ua(a)||fn(o)&&fn(a)||Array.isArray(o)&&Array.isArray(a)?!ea(o,a):o!==a)return!1}}return!0}var _C=e=>e.type==="select-multiple",gL=e=>ab(e)||Mc(e),qm=e=>Jf(e)&&e.isConnected,RC=e=>{for(const t in e)if(Li(e[t]))return!0;return!1};function Qf(e,t={}){const n=Array.isArray(e);if(fn(e)||n)for(const r in e)Array.isArray(e[r])||fn(e[r])&&!RC(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Qf(e[r],t[r])):sr(e[r])||(t[r]=!0);return t}function OC(e,t,n){const r=Array.isArray(e);if(fn(e)||r)for(const i in e)Array.isArray(e[i])||fn(e[i])&&!RC(e[i])?dn(t)||wy(n[i])?n[i]=Array.isArray(e[i])?Qf(e[i],[]):{...Qf(e[i])}:OC(e[i],sr(t)?{}:t[i],n[i]):n[i]=!ea(e[i],t[i]);return n}var Sl=(e,t)=>OC(e,t,Qf(t)),MC=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dn(e)?e:t?e===""?NaN:e&&+e:n&&Ni(e)?new Date(e):r?r(e):e;function Ym(e){const t=e.ref;return ob(t)?t.files:ab(t)?PC(e.refs).value:_C(t)?[...t.selectedOptions].map(({value:n})=>n):Mc(t)?AC(e.refs).value:MC(dn(t.value)?e.ref.value:t.value,e)}var yL=(e,t,n,r)=>{const i={};for(const o of e){const a=Ae(t,o);a&&Tt(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Tl=e=>dn(e)?e:Xf(e)?e.source:fn(e)?Xf(e.value)?e.value.source:e.value:e;const e$="AsyncFunction";var vL=e=>!!e&&!!e.validate&&!!(Li(e.validate)&&e.validate.constructor.name===e$||fn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===e$)),bL=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function t$(e,t,n){const r=Ae(e,n);if(r||rb(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ae(t,o),u=Ae(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var $L=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,xL=(e,t)=>!Hh(Ae(e,t)).length&&$n(e,t);const wL={mode:yi.onSubmit,reValidateMode:yi.onChange,shouldFocusError:!0};function DL(e={}){let t={...wL,...e},n={submitCount:0,isDirty:!1,isLoading:Li(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=fn(t.defaultValues)||fn(t.values)?br(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:br(i),a={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:Gm(),array:Gm(),state:Gm()},m=G3(t.mode),g=G3(t.reValidateMode),v=t.criteriaMode===yi.all,$=q=>Z=>{clearTimeout(d),d=setTimeout(q,Z)},C=async q=>{if(!t.disabled&&(f.isValid||q)){const Z=t.resolver?$r((await S()).errors):await O(r,!0);Z!==n.isValid&&h.state.next({isValid:Z})}},x=(q,Z)=>{!t.disabled&&(f.isValidating||f.validatingFields)&&((q||Array.from(u.mount)).forEach(te=>{te&&(Z?Tt(n.validatingFields,te,Z):$n(n.validatingFields,te))}),h.state.next({validatingFields:n.validatingFields,isValidating:!$r(n.validatingFields)}))},y=(q,Z=[],te,pe,Ce=!0,De=!0)=>{if(pe&&te&&!t.disabled){if(a.action=!0,De&&Array.isArray(Ae(r,q))){const _e=te(Ae(r,q),pe.argA,pe.argB);Ce&&Tt(r,q,_e)}if(De&&Array.isArray(Ae(n.errors,q))){const _e=te(Ae(n.errors,q),pe.argA,pe.argB);Ce&&Tt(n.errors,q,_e),xL(n.errors,q)}if(f.touchedFields&&De&&Array.isArray(Ae(n.touchedFields,q))){const _e=te(Ae(n.touchedFields,q),pe.argA,pe.argB);Ce&&Tt(n.touchedFields,q,_e)}f.dirtyFields&&(n.dirtyFields=Sl(i,o)),h.state.next({name:q,isDirty:G(q,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Tt(o,q,Z)},D=(q,Z)=>{Tt(n.errors,q,Z),h.state.next({errors:n.errors})},P=q=>{n.errors=q,h.state.next({errors:n.errors,isValid:!1})},E=(q,Z,te,pe)=>{const Ce=Ae(r,q);if(Ce){const De=Ae(o,q,dn(te)?Ae(i,q):te);dn(De)||pe&&pe.defaultChecked||Z?Tt(o,q,Z?De:Ym(Ce._f)):j(q,De),a.mount&&C()}},T=(q,Z,te,pe,Ce)=>{let De=!1,_e=!1;const Ve={name:q};if(!t.disabled){const mt=!!(Ae(r,q)&&Ae(r,q)._f&&Ae(r,q)._f.disabled);if(!te||pe){f.isDirty&&(_e=n.isDirty,n.isDirty=Ve.isDirty=G(),De=_e!==Ve.isDirty);const ut=mt||ea(Ae(i,q),Z);_e=!!(!mt&&Ae(n.dirtyFields,q)),ut||mt?$n(n.dirtyFields,q):Tt(n.dirtyFields,q,!0),Ve.dirtyFields=n.dirtyFields,De=De||f.dirtyFields&&_e!==!ut}if(te){const ut=Ae(n.touchedFields,q);ut||(Tt(n.touchedFields,q,te),Ve.touchedFields=n.touchedFields,De=De||f.touchedFields&&ut!==te)}De&&Ce&&h.state.next(Ve)}return De?Ve:{}},k=(q,Z,te,pe)=>{const Ce=Ae(n.errors,q),De=f.isValid&&ti(Z)&&n.isValid!==Z;if(t.delayError&&te?(c=$(()=>D(q,te)),c(t.delayError)):(clearTimeout(d),c=null,te?Tt(n.errors,q,te):$n(n.errors,q)),(te?!ea(Ce,te):Ce)||!$r(pe)||De){const _e={...pe,...De&&ti(Z)?{isValid:Z}:{},errors:n.errors,name:q};n={...n,..._e},h.state.next(_e)}},S=async q=>{x(q,!0);const Z=await t.resolver(o,t.context,yL(q||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(q),Z},U=async q=>{const{errors:Z}=await S(q);if(q)for(const te of q){const pe=Ae(Z,te);pe?Tt(n.errors,te,pe):$n(n.errors,te)}else n.errors=Z;return Z},O=async(q,Z,te={valid:!0})=>{for(const pe in q){const Ce=q[pe];if(Ce){const{_f:De,..._e}=Ce;if(De){const Ve=u.array.has(De.name),mt=Ce._f&&vL(Ce._f);mt&&f.validatingFields&&x([pe],!0);const ut=await Q3(Ce,u.disabled,o,v,t.shouldUseNativeValidation&&!Z,Ve);if(mt&&f.validatingFields&&x([pe]),ut[De.name]&&(te.valid=!1,Z))break;!Z&&(Ae(ut,De.name)?Ve?hL(n.errors,ut,De.name):Tt(n.errors,De.name,ut[De.name]):$n(n.errors,De.name))}!$r(_e)&&await O(_e,Z,te)}}return te.valid},F=()=>{for(const q of u.unMount){const Z=Ae(r,q);Z&&(Z._f.refs?Z._f.refs.every(te=>!qm(te)):!qm(Z._f.ref))&&Ee(q)}u.unMount=new Set},G=(q,Z)=>!t.disabled&&(q&&Z&&Tt(o,q,Z),!ea(z(),i)),K=(q,Z,te)=>CC(q,u,{...a.mount?o:dn(Z)?i:Ni(q)?{[q]:Z}:Z},te,Z),W=q=>Hh(Ae(a.mount?o:i,q,t.shouldUnregister?Ae(i,q,[]):[])),j=(q,Z,te={})=>{const pe=Ae(r,q);let Ce=Z;if(pe){const De=pe._f;De&&(!De.disabled&&Tt(o,q,MC(Z,De)),Ce=Jf(De.ref)&&sr(Z)?"":Z,_C(De.ref)?[...De.ref.options].forEach(_e=>_e.selected=Ce.includes(_e.value)):De.refs?Mc(De.ref)?De.refs.length>1?De.refs.forEach(_e=>(!_e.defaultChecked||!_e.disabled)&&(_e.checked=Array.isArray(Ce)?!!Ce.find(Ve=>Ve===_e.value):Ce===_e.value)):De.refs[0]&&(De.refs[0].checked=!!Ce):De.refs.forEach(_e=>_e.checked=_e.value===Ce):ob(De.ref)?De.ref.value="":(De.ref.value=Ce,De.ref.type||h.values.next({name:q,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&T(q,Ce,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&V(q)},L=(q,Z,te)=>{for(const pe in Z){const Ce=Z[pe],De=`${q}.${pe}`,_e=Ae(r,De);(u.array.has(q)||fn(Ce)||_e&&!_e._f)&&!Ua(Ce)?L(De,Ce,te):j(De,Ce,te)}},_=(q,Z,te={})=>{const pe=Ae(r,q),Ce=u.array.has(q),De=br(Z);Tt(o,q,De),Ce?(h.array.next({name:q,values:{...o}}),(f.isDirty||f.dirtyFields)&&te.shouldDirty&&h.state.next({name:q,dirtyFields:Sl(i,o),isDirty:G(q,De)})):pe&&!pe._f&&!sr(De)?L(q,De,te):j(q,De,te),q3(q,u)&&h.state.next({...n}),h.values.next({name:a.mount?q:void 0,values:{...o}})},M=async q=>{a.mount=!0;const Z=q.target;let te=Z.name,pe=!0;const Ce=Ae(r,te),De=()=>Z.type?Ym(Ce._f):vC(q),_e=Ve=>{pe=Number.isNaN(Ve)||Ua(Ve)&&isNaN(Ve.getTime())||ea(Ve,Ae(o,te,Ve))};if(Ce){let Ve,mt;const ut=De(),Rt=q.type===Zf.BLUR||q.type===Zf.FOCUS_OUT,Pn=!bL(Ce._f)&&!t.resolver&&!Ae(n.errors,te)&&!Ce._f.deps||$L(Rt,Ae(n.touchedFields,te),n.isSubmitted,g,m),_n=q3(te,u,Rt);Tt(o,te,ut),Rt?(Ce._f.onBlur&&Ce._f.onBlur(q),c&&c(0)):Ce._f.onChange&&Ce._f.onChange(q);const Yt=T(te,ut,Rt,!1),Ln=!$r(Yt)||_n;if(!Rt&&h.values.next({name:te,type:q.type,values:{...o}}),Pn)return f.isValid&&(t.mode==="onBlur"&&Rt?C():Rt||C()),Ln&&h.state.next({name:te,..._n?{}:Yt});if(!Rt&&_n&&h.state.next({...n}),t.resolver){const{errors:tn}=await S([te]);if(_e(ut),pe){const vt=t$(n.errors,r,te),Vn=t$(tn,r,vt.name||te);Ve=Vn.error,te=Vn.name,mt=$r(tn)}}else x([te],!0),Ve=(await Q3(Ce,u.disabled,o,v,t.shouldUseNativeValidation))[te],x([te]),_e(ut),pe&&(Ve?mt=!1:f.isValid&&(mt=await O(r,!0)));pe&&(Ce._f.deps&&V(Ce._f.deps),k(te,mt,Ve,Yt))}},Y=(q,Z)=>{if(Ae(n.errors,Z)&&q.focus)return q.focus(),1},V=async(q,Z={})=>{let te,pe;const Ce=Xl(q);if(t.resolver){const De=await U(dn(q)?q:Ce);te=$r(De),pe=q?!Ce.some(_e=>Ae(De,_e)):te}else q?(pe=(await Promise.all(Ce.map(async De=>{const _e=Ae(r,De);return await O(_e&&_e._f?{[De]:_e}:_e)}))).every(Boolean),!(!pe&&!n.isValid)&&C()):pe=te=await O(r);return h.state.next({...!Ni(q)||f.isValid&&te!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:te}:{},errors:n.errors}),Z.shouldFocus&&!pe&&Ql(r,Y,q?Ce:u.mount),pe},z=q=>{const Z={...a.mount?o:i};return dn(q)?Z:Ni(q)?Ae(Z,q):q.map(te=>Ae(Z,te))},re=(q,Z)=>({invalid:!!Ae((Z||n).errors,q),isDirty:!!Ae((Z||n).dirtyFields,q),error:Ae((Z||n).errors,q),isValidating:!!Ae(n.validatingFields,q),isTouched:!!Ae((Z||n).touchedFields,q)}),oe=q=>{q&&Xl(q).forEach(Z=>$n(n.errors,Z)),h.state.next({errors:q?n.errors:{}})},fe=(q,Z,te)=>{const pe=(Ae(r,q,{_f:{}})._f||{}).ref,Ce=Ae(n.errors,q)||{},{ref:De,message:_e,type:Ve,...mt}=Ce;Tt(n.errors,q,{...mt,...Z,ref:pe}),h.state.next({name:q,errors:n.errors,isValid:!1}),te&&te.shouldFocus&&pe&&pe.focus&&pe.focus()},ie=(q,Z)=>Li(q)?h.values.subscribe({next:te=>q(K(void 0,Z),te)}):K(q,Z,!0),Ee=(q,Z={})=>{for(const te of q?Xl(q):u.mount)u.mount.delete(te),u.array.delete(te),Z.keepValue||($n(r,te),$n(o,te)),!Z.keepError&&$n(n.errors,te),!Z.keepDirty&&$n(n.dirtyFields,te),!Z.keepTouched&&$n(n.touchedFields,te),!Z.keepIsValidating&&$n(n.validatingFields,te),!t.shouldUnregister&&!Z.keepDefaultValue&&$n(i,te);h.values.next({values:{...o}}),h.state.next({...n,...Z.keepDirty?{isDirty:G()}:{}}),!Z.keepIsValid&&C()},$e=({disabled:q,name:Z,field:te,fields:pe})=>{(ti(q)&&a.mount||q||u.disabled.has(Z))&&(q?u.disabled.add(Z):u.disabled.delete(Z),T(Z,Ym(te?te._f:Ae(pe,Z)._f),!1,!1,!0))},ne=(q,Z={})=>{let te=Ae(r,q);const pe=ti(Z.disabled)||ti(t.disabled);return Tt(r,q,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:q}},name:q,mount:!0,...Z}}),u.mount.add(q),te?$e({field:te,disabled:ti(Z.disabled)?Z.disabled:t.disabled,name:q}):E(q,!0,Z.value),{...pe?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:Tl(Z.min),max:Tl(Z.max),minLength:Tl(Z.minLength),maxLength:Tl(Z.maxLength),pattern:Tl(Z.pattern)}:{},name:q,onChange:M,onBlur:M,ref:Ce=>{if(Ce){ne(q,Z),te=Ae(r,q);const De=dn(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,_e=gL(De),Ve=te._f.refs||[];if(_e?Ve.find(mt=>mt===De):De===te._f.ref)return;Tt(r,q,{_f:{...te._f,..._e?{refs:[...Ve.filter(qm),De,...Array.isArray(Ae(i,q))?[{}]:[]],ref:{type:De.type,name:q}}:{ref:De}}}),E(q,!1,void 0,De)}else te=Ae(r,q,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(bC(u.array,q)&&a.action)&&u.unMount.add(q)}}},ye=()=>t.shouldFocusError&&Ql(r,Y,u.mount),xe=q=>{ti(q)&&(h.state.next({disabled:q}),Ql(r,(Z,te)=>{const pe=Ae(r,te);pe&&(Z.disabled=pe._f.disabled||q,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(Ce=>{Ce.disabled=pe._f.disabled||q}))},0,!1))},he=(q,Z)=>async te=>{let pe;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let Ce=br(o);if(u.disabled.size)for(const De of u.disabled)Tt(Ce,De,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:De,values:_e}=await S();n.errors=De,Ce=_e}else await O(r);if($n(n.errors,"root"),$r(n.errors)){h.state.next({errors:{}});try{await q(Ce,te)}catch(De){pe=De}}else Z&&await Z({...n.errors},te),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(n.errors)&&!pe,submitCount:n.submitCount+1,errors:n.errors}),pe)throw pe},le=(q,Z={})=>{Ae(r,q)&&(dn(Z.defaultValue)?_(q,br(Ae(i,q))):(_(q,Z.defaultValue),Tt(i,q,br(Z.defaultValue))),Z.keepTouched||$n(n.touchedFields,q),Z.keepDirty||($n(n.dirtyFields,q),n.isDirty=Z.defaultValue?G(q,br(Ae(i,q))):G()),Z.keepError||($n(n.errors,q),f.isValid&&C()),h.state.next({...n}))},Fe=(q,Z={})=>{const te=q?br(q):i,pe=br(te),Ce=$r(q),De=Ce?i:pe;if(Z.keepDefaultValues||(i=te),!Z.keepValues){if(Z.keepDirtyValues){const _e=new Set([...u.mount,...Object.keys(Sl(i,o))]);for(const Ve of Array.from(_e))Ae(n.dirtyFields,Ve)?Tt(De,Ve,Ae(o,Ve)):_(Ve,Ae(De,Ve))}else{if(nb&&dn(q))for(const _e of u.mount){const Ve=Ae(r,_e);if(Ve&&Ve._f){const mt=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(Jf(mt)){const ut=mt.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Z.keepDefaultValues?br(i):{}:br(De),h.array.next({values:{...De}}),h.values.next({values:{...De}})}u={mount:Z.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!ea(q,i)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:Z.keepDirtyValues?Z.keepDefaultValues&&o?Sl(i,o):n.dirtyFields:Z.keepDefaultValues&&q?Sl(i,q):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},et=(q,Z)=>Fe(Li(q)?q(o):q,Z);return{control:{register:ne,unregister:Ee,getFieldState:re,handleSubmit:he,setError:fe,_executeSchema:S,_getWatch:K,_getDirty:G,_updateValid:C,_removeUnmounted:F,_updateFieldArray:y,_updateDisabledField:$e,_getFieldArray:W,_reset:Fe,_resetDefaultValues:()=>Li(t.defaultValues)&&t.defaultValues().then(q=>{et(q,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:q=>{n={...n,...q}},_disableForm:xe,_subjects:h,_proxyFormState:f,_setErrors:P,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(q){a=q},get _defaultValues(){return i},get _names(){return u},set _names(q){u=q},get _formState(){return n},set _formState(q){n=q},get _options(){return t},set _options(q){t={...t,...q}}},trigger:V,register:ne,handleSubmit:he,watch:ie,setValue:_,getValues:z,reset:et,resetField:le,clearErrors:oe,unregister:Ee,setError:fe,setFocus:(q,Z={})=>{const te=Ae(r,q),pe=te&&te._f;if(pe){const Ce=pe.refs?pe.refs[0]:pe.ref;Ce.focus&&(Ce.focus(),Z.shouldSelect&&Li(Ce.select)&&Ce.select())}},getFieldState:re}}function EL(e={}){const t=b.useRef(void 0),n=b.useRef(void 0),[r,i]=b.useState({isDirty:!1,isValidating:!1,isLoading:Li(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Li(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...DL(e),formState:r});const o=t.current.control;return o._options=e,ib({subject:o._subjects.state,next:a=>{DC(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),b.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),b.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),b.useEffect(()=>{e.values&&!ea(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),b.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),b.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),b.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=wC(r,o),t.current}const zt=typeof document<"u"?b.useLayoutEffect:()=>{};function wn(e){const t=b.useRef(null);return zt(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function CL(e){let[t,n]=b.useState(e),r=b.useRef(null),i=wn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});zt(()=>{r.current&&i()});let o=wn(a=>{r.current=a(t),i()});return[t,o]}const eh={prefix:String(Math.round(Math.random()*1e10)),current:0},FC=b.createContext(eh),SL=b.createContext(!1);let TL=!!(typeof window<"u"&&window.document&&window.document.createElement),Zm=new WeakMap;function AL(e=!1){let t=b.useContext(FC),n=b.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Zm.get(o);a==null?Zm.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Zm.delete(o))}n.current=++t.current}return n.current}function PL(e){let t=b.useContext(FC);t===eh&&!TL&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=AL(!!e),r=t===eh&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function _L(e){let t=b.useId(),[n]=b.useState(sb()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${eh.prefix}`;return e||`${r}-${t}`}const RL=typeof b.useId=="function"?_L:PL;function OL(){return!1}function ML(){return!0}function FL(e){return()=>{}}function sb(){return typeof b.useSyncExternalStore=="function"?b.useSyncExternalStore(FL,OL,ML):b.useContext(SL)}let kL=!!(typeof window<"u"&&window.document&&window.document.createElement),Xo=new Map;function Mr(e){let[t,n]=b.useState(e),r=b.useRef(null),i=RL(t),o=b.useCallback(a=>{r.current=a},[]);return kL&&(Xo.has(i)&&!Xo.get(i).includes(o)?Xo.set(i,[...Xo.get(i),o]):Xo.set(i,[o])),zt(()=>{let a=i;return()=>{Xo.delete(a)}},[i]),b.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function BL(e,t){if(e===t)return e;let n=Xo.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Xo.get(t);return r?(r.forEach(i=>i(e)),e):t}function Cu(e=[]){let t=Mr(),[n,r]=CL(t),i=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return zt(i,[t,i,...e]),n}function as(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Lt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},fa=e=>e&&"window"in e&&e.window===e?e:Lt(e).defaultView||window;function kC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=kC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function IL(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=kC(e))&&(r&&(r+=" "),r+=t);return r}function xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=as(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=IL(o,a):i==="id"&&o&&a?t.id=BL(o,a):t[i]=a!==void 0?a:o}}return t}const LL=new Set(["id"]),VL=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),NL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),jL=/^(data-.*)$/;function Po(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(LL.has(a)||n&&VL.has(a)||r&&NL.has(a)||i!=null&&i.has(a)||jL.test(a))&&(o[a]=e[a]);return o}function vi(e){if(KL())e.focus({preventScroll:!0});else{let t=UL(e);e.focus(),zL(t)}}let nf=null;function KL(){if(nf==null){nf=!1;try{document.createElement("div").focus({get preventScroll(){return nf=!0,!0}})}catch{}}return nf}function UL(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function zL(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function qh(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function ub(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function _o(e){let t=null;return()=>(t==null&&(t=e()),t)}const Co=_o(function(){return ub(/^Mac/i)}),WL=_o(function(){return ub(/^iPhone/i)}),BC=_o(function(){return ub(/^iPad/i)||Co()&&navigator.maxTouchPoints>1}),Fc=_o(function(){return WL()||BC()}),_f=_o(function(){return Co()||Fc()}),lb=_o(function(){return qh(/AppleWebKit/i)&&!HL()}),HL=_o(function(){return qh(/Chrome/i)}),IC=_o(function(){return qh(/Android/i)}),GL=_o(function(){return qh(/Firefox/i)}),qL=b.createContext({isNative:!0,open:ZL,useHref:e=>e});function Yh(){return b.useContext(qL)}function ss(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}=t;GL()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Co()?o=!0:a=!0);let d=lb()&&Co()&&!BC()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c,bubbles:!0,cancelable:!0});ss.isOpening=n,vi(e),e.dispatchEvent(d),ss.isOpening=!1}ss.isOpening=!1;function YL(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function ZL(e,t){YL(e,n=>ss(n,t))}function JL(e){let t=Yh();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Zs=new Map,Dy=new Set;function n$(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Zs.get(r.target);i||(i=new Set,Zs.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Zs.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Zs.delete(r.target)),Zs.size===0)){for(let o of Dy)o();Dy.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?n$():document.addEventListener("DOMContentLoaded",n$));function LC(e){requestAnimationFrame(()=>{Zs.size===0?e():Dy.add(e)})}function Uu(){let e=b.useRef(new Map),t=b.useCallback((i,o,a,u)=>{let c=u!=null&&u.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:u}),i.addEventListener(o,a,u)},[]),n=b.useCallback((i,o,a,u)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;i.removeEventListener(o,d,u),e.current.delete(a)},[]),r=b.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return b.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Su(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Mr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function r$(e,t){const n=b.useRef(!0),r=b.useRef(null);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function XL(){return typeof window.ResizeObserver<"u"}function i$(e){const{ref:t,box:n,onResize:r}=e;b.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(XL()){const o=new window.ResizeObserver(a=>{a.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function VC(e,t){zt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function dc(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Zh(e,t){let n=e;for(dc(n,t)&&(n=n.parentElement);n&&!dc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function QL(e,t){const n=[];for(;e&&e!==document.documentElement;)dc(e,t)&&n.push(e),e=e.parentElement;return n}let eV=0;const Jm=new Map;function kc(e){let[t,n]=b.useState();return zt(()=>{if(!e)return;let r=Jm.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${eV++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},Jm.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Jm.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function sa(e,t,n,r){let i=wn(n),o=n==null;b.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function NC(e,t){let n=o$(e,t,"left"),r=o$(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d}=getComputedStyle(e),f=e.scrollLeft+parseInt(d,10),h=e.scrollTop+parseInt(c,10),m=f+e.clientWidth,g=h+e.clientHeight;n<=a?a=n-parseInt(d,10):n+i>m&&(a+=n+i-m),r<=h?u=r-parseInt(c,10):r+o>g&&(u+=r+o-g),e.scrollLeft=a,e.scrollTop=u}function o$(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function th(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let c=QL(e);for(let d of c)NC(d,e)}else{var n;let{left:c,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:h}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-h)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function Ey(e){return e.mozInputSource===0&&e.isTrusted?!0:IC()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tV(e){return!IC()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function jC(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function cb(e,t,n){let r=b.useRef(t),i=wn(()=>{n&&n(r.current)});b.useEffect(()=>{var o;let a=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}function Fr(e,t,n){let[r,i]=b.useState(e||t),o=b.useRef(e!==void 0),a=e!==void 0;b.useEffect(()=>{let d=o.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let u=a?e:r,c=b.useCallback((d,...f)=>{let h=(m,...g)=>{n&&(Object.is(u,m)||n(m,...g)),a||(u=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...v)=>{let $=d(a?u:g,...v);return h($,...f),a?g:$})):(a||i(d),h(d,...f))},[a,u,n]);return[u,c]}function Tu(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function rf(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let a=Math.pow(10,o);n=Math.round(n*a)/a}return n}function Al(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=rf(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(rf(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(rf((n-t)/r,r))*r),o=rf(o,r),o}let Qs="default",Cy="",Rf=new WeakMap;function Sy(e){if(Fc()){if(Qs==="default"){const t=Lt(e);Cy=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Qs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Rf.set(e,e.style.userSelect),e.style.userSelect="none")}function Kl(e){if(Fc()){if(Qs!=="disabled")return;Qs="restoring",setTimeout(()=>{LC(()=>{if(Qs==="restoring"){const t=Lt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Cy||""),Cy="",Qs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Rf.has(e)){let t=Rf.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Rf.delete(e)}}const db=b.createContext({register:()=>{}});db.displayName="PressResponderContext";function nV(e,t){return t.get?t.get.call(e):t.value}function KC(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function rV(e,t){var n=KC(e,t,"get");return nV(e,n)}function iV(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Bc(e,t,n){iV(e,t),t.set(e,n)}function oV(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function a$(e,t,n){var r=KC(e,t,"set");return oV(e,r,n),n}function aV(e){let t=b.useContext(db);if(t){let{register:n,...r}=t;e=xt(r,e),n()}return VC(t,e.ref),e}var of=new WeakMap;class af{continuePropagation(){a$(this,of,!1)}get shouldStopPropagation(){return rV(this,of)}constructor(t,n,r,i){Bc(this,of,{writable:!0,value:void 0}),a$(this,of,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=a==null?void 0:a.getBoundingClientRect();let c,d=0,f,h=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,h=r.clientY),u&&(f!=null&&h!=null?(c=f-u.left,d=h-u.top):(c=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=c,this.y=d}}const s$=Symbol("linkClicked");function Ic(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...m}=aV(e),[g,v]=b.useState(!1),$=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:x}=Uu(),y=wn((S,U)=>{let O=$.current;if(a||O.didFirePressStart)return!1;let F=!0;if(O.isTriggeringEvent=!0,r){let G=new af("pressstart",U,S);r(G),F=G.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,v(!0),F}),D=wn((S,U,O=!0)=>{let F=$.current;if(!F.didFirePressStart)return!1;F.ignoreClickAfterPress=!0,F.didFirePressStart=!1,F.isTriggeringEvent=!0;let G=!0;if(i){let K=new af("pressend",U,S);i(K),G=K.shouldStopPropagation}if(n&&n(!1),v(!1),t&&O&&!a){let K=new af("press",U,S);t(K),G&&(G=K.shouldStopPropagation)}return F.isTriggeringEvent=!1,G}),P=wn((S,U)=>{let O=$.current;if(a)return!1;if(o){O.isTriggeringEvent=!0;let F=new af("pressup",U,S);return o(F),O.isTriggeringEvent=!1,F.shouldStopPropagation}return!0}),E=wn(S=>{let U=$.current;U.isPressed&&U.target&&(U.isOverTarget&&U.pointerType!=null&&D(ho(U.target,S),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,x(),f||Kl(U.target))}),T=wn(S=>{d&&E(S)}),k=b.useMemo(()=>{let S=$.current,U={onKeyDown(F){if(Xm(F.nativeEvent,F.currentTarget)&&F.currentTarget.contains(F.target)){var G;l$(F.target,F.key)&&F.preventDefault();let K=!0;if(!S.isPressed&&!F.repeat){S.target=F.currentTarget,S.isPressed=!0,K=y(F,"keyboard");let W=F.currentTarget,j=L=>{Xm(L,W)&&!L.repeat&&W.contains(L.target)&&S.target&&P(ho(S.target,L),"keyboard")};C(Lt(F.currentTarget),"keyup",as(j,O),!0)}K&&F.stopPropagation(),F.metaKey&&Co()&&((G=S.metaKeyEvents)===null||G===void 0||G.set(F.key,F.nativeEvent))}else F.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(F){if(!(F&&!F.currentTarget.contains(F.target))&&F&&F.button===0&&!S.isTriggeringEvent&&!ss.isOpening){let G=!0;if(a&&F.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Ey(F.nativeEvent))){!a&&!c&&vi(F.currentTarget);let K=y(F,"virtual"),W=P(F,"virtual"),j=D(F,"virtual");G=K&&W&&j}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,G&&F.stopPropagation()}}},O=F=>{var G;if(S.isPressed&&S.target&&Xm(F,S.target)){var K;l$(F.target,F.key)&&F.preventDefault();let j=F.target;D(ho(S.target,F),"keyboard",S.target.contains(j)),x(),F.key!=="Enter"&&fb(S.target)&&S.target.contains(j)&&!F[s$]&&(F[s$]=!0,ss(S.target,F,!1)),S.isPressed=!1,(K=S.metaKeyEvents)===null||K===void 0||K.delete(F.key)}else if(F.key==="Meta"&&(!((G=S.metaKeyEvents)===null||G===void 0)&&G.size)){var W;let j=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let L of j.values())(W=S.target)===null||W===void 0||W.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){U.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(tV(j.nativeEvent)){S.pointerType="virtual";return}Qm(j.currentTarget)&&j.preventDefault(),S.pointerType=j.pointerType;let L=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=j.pointerId,S.target=j.currentTarget,!a&&!c&&vi(j.currentTarget),f||Sy(S.target),L=y(j,S.pointerType),C(Lt(j.currentTarget),"pointermove",F,!1),C(Lt(j.currentTarget),"pointerup",G,!1),C(Lt(j.currentTarget),"pointercancel",W,!1)),L&&j.stopPropagation()},U.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Qm(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},U.onPointerUp=j=>{!j.currentTarget.contains(j.target)||S.pointerType==="virtual"||j.button===0&&Hs(j,j.currentTarget)&&P(j,S.pointerType||j.pointerType)};let F=j=>{j.pointerId===S.activePointerId&&(S.target&&Hs(j,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,y(ho(S.target,j),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(ho(S.target,j),S.pointerType,!1),T(j)))},G=j=>{j.pointerId===S.activePointerId&&S.isPressed&&j.button===0&&S.target&&(Hs(j,S.target)&&S.pointerType!=null?D(ho(S.target,j),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(ho(S.target,j),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,x(),f||Kl(S.target),"ontouchend"in S.target&&j.pointerType!=="mouse"&&C(S.target,"touchend",K,{once:!0}))},K=j=>{UC(j.currentTarget)&&j.preventDefault()},W=j=>{E(j)};U.onDragStart=j=>{j.currentTarget.contains(j.target)&&E(j)}}else{U.onMouseDown=K=>{if(K.button!==0||!K.currentTarget.contains(K.target))return;if(Qm(K.currentTarget)&&K.preventDefault(),S.ignoreEmulatedMouseEvents){K.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=K.currentTarget,S.pointerType=Ey(K.nativeEvent)?"virtual":"mouse",!a&&!c&&vi(K.currentTarget),y(K,S.pointerType)&&K.stopPropagation(),C(Lt(K.currentTarget),"mouseup",F,!1)},U.onMouseEnter=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,W=y(K,S.pointerType)),W&&K.stopPropagation()},U.onMouseLeave=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,W=D(K,S.pointerType,!1),T(K)),W&&K.stopPropagation()},U.onMouseUp=K=>{K.currentTarget.contains(K.target)&&!S.ignoreEmulatedMouseEvents&&K.button===0&&P(K,S.pointerType||"mouse")};let F=K=>{if(K.button===0){if(S.isPressed=!1,x(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&Hs(K,S.target)&&S.pointerType!=null?D(ho(S.target,K),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(ho(S.target,K),S.pointerType,!1),S.isOverTarget=!1}};U.onTouchStart=K=>{if(!K.currentTarget.contains(K.target))return;let W=sV(K.nativeEvent);if(!W)return;S.activePointerId=W.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=K.currentTarget,S.pointerType="touch",!a&&!c&&vi(K.currentTarget),f||Sy(S.target),y(Go(S.target,K),S.pointerType)&&K.stopPropagation(),C(fa(K.currentTarget),"scroll",G,!0)},U.onTouchMove=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=u$(K.nativeEvent,S.activePointerId),j=!0;W&&Hs(W,K.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,j=y(Go(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,j=D(Go(S.target,K),S.pointerType,!1),T(Go(S.target,K))),j&&K.stopPropagation()},U.onTouchEnd=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=u$(K.nativeEvent,S.activePointerId),j=!0;W&&Hs(W,K.currentTarget)&&S.pointerType!=null?(P(Go(S.target,K),S.pointerType),j=D(Go(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(j=D(Go(S.target,K),S.pointerType,!1)),j&&K.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&Kl(S.target),x()},U.onTouchCancel=K=>{K.currentTarget.contains(K.target)&&(K.stopPropagation(),S.isPressed&&E(Go(S.target,K)))};let G=K=>{S.isPressed&&K.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};U.onDragStart=K=>{K.currentTarget.contains(K.target)&&E(K)}}return U},[C,a,c,x,f,E,T,D,y,P]);return b.useEffect(()=>()=>{var S;f||Kl((S=$.current.target)!==null&&S!==void 0?S:void 0)},[f]),{isPressed:u||g,pressProps:xt(m,k)}}function fb(e){return e.tagName==="A"&&e.hasAttribute("href")}function Xm(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof fa(i).HTMLInputElement&&!zC(i,n)||i instanceof fa(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&fb(i))&&n!=="Enter")}function sV(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function u$(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Go(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function ho(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function uV(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function lV(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Hs(e,t){let n=t.getBoundingClientRect(),r=uV(e);return lV(n,r)}function Qm(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function UC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!fb(e)}function l$(e,t){return e instanceof HTMLInputElement?!zC(e,t):UC(e)}const cV=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function zC(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":cV.has(e.type)}function dV({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return b.createElement(db.Provider,{value:t},e)}class fV{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function WC(e){let t=b.useRef({isFocused:!1,observer:null});zt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=wn(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new fV("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function hV(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=b.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),i&&i(!1),!0},[r,i]),a=WC(o),u=b.useCallback(c=>{const d=Lt(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),i&&i(!0),a(c))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let hs=null,pV=new Set,ec=new Map,us=!1,Ty=!1;function Jh(e,t){for(let n of pV)n(e,t)}function mV(e){return!(e.metaKey||!Co()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function nh(e){us=!0,mV(e)&&(hs="keyboard",Jh("keyboard",e))}function ni(e){hs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(us=!0,Jh("pointer",e))}function HC(e){Ey(e)&&(us=!0,hs="virtual")}function GC(e){e.target===window||e.target===document||(!us&&!Ty&&(hs="virtual",Jh("virtual",e)),us=!1,Ty=!1)}function qC(){us=!1,Ty=!0}function c$(e){if(typeof window>"u"||ec.get(fa(e)))return;const t=fa(e),n=Lt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){us=!0,r.apply(this,arguments)},n.addEventListener("keydown",nh,!0),n.addEventListener("keyup",nh,!0),n.addEventListener("click",HC,!0),t.addEventListener("focus",GC,!0),t.addEventListener("blur",qC,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ni,!0),n.addEventListener("pointermove",ni,!0),n.addEventListener("pointerup",ni,!0)):(n.addEventListener("mousedown",ni,!0),n.addEventListener("mousemove",ni,!0),n.addEventListener("mouseup",ni,!0)),t.addEventListener("beforeunload",()=>{YC(e)},{once:!0}),ec.set(t,{focus:r})}const YC=(e,t)=>{const n=fa(e),r=Lt(e);t&&r.removeEventListener("DOMContentLoaded",t),ec.has(n)&&(n.HTMLElement.prototype.focus=ec.get(n).focus,r.removeEventListener("keydown",nh,!0),r.removeEventListener("keyup",nh,!0),r.removeEventListener("click",HC,!0),n.removeEventListener("focus",GC,!0),n.removeEventListener("blur",qC,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ni,!0),r.removeEventListener("pointermove",ni,!0),r.removeEventListener("pointerup",ni,!0)):(r.removeEventListener("mousedown",ni,!0),r.removeEventListener("mousemove",ni,!0),r.removeEventListener("mouseup",ni,!0)),ec.delete(n))};function gV(e){const t=Lt(e);let n;return t.readyState!=="loading"?c$(e):(n=()=>{c$(e)},t.addEventListener("DOMContentLoaded",n)),()=>YC(e,n)}typeof document<"u"&&gV();function d$(){return hs!=="pointer"}function rh(){return hs}function ZC(e){hs=e,Jh(e,null)}function zu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=b.useRef({isFocusWithin:!1}),a=b.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=WC(a),c=b.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}let ih=!1,eg=0;function Ay(){ih=!0,setTimeout(()=>{ih=!1},50)}function f$(e){e.pointerType==="touch"&&Ay()}function yV(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",f$):document.addEventListener("touchend",Ay),eg++,()=>{eg--,!(eg>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",f$):document.removeEventListener("touchend",Ay))}}function vV(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=b.useState(!1),u=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(yV,[]);let{hoverProps:c,triggerHoverEnd:d}=b.useMemo(()=>{let f=(g,v)=>{if(u.pointerType=v,i||v==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let $=g.currentTarget;u.target=$,t&&t({type:"hoverstart",target:$,pointerType:v}),n&&n(!0),a(!0)},h=(g,v)=>{if(u.pointerType="",u.target=null,v==="touch"||!u.isHovered)return;u.isHovered=!1;let $=g.currentTarget;r&&r({type:"hoverend",target:$,pointerType:v}),n&&n(!1),a(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{ih&&g.pointerType==="mouse"||f(g,g.pointerType)},m.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(m.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!ih&&f(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,i,u]);return b.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:c,isHovered:o}}function bV(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=wn(c=>{n&&sf(c,t)&&(i&&i(c),o.current.isPointerDown=!0)}),u=wn(c=>{n&&n(c)});b.useEffect(()=>{let c=o.current;if(r)return;const d=t.current,f=Lt(d);if(typeof PointerEvent<"u"){let h=m=>{c.isPointerDown&&sf(m,t)&&u(m),c.isPointerDown=!1};return f.addEventListener("pointerdown",a,!0),f.addEventListener("pointerup",h,!0),()=>{f.removeEventListener("pointerdown",a,!0),f.removeEventListener("pointerup",h,!0)}}else{let h=g=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&sf(g,t)&&u(g),c.isPointerDown=!1},m=g=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&sf(g,t)&&u(g),c.isPointerDown=!1};return f.addEventListener("mousedown",a,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",a,!0),f.addEventListener("touchend",m,!0),()=>{f.removeEventListener("mousedown",a,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",a,!0),f.removeEventListener("touchend",m,!0)}}},[t,r,a,u])}function sf(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function h$(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function JC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:h$(e.onKeyDown),onKeyUp:h$(e.onKeyUp)}}}function XC(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=b.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:a}=Uu(),u=wn((f,h,m,g)=>{m===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:h,deltaX:m,deltaY:g,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),c=wn((f,h)=>{Kl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:b.useMemo(()=>{let f={},h=()=>{Sy(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=x=>{if(x.button===0){var y,D,P,E;u(x,"mouse",x.pageX-((P=(y=i.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&P!==void 0?P:0),x.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},v=x=>{x.button===0&&(c(x,"mouse"),a(window,"mousemove",g,!1),a(window,"mouseup",v,!1))};f.onMouseDown=x=>{x.button===0&&(h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},o(window,"mousemove",g,!1),o(window,"mouseup",v,!1))};let $=x=>{let y=[...x.changedTouches].findIndex(({identifier:k})=>k===i.current.id);if(y>=0){var D,P;let{pageX:k,pageY:S}=x.changedTouches[y];var E,T;u(x,"touch",k-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),S-((T=(P=i.current.lastPosition)===null||P===void 0?void 0:P.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:k,pageY:S}}},C=x=>{[...x.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(c(x,"touch"),i.current.id=null,a(window,"touchmove",$),a(window,"touchend",C),a(window,"touchcancel",C))};f.onTouchStart=x=>{if(x.changedTouches.length===0||i.current.id!=null)return;let{pageX:y,pageY:D,identifier:P}=x.changedTouches[0];h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:y,pageY:D},i.current.id=P,o(window,"touchmove",$,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let g=$=>{if($.pointerId===i.current.id){var C,x;let P=$.pointerType||"mouse";var y,D;u($,P,$.pageX-((y=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&y!==void 0?y:0),$.pageY-((D=(x=i.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},v=$=>{if($.pointerId===i.current.id){let C=$.pointerType||"mouse";c($,C),i.current.id=null,a(window,"pointermove",g,!1),a(window,"pointerup",v,!1),a(window,"pointercancel",v,!1)}};f.onPointerDown=$=>{$.button===0&&i.current.id==null&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId,o(window,"pointermove",g,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1))}}let m=(g,v,$)=>{h(),u(g,"keyboard",v,$),c(g,"keyboard")};return f.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},f},[i,o,a,u,c])}}const $V=500;function QC(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=$V,accessibilityDescription:a}=e;const u=b.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=Uu(),{pressProps:f}=Ic({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),u.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...m,type:"longpress"}),u.current=void 0},o),m.pointerType==="touch")){let g=v=>{v.preventDefault()};c(m.target,"contextmenu",g,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){u.current&&clearTimeout(u.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),h=kc(i&&!t?a:void 0);return{longPressProps:xt(f,h)}}function ls(e){const t=Lt(e);if(rh()==="virtual"){let n=t.activeElement;LC(()=>{t.activeElement===n&&e.isConnected&&vi(e)})}else vi(e)}function xV(e){const t=fa(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:a,visibility:u}=o(e);i=a!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function wV(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function eS(e,t){return e.nodeName!=="#comment"&&xV(e)&&wV(e,t)&&(!e.parentElement||eS(e.parentElement,e))}const p$=b.createContext(null),Py="react-aria-focus-scope-restore";let Nt=null;function DV(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=b.useRef(null),a=b.useRef(null),u=b.useRef([]),{parentNode:c}=b.useContext(p$)||{},d=b.useMemo(()=>new Ry({scopeRef:u}),[u]);zt(()=>{let m=c||mn.root;if(mn.getTreeNode(m.scopeRef)&&Nt&&!oh(Nt,m.scopeRef)){let g=mn.getTreeNode(Nt);g&&(m=g)}m.addChild(d),mn.addNode(d)},[d,c]),zt(()=>{let m=mn.getTreeNode(u);m&&(m.contain=!!n)},[n]),zt(()=>{var m;let g=(m=o.current)===null||m===void 0?void 0:m.nextSibling,v=[],$=C=>C.stopPropagation();for(;g&&g!==a.current;)v.push(g),g.addEventListener(Py,$),g=g.nextSibling;return u.current=v,()=>{for(let C of v)C.removeEventListener(Py,$)}},[t]),_V(u,r,n),TV(u,n),RV(u,r,n),PV(u,i),b.useEffect(()=>{const m=Lt(u.current?u.current[0]:void 0).activeElement;let g=null;if(ui(m,u.current)){for(let v of mn.traverse())v.scopeRef&&ui(m,v.scopeRef.current)&&(g=v);g===mn.getTreeNode(u)&&(Nt=g.scopeRef)}},[u]),zt(()=>()=>{var m,g,v;let $=(v=(g=mn.getTreeNode(u))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&v!==void 0?v:null;(u===Nt||oh(u,Nt))&&(!$||mn.getTreeNode($))&&(Nt=$),mn.removeTreeNode(u)},[u]);let f=b.useMemo(()=>EV(u),[]),h=b.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return b.createElement(p$.Provider,{value:h},b.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,b.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function EV(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[0].previousElementSibling,d=za(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&xr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[n.length-1].nextElementSibling,d=za(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&xr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=za(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let u=a.nextNode();return u&&xr(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=za(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let u=a.previousNode();return u&&xr(u,!0),u}}}const hb=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],CV=hb.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";hb.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const SV=hb.join(':not([hidden]):not([tabindex="-1"]),');function za(e){return e[0].parentElement}function Ul(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function TV(e,t){let n=b.useRef(void 0),r=b.useRef(void 0);zt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Lt(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Ul(e)||d.isComposing)return;let f=o.activeElement,h=e.current;if(!h||!ui(f,h))return;let m=za(h),g=wr(m,{tabbable:!0},h);if(!f)return;g.currentNode=f;let v=d.shiftKey?g.previousNode():g.nextNode();v||(g.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,v=d.shiftKey?g.previousNode():g.nextNode()),d.preventDefault(),v&&xr(v,!0)},u=d=>{(!Nt||oh(Nt,e))&&ui(d.target,e.current)?(Nt=e,n.current=d.target):Ul(e)&&!na(d.target,e)?n.current?n.current.focus():Nt&&Nt.current&&_y(Nt.current):Ul(e)&&(n.current=d.target)},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.activeElement&&Ul(e)&&!na(o.activeElement,e))if(Nt=e,o.body.contains(d.target)){var f;n.current=d.target,(f=n.current)===null||f===void 0||f.focus()}else Nt.current&&_y(Nt.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),zt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function tS(e){return na(e)}function ui(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function na(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of mn.traverse(mn.getTreeNode(t)))if(n&&ui(e,n.current))return!0;return!1}function AV(e){return na(e,Nt)}function oh(e,t){var n;let r=(n=mn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function xr(e,t=!1){if(e!=null&&!t)try{ls(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function nS(e,t=!0){let n=e[0].previousElementSibling,r=za(e),i=wr(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=za(e),i=wr(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function _y(e,t=!0){xr(nS(e,t))}function PV(e,t){const n=b.useRef(t);b.useEffect(()=>{if(n.current){Nt=e;const r=Lt(e.current?e.current[0]:void 0);!ui(r.activeElement,Nt.current)&&e.current&&_y(e.current)}n.current=!1},[e])}function _V(e,t,n){zt(()=>{if(t||n)return;let r=e.current;const i=Lt(r?r[0]:void 0);let o=a=>{let u=a.target;ui(u,e.current)?Nt=e:tS(u)||(Nt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,t,n])}function m$(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function RV(e,t,n){const r=b.useRef(typeof document<"u"?Lt(e.current?e.current[0]:void 0).activeElement:null);zt(()=>{let i=e.current;const o=Lt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Nt||oh(Nt,e))&&ui(o.activeElement,e.current)&&(Nt=e)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1))}},[e,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Ul(e)||a.isComposing)return;let u=i.activeElement;if(!na(u,e)||!m$(e))return;let c=mn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=wr(i.body,{tabbable:!0});f.currentNode=u;let h=a.shiftKey?f.previousNode():f.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!h||!na(h,e))&&d){f.currentNode=d;do h=a.shiftKey?f.previousNode():f.nextNode();while(na(h,e));a.preventDefault(),a.stopPropagation(),h?xr(h,!0):tS(d)?xr(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=mn.getTreeNode(e);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let u=mn.getTreeNode(e);if(!u)return;let c=u.nodeToRestore;if(t&&c&&(i.activeElement&&na(i.activeElement,e)||i.activeElement===i.body&&m$(e))){let d=mn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){g$(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&mn.getTreeNode(f.scopeRef)){let h=nS(f.scopeRef.current,!0);g$(h);return}f=f.parent}}})}}}},[e,t])}function g$(e){e.dispatchEvent(new CustomEvent(Py,{bubbles:!0,cancelable:!0}))&&xr(e)}function wr(e,t,n){let r=t!=null&&t.tabbable?SV:CV,i=Lt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&eS(o)&&(!n||ui(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Xh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});r.contains(c)&&(d.currentNode=c);let f=d.nextNode();return!f&&a&&(d.currentNode=r,f=d.nextNode()),f&&xr(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});if(r.contains(c))d.currentNode=c;else{let h=tg(d);return h&&xr(h,!0),h??null}let f=d.previousNode();if(!f&&a){d.currentNode=r;let h=tg(d);if(!h)return null;f=h}return f&&xr(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=wr(r,{tabbable:i,accept:o}).nextNode();return u&&xr(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,a=wr(r,{tabbable:i,accept:o}),u=tg(a);return u&&xr(u,!0),u??null}}}function tg(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class pb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Ry({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ui(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new pb;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Ry({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ry{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let mn=new pb,OV=b.createContext(null);function MV(e){let t=b.useContext(OV)||{};VC(t,e);let{ref:n,...r}=t;return r}function mb(e,t){let{focusProps:n}=hV(e),{keyboardProps:r}=JC(e),i=xt(n,r),o=MV(t),a=e.isDisabled?{}:o,u=b.useRef(e.autoFocus);return b.useEffect(()=>{u.current&&t.current&&ls(t.current),u.current=!1},[t]),{focusableProps:xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const FV=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),kV=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function BV(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return FV.has(n.script)}let t=e.split("-")[0];return kV.has(t)}const IV=Symbol.for("react-aria.i18n.locale");function rS(){let e=typeof window<"u"&&window[IV]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:BV(e)?"rtl":"ltr"}}let Oy=rS(),zl=new Set;function y$(){Oy=rS();for(let e of zl)e(Oy)}function LV(){let e=sb(),[t,n]=b.useState(Oy);return b.useEffect(()=>(zl.size===0&&window.addEventListener("languagechange",y$),zl.add(n),()=>{zl.delete(n),zl.size===0&&window.removeEventListener("languagechange",y$)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const VV=b.createContext(null);function Qn(){let e=LV();return b.useContext(VV)||e}const NV=Symbol.for("react-aria.i18n.locale"),jV=Symbol.for("react-aria.i18n.strings");let Gs;class ya{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=KV(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[NV];if(Gs===void 0){let i=window[jV];if(!i)return null;Gs={};for(let o in i)Gs[o]=new ya({[n]:i[o]},n)}let r=Gs==null?void 0:Gs[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function KV(e,t,n="en-US"){if(t[e])return t[e];let r=UV(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function UV(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const v$=new Map,b$=new Map;class iS{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=v$.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),v$.set(o,a));let u=a.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=b$.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),b$.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const $$=new WeakMap;function zV(e){let t=$$.get(e);return t||(t=new ya(e),$$.set(e,t)),t}function oS(e,t){return t&&ya.getGlobalDictionaryForPackage(t)||zV(e)}function Qi(e,t){let{locale:n}=Qn(),r=oS(e,t);return b.useMemo(()=>new iS(n,r),[n,r])}function du(e,t){return e-t*Math.floor(e/t)}const aS=1721426;function Wa(e,t,n,r){t=Lc(e,t);let i=t-1,o=-2;return n<=2?o=0:ra(t)&&(o=-1),aS-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function ra(e){return e%4===0&&(e%100!==0||e%400===0)}function Lc(e,t){return e==="BC"?1-t:t}function Qh(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const WV={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class dr{fromJulianDay(t){let n=t,r=n-aS,i=Math.floor(r/146097),o=du(r,146097),a=Math.floor(o/36524),u=du(o,36524),c=Math.floor(u/1461),d=du(u,1461),f=Math.floor(d/365),h=i*400+a*100+c*4+f+(a!==4&&f!==4?1:0),[m,g]=Qh(h),v=n-Wa(m,g,1,1),$=2;n<Wa(m,g,3,1)?$=0:ra(g)&&($=1);let C=Math.floor(((v+$)*12+373)/367),x=n-Wa(m,g,C,1)+1;return new hn(m,g,C,x)}toJulianDay(t){return Wa(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return WV[ra(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ra(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const HV={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function xn(e,t){return t=Qt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function My(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function sS(e,t){return xn(e,ep(t))}const GV={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function gb(e,t,n){let r=e.calendar.toJulianDay(e),i=n?GV[n]:QV(t),o=Math.ceil(r+1-i)%7;return o<0&&(o+=7),o}function uS(e){return vo(Date.now(),e)}function ep(e){return cr(uS(e))}function lS(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function cS(e,t){return x$(e)-x$(t)}function x$(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let ng=null;function Vc(){return ng==null&&(ng=new Intl.DateTimeFormat().resolvedOptions().timeZone),ng}function Nc(e){return e.subtract({days:e.day-1})}function Fy(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function qV(e){return Nc(e.subtract({months:e.month-1}))}function YV(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function ZV(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function fc(e,t,n){let r=gb(e,t,n);return e.subtract({days:r})}function JV(e,t,n){return fc(e,t,n).add({days:6})}const w$=new Map;function XV(e){if(Intl.Locale){let n=w$.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&w$.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function QV(e){let t=XV(e);return t&&HV[t]||0}function eN(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((gb(Nc(e),t,n)+r)/7)}function yb(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function vb(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Au(e){e=Qt(e,new dr);let t=Lc(e.era,e.year);return dS(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function dS(e,t,n,r,i,o,a){let u=new Date;return u.setUTCHours(r,i,o,a),u.setUTCFullYear(e,t-1,n),u.getTime()}function ky(e,t){if(t==="UTC")return 0;if(e>0&&t===Vc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:u}=fS(e,t);return dS(n,r,i,o,a,u,0)-Math.floor(e/1e3)*1e3}const D$=new Map;function fS(e,t){let n=D$.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),D$.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const E$=864e5;function tN(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>nN(e,t,o))}function nN(e,t,n){let r=fS(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function yo(e,t,n="compatible"){let r=Di(e);if(t==="UTC")return Au(r);if(t===Vc()&&n==="compatible"){r=Qt(r,new dr);let c=new Date,d=Lc(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let i=Au(r),o=ky(i-E$,t),a=ky(i+E$,t),u=tN(r,t,i-o,i-a);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function hS(e,t,n="compatible"){return new Date(yo(e,t,n))}function vo(e,t){let n=ky(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),u=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),f=r.getUTCMilliseconds();return new mc(i<1?"BC":"AD",i<1?-i+1:i,o,a,t,n,u,c,d,f)}function cr(e){return new hn(e.calendar,e.era,e.year,e.month,e.day)}function Di(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new pc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function C$(e){return new jc(e.hour,e.minute,e.second,e.millisecond)}function Qt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,cs(r),r}function pS(e,t,n){if(e instanceof mc)return e.timeZone===t?e:iN(e,t);let r=yo(e,t,n);return vo(r,t)}function rN(e){let t=Au(e)-e.offset;return new Date(t)}function iN(e,t){let n=Au(e)-e.offset;return Qt(vo(n,t),e.calendar)}const Pl=36e5;function tp(e,t){let n=e.copy(),r="hour"in n?vS(n,t):0;By(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Iy(n),mS(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,oN(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,a;let c=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function By(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Iy(e){for(;e.month<1;)By(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,By(e,1)}function oN(e){for(;e.day<1;)e.month--,Iy(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Iy(e)}function mS(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function cs(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),mS(e)}function bb(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function gS(e,t){return tp(e,bb(t))}function $b(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),cs(n),n}function hc(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),yS(n),n}function aN(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=uf(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=uf(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=uf(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=uf(e.hour,24),t}function yS(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function uf(e,t){let n=e%t;return n<0&&(n+=t),n}function vS(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,aN(e)}function bS(e,t){let n=e.copy();return vS(n,t),n}function sN(e,t){return bS(e,bb(t))}function xb(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),c=u.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=bo(c,n,0,u.length-1,r==null?void 0:r.round),i.era=u[c],cs(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=bo(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=bo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=bo(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),cs(i),i}function wb(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,u=23;if((r==null?void 0:r.hourCycle)===12){let c=o>=12;a=c?12:0,u=c?23:11}i.hour=bo(o,n,a,u,r==null?void 0:r.round);break}case"minute":i.minute=bo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=bo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=bo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function bo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function $S(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=tp(Di(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=yo(i,e.timeZone)}else n=Au(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=vo(n,e.timeZone);return Qt(r,e.calendar)}function uN(e,t){return $S(e,bb(t))}function lN(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let v=e.hour>=12;i=v?12:0,o=v?23:11}let a=Di(e),u=Qt(hc(a,{hour:i}),new dr),c=[yo(u,e.timeZone,"earlier"),yo(u,e.timeZone,"later")].filter(v=>vo(v,e.timeZone).day===u.day)[0],d=Qt(hc(a,{hour:o}),new dr),f=[yo(d,e.timeZone,"earlier"),yo(d,e.timeZone,"later")].filter(v=>vo(v,e.timeZone).day===d.day).pop(),h=Au(e)-e.offset,m=Math.floor(h/Pl),g=h%Pl;return h=bo(m,n,Math.floor(c/Pl),Math.floor(f/Pl),r==null?void 0:r.round)*Pl+g,Qt(vo(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return wb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=xb(Di(e),t,n,r),o=yo(i,e.timeZone);return Qt(vo(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function cN(e,t,n){let r=Di(e),i=hc($b(r,t),t);if(i.compare(r)===0)return e;let o=yo(i,e.timeZone,n);return Qt(vo(o,e.timeZone),e.calendar)}const dN=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,fN=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function hN(e){let t=e.match(dN);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new hn(Fi(t[1],0,9999),Fi(t[2],1,12),1);return n.day=Fi(t[3],0,n.calendar.getDaysInMonth(n)),n}function pN(e){let t=e.match(fN);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Fi(t[1],-9999,9999),r=n<1?"BC":"AD",i=new pc(r,n<1?-n+1:n,Fi(t[2],1,12),1,t[4]?Fi(t[4],0,23):0,t[5]?Fi(t[5],0,59):0,t[6]?Fi(t[6],0,59):0,t[7]?Fi(t[7],0,1/0)*1e3:0);return i.day=Fi(t[3],0,i.calendar.getDaysInMonth(i)),i}function Fi(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function xS(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function wS(e){let t=Qt(e,new dr),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function DS(e){return`${wS(e)}T${xS(e)}`}function mN(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function gN(e){return`${DS(e)}${mN(e.offset)}[${e.timeZone}]`}function Db(e){let t=typeof e[0]=="object"?e.shift():new dr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var yN=new WeakMap;class hn{copy(){return this.era?new hn(this.calendar,this.era,this.year,this.month,this.day):new hn(this.calendar,this.year,this.month,this.day)}add(t){return tp(this,t)}subtract(t){return gS(this,t)}set(t){return $b(this,t)}cycle(t,n,r){return xb(this,t,n,r)}toDate(t){return hS(this,t)}toString(){return wS(this)}compare(t){return lS(this,t)}constructor(...t){Bc(this,yN,{writable:!0,value:void 0});let[n,r,i,o,a]=Db(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,cs(this)}}var vN=new WeakMap;class jc{copy(){return new jc(this.hour,this.minute,this.second,this.millisecond)}add(t){return bS(this,t)}subtract(t){return sN(this,t)}set(t){return hc(this,t)}cycle(t,n,r){return wb(this,t,n,r)}toString(){return xS(this)}compare(t){return cS(this,t)}constructor(t=0,n=0,r=0,i=0){Bc(this,vN,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,yS(this)}}var bN=new WeakMap;class pc{copy(){return this.era?new pc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new pc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return tp(this,t)}subtract(t){return gS(this,t)}set(t){return $b(hc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return xb(this,t,n,r);default:return wb(this,t,n,r)}}toDate(t,n){return hS(this,t,n)}toString(){return DS(this)}compare(t){let n=lS(this,t);return n===0?cS(this,Di(t)):n}constructor(...t){Bc(this,bN,{writable:!0,value:void 0});let[n,r,i,o,a]=Db(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,cs(this)}}var $N=new WeakMap;class mc{copy(){return this.era?new mc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new mc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return $S(this,t)}subtract(t){return uN(this,t)}set(t,n){return cN(this,t,n)}cycle(t,n,r){return lN(this,t,n,r)}toDate(){return rN(this)}toString(){return gN(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-pS(t,this.timeZone).toDate().getTime()}constructor(...t){Bc(this,$N,{writable:!0,value:void 0});let[n,r,i,o,a]=Db(t),u=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=u,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,cs(this)}}const fu=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],xN=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Of=[1867,1911,1925,1988,2018],Qo=["meiji","taisho","showa","heisei","reiwa"];function S$(e){const t=fu.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?fu.length-1:t===0?0:t-1}function rg(e){let t=Of[Qo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new hn(e.year+t,e.month,e.day)}class wN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=S$(n);return new hn(this,Qo[r],n.year-Of[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(rg(t))}balanceDate(t){let n=rg(t),r=S$(n);Qo[r]!==t.era&&(t.era=Qo[r],t.year=n.year-Of[r]),this.constrainDate(t)}constrainDate(t){let n=Qo.indexOf(t.era),r=xN[n];if(r!=null){let[i,o,a]=r,u=i-Of[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,o]=fu[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return Qo}getYearsInEra(t){let n=Qo.indexOf(t.era),r=fu[n],i=fu[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(rg(t))}getMinimumMonthInYear(t){let n=T$(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=T$(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function T$(e){if(e.year===1){let t=Qo.indexOf(e.era);return fu[t]}}const ES=-543;class DN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Lc(n.era,n.year);return new hn(this,r-ES,n.month,n.day)}toJulianDay(t){return super.toJulianDay(A$(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(A$(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function A$(e){let[t,n]=Qh(e.year+ES);return new hn(t,n,e.month,e.day)}const ah=1911;function CS(e){return e.era==="minguo"?e.year+ah:1-e.year+ah}function P$(e){let t=e-ah;return t>0?["minguo",t]:["before_minguo",1-t]}class EN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Lc(n.era,n.year),[i,o]=P$(r);return new hn(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(_$(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=P$(CS(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(_$(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ah}constructor(...t){super(...t),this.identifier="roc"}}function _$(e){let[t,n]=Qh(CS(e));return new hn(t,n,e.month,e.day)}const R$=1948320,O$=[0,31,62,93,124,155,186,216,246,276,306,336];class CN{fromJulianDay(t){let n=t-R$,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-O$[a]+1;return new hn(this,r,a+1,u)}toJulianDay(t){let n=R$-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=O$[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||du(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const ig=78,M$=80;class SN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-ig,i=t-Wa(n.era,n.year,1,1),o;i<M$?(r--,o=ra(n.year-1)?31:30,i+=o+155+90+10):(o=ra(n.year)?31:30,i-=M$);let a,u;if(i<o)a=1,u=i+1;else{let c=i-o;c<155?(a=Math.floor(c/31)+2,u=c%31+1):(c-=155,a=Math.floor(c/30)+7,u=c%30+1)}return new hn(this,r,a,u)}toJulianDay(t){let n=t.year+ig,[r,i]=Qh(n),o,a;return ra(i)?(o=31,a=Wa(r,i,3,21)):(o=30,a=Wa(r,i,3,22)),t.month===1?a+t.day-1:(a+=o+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&ra(t.year+ig)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const sh=1948440,F$=1948439,ei=1300,qs=1600,TN=460322;function uh(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function SS(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+uh(t,r,1,1)))/29.5)+1),o=n-uh(t,r,i,1)+1;return new hn(e,r,i,o)}function k$(e){return(14+11*e)%30<11}class Eb{fromJulianDay(t){return SS(this,sh,t)}toJulianDay(t){return uh(sh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&k$(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return k$(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class AN extends Eb{fromJulianDay(t){return SS(this,F$,t)}toJulianDay(t){return uh(F$,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const PN="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Ly,hu;function Mf(e){return TN+hu[e-ei]}function Wl(e,t){let n=e-ei,r=1<<11-(t-1);return Ly[n]&r?30:29}function B$(e,t){let n=Mf(e);for(let r=1;r<t;r++)n+=Wl(e,r);return n}function I$(e){return hu[e+1-ei]-hu[e-ei]}class _N extends Eb{fromJulianDay(t){let n=t-sh,r=Mf(ei),i=Mf(qs);if(n<r||n>i)return super.fromJulianDay(t);{let o=ei-1,a=1,u=1;for(;u>0;){o++,u=n-Mf(o)+1;let c=I$(o);if(u===c){a=12;break}else if(u<c){let d=Wl(o,a);for(a=1;u>d;)u-=d,a++,d=Wl(o,a);break}}return new hn(this,o,a,n-B$(o,a)+1)}}toJulianDay(t){return t.year<ei||t.year>qs?super.toJulianDay(t):sh+B$(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ei||t.year>qs?super.getDaysInMonth(t):Wl(t.year,t.month)}getDaysInYear(t){return t.year<ei||t.year>qs?super.getDaysInYear(t):I$(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ly||(Ly=new Uint16Array(Uint8Array.from(atob(PN),t=>t.charCodeAt(0)).buffer)),!hu){hu=new Uint32Array(qs-ei+1);let t=0;for(let n=ei;n<=qs;n++){hu[n-ei]=t;for(let r=1;r<=12;r++)t+=Wl(n,r)}}}}const L$=347997,TS=1080,AS=24*TS,RN=29,ON=12*TS+793,MN=RN*AS+ON;function Na(e){return du(e*7+1,19)<7}function Ff(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return du(3*(r+1),7)<3&&(r+=1),r}function FN(e){let t=Ff(e-1),n=Ff(e);return Ff(e+1)-n===356?2:n-t===382?1:0}function tc(e){return Ff(e)+FN(e)}function PS(e){return tc(e+1)-tc(e)}function kN(e){let t=PS(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function lf(e,t){if(t>=6&&!Na(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=kN(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Na(e)?30:0:30}class BN{fromJulianDay(t){let n=t-L$,r=n*AS/MN,i=Math.floor((19*r+234)/235)+1,o=tc(i),a=Math.floor(n-o);for(;a<1;)i--,o=tc(i),a=Math.floor(n-o);let u=1,c=0;for(;c<a;)c+=lf(i,u),u++;u--,c-=lf(i,u);let d=a-c;return new hn(this,i,u,d)}toJulianDay(t){let n=tc(t.year);for(let r=1;r<t.month;r++)n+=lf(t.year,r);return n+t.day+L$}getDaysInMonth(t){return lf(t.year,t.month)}getMonthsInYear(t){return Na(t.year)?13:12}getDaysInYear(t){return PS(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Na(n.year)&&!Na(t.year)&&n.month>6?t.month--:!Na(n.year)&&Na(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Vy=1723856,V$=1824665,Ny=5500;function lh(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Cb(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-lh(e,n,1,1))/30),i=t+1-lh(e,n,r,1);return[n,r,i]}function _S(e){return Math.floor(e%4/3)}function RS(e,t){return t%13!==0?30:_S(e)+5}class Sb{fromJulianDay(t){let[n,r,i]=Cb(Vy,t),o="AM";return n<=0&&(o="AA",n+=Ny),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Ny),lh(Vy,n,t.month,t.day)}getDaysInMonth(t){return RS(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+_S(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class IN extends Sb{fromJulianDay(t){let[n,r,i]=Cb(Vy,t);return n+=Ny,new hn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class LN extends Sb{fromJulianDay(t){let[n,r,i]=Cb(V$,t),o="CE";return n<=0&&(o="BCE",n=1-n),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),lh(V$,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),RS(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function VN(e){switch(e){case"buddhist":return new DN;case"ethiopic":return new Sb;case"ethioaa":return new IN;case"coptic":return new LN;case"hebrew":return new BN;case"indian":return new SN;case"islamic-civil":return new Eb;case"islamic-tbla":return new AN;case"islamic-umalqura":return new _N;case"japanese":return new wN;case"persian":return new CN;case"roc":return new EN;case"gregory":default:return new dr}}let og=new Map;class ii{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return KN()&&(this.resolvedHourCycle||(this.resolvedHourCycle=UN(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=OS(t,n),this.options=n}}const NN={true:{ja:"h11"},false:{}};function OS(e,t={}){if(typeof t.hour12=="boolean"&&jN()){t={...t};let i=NN[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(og.has(n))return og.get(n);let r=new Intl.DateTimeFormat(e,t);return og.set(n,r),r}let ag=null;function jN(){return ag==null&&(ag=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ag}let sg=null;function KN(){return sg==null&&(sg=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),sg}function UN(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=OS(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function ji(e){e=jC(e??{},zN);let{locale:t}=Qn();return b.useMemo(()=>new ii(t,e),[t,e])}function zN(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let ug=new Map,jy=!1;try{jy=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ch=!1;try{ch=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const MS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class FS{format(t){let n="";if(!jy&&this.options.signDisplay!=null?n=HN(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ch){var r;let{unit:i,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!i)return n;let u=(r=MS[i])===null||r===void 0?void 0:r[o];n+=u[a]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!jy&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ch&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=WN(t,n),this.options=n}}function WN(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ch){var r;let{unit:a,unitDisplay:u="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=MS[a])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,u)=>a[0]<u[0]?-1:1).join():"");if(ug.has(i))return ug.get(i);let o=new Intl.NumberFormat(e,t);return ug.set(i,o),o}function HN(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),a=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(a,"+").replace("!!!",o)}else return e.format(n)}}const GN=new RegExp("^.*\\(.*\\).*$"),qN=["latn","arab","hanidec","deva","beng"];class kS{parse(t){return lg(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return lg(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return lg(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const N$=new Map;function lg(e,t,n){let r=j$(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of qN)if(i!==r.options.numberingSystem){let o=j$(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function j$(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=N$.get(n);return r||(r=new YN(e,t),N$.set(n,r)),r}class YN{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=cf(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new kS(this.locale,a).parse(new FS(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&GN.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=cf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=cf(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=cf(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=JN(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const K$=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),ZN=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function JN(e,t,n,r){var i,o,a,u;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),f=c.formatToParts(10000.111),h=ZN.map(O=>c.formatToParts(O));var m;let g=(m=(i=d.find(O=>O.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",v=(o=f.find(O=>O.type==="plusSign"))===null||o===void 0?void 0:o.value;!v&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(v="+");let C=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(O=>O.type==="decimal"))===null||a===void 0?void 0:a.value,x=(u=d.find(O=>O.type==="group"))===null||u===void 0?void 0:u.value,y=d.filter(O=>!K$.has(O.type)).map(O=>U$(O.value)),D=h.flatMap(O=>O.filter(F=>!K$.has(F.type)).map(F=>U$(F.value))),P=[...new Set([...y,...D])].sort((O,F)=>F.length-O.length),E=P.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${P.join("|")}|[\\p{White_Space}]`,"gu"),T=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(T.map((O,F)=>[O,F])),S=new RegExp(`[${T.join("")}]`,"g");return{minusSign:g,plusSign:v,decimal:C,group:x,literals:E,numeral:S,index:O=>String(k.get(O))}}function cf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function U$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function XN(e={}){let{locale:t}=Qn();return b.useMemo(()=>new FS(t,e),[t,e])}let cg=new Map;function BS(e){let{locale:t}=Qn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(cg.has(n))return cg.get(n);let r=new Intl.Collator(t,e);return cg.set(n,r),r}function IS(e){let t=BS({usage:"search",...e}),n=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(0,a.length),a)===0),[t]),r=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(-a.length),a)===0),[t]),i=b.useCallback((o,a)=>{if(a.length===0)return!0;o=o.normalize("NFC"),a=a.normalize("NFC");let u=0,c=a.length;for(;u+c<=o.length;u++){let d=o.slice(u,u+c);if(t.compare(a,d)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function QN(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:h,href:m,target:g,rel:v,type:$="button"}=e,C;n==="button"?C={type:$,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?m:void 0,target:n==="a"?g:void 0,type:n==="input"?$:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:x,isPressed:y}=Ic({onPressStart:o,onPressEnd:a,onPressChange:c,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=mb(e,t);f&&(D.tabIndex=r?-1:D.tabIndex);let P=xt(D,x,Po(e,{labelable:!0}));return{isPressed:y,buttonProps:xt(C,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var LS={};LS={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var VS={};VS={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var NS={};NS={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var jS={};jS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var KS={};KS={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var US={};US={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var zS={};zS={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var WS={};WS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var HS={};HS={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var GS={};GS={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var qS={};qS={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var YS={};YS={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var ZS={};ZS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var JS={};JS={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var XS={};XS={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var QS={};QS={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var e5={};e5={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var t5={};t5={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var n5={};n5={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var r5={};r5={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var i5={};i5={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var o5={};o5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var a5={};a5={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var s5={};s5={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var u5={};u5={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var l5={};l5={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var c5={};c5={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var d5={};d5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var f5={};f5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var h5={};h5={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var p5={};p5={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var m5={};m5={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var g5={};g5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var y5={};y5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Kc={};Kc={"ar-AE":LS,"bg-BG":VS,"cs-CZ":NS,"da-DK":jS,"de-DE":KS,"el-GR":US,"en-US":zS,"es-ES":WS,"et-EE":HS,"fi-FI":GS,"fr-FR":qS,"he-IL":YS,"hr-HR":ZS,"hu-HU":JS,"it-IT":XS,"ja-JP":QS,"ko-KR":e5,"lt-LT":t5,"lv-LV":n5,"nb-NO":r5,"nl-NL":i5,"pl-PL":o5,"pt-BR":a5,"pt-PT":s5,"ro-RO":u5,"ru-RU":l5,"sk-SK":c5,"sl-SI":d5,"sr-SP":f5,"sv-SE":h5,"tr-TR":p5,"uk-UA":m5,"zh-CN":g5,"zh-TW":y5};function v5(e){return e&&e.__esModule?e.default:e}const Tb=new WeakMap;function gc(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function ej(e){let t=Qi(v5(Kc),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let o=ji({weekday:"long",month:"long",year:"numeric",day:"numeric",era:gc(n)||gc(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!a&&n&&r)if(xn(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Uy(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,a,e.timeZone,t,o])}function Ky(e,t,n,r){let i=Qi(v5(Kc),"@react-aria/calendar"),o=gc(e)||gc(t),a=ji({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=ji({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(xn(e,Nc(e))){if(xn(t,Fy(e)))return a.format(e.toDate(n));if(xn(t,Fy(t)))return r?Uy(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?Uy(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,u,i,n,r])}function Uy(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<o.length;d++){let f=o[d];if(f.source==="shared"&&f.type==="literal")a=d;else if(f.source==="endRange")break}let u="",c="";for(let d=0;d<o.length;d++)d<a?u+=o[d].value:d>a&&(c+=o[d].value);return t.format("dateRange",{startDate:u,endDate:c})}const b5=7e3;let Xr=null;function pu(e,t="assertive",n=b5){Xr?Xr.announce(e,t,n):(Xr=new nj,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Xr.announce(e,t,n):setTimeout(()=>{Xr!=null&&Xr.isAttached()&&(Xr==null||Xr.announce(e,t,n))},100))}function tj(e){Xr&&Xr.clear(e)}class nj{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=b5){var i,o;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function rj(e){return e&&e.__esModule?e.default:e}function $5(e,t){let n=Qi(rj(Kc),"@react-aria/calendar"),r=Po(e),i=Ky(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=Ky(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);r$(()=>{t.isFocused||pu(o)},[o]);let a=ej(t);r$(()=>{a&&pu(a,"polite",4e3)},[a]);let u=Cu([!!e.errorMessage,e.isInvalid,e.validationState]);Tb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:a});let[c,d]=b.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&c&&(d(!1),t.setFocused(!0));let[h,m]=b.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(m(!1),t.setFocused(!0));let v=Su({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:xt(r,v,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:u},title:i}}function ij(e,t){return $5(e,t)}function oj(e,t,n){let r=$5(e,t),i=b.useRef(!1),o=b.useRef(typeof window<"u"?window:null);return sa(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),sa(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},sa(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function aj(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Qn(),o=g=>{switch(g.key){case"Enter":case" ":g.preventDefault(),t.selectFocusedDate();break;case"PageUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousSection(g.shiftKey);break;case"PageDown":g.preventDefault(),g.stopPropagation(),t.focusNextSection(g.shiftKey);break;case"End":g.preventDefault(),g.stopPropagation(),t.focusSectionEnd();break;case"Home":g.preventDefault(),g.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":g.preventDefault(),g.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(g.preventDefault(),t.setAnchorDate(null));break}},a=Ky(n,r,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:c}=Tb.get(t),d=Su({"aria-label":[u,a].filter(Boolean).join(", "),"aria-labelledby":c}),f=ji({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=Qn(),m=b.useMemo(()=>{let g=fc(ep(t.timeZone),h);return[...new Array(7).keys()].map(v=>{let C=g.add({days:v}).toDate(t.timeZone);return f.format(C)})},[h,t.timeZone,f]);return{gridProps:xt(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}function sj(e){return e&&e.__esModule?e.default:e}function uj(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=Tb.get(t),u=Qi(sj(Kc),"@react-aria/calendar"),c=ji({weekday:"long",day:"numeric",month:"long",year:"numeric",era:gc(r),timeZone:t.timeZone}),d=t.isSelected(r),f=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),m=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&xn(t.value,r));g&&(d=!0),r=jC(r,My);let v=b.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),$=sS(r,t.timeZone),C=b.useMemo(()=>{let F="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(xn(r,t.value.start)||xn(r,t.value.end))&&(F=a+", "),F+=c.format(v),$?F=u.format(d?"todayDateSelected":"todayDate",{date:F}):d&&(F=u.format("dateSelected",{date:F})),t.minValue&&xn(r,t.minValue)?F+=", "+u.format("minimumDate"):t.maxValue&&xn(r,t.maxValue)&&(F+=", "+u.format("maximumDate")),F},[c,v,u,d,$,r,t,a]),x="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?x=u.format("finishRangeSelectionPrompt"):x=u.format("startRangeSelectionPrompt"));let y=kc(x),D=b.useRef(!1),P=b.useRef(!1),E=b.useRef(void 0),{pressProps:T,isPressed:k}=Ic({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(F){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(F.pointerType==="mouse"||F.pointerType==="touch")){if(t.highlightedRange&&!g){if(xn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}else if(xn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}}let G=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};F.pointerType==="touch"?E.current=setTimeout(G,200):G()}},onPressEnd(){P.current=!1,D.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(F){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(P.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(F.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let G=r.add({days:1});t.isInvalid(G)&&(G=r.subtract({days:1})),t.isInvalid(G)||t.setFocusedDate(G)}else F.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=xn(r,t.focusedDate)?0:-1),b.useEffect(()=>{f&&n.current&&(vi(n.current),rh()!=="pointer"&&document.activeElement===n.current&&th(n.current,{containingElement:Zh(n.current)}))},[f,n]);let U=ji({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),O=b.useMemo(()=>U.formatToParts(v).find(F=>F.type==="day").value,[U,v]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":g||void 0},buttonProps:xt(T,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!m||void 0,"aria-label":C,"aria-invalid":g||void 0,"aria-describedby":[g?o:void 0,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(F){"highlightDate"in t&&(F.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(F){"releasePointerCapture"in F.target&&F.target.releasePointerCapture(F.pointerId)},onContextMenu(F){F.preventDefault()}}),isPressed:k,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:O}}const np={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},x5={...np,customError:!0,valid:!1},ja={isInvalid:!1,validationDetails:np,validationErrors:[]},lj=b.createContext({}),Pu="__formValidationState"+Date.now();function Uc(e){if(e[Pu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Pu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return cj(e)}function cj(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:x5}:null,d=b.useMemo(()=>{if(!a||i==null)return null;let O=dj(a,i);return z$(O)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let f=b.useContext(lj),h=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(O=>zy(f[O])):zy(f[r]):[],[f,r]),[m,g]=b.useState(f),[v,$]=b.useState(!1);f!==m&&(g(f),$(!1));let C=b.useMemo(()=>z$(v?[]:h),[v,h]),x=b.useRef(ja),[y,D]=b.useState(ja),P=b.useRef(ja),E=()=>{if(!T)return;k(!1);let O=d||o||x.current;dg(O,P.current)||(P.current=O,D(O))},[T,k]=b.useState(!1);return b.useEffect(E),{realtimeValidation:c||C||d||o||ja,displayValidation:u==="native"?c||C||y:c||C||d||o||y,updateValidation(O){u==="aria"&&!dg(y,O)?D(O):x.current=O},resetValidation(){let O=ja;dg(O,P.current)||(P.current=O,D(O)),u==="native"&&k(!1),$(!0)},commitValidation(){u==="native"&&k(!0),$(!0)}}}function zy(e){return e?Array.isArray(e)?e:[e]:[]}function dj(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return zy(n)}return[]}function z$(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:x5}:null}function dg(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function dh(...e){let t=new Set,n=!1,r={...np};for(let a of e){var i,o;for(let u of a.validationErrors)t.add(u);n||(n=a.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=a.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function w5(e,t,n){let{validationBehavior:r,focus:i}=e;zt(()=>{if(r==="native"&&(n!=null&&n.current)){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(hj(n.current))}});let o=wn(()=>{t.resetValidation()}),a=wn(c=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&n&&f&&pj(f)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),ZC("keyboard")}c.preventDefault()}),u=wn(()=>{t.commitValidation()});b.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let d=c.form;return c.addEventListener("invalid",a),c.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,a,u,o,r])}function fj(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function hj(e){return{isInvalid:!e.validity.valid,validationDetails:fj(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function pj(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function rp(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Mr(t);let a=Mr(),u={};n?(r=r?`${a} ${r}`:a,u={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Su({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:c}}function ip(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=rp(e),u=Cu([!!t,!!n,r,i]),c=Cu([!!t,!!n,r,i]);return a=xt(a,{"aria-describedby":[u,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:u},errorMessageProps:{id:c}}}const mj=0,gj=100,yj=1;function vj(e){const{isDisabled:t=!1,minValue:n=mj,maxValue:r=gj,numberFormatter:i,step:o=yj,orientation:a="horizontal"}=e;let u=b.useMemo(()=>{let z=(r-n)/10;return z=Al(z,0,z+o,o),Math.max(z,o)},[o,r,n]),c=b.useCallback(z=>z==null?void 0:z.map((re,oe)=>{let fe=oe===0?n:z[oe-1],ie=oe===z.length-1?r:z[oe+1];return Al(re,fe,ie,o)}),[n,r,o]),d=b.useMemo(()=>c(H$(e.value)),[e.value]),f=b.useMemo(()=>{var z;return c((z=H$(e.defaultValue))!==null&&z!==void 0?z:[n])},[e.defaultValue,n]),h=G$(e.value,e.defaultValue,e.onChange),m=G$(e.value,e.defaultValue,e.onChangeEnd);const[g,v]=Fr(d,f,h),[$,C]=b.useState(new Array(g.length).fill(!1)),x=b.useRef(new Array(g.length).fill(!0)),[y,D]=b.useState(void 0),P=b.useRef(g),E=b.useRef($);let T=z=>{P.current=z,v(z)},k=z=>{E.current=z,C(z)};function S(z){return(z-n)/(r-n)}function U(z){return z===0?n:g[z-1]}function O(z){return z===g.length-1?r:g[z+1]}function F(z){return x.current[z]}function G(z,re){x.current[z]=re}function K(z,re){if(t||!F(z))return;const oe=U(z),fe=O(z);re=Al(re,oe,fe,o);let ie=W$(P.current,z,re);T(ie)}function W(z,re){if(t||!F(z))return;re&&(P.current=g);const oe=E.current[z];E.current=W$(E.current,z,re),k(E.current),oe&&!E.current.some(Boolean)&&m(P.current)}function j(z){return i.format(z)}function L(z,re){K(z,M(re))}function _(z){return Math.round((z-n)/o)*o+n}function M(z){const re=z*(r-n)+n;return Tu(_(re),n,r)}function Y(z,re=1){let oe=Math.max(re,o);K(z,Al(g[z]+oe,n,r,o))}function V(z,re=1){let oe=Math.max(re,o);K(z,Al(g[z]-oe,n,r,o))}return{values:g,getThumbValue:z=>g[z],setThumbValue:K,setThumbPercent:L,isThumbDragging:z=>$[z],setThumbDragging:W,focusedThumb:y,setFocusedThumb:D,getThumbPercent:z=>S(g[z]),getValuePercent:S,getThumbValueLabel:z=>j(g[z]),getFormattedValue:j,getThumbMinValue:U,getThumbMaxValue:O,getPercentValue:M,isThumbEditable:F,setThumbEditable:G,incrementThumb:Y,decrementThumb:V,step:o,pageSize:u,orientation:a,isDisabled:t}}function W$(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function H$(e){if(e!=null)return Array.isArray(e)?e:[e]}function G$(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const q$={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function bj(e={}){let{style:t,isFocusable:n}=e,[r,i]=b.useState(!1),{focusWithinProps:o}=zu({isDisabled:!n,onFocusWithinChange:u=>i(u)}),a=b.useMemo(()=>r?t:t?{...q$,...t}:q$,[r]);return{visuallyHiddenProps:{...o,style:a}}}function $j(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:a}=bj(e);return b.createElement(n,xt(o,a),t)}const Ab=new WeakMap;function Wy(e,t){let n=Ab.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function xj(e,t,n){let{labelProps:r,fieldProps:i}=rp(e),o=e.orientation==="vertical";var a;Ab.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Qn(),{addGlobalListener:c,removeGlobalListener:d}=Uu();const f=b.useRef(null),h=u==="rtl",m=b.useRef(null),{moveProps:g}=XC({onMoveStart(){m.current=null},onMove({deltaX:x,deltaY:y}){if(!n.current)return;let{height:D,width:P}=n.current.getBoundingClientRect(),E=o?D:P;m.current==null&&f.current!=null&&(m.current=t.getThumbPercent(f.current)*E);let T=o?y:x;if((o||h)&&(T=-T),m.current+=T,f.current!=null&&n.current){const k=Tu(m.current/E,0,1);t.setThumbPercent(f.current,k)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let v=b.useRef(void 0),$=(x,y,D,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,T)=>!t.isThumbDragging(T))){let{height:E,width:T,top:k,left:S}=n.current.getBoundingClientRect(),U=o?E:T,K=((o?P:D)-(o?k:S))/U;(u==="rtl"||o)&&(K=1-K);let W=t.getPercentValue(K),j,L=t.values.findIndex(_=>W-_<0);if(L===0)j=L;else if(L===-1)j=t.values.length-1;else{let _=t.values[L-1],M=t.values[L];Math.abs(_-W)<Math.abs(M-W)?j=L-1:j=L}j>=0&&t.isThumbEditable(j)?(x.preventDefault(),f.current=j,t.setFocusedThumb(j),v.current=y,t.setThumbDragging(f.current,!0),t.setThumbValue(j,W),c(window,"mouseup",C,!1),c(window,"touchend",C,!1),c(window,"pointerup",C,!1)):f.current=null}},C=x=>{var y,D;((D=x.pointerId)!==null&&D!==void 0?D:(y=x.changedTouches)===null||y===void 0?void 0:y[0].identifier)===v.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),d(window,"mouseup",C,!1),d(window,"touchend",C,!1),d(window,"pointerup",C,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var x;(x=document.getElementById(Wy(t,0)))===null||x===void 0||x.focus(),ZC("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:xt({onMouseDown(x){x.button!==0||x.altKey||x.ctrlKey||x.metaKey||$(x,void 0,x.clientX,x.clientY)},onPointerDown(x){x.pointerType==="mouse"&&(x.button!==0||x.altKey||x.ctrlKey||x.metaKey)||$(x,x.pointerId,x.clientX,x.clientY)},onTouchStart(x){$(x,x.changedTouches[0].identifier,x.changedTouches[0].clientX,x.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((x,y)=>Wy(t,y)).join(" "),"aria-live":"off"}}}function wj(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:a,inputRef:u,orientation:c=t.orientation,name:d}=e,f=e.isDisabled||t.isDisabled,h=c==="vertical",{direction:m}=Qn(),{addGlobalListener:g,removeGlobalListener:v}=Uu(),$=Ab.get(t);var C;const{labelProps:x,fieldProps:y}=rp({...e,id:Wy(t,n),"aria-labelledby":`${$.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],P=b.useCallback(()=>{u.current&&vi(u.current)},[u]),E=t.focusedThumb===n;b.useEffect(()=>{E&&P()},[E,P]);let T=m==="rtl",k=b.useRef(null),{keyboardProps:S}=JC({onKeyDown(L){let{getThumbMaxValue:_,getThumbMinValue:M,decrementThumb:Y,incrementThumb:V,setThumbValue:z,setThumbDragging:re,pageSize:oe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),re(n,!0),L.key){case"PageUp":V(n,oe);break;case"PageDown":Y(n,oe);break;case"Home":z(n,M(n));break;case"End":z(n,_(n));break}re(n,!1)}}),{moveProps:U}=XC({onMoveStart(){k.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:_,pointerType:M,shiftKey:Y}){const{getThumbPercent:V,setThumbPercent:z,decrementThumb:re,incrementThumb:oe,step:fe,pageSize:ie}=t;if(!a.current)return;let{width:Ee,height:$e}=a.current.getBoundingClientRect(),ne=h?$e:Ee;if(k.current==null&&(k.current=V(n)*ne),M==="keyboard")L>0&&T||L<0&&!T||_>0?re(n,Y?ie:fe):oe(n,Y?ie:fe);else{let ye=h?_:L;(h||T)&&(ye=-ye),k.current+=ye,z(n,Tu(k.current/ne,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!f);const{focusableProps:O}=mb(xt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let F=b.useRef(void 0),G=L=>{P(),F.current=L,t.setThumbDragging(n,!0),g(window,"mouseup",K,!1),g(window,"touchend",K,!1),g(window,"pointerup",K,!1)},K=L=>{var _,M;((M=L.pointerId)!==null&&M!==void 0?M:(_=L.changedTouches)===null||_===void 0?void 0:_[0].identifier)===F.current&&(P(),t.setThumbDragging(n,!1),v(window,"mouseup",K,!1),v(window,"touchend",K,!1),v(window,"pointerup",K,!1))},W=t.getThumbPercent(n);(h||m==="rtl")&&(W=1-W);let j=f?{}:xt(S,U,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G(L.pointerId)},onTouchStart:L=>{G(L.changedTouches[0].identifier)}});return cb(u,D,L=>{t.setThumbValue(n,L)}),{inputProps:xt(O,y,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:f,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[$["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[$["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...j,style:{position:"absolute",[h?"top":"left"]:`${W*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(n),isDisabled:f,isFocused:E}}function Dj(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:a="text",validationBehavior:u="aria"}=e,[c,d]=Fr(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=mb(e,t),h=Uc({...e,value:c}),{isInvalid:m,validationErrors:g,validationDetails:v}=h.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:x,errorMessageProps:y}=ip({...e,isInvalid:m,errorMessage:e.errorMessage||g}),D=Po(e,{labelable:!0});const P={type:a,pattern:e.pattern};return cb(t,c,d),w5(e,h,t),b.useEffect(()=>{if(t.current instanceof fa(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:$,inputProps:xt(D,n==="input"?P:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:E=>d(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...C}),descriptionProps:x,errorMessageProps:y,isInvalid:m,validationErrors:g,validationDetails:v}}var D5={};D5={Empty:"فارغ"};var E5={};E5={Empty:"Изпразни"};var C5={};C5={Empty:"Prázdné"};var S5={};S5={Empty:"Tom"};var T5={};T5={Empty:"Leer"};var A5={};A5={Empty:"Άδειο"};var P5={};P5={Empty:"Empty"};var _5={};_5={Empty:"Vacío"};var R5={};R5={Empty:"Tühjenda"};var O5={};O5={Empty:"Tyhjä"};var M5={};M5={Empty:"Vide"};var F5={};F5={Empty:"ריק"};var k5={};k5={Empty:"Prazno"};var B5={};B5={Empty:"Üres"};var I5={};I5={Empty:"Vuoto"};var L5={};L5={Empty:"空"};var V5={};V5={Empty:"비어 있음"};var N5={};N5={Empty:"Tuščias"};var j5={};j5={Empty:"Tukšs"};var K5={};K5={Empty:"Tom"};var U5={};U5={Empty:"Leeg"};var z5={};z5={Empty:"Pusty"};var W5={};W5={Empty:"Vazio"};var H5={};H5={Empty:"Vazio"};var G5={};G5={Empty:"Gol"};var q5={};q5={Empty:"Не заполнено"};var Y5={};Y5={Empty:"Prázdne"};var Z5={};Z5={Empty:"Prazen"};var J5={};J5={Empty:"Prazno"};var X5={};X5={Empty:"Tomt"};var Q5={};Q5={Empty:"Boş"};var e2={};e2={Empty:"Пусто"};var t2={};t2={Empty:"空"};var n2={};n2={Empty:"空白"};var r2={};r2={"ar-AE":D5,"bg-BG":E5,"cs-CZ":C5,"da-DK":S5,"de-DE":T5,"el-GR":A5,"en-US":P5,"es-ES":_5,"et-EE":R5,"fi-FI":O5,"fr-FR":M5,"he-IL":F5,"hr-HR":k5,"hu-HU":B5,"it-IT":I5,"ja-JP":L5,"ko-KR":V5,"lt-LT":N5,"lv-LV":j5,"nb-NO":K5,"nl-NL":U5,"pl-PL":z5,"pt-BR":W5,"pt-PT":H5,"ro-RO":G5,"ru-RU":q5,"sk-SK":Y5,"sl-SI":Z5,"sr-SP":J5,"sv-SE":X5,"tr-TR":Q5,"uk-UA":e2,"zh-CN":t2,"zh-TW":n2};function Ej(e){return e&&e.__esModule?e.default:e}function Cj(e){const t=b.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:a,isReadOnly:u,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:h,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:v}=e;const $=Qi(Ej(r2),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);b.useEffect(()=>()=>C(),[]);let x=F=>{if(!(F.ctrlKey||F.metaKey||F.shiftKey||F.altKey||u))switch(F.key){case"PageUp":if(f){F.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(F.preventDefault(),d==null||d());break;case"PageDown":if(m){F.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":h&&(F.preventDefault(),h==null||h());break;case"Home":g&&(F.preventDefault(),g==null||g());break;case"End":v&&(F.preventDefault(),v==null||v());break}},y=b.useRef(!1),D=()=>{y.current=!0},P=()=>{y.current=!1},E=r===""?$.format("Empty"):(r||`${n}`).replace("-","−");b.useEffect(()=>{y.current&&(tj("assertive"),pu(E,"assertive"))},[E]);const T=wn(F=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&T(60)},F)}),k=wn(F=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&k(60)},F)});let S=F=>{F.preventDefault()},{addGlobalListener:U,removeAllGlobalListeners:O}=Uu();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":a||void 0,"aria-readonly":u||void 0,"aria-required":c||void 0,onKeyDown:x,onFocus:D,onBlur:P},incrementButtonProps:{onPressStart:()=>{T(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P},decrementButtonProps:{onPressStart:()=>{k(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P}}}var i2={};i2={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var o2={};o2={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var a2={};a2={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var s2={};s2={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var u2={};u2={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var l2={};l2={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var c2={};c2={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var d2={};d2={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var f2={};f2={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var h2={};h2={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var p2={};p2={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var m2={};m2={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var g2={};g2={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var y2={};y2={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var v2={};v2={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var b2={};b2={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var $2={};$2={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var x2={};x2={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var w2={};w2={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var D2={};D2={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var E2={};E2={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var C2={};C2={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var S2={};S2={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var T2={};T2={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var A2={};A2={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var P2={};P2={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var _2={};_2={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var R2={};R2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var O2={};O2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var M2={};M2={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var F2={};F2={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var k2={};k2={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var B2={};B2={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var I2={};I2={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var L2={};L2={"ar-AE":i2,"bg-BG":o2,"cs-CZ":a2,"da-DK":s2,"de-DE":u2,"el-GR":l2,"en-US":c2,"es-ES":d2,"et-EE":f2,"fi-FI":h2,"fr-FR":p2,"he-IL":m2,"hr-HR":g2,"hu-HU":y2,"it-IT":v2,"ja-JP":b2,"ko-KR":$2,"lt-LT":x2,"lv-LV":w2,"nb-NO":D2,"nl-NL":E2,"pl-PL":C2,"pt-BR":S2,"pt-PT":T2,"ro-RO":A2,"ru-RU":P2,"sk-SK":_2,"sl-SI":R2,"sr-SP":O2,"sv-SE":M2,"tr-TR":F2,"uk-UA":k2,"zh-CN":B2,"zh-TW":I2};const Ki={top:"top",bottom:"top",left:"left",right:"left"},fh={top:"bottom",bottom:"top",left:"right",right:"left"},Sj={top:"left",left:"top"},Hy={top:"height",left:"width"},V2={width:"totalWidth",height:"totalHeight"},df={};let Tn=typeof document<"u"?window.visualViewport:null;function Y$(e){let t=0,n=0,r=0,i=0,o=0,a=0,u={};var c;let d=((c=Tn==null?void 0:Tn.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let v=document.documentElement;r=v.clientWidth,i=v.clientHeight;var f;t=(f=Tn==null?void 0:Tn.width)!==null&&f!==void 0?f:r;var h;n=(h=Tn==null?void 0:Tn.height)!==null&&h!==void 0?h:i,u.top=v.scrollTop||e.scrollTop,u.left=v.scrollLeft||e.scrollLeft,Tn&&(o=Tn.offsetTop,a=Tn.offsetLeft)}else({width:t,height:n,top:o,left:a}=mu(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(lb()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var m;o=(m=Tn==null?void 0:Tn.pageTop)!==null&&m!==void 0?m:0;var g;a=(g=Tn==null?void 0:Tn.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:a}}function Tj(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Z$(e,t,n,r,i,o,a){var u;let c=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Hy[e]],f=r.scroll[Ki[e]]+o,h=d+r.scroll[Ki[e]]-o,m=t-c+a[e]-r[Ki[e]],g=t-c+n+a[e]-r[Ki[e]];return m<f?f-m:g>h?Math.max(h-g,f-m):0}function Aj(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function J$(e){if(df[e])return df[e];let[t,n]=e.split(" "),r=Ki[t]||"right",i=Sj[r];Ki[n]||(n="center");let o=Hy[r],a=Hy[i];return df[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},df[e]}function fg(e,t,n,r,i,o,a,u,c,d){let{placement:f,crossPlacement:h,axis:m,crossAxis:g,size:v,crossSize:$}=r,C={};var x;C[g]=(x=e[g])!==null&&x!==void 0?x:0;var y,D,P,E;h==="center"?C[g]+=(((y=e[$])!==null&&y!==void 0?y:0)-((D=n[$])!==null&&D!==void 0?D:0))/2:h!==g&&(C[g]+=((P=e[$])!==null&&P!==void 0?P:0)-((E=n[$])!==null&&E!==void 0?E:0)),C[g]+=o;const T=e[g]-n[$]+c+d,k=e[g]+e[$]-c-d;if(C[g]=Tu(C[g],T,k),f===m){const S=u?a[v]:t[V2[v]];C[fh[m]]=Math.floor(S-e[m]+i)}else C[m]=Math.floor(e[m]+e[v]+i);return C}function Pj(e,t,n,r,i,o,a,u){const c=r?n.height:t[V2.height];var d;let f=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var h,m,g,v,$,C;let x=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-f-(((m=i.top)!==null&&m!==void 0?m:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,f+a-(t.top+((v=t.scroll.top)!==null&&v!==void 0?v:0))-((($=i.top)!==null&&$!==void 0?$:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,x)}function X$(e,t,n,r,i,o){let{placement:a,axis:u,size:c}=o;var d,f;if(a===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((f=r[u])!==null&&f!==void 0?f:0)-r[fh[u]]-i);var h;return Math.max(0,e[c]+e[u]+e.scroll[u]-t[u]-n[u]-n[c]-((h=r[u])!==null&&h!==void 0?h:0)-r[fh[u]]-i)}function _j(e,t,n,r,i,o,a,u,c,d,f,h,m,g,v,$){let C=J$(e),{size:x,crossAxis:y,crossSize:D,placement:P,crossPlacement:E}=C,T=fg(t,u,n,C,f,h,d,m,v,$),k=f,S=X$(u,d,t,i,o+f,C);if(a&&r[x]>S){let fe=J$(`${fh[P]} ${E}`),ie=fg(t,u,n,fe,f,h,d,m,v,$);X$(u,d,t,i,o+f,fe)>S&&(C=fe,T=ie,k=f)}let U="bottom";C.axis==="top"?C.placement==="top"?U="top":C.placement==="bottom"&&(U="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?U="bottom":C.crossPlacement==="bottom"&&(U="top"));let O=Z$(y,T[y],n[D],u,c,o,d);T[y]+=O;let F=Pj(T,u,d,m,i,o,n.height,U);g&&g<F&&(F=g),n.height=Math.min(n.height,F),T=fg(t,u,n,C,k,h,d,m,v,$),O=Z$(y,T[y],n[D],u,c,o,d),T[y]+=O;let G={},K=t[y]+.5*t[D]-T[y]-i[Ki[y]];const W=v/2+$;var j,L,_,M;const Y=Ki[y]==="left"?((j=i.left)!==null&&j!==void 0?j:0)+((L=i.right)!==null&&L!==void 0?L:0):((_=i.top)!==null&&_!==void 0?_:0)+((M=i.bottom)!==null&&M!==void 0?M:0),V=n[D]-Y-v/2-$,z=t[y]+v/2-(T[y]+i[Ki[y]]),re=t[y]+t[D]-v/2-(T[y]+i[Ki[y]]),oe=Tu(K,z,re);return G[y]=Tu(oe,W,V),{position:T,maxHeight:F,arrowOffsetLeft:G.left,arrowOffsetTop:G.top,placement:C.placement}}function Rj(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:h=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?Oj(r):document.documentElement,v=g===document.documentElement;const $=window.getComputedStyle(g).position;let C=!!$&&$!=="static",x=v?mu(n):Q$(n,g);if(!v){let{marginTop:G,marginLeft:K}=window.getComputedStyle(n);x.top+=parseInt(G,10)||0,x.left+=parseInt(K,10)||0}let y=mu(r),D=Aj(r);var P,E;y.width+=((P=D.left)!==null&&P!==void 0?P:0)+((E=D.right)!==null&&E!==void 0?E:0);var T,k;y.height+=((T=D.top)!==null&&T!==void 0?T:0)+((k=D.bottom)!==null&&k!==void 0?k:0);let S=Tj(i),U=Y$(u),O=Y$(g),F=u.tagName==="BODY"?mu(g):Q$(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(O.scroll.top=0,O.scroll.left=0),_j(t,x,y,S,D,o,a,U,O,F,c,d,C,f,h,m)}function mu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:u,clientLeft:c}=document.documentElement;return{top:t+o-u,left:n+a-c,width:r,height:i}}function Q$(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:a,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:a,height:u}}else{r=mu(e);let i=mu(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Oj(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!ex(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!ex(t);)t=t.parentElement;return t||document.documentElement}function ex(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const N2=new WeakMap;function Mj(e){let{triggerRef:t,isOpen:n,onClose:r}=e;b.useEffect(()=>{if(!n||r===null)return;let i=o=>{let a=o.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||N2.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let ln=typeof document<"u"?window.visualViewport:null;function Fj(e){let{direction:t}=Qn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:v,maxHeight:$,arrowBoundaryOffset:C=0}=e,[x,y]=b.useState(null),D=[m,a,i.current,r.current,o.current,u,c,d,f,h,g,t,$,C,n],P=b.useRef(ln==null?void 0:ln.scale);b.useEffect(()=>{g&&(P.current=ln==null?void 0:ln.scale)},[g]);let E=b.useCallback(()=>{if(m===!1||!g||!i.current||!r.current||!d||(ln==null?void 0:ln.scale)!==P.current)return;let O=null;if(o.current&&o.current.contains(document.activeElement)){var F;let M=(F=document.activeElement)===null||F===void 0?void 0:F.getBoundingClientRect(),Y=o.current.getBoundingClientRect();var G;if(O={type:"top",offset:((G=M==null?void 0:M.top)!==null&&G!==void 0?G:0)-Y.top},O.offset>Y.height/2){O.type="bottom";var K;O.offset=((K=M==null?void 0:M.bottom)!==null&&K!==void 0?K:0)-Y.bottom}}let W=i.current;if(!$&&i.current){var j;W.style.top="0px",W.style.bottom="";var L;W.style.maxHeight=((L=(j=window.visualViewport)===null||j===void 0?void 0:j.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let _=Rj({placement:Bj(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:h,maxHeight:$,arrowSize:n,arrowBoundaryOffset:C});if(_.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(_.position).forEach(M=>W.style[M]=_.position[M]+"px"),W.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":"",O&&document.activeElement&&o.current){let M=document.activeElement.getBoundingClientRect(),Y=o.current.getBoundingClientRect(),V=M[O.type]-Y[O.type];o.current.scrollTop+=V-O.offset}y(_)}},D);zt(E,D),kj(E),i$({ref:i,onResize:E}),i$({ref:r,onResize:E});let T=b.useRef(!1);zt(()=>{let O,F=()=>{T.current=!0,clearTimeout(O),O=setTimeout(()=>{T.current=!1},500),E()},G=()=>{T.current&&F()};return ln==null||ln.addEventListener("resize",F),ln==null||ln.addEventListener("scroll",G),()=>{ln==null||ln.removeEventListener("resize",F),ln==null||ln.removeEventListener("scroll",G)}},[E]);let k=b.useCallback(()=>{T.current||v==null||v()},[v,T]);Mj({triggerRef:r,isOpen:g,onClose:v&&k});var S,U;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...x==null?void 0:x.position,maxHeight:(S=x==null?void 0:x.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(U=x==null?void 0:x.placement)!==null&&U!==void 0?U:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:E}}function kj(e){zt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Bj(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const po=[];function Ij(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:u}=e;b.useEffect(()=>(i&&po.push(t),()=>{let v=po.indexOf(t);v>=0&&po.splice(v,1)}),[i,t]);let c=()=>{po[po.length-1]===t&&n&&n()},d=v=>{(!u||u(v.target))&&po[po.length-1]===t&&(v.stopPropagation(),v.preventDefault())},f=v=>{(!u||u(v.target))&&(po[po.length-1]===t&&(v.stopPropagation(),v.preventDefault()),c())},h=v=>{v.key==="Escape"&&!a&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),c())};bV({ref:t,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:m}=zu({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||AV(v.relatedTarget)||(!u||u(v.relatedTarget))&&(n==null||n())}}),g=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:h,...m},underlayProps:{onPointerDown:g}}}function Lj(e,t,n){let{type:r}=e,{isOpen:i}=t;b.useEffect(()=>{n&&n.current&&N2.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let a=Mr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const hg=typeof document<"u"&&window.visualViewport,Vj=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ff=0,pg;function Nj(e={}){let{isDisabled:t}=e;zt(()=>{if(!t)return ff++,ff===1&&(Fc()?pg=Kj():pg=jj()),()=>{ff--,ff===0&&pg()}},[t])}function jj(){return as(eu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),eu(document.documentElement,"overflow","hidden"))}function Kj(){let e,t,n=d=>{e=Zh(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=eu(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=d=>{let f=d.target;nx(f)&&f!==document.activeElement&&(d.preventDefault(),u(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""})),t&&t()},o=d=>{let f=d.target;nx(f)&&(u(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",hg&&(hg.height<window.innerHeight?requestAnimationFrame(()=>{tx(f)}):hg.addEventListener("resize",()=>tx(f),{once:!0}))}))},a=null,u=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset;a=as(_l(window,"scroll",d),eu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),eu(document.documentElement,"overflow","hidden"),eu(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(f,h)}),window.scrollTo(0,0)},c=as(_l(document,"touchstart",n,{passive:!1,capture:!0}),_l(document,"touchmove",r,{passive:!1,capture:!0}),_l(document,"touchend",i,{passive:!1,capture:!0}),_l(document,"focus",o,!0));return()=>{t==null||t(),a==null||a(),c()}}function eu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function _l(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function tx(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Zh(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function nx(e){return e instanceof HTMLInputElement&&!Vj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Rl=new WeakMap,Yr=[];function j2(e,t=document.body){let n=new Set(e),r=new Set,i=c=>{for(let m of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let d=m=>{if(n.has(m)||m.parentElement&&r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(c);if(h===NodeFilter.FILTER_ACCEPT&&o(c),h!==NodeFilter.FILTER_REJECT){let m=f.nextNode();for(;m!=null;)o(m),m=f.nextNode()}},o=c=>{var d;let f=(d=Rl.get(c))!==null&&d!==void 0?d:0;c.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&c.setAttribute("aria-hidden","true"),r.add(c),Rl.set(c,f+1))};Yr.length&&Yr[Yr.length-1].disconnect(),i(t);let a=new MutationObserver(c=>{for(let d of c)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&i(f)}});a.observe(t,{childList:!0,subtree:!0});let u={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Yr.push(u),()=>{a.disconnect();for(let c of r){let d=Rl.get(c);d!=null&&(d===1?(c.removeAttribute("aria-hidden"),Rl.delete(c)):Rl.set(c,d-1))}u===Yr[Yr.length-1]?(Yr.pop(),Yr.length&&Yr[Yr.length-1].observe()):Yr.splice(Yr.indexOf(u),1)}}function Uj(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...u}=e,{overlayProps:c,underlayProps:d}=Ij({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},r),{overlayProps:f,arrowProps:h,placement:m}=Fj({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:void 0});return Nj({isDisabled:i||!t.isOpen}),zt(()=>{if(t.isOpen&&!i&&r.current)return j2([r.current])},[i,t.isOpen,r]),{popoverProps:xt(c,f),arrowProps:h,underlayProps:d,placement:m}}const zj=b.createContext({});function Wj(){var e;return(e=b.useContext(zj))!==null&&e!==void 0?e:{}}const K2=b.createContext(null);function Hj(e){let t=sb(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=b.useState(!1),a=b.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=Wj();if(!e.portalContainer&&u&&(n=u()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=b.createElement(DV,{restoreFocus:!0,contain:i&&!r},c)),c=b.createElement(K2.Provider,{value:a},b.createElement(dV,null,c)),aa.createPortal(c,n)}function Gj(){let e=b.useContext(K2),t=e==null?void 0:e.setContain;zt(()=>{t==null||t(!0)},[t])}const op=new WeakMap;function qj(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function U2(e,t){let n=op.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${qj(t)}`}function Gy(e){return _f()?e.altKey:e.ctrlKey}function Js(e){return Co()?e.metaKey:e.ctrlKey}const Yj=1e3;function Zj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=b.useRef({search:"",timeout:void 0}).current,o=a=>{let u=Jj(a.key);if(!(!u||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(u===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let c=t.getKeyForSearch(i.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(i.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Yj)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function Jj(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function z2(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:m,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:$}=Qn(),C=Yh(),x=O=>{var F;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((F=r.current)===null||F===void 0)&&F.contains(O.target)))return;const G=(ie,Ee)=>{if(ie!=null){if(t.isLink(ie)&&v==="selection"&&c&&!Gy(O)){var $e;aa.flushSync(()=>{t.setFocusedKey(ie,Ee)});let ne=($e=g.current)===null||$e===void 0?void 0:$e.querySelector(`[data-key="${CSS.escape(ie.toString())}"]`),ye=t.getItemProps(ie);ne&&C.open(ne,O,ye.href,ye.routerOptions);return}if(t.setFocusedKey(ie,Ee),t.isLink(ie)&&v==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&!Gy(O)&&t.replaceSelection(ie)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var K,W,j;let ie=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.call(n,t.focusedKey):(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n);ie==null&&o&&(ie=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowUp":if(n.getKeyAbove){var L,_,M;let ie=t.focusedKey!=null?(L=n.getKeyAbove)===null||L===void 0?void 0:L.call(n,t.focusedKey):(_=n.getLastKey)===null||_===void 0?void 0:_.call(n);ie==null&&o&&(ie=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Y,V,z;let ie=t.focusedKey!=null?(Y=n.getKeyLeftOf)===null||Y===void 0?void 0:Y.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var re,oe,fe;let ie=t.focusedKey!=null?(re=n.getKeyRightOf)===null||re===void 0?void 0:re.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey):(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){O.preventDefault();let ie=n.getFirstKey(t.focusedKey,Js(O));t.setFocusedKey(ie),ie!=null&&(Js(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"End":if(n.getLastKey){O.preventDefault();let ie=n.getLastKey(t.focusedKey,Js(O));t.setFocusedKey(ie),ie!=null&&(Js(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ie=n.getKeyPageBelow(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ie=n.getKeyPageAbove(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"a":Js(O)&&t.selectionMode==="multiple"&&u!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(O.shiftKey)r.current.focus();else{let ie=wr(r.current,{tabbable:!0}),Ee,$e;do $e=ie.lastChild(),$e&&(Ee=$e);while($e);Ee&&!Ee.contains(document.activeElement)&&vi(Ee)}break}}},y=b.useRef({top:0,left:0});sa(g,"scroll",m?void 0:()=>{var O,F,G,K;y.current={top:(G=(O=g.current)===null||O===void 0?void 0:O.scrollTop)!==null&&G!==void 0?G:0,left:(K=(F=g.current)===null||F===void 0?void 0:F.scrollLeft)!==null&&K!==void 0?K:0}});let D=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var F,G;let j=_=>{_!=null&&(t.setFocusedKey(_),c&&t.replaceSelection(_))},L=O.relatedTarget;var K,W;L&&O.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?j((K=t.lastSelectedKey)!==null&&K!==void 0?K:(F=n.getLastKey)===null||F===void 0?void 0:F.call(n)):j((W=t.firstSelectedKey)!==null&&W!==void 0?W:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!m&&g.current&&(g.current.scrollTop=y.current.top,g.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&g.current){let j=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);j&&(j.contains(document.activeElement)||vi(j),rh()==="keyboard"&&th(j,{containingElement:r.current}))}}},P=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)};const E=b.useRef(i);b.useEffect(()=>{if(E.current){var O,F;let W=null;var G;i==="first"&&(W=(G=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&G!==void 0?G:null);var K;i==="last"&&(W=(K=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n))!==null&&K!==void 0?K:null);let j=t.selectedKeys;if(j.size){for(let L of j)if(t.canSelectItem(L)){W=L;break}}t.setFocused(!0),t.setFocusedKey(W),W==null&&!f&&r.current&&ls(r.current)}},[]);let T=b.useRef(t.focusedKey);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||E.current)&&g.current&&r.current){let O=rh(),F=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!F)return;(O==="keyboard"||E.current)&&(NC(g.current,F),O!=="virtual"&&th(F,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&T.current!=null&&r.current&&ls(r.current),T.current=t.focusedKey,E.current=!1}),sa(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let k={onKeyDown:x,onFocus:D,onBlur:P,onMouseDown(O){g.current===O.target&&O.preventDefault()}},{typeSelectProps:S}=Zj({keyboardDelegate:n,selectionManager:t});d||(k=xt(S,k));let U;return f||(U=t.focusedKey==null?0:-1),{collectionProps:{...k,tabIndex:U}}}function Xj(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=e,h=Yh(),m=_=>{if(_.pointerType==="keyboard"&&Gy(_))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(f==="selection"&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(f==="override"||f==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):_&&_.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||_&&(Js(_)||_.pointerType==="touch"||_.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};b.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!o&&(a?a():document.activeElement!==r.current&&r.current&&ls(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),u=u||t.isDisabled(n);let g={};!o&&!u?g={tabIndex:n===t.focusedKey?0:-1,onFocus(_){_.target===r.current&&t.setFocusedKey(n)}}:u&&(g.onMouseDown=_=>{_.preventDefault()});let v=t.isLink(n)&&f==="override",$=t.isLink(n)&&f!=="selection"&&f!=="none",C=!u&&t.canSelectItem(n)&&!v,x=(c||$)&&!u,y=x&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),D=x&&C&&t.selectionBehavior==="replace",P=y||D,E=b.useRef(null),T=P&&C,k=b.useRef(!1),S=b.useRef(!1),U=_=>{if(c&&c(),$&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions)}},O={};i?(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,_.pointerType==="keyboard"&&(!P||ix())&&m(_)},d?(O.onPressUp=y?void 0:_=>{_.pointerType!=="keyboard"&&C&&m(_)},O.onPress=y?U:void 0):O.onPress=_=>{if(y||D&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!rx())return;U(_)}else _.pointerType!=="keyboard"&&C&&m(_)}):(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,S.current=y,C&&(_.pointerType==="mouse"&&!y||_.pointerType==="keyboard"&&(!x||ix()))&&m(_)},O.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&P&&rx()||_.pointerType==="mouse"&&S.current)&&(P?U(_):C&&m(_))}),g["data-key"]=n,O.preventFocusOnPress=o;let{pressProps:F,isPressed:G}=Ic(O),K=D?_=>{E.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),U(_))}:void 0,{longPressProps:W}=QC({isDisabled:!T,onLongPress(_){_.pointerType==="touch"&&(m(_),t.setSelectionBehavior("toggle"))}}),j=_=>{E.current==="touch"&&k.current&&_.preventDefault()},L=t.isLink(n)?_=>{ss.isOpening||_.preventDefault()}:void 0;return{itemProps:xt(g,C||y?F:{},T?W:{},{onDoubleClick:K,onDragStartCapture:j,onClick:L}),isPressed:G,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:u,allowsSelection:C,hasAction:P}}function rx(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function ix(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class ox{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,o;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class W2{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(a,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!dc(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!dc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let a=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new ox(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ox(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Qj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=e,u=BS({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=b.useMemo(()=>o||new W2({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:u,layoutDelegate:a}),[o,a,n,r,i,u,c]),{collectionProps:f}=z2({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function eK(e,t,n){let r=Po(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=Qj({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=zu({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=Mr(e.id);op.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:f}=rp({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:xt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...xt(f,a)})}}function H2(e){return null}H2.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,a=t.title||t.children,u=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:u,"aria-label":t["aria-label"],hasChildNodes:tK(t),*childNodes(){if(r)for(let c of r)yield{type:"item",value:c};else if(i){let c=[];b.Children.forEach(o,d=>{c.push({type:"item",element:d})}),yield*c}}}};function tK(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&b.Children.count(e.children)>0)}let nK=H2;class rK{build(t,n){return this.context=n,ax(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(b.isValidElement(n)&&n.type===b.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];b.Children.forEach(n,a=>{a&&i.push(a)});let o=0;for(let a of i){let u=this.getFullNode({element:a,index:o},{});for(let c of u)o++,yield c}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var a;let u=(a=o.key)!==null&&a!==void 0?a:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(b.isValidElement(t.element)&&t.element.type===b.Fragment){let C=[];b.Children.forEach(t.element.props.children,y=>{C.push(y)});var o;let x=(o=t.index)!==null&&o!==void 0?o:0;for(const y of C)yield*this.getFullNode({element:y,index:x++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=i?i.key:null,yield C;return}a=n.renderer(t.value)}if(b.isValidElement(a)){let C=a.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let P=a.type;throw new Error(`Unknown element <${P}> in collection.`)}let x=C.getCollectionNode(a.props,this.context);var u;let y=(u=t.index)!==null&&u!==void 0?u:0,D=x.next();for(;!D.done&&D.value;){let P=D.value;t.index=y;var c;let E=(c=P.key)!==null&&c!==void 0?c:null;E==null&&(E=P.element?null:this.getKey(a,t,n,r));let k=[...this.getFullNode({...P,key:E,index:y,wrapper:iK(t.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${a.key}`:a.key,i)];for(let S of k){var d,f;S.value=(f=(d=P.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${mg(S.type)}> in <${mg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${mg(t.type)}> is supported.`);y++,yield S}D=x.next(k)}return}if(t.key==null||t.type==null)return;let m=this;var g,v;let $={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(v=t.textValue)!==null&&v!==void 0?v:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:ax(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${$.key}${x.key}`);let y=m.getFullNode({...x,index:C},m.getChildState(n,x),$.key,$);for(let D of y)C++,yield D}})};yield $}constructor(){this.cache=new WeakMap}}function ax(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function iK(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function mg(e){return e[0].toUpperCase()+e.slice(1)}function oK(e,t,n){let r=b.useMemo(()=>new rK,[]),{children:i,items:o,collection:a}=e;return b.useMemo(()=>{if(a)return a;let c=r.build({children:i,items:o},n);return t(c)},[r,i,o,a,n,t])}function ap(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function aK(e){return sK(e)}function sK(e,t){for(let n of e)return n}function gg(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...sx(e,t),t],i=[...sx(e,n),n],o=r.slice(0,i.length).findIndex((a,u)=>a!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function sx(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const ux=new WeakMap;function G2(e){let t=ux.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(ap(o,e)):n++};return r(e),ux.set(e,n),n}function uK(e,t,n){var r,i;let{key:o}=e,a=op.get(t);var u;let c=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let m=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:a==null?void 0:a.shouldSelectOnPressUp;var g;let v=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var $;let C=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:a==null?void 0:a.shouldUseVirtualFocus;var x;let y=(x=e.isVirtualized)!==null&&x!==void 0?x:a==null?void 0:a.isVirtualized,D=Cu(),P=Cu(),E={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};Co()&&lb()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=P);let T=t.collection.getItem(o);if(y){let L=Number(T==null?void 0:T.index);E["aria-posinset"]=Number.isNaN(L)?void 0:L+1,E["aria-setsize"]=G2(t.collection)}let k=a!=null&&a.onAction?()=>{var L;return a==null||(L=a.onAction)===null||L===void 0?void 0:L.call(a,o)}:void 0,{itemProps:S,isPressed:U,isFocused:O,hasAction:F,allowsSelection:G}=Xj({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&v,isVirtualized:y,shouldUseVirtualFocus:C,isDisabled:c,onAction:k||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?as(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,k):void 0,linkBehavior:a==null?void 0:a.linkBehavior}),{hoverProps:K}=vV({isDisabled:c||!v,onHoverStart(){d$()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=Po(T==null?void 0:T.props);delete W.id;let j=JL(T==null?void 0:T.props);return{optionProps:{...E,...xt(W,S,K,j),id:U2(t,o)},labelProps:{id:D},descriptionProps:{id:P},isFocused:O,isFocusVisible:O&&d$(),isSelected:f,isDisabled:c,isPressed:U,allowsSelection:G,hasAction:F}}var q2={};q2={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Y2={};Y2={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Z2={};Z2={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var J2={};J2={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var X2={};X2={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Q2={};Q2={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var eT={};eT={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var tT={};tT={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var nT={};nT={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var rT={};rT={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var iT={};iT={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var oT={};oT={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var aT={};aT={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var sT={};sT={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var uT={};uT={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var lT={};lT={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var cT={};cT={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var dT={};dT={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var fT={};fT={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var hT={};hT={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var pT={};pT={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var mT={};mT={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var gT={};gT={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var yT={};yT={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var vT={};vT={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var bT={};bT={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var $T={};$T={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var xT={};xT={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var wT={};wT={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var DT={};DT={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var ET={};ET={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var CT={};CT={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var ST={};ST={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var TT={};TT={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var AT={};AT={"ar-AE":q2,"bg-BG":Y2,"cs-CZ":Z2,"da-DK":J2,"de-DE":X2,"el-GR":Q2,"en-US":eT,"es-ES":tT,"et-EE":nT,"fi-FI":rT,"fr-FR":iT,"he-IL":oT,"hr-HR":aT,"hu-HU":sT,"it-IT":uT,"ja-JP":lT,"ko-KR":cT,"lt-LT":dT,"lv-LV":fT,"nb-NO":hT,"nl-NL":pT,"pl-PL":mT,"pt-BR":gT,"pt-PT":yT,"ro-RO":vT,"ru-RU":bT,"sk-SK":$T,"sl-SI":xT,"sr-SP":wT,"sv-SE":DT,"tr-TR":ET,"uk-UA":CT,"zh-CN":ST,"zh-TW":TT};function lK(e){return e&&e.__esModule?e.default:e}function cK(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,a=Mr(),{triggerProps:u,overlayProps:c}=Lj({type:r},t,n),d=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},f=Qi(lK(AT),"@react-aria/menu"),{longPressProps:h}=QC({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?m:h,id:a,onKeyDown:d},menuProps:{...c,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function dK(e){return e&&e.__esModule?e.default:e}function fK(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:a,layoutDelegate:u,shouldFocusWrap:c,isReadOnly:d,isDisabled:f}=e,h=b.useRef(null);n=n??h;let m=Qi(dK(L2),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:v}=cK({type:"listbox",isDisabled:f||d},t,n);op.set(t,{id:v.id});let{collection:$}=t,{disabledKeys:C}=t.selectionManager,x=b.useMemo(()=>a||new W2({collection:$,disabledKeys:C,ref:o,layoutDelegate:u}),[a,u,$,C,o]),{collectionProps:y}=z2({selectionManager:t.selectionManager,keyboardDelegate:x,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),D=Yh(),P=he=>{if(!he.nativeEvent.isComposing)switch(he.key){case"Enter":case"Tab":if(t.isOpen&&he.key==="Enter"&&he.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let le=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(he.key==="Enter"&&le instanceof HTMLAnchorElement){let Fe=t.collection.getItem(t.selectionManager.focusedKey);Fe&&D.open(le,he,Fe.props.href,Fe.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&he.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},E=he=>{var le;let Fe=(n==null?void 0:n.current)&&n.current===he.relatedTarget,et=(le=r.current)===null||le===void 0?void 0:le.contains(he.relatedTarget);Fe||et||(e.onBlur&&e.onBlur(he),t.setFocused(!1))},T=he=>{t.isFocused||(e.onFocus&&e.onFocus(he),t.setFocused(!0))},{isInvalid:k,validationErrors:S,validationDetails:U}=t.displayValidation,{labelProps:O,inputProps:F,descriptionProps:G,errorMessageProps:K}=Dj({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:as(t.isOpen&&y.onKeyDown,P,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:T,autoComplete:"off",validate:void 0,[Pu]:t},i),W=he=>{if(he.pointerType==="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(null,"manual")}},j=he=>{if(he.pointerType!=="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(he.pointerType==="keyboard"||he.pointerType==="virtual"?"first":null,"manual")}},L=Su({id:g.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),_=Su({id:v.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),M=b.useRef(0),Y=he=>{if(f||d)return;if(he.timeStamp-M.current<500){var le;he.preventDefault(),(le=i.current)===null||le===void 0||le.focus();return}let Fe=he.target.getBoundingClientRect(),et=he.changedTouches[0],dt=Math.ceil(Fe.left+.5*Fe.width),Dn=Math.ceil(Fe.top+.5*Fe.height);if(et.clientX===dt&&et.clientY===Dn){var yt;he.preventDefault(),(yt=i.current)===null||yt===void 0||yt.focus(),t.toggle(null,"manual"),M.current=he.timeStamp}},V=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var z;let re=(z=V==null?void 0:V.parentKey)!==null&&z!==void 0?z:null;var oe;let fe=(oe=t.selectionManager.focusedKey)!==null&&oe!==void 0?oe:null,ie=b.useRef(re),Ee=b.useRef(fe);b.useEffect(()=>{if(_f()&&V!=null&&fe!=null&&fe!==Ee.current){let le=t.selectionManager.isSelected(fe),Fe=re!=null?t.collection.getItem(re):null,et=(Fe==null?void 0:Fe["aria-label"])||(typeof(Fe==null?void 0:Fe.rendered)=="string"?Fe.rendered:"")||"";var he;let dt=m.format("focusAnnouncement",{isGroupChange:(he=Fe&&re!==ie.current)!==null&&he!==void 0?he:!1,groupTitle:et,groupCount:Fe?[...ap(Fe,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:le});pu(dt)}ie.current=re,Ee.current=fe});let $e=G2(t.collection),ne=b.useRef($e),ye=b.useRef(t.isOpen);b.useEffect(()=>{let he=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||_f());if(t.isOpen&&(he||$e!==ne.current)){let le=m.format("countAnnouncement",{optionCount:$e});pu(le)}ne.current=$e,ye.current=t.isOpen});let xe=b.useRef(t.selectedKey);return b.useEffect(()=>{if(_f()&&t.isFocused&&t.selectedItem&&t.selectedKey!==xe.current){let he=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",le=m.format("selectedAnnouncement",{optionText:he});pu(le)}xe.current=t.selectedKey}),b.useEffect(()=>{if(t.isOpen)return j2([i.current,r.current].filter(he=>he!=null))},[t.isOpen,i,r]),{labelProps:O,buttonProps:{...g,...L,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:W,onPressStart:j,isDisabled:f||d},inputProps:xt(F,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?v.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?U2(t,V.key):void 0,onTouchEnd:Y,autoCorrect:"off",spellCheck:"false"}),listBoxProps:xt(v,_,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:G,errorMessageProps:K,isInvalid:k,validationErrors:S,validationDetails:U}}var PT={};PT={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var _T={};_T={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var RT={};RT={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var OT={};OT={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var MT={};MT={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var FT={};FT={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var kT={};kT={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var BT={};BT={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var IT={};IT={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var LT={};LT={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var VT={};VT={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var NT={};NT={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var jT={};jT={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var KT={};KT={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var UT={};UT={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var zT={};zT={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var WT={};WT={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var HT={};HT={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var GT={};GT={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var qT={};qT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var YT={};YT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var ZT={};ZT={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var JT={};JT={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var XT={};XT={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var QT={};QT={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var eA={};eA={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var tA={};tA={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var nA={};nA={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var rA={};rA={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var iA={};iA={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var oA={};oA={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var aA={};aA={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var sA={};sA={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var uA={};uA={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var zc={};zc={"ar-AE":PT,"bg-BG":_T,"cs-CZ":RT,"da-DK":OT,"de-DE":MT,"el-GR":FT,"en-US":kT,"es-ES":BT,"et-EE":IT,"fi-FI":LT,"fr-FR":VT,"he-IL":NT,"hr-HR":jT,"hu-HU":KT,"it-IT":UT,"ja-JP":zT,"ko-KR":WT,"lt-LT":HT,"lv-LV":GT,"nb-NO":qT,"nl-NL":YT,"pl-PL":ZT,"pt-BR":JT,"pt-PT":XT,"ro-RO":QT,"ru-RU":eA,"sk-SK":tA,"sl-SI":nA,"sr-SP":rA,"sv-SE":iA,"tr-TR":oA,"uk-UA":aA,"zh-CN":sA,"zh-TW":uA};function Pb(e,t,n){let{direction:r}=Qn(),i=b.useMemo(()=>Xh(t),[t]),o=c=>{if(c.currentTarget.contains(c.target)&&(c.altKey&&(c.key==="ArrowDown"||c.key==="ArrowUp")&&"setOpen"in e&&(c.preventDefault(),c.stopPropagation(),e.setOpen(!0)),!n))switch(c.key){case"ArrowLeft":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,f=wr(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let h;do h=f.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=f.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:u}=Ic({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&a()},onPress(c){c.pointerType!=="mouse"&&a()}});return xt(u,{onKeyDown:o})}function hK(e){return e&&e.__esModule?e.default:e}const lA=new WeakMap,nc="__role_"+Date.now(),cA="__focusManager_"+Date.now();function dA(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:a}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=ip({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=b.useRef(null),{focusWithinProps:m}=zu({...e,onFocusWithin(O){var F;h.current=t.value,(F=e.onFocus)===null||F===void 0||F.call(e,O)},onBlurWithin:O=>{var F;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(F=e.onBlur)===null||F===void 0||F.call(e,O)},onFocusWithinChange:e.onFocusChange}),g=Qi(hK(zc),"@react-aria/datepicker"),v=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",C=t.value?g.format(v,{[$]:t.formatValue({month:"long"})}):"",x=kc(C),y=e[nc]==="presentation"?c["aria-describedby"]:[x["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[cA],P=b.useMemo(()=>D||Xh(n),[D,n]),E=Pb(t,n,e[nc]==="presentation");lA.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:P});let T=b.useRef(e.autoFocus),k;e[nc]==="presentation"?k={role:"presentation"}:k=xt(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),b.useEffect(()=>{T.current&&P.focusFirst(),T.current=!1},[P]),cb(e.inputRef,t.value,t.setValue),w5({...e,focus(){P.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let U=Po(e);return{labelProps:{...u,onClick:()=>{P.focusFirst()}},fieldProps:xt(U,k,E,m,{onKeyDown(O){e.onKeyDown&&e.onKeyDown(O)},onKeyUp(O){e.onKeyUp&&e.onKeyUp(O)}}),inputProps:S,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:o,validationDetails:a}}function pK(e,t,n){var r;let i=dA(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function mK(e){return e&&e.__esModule?e.default:e}function gK(e,t,n){let r=Mr(),i=Mr(),o=Mr(),a=Qi(mK(zc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=ip({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=Pb(t,n),$=h["aria-labelledby"]||h.id,{locale:C}=Qn(),x=t.formatValue(C,{month:"long"}),y=x?a.format("selectedDateDescription",{date:x}):"",D=kc(y),P=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=Po(e),T=b.useMemo(()=>Xh(n),[n]),{focusWithinProps:k}=zu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:xt(E,v,h,D,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":$,"aria-describedby":P,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...f,onClick:()=>{T.focusFirst()}},fieldProps:{...h,id:o,[nc]:"presentation","aria-describedby":P,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Pu]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:m,errorMessageProps:g,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${$}`,"aria-describedby":P,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${$}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function yK(e){return e&&e.__esModule?e.default:e}function vK(){let{locale:e}=Qn(),t=oS(yK(zc),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new bK(e,t)}},[e,t])}class bK{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function $K(e,t,n){let r=b.useRef(""),{locale:i}=Qn(),o=vK(),{ariaLabel:a,ariaLabelledBy:u,ariaDescribedBy:c,focusManager:d}=lA.get(t),f=e.isPlaceholder?"":e.text,h=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=ji({month:"long",timeZone:h.timeZone}),g=ji({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let M=m.format(t.dateValue);f=M!==f?`${f} – ${M}`:M}else e.type==="hour"&&!e.isPlaceholder&&(f=g.format(t.dateValue));let{spinButtonProps:v}=Cj({value:e.value,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),$=b.useMemo(()=>new kS(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let M=e.text.slice(0,-1),Y=$.parse(M);M=Y===0?"":M,M.length===0||Y===0?t.clearSegment(e.type):t.setSegment(e.type,Y),r.current=M}else e.type==="dayPeriod"&&t.clearSegment(e.type)},x=M=>{if(M.key==="a"&&(Co()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),C();break}},{startsWith:y}=IS({sensitivity:"base"}),D=ji({hour:"numeric",hour12:!0}),P=b.useMemo(()=>{let M=new Date;return M.setHours(0),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),E=b.useMemo(()=>{let M=new Date;return M.setHours(12),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),T=ji({year:"numeric",era:"narrow",timeZone:"UTC"}),k=b.useMemo(()=>{if(e.type!=="era")return[];let M=Qt(new hn(1,1,1),t.calendar),Y=t.calendar.getEras().map(z=>{let re=M.set({year:1,month:1,day:1,era:z}).toDate("UTC"),fe=T.formatToParts(re).find(ie=>ie.type==="era").value;return{era:z,formatted:fe}}),V=xK(Y.map(z=>z.formatted));if(V)for(let z of Y)z.formatted=z.formatted.slice(V);return Y},[T,t.calendar,e.type]),S=M=>{if(t.isDisabled||t.isReadOnly)return;let Y=r.current+M;switch(e.type){case"dayPeriod":if(y(P,M))t.setSegment("dayPeriod",0);else if(y(E,M))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let V=k.find(z=>y(z.formatted,M));V&&(t.setSegment("era",V.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(Y))return;let V=$.parse(Y),z=V,re=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":V>11&&(z=$.parse(M));break;case"h12":re=!1,V>12&&(z=$.parse(M));break}e.value!==void 0&&e.value>=12&&V>1&&(V+=12)}else e.maxValue!==void 0&&V>e.maxValue&&(z=$.parse(M));if(isNaN(V))return;let oe=z!==0||re;oe&&t.setSegment(e.type,z),e.maxValue!==void 0&&(+(V+"0")>e.maxValue||Y.length>=String(e.maxValue).length)?(r.current="",oe&&d.focusNext()):r.current=Y;break}}},U=()=>{r.current="",n.current&&th(n.current,{containingElement:Zh(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},O=b.useRef(typeof document<"u"?document:null);sa(O,"selectionchange",()=>{var M;let Y=window.getSelection();Y!=null&&Y.anchorNode&&(!((M=n.current)===null||M===void 0)&&M.contains(Y==null?void 0:Y.anchorNode))&&Y.collapse(n.current)});let F=b.useRef("");sa(n,"beforeinput",M=>{if(n.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:M.data!=null&&S(M.data);break}}),sa(n,"input",M=>{let{inputType:Y,data:V}=M;switch(Y){case"insertCompositionText":n.current&&(n.current.textContent=F.current),V!=null&&(y(P,V)||y(E,V))&&S(V);break}}),zt(()=>{let M=n.current;return()=>{document.activeElement===M&&(d.focusPrevious()||d.focusNext())}},[n,d]);let G=Fc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},K=b.useMemo(()=>t.segments.find(M=>M.isEditable),[t.segments]);e!==K&&!t.isInvalid&&(c=void 0);let W=Mr(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":o.of(e.type),_=Su({"aria-label":`${L}${a?`, ${a}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:xt(v,_,{id:W,...G,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":c,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?"false":void 0,autoCorrect:j?"off":void 0,[parseInt(b.version,10)>=17?"enterKeyHint":"enterkeyhint"]:j?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!j?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:x,onFocus:U,style:{caretColor:"transparent"},onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function xK(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function wK(e){return e&&e.__esModule?e.default:e}function DK(e,t,n){var r,i,o;let a=Qi(wK(zc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=ip({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=h["aria-labelledby"]||h.id,{locale:$}=Qn(),C=t.formatValue($,{month:"long"}),x=C?a.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",y=kc(x),D={"aria-label":a.format("startDate"),"aria-labelledby":v},P={"aria-label":a.format("endDate"),"aria-labelledby":v},E=Mr(),T=Mr(),k=Pb(t,n),S=[y["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,U=b.useMemo(()=>Xh(n,{accept:_=>_.id!==E}),[n,E]),O={[cA]:U,[nc]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},F=Po(e),{focusWithinProps:G}=zu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),K=b.useRef(ja),W=b.useRef(ja);var j,L;return{groupProps:xt(F,k,h,y,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(_){t.isOpen||e.onKeyDown&&e.onKeyDown(_)},onKeyUp(_){t.isOpen||e.onKeyUp&&e.onKeyUp(_)}}),labelProps:{...f,onClick:()=>{U.focusFirst()}},buttonProps:{...y,id:E,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${E} ${v}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:T,"aria-labelledby":`${E} ${v}`},startFieldProps:{...D,...O,value:(j=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&j!==void 0?j:null,onChange:_=>t.setDateTime("start",_),autoFocus:e.autoFocus,name:e.startName,[Pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){K.current=_,t.updateValidation(dh(_,W.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...P,...O,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:_=>t.setDateTime("end",_),name:e.endName,[Pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){W.current=_,t.updateValidation(dh(K.current,_))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:m,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function EK(e,t){let{role:n="dialog"}=e,r=Cu();r=e["aria-label"]?void 0:r;let i=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ls(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),ls(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),Gj(),{dialogProps:{...Po(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function gu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function qy(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let a=Ha(e,t,n).subtract(o);return yc(e,a,t,n,r,i)}function Ha(e,t,n,r,i){let o=e;return t.years?o=qV(e):t.months?o=Nc(e):t.weeks&&(o=fc(e,n)),yc(e,o,t,n,r,i)}function Yy(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let a=Ha(e,t,n).subtract(o);return yc(e,a,t,n,r,i)}function yc(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let a=vb(t,Ha(cr(i),n,r));a&&(t=a)}if(o&&e.compare(o)<=0){let a=yb(t,Yy(cr(o),n,r));a&&(t=a)}return t}function Yo(e,t,n){if(t){let r=vb(e,cr(t));r&&(e=r)}if(n){let r=yb(e,cr(n));r&&(e=r)}return e}function fA(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function hA(e){let t=b.useMemo(()=>new ii(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:u,selectionAlignment:c,isDateUnavailable:d,pageBehavior:f="visible"}=e,h=b.useMemo(()=>i(n.calendar),[i,n.calendar]);var m;let[g,v]=Fr(e.value,(m=e.defaultValue)!==null&&m!==void 0?m:null,e.onChange),$=b.useMemo(()=>g?Qt(cr(g),h):null,[g,h]),C=b.useMemo(()=>g&&"timeZone"in g?g.timeZone:n.timeZone,[g,n.timeZone]),x=b.useMemo(()=>e.focusedValue?Yo(Qt(cr(e.focusedValue),h),a,u):void 0,[e.focusedValue,h,a,u]),y=b.useMemo(()=>Yo(e.defaultFocusedValue?Qt(cr(e.defaultFocusedValue),h):$||Qt(ep(C),h),a,u),[e.defaultFocusedValue,$,C,h,a,u]),[D,P]=Fr(x,y,e.onFocusChange),[E,T]=b.useState(()=>{switch(c){case"start":return Ha(D,o,r,a,u);case"end":return Yy(D,o,r,a,u);case"center":default:return qy(D,o,r,a,u)}}),[k,S]=b.useState(e.autoFocus||!1),U=b.useMemo(()=>{let V={...o};return V.days?V.days--:V.days=-1,E.add(V)},[E,o]),[O,F]=b.useState(h.identifier);if(h.identifier!==O){let V=Qt(D,h);T(qy(V,o,r,a,u)),P(V),F(h.identifier)}gu(D,a,u)?P(Yo(D,a,u)):D.compare(E)<0?T(Yy(D,o,r,a,u)):D.compare(U)>0&&T(Ha(D,o,r,a,u));function G(V){V=Yo(V,a,u),P(V)}function K(V){if(!e.isDisabled&&!e.isReadOnly){let z=V;if(z===null){v(null);return}if(z=Yo(z,a,u),z=fA(z,E,d),!z)return;z=Qt(z,(g==null?void 0:g.calendar)||new dr),g&&"hour"in g?v(g.set(z)):v(z)}}let W=b.useMemo(()=>$?d&&d($)?!0:gu($,a,u):!1,[$,d,a,u]),j=e.isInvalid||e.validationState==="invalid"||W,L=j?"invalid":null,_=b.useMemo(()=>f==="visible"?o:yg(o),[f,o]);var M,Y;return{isDisabled:(M=e.isDisabled)!==null&&M!==void 0?M:!1,isReadOnly:(Y=e.isReadOnly)!==null&&Y!==void 0?Y:!1,value:$,setValue:K,visibleRange:{start:E,end:U},minValue:a,maxValue:u,focusedDate:D,timeZone:C,validationState:L,isValueInvalid:j,setFocusedDate(V){G(V),S(!0)},focusNextDay(){G(D.add({days:1}))},focusPreviousDay(){G(D.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&G(D.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&G(D.subtract({weeks:1}))},focusNextPage(){let V=E.add(_);P(Yo(D.add(_),a,u)),T(Ha(yc(D,V,_,r,a,u),_,r))},focusPreviousPage(){let V=E.subtract(_);P(Yo(D.subtract(_),a,u)),T(Ha(yc(D,V,_,r,a,u),_,r))},focusSectionStart(){o.days?G(E):o.weeks?G(fc(D,r)):(o.months||o.years)&&G(Nc(D))},focusSectionEnd(){o.days?G(U):o.weeks?G(JV(D,r)):(o.months||o.years)&&G(Fy(D))},focusNextSection(V){if(!V&&!o.days){G(D.add(yg(o)));return}o.days?this.focusNextPage():o.weeks?G(D.add({months:1})):(o.months||o.years)&&G(D.add({years:1}))},focusPreviousSection(V){if(!V&&!o.days){G(D.subtract(yg(o)));return}o.days?this.focusPreviousPage():o.weeks?G(D.subtract({months:1})):(o.months||o.years)&&G(D.subtract({years:1}))},selectFocusedDate(){K(D)},selectDate(V){K(V)},isFocused:k,setFocused:S,isInvalid(V){return gu(V,a,u)},isSelected(V){return $!=null&&xn(V,$)&&!this.isCellDisabled(V)&&!this.isCellUnavailable(V)},isCellFocused(V){return k&&D&&xn(V,D)},isCellDisabled(V){return e.isDisabled||V.compare(E)<0||V.compare(U)>0||this.isInvalid(V)},isCellUnavailable(V){return e.isDateUnavailable?e.isDateUnavailable(V):!1},isPreviousVisibleRangeInvalid(){let V=E.subtract({days:1});return xn(V,E)||this.isInvalid(V)},isNextVisibleRangeInvalid(){let V=U.add({days:1});return xn(V,U)||this.isInvalid(V)},getDatesInWeek(V,z=E){let re=z.add({weeks:V}),oe=[];re=fc(re,r);let fe=gb(re,r);for(let ie=0;ie<fe;ie++)oe.push(null);for(;oe.length<7;){oe.push(re);let ie=re.add({days:1});if(xn(re,ie))break;re=ie}for(;oe.length<7;)oe.push(null);return oe}}}function yg(e){let t={...e};for(let n in e)t[n]=1;return t}function CK(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:u,maxValue:c,...d}=e,[f,h]=Fr(t,n||null,r),[m,g]=b.useState(null),v="center";if(f&&f.start&&f.end){let M=qy(cr(f.start),a,o,u,c).add(a).subtract({days:1});f.end.compare(M)>0&&(v="start")}let $=b.useRef(null),[C,x]=b.useState(null),y=b.useMemo(()=>vb(u,C==null?void 0:C.start),[u,C]),D=b.useMemo(()=>yb(c,C==null?void 0:C.end),[c,C]),P=hA({...d,value:f&&f.start,createCalendar:i,locale:o,visibleDuration:a,minValue:y,maxValue:D,selectionAlignment:v}),E=_=>{if(_&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const M=cx(_,P,-1),Y=cx(_,P,1);$.current={start:M,end:Y},x($.current)}else $.current=null,x(null)},[T,k]=b.useState(P.visibleRange);(!My(P.visibleRange.start,T.start)||!My(P.visibleRange.end,T.end))&&(E(m),k(P.visibleRange));let S=_=>{_?(g(_),E(_)):(g(null),E(null))},U=m?vg(m,P.focusedDate):f&&vg(f.start,f.end),O=_=>{if(e.isReadOnly)return;const M=Yo(_,y,D),Y=fA(M,P.visibleRange.start,e.isDateUnavailable);if(Y)if(!m)S(Y);else{let V=vg(m,Y);V&&h({start:lx(V.start,f==null?void 0:f.start),end:lx(V.end,f==null?void 0:f.end)}),S(null)}},[F,G]=b.useState(!1),{isDateUnavailable:K}=e,W=b.useMemo(()=>!f||m?!1:K&&(K(f.start)||K(f.end))?!0:gu(f.start,u,c)||gu(f.end,u,c),[K,f,m,u,c]),j=e.isInvalid||e.validationState==="invalid"||W;return{...P,value:f,setValue:h,anchorDate:m,setAnchorDate:S,highlightedRange:U,validationState:j?"invalid":null,isValueInvalid:j,selectFocusedDate(){O(P.focusedDate)},selectDate:O,highlightDate(_){m&&P.setFocusedDate(_)},isSelected(_){return!!(U&&_.compare(U.start)>=0&&_.compare(U.end)<=0&&!P.isCellDisabled(_)&&!P.isCellUnavailable(_))},isInvalid(_){var M,Y;return P.isInvalid(_)||gu(_,(M=$.current)===null||M===void 0?void 0:M.start,(Y=$.current)===null||Y===void 0?void 0:Y.end)},isDragging:F,setDragging:G}}function vg(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cr(e),end:cr(t)})}function lx(e,t){return e=Qt(e,(t==null?void 0:t.calendar)||new dr),t&&"hour"in t?t.set(e):e}function cx(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class Zy{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let u of a.childNodes)n(u)};for(let a of t)n(a);let r=null,i=0;for(let[a,u]of this.keyMap)r?(r.nextKey=a,u.prevKey=r.key):(this.firstKey=a,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class mi extends Set{constructor(t,n,r){super(t),t instanceof mi?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function SK(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function TK(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=b.useRef(!1),[,u]=b.useState(!1),c=b.useRef(null),d=b.useRef(null),[,f]=b.useState(null),h=b.useMemo(()=>dx(e.selectedKeys),[e.selectedKeys]),m=b.useMemo(()=>dx(e.defaultSelectedKeys,new mi),[e.defaultSelectedKeys]),[g,v]=Fr(h,m,e.onSelectionChange),$=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,x]=b.useState(i);i==="replace"&&C==="toggle"&&typeof g=="object"&&g.size===0&&x("replace");let y=b.useRef(i);return b.useEffect(()=>{i!==y.current&&(x(i),y.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:x,get isFocused(){return a.current},setFocused(D){a.current=D,u(D)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(D,P="first"){c.current=D,d.current=P,f(D)},selectedKeys:g,setSelectedKeys(D){(r||!SK(D,g))&&v(D)},disabledKeys:$,disabledBehavior:o}}function dx(e,t){return e?e==="all"?"all":new mi(e):t}class AK{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&gg(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&gg(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new mi([n],n,n);else{let a=this.state.selectedKeys;var i;let u=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new mi(a,u,n);var o;for(let c of this.getKeyRange(u,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(c);for(let c of this.getKeyRange(n,u))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?gg(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new mi(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new mi([n],n,n):new mi;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new mi;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=aK(ap(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new mi)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function PK(e){let{filter:t,layoutDelegate:n}=e,r=TK(e),i=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=b.useCallback(f=>t?new Zy(t(f)):new Zy(f),[t]),a=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=oK(e,o,a),c=b.useMemo(()=>new AK(u,r,{layoutDelegate:n}),[u,r,n]);const d=b.useRef(null);return b.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const x=d.current.getItem(r.focusedKey),y=[...d.current.getKeys()].map(S=>{const U=d.current.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null),D=[...u.getKeys()].map(S=>{const U=u.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null);var f,h;const P=((f=y==null?void 0:y.length)!==null&&f!==void 0?f:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var m,g,v;let E=Math.min(P>1?Math.max(((m=x==null?void 0:x.index)!==null&&m!==void 0?m:0)-P+1,0):(g=x==null?void 0:x.index)!==null&&g!==void 0?g:0,((v=D==null?void 0:D.length)!==null&&v!==void 0?v:0)-1),T=null,k=!1;for(;E>=0;){if(!c.isDisabled(D[E].key)){T=D[E];break}if(E<D.length-1&&!k)E++;else{k=!0;var $,C;E>(($=x==null?void 0:x.index)!==null&&$!==void 0?$:0)&&(E=(C=x==null?void 0:x.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(T?T.key:null)}d.current=u},[u,c,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:c}}function _K(e){var t;let[n,r]=Fr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=b.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:u}=PK({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let h=(f=d.values().next().value)!==null&&f!==void 0?f:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),c=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:c}}function _b(e){let[t,n]=Fr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=b.useCallback(()=>{n(!0)},[n]),i=b.useCallback(()=>{n(!1)},[n]),o=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function RK(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:a=!0}=e,[u,c]=b.useState(!1),[d,f]=b.useState(!1),[h,m]=b.useState(null),g=Z=>{e.onSelectionChange&&e.onSelectionChange(Z),Z===x&&(fe(),z())};var v;let{collection:$,selectionManager:C,selectedKey:x,setSelectedKey:y,selectedItem:D,disabledKeys:P}=_K({...e,onSelectionChange:g,items:(v=e.items)!==null&&v!==void 0?v:e.defaultItems}),E=e.defaultInputValue;if(E==null){var T,k;x==null?E="":E=(k=(T=$.getItem(x))===null||T===void 0?void 0:T.textValue)!==null&&k!==void 0?k:""}let[S,U]=Fr(e.inputValue,E,e.onInputChange),O=$,F=b.useMemo(()=>e.items!=null||!n?$:OK($,S,n),[$,S,n,e.items]),[G,K]=b.useState(F),W=b.useRef("focus"),L=_b({...e,onOpenChange:Z=>{e.onOpenChange&&e.onOpenChange(Z,Z?W.current:void 0),C.setFocused(Z),Z||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),_=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";(i||F.size>0||pe&&O.size>0||e.items)&&(pe&&!L.isOpen&&e.items===void 0&&c(!0),W.current=te,m(Z),L.open())},M=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";!(i||F.size>0||pe&&O.size>0||e.items)&&!L.isOpen||(pe&&!L.isOpen&&e.items===void 0&&c(!0),L.isOpen||(W.current=te),V(Z))},Y=b.useCallback(()=>{K(u?O:F)},[u,O,F]),V=b.useCallback((Z=null)=>{L.isOpen&&Y(),m(Z),L.toggle()},[L,Y]),z=b.useCallback(()=>{L.isOpen&&(Y(),L.close())},[L,Y]),[re,oe]=b.useState(S),fe=()=>{var Z,te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";oe(pe),U(pe)};var ie,Ee;let $e=b.useRef((Ee=(ie=e.selectedKey)!==null&&ie!==void 0?ie:e.defaultSelectedKey)!==null&&Ee!==void 0?Ee:null);var ne;let ye=b.useRef(x!=null&&(ne=(t=$.getItem(x))===null||t===void 0?void 0:t.textValue)!==null&&ne!==void 0?ne:"");b.useEffect(()=>{var Z;d&&(F.size>0||i)&&!L.isOpen&&S!==re&&r!=="manual"&&_(null,"input"),!u&&!i&&L.isOpen&&F.size===0&&z(),x!=null&&x!==$e.current&&z(),S!==re&&(C.setFocusedKey(null),c(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&y(null)),x!==$e.current&&(e.inputValue===void 0||e.selectedKey===void 0)?fe():re!==S&&oe(S);var te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";!d&&x!=null&&e.inputValue===void 0&&x===$e.current&&ye.current!==pe&&(oe(pe),U(pe)),$e.current=x,ye.current=pe});let xe=Uc({...e,value:b.useMemo(()=>({inputValue:S,selectedKey:x}),[S,x])}),he=()=>{o&&x==null?le():Fe()},le=()=>{$e.current=null,y(null),z()},Fe=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Z,te;(Z=e.onSelectionChange)===null||Z===void 0||Z.call(e,x);var pe;let Ce=x!=null&&(pe=(te=$.getItem(x))===null||te===void 0?void 0:te.textValue)!==null&&pe!==void 0?pe:"";oe(Ce),z()}else fe(),z()};const et=()=>{if(o){var Z,te;const pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";S===pe?Fe():le()}else Fe()};let dt=()=>{L.isOpen&&C.focusedKey!=null?x===C.focusedKey?Fe():y(C.focusedKey):et()},Dn=b.useRef(S),yt=Z=>{Z?(Dn.current=S,r==="focus"&&!e.isReadOnly&&_(null,"focus")):(a&&et(),S!==Dn.current&&xe.commitValidation()),f(Z)},q=b.useMemo(()=>L.isOpen?u?O:F:G,[L.isOpen,O,F,u,G]);return{...xe,...L,focusStrategy:h,toggle:M,open:_,close:et,selectionManager:C,selectedKey:x,setSelectedKey:y,disabledKeys:P,isFocused:d,setFocused:yt,selectedItem:D,collection:q,inputValue:S,setInputValue:U,commit:dt,revert:he}}function OK(e,t,n){return new Zy(pA(e,e,t,n))}function pA(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let a=pA(e,ap(o,e),n,r);[...a].some(u=>u.type==="item")&&i.push({...o,childNodes:a})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var mA={};mA={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var gA={};gA={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var yA={};yA={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var vA={};vA={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var bA={};bA={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var $A={};$A={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var xA={};xA={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var wA={};wA={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var DA={};DA={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var EA={};EA={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var CA={};CA={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var SA={};SA={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var TA={};TA={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var AA={};AA={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var PA={};PA={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var _A={};_A={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var RA={};RA={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var OA={};OA={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var MA={};MA={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var FA={};FA={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var kA={};kA={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var BA={};BA={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var IA={};IA={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var LA={};LA={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var VA={};VA={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var NA={};NA={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var jA={};jA={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var KA={};KA={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var UA={};UA={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var zA={};zA={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var WA={};WA={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var HA={};HA={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var GA={};GA={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var qA={};qA={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var YA={};YA={"ar-AE":mA,"bg-BG":gA,"cs-CZ":yA,"da-DK":vA,"de-DE":bA,"el-GR":$A,"en-US":xA,"es-ES":wA,"et-EE":DA,"fi-FI":EA,"fr-FR":CA,"he-IL":SA,"hr-HR":TA,"hu-HU":AA,"it-IT":PA,"ja-JP":_A,"ko-KR":RA,"lt-LT":OA,"lv-LV":MA,"nb-NO":FA,"nl-NL":kA,"pl-PL":BA,"pt-BR":IA,"pt-PT":LA,"ro-RO":VA,"ru-RU":NA,"sk-SK":jA,"sl-SI":KA,"sr-SP":UA,"sv-SE":zA,"tr-TR":WA,"uk-UA":HA,"zh-CN":GA,"zh-TW":qA};function MK(e){return e&&e.__esModule?e.default:e}const ZA=new ya(MK(YA));function JA(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function hh(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,c=o||a||u,d=[];if(c){let f=JA(),h=ya.getGlobalDictionaryForPackage("@react-stately/datepicker")||ZA,m=new iS(f,h),g=new ii(f,xo({},i)),v=g.resolvedOptions().timeZone;a&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:g.format(t.toDate(v))})),o&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:g.format(n.toDate(v))})),u&&d.push(m.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function FK(e,t,n,r,i){var o;let a=hh((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let c=hh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=dh(a,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let f=ya.getGlobalDictionaryForPackage("@react-stately/datepicker")||ZA;d=dh(d,{isInvalid:!0,validationErrors:[f.getStringForLocale("rangeReversed",JA())],validationDetails:{...np,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const kK={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},BK={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function xo(e,t){e={...t.shouldForceLeadingZeros?BK:kK,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let u=i.indexOf(r);if(u<0&&(u=2),a>u)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(a,u+1).reduce((f,h)=>(f[h]=e[h],f),{});return t.hourCycle!=null&&(c.hour12=t.hourCycle===12),c.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(c.timeZoneName="short"),t.showEra&&a===0&&(c.era="short"),c}function tu(e){return e&&"hour"in e?e:new jc}function XA(e,t){if(e===null)return null;if(e)return Qt(e,t)}function Ol(e,t,n,r){if(e)return XA(e,n);let i=Qt(uS(r??Vc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?cr(i):r?i:Di(i)}function Rb(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=b.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function IK(e){let t=_b(e),[n,r]=Fr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,a]=Rb(i,e.granularity),u=n!=null?n.toDate(a??"UTC"):null,c=o==="hour"||o==="minute"||o==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,m]=b.useState(null),[g,v]=b.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let $=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=b.useMemo(()=>({granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:$}),[o,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,$]),{minValue:x,maxValue:y,isDateUnavailable:D}=e,P=b.useMemo(()=>hh(n,x,y,D,C),[n,x,y,D,C]),E=Uc({...e,value:n,builtinValidation:P}),T=E.displayValidation.isInvalid,k=e.validationState||(T?"invalid":null),S=(F,G)=>{r("timeZone"in G?G.set(cr(F)):Di(F,G)),m(null),v(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:F=>{let G=typeof f=="function"?f():f;c?g||G?S(F,g||tu(e.defaultValue||e.placeholderValue)):m(F):(r(F),E.commitValidation()),G&&t.setOpen(!1)},setTimeValue:F=>{h&&F?S(h,F):v(F)},granularity:o,hasTime:c,...t,setOpen(F){!F&&!n&&h&&c&&S(h,g||tu(e.defaultValue||e.placeholderValue)),t.setOpen(F)},validationState:k,isInvalid:T,formatValue(F,G){if(!u)return"";let K=xo(G,C);return new ii(F,K).format(u)},getDateFormatter(F,G){let K={...C,...G},W=xo({},K);return new ii(F,W)}}}const LK=new ya({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function VK(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?LK.getStringForLocale(e,n):"––"}const hf={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},fx={year:5,month:2,day:7,hour:2,minute:15,second:15},NK={dayperiod:"dayPeriod"};function QA(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:a=!1,minValue:u,maxValue:c,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[h,m]=Rb(f,e.granularity),g=m||"UTC";if(f&&!(h in f))throw new Error("Invalid granularity "+h+" for value "+f.toString());let v=b.useMemo(()=>new ii(t),[t]),$=b.useMemo(()=>n(v.resolvedOptions().calendar),[n,v]);var C;let[x,y]=Fr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=b.useMemo(()=>{var ne;return(ne=XA(x,$))!==null&&ne!==void 0?ne:null},[x,$]),[P,E]=b.useState(()=>Ol(e.placeholderValue,h,$,m)),T=D||P,k=$.identifier==="gregory"&&T.era==="BC",S=b.useMemo(()=>{var ne;return{granularity:h,maxGranularity:(ne=e.maxGranularity)!==null&&ne!==void 0?ne:"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,m,r,k]),U=b.useMemo(()=>xo({},S),[S]),O=b.useMemo(()=>new ii(t,U),[t,U]),F=b.useMemo(()=>O.resolvedOptions(),[O]),G=b.useMemo(()=>O.formatToParts(new Date).filter(ne=>hf[ne.type]).reduce((ne,ye)=>(ne[ye.type]=!0,ne),{}),[O]),[K,W]=b.useState(()=>e.value||e.defaultValue?{...G}:{}),j=b.useRef(null),L=b.useRef($.identifier);b.useEffect(()=>{$.identifier!==L.current&&(L.current=$.identifier,E(ne=>Object.keys(K).length>0?Qt(ne,$):Ol(e.placeholderValue,h,$,m)))},[$,h,K,m,e.placeholderValue]),x&&Object.keys(K).length<Object.keys(G).length&&(K={...G},W(K)),x==null&&Object.keys(K).length===Object.keys(G).length&&(K={},W(K),E(Ol(e.placeholderValue,h,$,m)));let _=D&&Object.keys(K).length>=Object.keys(G).length?D:P,M=ne=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(K),xe=Object.keys(G);ne==null?(y(null),E(Ol(e.placeholderValue,h,$,m)),W({})):ye.length>=xe.length||ye.length===xe.length-1&&G.dayPeriod&&!K.dayPeriod&&j.current!=="dayPeriod"?(ne=Qt(ne,(f==null?void 0:f.calendar)||new dr),y(ne)):E(ne),j.current=null},Y=b.useMemo(()=>_.toDate(g),[_,g]),V=b.useMemo(()=>O.formatToParts(Y).map(ne=>{let ye=hf[ne.type];ne.type==="era"&&$.getEras().length===1&&(ye=!1);let xe=hf[ne.type]&&!K[ne.type],he=hf[ne.type]?VK(ne.type,ne.value,t):null;return{type:NK[ne.type]||ne.type,text:xe?he:ne.value,...jK(_,ne.type,F),isPlaceholder:xe,placeholder:he,isEditable:ye}}),[Y,K,O,F,_,$,t]);G.era&&K.year&&!K.era?(K.era=!0,W({...K})):!G.era&&K.era&&(delete K.era,W({...K}));let z=ne=>{K[ne]=!0,ne==="year"&&G.era&&(K.era=!0),W({...K})},re=(ne,ye)=>{if(K[ne])M(KK(_,ne,ye,F));else{z(ne);let xe=Object.keys(K),he=Object.keys(G);(xe.length>=he.length||xe.length===he.length-1&&G.dayPeriod&&!K.dayPeriod)&&M(_)}},oe=b.useMemo(()=>hh(x,u,c,d,S),[x,u,c,d,S]),fe=Uc({...e,value:x,builtinValidation:oe}),ie=fe.displayValidation.isInvalid,Ee=e.validationState||(ie?"invalid":null);var $e;return{...fe,value:D,dateValue:Y,calendar:$,setValue:M,segments:V,dateFormatter:O,validationState:Ee,isInvalid:ie,granularity:h,maxGranularity:($e=e.maxGranularity)!==null&&$e!==void 0?$e:"year",isDisabled:i,isReadOnly:o,isRequired:a,increment(ne){re(ne,1)},decrement(ne){re(ne,-1)},incrementPage(ne){re(ne,fx[ne]||1)},decrementPage(ne){re(ne,-(fx[ne]||1))},setSegment(ne,ye){z(ne),M(UK(_,ne,ye,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ne=Object.keys(K),ye=Object.keys(G);ne.length===ye.length-1&&G.dayPeriod&&!K.dayPeriod&&(K={...G},W(K),M(_.copy()))},clearSegment(ne){delete K[ne],j.current=ne,W({...K});let ye=Ol(e.placeholderValue,h,$,m),xe=_;if(ne==="dayPeriod"&&"hour"in _&&"hour"in ye){let he=_.hour>=12,le=ye.hour>=12;he&&!le?xe=_.set({hour:_.hour-12}):!he&&le&&(xe=_.set({hour:_.hour+12}))}else ne in _&&(xe=_.set({[ne]:ye[ne]}));y(null),M(xe)},formatValue(ne){if(!D)return"";let ye=xo(ne,S);return new ii(t,ye).format(Y)},getDateFormatter(ne,ye){let xe={...S,...ye},he=xo({},xe);return new ii(ne,he)}}}function jK(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:YV(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:ZV(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function KK(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return e.set({hour:o?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function UK(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return n>=12===o?e:e.set({hour:o?i-12:i+12})}case"hour":if(r.hour12){let o=e.hour>=12;!o&&n===12&&(n=0),o&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function zK(e){var t,n;let r=_b(e),[i,o]=Fr(e.value,e.defaultValue||null,e.onChange),[a,u]=b.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},u(a));let c=i||a,d=L=>{u(L||{start:null,end:null}),Fa(L)?o(L):o(null)},f=(c==null?void 0:c.start)||(c==null?void 0:c.end)||e.placeholderValue||null,[h,m]=Rb(f,e.granularity),g=h==="hour"||h==="minute"||h==="second";var v;let $=(v=e.shouldCloseOnSelect)!==null&&v!==void 0?v:!0,[C,x]=b.useState(null),[y,D]=b.useState(null);c&&Fa(c)&&(C=c,"hour"in c.start&&(y=c));let P=(L,_)=>{d({start:"timeZone"in _.start?_.start.set(cr(L.start)):Di(L.start,_.start),end:"timeZone"in _.end?_.end.set(cr(L.end)):Di(L.end,_.end)}),x(null),D(null),K.commitValidation()},E=L=>{let _=typeof $=="function"?$():$;g?Fa(L)&&(y!=null&&y.start)&&(y!=null&&y.end)?P(L,{start:(y==null?void 0:y.start)||tu(e.placeholderValue),end:(y==null?void 0:y.end)||tu(e.placeholderValue)}):x(L):Fa(L)?(d(L),K.commitValidation()):x(L),_&&r.setOpen(!1)},T=L=>{Fa(C)&&Fa(L)?P(C,L):D(L)},k=(c==null||(t=c.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&c.start.era==="BC"||(c==null||(n=c.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&c.end.era==="BC",S=b.useMemo(()=>({granularity:h,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[h,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,k]),{minValue:U,maxValue:O,isDateUnavailable:F}=e,G=b.useMemo(()=>FK(c,U,O,F,S),[c,U,O,F,S]),K=Uc({...e,value:i,name:b.useMemo(()=>[e.startName,e.endName].filter(L=>L!=null),[e.startName,e.endName]),builtinValidation:G}),W=K.displayValidation.isInvalid,j=e.validationState||(W?"invalid":null);return{...K,value:c,setValue:d,dateRange:C,timeRange:y,granularity:h,hasTime:g,setDate(L,_){var M,Y;E(L==="start"?{start:_,end:(M=C==null?void 0:C.end)!==null&&M!==void 0?M:null}:{start:(Y=C==null?void 0:C.start)!==null&&Y!==void 0?Y:null,end:_})},setTime(L,_){var M,Y;T(L==="start"?{start:_,end:(M=y==null?void 0:y.end)!==null&&M!==void 0?M:null}:{start:(Y=y==null?void 0:y.start)!==null&&Y!==void 0?Y:null,end:_})},setDateTime(L,_){var M,Y;d(L==="start"?{start:_,end:(M=c==null?void 0:c.end)!==null&&M!==void 0?M:null}:{start:(Y=c==null?void 0:c.start)!==null&&Y!==void 0?Y:null,end:_})},setDateRange:E,setTimeRange:T,...r,setOpen(L){!L&&!(c!=null&&c.start&&(c!=null&&c.end))&&Fa(C)&&g&&P(C,{start:(y==null?void 0:y.start)||tu(e.placeholderValue),end:(y==null?void 0:y.end)||tu(e.placeholderValue)}),r.setOpen(L)},validationState:j,isInvalid:W,formatValue(L,_){if(!c||!c.start||!c.end)return null;let M="timeZone"in c.start?c.start.timeZone:void 0,Y=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),V="timeZone"in c.end?c.end.timeZone:void 0,z=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),re=xo(_,{granularity:Y,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:c.start.calendar.identifier==="gregory"&&c.start.era==="BC"||c.end.calendar.identifier==="gregory"&&c.end.era==="BC"}),oe=c.start.toDate(M||"UTC"),fe=c.end.toDate(V||"UTC"),ie=new ii(L,re),Ee;if(M===V&&Y===z&&c.start.compare(c.end)!==0){try{let $e=ie.formatRangeToParts(oe,fe),ne=-1;for(let he=0;he<$e.length;he++){let le=$e[he];if(le.source==="shared"&&le.type==="literal")ne=he;else if(le.source==="endRange")break}let ye="",xe="";for(let he=0;he<$e.length;he++)he<ne?ye+=$e[he].value:he>ne&&(xe+=$e[he].value);return{start:ye,end:xe}}catch{}Ee=ie}else{let $e=xo(_,{granularity:z,timeZone:V,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ee=new ii(L,$e)}return{start:ie.format(oe),end:Ee.format(fe)}},getDateFormatter(L,_){let M={...S,..._},Y=xo({},M);return new ii(L,Y)}}}function Fa(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function WK(e){let{placeholderValue:t=new jc,minValue:n,maxValue:r,granularity:i,validate:o}=e;var a;let[u,c]=Fr(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=u||t,f=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,m=b.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?pS(Ml(t),D||h):Ml(t)},[t,d,h]),g=b.useMemo(()=>Ml(n,f),[n,f]),v=b.useMemo(()=>Ml(r,f),[r,f]),$=b.useMemo(()=>u&&"day"in u?C$(u):u,[u]),C=b.useMemo(()=>u==null?null:Ml(u),[u]);return{...QA({...e,value:C,defaultValue:void 0,minValue:g,maxValue:v,onChange:D=>{c(f||h?D:D&&C$(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:m??void 0,createCalendar:()=>new dr,validate:b.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:$}}function Ml(e,t=ep(Vc())){return e?"day"in e?e:Di(t,e):null}var kf={exports:{}},HK=kf.exports,hx;function GK(){return hx||(hx=1,function(e,t){(function(n,r){e.exports=r()})(HK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",c="hour",d="day",f="week",h="month",m="quarter",g="year",v="date",$="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var j=["th","st","nd","rd"],L=W%100;return"["+W+(j[(L-20)%10]||j[L]||j[0])+"]"}},D=function(W,j,L){var _=String(W);return!_||_.length>=j?W:""+Array(j+1-_.length).join(L)+W},P={s:D,z:function(W){var j=-W.utcOffset(),L=Math.abs(j),_=Math.floor(L/60),M=L%60;return(j<=0?"+":"-")+D(_,2,"0")+":"+D(M,2,"0")},m:function W(j,L){if(j.date()<L.date())return-W(L,j);var _=12*(L.year()-j.year())+(L.month()-j.month()),M=j.clone().add(_,h),Y=L-M<0,V=j.clone().add(_+(Y?-1:1),h);return+(-(_+(L-M)/(Y?M-V:V-M))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:h,y:g,w:f,d,D:v,h:c,m:u,s:a,ms:o,Q:m}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},E="en",T={};T[E]=y;var k="$isDayjsObject",S=function(W){return W instanceof G||!(!W||!W[k])},U=function W(j,L,_){var M;if(!j)return E;if(typeof j=="string"){var Y=j.toLowerCase();T[Y]&&(M=Y),L&&(T[Y]=L,M=Y);var V=j.split("-");if(!M&&V.length>1)return W(V[0])}else{var z=j.name;T[z]=j,M=z}return!_&&M&&(E=M),M||!_&&E},O=function(W,j){if(S(W))return W.clone();var L=typeof j=="object"?j:{};return L.date=W,L.args=arguments,new G(L)},F=P;F.l=U,F.i=S,F.w=function(W,j){return O(W,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var G=function(){function W(L){this.$L=U(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[k]=!0}var j=W.prototype;return j.parse=function(L){this.$d=function(_){var M=_.date,Y=_.utc;if(M===null)return new Date(NaN);if(F.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var V=M.match(C);if(V){var z=V[2]-1||0,re=(V[7]||"0").substring(0,3);return Y?new Date(Date.UTC(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)):new Date(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)}}return new Date(M)}(L),this.init()},j.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==$},j.isSame=function(L,_){var M=O(L);return this.startOf(_)<=M&&M<=this.endOf(_)},j.isAfter=function(L,_){return O(L)<this.startOf(_)},j.isBefore=function(L,_){return this.endOf(_)<O(L)},j.$g=function(L,_,M){return F.u(L)?this[_]:this.set(M,L)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(L,_){var M=this,Y=!!F.u(_)||_,V=F.p(L),z=function(ye,xe){var he=F.w(M.$u?Date.UTC(M.$y,xe,ye):new Date(M.$y,xe,ye),M);return Y?he:he.endOf(d)},re=function(ye,xe){return F.w(M.toDate()[ye].apply(M.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(xe)),M)},oe=this.$W,fe=this.$M,ie=this.$D,Ee="set"+(this.$u?"UTC":"");switch(V){case g:return Y?z(1,0):z(31,11);case h:return Y?z(1,fe):z(0,fe+1);case f:var $e=this.$locale().weekStart||0,ne=(oe<$e?oe+7:oe)-$e;return z(Y?ie-ne:ie+(6-ne),fe);case d:case v:return re(Ee+"Hours",0);case c:return re(Ee+"Minutes",1);case u:return re(Ee+"Seconds",2);case a:return re(Ee+"Milliseconds",3);default:return this.clone()}},j.endOf=function(L){return this.startOf(L,!1)},j.$set=function(L,_){var M,Y=F.p(L),V="set"+(this.$u?"UTC":""),z=(M={},M[d]=V+"Date",M[v]=V+"Date",M[h]=V+"Month",M[g]=V+"FullYear",M[c]=V+"Hours",M[u]=V+"Minutes",M[a]=V+"Seconds",M[o]=V+"Milliseconds",M)[Y],re=Y===d?this.$D+(_-this.$W):_;if(Y===h||Y===g){var oe=this.clone().set(v,1);oe.$d[z](re),oe.init(),this.$d=oe.set(v,Math.min(this.$D,oe.daysInMonth())).$d}else z&&this.$d[z](re);return this.init(),this},j.set=function(L,_){return this.clone().$set(L,_)},j.get=function(L){return this[F.p(L)]()},j.add=function(L,_){var M,Y=this;L=Number(L);var V=F.p(_),z=function(fe){var ie=O(Y);return F.w(ie.date(ie.date()+Math.round(fe*L)),Y)};if(V===h)return this.set(h,this.$M+L);if(V===g)return this.set(g,this.$y+L);if(V===d)return z(1);if(V===f)return z(7);var re=(M={},M[u]=r,M[c]=i,M[a]=n,M)[V]||1,oe=this.$d.getTime()+L*re;return F.w(oe,this)},j.subtract=function(L,_){return this.add(-1*L,_)},j.format=function(L){var _=this,M=this.$locale();if(!this.isValid())return M.invalidDate||$;var Y=L||"YYYY-MM-DDTHH:mm:ssZ",V=F.z(this),z=this.$H,re=this.$m,oe=this.$M,fe=M.weekdays,ie=M.months,Ee=M.meridiem,$e=function(xe,he,le,Fe){return xe&&(xe[he]||xe(_,Y))||le[he].slice(0,Fe)},ne=function(xe){return F.s(z%12||12,xe,"0")},ye=Ee||function(xe,he,le){var Fe=xe<12?"AM":"PM";return le?Fe.toLowerCase():Fe};return Y.replace(x,function(xe,he){return he||function(le){switch(le){case"YY":return String(_.$y).slice(-2);case"YYYY":return F.s(_.$y,4,"0");case"M":return oe+1;case"MM":return F.s(oe+1,2,"0");case"MMM":return $e(M.monthsShort,oe,ie,3);case"MMMM":return $e(ie,oe);case"D":return _.$D;case"DD":return F.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return $e(M.weekdaysMin,_.$W,fe,2);case"ddd":return $e(M.weekdaysShort,_.$W,fe,3);case"dddd":return fe[_.$W];case"H":return String(z);case"HH":return F.s(z,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ye(z,re,!0);case"A":return ye(z,re,!1);case"m":return String(re);case"mm":return F.s(re,2,"0");case"s":return String(_.$s);case"ss":return F.s(_.$s,2,"0");case"SSS":return F.s(_.$ms,3,"0");case"Z":return V}return null}(xe)||V.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(L,_,M){var Y,V=this,z=F.p(_),re=O(L),oe=(re.utcOffset()-this.utcOffset())*r,fe=this-re,ie=function(){return F.m(V,re)};switch(z){case g:Y=ie()/12;break;case h:Y=ie();break;case m:Y=ie()/3;break;case f:Y=(fe-oe)/6048e5;break;case d:Y=(fe-oe)/864e5;break;case c:Y=fe/i;break;case u:Y=fe/r;break;case a:Y=fe/n;break;default:Y=fe}return M?Y:F.a(Y)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return T[this.$L]},j.locale=function(L,_){if(!L)return this.$L;var M=this.clone(),Y=U(L,_,!0);return Y&&(M.$L=Y),M},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},W}(),K=G.prototype;return O.prototype=K,[["$ms",o],["$s",a],["$m",u],["$H",c],["$W",d],["$M",h],["$y",g],["$D",v]].forEach(function(W){K[W[1]]=function(j){return this.$g(j,W[0],W[1])}}),O.extend=function(W,j){return W.$i||(W(j,G,O),W.$i=!0),O},O.locale=U,O.isDayjs=S,O.unix=function(W){return O(1e3*W)},O.en=T[E],O.Ls=T,O.p={},O})}(kf)),kf.exports}var qK=GK();const YK=Ao(qK);var ps=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],ZK="react-international-phone-",eP=(...e)=>e.filter(t=>!!t).join(" ").trim(),JK=(...e)=>eP(...e).split(" ").map(t=>`${ZK}${t}`).join(" "),Jn=({addPrefix:e,rawClassNames:t})=>eP(JK(...e),...t),XK=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),a=e.slice(r),u=o,c=0;for(let d of t.split("")){if(c>=a.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=a[c],c+=1):u+=d}return u},Xs=e=>e?/^\d+$/.test(e):!1,sp=e=>e.replace(/\D/g,""),QK=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,a=r.bottom-i.bottom;o>=0&&a>=0||(Math.abs(o)<Math.abs(a)?e.scrollTop+=o:e.scrollTop-=a),e.style.display=n},eU=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),tU=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=sp(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,f=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:f,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:c}=a();return u=`${t.prefix}${u}${t.charAfterDialCode}`,c=XK({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${c}`)},nU=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let f=r-1;f>=0;f-=1)if(Xs(t[f])){a=f;break}if(a===null){for(let f=0;f<t.length;f+=1)if(Xs(n[f]))return f;return t.length}let u=0;for(let f=0;f<a;f+=1)Xs(t[f])&&(u+=1);let c=0,d=0;for(let f=0;f<n.length&&(c+=1,Xs(n[f])&&(d+=1),!(d>=u+1));f+=1);if(o!=="backward")for(;!Xs(n[c])&&c<n.length;)c+=1;return c},Bf=({phone:e,prefix:t})=>e?`${t}${sp(e)}`:"";function Jy({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:a,forceDialCode:u,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:f,disableFormatting:h}){let m=e;c&&(m=m.startsWith(`${o}`)?m:`${o}${t.dialCode}${m}`);let g=f?dU({phone:m,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,v=(g==null?void 0:g.country)??t,$=tU(m,{prefix:o,mask:lU({phone:m,country:v,defaultMask:d,disableFormatting:h}),maskChar:tP,dialCode:v.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),C=f&&!(g!=null&&g.fullDialCodeMatch)?t:v;return{phone:Bf({phone:c?`${C.dialCode}${$}`:$,prefix:o}),inputValue:$,country:C}}var rU=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},iU=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,countryGuessingEnabled:c,defaultMask:d,disableFormatting:f,countries:h})=>{let m=e.nativeEvent,g=m.inputType,v=rU(g),$=!!(g!=null&&g.startsWith("insertFrom")),C=g==="insertText",x=(m==null?void 0:m.data)||void 0,y=e.target.value,D=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Bf({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!Xs(x)&&y!==i)return{inputValue:r,phone:Bf({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((x==null?void 0:x.length)??0),country:t};if(a&&!y.startsWith(`${i}${t.dialCode}`)&&!$){let S=y?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Bf({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:P,inputValue:E,country:T}=Jy({value:y,country:t,trimNonDigitsEnd:v==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,disableFormatting:f,defaultMask:d}),k=nU({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:y,phoneAfterFormatted:E,leftOffset:a?i.length+t.dialCode.length+o.length:0,deletion:v});return{phone:P,inputValue:E,cursorPosition:k,country:T}},oU=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},aU=()=>{let e=b.useRef(),t=b.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},sU={size:20,overrideLastItemDebounceMS:-1};function uU(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...sU,...t},[o,a]=b.useState(e),[u,c]=b.useState([o]),[d,f]=b.useState(0),h=aU();return[o,(m,g)=>{if(typeof m=="object"&&typeof o=="object"&&oU(m,o)||m===o)return;let v=r>0,$=h.check(),C=v&&$!==void 0?$>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!C)c(x=>[...x.slice(0,d),m]);else{let x=u.length>=n;c(y=>[...y.slice(x?1:0,d+1),m]),x||f(y=>y+1)}a(m),i==null||i(m)},()=>{if(d<=0)return{success:!1};let m=u[d-1];return a(m),f(g=>g-1),i==null||i(m),{success:!0,value:m}},()=>{if(d+1>=u.length)return{success:!1};let m=u[d+1];return a(m),f(g=>g+1),i==null||i(m),{success:!0,value:m}}]}var tP=".",Zr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:ps,preferredCountries:[]},nP=({defaultCountry:e=Zr.defaultCountry,value:t=Zr.value,countries:n=Zr.countries,prefix:r=Zr.prefix,defaultMask:i=Zr.defaultMask,charAfterDialCode:o=Zr.charAfterDialCode,historySaveDebounceMS:a=Zr.historySaveDebounceMS,disableCountryGuess:u=Zr.disableCountryGuess,disableDialCodePrefill:c=Zr.disableDialCodePrefill,forceDialCode:d=Zr.forceDialCode,disableDialCodeAndPrefix:f=Zr.disableDialCodeAndPrefix,disableFormatting:h=Zr.disableFormatting,onChange:m,inputRef:g})=>{let v={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:f?!1:d,disableDialCodeAndPrefix:f,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},$=b.useRef(null),C=g||$,x=W=>{Promise.resolve().then(()=>{var j;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((j=C.current)==null||j.setSelectionRange(W,W))})},[{phone:y,inputValue:D,country:P},E,T,k]=uU(()=>{let W=nu({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let j=W||nu({value:"us",field:"iso2",countries:n}),{phone:L,inputValue:_,country:M}=Jy({value:t,country:j,insertDialCodeOnEmpty:!c,...v});return x(_.length),{phone:L,inputValue:_,country:M.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:W,phone:j,country:L})=>{if(!m)return;let _=S(L);m({phone:j,inputValue:W,country:_})}}),S=b.useCallback(W=>nu({value:W,field:"iso2",countries:n}),[n]),U=b.useMemo(()=>S(P),[P,S]);b.useEffect(()=>{let W=C.current;if(!W)return;let j=L=>{if(!L.key)return;let _=L.ctrlKey,M=L.metaKey,Y=L.shiftKey;if(L.key.toLowerCase()==="z"){if(eU()){if(!M)return}else if(!_)return;Y?k():T()}};return W.addEventListener("keydown",j),()=>{W.removeEventListener("keydown",j)}},[C,T,k]);let O=W=>{W.preventDefault();let{phone:j,inputValue:L,country:_,cursorPosition:M}=iU(W,{country:U,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...v});return E({inputValue:L,phone:j,country:_.iso2}),x(M),t},F=(W,j={focusOnInput:!1})=>{let L=nu({value:W,field:"iso2",countries:n});if(!L){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let _=f?"":`${r}${L.dialCode}${o}`;E({inputValue:_,phone:`${r}${L.dialCode}`,country:L.iso2}),j.focusOnInput&&Promise.resolve().then(()=>{var M;(M=C.current)==null||M.focus()})},[G,K]=b.useState(!1);return b.useEffect(()=>{if(!G){K(!0),t!==y&&(m==null||m({inputValue:D,phone:y,country:U}));return}if(t===y)return;let{phone:W,inputValue:j,country:L}=Jy({value:t,country:U,insertDialCodeOnEmpty:!c,...v});E({phone:W,inputValue:j,country:L.iso2})},[t]),{phone:y,inputValue:D,country:U,setCountry:F,handlePhoneValueChange:O,inputRef:C}},lU=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${tP}]`,"g"),""):u;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let a=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let c=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return c.test(sp(d))});return o(a?i[a]:i.default)},gi=e=>{let[t,n,r,i,o,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:a}},cU=e=>`Field "${e}" is not supported`,nu=({field:e,value:t,countries:n=ps})=>{if(["priority"].includes(e))throw new Error(cU(e));let r=n.find(i=>{let o=gi(i);return t===o[e]});if(r)return gi(r)},dU=({phone:e,countries:t=ps,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=sp(e);if(!i)return r;let o=r,a=({country:c,fullDialCodeMatch:d})=>{var m,g;let f=c.dialCode===((m=o.country)==null?void 0:m.dialCode),h=(c.priority??0)<(((g=o.country)==null?void 0:g.priority)??0);(!f||h)&&(o={country:c,fullDialCodeMatch:d})};for(let c of t){let d=gi(c),{dialCode:f,areaCodes:h}=d;if(i.startsWith(f)){let m=o.country?Number(f)>=Number(o.country.dialCode):!0;if(h){let g=i.substring(f.length);for(let v of h)if(g.startsWith(v))return{country:d,fullDialCodeMatch:!0}}(m||f===i||!o.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<f.length&&f.startsWith(i)&&(!o.country||Number(f)<=Number(o.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let c=nu({value:n,field:"iso2",countries:t});if(!c)return o;let d=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let h=i.substring(f.dialCode.length);return f.areaCodes.some(m=>m.startsWith(h))})(c):!1;o&&((u=o.country)==null?void 0:u.dialCode)===c.dialCode&&o.country!==c&&o.fullDialCodeMatch&&(!c.areaCodes||d)&&(o={country:c,fullDialCodeMatch:!0})}return o},fU=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},hU="abcdefghijklmnopqrstuvwxyz",pU="1f1e6",px=hU.split("").reduce((e,t,n)=>({...e,[t]:fU(pU,n)}),{}),mU=e=>[px[e[0]],px[e[1]]].join("-"),Ob=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:a,...u})=>{if(!e)return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let c=()=>{if(n)return n;let d=mU(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...u})},gU=1e3,yU=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=ps,preferredCountries:i=[],flags:o,onSelect:a,onClose:u,...c})=>{let d=b.useRef(null),f=b.useRef(),h=b.useMemo(()=>{if(!i||!i.length)return r;let T=[],k=[...r];for(let S of i){let U=k.findIndex(O=>gi(O).iso2===S);if(U!==-1){let O=k.splice(U,1)[0];T.push(O)}}return T.concat(k)},[r,i]),m=b.useRef({updatedAt:void 0,value:""}),g=T=>{let k=m.current.updatedAt&&new Date().getTime()-m.current.updatedAt.getTime()>gU;m.current={value:k?T:`${m.current.value}${T}`,updatedAt:new Date};let S=h.findIndex(U=>gi(U).name.toLowerCase().startsWith(m.current.value));S!==-1&&C(S)},v=b.useCallback(T=>h.findIndex(k=>gi(k).iso2===T),[h]),[$,C]=b.useState(v(n)),x=()=>{f.current!==n&&C(v(n))},y=b.useCallback(T=>{C(v(T.iso2)),a==null||a(T)},[a,v]),D=T=>{let k=h.length-1,S=U=>T==="prev"?U-1:T==="next"?U+1:T==="last"?k:0;C(U=>{let O=S(U);return O<0?0:O>k?k:O})},P=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let k=gi(h[$]);y(k);return}if(T.key==="Escape"){u==null||u();return}if(T.key==="ArrowUp"){T.preventDefault(),D("prev");return}if(T.key==="ArrowDown"){T.preventDefault(),D("next");return}if(T.key==="PageUp"){T.preventDefault(),D("first");return}if(T.key==="PageDown"){T.preventDefault(),D("last");return}T.key===" "&&T.preventDefault(),T.key.length===1&&!T.altKey&&!T.ctrlKey&&!T.metaKey&&g(T.key.toLocaleLowerCase())},E=b.useCallback(()=>{if(!d.current||$===void 0)return;let T=gi(h[$]).iso2;if(T===f.current)return;let k=d.current.querySelector(`[data-country="${T}"]`);k&&(QK(d.current,k),f.current=T)},[$,h]);return b.useEffect(()=>{E()},[$,E]),b.useEffect(()=>{d.current&&(e?d.current.focus():x())},[e]),b.useEffect(()=>{x()},[n]),b.createElement("ul",{ref:d,role:"listbox",className:Jn({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:P,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${gi(h[$]).iso2}-option`},h.map((T,k)=>{let S=gi(T),U=S.iso2===n,O=k===$,F=i.includes(S.iso2),G=k===i.length-1,K=o==null?void 0:o.find(W=>W.iso2===S.iso2);return b.createElement(b.Fragment,{key:S.iso2},b.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":U,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Jn({addPrefix:["country-selector-dropdown__list-item",F&&"country-selector-dropdown__list-item--preferred",U&&"country-selector-dropdown__list-item--selected",O&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>y(S),style:c.listItemStyle,title:S.name},b.createElement(Ob,{iso2:S.iso2,src:K==null?void 0:K.src,className:Jn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},S.name),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,S.dialCode)),G?b.createElement("hr",{className:Jn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},vU=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=ps,preferredCountries:o=[],flags:a,renderButtonWrapper:u,...c})=>{let[d,f]=b.useState(!1),h=b.useMemo(()=>{if(e)return nu({value:e,field:"iso2",countries:i})},[i,e]),m=b.useRef(null),g=$=>{$.key&&["ArrowUp","ArrowDown"].includes($.key)&&($.preventDefault(),f(!0))},v=()=>{var x;let $={title:h==null?void 0:h.name,onClick:()=>f(y=>!y),onMouseDown:y=>y.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=b.createElement("div",{className:Jn({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},b.createElement(Ob,{iso2:e,src:(x=a==null?void 0:a.find(y=>y.iso2===e))==null?void 0:x.src,className:Jn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!r&&b.createElement("div",{className:Jn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return u?u({children:C,rootProps:$}):b.createElement("button",{...$,type:"button",className:Jn({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},C)};return b.createElement("div",{className:Jn({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:m},v(),b.createElement(yU,{show:d,countries:i,preferredCountries:o,flags:a,onSelect:$=>{f(!1),t==null||t($)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},bU=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>b.createElement("div",{className:Jn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);b.forwardRef(({value:e,onChange:t,countries:n=ps,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:u,style:c,className:d,inputStyle:f,inputClassName:h,countrySelectorStyleProps:m,dialCodePreviewStyleProps:g,inputProps:v,placeholder:$,disabled:C,name:x,onFocus:y,onBlur:D,required:P,autoFocus:E,...T},k)=>{let{phone:S,inputValue:U,inputRef:O,country:F,setCountry:G,handlePhoneValueChange:K}=nP({value:e,countries:n,...T,onChange:j=>{t==null||t(j.phone,{country:j.country,inputValue:j.inputValue})}}),W=T.disableDialCodeAndPrefix&&o&&(F==null?void 0:F.dialCode);return b.useImperativeHandle(k,()=>O.current?Object.assign(O.current,{setCountry:G,state:{phone:S,inputValue:U,country:F}}):null,[O,G,S,U,F]),b.createElement("div",{ref:k,className:Jn({addPrefix:["input-container"],rawClassNames:[d]}),style:c},b.createElement(vU,{onSelect:j=>G(j.iso2,{focusOnInput:!a}),flags:u,selectedCountry:F.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...m}),W&&b.createElement(bU,{dialCode:F.dialCode,prefix:T.prefix??"+",disabled:C,...g}),b.createElement("input",{onChange:K,value:U,type:"tel",ref:O,className:Jn({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:$,disabled:C,style:f,name:x,onFocus:y,onBlur:D,autoFocus:E,required:P,...v}))});var ia=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",$="[object Promise]",C="[object RegExp]",x="[object Set]",y="[object String]",D="[object Symbol]",P="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",U="[object Int8Array]",O="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",W="[object Uint16Array]",j="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,M=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,V={};V[o]=V[a]=V[E]=V[T]=V[u]=V[c]=V[k]=V[S]=V[U]=V[O]=V[F]=V[m]=V[g]=V[v]=V[C]=V[x]=V[y]=V[D]=V[G]=V[K]=V[W]=V[j]=!0,V[d]=V[f]=V[P]=!1;var z=typeof ia=="object"&&ia&&ia.Object===Object&&ia,re=typeof self=="object"&&self&&self.Object===Object&&self,oe=z||re||Function("return this")(),fe=t&&!t.nodeType&&t,ie=fe&&!0&&e&&!e.nodeType&&e,Ee=ie&&ie.exports===fe;function $e(N,ae){return N.set(ae[0],ae[1]),N}function ne(N,ae){return N.add(ae),N}function ye(N,ae){for(var ve=-1,Ie=N?N.length:0;++ve<Ie&&ae(N[ve],ve,N)!==!1;);return N}function xe(N,ae){for(var ve=-1,Ie=ae.length,yn=N.length;++ve<Ie;)N[yn+ve]=ae[ve];return N}function he(N,ae,ve,Ie){for(var yn=-1,Un=N?N.length:0;++yn<Un;)ve=ae(ve,N[yn],yn,N);return ve}function le(N,ae){for(var ve=-1,Ie=Array(N);++ve<N;)Ie[ve]=ae(ve);return Ie}function Fe(N,ae){return N==null?void 0:N[ae]}function et(N){var ae=!1;if(N!=null&&typeof N.toString!="function")try{ae=!!(N+"")}catch{}return ae}function dt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie,yn){ve[++ae]=[yn,Ie]}),ve}function Dn(N,ae){return function(ve){return N(ae(ve))}}function yt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie){ve[++ae]=Ie}),ve}var q=Array.prototype,Z=Function.prototype,te=Object.prototype,pe=oe["__core-js_shared__"],Ce=function(){var N=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),De=Z.toString,_e=te.hasOwnProperty,Ve=te.toString,mt=RegExp("^"+De.call(_e).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Ee?oe.Buffer:void 0,Rt=oe.Symbol,Pn=oe.Uint8Array,_n=Dn(Object.getPrototypeOf,Object),Yt=Object.create,Ln=te.propertyIsEnumerable,tn=q.splice,vt=Object.getOwnPropertySymbols,Vn=ut?ut.isBuffer:void 0,Cr=Dn(Object.keys,Object),Rn=ze(oe,"DataView"),er=ze(oe,"Map"),On=ze(oe,"Promise"),tr=ze(oe,"Set"),Nn=ze(oe,"WeakMap"),En=ze(Object,"create"),Ir=to(Rn),Vt=to(er),Cn=to(On),Ne=to(tr),tt=to(Nn),nn=Rt?Rt.prototype:void 0,fr=nn?nn.valueOf:void 0;function Te(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function je(){this.__data__=En?En(null):{}}function Ye(N){return this.has(N)&&delete this.__data__[N]}function Ft(N){var ae=this.__data__;if(En){var ve=ae[N];return ve===r?void 0:ve}return _e.call(ae,N)?ae[N]:void 0}function rn(N){var ae=this.__data__;return En?ae[N]!==void 0:_e.call(ae,N)}function jn(N,ae){var ve=this.__data__;return ve[N]=En&&ae===void 0?r:ae,this}Te.prototype.clear=je,Te.prototype.delete=Ye,Te.prototype.get=Ft,Te.prototype.has=rn,Te.prototype.set=jn;function Kt(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function an(){this.__data__=[]}function kt(N){var ae=this.__data__,ve=Ai(ae,N);if(ve<0)return!1;var Ie=ae.length-1;return ve==Ie?ae.pop():tn.call(ae,ve,1),!0}function wt(N){var ae=this.__data__,ve=Ai(ae,N);return ve<0?void 0:ae[ve][1]}function li(N){return Ai(this.__data__,N)>-1}function ba(N,ae){var ve=this.__data__,Ie=Ai(ve,N);return Ie<0?ve.push([N,ae]):ve[Ie][1]=ae,this}Kt.prototype.clear=an,Kt.prototype.delete=kt,Kt.prototype.get=wt,Kt.prototype.has=li,Kt.prototype.set=ba;function hr(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function Oo(){this.__data__={hash:new Te,map:new(er||Kt),string:new Te}}function Mo(N){return Ke(this,N).delete(N)}function Fo(N){return Ke(this,N).get(N)}function gt(N){return Ke(this,N).has(N)}function nr(N,ae){return Ke(this,N).set(N,ae),this}hr.prototype.clear=Oo,hr.prototype.delete=Mo,hr.prototype.get=Fo,hr.prototype.has=gt,hr.prototype.set=nr;function pr(N){this.__data__=new Kt(N)}function Kn(){this.__data__=new Kt}function ko(N){return this.__data__.delete(N)}function Lr(N){return this.__data__.get(N)}function nl(N){return this.__data__.has(N)}function $s(N,ae){var ve=this.__data__;if(ve instanceof Kt){var Ie=ve.__data__;if(!er||Ie.length<n-1)return Ie.push([N,ae]),this;ve=this.__data__=new hr(Ie)}return ve.set(N,ae),this}pr.prototype.clear=Kn,pr.prototype.delete=ko,pr.prototype.get=Lr,pr.prototype.has=nl,pr.prototype.set=$s;function rl(N,ae){var ve=sl(N)||Op(N)?le(N.length,String):[],Ie=ve.length,yn=!!Ie;for(var Un in N)_e.call(N,Un)&&!(yn&&(Un=="length"||rr(Un,Ie)))&&ve.push(Un);return ve}function Bo(N,ae,ve){var Ie=N[ae];(!(_e.call(N,ae)&&al(Ie,ve))||ve===void 0&&!(ae in N))&&(N[ae]=ve)}function Ai(N,ae){for(var ve=N.length;ve--;)if(al(N[ve][0],ae))return ve;return-1}function $a(N,ae){return N&&be(ae,ll(ae),N)}function xa(N,ae,ve,Ie,yn,Un,Nr){var zn;if(Ie&&(zn=Un?Ie(N,yn,Un,Nr):Ie(N)),zn!==void 0)return zn;if(!As(N))return N;var pn=sl(N);if(pn){if(zn=Mn(N),!ae)return ue(N,zn)}else{var Pi=Wt(N),_i=Pi==f||Pi==h;if(ul(N))return Es(N,ae);if(Pi==v||Pi==o||_i&&!Un){if(et(N))return Un?N:{};if(zn=Fn(_i?{}:N),!ae)return Re(N,$a(zn,N))}else{if(!V[Pi])return Un?N:{};zn=Vr(N,Pi,xa,ae)}}Nr||(Nr=new pr);var cl=Nr.get(N);if(cl)return cl;if(Nr.set(N,zn),!pn)var Ps=ve?it(N):ll(N);return ye(Ps||N,function(Wn,Ca){Ps&&(Ca=Wn,Wn=N[Ca]),Bo(zn,Ca,xa(Wn,ae,ve,Ie,Ca,N,Nr))}),zn}function xs(N){return As(N)?Yt(N):{}}function ws(N,ae,ve){var Ie=ae(N);return sl(N)?Ie:xe(Ie,ve(N))}function il(N){return Ve.call(N)}function Ds(N){if(!As(N)||Da(N))return!1;var ae=dd(N)||et(N)?mt:M;return ae.test(to(N))}function wa(N){if(!Ea(N))return Cr(N);var ae=[];for(var ve in Object(N))_e.call(N,ve)&&ve!="constructor"&&ae.push(ve);return ae}function Es(N,ae){if(ae)return N.slice();var ve=new N.constructor(N.length);return N.copy(ve),ve}function eo(N){var ae=new N.constructor(N.byteLength);return new Pn(ae).set(new Pn(N)),ae}function ol(N,ae){var ve=ae?eo(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.byteLength)}function Cs(N,ae,ve){var Ie=ae?ve(dt(N),!0):dt(N);return he(Ie,$e,new N.constructor)}function Io(N){var ae=new N.constructor(N.source,_.exec(N));return ae.lastIndex=N.lastIndex,ae}function Ss(N,ae,ve){var Ie=ae?ve(yt(N),!0):yt(N);return he(Ie,ne,new N.constructor)}function B(N){return fr?Object(fr.call(N)):{}}function X(N,ae){var ve=ae?eo(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.length)}function ue(N,ae){var ve=-1,Ie=N.length;for(ae||(ae=Array(Ie));++ve<Ie;)ae[ve]=N[ve];return ae}function be(N,ae,ve,Ie){ve||(ve={});for(var yn=-1,Un=ae.length;++yn<Un;){var Nr=ae[yn],zn=void 0;Bo(ve,Nr,zn===void 0?N[Nr]:zn)}return ve}function Re(N,ae){return be(N,Ot(N),ae)}function it(N){return ws(N,ll,Ot)}function Ke(N,ae){var ve=N.__data__;return Ts(ae)?ve[typeof ae=="string"?"string":"hash"]:ve.map}function ze(N,ae){var ve=Fe(N,ae);return Ds(ve)?ve:void 0}var Ot=vt?Dn(vt,Object):Bt,Wt=il;(Rn&&Wt(new Rn(new ArrayBuffer(1)))!=T||er&&Wt(new er)!=m||On&&Wt(On.resolve())!=$||tr&&Wt(new tr)!=x||Nn&&Wt(new Nn)!=P)&&(Wt=function(N){var ae=Ve.call(N),ve=ae==v?N.constructor:void 0,Ie=ve?to(ve):void 0;if(Ie)switch(Ie){case Ir:return T;case Vt:return m;case Cn:return $;case Ne:return x;case tt:return P}return ae});function Mn(N){var ae=N.length,ve=N.constructor(ae);return ae&&typeof N[0]=="string"&&_e.call(N,"index")&&(ve.index=N.index,ve.input=N.input),ve}function Fn(N){return typeof N.constructor=="function"&&!Ea(N)?xs(_n(N)):{}}function Vr(N,ae,ve,Ie){var yn=N.constructor;switch(ae){case E:return eo(N);case u:case c:return new yn(+N);case T:return ol(N,Ie);case k:case S:case U:case O:case F:case G:case K:case W:case j:return X(N,Ie);case m:return Cs(N,Ie,ve);case g:case y:return new yn(N);case C:return Io(N);case x:return Ss(N,Ie,ve);case D:return B(N)}}function rr(N,ae){return ae=ae??i,!!ae&&(typeof N=="number"||Y.test(N))&&N>-1&&N%1==0&&N<ae}function Ts(N){var ae=typeof N;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?N!=="__proto__":N===null}function Da(N){return!!Ce&&Ce in N}function Ea(N){var ae=N&&N.constructor,ve=typeof ae=="function"&&ae.prototype||te;return N===ve}function to(N){if(N!=null){try{return De.call(N)}catch{}try{return N+""}catch{}}return""}function Rp(N){return xa(N,!0,!0)}function al(N,ae){return N===ae||N!==N&&ae!==ae}function Op(N){return Mp(N)&&_e.call(N,"callee")&&(!Ln.call(N,"callee")||Ve.call(N)==o)}var sl=Array.isArray;function cd(N){return N!=null&&Fp(N.length)&&!dd(N)}function Mp(N){return kp(N)&&cd(N)}var ul=Vn||Mt;function dd(N){var ae=As(N)?Ve.call(N):"";return ae==f||ae==h}function Fp(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=i}function As(N){var ae=typeof N;return!!N&&(ae=="object"||ae=="function")}function kp(N){return!!N&&typeof N=="object"}function ll(N){return cd(N)?rl(N):wa(N)}function Bt(){return[]}function Mt(){return!1}e.exports=Rp})(Xy,Xy.exports);var oa=Xy.exports,Qy=function(){return Qy=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Qy.apply(this,arguments)};function $U(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(f){try{d(r.next(f))}catch(h){a(h)}}function c(f){try{d(r.throw(f))}catch(h){a(h)}}function d(f){f.done?o(f.value):i(f.value).then(u,c)}d((r=r.apply(e,[])).next())})}function xU(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(f){d=[6,f],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function ph(e,t,n,r,i){return $U(this,void 0,void 0,function(){var o,a;return xU(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];a=0,u.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return a++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var ev=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Qy({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},wU=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=oa(n);ph(t,a,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=ev(i,u);o.imgElement.setAttribute("src",a.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,o=oa(t);ph(this.imgElement,o,n,this.htmlPluginState).then(function(a){if(i.isMounted){var u=ev(r,a);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let en=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},DU=class extends Error{constructor(t="Unsupported"){super(t)}};function Mb(e){return new DU(e)}function EU(){return this._qualifierModel||{error:Mb(`unsupported qualifier ${this.constructor.name}`)}}let CU=class{constructor(){this._qualifierModel={}}toJson(){return EU.apply(this)}},rt=class extends CU{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof en?this.qualifierValue=n:(this.qualifierValue=new en,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},ai=class extends rt{constructor(t,n){let r;n?r=new en([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function SU(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function TU(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Mb(`unsupported action ${this.constructor.name}`)}}let AU=class{constructor(){this._actionModel={}}toJson(){return TU.apply(this)}},Ei=class extends AU{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),SU(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new ai(r)):this.qualifiers.set(n,new rt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ai(t)):t instanceof ai&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Fb extends Ei{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class up extends Fb{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new rt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new rt("h",t)),this}static fromJson(t){const n=new up;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function PU(){return new up}function rP(){return new Fb("faces")}function _U(){return new Fb("ocr_text")}class RU extends Ei{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`blur_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`blur_faces${t}`))):this.addQualifier(new rt("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(rP()),r&&r.regionType==="ocr_text"&&i.region(_U()),r&&r.regionType==="custom"&&i.region(up.fromJson(r)),i}}function ms(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const iP={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},OU={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},oP={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},aP={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},MU={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},sP={444:"CHROMA_444",420:"CHROMA_420"},FU={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},kU=ms(sP);ms(FU);const BU=ms(iP),IU=ms(OU),uP=ms(oP);ms(aP);ms(MU);class lP extends Ei{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=uP[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new en([t,`${n}`]).setDelimiter(":"):r=new en(t),new rt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=oP[n]||n;return new this(o,r||i)}}class LU extends lP{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=uP[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function lp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class VU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new en(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new en(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new en(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new en(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new en(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:a,numOfColors:u}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),o&&c.despeckleLevel(o),a&&c.detailsLevel(a),u&&c.numOfColors(u),c}}class NU extends LU{level(t){return this._actionModel.level=t,this.setLevel(t)}}class jU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new rt("e",new en("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new rt("e",new en(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new rt("e",new en(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class KU extends NU{color(t){return this._actionModel.color=t,this.addQualifier(new rt("co",new en(lp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class UU extends Ei{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`pixelate_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`pixelate_faces${t}`))):this.addQualifier(new rt("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(rP()),n&&n.regionType==="custom"&&i.region(PU()),i}}function zU(e){return new RU(e)}function WU(){return new lP("grayscale")}function mx(e){return new KU("colorize",e)}function HU(){return new VU}function GU(){return new jU}function qU(e){return new UU(e)}let YU=class extends Ei{constructor(t){super(),this._actionModel={},this.addQualifier(new rt("b",new en(lp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},gx=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Mb(`unsupported action ${this.constructor.name}`)}}};function ZU(e){const t=e;return"error"in t&&!!t.error}function JU(){return new ai("ignore_aspect_ratio")}function XU(){return new ai("lossy")}function QU(){return new ai("preserve_transparency")}function ez(e){return new ai("progressive",e)}function tz(){return new ai("region_relative")}function nz(){return new ai("relative")}let kb=class extends en{constructor(t){super(t),this.val=t}getValue(){return this.val}},cP=class extends Ei{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof kb?i=n.getValue():i=n,this._actionModel.actionType=IU[t],this._actionModel[r]=i,this.addQualifier(new rt(t,n))}},rz=class extends ai{constructor(t){super("progressive",t)}},tv=class extends cP{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(XU()),this}progressive(t){return t instanceof rz?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(ez(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(QU()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}},cp=class dP{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new gx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof dP?this.actions=this.actions.concat(t.actions):this.actions.push(new gx(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new tv("q",t)),this}format(t){return this.addAction(new tv("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new YU(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ei;let r=t;return typeof t=="string"&&(r=new ai(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(ZU(r))return r;t.push(r)}return{actions:t}}};function yx(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class iz extends en{}class oz extends Ei{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=BU[t]||t,this.addQualifier(new rt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new rt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new rt("w",t))}aspectRatio(t){if(t instanceof iz)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=yx(t),this.addQualifier(new rt("ar",yx(t)));if(t instanceof ai)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(nz())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(tz())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:a,width:u,height:c}=r,d=iP[n]||n,f=new this(d,u,c);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?JU():a),i&&f.relative(),o&&f.regionRelative(),f}}class Bb extends rt{constructor(t){super("g",new en(t))}}class fP extends Bb{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class hP extends Bb{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class pP extends Bb{constructor(t){super(t)}}function az(e){return new pP(e)}function mP(...e){const t=[...e];return new hP(t)}function gP(){return new fP}class _u extends en{constructor(t){super(),this.name=t}toString(){return this.name}}function sz(){return new _u("ocr_text")}function uz(e){return e&&`${e}`.split(":")[0]==="auto"}function lz(e){const t=Ib(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Ib(e){return`${e}`.replace("g_","")}function cz(e){return{compass:Ib(e),gravityType:"direction"}}function dz(e){return Ib(e)==="ocr_text"}function fz(){return{gravityType:"ocr"}}function hz(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function pz(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function yP(e){let t;const n=e==="auto"?new fP:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(pz)}}function mz(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),a=gP().autoFocus(...o);i.fallbackGravity=yP(a)}return i}function gz(e){const n=e.split(":").map(r=>new _u(r));return new hP(n)}function yz(e){return lz(e)?cz(e):dz(e)?fz():uz(e)||hz(e)?yP(e):mz(typeof e=="string"?gz(e):e)}class Lb extends en{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof _u?t:new _u(t);return new Lb(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class vP extends en{constructor(t){super(),this.val=t}toString(){return this.val}}function vz(e){return e.gravityType==="direction"}function bz(e){return e.gravityType==="ocr"}function $z(e){return e.gravityType==="auto"}function xz(e){const{object:t,weight:n,avoid:r}=e,i=new Lb(new _u(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function bP(e){const n=(e.autoFocus||[]).map(xz);return gP().autoFocus(...n)}function wz(e){const t=(e.focusOnObjects||[]).map(r=>new _u(r)),n=mP(...t);if(e.fallbackGravity){const r=bP(e.fallbackGravity);n.fallbackGravity(r)}return n}function Dz(e){return vz(e)?new pP(new vP(e.compass)):bz(e)?mP(sz()):$z(e)?bP(e):wz(e)}class Vb extends oz{gravity(t){this._actionModel.gravity=yz(t);const n=typeof t=="string"?new rt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(Dz(t.gravity)),n}}class Wc extends rt{constructor(t){super("b"),t&&this.addValue(t)}}const $P=100,Ez=0;class Cz extends Wc{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${$P}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var xP=Cz;class Nb extends Wc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>lp(n)),this}}class wP extends Nb{toString(){return`
|
|
95
95
|
b_auto:border
|
|
96
96
|
${this._contrast?"_contrast":""}
|
|
97
97
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
@@ -152,7 +152,7 @@ Check the top-level render call using <`+ue+">.")}return X}function Bo(B,X){if(!
|
|
|
152
152
|
* @public
|
|
153
153
|
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(D){return D instanceof c?new c(D.type,y(D.content),D.alias):Array.isArray(D)?D.map(y):D.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++o}),y.__id},clone:function y(D,P){P=P||{};var E,T;switch(u.util.type(D)){case"Object":if(T=u.util.objId(D),P[T])return P[T];E={},P[T]=E;for(var k in D)D.hasOwnProperty(k)&&(E[k]=y(D[k],P));return E;case"Array":return T=u.util.objId(D),P[T]?P[T]:(E=[],P[T]=E,D.forEach(function(S,U){E[U]=y(S,P)}),E);default:return D}},getLanguage:function(y){for(;y;){var D=i.exec(y.className);if(D)return D[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,D){y.className=y.className.replace(RegExp(i,"gi"),""),y.classList.add("language-"+D)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(y){var D=document.getElementsByTagName("script");for(var P in D)if(D[P].src==y)return D[P]}return null}},isActive:function(y,D,P){for(var E="no-"+D;y;){var T=y.classList;if(T.contains(D))return!0;if(T.contains(E))return!1;y=y.parentElement}return!!P}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(y,D){var P=u.util.clone(u.languages[y]);for(var E in D)P[E]=D[E];return P},insertBefore:function(y,D,P,E){E=E||u.languages;var T=E[y],k={};for(var S in T)if(T.hasOwnProperty(S)){if(S==D)for(var U in P)P.hasOwnProperty(U)&&(k[U]=P[U]);P.hasOwnProperty(S)||(k[S]=T[S])}var O=E[y];return E[y]=k,u.languages.DFS(u.languages,function(F,G){G===O&&F!=y&&(this[F]=k)}),k},DFS:function y(D,P,E,T){T=T||{};var k=u.util.objId;for(var S in D)if(D.hasOwnProperty(S)){P.call(D,S,D[S],E||S);var U=D[S],O=u.util.type(U);O==="Object"&&!T[k(U)]?(T[k(U)]=!0,y(U,P,null,T)):O==="Array"&&!T[k(U)]&&(T[k(U)]=!0,y(U,P,S,T))}}},plugins:{},highlightAll:function(y,D){u.highlightAllUnder(document,y,D)},highlightAllUnder:function(y,D,P){var E={callback:P,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),u.hooks.run("before-all-elements-highlight",E);for(var T=0,k;k=E.elements[T++];)u.highlightElement(k,D===!0,E.callback)},highlightElement:function(y,D,P){var E=u.util.getLanguage(y),T=u.languages[E];u.util.setLanguage(y,E);var k=y.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(k,E);var S=y.textContent,U={element:y,language:E,grammar:T,code:S};function O(G){U.highlightedCode=G,u.hooks.run("before-insert",U),U.element.innerHTML=U.highlightedCode,u.hooks.run("after-highlight",U),u.hooks.run("complete",U),P&&P.call(U.element)}if(u.hooks.run("before-sanity-check",U),k=U.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!U.code){u.hooks.run("complete",U),P&&P.call(U.element);return}if(u.hooks.run("before-highlight",U),!U.grammar){O(u.util.encode(U.code));return}if(D&&r.Worker){var F=new Worker(u.filename);F.onmessage=function(G){O(G.data)},F.postMessage(JSON.stringify({language:U.language,code:U.code,immediateClose:!0}))}else O(u.highlight(U.code,U.grammar,U.language))},highlight:function(y,D,P){var E={code:y,grammar:D,language:P};if(u.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=u.tokenize(E.code,E.grammar),u.hooks.run("after-tokenize",E),c.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(y,D){var P=D.rest;if(P){for(var E in P)D[E]=P[E];delete D.rest}var T=new h;return m(T,T.head,y),f(y,T,D,T.head,0),v(T)},hooks:{all:{},add:function(y,D){var P=u.hooks.all;P[y]=P[y]||[],P[y].push(D)},run:function(y,D){var P=u.hooks.all[y];if(!(!P||!P.length))for(var E=0,T;T=P[E++];)T(D)}},Token:c};r.Prism=u;function c(y,D,P,E){this.type=y,this.content=D,this.alias=P,this.length=(E||"").length|0}c.stringify=function y(D,P){if(typeof D=="string")return D;if(Array.isArray(D)){var E="";return D.forEach(function(O){E+=y(O,P)}),E}var T={type:D.type,content:y(D.content,P),tag:"span",classes:["token",D.type],attributes:{},language:P},k=D.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(T.classes,k):T.classes.push(k)),u.hooks.run("wrap",T);var S="";for(var U in T.attributes)S+=" "+U+'="'+(T.attributes[U]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+S+">"+T.content+"</"+T.tag+">"};function d(y,D,P,E){y.lastIndex=D;var T=y.exec(P);if(T&&E&&T[1]){var k=T[1].length;T.index+=k,T[0]=T[0].slice(k)}return T}function f(y,D,P,E,T,k){for(var S in P)if(!(!P.hasOwnProperty(S)||!P[S])){var U=P[S];U=Array.isArray(U)?U:[U];for(var O=0;O<U.length;++O){if(k&&k.cause==S+","+O)return;var F=U[O],G=F.inside,K=!!F.lookbehind,W=!!F.greedy,j=F.alias;if(W&&!F.pattern.global){var L=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,L+"g")}for(var _=F.pattern||F,M=E.next,Y=T;M!==D.tail&&!(k&&Y>=k.reach);Y+=M.value.length,M=M.next){var V=M.value;if(D.length>y.length)return;if(!(V instanceof c)){var z=1,re;if(W){if(re=d(_,Y,y,K),!re||re.index>=y.length)break;var Ee=re.index,oe=re.index+re[0].length,fe=Y;for(fe+=M.value.length;Ee>=fe;)M=M.next,fe+=M.value.length;if(fe-=M.value.length,Y=fe,M.value instanceof c)continue;for(var ie=M;ie!==D.tail&&(fe<oe||typeof ie.value=="string");ie=ie.next)z++,fe+=ie.value.length;z--,V=y.slice(Y,fe),re.index-=Y}else if(re=d(_,0,V,K),!re)continue;var Ee=re.index,$e=re[0],ne=V.slice(0,Ee),ye=V.slice(Ee+$e.length),xe=Y+V.length;k&&xe>k.reach&&(k.reach=xe);var he=M.prev;ne&&(he=m(D,he,ne),Y+=ne.length),g(D,he,z);var le=new c(S,G?u.tokenize($e,G):$e,j,$e);if(M=m(D,he,le),ye&&m(D,M,ye),z>1){var Fe={cause:S+","+O,reach:xe};f(y,D,P,M.prev,Y,Fe),k&&Fe.reach>k.reach&&(k.reach=Fe.reach)}}}}}}function h(){var y={value:null,prev:null,next:null},D={value:null,prev:y,next:null};y.next=D,this.head=y,this.tail=D,this.length=0}function m(y,D,P){var E=D.next,T={value:P,prev:D,next:E};return D.next=T,E.prev=T,y.length++,T}function g(y,D,P){for(var E=D.next,T=0;T<P&&E!==y.tail;T++)E=E.next;D.next=E,E.prev=D,y.length-=T}function v(y){for(var D=[],P=y.head.next;P!==y.tail;)D.push(P.value),P=P.next;return D}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(y){var D=JSON.parse(y.data),P=D.language,E=D.code,T=D.immediateClose;r.postMessage(u.highlight(E,u.languages[P],P)),T&&r.close()},!1)),u;var $=u.util.currentScript();$&&(u.filename=$.src,$.hasAttribute("data-manual")&&(u.manual=!0));function C(){u.manual||u.highlightAll()}if(!u.manual){var x=document.readyState;x==="loading"||x==="interactive"&&$&&$.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return u}(t);e.exports&&(e.exports=n),typeof Vi<"u"&&(Vi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var a={};a["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};u["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function($,C){return"✖ Error "+$+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",c="loading",d="loaded",f="failed",h="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+c+'"])';function m($,C,x){var y=new XMLHttpRequest;y.open("GET",$,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?C(y.responseText):y.status>=400?x(i(y.status,y.statusText)):x(o))},y.send(null)}function g($){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec($||"");if(C){var x=Number(C[1]),y=C[2],D=C[3];return y?D?[x,Number(D)]:[x,void 0]:[x,x]}}n.hooks.add("before-highlightall",function($){$.selector+=", "+h}),n.hooks.add("before-sanity-check",function($){var C=$.element;if(C.matches(h)){$.code="",C.setAttribute(u,c);var x=C.appendChild(document.createElement("CODE"));x.textContent=r;var y=C.getAttribute("data-src"),D=$.language;if(D==="none"){var P=(/\.(\w+)$/.exec(y)||[,"none"])[1];D=a[P]||P}n.util.setLanguage(x,D),n.util.setLanguage(C,D);var E=n.plugins.autoloader;E&&E.loadLanguages(D),m(y,function(T){C.setAttribute(u,d);var k=g(C.getAttribute("data-range"));if(k){var S=T.split(/\r\n?|\n/g),U=k[0],O=k[1]==null?S.length:k[1];U<0&&(U+=S.length),U=Math.max(0,Math.min(U-1,S.length)),O<0&&(O+=S.length),O=Math.max(0,Math.min(O,S.length)),T=S.slice(U,O).join(`
|
|
154
154
|
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(U+1))}x.textContent=T,n.highlightElement(x)},function(T){C.setAttribute(u,f),x.textContent=T})}}),n.plugins.fileHighlight={highlight:function(C){for(var x=(C||document).querySelectorAll(h),y=0,D;D=x[y++];)n.highlightElement(D)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(xg)),xg.exports}var RH=_H();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(m,g){return Array.prototype.slice.call((g||document).querySelectorAll(m))}function i(m,g){return m.classList.contains(g)}function o(m){m()}var a=function(){var m;return function(){if(typeof m>"u"){var g=document.createElement("div");g.style.fontSize="13px",g.style.lineHeight="1.5",g.style.padding="0",g.style.border="0",g.innerHTML=" <br /> ",document.body.appendChild(g),m=g.offsetHeight===38,document.body.removeChild(g)}return m}}();function u(m,g){var v=getComputedStyle(m),$=getComputedStyle(g);function C(x){return+x.substr(0,x.length-2)}return g.offsetTop+C($.borderTopWidth)+C($.paddingTop)-C(v.paddingTop)}function c(m){return!m||!/pre/i.test(m.nodeName)?!1:!!(m.hasAttribute("data-line")||m.id&&Prism.util.isActive(m,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(g,v,$){v=typeof v=="string"?v:g.getAttribute("data-line")||"";var C=v.replace(/\s+/g,"").split(",").filter(Boolean),x=+g.getAttribute("data-line-offset")||0,y=a()?parseInt:parseFloat,D=y(getComputedStyle(g).lineHeight),P=Prism.util.isActive(g,e),E=g.querySelector("code"),T=P?g:E||g,k=[],S=E.textContent.match(n),U=S?S.length+1:1,O=!E||T==E?0:u(g,E);C.forEach(function(K){var W=K.split("-"),j=+W[0],L=+W[1]||j;if(L=Math.min(U+x,L),!(L<j)){var _=g.querySelector('.line-highlight[data-range="'+K+'"]')||document.createElement("div");if(k.push(function(){_.setAttribute("aria-hidden","true"),_.setAttribute("data-range",K),_.className=($||"")+" line-highlight"}),P&&Prism.plugins.lineNumbers){var M=Prism.plugins.lineNumbers.getLine(g,j),Y=Prism.plugins.lineNumbers.getLine(g,L);if(M){var V=M.offsetTop+O+"px";k.push(function(){_.style.top=V})}if(Y){var z=Y.offsetTop-M.offsetTop+Y.offsetHeight+"px";k.push(function(){_.style.height=z})}}else k.push(function(){_.setAttribute("data-start",String(j)),L>j&&_.setAttribute("data-end",String(L)),_.style.top=(j-x-1)*D+O+"px",_.textContent=new Array(L-j+2).join(`
|
|
155
|
-
`)});k.push(function(){_.style.width=g.scrollWidth+"px"}),k.push(function(){T.appendChild(_)})}});var F=g.id;if(P&&Prism.util.isActive(g,t)&&F){i(g,t)||k.push(function(){g.classList.add(t)});var G=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(K,W){var j=W+G;K.onclick=function(){var L=F+"."+j;d=!1,location.hash=L,setTimeout(function(){d=!0},1)}})}return function(){k.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(x){x.parentNode.removeChild(x)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var v=m.slice(0,m.lastIndexOf(".")),$=document.getElementById(v);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(c(g)){var v=0;r(".line-highlight",g).forEach(function($){v+=$.textContent.length,$.parentNode.removeChild($)}),v&&/^(?: \n)+$/.test(m.code.slice(-v))&&(m.code=m.code.slice(0,-v))}}),Prism.hooks.add("complete",function m(g){var v=g.element.parentElement;if(c(v)){clearTimeout(h);var $=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(v,e)&&$&&!C)Prism.hooks.add("line-numbers",m);else{var x=Prism.plugins.lineHighlight.highlightLines(v);x(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(c).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const Mx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},QP=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Mx(r.ref,n,e):r.refs&&r.refs.forEach(i=>Mx(i,n,e))}},OH=(e,t)=>{t.shouldUseNativeValidation&&QP(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(MH(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));Tt(a,"root",o),Tt(n,r,a)}else Tt(n,r,o)}return n},MH=(e,t)=>e.some(n=>n.startsWith(t+"."));function FH(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var c=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&QP({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return c&&c.then?c.then(void 0,u):c}(0,function(a){if(!a.inner)throw a;return{values:{},errors:OH((u=a,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=GA(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,c}))}catch(a){return Promise.reject(a)}}}var wg,Fx;function kH(){if(Fx)return wg;Fx=1;var e=typeof Vi=="object"&&Vi&&Vi.Object===Object&&Vi;return wg=e,wg}var Dg,kx;function BH(){if(kx)return Dg;kx=1;var e=kH(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Dg=n,Dg}var Eg,Bx;function e6(){if(Bx)return Eg;Bx=1;var e=BH(),t=e.Symbol;return Eg=t,Eg}var Cg,Ix;function IH(){if(Ix)return Cg;Ix=1;var e=e6(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(u?a[i]=c:delete a[i]),f}return Cg=o,Cg}var Sg,Lx;function LH(){if(Lx)return Sg;Lx=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Sg=n,Sg}var Tg,Vx;function VH(){if(Vx)return Tg;Vx=1;var e=e6(),t=IH(),n=LH(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return Tg=a,Tg}var Ag,Nx;function NH(){if(Nx)return Ag;Nx=1;function e(t){return t!=null&&typeof t=="object"}return Ag=e,Ag}var Pg,jx;function jH(){if(jx)return Pg;jx=1;var e=VH(),t=NH(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Pg=r,Pg}var KH=jH();const UH=Ao(KH),t6=b.createContext({});function qc(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qb=b.createContext(null),e0=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function zH(e=!0){const t=b.useContext(Qb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=b.useId();b.useEffect(()=>{e&&i(o)},[e]);const a=b.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const t0=typeof window<"u",n6=t0?b.useLayoutEffect:b.useEffect,Er=e=>e;let Hu=Er,Ji=Er;process.env.NODE_ENV!=="production"&&(Hu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ji=(e,t)=>{if(!e)throw new Error(t)});function n0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ru=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Gi=e=>e*1e3,wo=e=>e/1e3,WH={skipAnimations:!1,useManualTiming:!1};function HH(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const pf=["read","resolveKeyframes","update","preRender","render","postRender"],GH=40;function r6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=pf.reduce((x,y)=>(x[y]=HH(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,GH),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:pf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<pf.length;y++)a[pf[y]].cancel(x)},state:i,steps:a}}const{schedule:jt,cancel:So,state:Bn,steps:_g}=r6(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0),i6=b.createContext({strict:!1}),Kx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ou={};for(const e in Kx)Ou[e]={isEnabled:t=>Kx[e].some(n=>!!t[n])};function qH(e){for(const t in e)Ou[t]={...Ou[t],...e[t]}}const YH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||YH.has(e)}let o6=e=>!bh(e);function ZH(e){e&&(o6=t=>t.startsWith("on")?!bh(t):e(t))}try{ZH(require("@emotion/is-prop-valid").default)}catch{}function JH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(o6(i)||n===!0&&bh(i)||!t&&!bh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Ux=new Set;function mp(e,t,n){e||Ux.has(t)||(console.warn(t),Ux.add(t))}function XH(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&mp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const gp=b.createContext({});function xc(e){return typeof e=="string"||Array.isArray(e)}function yp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const r0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i0=["initial",...r0];function vp(e){return yp(e.animate)||i0.some(t=>xc(e[t]))}function a6(e){return!!(vp(e)||e.variants)}function QH(e,t){if(vp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xc(n)?n:void 0,animate:xc(r)?r:void 0}}return e.inherit!==!1?t:{}}function eG(e){const{initial:t,animate:n}=QH(e,b.useContext(gp));return b.useMemo(()=>({initial:t,animate:n}),[zx(t),zx(n)])}function zx(e){return Array.isArray(e)?e.join(" "):e}const tG=Symbol.for("motionComponentSymbol");function iu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nG(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):iu(n)&&(n.current=r))},[t])}const o0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rG="framerAppearId",s6="data-"+o0(rG),{schedule:a0,cancel:Gre}=r6(queueMicrotask,!1),u6=b.createContext({});function iG(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(gp),c=b.useContext(i6),d=b.useContext(Qb),f=b.useContext(e0).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(u6);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&oG(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[s6],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return n6(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),a0.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function oG(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:l6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&iu(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function l6(e){if(e)return e.options.allowProjection!==!1?e.projection:l6(e.parent)}function aG({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&qH(e);function u(d,f){let h;const m={...b.useContext(e0),...d,layoutId:sG(d)},{isStatic:g}=m,v=eG(d),$=r(d,g);if(!g&&t0){uG(m,e);const C=lG(m);h=C.MeasureLayout,v.visualElement=iG(i,$,m,t,C.ProjectionNode)}return Eo.jsxs(gp.Provider,{value:v,children:[h&&v.visualElement?Eo.jsx(h,{visualElement:v.visualElement,...m}):null,n(i,d,nG($,v.visualElement,f),$,g,v.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=b.forwardRef(u);return c[tG]=i,c}function sG({layoutId:e}){const t=b.useContext(t6).id;return t&&e!==void 0?t+"-"+e:e}function uG(e,t){const n=b.useContext(i6).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Hu(!1,r):Ji(!1,r)}}function lG(e){const{drag:t,layout:n}=Ou;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const cG=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s0(e){return typeof e!="string"||e.includes("-")?!1:!!(cG.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function u0(e,t,n,r){if(typeof t=="function"){const[i,o]=Wx(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Wx(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const uv=e=>Array.isArray(e),dG=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fG=e=>uv(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function If(e){const t=In(e)?e.get():e;return dG(t)?t.toValue():t}function hG({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:pG(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const c6=e=>(t,n)=>{const r=b.useContext(gp),i=b.useContext(Qb),o=()=>hG(e,t,r,i);return n?o():qc(o)};function pG(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=If(o[m]);let{initial:a,animate:u}=e;const c=vp(e),d=a6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!yp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=u0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const Gu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ys=new Set(Gu),d6=e=>t=>typeof t=="string"&&t.startsWith(e),f6=d6("--"),mG=d6("var(--"),l0=e=>mG(e)?gG.test(e.split("/*")[0].trim()):!1,gG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,h6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,To=(e,t,n)=>n>t?t:n<e?e:n,qu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wc={...qu,transform:e=>To(0,1,e)},mf={...qu,default:1},Yc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zo=Yc("deg"),qi=Yc("%"),Ge=Yc("px"),yG=Yc("vh"),vG=Yc("vw"),Hx={...qi,parse:e=>qi.parse(e)/100,transform:e=>qi.transform(e*100)},bG={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},$G={rotate:Zo,rotateX:Zo,rotateY:Zo,rotateZ:Zo,scale:mf,scaleX:mf,scaleY:mf,scaleZ:mf,skew:Zo,skewX:Zo,skewY:Zo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:wc,originX:Hx,originY:Hx,originZ:Ge},Gx={...qu,transform:Math.round},c0={...bG,...$G,zIndex:Gx,size:Ge,fillOpacity:wc,strokeOpacity:wc,numOctaves:Gx},xG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wG=Gu.length;function DG(e,t,n){let r="",i=!0;for(let o=0;o<wG;o++){const a=Gu[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=h6(u,c0[a]);if(!c){i=!1;const f=xG[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function d0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(ys.has(c)){a=!0;continue}else if(f6(c)){i[c]=d;continue}else{const f=h6(d,c0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=DG(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function qx(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function EG(e,t,n){const r=qx(t,e.x,e.width),i=qx(n,e.y,e.height);return`${r} ${i}`}const CG={offset:"stroke-dashoffset",array:"stroke-dasharray"},SG={offset:"strokeDashoffset",array:"strokeDasharray"};function TG(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?CG:SG;e[o.offset]=Ge.transform(-r);const a=Ge.transform(t),u=Ge.transform(n);e[o.array]=`${a} ${u}`}function f0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(d0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=EG(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&TG(m,a,u,c,!1)}const h0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),p6=()=>({...h0(),attrs:{}}),p0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function m6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const g6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function y6(e,t,n,r){m6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(g6.has(i)?i:o0(i),t.attrs[i])}const $h={};function AG(e){Object.assign($h,e)}function v6(e,{layout:t,layoutId:n}){return ys.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$h[e]||e==="opacity")}function m0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||v6(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function b6(e,t,n){const r=m0(e,t,n);for(const i in e)if(In(e[i])||In(t[i])){const o=Gu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function PG(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Yx=["x","y","width","height","cx","cy","r"],_G={useVisualState:c6({scrapeMotionValuesFromProps:b6,createRenderState:p6,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(ys.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<Yx.length;u++){const c=Yx[u];e[c]!==t[c]&&(a=!0)}a&&(jt.read(()=>PG(n,r)),jt.render(()=>{f0(r,i,p0(n.tagName),e.transformTemplate),y6(n,r)}))}})},RG={useVisualState:c6({scrapeMotionValuesFromProps:m0,createRenderState:h0})};function $6(e,t,n){for(const r in t)!In(t[r])&&!v6(r,n)&&(e[r]=t[r])}function OG({transformTemplate:e},t){return b.useMemo(()=>{const n=h0();return d0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function MG(e,t){const n=e.style||{},r={};return $6(r,n,e),Object.assign(r,OG(e,t)),r}function FG(e,t){const n={},r=MG(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function kG(e,t,n,r){const i=b.useMemo(()=>{const o=p6();return f0(o,t,p0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};$6(o,e.style,e),i.style={...o,...i.style}}return i}function BG(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(s0(n)?kG:FG)(r,o,a,n),d=JH(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>In(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function IG(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...s0(r)?_G:RG,preloadedFeatures:e,useRender:BG(i),createVisualElement:t,Component:r};return aG(a)}}function x6(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function bp(e,t,n){const r=e.getProps();return u0(r,t,n!==void 0?n:r.custom,e)}const LG=n0(()=>window.ScrollTimeline!==void 0);class VG{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(LG()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let NG=class extends VG{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function g0(e,t){return e?e[t]||e.default||e:void 0}const lv=2e4;function w6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lv;)t+=n,r=e.next(t);return t>=lv?1/0:t}function y0(e){return typeof e=="function"}function Zx(e,t){e.timeline=t,e.onfinish=null}const v0=e=>Array.isArray(e)&&typeof e[0]=="number",jG={linearEasing:void 0};function KG(e,t){const n=n0(e);return()=>{var r;return(r=jG[t])!==null&&r!==void 0?r:n()}}const xh=KG(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),D6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ru(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function E6(e){return!!(typeof e=="function"&&xh()||!e||typeof e=="string"&&(e in cv||xh())||v0(e)||Array.isArray(e)&&e.every(E6))}const Hl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hl([0,.65,.55,1]),circOut:Hl([.55,0,1,.45]),backIn:Hl([.31,.01,.66,-.59]),backOut:Hl([.33,1.53,.69,.99])};function C6(e,t){if(e)return typeof e=="function"&&xh()?D6(e,t):v0(e)?Hl(e):Array.isArray(e)?e.map(n=>C6(n,t)||cv.easeOut):cv[e]}const pi={x:!1,y:!1};function S6(){return pi.x||pi.y}function UG(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function T6(e,t){const n=UG(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Jx(e){return t=>{t.pointerType==="touch"||S6()||e(t)}}function zG(e,t,n={}){const[r,i,o]=T6(e,n),a=Jx(u=>{const{target:c}=u,d=t(u);if(typeof d!="function"||!c)return;const f=Jx(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const A6=(e,t)=>t?e===t?!0:A6(e,t.parentElement):!1,b0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,WG=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function HG(e){return WG.has(e.tagName)||e.tabIndex!==-1}const Gl=new WeakSet;function Xx(e){return t=>{t.key==="Enter"&&e(t)}}function Rg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const GG=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xx(()=>{if(Gl.has(n))return;Rg(n,"down");const i=Xx(()=>{Rg(n,"up")}),o=()=>Rg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Qx(e){return b0(e)&&!S6()}function qG(e,t,n={}){const[r,i,o]=T6(e,n),a=u=>{const c=u.currentTarget;if(!Qx(u)||Gl.has(c))return;Gl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Qx(g)||!Gl.has(c))&&(Gl.delete(c),typeof d=="function"&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||A6(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!HG(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>GG(d,i),i)}),o}function YG(e){return e==="x"||e==="y"?pi[e]?null:(pi[e]=!0,()=>{pi[e]=!1}):pi.x||pi.y?null:(pi.x=pi.y=!0,()=>{pi.x=pi.y=!1})}const P6=new Set(["width","height","top","left","right","bottom",...Gu]);let Lf;function ZG(){Lf=void 0}const Yi={now:()=>(Lf===void 0&&Yi.set(Bn.isProcessing||WH.useManualTiming?Bn.timestamp:performance.now()),Lf),set:e=>{Lf=e,queueMicrotask(ZG)}};function $0(e,t){e.indexOf(t)===-1&&e.push(t)}function x0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function JG([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}let w0=class{constructor(){this.subscriptions=[]}add(t){return $0(this.subscriptions,t),()=>x0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function _6(e,t){return t?e*(1e3/t):0}const ew=30,XG=e=>!isNaN(parseFloat(e)),rc={current:void 0};let QG=class{constructor(t,n={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Yi.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=XG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&mp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new w0);const r=this.events[t].add(n);return t==="change"?()=>{r(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return rc.current&&rc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ew)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ew);return _6(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Mu(e,t){return new QG(e,t)}function eq(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mu(n))}function tq(e,t){const n=bp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=fG(o[a]);eq(e,a,u)}}function nq(e){return!!(In(e)&&e.add)}function dv(e,t){const n=e.getValue("willChange");if(nq(n))return n.add(t)}function R6(e){return e.props[s6]}const O6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,rq=1e-7,iq=12;function oq(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=O6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>rq&&++u<iq);return a}function Zc(e,t,n,r){if(e===t&&n===r)return Er;const i=o=>oq(o,0,1,e,n);return o=>o===0||o===1?o:O6(i(o),t,r)}const M6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,F6=e=>t=>1-e(1-t),k6=Zc(.33,1.53,.69,.99),D0=F6(k6),B6=M6(D0),I6=e=>(e*=2)<1?.5*D0(e):.5*(2-Math.pow(2,-10*(e-1))),E0=e=>1-Math.sin(Math.acos(e)),L6=F6(E0),V6=M6(E0),N6=e=>/^0[^.\s]+$/u.test(e);function aq(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||N6(e):!0}const ic=e=>Math.round(e*1e5)/1e5,C0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sq(e){return e==null}const uq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,S0=(e,t)=>n=>!!(typeof n=="string"&&uq.test(n)&&n.startsWith(e)||t&&!sq(n)&&Object.prototype.hasOwnProperty.call(n,t)),j6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(C0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},lq=e=>To(0,255,e),Og={...qu,transform:e=>Math.round(lq(e))},Ga={test:S0("rgb","red"),parse:j6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Og.transform(e)+", "+Og.transform(t)+", "+Og.transform(n)+", "+ic(wc.transform(r))+")"};function cq(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const fv={test:S0("#"),parse:cq,transform:Ga.transform},ou={test:S0("hsl","hue"),parse:j6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qi.transform(ic(t))+", "+qi.transform(ic(n))+", "+ic(wc.transform(r))+")"},qn={test:e=>Ga.test(e)||fv.test(e)||ou.test(e),parse:e=>Ga.test(e)?Ga.parse(e):ou.test(e)?ou.parse(e):fv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ga.transform(e):ou.transform(e)},dq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fq(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(C0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(dq))===null||n===void 0?void 0:n.length)||0)>0}const K6="number",U6="color",hq="var",pq="var(",tw="${}",mq=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Dc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(mq,c=>(qn.test(c)?(r.color.push(o),i.push(U6),n.push(qn.parse(c))):c.startsWith(pq)?(r.var.push(o),i.push(hq),n.push(c)):(r.number.push(o),i.push(K6),n.push(parseFloat(c))),++o,tw)).split(tw);return{values:n,split:u,indexes:r,types:i}}function z6(e){return Dc(e).values}function W6(e){const{split:t,types:n}=Dc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===K6?o+=ic(i[a]):u===U6?o+=qn.transform(i[a]):o+=i[a]}return o}}const gq=e=>typeof e=="number"?0:e;function yq(e){const t=z6(e);return W6(e)(t.map(gq))}const ha={test:fq,parse:z6,createTransformer:W6,getAnimatableNone:yq},vq=new Set(["brightness","contrast","saturate","opacity"]);function bq(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(C0)||[];if(!r)return e;const i=n.replace(r,"");let o=vq.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const $q=/\b([a-z-]*)\(.*?\)/gu,hv={...ha,getAnimatableNone:e=>{const t=e.match($q);return t?t.map(bq).join(" "):e}},xq={...c0,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:hv,WebkitFilter:hv},T0=e=>xq[e];function H6(e,t){let n=T0(e);return n!==hv&&(n=ha),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const wq=new Set(["auto","none","0"]);function Dq(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!wq.has(o)&&Dc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=H6(n,i)}const nw=e=>e===qu||e===Ge,rw=(e,t)=>parseFloat(e.split(", ")[t]),iw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return rw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?rw(o[1],e):0}},Eq=new Set(["x","y","z"]),Cq=Gu.filter(e=>!Eq.has(e));function Sq(e){const t=[];return Cq.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:iw(4,13),y:iw(5,14)};Fu.translateX=Fu.x;Fu.translateY=Fu.y;const Qa=new Set;let pv=!1,mv=!1;function G6(){if(mv){const e=Array.from(Qa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Sq(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}mv=!1,pv=!1,Qa.forEach(e=>e.complete()),Qa.clear()}function q6(){Qa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mv=!0)})}function Tq(){q6(),G6()}let A0=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qa.add(this),pv||(pv=!0,jt.read(q6),jt.resolveKeyframes(G6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Qa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const Y6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Aq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pq(e){const t=Aq.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const _q=4;function Z6(e,t,n=1){Ji(n<=_q,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Pq(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Y6(a)?parseFloat(a):a}return l0(i)?Z6(i,t,n+1):i}const J6=e=>t=>t.test(e),Rq={test:e=>e==="auto",parse:e=>e},X6=[qu,Ge,qi,Zo,vG,yG,Rq],ow=e=>X6.find(J6(e));let Q6=class extends A0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),l0(d))){const f=Z6(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!P6.has(r)||t.length!==2)return;const[i,o]=t,a=ow(i),u=ow(o);if(a!==u)if(nw(a)&&nw(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)aq(t[i])&&r.push(i);r.length&&Dq(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Fu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}};const aw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ha.test(e)||e==="0")&&!e.startsWith("url("));function Oq(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Mq(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=aw(i,t),u=aw(o,t);return Hu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:Oq(e)||(n==="spring"||y0(n))&&r}const Fq=e=>e!==null;function $p(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Fq),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const kq=40;let e7=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>kq?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Tq(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!Mq(t,r,i,o))if(a)this.options.duration=0;else{c==null||c($p(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const qt=(e,t,n)=>e+(t-e)*n;function Mg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Bq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Mg(c,u,e+1/3),o=Mg(c,u,e),a=Mg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function wh(e,t){return n=>n>0?t:e}const Fg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Iq=[fv,Ga,ou],Lq=e=>Iq.find(t=>t.test(e));function sw(e){const t=Lq(e);if(Hu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ou&&(n=Bq(n)),n}const uw=(e,t)=>{const n=sw(e),r=sw(t);if(!n||!r)return wh(e,t);const i={...n};return o=>(i.red=Fg(n.red,r.red,o),i.green=Fg(n.green,r.green,o),i.blue=Fg(n.blue,r.blue,o),i.alpha=qt(n.alpha,r.alpha,o),Ga.transform(i))},Vq=(e,t)=>n=>t(e(n)),Jc=(...e)=>e.reduce(Vq),gv=new Set(["none","hidden"]);function Nq(e,t){return gv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jq(e,t){return n=>qt(e,t,n)}function P0(e){return typeof e=="number"?jq:typeof e=="string"?l0(e)?wh:qn.test(e)?uw:zq:Array.isArray(e)?t7:typeof e=="object"?qn.test(e)?uw:Kq:wh}function t7(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>P0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Kq(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=P0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Uq(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const zq=(e,t)=>{const n=ha.createTransformer(t),r=Dc(e),i=Dc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gv.has(e)&&!i.values.length||gv.has(t)&&!r.values.length?Nq(e,t):Jc(t7(Uq(r,i),i.values),n):(Hu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),wh(e,t))};function n7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qt(e,t,n):P0(e)(e,t)}const Wq=5;function r7(e,t,n){const r=Math.max(t-Wq,0);return _6(n-e(r),t-r)}const Jt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},lw=.001;function Hq({duration:e=Jt.duration,bounce:t=Jt.bounce,velocity:n=Jt.velocity,mass:r=Jt.mass}){let i,o;Hu(e<=Gi(Jt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=To(Jt.minDamping,Jt.maxDamping,a),e=To(Jt.minDuration,Jt.maxDuration,wo(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=yv(d,a),v=Math.exp(-h);return lw-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=yv(Math.pow(d,2),a);return(-i(d)+lw>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=qq(i,o,u);if(e=Gi(e),isNaN(c))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const Gq=12;function qq(e,t,n){let r=n;for(let i=1;i<Gq;i++)r=r-e(r)/t(r);return r}function yv(e,t){return e*Math.sqrt(1-t*t)}const Yq=["duration","bounce"],Zq=["stiffness","damping","mass"];function cw(e,t){return t.some(n=>e[n]!==void 0)}function Jq(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!cw(e,Zq)&&cw(e,Yq))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*To(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Jt.mass,stiffness:i,damping:o}}else{const n=Hq(e);t={...t,...n,mass:Jt.mass},t.isResolvedFromDuration=!0}return t}function i7(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=Jq({...n,velocity:-wo(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=wo(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=y?Jt.restDelta.granular:Jt.restDelta.default);let D;if($<1){const E=yv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Gi(v):r7(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(w6(P),lv),T=D6(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function dw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=i7({keyframes:[m.value,v(m.value)],velocity:r7(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const Xq=Zc(.42,0,1,1),Qq=Zc(0,0,.58,1),o7=Zc(.42,0,.58,1),eY=e=>Array.isArray(e)&&typeof e[0]!="number",fw={linear:Er,easeIn:Xq,easeInOut:o7,easeOut:Qq,circIn:E0,circInOut:V6,circOut:L6,backIn:D0,backInOut:B6,backOut:k6,anticipate:I6},hw=e=>{if(v0(e)){Ji(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Zc(t,n,r,i)}else if(typeof e=="string")return Ji(fw[e]!==void 0,`Invalid easing type '${e}'`),fw[e];return e};function tY(e,t,n){const r=[],i=n||n7,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Er:t;u=Jc(c,u)}r.push(u)}return r}function a7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Ji(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=tY(t,r,i),c=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=Ru(e[h],e[h+1],f);return u[h](m)};return n?f=>d(To(e[0],e[o-1],f)):d}function nY(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ru(0,t,r);e.push(qt(n,1,i))}}function rY(e){const t=[0];return nY(t,e.length-1),t}function iY(e,t){return e.map(n=>n*t)}function oY(e,t){return e.map(()=>t||o7).splice(0,e.length-1)}function Dh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=eY(r)?r.map(hw):hw(r),o={done:!1,value:t[0]},a=iY(n&&n.length===t.length?n:rY(t),e),u=a7(a,t,{ease:Array.isArray(i)?i:oY(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const aY=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jt.update(t,!0),stop:()=>So(t),now:()=>Bn.isProcessing?Bn.timestamp:Yi.now()}},sY={decay:dw,inertia:dw,tween:Dh,keyframes:Dh,spring:i7},uY=e=>e/100;let _0=class extends e7{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||A0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=y0(n)?n:sY[n]||Dh;let c,d;u!==Dh&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Ji(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Jc(uY,n7(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=w6(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=To(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=$p(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?wo(t.calculatedDuration):0}get time(){return wo(this.currentTime)}set time(t){t=Gi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=wo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=aY,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const lY=new Set(["opacity","clipPath","filter","transform"]);function cY(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=C6(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const dY=n0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Eh=10,fY=2e4;function hY(e){return y0(e.type)||e.type==="spring"||!E6(e.ease)}function pY(e,t){const n=new _0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<fY;)r=n.sample(o),i.push(r.value),o+=Eh;return{times:void 0,keyframes:i,duration:o-Eh,ease:"linear"}}const s7={anticipate:I6,backInOut:B6,circInOut:V6};function mY(e){return e in s7}let pw=class extends e7{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Q6(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&xh()&&mY(a)&&(a=s7[a]),hY(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=pY(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=cY(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(Zx(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set($p(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Gi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Er;const{animation:r}=n;Zx(r,t)}return Er}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new _0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Gi(this.time);d.setWithVelocity(v.sample($-Eh).value,v.sample($).value,Eh)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return dY()&&r&&lY.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const gY={type:"spring",stiffness:500,damping:25,restSpeed:10},yY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vY={type:"keyframes",duration:.8},bY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$Y=(e,{keyframes:t})=>t.length>2?vY:ys.has(e)?e.startsWith("scale")?yY(t[1]):gY:bY;function xY({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const R0=(e,t,n,r={},i,o)=>a=>{const u=g0(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Gi(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};xY(u)||(f={...f,...$Y(e,f)}),f.duration&&(f.duration=Gi(f.duration)),f.repeatDelay&&(f.repeatDelay=Gi(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=$p(f.keyframes,u);if(m!==void 0)return jt.update(()=>{f.onUpdate(m),f.onComplete()}),new NG([])}return!o&&pw.supports(f)?new pw(f):new _0(f)};function wY({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function u7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&wY(f,h))continue;const v={delay:n,...g0(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=R6(e);if(x){const y=window.MotionHandoffAnimation(x,h,jt);y!==null&&(v.startTime=y,$=!0)}}dv(e,h),m.start(R0(h,m,g,e.shouldReduceMotion&&P6.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{jt.update(()=>{u&&tq(e,u)})}),d}function vv(e,t,n={}){var r;const i=bp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(u7(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return DY(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function DY(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(EY).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(vv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function EY(e,t){return e.sortNodePosition(t)}function CY(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>vv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=vv(e,t,n);else{const i=typeof t=="function"?bp(e,t,n.custom):t;r=Promise.all(u7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const SY=i0.length;function l7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?l7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<SY;n++){const r=i0[n],i=e.props[r];(xc(i)||i===!1)&&(t[r]=i)}return t}const TY=[...r0].reverse(),AY=r0.length;function PY(e){return t=>Promise.all(t.map(({animation:n,options:r})=>CY(e,n,r)))}function _Y(e){let t=PY(e),n=mw(),r=!0;const i=c=>(d,f)=>{var h;const m=bp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=l7(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<AY;C++){const x=TY[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=xc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||yp(D)||typeof D=="boolean")continue;const k=RY(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;uv(M)&&uv(Y)?V=!x6(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=mw(),r=!0}}}function RY(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!x6(t,e):!1}function ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mw(){return{animate:ka(!0),whileInView:ka(),whileHover:ka(),whileTap:ka(),whileDrag:ka(),whileFocus:ka(),exit:ka()}}let va=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},OY=class extends va{constructor(t){super(t),t.animationState||(t.animationState=_Y(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();yp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},MY=0,FY=class extends va{constructor(){super(...arguments),this.id=MY++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const kY={animation:{Feature:OY},exit:{Feature:FY}};function Ec(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xc(e){return{point:{x:e.pageX,y:e.pageY}}}const BY=e=>t=>b0(t)&&e(t,Xc(t));function oc(e,t,n,r){return Ec(e,t,BY(n),r)}const gw=(e,t)=>Math.abs(e-t);function IY(e,t){const n=gw(e.x,t.x),r=gw(e.y,t.y);return Math.sqrt(n**2+r**2)}class c7{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Bg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=IY(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:v}=h,{timestamp:$}=Bn;this.history.push({...v,timestamp:$});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=kg(m,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Bg(h.type==="pointercancel"?this.lastMoveEventInfo:kg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),v&&v(h,C)},!b0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Xc(t),u=kg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Bn;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Bg(u,this.history)),this.removeListeners=Jc(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),So(this.updatePoint)}}function kg(e,t){return t?{point:t(e.point)}:e}function yw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Bg({point:e},t){return{point:e,delta:yw(e,d7(t)),offset:yw(e,LY(t)),velocity:VY(t,.1)}}function LY(e){return e[0]}function d7(e){return e[e.length-1]}function VY(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=d7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Gi(t)));)n--;if(!r)return{x:0,y:0};const o=wo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const f7=1e-4,NY=1-f7,jY=1+f7,h7=.01,KY=0-h7,UY=0+h7;function kr(e){return e.max-e.min}function zY(e,t,n){return Math.abs(e-t)<=n}function vw(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=kr(n)/kr(t),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=NY&&e.scale<=jY||isNaN(e.scale))&&(e.scale=1),(e.translate>=KY&&e.translate<=UY||isNaN(e.translate))&&(e.translate=0)}function ac(e,t,n,r){vw(e.x,t.x,n.x,r?r.originX:void 0),vw(e.y,t.y,n.y,r?r.originY:void 0)}function bw(e,t,n){e.min=n.min+t.min,e.max=e.min+kr(t)}function WY(e,t,n){bw(e.x,t.x,n.x),bw(e.y,t.y,n.y)}function $w(e,t,n){e.min=t.min-n.min,e.max=e.min+kr(t)}function sc(e,t,n){$w(e.x,t.x,n.x),$w(e.y,t.y,n.y)}function HY(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function xw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function GY(e,{top:t,left:n,bottom:r,right:i}){return{x:xw(e.x,n,i),y:xw(e.y,t,r)}}function ww(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function qY(e,t){return{x:ww(e.x,t.x),y:ww(e.y,t.y)}}function YY(e,t){let n=.5;const r=kr(e),i=kr(t);return i>r?n=Ru(t.min,t.max-r,e.min):r>i&&(n=Ru(e.min,e.max-i,t.min)),To(0,1,n)}function ZY(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const bv=.35;function JY(e=bv){return e===!1?e=0:e===!0&&(e=bv),{x:Dw(e,"left","right"),y:Dw(e,"top","bottom")}}function Dw(e,t,n){return{min:Ew(e,t),max:Ew(e,n)}}function Ew(e,t){return typeof e=="number"?e:e[t]||0}const Cw=()=>({translate:0,scale:1,origin:0,originPoint:0}),au=()=>({x:Cw(),y:Cw()}),Sw=()=>({min:0,max:0}),cn=()=>({x:Sw(),y:Sw()});function Qr(e){return[e("x"),e("y")]}function p7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function XY({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function QY(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ig(e){return e===void 0||e===1}function $v({scale:e,scaleX:t,scaleY:n}){return!Ig(e)||!Ig(t)||!Ig(n)}function Ia(e){return $v(e)||m7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m7(e){return Tw(e.x)||Tw(e.y)}function Tw(e){return e&&e!=="0%"}function Ch(e,t,n){const r=e-n,i=t*r;return n+i}function Aw(e,t,n,r,i){return i!==void 0&&(e=Ch(e,i,r)),Ch(e,n,r)+t}function xv(e,t=0,n=1,r,i){e.min=Aw(e.min,t,n,r,i),e.max=Aw(e.max,t,n,r,i)}function g7(e,{x:t,y:n}){xv(e.x,t.translate,t.scale,t.originPoint),xv(e.y,n.translate,n.scale,n.originPoint)}const Pw=.999999999999,_w=1.0000000000001;function eZ(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&uu(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,g7(e,a)),r&&Ia(o.latestValues)&&uu(e,o.latestValues))}t.x<_w&&t.x>Pw&&(t.x=1),t.y<_w&&t.y>Pw&&(t.y=1)}function su(e,t){e.min=e.min+t,e.max=e.max+t}function Rw(e,t,n,r,i=.5){const o=qt(e.min,e.max,i);xv(e,t,n,o,r)}function uu(e,t){Rw(e.x,t.x,t.scaleX,t.scale,t.originX),Rw(e.y,t.y,t.scaleY,t.scale,t.originY)}function y7(e,t){return p7(QY(e.getBoundingClientRect(),t))}function tZ(e,t,n){const r=y7(e,n),{scroll:i}=t;return i&&(su(r.x,i.offset.x),su(r.y,i.offset.y)),r}const v7=({current:e})=>e?e.ownerDocument.defaultView:null,nZ=new WeakMap;class rZ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xc(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=YG(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qr(C=>{let x=this.getAxisMotionValue(C).get()||0;if(qi.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const D=y.layout.layoutBox[C];D&&(x=kr(D)*(parseFloat(x)/100))}}this.originPoint[C]=x}),v&&jt.postRender(()=>v(f,h)),dv(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:$}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=iZ(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),$&&$(f,h)},u=(f,h)=>this.stop(f,h),c=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new c7(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:v7(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&jt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!gf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=HY(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&iu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=GY(i.layoutBox,n):this.constraints=!1,this.elastic=JY(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=ZY(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!iu(t))return!1;const r=t.current;Ji(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=tZ(r,i.root,this.visualElement.getTransformPagePoint());let a=qY(i.layout.layoutBox,o);if(n){const u=n(XY(a));this.hasMutatedConstraints=!!u,u&&(a=p7(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Qr(f=>{if(!gf(f,n,this.currentDirection))return;let h=c[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return dv(this.visualElement,t),r.start(R0(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qr(n=>{const{drag:r}=this.getProps();if(!gf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-qt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!iu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const c=u.get();i[a]=YY({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!gf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(qt(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;nZ.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();iu(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jt.read(r);const a=Ec(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=bv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function gf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function iZ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class oZ extends va{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new rZ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ow=e=>(t,n)=>{e&&jt.postRender(()=>e(t,n))};class aZ extends va{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new c7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:v7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ow(t),onStart:Ow(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&jt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=oc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Vf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=Mw(e,t.target.x),r=Mw(e,t.target.y);return`${n}% ${r}%`}},sZ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ha.parse(e);if(i.length>5)return r;const o=ha.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=c;const d=qt(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class uZ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;AG(lZ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Vf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||jt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),a0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function b7(e){const[t,n]=zH(),r=b.useContext(t6);return Eo.jsx(uZ,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(u6),isPresent:t,safeToRemove:n})}const lZ={borderRadius:{...Fl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fl,borderTopRightRadius:Fl,borderBottomLeftRadius:Fl,borderBottomRightRadius:Fl,boxShadow:sZ};function cZ(e,t,n){const r=In(e)?e:Mu(e);return r.start(R0("",r,t,n)),r.animation}function dZ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const fZ=(e,t)=>e.depth-t.depth;class hZ{constructor(){this.children=[],this.isDirty=!1}add(t){$0(this.children,t),this.isDirty=!0}remove(t){x0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(fZ),this.isDirty=!1,this.children.forEach(t)}}function pZ(e,t){const n=Yi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(So(r),e(o-t))};return jt.read(r,!0),()=>So(r)}const $7=["TopLeft","TopRight","BottomLeft","BottomRight"],mZ=$7.length,Fw=e=>typeof e=="string"?parseFloat(e):e,kw=e=>typeof e=="number"||Ge.test(e);function gZ(e,t,n,r,i,o){i?(e.opacity=qt(0,n.opacity!==void 0?n.opacity:1,yZ(r)),e.opacityExit=qt(t.opacity!==void 0?t.opacity:1,0,vZ(r))):o&&(e.opacity=qt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<mZ;a++){const u=`border${$7[a]}Radius`;let c=Bw(t,u),d=Bw(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||kw(c)===kw(d)?(e[u]=Math.max(qt(Fw(c),Fw(d),r),0),(qi.test(d)||qi.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function Bw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const yZ=x7(0,.5,L6),vZ=x7(.5,.95,Er);function x7(e,t,n){return r=>r<e?0:r>t?1:n(Ru(e,t,r))}function Iw(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){Iw(e.x,t.x),Iw(e.y,t.y)}function Lw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vw(e,t,n,r,i){return e-=t,e=Ch(e,1/n,r),i!==void 0&&(e=Ch(e,1/i,r)),e}function bZ(e,t=0,n=1,r=.5,i,o=e,a=e){if(qi.test(t)&&(t=parseFloat(t),t=qt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=qt(o.min,o.max,r);e===o&&(u-=t),e.min=Vw(e.min,t,n,u,i),e.max=Vw(e.max,t,n,u,i)}function Nw(e,t,[n,r,i],o,a){bZ(e,t[n],t[r],t[i],t.scale,o,a)}const $Z=["x","scaleX","originX"],xZ=["y","scaleY","originY"];function jw(e,t,n,r){Nw(e.x,t,$Z,n?n.x:void 0,r?r.x:void 0),Nw(e.y,t,xZ,n?n.y:void 0,r?r.y:void 0)}function Kw(e){return e.translate===0&&e.scale===1}function w7(e){return Kw(e.x)&&Kw(e.y)}function Uw(e,t){return e.min===t.min&&e.max===t.max}function wZ(e,t){return Uw(e.x,t.x)&&Uw(e.y,t.y)}function zw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function D7(e,t){return zw(e.x,t.x)&&zw(e.y,t.y)}function Ww(e){return kr(e.x)/kr(e.y)}function Hw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class DZ{constructor(){this.members=[]}add(t){$0(this.members,t),t.scheduleRender()}remove(t){if(x0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function EZ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const La={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ql=typeof window<"u"&&window.MotionDebug!==void 0,Lg=["","X","Y","Z"],CZ={visibility:"hidden"},Gw=1e3;let SZ=0;function Vg(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function E7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=R6(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&E7(r)}function C7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=SZ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ql&&(La.totalNodes=La.resolvedTargetDeltas=La.recalculatedProjection=0),this.nodes.forEach(PZ),this.nodes.forEach(FZ),this.nodes.forEach(kZ),this.nodes.forEach(_Z),ql&&window.MotionDebug.record(La)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new hZ)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new w0),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=dZ(a),this.instance=a;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=pZ(m,250),Vf.hasAnimatedSinceResize&&(Vf.hasAnimatedSinceResize=!1,this.nodes.forEach(Yw))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||NZ,{onLayoutAnimationStart:C,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!D7(this.targetLayout,v)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const P={...g0($,"layout"),onPlay:C,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||Yw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,So(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(BZ),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&E7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qw);return}this.isUpdating||this.nodes.forEach(OZ),this.isUpdating=!1,this.nodes.forEach(MZ),this.nodes.forEach(TZ),this.nodes.forEach(AZ),this.clearAllSnapshots();const u=Yi.now();Bn.delta=To(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,_g.update.process(Bn),_g.preRender.process(Bn),_g.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,a0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(RZ),this.sharedNodes.forEach(IZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!w7(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||Ia(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),jZ(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(KZ))){const{scroll:f}=this.root;f&&(su(c.x,f.offset.x),su(c.y,f.offset.y))}return c}removeElementScroll(a){var u;const c=cn();if(Jr(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(c,a),su(c.x,h.offset.x),su(c.y,h.offset.y))}return c}applyTransform(a,u=!1){const c=cn();Jr(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&uu(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ia(f.latestValues)&&uu(c,f.latestValues)}return Ia(this.latestValues)&&uu(c,this.latestValues),c}removeTransform(a){const u=cn();Jr(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ia(d.latestValues))continue;$v(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),jw(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return Ia(this.latestValues)&&jw(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=cn(),this.targetWithTransforms=cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),WY(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),g7(this.target,this.targetDelta)):Jr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ql&&La.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$v(this.parent.latestValues)||m7(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;eZ(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Lw(this.prevProjectionDelta.x,this.projectionDelta.x),Lw(this.prevProjectionDelta.y,this.projectionDelta.y)),ac(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!Hw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),ql&&La.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=au(),this.projectionDelta=au(),this.projectionDeltaWithTransform=au()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=au();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const m=cn(),g=c?c.source:void 0,v=this.layout?this.layout.source:void 0,$=g!==v,C=this.getStack(),x=!C||C.members.length<=1,y=!!($&&!x&&this.options.crossfade===!0&&!this.path.some(VZ));this.animationProgress=0;let D;this.mixTargetDelta=P=>{const E=P/1e3;Zw(h.x,a.x,E),Zw(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LZ(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&wZ(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),$&&(this.animationValues=f,gZ(f,d,this.latestValues,E,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(So(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{Vf.hasAnimatedSinceResize=!0,this.currentAnimation=cZ(0,Gw,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:f}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&S7(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||cn();const h=kr(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const m=kr(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Jr(u,c),uu(u,f),ac(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new DZ),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&Vg("z",a,d,this.animationValues);for(let f=0;f<Lg.length;f++)Vg(`rotate${Lg[f]}`,a,d,this.animationValues),Vg(`skew${Lg[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return CZ;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=If(a==null?void 0:a.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const $={};return this.options.layoutId&&($.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,$.pointerEvents=If(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ia(this.latestValues)&&($.transform=f?f({},""):"none",this.hasProjected=!1),$}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=EZ(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y:v}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const $ in $h){if(m[$]===void 0)continue;const{correct:C,applyTo:x}=$h[$],y=d.transform==="none"?m[$]:C(m[$],h);if(x){const D=x.length;for(let P=0;P<D;P++)d[x[P]]=y}else d[$]=y}return this.options.layoutId&&(d.pointerEvents=h===this?If(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(qw),this.root.sharedNodes.clear()}}}function TZ(e){e.updateLayout()}function AZ(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(m);m.min=r[h].min,m.max=m.min+g}):S7(o,n.layoutBox,r)&&Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=au();ac(u,r,n.layoutBox);const c=au();a?ac(c,e.applyTransform(i,!0),n.measuredBox):ac(c,r,n.layoutBox);const d=!w7(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const v=cn();sc(v,n.layoutBox,m.layoutBox);const $=cn();sc($,r,g.layoutBox),D7(v,$)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function PZ(e){ql&&La.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function _Z(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function RZ(e){e.clearSnapshot()}function qw(e){e.clearMeasurements()}function OZ(e){e.isLayoutDirty=!1}function MZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function FZ(e){e.resolveTargetDelta()}function kZ(e){e.calcProjection()}function BZ(e){e.resetSkewAndRotation()}function IZ(e){e.removeLeadSnapshot()}function Zw(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jw(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function LZ(e,t,n,r){Jw(e.x,t.x,n.x,r),Jw(e.y,t.y,n.y,r)}function VZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const NZ={duration:.45,ease:[.4,0,.1,1]},Xw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Qw=Xw("applewebkit/")&&!Xw("chrome/")?Math.round:Er;function eD(e){e.min=Qw(e.min),e.max=Qw(e.max)}function jZ(e){eD(e.x),eD(e.y)}function S7(e,t,n){return e==="position"||e==="preserve-aspect"&&!zY(Ww(t),Ww(n),.2)}function KZ(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const UZ=C7({attachResizeListener:(e,t)=>Ec(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ng={current:void 0},T7=C7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ng.current){const e=new UZ({});e.mount(window),e.setOptions({layoutScroll:!0}),Ng.current=e}return Ng.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),zZ={pan:{Feature:aZ},drag:{Feature:oZ,ProjectionNode:T7,MeasureLayout:b7}};function tD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&jt.postRender(()=>o(t,Xc(t)))}let WZ=class extends va{mount(){const{current:t}=this.node;t&&(this.unmount=zG(t,n=>(tD(this.node,n,"Start"),r=>tD(this.node,r,"End"))))}unmount(){}},HZ=class extends va{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Jc(Ec(this.node.current,"focus",()=>this.onFocus()),Ec(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function nD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&jt.postRender(()=>o(t,Xc(t)))}let GZ=class extends va{mount(){const{current:t}=this.node;t&&(this.unmount=qG(t,n=>(nD(this.node,n,"Start"),(r,{success:i})=>nD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const wv=new WeakMap,jg=new WeakMap,qZ=e=>{const t=wv.get(e.target);t&&t(e)},YZ=e=>{e.forEach(qZ)};function ZZ({root:e,...t}){const n=e||document;jg.has(n)||jg.set(n,{});const r=jg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(YZ,{root:e,...t})),r[i]}function JZ(e,t,n){const r=ZZ(t);return wv.set(e,n),r.observe(e),()=>{wv.delete(e),r.unobserve(e)}}const XZ={some:0,all:1};let QZ=class extends va{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:XZ[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return JZ(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(eJ(t,n))&&this.startObserver()}unmount(){}};function eJ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tJ={inView:{Feature:QZ},tap:{Feature:GZ},focus:{Feature:HZ},hover:{Feature:WZ}},nJ={layout:{ProjectionNode:T7,MeasureLayout:b7}},Dv={current:null},A7={current:!1};function rJ(){if(A7.current=!0,!!t0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dv.current=e.matches;e.addListener(t),t()}else Dv.current=!1}const iJ=[...X6,qn,ha],oJ=e=>iJ.find(J6(e)),rD=new WeakMap;function aJ(e,t,n){for(const r in t){const i=t[r],o=n[r];if(In(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&mp(i.version==="11.18.0",`Attempting to mix Motion versions ${i.version} with 11.18.0 may not work as expected.`);else if(In(o))e.addValue(r,Mu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Mu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const iD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let sJ=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=A0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Yi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,jt.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=vp(n),this.isVariantNode=a6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const v=m[g];c[g]!==void 0&&In(v)&&v.set(c[g],!1)}}mount(t){this.current=t,rD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),A7.current||rJ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dv.current,process.env.NODE_ENV!=="production"&&mp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){rD.delete(this.current),this.projection&&this.projection.unmount(),So(this.notifyUpdate),So(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ys.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&jt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ou){const n=Ou[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<iD.length;r++){const i=iD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=aJ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Mu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Y6(i)||N6(i))?i=parseFloat(i):!oJ(i)&&ha.test(n)&&(i=H6(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=u0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new w0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},P7=class extends sJ{constructor(){super(...arguments),this.KeyframeResolver=Q6}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;In(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function uJ(e){return window.getComputedStyle(e)}let lJ=class extends P7{constructor(){super(...arguments),this.type="html",this.renderInstance=m6}readValueFromInstance(t,n){if(ys.has(n)){const r=T0(n);return r&&r.default||0}else{const r=uJ(t),i=(f6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return y7(t,n)}build(t,n,r){d0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return m0(t,n,r)}},cJ=class extends P7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ys.has(n)){const r=T0(n);return r&&r.default||0}return n=g6.has(n)?n:o0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return b6(t,n,r)}build(t,n,r){f0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){y6(t,n,r,i)}mount(t){this.isSVGTag=p0(t.tagName),super.mount(t)}};const dJ=(e,t)=>s0(e)?new cJ(t):new lJ(t,{allowProjection:e!==b.Fragment}),fJ=IG({...kY,...tJ,...zZ,...nJ},dJ),_7=XH(fJ);function R7(e){const t=qc(()=>Mu(e)),{isStatic:n}=b.useContext(e0);if(n){const[,r]=b.useState(e);b.useEffect(()=>t.on("change",r),[])}return t}function O7(e,t){const n=R7(t()),r=()=>n.set(t());return r(),n6(()=>{const i=()=>jt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),So(r)}}),n}const hJ=e=>e&&typeof e=="object"&&e.mix,pJ=e=>hJ(e)?e.mix:void 0;function mJ(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],u=a7(i,o,{mixer:pJ(o[0]),...a});return t?u(r):u}function gJ(e){rc.current=[],e();const t=O7(rc.current,e);return rc.current=void 0,t}function yJ(e,t,n,r){if(typeof e=="function")return gJ(e);const i=typeof t=="function"?t:mJ(t,n,r);return Array.isArray(e)?oD(e,i):oD([e],([o])=>i(o))}function oD(e,t){const n=qc(()=>[]);return O7(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const M7=b.createContext(null);function vJ(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],c=a.layout,d=qt(c.min,c.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?JG(e,i,i+o):e}function bJ({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=qc(()=>_7[t]),c=[],d=b.useRef(!1);Ji(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=c.findIndex(v=>h===v.value);g!==-1?c[g].layout=m[n]:c.push({value:h,layout:m[n]}),c.sort(wJ)},updateOrder:(h,m,g)=>{if(d.current)return;const v=vJ(c,h,m,g);c!==v&&(d.current=!0,r(v.map(xJ).filter($=>i.indexOf($)!==-1)))}};return b.useEffect(()=>{d.current=!1}),Eo.jsx(u,{...o,ref:a,ignoreStrict:!0,children:Eo.jsx(M7.Provider,{value:f,children:e})})}const $J=b.forwardRef(bJ);function xJ(e){return e.value}function wJ(e,t){return e.layout.min-t.layout.min}function aD(e,t=0){return In(e)?e:R7(t)}function DJ({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const c=qc(()=>_7[r]),d=b.useContext(M7),f={x:aD(t.x),y:aD(t.y)},h=yJ([f.x,f.y],([$,C])=>$||C?1:"unset");Ji(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:v}=d;return Eo.jsx(c,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:($,C)=>{const{velocity:x}=C;x[m]&&v(n,f[m].get(),x[m]),i&&i($,C)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const EJ=b.forwardRef(DJ),sD=new Set;function xp(e,t,n){e||sD.has(t)||(console.warn(t),sD.add(t))}function CJ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&xp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function wp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ev=e=>Array.isArray(e);function F7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Cc(e){return typeof e=="string"||Array.isArray(e)}function uD(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function O0(e,t,n,r){if(typeof t=="function"){const[i,o]=uD(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=uD(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Dp(e,t,n){const r=e.getProps();return O0(r,t,n!==void 0?n:r.custom,e)}const M0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],F0=["initial",...M0],Qc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vs=new Set(Qc),Do=e=>e*1e3,la=e=>e/1e3,SJ={type:"spring",stiffness:500,damping:25,restSpeed:10},TJ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),AJ={type:"keyframes",duration:.8},PJ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_J=(e,{keyframes:t})=>t.length>2?AJ:vs.has(e)?e.startsWith("scale")?TJ(t[1]):SJ:PJ;function k7(e,t){return e?e[t]||e.default||e:void 0}const RJ={skipAnimations:!1,useManualTiming:!1},OJ=e=>e!==null;function Ep(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(OJ),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const pa=e=>e;let Yu=pa,ds=pa;process.env.NODE_ENV!=="production"&&(Yu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ds=(e,t)=>{if(!e)throw new Error(t)});function MJ(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const yf=["read","resolveKeyframes","update","preRender","render","postRender"],FJ=40;function B7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=yf.reduce((x,y)=>(x[y]=MJ(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,FJ),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:yf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<yf.length;y++)a[yf[y]].cancel(x)},state:i,steps:a}}const{schedule:Br,cancel:Cv,state:Sh,steps:pie}=B7(typeof requestAnimationFrame<"u"?requestAnimationFrame:pa,!0),I7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kJ=1e-7,BJ=12;function IJ(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=I7(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>kJ&&++u<BJ);return a}function ed(e,t,n,r){if(e===t&&n===r)return pa;const i=o=>IJ(o,0,1,e,n);return o=>o===0||o===1?o:I7(i(o),t,r)}const L7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,V7=e=>t=>1-e(1-t),N7=ed(.33,1.53,.69,.99),k0=V7(N7),j7=L7(k0),K7=e=>(e*=2)<1?.5*k0(e):.5*(2-Math.pow(2,-10*(e-1))),B0=e=>1-Math.sin(Math.acos(e)),LJ=V7(B0),U7=L7(B0),z7=e=>/^0[^.\s]+$/u.test(e);function VJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||z7(e):!0}const W7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),H7=e=>t=>typeof t=="string"&&t.startsWith(e),G7=H7("--"),NJ=H7("var(--"),I0=e=>NJ(e)?jJ.test(e.split("/*")[0].trim()):!1,jJ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,KJ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UJ(e){const t=KJ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const zJ=4;function q7(e,t,n=1){ds(n<=zJ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=UJ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return W7(a)?parseFloat(a):a}return I0(i)?q7(i,t,n+1):i}const fs=(e,t,n)=>n>t?t:n<e?e:n,Zu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Sc={...Zu,transform:e=>fs(0,1,e)},vf={...Zu,default:1},td=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jo=td("deg"),yu=td("%"),Ze=td("px"),WJ=td("vh"),HJ=td("vw"),lD={...yu,parse:e=>yu.parse(e)/100,transform:e=>yu.transform(e*100)},GJ=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cD=e=>e===Zu||e===Ze,dD=(e,t)=>parseFloat(e.split(", ")[t]),fD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return dD(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?dD(o[1],e):0}},qJ=new Set(["x","y","z"]),YJ=Qc.filter(e=>!qJ.has(e));function ZJ(e){const t=[];return YJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ku={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:fD(4,13),y:fD(5,14)};ku.translateX=ku.x;ku.translateY=ku.y;const Y7=e=>t=>t.test(e),JJ={test:e=>e==="auto",parse:e=>e},Z7=[Zu,Ze,yu,Jo,HJ,WJ,JJ],hD=e=>Z7.find(Y7(e)),es=new Set;let Sv=!1,Tv=!1;function J7(){if(Tv){const e=Array.from(es).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=ZJ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Tv=!1,Sv=!1,es.forEach(e=>e.complete()),es.clear()}function X7(){es.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tv=!0)})}function XJ(){X7(),J7()}class L0{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(es.add(this),Sv||(Sv=!0,Br.read(X7),Br.resolveKeyframes(J7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const uc=e=>Math.round(e*1e5)/1e5,V0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function QJ(e){return e==null}const eX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,N0=(e,t)=>n=>!!(typeof n=="string"&&eX.test(n)&&n.startsWith(e)||t&&!QJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),Q7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(V0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},tX=e=>fs(0,255,e),Kg={...Zu,transform:e=>Math.round(tX(e))},qa={test:N0("rgb","red"),parse:Q7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Kg.transform(e)+", "+Kg.transform(t)+", "+Kg.transform(n)+", "+uc(Sc.transform(r))+")"};function nX(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Av={test:N0("#"),parse:nX,transform:qa.transform},lu={test:N0("hsl","hue"),parse:Q7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+yu.transform(uc(t))+", "+yu.transform(uc(n))+", "+uc(Sc.transform(r))+")"},Yn={test:e=>qa.test(e)||Av.test(e)||lu.test(e),parse:e=>qa.test(e)?qa.parse(e):lu.test(e)?lu.parse(e):Av.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qa.transform(e):lu.transform(e)},rX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function iX(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(V0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(rX))===null||n===void 0?void 0:n.length)||0)>0}const e_="number",t_="color",oX="var",aX="var(",pD="${}",sX=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(sX,c=>(Yn.test(c)?(r.color.push(o),i.push(t_),n.push(Yn.parse(c))):c.startsWith(aX)?(r.var.push(o),i.push(oX),n.push(c)):(r.number.push(o),i.push(e_),n.push(parseFloat(c))),++o,pD)).split(pD);return{values:n,split:u,indexes:r,types:i}}function n_(e){return Tc(e).values}function r_(e){const{split:t,types:n}=Tc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===e_?o+=uc(i[a]):u===t_?o+=Yn.transform(i[a]):o+=i[a]}return o}}const uX=e=>typeof e=="number"?0:e;function lX(e){const t=n_(e);return r_(e)(t.map(uX))}const Ju={test:iX,parse:n_,createTransformer:r_,getAnimatableNone:lX},cX=new Set(["brightness","contrast","saturate","opacity"]);function dX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(V0)||[];if(!r)return e;const i=n.replace(r,"");let o=cX.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const fX=/\b([a-z-]*)\(.*?\)/gu,Pv={...Ju,getAnimatableNone:e=>{const t=e.match(fX);return t?t.map(dX).join(" "):e}},hX={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,backgroundPositionX:Ze,backgroundPositionY:Ze},pX={rotate:Jo,rotateX:Jo,rotateY:Jo,rotateZ:Jo,scale:vf,scaleX:vf,scaleY:vf,scaleZ:vf,skew:Jo,skewX:Jo,skewY:Jo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:Sc,originX:lD,originY:lD,originZ:Ze},mD={...Zu,transform:Math.round},j0={...hX,...pX,zIndex:mD,size:Ze,fillOpacity:Sc,strokeOpacity:Sc,numOctaves:mD},mX={...j0,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:Pv,WebkitFilter:Pv},K0=e=>mX[e];function i_(e,t){let n=K0(e);return n!==Pv&&(n=Ju),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gX=new Set(["auto","none","0"]);function yX(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!gX.has(o)&&Tc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=i_(n,i)}class o_ extends L0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),I0(d))){const f=q7(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!GJ.has(r)||t.length!==2)return;const[i,o]=t,a=hD(i),u=hD(o);if(a!==u)if(cD(a)&&cD(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)VJ(t[i])&&r.push(i);r.length&&yX(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ku[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=ku[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function U0(e){return typeof e=="function"}let Nf;function vX(){Nf=void 0}const ca={now:()=>(Nf===void 0&&ca.set(Sh.isProcessing||RJ.useManualTiming?Sh.timestamp:performance.now()),Nf),set:e=>{Nf=e,queueMicrotask(vX)}},gD=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ju.test(e)||e==="0")&&!e.startsWith("url("));function bX(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function $X(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=gD(i,t),u=gD(o,t);return Yu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:bX(e)||(n==="spring"||U0(n))&&r}const xX=40;class a_{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ca.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>xX?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&XJ(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ca.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!$X(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(Ep(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const z0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},s_=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(z0(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function u_(e,t){return t?e*(1e3/t):0}const wX=5;function l_(e,t,n){const r=Math.max(t-wX,0);return u_(n-e(r),t-r)}const Xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},yD=.001;function DX({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;Yu(e<=Do(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=fs(Xt.minDamping,Xt.maxDamping,a),e=fs(Xt.minDuration,Xt.maxDuration,la(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=_v(d,a),v=Math.exp(-h);return yD-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=_v(Math.pow(d,2),a);return(-i(d)+yD>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=CX(i,o,u);if(e=Do(e),isNaN(c))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const EX=12;function CX(e,t,n){let r=n;for(let i=1;i<EX;i++)r=r-e(r)/t(r);return r}function _v(e,t){return e*Math.sqrt(1-t*t)}const Rv=2e4;function c_(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rv;)t+=n,r=e.next(t);return t>=Rv?1/0:t}const SX=["duration","bounce"],TX=["stiffness","damping","mass"];function vD(e,t){return t.some(n=>e[n]!==void 0)}function AX(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!vD(e,TX)&&vD(e,SX))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*fs(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=DX(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function d_(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=AX({...n,velocity:-la(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=la(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=y?Xt.restDelta.granular:Xt.restDelta.default);let D;if($<1){const E=_v(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Do(v):l_(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(c_(P),Rv),T=s_(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function bD({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=d_({keyframes:[m.value,v(m.value)],velocity:l_(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const PX=ed(.42,0,1,1),_X=ed(0,0,.58,1),f_=ed(.42,0,.58,1),RX=e=>Array.isArray(e)&&typeof e[0]!="number",W0=e=>Array.isArray(e)&&typeof e[0]=="number",$D={linear:pa,easeIn:PX,easeInOut:f_,easeOut:_X,circIn:B0,circInOut:U7,circOut:LJ,backIn:k0,backInOut:j7,backOut:N7,anticipate:K7},xD=e=>{if(W0(e)){ds(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ed(t,n,r,i)}else if(typeof e=="string")return ds($D[e]!==void 0,`Invalid easing type '${e}'`),$D[e];return e},OX=(e,t)=>n=>t(e(n)),Cp=(...e)=>e.reduce(OX),Sp=(e,t,n)=>e+(t-e)*n;function Ug(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function MX({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Ug(c,u,e+1/3),o=Ug(c,u,e),a=Ug(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Th(e,t){return n=>n>0?t:e}const zg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},FX=[Av,qa,lu],kX=e=>FX.find(t=>t.test(e));function wD(e){const t=kX(e);if(Yu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===lu&&(n=MX(n)),n}const DD=(e,t)=>{const n=wD(e),r=wD(t);if(!n||!r)return Th(e,t);const i={...n};return o=>(i.red=zg(n.red,r.red,o),i.green=zg(n.green,r.green,o),i.blue=zg(n.blue,r.blue,o),i.alpha=Sp(n.alpha,r.alpha,o),qa.transform(i))},Ov=new Set(["none","hidden"]);function BX(e,t){return Ov.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function IX(e,t){return n=>Sp(e,t,n)}function H0(e){return typeof e=="number"?IX:typeof e=="string"?I0(e)?Th:Yn.test(e)?DD:NX:Array.isArray(e)?h_:typeof e=="object"?Yn.test(e)?DD:LX:Th}function h_(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>H0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function LX(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=H0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function VX(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const NX=(e,t)=>{const n=Ju.createTransformer(t),r=Tc(e),i=Tc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ov.has(e)&&!i.values.length||Ov.has(t)&&!r.values.length?BX(e,t):Cp(h_(VX(r,i),i.values),n):(Yu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Th(e,t))};function p_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Sp(e,t,n):H0(e)(e,t)}function jX(e,t,n){const r=[],i=n||p_,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||pa:t;u=Cp(c,u)}r.push(u)}return r}function KX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ds(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=jX(t,r,i),u=a.length,c=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=z0(e[f],e[f+1],d);return a[f](h)};return n?d=>c(fs(e[0],e[o-1],d)):c}function UX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=z0(0,t,r);e.push(Sp(n,1,i))}}function zX(e){const t=[0];return UX(t,e.length-1),t}function WX(e,t){return e.map(n=>n*t)}function HX(e,t){return e.map(()=>t||f_).splice(0,e.length-1)}function Ah({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=RX(r)?r.map(xD):xD(r),o={done:!1,value:t[0]},a=WX(n&&n.length===t.length?n:zX(t),e),u=KX(a,t,{ease:Array.isArray(i)?i:HX(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const GX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Br.update(t,!0),stop:()=>Cv(t),now:()=>Sh.isProcessing?Sh.timestamp:ca.now()}},qX={decay:bD,inertia:bD,tween:Ah,keyframes:Ah,spring:d_},YX=e=>e/100;class G0 extends a_{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||L0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=U0(n)?n:qX[n]||Ah;let c,d;u!==Ah&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&ds(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Cp(YX,p_(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=c_(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=fs(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=Ep(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?la(t.calculatedDuration):0}get time(){return la(this.currentTime)}set time(t){t=Do(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=la(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=GX,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const ZX=new Set(["opacity","clipPath","filter","transform"]);function q0(e){let t;return()=>(t===void 0&&(t=e()),t)}const JX={linearEasing:void 0};function XX(e,t){const n=q0(e);return()=>{var r;return(r=JX[t])!==null&&r!==void 0?r:n()}}const Ph=XX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function m_(e){return!!(typeof e=="function"&&Ph()||!e||typeof e=="string"&&(e in Mv||Ph())||W0(e)||Array.isArray(e)&&e.every(m_))}const Yl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yl([0,.65,.55,1]),circOut:Yl([.55,0,1,.45]),backIn:Yl([.31,.01,.66,-.59]),backOut:Yl([.33,1.53,.69,.99])};function g_(e,t){if(e)return typeof e=="function"&&Ph()?s_(e,t):W0(e)?Yl(e):Array.isArray(e)?e.map(n=>g_(n,t)||Mv.easeOut):Mv[e]}function QX(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=g_(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function ED(e,t){e.timeline=t,e.onfinish=null}const eQ=q0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_h=10,tQ=2e4;function nQ(e){return U0(e.type)||e.type==="spring"||!m_(e.ease)}function rQ(e,t){const n=new G0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<tQ;)r=n.sample(o),i.push(r.value),o+=_h;return{times:void 0,keyframes:i,duration:o-_h,ease:"linear"}}const y_={anticipate:K7,backInOut:j7,circInOut:U7};function iQ(e){return e in y_}class CD extends a_{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new o_(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Ph()&&iQ(a)&&(a=y_[a]),nQ(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=rQ(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=QX(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(ED(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ep(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return la(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return la(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Do(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return pa;const{animation:r}=n;ED(r,t)}return pa}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new G0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Do(this.time);d.setWithVelocity(v.sample($-_h).value,v.sample($).value,_h)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return eQ()&&r&&ZX.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const oQ=q0(()=>window.ScrollTimeline!==void 0);class aQ{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>oQ()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function sQ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const uQ=(e,t,n,r={},i,o)=>a=>{const u=k7(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Do(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};sQ(u)||(f={...f,..._J(e,f)}),f.duration&&(f.duration=Do(f.duration)),f.repeatDelay&&(f.repeatDelay=Do(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Ep(f.keyframes,u);if(m!==void 0)return Br.update(()=>{f.onUpdate(m),f.onComplete()}),new aQ([])}return!o&&CD.supports(f)?new CD(f):new G0(f)},lQ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),cQ=e=>Ev(e)?e[e.length-1]||0:e;function dQ(e,t){e.indexOf(t)===-1&&e.push(t)}function fQ(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class v_{constructor(){this.subscriptions=[]}add(t){return dQ(this.subscriptions,t),()=>fQ(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const SD=30,hQ=e=>!isNaN(parseFloat(e));class pQ{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ca.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ca.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=hQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&xp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new v_);const r=this.events[t].add(n);return t==="change"?()=>{r(),Br.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ca.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>SD)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,SD);return u_(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Rh(e,t){return new pQ(e,t)}function mQ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Rh(n))}function gQ(e,t){const n=Dp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=cQ(o[a]);mQ(e,a,u)}}const Y0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),yQ="framerAppearId",b_="data-"+Y0(yQ);function vQ(e){return e.props[b_]}const ur=e=>!!(e&&e.getVelocity);function bQ(e){return!!(ur(e)&&e.add)}function $Q(e,t){const n=e.getValue("willChange");if(bQ(n))return n.add(t)}function xQ({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&xQ(f,h))continue;const v={delay:n,...k7(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=vQ(e);if(x){const y=window.MotionHandoffAnimation(x,h,Br);y!==null&&(v.startTime=y,$=!0)}}$Q(e,h),m.start(uQ(h,m,g,e.shouldReduceMotion&&vs.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{Br.update(()=>{u&&gQ(e,u)})}),d}function Fv(e,t,n={}){var r;const i=Dp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all($_(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return wQ(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function wQ(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(DQ).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(Fv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function DQ(e,t){return e.sortNodePosition(t)}function EQ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Fv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Fv(e,t,n);else{const i=typeof t=="function"?Dp(e,t,n.custom):t;r=Promise.all($_(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const CQ=F0.length;function x_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?x_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<CQ;n++){const r=F0[n],i=e.props[r];(Cc(i)||i===!1)&&(t[r]=i)}return t}const SQ=[...M0].reverse(),TQ=M0.length;function AQ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>EQ(e,n,r)))}function PQ(e){let t=AQ(e),n=TD(),r=!0;const i=c=>(d,f)=>{var h;const m=Dp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=x_(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<TQ;C++){const x=SQ[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=Cc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||wp(D)||typeof D=="boolean")continue;const k=_Q(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;Ev(M)&&Ev(Y)?V=!F7(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=TD(),r=!0}}}function _Q(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!F7(t,e):!1}function Ba(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TD(){return{animate:Ba(!0),whileInView:Ba(),whileHover:Ba(),whileTap:Ba(),whileDrag:Ba(),whileFocus:Ba(),exit:Ba()}}class Xu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class RQ extends Xu{constructor(t){super(t),t.animationState||(t.animationState=PQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let OQ=0;class MQ extends Xu{constructor(){super(...arguments),this.id=OQ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const FQ={animation:{Feature:RQ},exit:{Feature:MQ}},kQ={x:!1,y:!1};function BQ(){return kQ.y}const IQ=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function w_(e){return{point:{x:e.pageX,y:e.pageY}}}function AD(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function D_(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const PD=()=>({min:0,max:0}),E_=()=>({x:PD(),y:PD()});function LQ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function VQ(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function NQ(e,t){return LQ(VQ(e.getBoundingClientRect(),t))}const C_=b.createContext(null),jQ=b.createContext({}),KQ=b.createContext({}),UQ={},{schedule:zQ,cancel:mie}=B7(queueMicrotask,!1);function WQ(e){const t=ur(e)?e.get():e;return lQ(t)?t.toValue():t}function HQ(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function S_(e,t){const n=HQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _D(e){return t=>{t.pointerType==="touch"||BQ()||e(t)}}function GQ(e,t,n={}){const[r,i,o]=S_(e,n),a=_D(u=>{const{target:c}=u,d=t(u);if(!d||!c)return;const f=_D(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function RD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Br.postRender(()=>o(t,w_(t)))}class qQ extends Xu{mount(){const{current:t}=this.node;t&&(this.unmount=GQ(t,n=>(RD(this.node,n,"Start"),r=>RD(this.node,r,"End"))))}unmount(){}}class YQ extends Xu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Cp(AD(this.node.current,"focus",()=>this.onFocus()),AD(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Zl=new WeakSet;function OD(e){return t=>{t.key==="Enter"&&e(t)}}function Wg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ZQ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=OD(()=>{if(Zl.has(n))return;Wg(n,"down");const i=OD(()=>{Wg(n,"up")}),o=()=>Wg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},JQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function XQ(e){return JQ.has(e.tagName)||e.tabIndex!==-1}const T_=(e,t)=>t?e===t?!0:T_(e,t.parentElement):!1;function MD(e){return IQ(e)&&!0}function QQ(e,t,n={}){const[r,i,o]=S_(e,n),a=u=>{const c=u.currentTarget;if(!MD(u)||Zl.has(c))return;Zl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!MD(g)||!Zl.has(c))&&(Zl.delete(c),d&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||T_(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{XQ(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>ZQ(d,i),i)}),o}function FD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Br.postRender(()=>o(t,w_(t)))}class eee extends Xu{mount(){const{current:t}=this.node;t&&(this.unmount=QQ(t,n=>(FD(this.node,n,"Start"),(r,{success:i})=>FD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const kv=new WeakMap,Hg=new WeakMap,tee=e=>{const t=kv.get(e.target);t&&t(e)},nee=e=>{e.forEach(tee)};function ree({root:e,...t}){const n=e||document;Hg.has(n)||Hg.set(n,{});const r=Hg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(nee,{root:e,...t})),r[i]}function iee(e,t,n){const r=ree(t);return kv.set(e,n),r.observe(e),()=>{kv.delete(e),r.unobserve(e)}}const oee={some:0,all:1};class aee extends Xu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:oee[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return iee(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(see(t,n))&&this.startObserver()}unmount(){}}function see({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const uee={inView:{Feature:aee},tap:{Feature:eee},focus:{Feature:YQ},hover:{Feature:qQ}},A_=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Tp=b.createContext({}),Z0=typeof window<"u",lee=Z0?b.useLayoutEffect:b.useEffect,J0=b.createContext({strict:!1});function cee(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(Tp),c=b.useContext(J0),d=b.useContext(C_),f=b.useContext(A_).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(KQ);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&dee(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[b_],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return lee(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),zQ.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function dee(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:P_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&D_(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function P_(e){if(e)return e.options.allowProjection!==!1?e.projection:P_(e.parent)}function fee(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):D_(n)&&(n.current=r))},[t])}function Ap(e){return wp(e.animate)||F0.some(t=>Cc(e[t]))}function __(e){return!!(Ap(e)||e.variants)}function hee(e,t){if(Ap(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Cc(n)?n:void 0,animate:Cc(r)?r:void 0}}return e.inherit!==!1?t:{}}function pee(e){const{initial:t,animate:n}=hee(e,b.useContext(Tp));return b.useMemo(()=>({initial:t,animate:n}),[kD(t),kD(n)])}function kD(e){return Array.isArray(e)?e.join(" "):e}const BD={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Bu={};for(const e in BD)Bu[e]={isEnabled:t=>BD[e].some(n=>!!t[n])};function Bv(e){for(const t in e)Bu[t]={...Bu[t],...e[t]}}const mee=Symbol.for("motionComponentSymbol");function gee({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Bv(e);function o(u,c){let d;const f={...b.useContext(A_),...u,layoutId:yee(u)},{isStatic:h}=f,m=pee(u),g=r(u,h);if(!h&&Z0){vee(f,e);const v=bee(f);d=v.MeasureLayout,m.visualElement=cee(i,g,f,t,v.ProjectionNode)}return Eo.jsxs(Tp.Provider,{value:m,children:[d&&m.visualElement?Eo.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,fee(g,m.visualElement,c),g,h,m.visualElement)]})}const a=b.forwardRef(o);return a[mee]=i,a}function yee({layoutId:e}){const t=b.useContext(jQ).id;return t&&e!==void 0?t+"-"+e:e}function vee(e,t){const n=b.useContext(J0).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Yu(!1,r):ds(!1,r)}}function bee(e){const{drag:t,layout:n}=Bu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const $ee=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function X0(e){return typeof e!="string"||e.includes("-")?!1:!!($ee.indexOf(e)>-1||/[A-Z]/u.test(e))}function R_(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const O_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function M_(e,t,n,r){R_(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(O_.has(i)?i:Y0(i),t.attrs[i])}function F_(e,{layout:t,layoutId:n}){return vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!UQ[e]||e==="opacity")}function Q0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||F_(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function k_(e,t,n){const r=Q0(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=Qc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function xee(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function wee({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:Dee(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const B_=e=>(t,n)=>{const r=b.useContext(Tp),i=b.useContext(C_),o=()=>wee(e,t,r,i);return n?o():xee(o)};function Dee(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=WQ(o[m]);let{initial:a,animate:u}=e;const c=Ap(e),d=__(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!wp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=O0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const e1=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),I_=()=>({...e1(),attrs:{}}),L_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Eee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cee=Qc.length;function See(e,t,n){let r="",i=!0;for(let o=0;o<Cee;o++){const a=Qc[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=L_(u,j0[a]);if(!c){i=!1;const f=Eee[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function t1(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(vs.has(c)){a=!0;continue}else if(G7(c)){i[c]=d;continue}else{const f=L_(d,j0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=See(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function ID(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function Tee(e,t,n){const r=ID(t,e.x,e.width),i=ID(n,e.y,e.height);return`${r} ${i}`}const Aee={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pee={offset:"strokeDashoffset",array:"strokeDasharray"};function _ee(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Aee:Pee;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function n1(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(t1(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Tee(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&_ee(m,a,u,c,!1)}const r1=e=>typeof e=="string"&&e.toLowerCase()==="svg",Ree={useVisualState:B_({scrapeMotionValuesFromProps:k_,createRenderState:I_,onMount:(e,t,{renderState:n,latestValues:r})=>{Br.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Br.render(()=>{n1(n,r,r1(t.tagName),e.transformTemplate),M_(t,n)})}})},Oee={useVisualState:B_({scrapeMotionValuesFromProps:Q0,createRenderState:e1})};function V_(e,t,n){for(const r in t)!ur(t[r])&&!F_(r,n)&&(e[r]=t[r])}function Mee({transformTemplate:e},t){return b.useMemo(()=>{const n=e1();return t1(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Fee(e,t){const n=e.style||{},r={};return V_(r,n,e),Object.assign(r,Mee(e,t)),r}function kee(e,t){const n={},r=Fee(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Bee=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Oh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Bee.has(e)}let N_=e=>!Oh(e);function Iee(e){e&&(N_=t=>t.startsWith("on")?!Oh(t):e(t))}try{Iee(require("@emotion/is-prop-valid").default)}catch{}function Lee(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(N_(i)||n===!0&&Oh(i)||!t&&!Oh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Vee(e,t,n,r){const i=b.useMemo(()=>{const o=I_();return n1(o,t,r1(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};V_(o,e.style,e),i.style={...o,...i.style}}return i}function Nee(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(X0(n)?Vee:kee)(r,o,a,n),d=Lee(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>ur(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function jee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...X0(r)?Ree:Oee,preloadedFeatures:e,useRender:Nee(i),createVisualElement:t,Component:r};return gee(a)}}const Iv={current:null},j_={current:!1};function Kee(){if(j_.current=!0,!!Z0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iv.current=e.matches;e.addListener(t),t()}else Iv.current=!1}function Uee(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ur(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&xp(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(ur(o))e.addValue(r,Rh(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Rh(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const LD=new WeakMap,zee=[...Z7,Yn,Ju],Wee=e=>zee.find(Y7(e)),VD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Hee{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=L0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=ca.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Br.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Ap(n),this.isVariantNode=__(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];c[m]!==void 0&&ur(g)&&g.set(c[m],!1)}}mount(t){this.current=t,LD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),j_.current||Kee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Iv.current,process.env.NODE_ENV!=="production"&&xp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){LD.delete(this.current),this.projection&&this.projection.unmount(),Cv(this.notifyUpdate),Cv(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=vs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Br.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Bu){const n=Bu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):E_()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<VD.length;r++){const i=VD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Uee(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Rh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(W7(i)||z7(i))?i=parseFloat(i):!Wee(i)&&Ju.test(n)&&(i=i_(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=O0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new v_),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class K_ extends Hee{constructor(){super(...arguments),this.KeyframeResolver=o_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ur(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Gee(e){return window.getComputedStyle(e)}class qee extends K_{constructor(){super(...arguments),this.type="html",this.renderInstance=R_}readValueFromInstance(t,n){if(vs.has(n)){const r=K0(n);return r&&r.default||0}else{const r=Gee(t),i=(G7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return NQ(t,n)}build(t,n,r){t1(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Q0(t,n,r)}}class Yee extends K_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E_}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vs.has(n)){const r=K0(n);return r&&r.default||0}return n=O_.has(n)?n:Y0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return k_(t,n,r)}build(t,n,r){n1(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){M_(t,n,r,i)}mount(t){this.isSVGTag=r1(t.tagName),super.mount(t)}}const Zee=(e,t)=>X0(e)?new Yee(t):new qee(t,{allowProjection:e!==b.Fragment}),Jee=jee(),Xee=CJ(Jee);function Qee({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!Gg(t)),i=b.useRef(void 0);if(!Gg(t)){const{renderer:o,...a}=t;i.current=o,Bv(a)}return b.useEffect(()=>{Gg(t)&&t().then(({renderer:o,...a})=>{Bv(a),i.current=o,r(!0)})},[]),Eo.jsx(J0.Provider,{value:{renderer:i.current,strict:n},children:e})}function Gg(e){return typeof e=="function"}const ete={renderer:Zee,...FQ,...uee};function U_(e){return t=>typeof t===e}var tte=U_("function"),nte=e=>e===null,ND=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",jD=e=>!rte(e)&&!nte(e)&&(tte(e)||typeof e=="object"),rte=U_("undefined");function ite(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}function ote(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function ate(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!lr(n[1],t.get(n[0])))return!1;return!0}function ste(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function lr(e,t){if(e===t)return!0;if(e&&jD(e)&&t&&jD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return ite(e,t);if(e instanceof Map&&t instanceof Map)return ate(e,t);if(e instanceof Set&&t instanceof Set)return ste(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return ote(e,t);if(ND(e)&&ND(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var ute=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],lte=["bigint","boolean","null","number","string","symbol","undefined"];function Pp(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(cte(t))return t}function Si(e){return t=>Pp(t)===e}function cte(e){return ute.includes(e)}function Qu(e){return t=>typeof t===e}function dte(e){return lte.includes(e)}var fte=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=Pp(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>Pp(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=Qu("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=Si("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&&fte.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=Si("Error");Oe.function=Qu("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=Si("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=Si("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>Qu("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=Si("Function");Oe.plainObject=e=>{if(Pp(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||dte(typeof e);Oe.promise=Si("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=Si("RegExp");Oe.set=Si("Set");Oe.string=Qu("string");Oe.symbol=Qu("symbol");Oe.undefined=Qu("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function hte(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function pte(e,t,n){return z_(e,t)?[e,t].every(ke.array)?!e.some(HD(n))&&t.some(HD(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(WD(n))&&Object.entries(t).some(WD(n)):t===n:!1}function KD(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=Ui(e,i),c=Ui(t,i);let d=[u,c].every(ke.number)&&(a==="increased"?u<c:u>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&u===o),d}function UD(e,t,n){const{key:r,type:i,value:o}=n,a=Ui(e,r),u=Ui(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return pte(c,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(i1(c)):[a,u].every(ke.plainObject)?mte(Object.keys(c),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function zD(e,t,{key:n}={}){let r=Ui(e,n),i=Ui(t,n);if(!z_(r,i))throw new TypeError("Inputs have different types");if(!hte(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function WD(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&i1(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function mte(e,t){return t.some(n=>!e.includes(n))}function HD(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&i1(t)(n)):lr(e,t)}function kl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function i1(e){return t=>e.some(n=>lr(n,t))}function z_(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function Ui(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function Mh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return UD(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=Ui(e,f),v=Ui(t,f),$=ke.defined(h),C=ke.defined(m);if($||C){const x=C?kl(m,g):!kl(h,g),y=kl(h,v);return x&&y}return[g,v].every(ke.array)||[g,v].every(ke.plainObject)?!lr(g,v):g!==v}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=Ui(e,f),v=Ui(t,f),$=ke.defined(m);return kl(h,g)&&($?kl(m,v):!$)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=zD(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=zD(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return UD(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var qg,GD;function gte(){if(GD)return qg;GD=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;qg={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),v=d[u],$=h.ease||o,C=isNaN(h.duration)?350:+h.duration,x=!1;return v===f?m(e,d[u]):requestAnimationFrame(D),y;function y(){x=!0}function D(P){if(x)return m(t,d[u]);var E=r(),T=n(1,(E-g)/C),k=$(T);d[u]=k*(f-v)+v,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return qg}var yte=gte();const vte=Ao(yte);var jf={exports:{}},bte=jf.exports,qD;function $te(){return qD||(qD=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(bte,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(jf)),jf.exports}var xte=$te();const W_=Ao(xte);var Yg,YD;function wte(){if(YD)return Yg;YD=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,Yg=n,Yg}var Dte=wte();const ZD=Ao(Dte);var Zg,JD;function Ete(){if(JD)return Zg;JD=1;var e=function(y){return t(y)&&!n(y)};function t(x){return!!x&&typeof x=="object"}function n(x){var y=Object.prototype.toString.call(x);return y==="[object RegExp]"||y==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function a(x){return Array.isArray(x)?[]:{}}function u(x,y){return y.clone!==!1&&y.isMergeableObject(x)?$(a(x),x,y):x}function c(x,y,D){return x.concat(y).map(function(P){return u(P,D)})}function d(x,y){if(!y.customMerge)return $;var D=y.customMerge(x);return typeof D=="function"?D:$}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(y){return Object.propertyIsEnumerable.call(x,y)}):[]}function h(x){return Object.keys(x).concat(f(x))}function m(x,y){try{return y in x}catch{return!1}}function g(x,y){return m(x,y)&&!(Object.hasOwnProperty.call(x,y)&&Object.propertyIsEnumerable.call(x,y))}function v(x,y,D){var P={};return D.isMergeableObject(x)&&h(x).forEach(function(E){P[E]=u(x[E],D)}),h(y).forEach(function(E){g(x,E)||(m(x,E)&&D.isMergeableObject(y[E])?P[E]=d(E,D)(x[E],y[E],D):P[E]=u(y[E],D))}),P}function $(x,y,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var P=Array.isArray(y),E=Array.isArray(x),T=P===E;return T?P?D.arrayMerge(x,y,D):v(x,y,D):u(y,D)}$.all=function(y,D){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(P,E){return $(P,E,D)},{})};var C=$;return Zg=C,Zg}var Cte=Ete();const bi=Ao(Cte);var bf={exports:{}},$f={exports:{}},Et={};/** @license React v16.13.1
|
|
155
|
+
`)});k.push(function(){_.style.width=g.scrollWidth+"px"}),k.push(function(){T.appendChild(_)})}});var F=g.id;if(P&&Prism.util.isActive(g,t)&&F){i(g,t)||k.push(function(){g.classList.add(t)});var G=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(K,W){var j=W+G;K.onclick=function(){var L=F+"."+j;d=!1,location.hash=L,setTimeout(function(){d=!0},1)}})}return function(){k.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(x){x.parentNode.removeChild(x)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var v=m.slice(0,m.lastIndexOf(".")),$=document.getElementById(v);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(c(g)){var v=0;r(".line-highlight",g).forEach(function($){v+=$.textContent.length,$.parentNode.removeChild($)}),v&&/^(?: \n)+$/.test(m.code.slice(-v))&&(m.code=m.code.slice(0,-v))}}),Prism.hooks.add("complete",function m(g){var v=g.element.parentElement;if(c(v)){clearTimeout(h);var $=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(v,e)&&$&&!C)Prism.hooks.add("line-numbers",m);else{var x=Prism.plugins.lineHighlight.highlightLines(v);x(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(c).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const Mx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},QP=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Mx(r.ref,n,e):r.refs&&r.refs.forEach(i=>Mx(i,n,e))}},OH=(e,t)=>{t.shouldUseNativeValidation&&QP(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(MH(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));Tt(a,"root",o),Tt(n,r,a)}else Tt(n,r,o)}return n},MH=(e,t)=>e.some(n=>n.startsWith(t+"."));function FH(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var c=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&QP({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return c&&c.then?c.then(void 0,u):c}(0,function(a){if(!a.inner)throw a;return{values:{},errors:OH((u=a,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=TC(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,c}))}catch(a){return Promise.reject(a)}}}var wg,Fx;function kH(){if(Fx)return wg;Fx=1;var e=typeof Vi=="object"&&Vi&&Vi.Object===Object&&Vi;return wg=e,wg}var Dg,kx;function BH(){if(kx)return Dg;kx=1;var e=kH(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Dg=n,Dg}var Eg,Bx;function e6(){if(Bx)return Eg;Bx=1;var e=BH(),t=e.Symbol;return Eg=t,Eg}var Cg,Ix;function IH(){if(Ix)return Cg;Ix=1;var e=e6(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(u?a[i]=c:delete a[i]),f}return Cg=o,Cg}var Sg,Lx;function LH(){if(Lx)return Sg;Lx=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Sg=n,Sg}var Tg,Vx;function VH(){if(Vx)return Tg;Vx=1;var e=e6(),t=IH(),n=LH(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return Tg=a,Tg}var Ag,Nx;function NH(){if(Nx)return Ag;Nx=1;function e(t){return t!=null&&typeof t=="object"}return Ag=e,Ag}var Pg,jx;function jH(){if(jx)return Pg;jx=1;var e=VH(),t=NH(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Pg=r,Pg}var KH=jH();const UH=Ao(KH),t6=b.createContext({});function qc(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qb=b.createContext(null),e0=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function zH(e=!0){const t=b.useContext(Qb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=b.useId();b.useEffect(()=>{e&&i(o)},[e]);const a=b.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const t0=typeof window<"u",n6=t0?b.useLayoutEffect:b.useEffect,Er=e=>e;let Hu=Er,Ji=Er;process.env.NODE_ENV!=="production"&&(Hu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ji=(e,t)=>{if(!e)throw new Error(t)});function n0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ru=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Gi=e=>e*1e3,wo=e=>e/1e3,WH={skipAnimations:!1,useManualTiming:!1};function HH(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const pf=["read","resolveKeyframes","update","preRender","render","postRender"],GH=40;function r6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=pf.reduce((x,y)=>(x[y]=HH(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,GH),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:pf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<pf.length;y++)a[pf[y]].cancel(x)},state:i,steps:a}}const{schedule:jt,cancel:So,state:Bn,steps:_g}=r6(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0),i6=b.createContext({strict:!1}),Kx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ou={};for(const e in Kx)Ou[e]={isEnabled:t=>Kx[e].some(n=>!!t[n])};function qH(e){for(const t in e)Ou[t]={...Ou[t],...e[t]}}const YH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||YH.has(e)}let o6=e=>!bh(e);function ZH(e){e&&(o6=t=>t.startsWith("on")?!bh(t):e(t))}try{ZH(require("@emotion/is-prop-valid").default)}catch{}function JH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(o6(i)||n===!0&&bh(i)||!t&&!bh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Ux=new Set;function mp(e,t,n){e||Ux.has(t)||(console.warn(t),Ux.add(t))}function XH(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&mp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const gp=b.createContext({});function xc(e){return typeof e=="string"||Array.isArray(e)}function yp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const r0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i0=["initial",...r0];function vp(e){return yp(e.animate)||i0.some(t=>xc(e[t]))}function a6(e){return!!(vp(e)||e.variants)}function QH(e,t){if(vp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xc(n)?n:void 0,animate:xc(r)?r:void 0}}return e.inherit!==!1?t:{}}function eG(e){const{initial:t,animate:n}=QH(e,b.useContext(gp));return b.useMemo(()=>({initial:t,animate:n}),[zx(t),zx(n)])}function zx(e){return Array.isArray(e)?e.join(" "):e}const tG=Symbol.for("motionComponentSymbol");function iu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nG(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):iu(n)&&(n.current=r))},[t])}const o0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rG="framerAppearId",s6="data-"+o0(rG),{schedule:a0,cancel:Gre}=r6(queueMicrotask,!1),u6=b.createContext({});function iG(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(gp),c=b.useContext(i6),d=b.useContext(Qb),f=b.useContext(e0).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(u6);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&oG(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[s6],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return n6(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),a0.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function oG(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:l6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&iu(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function l6(e){if(e)return e.options.allowProjection!==!1?e.projection:l6(e.parent)}function aG({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&qH(e);function u(d,f){let h;const m={...b.useContext(e0),...d,layoutId:sG(d)},{isStatic:g}=m,v=eG(d),$=r(d,g);if(!g&&t0){uG(m,e);const C=lG(m);h=C.MeasureLayout,v.visualElement=iG(i,$,m,t,C.ProjectionNode)}return Eo.jsxs(gp.Provider,{value:v,children:[h&&v.visualElement?Eo.jsx(h,{visualElement:v.visualElement,...m}):null,n(i,d,nG($,v.visualElement,f),$,g,v.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=b.forwardRef(u);return c[tG]=i,c}function sG({layoutId:e}){const t=b.useContext(t6).id;return t&&e!==void 0?t+"-"+e:e}function uG(e,t){const n=b.useContext(i6).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Hu(!1,r):Ji(!1,r)}}function lG(e){const{drag:t,layout:n}=Ou;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const cG=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s0(e){return typeof e!="string"||e.includes("-")?!1:!!(cG.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function u0(e,t,n,r){if(typeof t=="function"){const[i,o]=Wx(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Wx(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const uv=e=>Array.isArray(e),dG=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fG=e=>uv(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function If(e){const t=In(e)?e.get():e;return dG(t)?t.toValue():t}function hG({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:pG(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const c6=e=>(t,n)=>{const r=b.useContext(gp),i=b.useContext(Qb),o=()=>hG(e,t,r,i);return n?o():qc(o)};function pG(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=If(o[m]);let{initial:a,animate:u}=e;const c=vp(e),d=a6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!yp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=u0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const Gu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ys=new Set(Gu),d6=e=>t=>typeof t=="string"&&t.startsWith(e),f6=d6("--"),mG=d6("var(--"),l0=e=>mG(e)?gG.test(e.split("/*")[0].trim()):!1,gG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,h6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,To=(e,t,n)=>n>t?t:n<e?e:n,qu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wc={...qu,transform:e=>To(0,1,e)},mf={...qu,default:1},Yc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zo=Yc("deg"),qi=Yc("%"),Ge=Yc("px"),yG=Yc("vh"),vG=Yc("vw"),Hx={...qi,parse:e=>qi.parse(e)/100,transform:e=>qi.transform(e*100)},bG={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},$G={rotate:Zo,rotateX:Zo,rotateY:Zo,rotateZ:Zo,scale:mf,scaleX:mf,scaleY:mf,scaleZ:mf,skew:Zo,skewX:Zo,skewY:Zo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:wc,originX:Hx,originY:Hx,originZ:Ge},Gx={...qu,transform:Math.round},c0={...bG,...$G,zIndex:Gx,size:Ge,fillOpacity:wc,strokeOpacity:wc,numOctaves:Gx},xG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wG=Gu.length;function DG(e,t,n){let r="",i=!0;for(let o=0;o<wG;o++){const a=Gu[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=h6(u,c0[a]);if(!c){i=!1;const f=xG[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function d0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(ys.has(c)){a=!0;continue}else if(f6(c)){i[c]=d;continue}else{const f=h6(d,c0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=DG(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function qx(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function EG(e,t,n){const r=qx(t,e.x,e.width),i=qx(n,e.y,e.height);return`${r} ${i}`}const CG={offset:"stroke-dashoffset",array:"stroke-dasharray"},SG={offset:"strokeDashoffset",array:"strokeDasharray"};function TG(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?CG:SG;e[o.offset]=Ge.transform(-r);const a=Ge.transform(t),u=Ge.transform(n);e[o.array]=`${a} ${u}`}function f0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(d0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=EG(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&TG(m,a,u,c,!1)}const h0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),p6=()=>({...h0(),attrs:{}}),p0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function m6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const g6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function y6(e,t,n,r){m6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(g6.has(i)?i:o0(i),t.attrs[i])}const $h={};function AG(e){Object.assign($h,e)}function v6(e,{layout:t,layoutId:n}){return ys.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$h[e]||e==="opacity")}function m0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||v6(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function b6(e,t,n){const r=m0(e,t,n);for(const i in e)if(In(e[i])||In(t[i])){const o=Gu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function PG(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Yx=["x","y","width","height","cx","cy","r"],_G={useVisualState:c6({scrapeMotionValuesFromProps:b6,createRenderState:p6,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(ys.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<Yx.length;u++){const c=Yx[u];e[c]!==t[c]&&(a=!0)}a&&(jt.read(()=>PG(n,r)),jt.render(()=>{f0(r,i,p0(n.tagName),e.transformTemplate),y6(n,r)}))}})},RG={useVisualState:c6({scrapeMotionValuesFromProps:m0,createRenderState:h0})};function $6(e,t,n){for(const r in t)!In(t[r])&&!v6(r,n)&&(e[r]=t[r])}function OG({transformTemplate:e},t){return b.useMemo(()=>{const n=h0();return d0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function MG(e,t){const n=e.style||{},r={};return $6(r,n,e),Object.assign(r,OG(e,t)),r}function FG(e,t){const n={},r=MG(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function kG(e,t,n,r){const i=b.useMemo(()=>{const o=p6();return f0(o,t,p0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};$6(o,e.style,e),i.style={...o,...i.style}}return i}function BG(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(s0(n)?kG:FG)(r,o,a,n),d=JH(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>In(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function IG(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...s0(r)?_G:RG,preloadedFeatures:e,useRender:BG(i),createVisualElement:t,Component:r};return aG(a)}}function x6(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function bp(e,t,n){const r=e.getProps();return u0(r,t,n!==void 0?n:r.custom,e)}const LG=n0(()=>window.ScrollTimeline!==void 0);class VG{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(LG()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let NG=class extends VG{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function g0(e,t){return e?e[t]||e.default||e:void 0}const lv=2e4;function w6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lv;)t+=n,r=e.next(t);return t>=lv?1/0:t}function y0(e){return typeof e=="function"}function Zx(e,t){e.timeline=t,e.onfinish=null}const v0=e=>Array.isArray(e)&&typeof e[0]=="number",jG={linearEasing:void 0};function KG(e,t){const n=n0(e);return()=>{var r;return(r=jG[t])!==null&&r!==void 0?r:n()}}const xh=KG(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),D6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ru(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function E6(e){return!!(typeof e=="function"&&xh()||!e||typeof e=="string"&&(e in cv||xh())||v0(e)||Array.isArray(e)&&e.every(E6))}const Hl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hl([0,.65,.55,1]),circOut:Hl([.55,0,1,.45]),backIn:Hl([.31,.01,.66,-.59]),backOut:Hl([.33,1.53,.69,.99])};function C6(e,t){if(e)return typeof e=="function"&&xh()?D6(e,t):v0(e)?Hl(e):Array.isArray(e)?e.map(n=>C6(n,t)||cv.easeOut):cv[e]}const pi={x:!1,y:!1};function S6(){return pi.x||pi.y}function UG(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function T6(e,t){const n=UG(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Jx(e){return t=>{t.pointerType==="touch"||S6()||e(t)}}function zG(e,t,n={}){const[r,i,o]=T6(e,n),a=Jx(u=>{const{target:c}=u,d=t(u);if(typeof d!="function"||!c)return;const f=Jx(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const A6=(e,t)=>t?e===t?!0:A6(e,t.parentElement):!1,b0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,WG=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function HG(e){return WG.has(e.tagName)||e.tabIndex!==-1}const Gl=new WeakSet;function Xx(e){return t=>{t.key==="Enter"&&e(t)}}function Rg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const GG=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xx(()=>{if(Gl.has(n))return;Rg(n,"down");const i=Xx(()=>{Rg(n,"up")}),o=()=>Rg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Qx(e){return b0(e)&&!S6()}function qG(e,t,n={}){const[r,i,o]=T6(e,n),a=u=>{const c=u.currentTarget;if(!Qx(u)||Gl.has(c))return;Gl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Qx(g)||!Gl.has(c))&&(Gl.delete(c),typeof d=="function"&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||A6(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!HG(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>GG(d,i),i)}),o}function YG(e){return e==="x"||e==="y"?pi[e]?null:(pi[e]=!0,()=>{pi[e]=!1}):pi.x||pi.y?null:(pi.x=pi.y=!0,()=>{pi.x=pi.y=!1})}const P6=new Set(["width","height","top","left","right","bottom",...Gu]);let Lf;function ZG(){Lf=void 0}const Yi={now:()=>(Lf===void 0&&Yi.set(Bn.isProcessing||WH.useManualTiming?Bn.timestamp:performance.now()),Lf),set:e=>{Lf=e,queueMicrotask(ZG)}};function $0(e,t){e.indexOf(t)===-1&&e.push(t)}function x0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function JG([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}let w0=class{constructor(){this.subscriptions=[]}add(t){return $0(this.subscriptions,t),()=>x0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function _6(e,t){return t?e*(1e3/t):0}const ew=30,XG=e=>!isNaN(parseFloat(e)),rc={current:void 0};let QG=class{constructor(t,n={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Yi.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=XG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&mp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new w0);const r=this.events[t].add(n);return t==="change"?()=>{r(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return rc.current&&rc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ew)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ew);return _6(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Mu(e,t){return new QG(e,t)}function eq(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mu(n))}function tq(e,t){const n=bp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=fG(o[a]);eq(e,a,u)}}function nq(e){return!!(In(e)&&e.add)}function dv(e,t){const n=e.getValue("willChange");if(nq(n))return n.add(t)}function R6(e){return e.props[s6]}const O6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,rq=1e-7,iq=12;function oq(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=O6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>rq&&++u<iq);return a}function Zc(e,t,n,r){if(e===t&&n===r)return Er;const i=o=>oq(o,0,1,e,n);return o=>o===0||o===1?o:O6(i(o),t,r)}const M6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,F6=e=>t=>1-e(1-t),k6=Zc(.33,1.53,.69,.99),D0=F6(k6),B6=M6(D0),I6=e=>(e*=2)<1?.5*D0(e):.5*(2-Math.pow(2,-10*(e-1))),E0=e=>1-Math.sin(Math.acos(e)),L6=F6(E0),V6=M6(E0),N6=e=>/^0[^.\s]+$/u.test(e);function aq(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||N6(e):!0}const ic=e=>Math.round(e*1e5)/1e5,C0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sq(e){return e==null}const uq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,S0=(e,t)=>n=>!!(typeof n=="string"&&uq.test(n)&&n.startsWith(e)||t&&!sq(n)&&Object.prototype.hasOwnProperty.call(n,t)),j6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(C0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},lq=e=>To(0,255,e),Og={...qu,transform:e=>Math.round(lq(e))},Ga={test:S0("rgb","red"),parse:j6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Og.transform(e)+", "+Og.transform(t)+", "+Og.transform(n)+", "+ic(wc.transform(r))+")"};function cq(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const fv={test:S0("#"),parse:cq,transform:Ga.transform},ou={test:S0("hsl","hue"),parse:j6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qi.transform(ic(t))+", "+qi.transform(ic(n))+", "+ic(wc.transform(r))+")"},qn={test:e=>Ga.test(e)||fv.test(e)||ou.test(e),parse:e=>Ga.test(e)?Ga.parse(e):ou.test(e)?ou.parse(e):fv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ga.transform(e):ou.transform(e)},dq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fq(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(C0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(dq))===null||n===void 0?void 0:n.length)||0)>0}const K6="number",U6="color",hq="var",pq="var(",tw="${}",mq=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Dc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(mq,c=>(qn.test(c)?(r.color.push(o),i.push(U6),n.push(qn.parse(c))):c.startsWith(pq)?(r.var.push(o),i.push(hq),n.push(c)):(r.number.push(o),i.push(K6),n.push(parseFloat(c))),++o,tw)).split(tw);return{values:n,split:u,indexes:r,types:i}}function z6(e){return Dc(e).values}function W6(e){const{split:t,types:n}=Dc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===K6?o+=ic(i[a]):u===U6?o+=qn.transform(i[a]):o+=i[a]}return o}}const gq=e=>typeof e=="number"?0:e;function yq(e){const t=z6(e);return W6(e)(t.map(gq))}const ha={test:fq,parse:z6,createTransformer:W6,getAnimatableNone:yq},vq=new Set(["brightness","contrast","saturate","opacity"]);function bq(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(C0)||[];if(!r)return e;const i=n.replace(r,"");let o=vq.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const $q=/\b([a-z-]*)\(.*?\)/gu,hv={...ha,getAnimatableNone:e=>{const t=e.match($q);return t?t.map(bq).join(" "):e}},xq={...c0,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:hv,WebkitFilter:hv},T0=e=>xq[e];function H6(e,t){let n=T0(e);return n!==hv&&(n=ha),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const wq=new Set(["auto","none","0"]);function Dq(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!wq.has(o)&&Dc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=H6(n,i)}const nw=e=>e===qu||e===Ge,rw=(e,t)=>parseFloat(e.split(", ")[t]),iw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return rw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?rw(o[1],e):0}},Eq=new Set(["x","y","z"]),Cq=Gu.filter(e=>!Eq.has(e));function Sq(e){const t=[];return Cq.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:iw(4,13),y:iw(5,14)};Fu.translateX=Fu.x;Fu.translateY=Fu.y;const Qa=new Set;let pv=!1,mv=!1;function G6(){if(mv){const e=Array.from(Qa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Sq(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}mv=!1,pv=!1,Qa.forEach(e=>e.complete()),Qa.clear()}function q6(){Qa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mv=!0)})}function Tq(){q6(),G6()}let A0=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qa.add(this),pv||(pv=!0,jt.read(q6),jt.resolveKeyframes(G6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Qa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const Y6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Aq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pq(e){const t=Aq.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const _q=4;function Z6(e,t,n=1){Ji(n<=_q,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Pq(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Y6(a)?parseFloat(a):a}return l0(i)?Z6(i,t,n+1):i}const J6=e=>t=>t.test(e),Rq={test:e=>e==="auto",parse:e=>e},X6=[qu,Ge,qi,Zo,vG,yG,Rq],ow=e=>X6.find(J6(e));let Q6=class extends A0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),l0(d))){const f=Z6(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!P6.has(r)||t.length!==2)return;const[i,o]=t,a=ow(i),u=ow(o);if(a!==u)if(nw(a)&&nw(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)aq(t[i])&&r.push(i);r.length&&Dq(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Fu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}};const aw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ha.test(e)||e==="0")&&!e.startsWith("url("));function Oq(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Mq(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=aw(i,t),u=aw(o,t);return Hu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:Oq(e)||(n==="spring"||y0(n))&&r}const Fq=e=>e!==null;function $p(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Fq),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const kq=40;let e7=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>kq?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Tq(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!Mq(t,r,i,o))if(a)this.options.duration=0;else{c==null||c($p(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const qt=(e,t,n)=>e+(t-e)*n;function Mg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Bq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Mg(c,u,e+1/3),o=Mg(c,u,e),a=Mg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function wh(e,t){return n=>n>0?t:e}const Fg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Iq=[fv,Ga,ou],Lq=e=>Iq.find(t=>t.test(e));function sw(e){const t=Lq(e);if(Hu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ou&&(n=Bq(n)),n}const uw=(e,t)=>{const n=sw(e),r=sw(t);if(!n||!r)return wh(e,t);const i={...n};return o=>(i.red=Fg(n.red,r.red,o),i.green=Fg(n.green,r.green,o),i.blue=Fg(n.blue,r.blue,o),i.alpha=qt(n.alpha,r.alpha,o),Ga.transform(i))},Vq=(e,t)=>n=>t(e(n)),Jc=(...e)=>e.reduce(Vq),gv=new Set(["none","hidden"]);function Nq(e,t){return gv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jq(e,t){return n=>qt(e,t,n)}function P0(e){return typeof e=="number"?jq:typeof e=="string"?l0(e)?wh:qn.test(e)?uw:zq:Array.isArray(e)?t7:typeof e=="object"?qn.test(e)?uw:Kq:wh}function t7(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>P0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Kq(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=P0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Uq(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const zq=(e,t)=>{const n=ha.createTransformer(t),r=Dc(e),i=Dc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gv.has(e)&&!i.values.length||gv.has(t)&&!r.values.length?Nq(e,t):Jc(t7(Uq(r,i),i.values),n):(Hu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),wh(e,t))};function n7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qt(e,t,n):P0(e)(e,t)}const Wq=5;function r7(e,t,n){const r=Math.max(t-Wq,0);return _6(n-e(r),t-r)}const Jt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},lw=.001;function Hq({duration:e=Jt.duration,bounce:t=Jt.bounce,velocity:n=Jt.velocity,mass:r=Jt.mass}){let i,o;Hu(e<=Gi(Jt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=To(Jt.minDamping,Jt.maxDamping,a),e=To(Jt.minDuration,Jt.maxDuration,wo(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=yv(d,a),v=Math.exp(-h);return lw-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=yv(Math.pow(d,2),a);return(-i(d)+lw>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=qq(i,o,u);if(e=Gi(e),isNaN(c))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const Gq=12;function qq(e,t,n){let r=n;for(let i=1;i<Gq;i++)r=r-e(r)/t(r);return r}function yv(e,t){return e*Math.sqrt(1-t*t)}const Yq=["duration","bounce"],Zq=["stiffness","damping","mass"];function cw(e,t){return t.some(n=>e[n]!==void 0)}function Jq(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!cw(e,Zq)&&cw(e,Yq))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*To(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Jt.mass,stiffness:i,damping:o}}else{const n=Hq(e);t={...t,...n,mass:Jt.mass},t.isResolvedFromDuration=!0}return t}function i7(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=Jq({...n,velocity:-wo(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=wo(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=y?Jt.restDelta.granular:Jt.restDelta.default);let D;if($<1){const E=yv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Gi(v):r7(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(w6(P),lv),T=D6(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function dw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=i7({keyframes:[m.value,v(m.value)],velocity:r7(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const Xq=Zc(.42,0,1,1),Qq=Zc(0,0,.58,1),o7=Zc(.42,0,.58,1),eY=e=>Array.isArray(e)&&typeof e[0]!="number",fw={linear:Er,easeIn:Xq,easeInOut:o7,easeOut:Qq,circIn:E0,circInOut:V6,circOut:L6,backIn:D0,backInOut:B6,backOut:k6,anticipate:I6},hw=e=>{if(v0(e)){Ji(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Zc(t,n,r,i)}else if(typeof e=="string")return Ji(fw[e]!==void 0,`Invalid easing type '${e}'`),fw[e];return e};function tY(e,t,n){const r=[],i=n||n7,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Er:t;u=Jc(c,u)}r.push(u)}return r}function a7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Ji(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=tY(t,r,i),c=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=Ru(e[h],e[h+1],f);return u[h](m)};return n?f=>d(To(e[0],e[o-1],f)):d}function nY(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ru(0,t,r);e.push(qt(n,1,i))}}function rY(e){const t=[0];return nY(t,e.length-1),t}function iY(e,t){return e.map(n=>n*t)}function oY(e,t){return e.map(()=>t||o7).splice(0,e.length-1)}function Dh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=eY(r)?r.map(hw):hw(r),o={done:!1,value:t[0]},a=iY(n&&n.length===t.length?n:rY(t),e),u=a7(a,t,{ease:Array.isArray(i)?i:oY(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const aY=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jt.update(t,!0),stop:()=>So(t),now:()=>Bn.isProcessing?Bn.timestamp:Yi.now()}},sY={decay:dw,inertia:dw,tween:Dh,keyframes:Dh,spring:i7},uY=e=>e/100;let _0=class extends e7{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||A0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=y0(n)?n:sY[n]||Dh;let c,d;u!==Dh&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Ji(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Jc(uY,n7(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=w6(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=To(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=$p(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?wo(t.calculatedDuration):0}get time(){return wo(this.currentTime)}set time(t){t=Gi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=wo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=aY,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const lY=new Set(["opacity","clipPath","filter","transform"]);function cY(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=C6(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const dY=n0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Eh=10,fY=2e4;function hY(e){return y0(e.type)||e.type==="spring"||!E6(e.ease)}function pY(e,t){const n=new _0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<fY;)r=n.sample(o),i.push(r.value),o+=Eh;return{times:void 0,keyframes:i,duration:o-Eh,ease:"linear"}}const s7={anticipate:I6,backInOut:B6,circInOut:V6};function mY(e){return e in s7}let pw=class extends e7{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Q6(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&xh()&&mY(a)&&(a=s7[a]),hY(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=pY(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=cY(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(Zx(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set($p(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Gi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Er;const{animation:r}=n;Zx(r,t)}return Er}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new _0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Gi(this.time);d.setWithVelocity(v.sample($-Eh).value,v.sample($).value,Eh)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return dY()&&r&&lY.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const gY={type:"spring",stiffness:500,damping:25,restSpeed:10},yY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vY={type:"keyframes",duration:.8},bY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$Y=(e,{keyframes:t})=>t.length>2?vY:ys.has(e)?e.startsWith("scale")?yY(t[1]):gY:bY;function xY({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const R0=(e,t,n,r={},i,o)=>a=>{const u=g0(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Gi(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};xY(u)||(f={...f,...$Y(e,f)}),f.duration&&(f.duration=Gi(f.duration)),f.repeatDelay&&(f.repeatDelay=Gi(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=$p(f.keyframes,u);if(m!==void 0)return jt.update(()=>{f.onUpdate(m),f.onComplete()}),new NG([])}return!o&&pw.supports(f)?new pw(f):new _0(f)};function wY({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function u7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&wY(f,h))continue;const v={delay:n,...g0(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=R6(e);if(x){const y=window.MotionHandoffAnimation(x,h,jt);y!==null&&(v.startTime=y,$=!0)}}dv(e,h),m.start(R0(h,m,g,e.shouldReduceMotion&&P6.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{jt.update(()=>{u&&tq(e,u)})}),d}function vv(e,t,n={}){var r;const i=bp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(u7(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return DY(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function DY(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(EY).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(vv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function EY(e,t){return e.sortNodePosition(t)}function CY(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>vv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=vv(e,t,n);else{const i=typeof t=="function"?bp(e,t,n.custom):t;r=Promise.all(u7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const SY=i0.length;function l7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?l7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<SY;n++){const r=i0[n],i=e.props[r];(xc(i)||i===!1)&&(t[r]=i)}return t}const TY=[...r0].reverse(),AY=r0.length;function PY(e){return t=>Promise.all(t.map(({animation:n,options:r})=>CY(e,n,r)))}function _Y(e){let t=PY(e),n=mw(),r=!0;const i=c=>(d,f)=>{var h;const m=bp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=l7(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<AY;C++){const x=TY[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=xc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||yp(D)||typeof D=="boolean")continue;const k=RY(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;uv(M)&&uv(Y)?V=!x6(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=mw(),r=!0}}}function RY(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!x6(t,e):!1}function ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mw(){return{animate:ka(!0),whileInView:ka(),whileHover:ka(),whileTap:ka(),whileDrag:ka(),whileFocus:ka(),exit:ka()}}let va=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},OY=class extends va{constructor(t){super(t),t.animationState||(t.animationState=_Y(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();yp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},MY=0,FY=class extends va{constructor(){super(...arguments),this.id=MY++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const kY={animation:{Feature:OY},exit:{Feature:FY}};function Ec(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xc(e){return{point:{x:e.pageX,y:e.pageY}}}const BY=e=>t=>b0(t)&&e(t,Xc(t));function oc(e,t,n,r){return Ec(e,t,BY(n),r)}const gw=(e,t)=>Math.abs(e-t);function IY(e,t){const n=gw(e.x,t.x),r=gw(e.y,t.y);return Math.sqrt(n**2+r**2)}class c7{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Bg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=IY(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:v}=h,{timestamp:$}=Bn;this.history.push({...v,timestamp:$});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=kg(m,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Bg(h.type==="pointercancel"?this.lastMoveEventInfo:kg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),v&&v(h,C)},!b0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Xc(t),u=kg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Bn;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Bg(u,this.history)),this.removeListeners=Jc(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),So(this.updatePoint)}}function kg(e,t){return t?{point:t(e.point)}:e}function yw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Bg({point:e},t){return{point:e,delta:yw(e,d7(t)),offset:yw(e,LY(t)),velocity:VY(t,.1)}}function LY(e){return e[0]}function d7(e){return e[e.length-1]}function VY(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=d7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Gi(t)));)n--;if(!r)return{x:0,y:0};const o=wo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const f7=1e-4,NY=1-f7,jY=1+f7,h7=.01,KY=0-h7,UY=0+h7;function kr(e){return e.max-e.min}function zY(e,t,n){return Math.abs(e-t)<=n}function vw(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=kr(n)/kr(t),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=NY&&e.scale<=jY||isNaN(e.scale))&&(e.scale=1),(e.translate>=KY&&e.translate<=UY||isNaN(e.translate))&&(e.translate=0)}function ac(e,t,n,r){vw(e.x,t.x,n.x,r?r.originX:void 0),vw(e.y,t.y,n.y,r?r.originY:void 0)}function bw(e,t,n){e.min=n.min+t.min,e.max=e.min+kr(t)}function WY(e,t,n){bw(e.x,t.x,n.x),bw(e.y,t.y,n.y)}function $w(e,t,n){e.min=t.min-n.min,e.max=e.min+kr(t)}function sc(e,t,n){$w(e.x,t.x,n.x),$w(e.y,t.y,n.y)}function HY(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function xw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function GY(e,{top:t,left:n,bottom:r,right:i}){return{x:xw(e.x,n,i),y:xw(e.y,t,r)}}function ww(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function qY(e,t){return{x:ww(e.x,t.x),y:ww(e.y,t.y)}}function YY(e,t){let n=.5;const r=kr(e),i=kr(t);return i>r?n=Ru(t.min,t.max-r,e.min):r>i&&(n=Ru(e.min,e.max-i,t.min)),To(0,1,n)}function ZY(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const bv=.35;function JY(e=bv){return e===!1?e=0:e===!0&&(e=bv),{x:Dw(e,"left","right"),y:Dw(e,"top","bottom")}}function Dw(e,t,n){return{min:Ew(e,t),max:Ew(e,n)}}function Ew(e,t){return typeof e=="number"?e:e[t]||0}const Cw=()=>({translate:0,scale:1,origin:0,originPoint:0}),au=()=>({x:Cw(),y:Cw()}),Sw=()=>({min:0,max:0}),cn=()=>({x:Sw(),y:Sw()});function Qr(e){return[e("x"),e("y")]}function p7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function XY({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function QY(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ig(e){return e===void 0||e===1}function $v({scale:e,scaleX:t,scaleY:n}){return!Ig(e)||!Ig(t)||!Ig(n)}function Ia(e){return $v(e)||m7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m7(e){return Tw(e.x)||Tw(e.y)}function Tw(e){return e&&e!=="0%"}function Ch(e,t,n){const r=e-n,i=t*r;return n+i}function Aw(e,t,n,r,i){return i!==void 0&&(e=Ch(e,i,r)),Ch(e,n,r)+t}function xv(e,t=0,n=1,r,i){e.min=Aw(e.min,t,n,r,i),e.max=Aw(e.max,t,n,r,i)}function g7(e,{x:t,y:n}){xv(e.x,t.translate,t.scale,t.originPoint),xv(e.y,n.translate,n.scale,n.originPoint)}const Pw=.999999999999,_w=1.0000000000001;function eZ(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&uu(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,g7(e,a)),r&&Ia(o.latestValues)&&uu(e,o.latestValues))}t.x<_w&&t.x>Pw&&(t.x=1),t.y<_w&&t.y>Pw&&(t.y=1)}function su(e,t){e.min=e.min+t,e.max=e.max+t}function Rw(e,t,n,r,i=.5){const o=qt(e.min,e.max,i);xv(e,t,n,o,r)}function uu(e,t){Rw(e.x,t.x,t.scaleX,t.scale,t.originX),Rw(e.y,t.y,t.scaleY,t.scale,t.originY)}function y7(e,t){return p7(QY(e.getBoundingClientRect(),t))}function tZ(e,t,n){const r=y7(e,n),{scroll:i}=t;return i&&(su(r.x,i.offset.x),su(r.y,i.offset.y)),r}const v7=({current:e})=>e?e.ownerDocument.defaultView:null,nZ=new WeakMap;class rZ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xc(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=YG(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qr(C=>{let x=this.getAxisMotionValue(C).get()||0;if(qi.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const D=y.layout.layoutBox[C];D&&(x=kr(D)*(parseFloat(x)/100))}}this.originPoint[C]=x}),v&&jt.postRender(()=>v(f,h)),dv(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:$}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=iZ(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),$&&$(f,h)},u=(f,h)=>this.stop(f,h),c=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new c7(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:v7(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&jt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!gf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=HY(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&iu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=GY(i.layoutBox,n):this.constraints=!1,this.elastic=JY(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=ZY(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!iu(t))return!1;const r=t.current;Ji(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=tZ(r,i.root,this.visualElement.getTransformPagePoint());let a=qY(i.layout.layoutBox,o);if(n){const u=n(XY(a));this.hasMutatedConstraints=!!u,u&&(a=p7(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Qr(f=>{if(!gf(f,n,this.currentDirection))return;let h=c[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return dv(this.visualElement,t),r.start(R0(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qr(n=>{const{drag:r}=this.getProps();if(!gf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-qt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!iu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const c=u.get();i[a]=YY({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!gf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(qt(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;nZ.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();iu(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jt.read(r);const a=Ec(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=bv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function gf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function iZ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class oZ extends va{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new rZ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ow=e=>(t,n)=>{e&&jt.postRender(()=>e(t,n))};class aZ extends va{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new c7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:v7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ow(t),onStart:Ow(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&jt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=oc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Vf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=Mw(e,t.target.x),r=Mw(e,t.target.y);return`${n}% ${r}%`}},sZ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ha.parse(e);if(i.length>5)return r;const o=ha.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=c;const d=qt(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class uZ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;AG(lZ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Vf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||jt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),a0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function b7(e){const[t,n]=zH(),r=b.useContext(t6);return Eo.jsx(uZ,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(u6),isPresent:t,safeToRemove:n})}const lZ={borderRadius:{...Fl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fl,borderTopRightRadius:Fl,borderBottomLeftRadius:Fl,borderBottomRightRadius:Fl,boxShadow:sZ};function cZ(e,t,n){const r=In(e)?e:Mu(e);return r.start(R0("",r,t,n)),r.animation}function dZ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const fZ=(e,t)=>e.depth-t.depth;class hZ{constructor(){this.children=[],this.isDirty=!1}add(t){$0(this.children,t),this.isDirty=!0}remove(t){x0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(fZ),this.isDirty=!1,this.children.forEach(t)}}function pZ(e,t){const n=Yi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(So(r),e(o-t))};return jt.read(r,!0),()=>So(r)}const $7=["TopLeft","TopRight","BottomLeft","BottomRight"],mZ=$7.length,Fw=e=>typeof e=="string"?parseFloat(e):e,kw=e=>typeof e=="number"||Ge.test(e);function gZ(e,t,n,r,i,o){i?(e.opacity=qt(0,n.opacity!==void 0?n.opacity:1,yZ(r)),e.opacityExit=qt(t.opacity!==void 0?t.opacity:1,0,vZ(r))):o&&(e.opacity=qt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<mZ;a++){const u=`border${$7[a]}Radius`;let c=Bw(t,u),d=Bw(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||kw(c)===kw(d)?(e[u]=Math.max(qt(Fw(c),Fw(d),r),0),(qi.test(d)||qi.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function Bw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const yZ=x7(0,.5,L6),vZ=x7(.5,.95,Er);function x7(e,t,n){return r=>r<e?0:r>t?1:n(Ru(e,t,r))}function Iw(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){Iw(e.x,t.x),Iw(e.y,t.y)}function Lw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vw(e,t,n,r,i){return e-=t,e=Ch(e,1/n,r),i!==void 0&&(e=Ch(e,1/i,r)),e}function bZ(e,t=0,n=1,r=.5,i,o=e,a=e){if(qi.test(t)&&(t=parseFloat(t),t=qt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=qt(o.min,o.max,r);e===o&&(u-=t),e.min=Vw(e.min,t,n,u,i),e.max=Vw(e.max,t,n,u,i)}function Nw(e,t,[n,r,i],o,a){bZ(e,t[n],t[r],t[i],t.scale,o,a)}const $Z=["x","scaleX","originX"],xZ=["y","scaleY","originY"];function jw(e,t,n,r){Nw(e.x,t,$Z,n?n.x:void 0,r?r.x:void 0),Nw(e.y,t,xZ,n?n.y:void 0,r?r.y:void 0)}function Kw(e){return e.translate===0&&e.scale===1}function w7(e){return Kw(e.x)&&Kw(e.y)}function Uw(e,t){return e.min===t.min&&e.max===t.max}function wZ(e,t){return Uw(e.x,t.x)&&Uw(e.y,t.y)}function zw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function D7(e,t){return zw(e.x,t.x)&&zw(e.y,t.y)}function Ww(e){return kr(e.x)/kr(e.y)}function Hw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class DZ{constructor(){this.members=[]}add(t){$0(this.members,t),t.scheduleRender()}remove(t){if(x0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function EZ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const La={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ql=typeof window<"u"&&window.MotionDebug!==void 0,Lg=["","X","Y","Z"],CZ={visibility:"hidden"},Gw=1e3;let SZ=0;function Vg(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function E7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=R6(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&E7(r)}function C7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=SZ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ql&&(La.totalNodes=La.resolvedTargetDeltas=La.recalculatedProjection=0),this.nodes.forEach(PZ),this.nodes.forEach(FZ),this.nodes.forEach(kZ),this.nodes.forEach(_Z),ql&&window.MotionDebug.record(La)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new hZ)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new w0),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=dZ(a),this.instance=a;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=pZ(m,250),Vf.hasAnimatedSinceResize&&(Vf.hasAnimatedSinceResize=!1,this.nodes.forEach(Yw))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||NZ,{onLayoutAnimationStart:C,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!D7(this.targetLayout,v)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const P={...g0($,"layout"),onPlay:C,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||Yw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,So(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(BZ),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&E7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qw);return}this.isUpdating||this.nodes.forEach(OZ),this.isUpdating=!1,this.nodes.forEach(MZ),this.nodes.forEach(TZ),this.nodes.forEach(AZ),this.clearAllSnapshots();const u=Yi.now();Bn.delta=To(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,_g.update.process(Bn),_g.preRender.process(Bn),_g.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,a0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(RZ),this.sharedNodes.forEach(IZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!w7(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||Ia(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),jZ(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(KZ))){const{scroll:f}=this.root;f&&(su(c.x,f.offset.x),su(c.y,f.offset.y))}return c}removeElementScroll(a){var u;const c=cn();if(Jr(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(c,a),su(c.x,h.offset.x),su(c.y,h.offset.y))}return c}applyTransform(a,u=!1){const c=cn();Jr(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&uu(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ia(f.latestValues)&&uu(c,f.latestValues)}return Ia(this.latestValues)&&uu(c,this.latestValues),c}removeTransform(a){const u=cn();Jr(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ia(d.latestValues))continue;$v(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),jw(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return Ia(this.latestValues)&&jw(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=cn(),this.targetWithTransforms=cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),WY(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),g7(this.target,this.targetDelta)):Jr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ql&&La.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$v(this.parent.latestValues)||m7(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;eZ(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Lw(this.prevProjectionDelta.x,this.projectionDelta.x),Lw(this.prevProjectionDelta.y,this.projectionDelta.y)),ac(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!Hw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),ql&&La.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=au(),this.projectionDelta=au(),this.projectionDeltaWithTransform=au()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=au();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const m=cn(),g=c?c.source:void 0,v=this.layout?this.layout.source:void 0,$=g!==v,C=this.getStack(),x=!C||C.members.length<=1,y=!!($&&!x&&this.options.crossfade===!0&&!this.path.some(VZ));this.animationProgress=0;let D;this.mixTargetDelta=P=>{const E=P/1e3;Zw(h.x,a.x,E),Zw(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LZ(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&wZ(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),$&&(this.animationValues=f,gZ(f,d,this.latestValues,E,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(So(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{Vf.hasAnimatedSinceResize=!0,this.currentAnimation=cZ(0,Gw,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:f}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&S7(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||cn();const h=kr(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const m=kr(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Jr(u,c),uu(u,f),ac(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new DZ),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&Vg("z",a,d,this.animationValues);for(let f=0;f<Lg.length;f++)Vg(`rotate${Lg[f]}`,a,d,this.animationValues),Vg(`skew${Lg[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return CZ;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=If(a==null?void 0:a.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const $={};return this.options.layoutId&&($.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,$.pointerEvents=If(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ia(this.latestValues)&&($.transform=f?f({},""):"none",this.hasProjected=!1),$}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=EZ(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y:v}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const $ in $h){if(m[$]===void 0)continue;const{correct:C,applyTo:x}=$h[$],y=d.transform==="none"?m[$]:C(m[$],h);if(x){const D=x.length;for(let P=0;P<D;P++)d[x[P]]=y}else d[$]=y}return this.options.layoutId&&(d.pointerEvents=h===this?If(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(qw),this.root.sharedNodes.clear()}}}function TZ(e){e.updateLayout()}function AZ(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(m);m.min=r[h].min,m.max=m.min+g}):S7(o,n.layoutBox,r)&&Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=au();ac(u,r,n.layoutBox);const c=au();a?ac(c,e.applyTransform(i,!0),n.measuredBox):ac(c,r,n.layoutBox);const d=!w7(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const v=cn();sc(v,n.layoutBox,m.layoutBox);const $=cn();sc($,r,g.layoutBox),D7(v,$)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function PZ(e){ql&&La.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function _Z(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function RZ(e){e.clearSnapshot()}function qw(e){e.clearMeasurements()}function OZ(e){e.isLayoutDirty=!1}function MZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function FZ(e){e.resolveTargetDelta()}function kZ(e){e.calcProjection()}function BZ(e){e.resetSkewAndRotation()}function IZ(e){e.removeLeadSnapshot()}function Zw(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jw(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function LZ(e,t,n,r){Jw(e.x,t.x,n.x,r),Jw(e.y,t.y,n.y,r)}function VZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const NZ={duration:.45,ease:[.4,0,.1,1]},Xw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Qw=Xw("applewebkit/")&&!Xw("chrome/")?Math.round:Er;function eD(e){e.min=Qw(e.min),e.max=Qw(e.max)}function jZ(e){eD(e.x),eD(e.y)}function S7(e,t,n){return e==="position"||e==="preserve-aspect"&&!zY(Ww(t),Ww(n),.2)}function KZ(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const UZ=C7({attachResizeListener:(e,t)=>Ec(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ng={current:void 0},T7=C7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ng.current){const e=new UZ({});e.mount(window),e.setOptions({layoutScroll:!0}),Ng.current=e}return Ng.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),zZ={pan:{Feature:aZ},drag:{Feature:oZ,ProjectionNode:T7,MeasureLayout:b7}};function tD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&jt.postRender(()=>o(t,Xc(t)))}let WZ=class extends va{mount(){const{current:t}=this.node;t&&(this.unmount=zG(t,n=>(tD(this.node,n,"Start"),r=>tD(this.node,r,"End"))))}unmount(){}},HZ=class extends va{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Jc(Ec(this.node.current,"focus",()=>this.onFocus()),Ec(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function nD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&jt.postRender(()=>o(t,Xc(t)))}let GZ=class extends va{mount(){const{current:t}=this.node;t&&(this.unmount=qG(t,n=>(nD(this.node,n,"Start"),(r,{success:i})=>nD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const wv=new WeakMap,jg=new WeakMap,qZ=e=>{const t=wv.get(e.target);t&&t(e)},YZ=e=>{e.forEach(qZ)};function ZZ({root:e,...t}){const n=e||document;jg.has(n)||jg.set(n,{});const r=jg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(YZ,{root:e,...t})),r[i]}function JZ(e,t,n){const r=ZZ(t);return wv.set(e,n),r.observe(e),()=>{wv.delete(e),r.unobserve(e)}}const XZ={some:0,all:1};let QZ=class extends va{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:XZ[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return JZ(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(eJ(t,n))&&this.startObserver()}unmount(){}};function eJ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tJ={inView:{Feature:QZ},tap:{Feature:GZ},focus:{Feature:HZ},hover:{Feature:WZ}},nJ={layout:{ProjectionNode:T7,MeasureLayout:b7}},Dv={current:null},A7={current:!1};function rJ(){if(A7.current=!0,!!t0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dv.current=e.matches;e.addListener(t),t()}else Dv.current=!1}const iJ=[...X6,qn,ha],oJ=e=>iJ.find(J6(e)),rD=new WeakMap;function aJ(e,t,n){for(const r in t){const i=t[r],o=n[r];if(In(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&mp(i.version==="11.18.0",`Attempting to mix Motion versions ${i.version} with 11.18.0 may not work as expected.`);else if(In(o))e.addValue(r,Mu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Mu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const iD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let sJ=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=A0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Yi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,jt.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=vp(n),this.isVariantNode=a6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const v=m[g];c[g]!==void 0&&In(v)&&v.set(c[g],!1)}}mount(t){this.current=t,rD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),A7.current||rJ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dv.current,process.env.NODE_ENV!=="production"&&mp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){rD.delete(this.current),this.projection&&this.projection.unmount(),So(this.notifyUpdate),So(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ys.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&jt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ou){const n=Ou[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<iD.length;r++){const i=iD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=aJ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Mu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Y6(i)||N6(i))?i=parseFloat(i):!oJ(i)&&ha.test(n)&&(i=H6(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=u0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new w0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},P7=class extends sJ{constructor(){super(...arguments),this.KeyframeResolver=Q6}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;In(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function uJ(e){return window.getComputedStyle(e)}let lJ=class extends P7{constructor(){super(...arguments),this.type="html",this.renderInstance=m6}readValueFromInstance(t,n){if(ys.has(n)){const r=T0(n);return r&&r.default||0}else{const r=uJ(t),i=(f6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return y7(t,n)}build(t,n,r){d0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return m0(t,n,r)}},cJ=class extends P7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ys.has(n)){const r=T0(n);return r&&r.default||0}return n=g6.has(n)?n:o0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return b6(t,n,r)}build(t,n,r){f0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){y6(t,n,r,i)}mount(t){this.isSVGTag=p0(t.tagName),super.mount(t)}};const dJ=(e,t)=>s0(e)?new cJ(t):new lJ(t,{allowProjection:e!==b.Fragment}),fJ=IG({...kY,...tJ,...zZ,...nJ},dJ),_7=XH(fJ);function R7(e){const t=qc(()=>Mu(e)),{isStatic:n}=b.useContext(e0);if(n){const[,r]=b.useState(e);b.useEffect(()=>t.on("change",r),[])}return t}function O7(e,t){const n=R7(t()),r=()=>n.set(t());return r(),n6(()=>{const i=()=>jt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),So(r)}}),n}const hJ=e=>e&&typeof e=="object"&&e.mix,pJ=e=>hJ(e)?e.mix:void 0;function mJ(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],u=a7(i,o,{mixer:pJ(o[0]),...a});return t?u(r):u}function gJ(e){rc.current=[],e();const t=O7(rc.current,e);return rc.current=void 0,t}function yJ(e,t,n,r){if(typeof e=="function")return gJ(e);const i=typeof t=="function"?t:mJ(t,n,r);return Array.isArray(e)?oD(e,i):oD([e],([o])=>i(o))}function oD(e,t){const n=qc(()=>[]);return O7(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const M7=b.createContext(null);function vJ(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],c=a.layout,d=qt(c.min,c.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?JG(e,i,i+o):e}function bJ({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=qc(()=>_7[t]),c=[],d=b.useRef(!1);Ji(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=c.findIndex(v=>h===v.value);g!==-1?c[g].layout=m[n]:c.push({value:h,layout:m[n]}),c.sort(wJ)},updateOrder:(h,m,g)=>{if(d.current)return;const v=vJ(c,h,m,g);c!==v&&(d.current=!0,r(v.map(xJ).filter($=>i.indexOf($)!==-1)))}};return b.useEffect(()=>{d.current=!1}),Eo.jsx(u,{...o,ref:a,ignoreStrict:!0,children:Eo.jsx(M7.Provider,{value:f,children:e})})}const $J=b.forwardRef(bJ);function xJ(e){return e.value}function wJ(e,t){return e.layout.min-t.layout.min}function aD(e,t=0){return In(e)?e:R7(t)}function DJ({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const c=qc(()=>_7[r]),d=b.useContext(M7),f={x:aD(t.x),y:aD(t.y)},h=yJ([f.x,f.y],([$,C])=>$||C?1:"unset");Ji(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:v}=d;return Eo.jsx(c,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:($,C)=>{const{velocity:x}=C;x[m]&&v(n,f[m].get(),x[m]),i&&i($,C)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const EJ=b.forwardRef(DJ),sD=new Set;function xp(e,t,n){e||sD.has(t)||(console.warn(t),sD.add(t))}function CJ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&xp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function wp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ev=e=>Array.isArray(e);function F7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Cc(e){return typeof e=="string"||Array.isArray(e)}function uD(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function O0(e,t,n,r){if(typeof t=="function"){const[i,o]=uD(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=uD(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Dp(e,t,n){const r=e.getProps();return O0(r,t,n!==void 0?n:r.custom,e)}const M0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],F0=["initial",...M0],Qc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vs=new Set(Qc),Do=e=>e*1e3,la=e=>e/1e3,SJ={type:"spring",stiffness:500,damping:25,restSpeed:10},TJ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),AJ={type:"keyframes",duration:.8},PJ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_J=(e,{keyframes:t})=>t.length>2?AJ:vs.has(e)?e.startsWith("scale")?TJ(t[1]):SJ:PJ;function k7(e,t){return e?e[t]||e.default||e:void 0}const RJ={skipAnimations:!1,useManualTiming:!1},OJ=e=>e!==null;function Ep(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(OJ),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const pa=e=>e;let Yu=pa,ds=pa;process.env.NODE_ENV!=="production"&&(Yu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ds=(e,t)=>{if(!e)throw new Error(t)});function MJ(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const yf=["read","resolveKeyframes","update","preRender","render","postRender"],FJ=40;function B7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=yf.reduce((x,y)=>(x[y]=MJ(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,FJ),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:yf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<yf.length;y++)a[yf[y]].cancel(x)},state:i,steps:a}}const{schedule:Br,cancel:Cv,state:Sh,steps:pie}=B7(typeof requestAnimationFrame<"u"?requestAnimationFrame:pa,!0),I7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kJ=1e-7,BJ=12;function IJ(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=I7(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>kJ&&++u<BJ);return a}function ed(e,t,n,r){if(e===t&&n===r)return pa;const i=o=>IJ(o,0,1,e,n);return o=>o===0||o===1?o:I7(i(o),t,r)}const L7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,V7=e=>t=>1-e(1-t),N7=ed(.33,1.53,.69,.99),k0=V7(N7),j7=L7(k0),K7=e=>(e*=2)<1?.5*k0(e):.5*(2-Math.pow(2,-10*(e-1))),B0=e=>1-Math.sin(Math.acos(e)),LJ=V7(B0),U7=L7(B0),z7=e=>/^0[^.\s]+$/u.test(e);function VJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||z7(e):!0}const W7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),H7=e=>t=>typeof t=="string"&&t.startsWith(e),G7=H7("--"),NJ=H7("var(--"),I0=e=>NJ(e)?jJ.test(e.split("/*")[0].trim()):!1,jJ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,KJ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UJ(e){const t=KJ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const zJ=4;function q7(e,t,n=1){ds(n<=zJ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=UJ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return W7(a)?parseFloat(a):a}return I0(i)?q7(i,t,n+1):i}const fs=(e,t,n)=>n>t?t:n<e?e:n,Zu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Sc={...Zu,transform:e=>fs(0,1,e)},vf={...Zu,default:1},td=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jo=td("deg"),yu=td("%"),Ze=td("px"),WJ=td("vh"),HJ=td("vw"),lD={...yu,parse:e=>yu.parse(e)/100,transform:e=>yu.transform(e*100)},GJ=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cD=e=>e===Zu||e===Ze,dD=(e,t)=>parseFloat(e.split(", ")[t]),fD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return dD(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?dD(o[1],e):0}},qJ=new Set(["x","y","z"]),YJ=Qc.filter(e=>!qJ.has(e));function ZJ(e){const t=[];return YJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ku={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:fD(4,13),y:fD(5,14)};ku.translateX=ku.x;ku.translateY=ku.y;const Y7=e=>t=>t.test(e),JJ={test:e=>e==="auto",parse:e=>e},Z7=[Zu,Ze,yu,Jo,HJ,WJ,JJ],hD=e=>Z7.find(Y7(e)),es=new Set;let Sv=!1,Tv=!1;function J7(){if(Tv){const e=Array.from(es).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=ZJ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Tv=!1,Sv=!1,es.forEach(e=>e.complete()),es.clear()}function X7(){es.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tv=!0)})}function XJ(){X7(),J7()}class L0{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(es.add(this),Sv||(Sv=!0,Br.read(X7),Br.resolveKeyframes(J7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const uc=e=>Math.round(e*1e5)/1e5,V0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function QJ(e){return e==null}const eX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,N0=(e,t)=>n=>!!(typeof n=="string"&&eX.test(n)&&n.startsWith(e)||t&&!QJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),Q7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(V0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},tX=e=>fs(0,255,e),Kg={...Zu,transform:e=>Math.round(tX(e))},qa={test:N0("rgb","red"),parse:Q7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Kg.transform(e)+", "+Kg.transform(t)+", "+Kg.transform(n)+", "+uc(Sc.transform(r))+")"};function nX(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Av={test:N0("#"),parse:nX,transform:qa.transform},lu={test:N0("hsl","hue"),parse:Q7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+yu.transform(uc(t))+", "+yu.transform(uc(n))+", "+uc(Sc.transform(r))+")"},Yn={test:e=>qa.test(e)||Av.test(e)||lu.test(e),parse:e=>qa.test(e)?qa.parse(e):lu.test(e)?lu.parse(e):Av.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qa.transform(e):lu.transform(e)},rX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function iX(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(V0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(rX))===null||n===void 0?void 0:n.length)||0)>0}const e_="number",t_="color",oX="var",aX="var(",pD="${}",sX=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(sX,c=>(Yn.test(c)?(r.color.push(o),i.push(t_),n.push(Yn.parse(c))):c.startsWith(aX)?(r.var.push(o),i.push(oX),n.push(c)):(r.number.push(o),i.push(e_),n.push(parseFloat(c))),++o,pD)).split(pD);return{values:n,split:u,indexes:r,types:i}}function n_(e){return Tc(e).values}function r_(e){const{split:t,types:n}=Tc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===e_?o+=uc(i[a]):u===t_?o+=Yn.transform(i[a]):o+=i[a]}return o}}const uX=e=>typeof e=="number"?0:e;function lX(e){const t=n_(e);return r_(e)(t.map(uX))}const Ju={test:iX,parse:n_,createTransformer:r_,getAnimatableNone:lX},cX=new Set(["brightness","contrast","saturate","opacity"]);function dX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(V0)||[];if(!r)return e;const i=n.replace(r,"");let o=cX.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const fX=/\b([a-z-]*)\(.*?\)/gu,Pv={...Ju,getAnimatableNone:e=>{const t=e.match(fX);return t?t.map(dX).join(" "):e}},hX={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,backgroundPositionX:Ze,backgroundPositionY:Ze},pX={rotate:Jo,rotateX:Jo,rotateY:Jo,rotateZ:Jo,scale:vf,scaleX:vf,scaleY:vf,scaleZ:vf,skew:Jo,skewX:Jo,skewY:Jo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:Sc,originX:lD,originY:lD,originZ:Ze},mD={...Zu,transform:Math.round},j0={...hX,...pX,zIndex:mD,size:Ze,fillOpacity:Sc,strokeOpacity:Sc,numOctaves:mD},mX={...j0,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:Pv,WebkitFilter:Pv},K0=e=>mX[e];function i_(e,t){let n=K0(e);return n!==Pv&&(n=Ju),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gX=new Set(["auto","none","0"]);function yX(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!gX.has(o)&&Tc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=i_(n,i)}class o_ extends L0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),I0(d))){const f=q7(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!GJ.has(r)||t.length!==2)return;const[i,o]=t,a=hD(i),u=hD(o);if(a!==u)if(cD(a)&&cD(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)VJ(t[i])&&r.push(i);r.length&&yX(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ku[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=ku[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function U0(e){return typeof e=="function"}let Nf;function vX(){Nf=void 0}const ca={now:()=>(Nf===void 0&&ca.set(Sh.isProcessing||RJ.useManualTiming?Sh.timestamp:performance.now()),Nf),set:e=>{Nf=e,queueMicrotask(vX)}},gD=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ju.test(e)||e==="0")&&!e.startsWith("url("));function bX(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function $X(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=gD(i,t),u=gD(o,t);return Yu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:bX(e)||(n==="spring"||U0(n))&&r}const xX=40;class a_{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ca.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>xX?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&XJ(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ca.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!$X(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(Ep(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const z0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},s_=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(z0(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function u_(e,t){return t?e*(1e3/t):0}const wX=5;function l_(e,t,n){const r=Math.max(t-wX,0);return u_(n-e(r),t-r)}const Xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},yD=.001;function DX({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;Yu(e<=Do(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=fs(Xt.minDamping,Xt.maxDamping,a),e=fs(Xt.minDuration,Xt.maxDuration,la(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=_v(d,a),v=Math.exp(-h);return yD-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=_v(Math.pow(d,2),a);return(-i(d)+yD>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=CX(i,o,u);if(e=Do(e),isNaN(c))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const EX=12;function CX(e,t,n){let r=n;for(let i=1;i<EX;i++)r=r-e(r)/t(r);return r}function _v(e,t){return e*Math.sqrt(1-t*t)}const Rv=2e4;function c_(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rv;)t+=n,r=e.next(t);return t>=Rv?1/0:t}const SX=["duration","bounce"],TX=["stiffness","damping","mass"];function vD(e,t){return t.some(n=>e[n]!==void 0)}function AX(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!vD(e,TX)&&vD(e,SX))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*fs(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=DX(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function d_(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=AX({...n,velocity:-la(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=la(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=y?Xt.restDelta.granular:Xt.restDelta.default);let D;if($<1){const E=_v(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Do(v):l_(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(c_(P),Rv),T=s_(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function bD({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=d_({keyframes:[m.value,v(m.value)],velocity:l_(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const PX=ed(.42,0,1,1),_X=ed(0,0,.58,1),f_=ed(.42,0,.58,1),RX=e=>Array.isArray(e)&&typeof e[0]!="number",W0=e=>Array.isArray(e)&&typeof e[0]=="number",$D={linear:pa,easeIn:PX,easeInOut:f_,easeOut:_X,circIn:B0,circInOut:U7,circOut:LJ,backIn:k0,backInOut:j7,backOut:N7,anticipate:K7},xD=e=>{if(W0(e)){ds(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ed(t,n,r,i)}else if(typeof e=="string")return ds($D[e]!==void 0,`Invalid easing type '${e}'`),$D[e];return e},OX=(e,t)=>n=>t(e(n)),Cp=(...e)=>e.reduce(OX),Sp=(e,t,n)=>e+(t-e)*n;function Ug(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function MX({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Ug(c,u,e+1/3),o=Ug(c,u,e),a=Ug(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Th(e,t){return n=>n>0?t:e}const zg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},FX=[Av,qa,lu],kX=e=>FX.find(t=>t.test(e));function wD(e){const t=kX(e);if(Yu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===lu&&(n=MX(n)),n}const DD=(e,t)=>{const n=wD(e),r=wD(t);if(!n||!r)return Th(e,t);const i={...n};return o=>(i.red=zg(n.red,r.red,o),i.green=zg(n.green,r.green,o),i.blue=zg(n.blue,r.blue,o),i.alpha=Sp(n.alpha,r.alpha,o),qa.transform(i))},Ov=new Set(["none","hidden"]);function BX(e,t){return Ov.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function IX(e,t){return n=>Sp(e,t,n)}function H0(e){return typeof e=="number"?IX:typeof e=="string"?I0(e)?Th:Yn.test(e)?DD:NX:Array.isArray(e)?h_:typeof e=="object"?Yn.test(e)?DD:LX:Th}function h_(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>H0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function LX(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=H0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function VX(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const NX=(e,t)=>{const n=Ju.createTransformer(t),r=Tc(e),i=Tc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ov.has(e)&&!i.values.length||Ov.has(t)&&!r.values.length?BX(e,t):Cp(h_(VX(r,i),i.values),n):(Yu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Th(e,t))};function p_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Sp(e,t,n):H0(e)(e,t)}function jX(e,t,n){const r=[],i=n||p_,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||pa:t;u=Cp(c,u)}r.push(u)}return r}function KX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ds(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=jX(t,r,i),u=a.length,c=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=z0(e[f],e[f+1],d);return a[f](h)};return n?d=>c(fs(e[0],e[o-1],d)):c}function UX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=z0(0,t,r);e.push(Sp(n,1,i))}}function zX(e){const t=[0];return UX(t,e.length-1),t}function WX(e,t){return e.map(n=>n*t)}function HX(e,t){return e.map(()=>t||f_).splice(0,e.length-1)}function Ah({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=RX(r)?r.map(xD):xD(r),o={done:!1,value:t[0]},a=WX(n&&n.length===t.length?n:zX(t),e),u=KX(a,t,{ease:Array.isArray(i)?i:HX(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const GX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Br.update(t,!0),stop:()=>Cv(t),now:()=>Sh.isProcessing?Sh.timestamp:ca.now()}},qX={decay:bD,inertia:bD,tween:Ah,keyframes:Ah,spring:d_},YX=e=>e/100;class G0 extends a_{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||L0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=U0(n)?n:qX[n]||Ah;let c,d;u!==Ah&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&ds(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Cp(YX,p_(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=c_(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=fs(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=Ep(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?la(t.calculatedDuration):0}get time(){return la(this.currentTime)}set time(t){t=Do(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=la(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=GX,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const ZX=new Set(["opacity","clipPath","filter","transform"]);function q0(e){let t;return()=>(t===void 0&&(t=e()),t)}const JX={linearEasing:void 0};function XX(e,t){const n=q0(e);return()=>{var r;return(r=JX[t])!==null&&r!==void 0?r:n()}}const Ph=XX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function m_(e){return!!(typeof e=="function"&&Ph()||!e||typeof e=="string"&&(e in Mv||Ph())||W0(e)||Array.isArray(e)&&e.every(m_))}const Yl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yl([0,.65,.55,1]),circOut:Yl([.55,0,1,.45]),backIn:Yl([.31,.01,.66,-.59]),backOut:Yl([.33,1.53,.69,.99])};function g_(e,t){if(e)return typeof e=="function"&&Ph()?s_(e,t):W0(e)?Yl(e):Array.isArray(e)?e.map(n=>g_(n,t)||Mv.easeOut):Mv[e]}function QX(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=g_(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function ED(e,t){e.timeline=t,e.onfinish=null}const eQ=q0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_h=10,tQ=2e4;function nQ(e){return U0(e.type)||e.type==="spring"||!m_(e.ease)}function rQ(e,t){const n=new G0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<tQ;)r=n.sample(o),i.push(r.value),o+=_h;return{times:void 0,keyframes:i,duration:o-_h,ease:"linear"}}const y_={anticipate:K7,backInOut:j7,circInOut:U7};function iQ(e){return e in y_}class CD extends a_{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new o_(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Ph()&&iQ(a)&&(a=y_[a]),nQ(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=rQ(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=QX(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(ED(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ep(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return la(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return la(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Do(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return pa;const{animation:r}=n;ED(r,t)}return pa}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new G0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Do(this.time);d.setWithVelocity(v.sample($-_h).value,v.sample($).value,_h)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return eQ()&&r&&ZX.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const oQ=q0(()=>window.ScrollTimeline!==void 0);class aQ{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>oQ()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function sQ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const uQ=(e,t,n,r={},i,o)=>a=>{const u=k7(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Do(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};sQ(u)||(f={...f,..._J(e,f)}),f.duration&&(f.duration=Do(f.duration)),f.repeatDelay&&(f.repeatDelay=Do(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Ep(f.keyframes,u);if(m!==void 0)return Br.update(()=>{f.onUpdate(m),f.onComplete()}),new aQ([])}return!o&&CD.supports(f)?new CD(f):new G0(f)},lQ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),cQ=e=>Ev(e)?e[e.length-1]||0:e;function dQ(e,t){e.indexOf(t)===-1&&e.push(t)}function fQ(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class v_{constructor(){this.subscriptions=[]}add(t){return dQ(this.subscriptions,t),()=>fQ(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const SD=30,hQ=e=>!isNaN(parseFloat(e));class pQ{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ca.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ca.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=hQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&xp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new v_);const r=this.events[t].add(n);return t==="change"?()=>{r(),Br.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ca.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>SD)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,SD);return u_(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Rh(e,t){return new pQ(e,t)}function mQ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Rh(n))}function gQ(e,t){const n=Dp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=cQ(o[a]);mQ(e,a,u)}}const Y0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),yQ="framerAppearId",b_="data-"+Y0(yQ);function vQ(e){return e.props[b_]}const ur=e=>!!(e&&e.getVelocity);function bQ(e){return!!(ur(e)&&e.add)}function $Q(e,t){const n=e.getValue("willChange");if(bQ(n))return n.add(t)}function xQ({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&xQ(f,h))continue;const v={delay:n,...k7(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=vQ(e);if(x){const y=window.MotionHandoffAnimation(x,h,Br);y!==null&&(v.startTime=y,$=!0)}}$Q(e,h),m.start(uQ(h,m,g,e.shouldReduceMotion&&vs.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{Br.update(()=>{u&&gQ(e,u)})}),d}function Fv(e,t,n={}){var r;const i=Dp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all($_(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return wQ(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function wQ(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(DQ).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(Fv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function DQ(e,t){return e.sortNodePosition(t)}function EQ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Fv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Fv(e,t,n);else{const i=typeof t=="function"?Dp(e,t,n.custom):t;r=Promise.all($_(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const CQ=F0.length;function x_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?x_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<CQ;n++){const r=F0[n],i=e.props[r];(Cc(i)||i===!1)&&(t[r]=i)}return t}const SQ=[...M0].reverse(),TQ=M0.length;function AQ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>EQ(e,n,r)))}function PQ(e){let t=AQ(e),n=TD(),r=!0;const i=c=>(d,f)=>{var h;const m=Dp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=x_(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<TQ;C++){const x=SQ[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=Cc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||wp(D)||typeof D=="boolean")continue;const k=_Q(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;Ev(M)&&Ev(Y)?V=!F7(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=TD(),r=!0}}}function _Q(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!F7(t,e):!1}function Ba(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TD(){return{animate:Ba(!0),whileInView:Ba(),whileHover:Ba(),whileTap:Ba(),whileDrag:Ba(),whileFocus:Ba(),exit:Ba()}}class Xu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class RQ extends Xu{constructor(t){super(t),t.animationState||(t.animationState=PQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let OQ=0;class MQ extends Xu{constructor(){super(...arguments),this.id=OQ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const FQ={animation:{Feature:RQ},exit:{Feature:MQ}},kQ={x:!1,y:!1};function BQ(){return kQ.y}const IQ=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function w_(e){return{point:{x:e.pageX,y:e.pageY}}}function AD(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function D_(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const PD=()=>({min:0,max:0}),E_=()=>({x:PD(),y:PD()});function LQ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function VQ(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function NQ(e,t){return LQ(VQ(e.getBoundingClientRect(),t))}const C_=b.createContext(null),jQ=b.createContext({}),KQ=b.createContext({}),UQ={},{schedule:zQ,cancel:mie}=B7(queueMicrotask,!1);function WQ(e){const t=ur(e)?e.get():e;return lQ(t)?t.toValue():t}function HQ(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function S_(e,t){const n=HQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _D(e){return t=>{t.pointerType==="touch"||BQ()||e(t)}}function GQ(e,t,n={}){const[r,i,o]=S_(e,n),a=_D(u=>{const{target:c}=u,d=t(u);if(!d||!c)return;const f=_D(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function RD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Br.postRender(()=>o(t,w_(t)))}class qQ extends Xu{mount(){const{current:t}=this.node;t&&(this.unmount=GQ(t,n=>(RD(this.node,n,"Start"),r=>RD(this.node,r,"End"))))}unmount(){}}class YQ extends Xu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Cp(AD(this.node.current,"focus",()=>this.onFocus()),AD(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Zl=new WeakSet;function OD(e){return t=>{t.key==="Enter"&&e(t)}}function Wg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ZQ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=OD(()=>{if(Zl.has(n))return;Wg(n,"down");const i=OD(()=>{Wg(n,"up")}),o=()=>Wg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},JQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function XQ(e){return JQ.has(e.tagName)||e.tabIndex!==-1}const T_=(e,t)=>t?e===t?!0:T_(e,t.parentElement):!1;function MD(e){return IQ(e)&&!0}function QQ(e,t,n={}){const[r,i,o]=S_(e,n),a=u=>{const c=u.currentTarget;if(!MD(u)||Zl.has(c))return;Zl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!MD(g)||!Zl.has(c))&&(Zl.delete(c),d&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||T_(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{XQ(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>ZQ(d,i),i)}),o}function FD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Br.postRender(()=>o(t,w_(t)))}class eee extends Xu{mount(){const{current:t}=this.node;t&&(this.unmount=QQ(t,n=>(FD(this.node,n,"Start"),(r,{success:i})=>FD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const kv=new WeakMap,Hg=new WeakMap,tee=e=>{const t=kv.get(e.target);t&&t(e)},nee=e=>{e.forEach(tee)};function ree({root:e,...t}){const n=e||document;Hg.has(n)||Hg.set(n,{});const r=Hg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(nee,{root:e,...t})),r[i]}function iee(e,t,n){const r=ree(t);return kv.set(e,n),r.observe(e),()=>{kv.delete(e),r.unobserve(e)}}const oee={some:0,all:1};class aee extends Xu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:oee[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return iee(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(see(t,n))&&this.startObserver()}unmount(){}}function see({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const uee={inView:{Feature:aee},tap:{Feature:eee},focus:{Feature:YQ},hover:{Feature:qQ}},A_=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Tp=b.createContext({}),Z0=typeof window<"u",lee=Z0?b.useLayoutEffect:b.useEffect,J0=b.createContext({strict:!1});function cee(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(Tp),c=b.useContext(J0),d=b.useContext(C_),f=b.useContext(A_).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(KQ);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&dee(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[b_],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return lee(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),zQ.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function dee(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:P_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&D_(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function P_(e){if(e)return e.options.allowProjection!==!1?e.projection:P_(e.parent)}function fee(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):D_(n)&&(n.current=r))},[t])}function Ap(e){return wp(e.animate)||F0.some(t=>Cc(e[t]))}function __(e){return!!(Ap(e)||e.variants)}function hee(e,t){if(Ap(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Cc(n)?n:void 0,animate:Cc(r)?r:void 0}}return e.inherit!==!1?t:{}}function pee(e){const{initial:t,animate:n}=hee(e,b.useContext(Tp));return b.useMemo(()=>({initial:t,animate:n}),[kD(t),kD(n)])}function kD(e){return Array.isArray(e)?e.join(" "):e}const BD={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Bu={};for(const e in BD)Bu[e]={isEnabled:t=>BD[e].some(n=>!!t[n])};function Bv(e){for(const t in e)Bu[t]={...Bu[t],...e[t]}}const mee=Symbol.for("motionComponentSymbol");function gee({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Bv(e);function o(u,c){let d;const f={...b.useContext(A_),...u,layoutId:yee(u)},{isStatic:h}=f,m=pee(u),g=r(u,h);if(!h&&Z0){vee(f,e);const v=bee(f);d=v.MeasureLayout,m.visualElement=cee(i,g,f,t,v.ProjectionNode)}return Eo.jsxs(Tp.Provider,{value:m,children:[d&&m.visualElement?Eo.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,fee(g,m.visualElement,c),g,h,m.visualElement)]})}const a=b.forwardRef(o);return a[mee]=i,a}function yee({layoutId:e}){const t=b.useContext(jQ).id;return t&&e!==void 0?t+"-"+e:e}function vee(e,t){const n=b.useContext(J0).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Yu(!1,r):ds(!1,r)}}function bee(e){const{drag:t,layout:n}=Bu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const $ee=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function X0(e){return typeof e!="string"||e.includes("-")?!1:!!($ee.indexOf(e)>-1||/[A-Z]/u.test(e))}function R_(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const O_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function M_(e,t,n,r){R_(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(O_.has(i)?i:Y0(i),t.attrs[i])}function F_(e,{layout:t,layoutId:n}){return vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!UQ[e]||e==="opacity")}function Q0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||F_(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function k_(e,t,n){const r=Q0(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=Qc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function xee(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function wee({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:Dee(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const B_=e=>(t,n)=>{const r=b.useContext(Tp),i=b.useContext(C_),o=()=>wee(e,t,r,i);return n?o():xee(o)};function Dee(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=WQ(o[m]);let{initial:a,animate:u}=e;const c=Ap(e),d=__(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!wp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=O0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const e1=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),I_=()=>({...e1(),attrs:{}}),L_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Eee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cee=Qc.length;function See(e,t,n){let r="",i=!0;for(let o=0;o<Cee;o++){const a=Qc[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=L_(u,j0[a]);if(!c){i=!1;const f=Eee[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function t1(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(vs.has(c)){a=!0;continue}else if(G7(c)){i[c]=d;continue}else{const f=L_(d,j0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=See(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function ID(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function Tee(e,t,n){const r=ID(t,e.x,e.width),i=ID(n,e.y,e.height);return`${r} ${i}`}const Aee={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pee={offset:"strokeDashoffset",array:"strokeDasharray"};function _ee(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Aee:Pee;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function n1(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(t1(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Tee(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&_ee(m,a,u,c,!1)}const r1=e=>typeof e=="string"&&e.toLowerCase()==="svg",Ree={useVisualState:B_({scrapeMotionValuesFromProps:k_,createRenderState:I_,onMount:(e,t,{renderState:n,latestValues:r})=>{Br.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Br.render(()=>{n1(n,r,r1(t.tagName),e.transformTemplate),M_(t,n)})}})},Oee={useVisualState:B_({scrapeMotionValuesFromProps:Q0,createRenderState:e1})};function V_(e,t,n){for(const r in t)!ur(t[r])&&!F_(r,n)&&(e[r]=t[r])}function Mee({transformTemplate:e},t){return b.useMemo(()=>{const n=e1();return t1(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Fee(e,t){const n=e.style||{},r={};return V_(r,n,e),Object.assign(r,Mee(e,t)),r}function kee(e,t){const n={},r=Fee(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Bee=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Oh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Bee.has(e)}let N_=e=>!Oh(e);function Iee(e){e&&(N_=t=>t.startsWith("on")?!Oh(t):e(t))}try{Iee(require("@emotion/is-prop-valid").default)}catch{}function Lee(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(N_(i)||n===!0&&Oh(i)||!t&&!Oh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Vee(e,t,n,r){const i=b.useMemo(()=>{const o=I_();return n1(o,t,r1(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};V_(o,e.style,e),i.style={...o,...i.style}}return i}function Nee(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(X0(n)?Vee:kee)(r,o,a,n),d=Lee(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>ur(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function jee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...X0(r)?Ree:Oee,preloadedFeatures:e,useRender:Nee(i),createVisualElement:t,Component:r};return gee(a)}}const Iv={current:null},j_={current:!1};function Kee(){if(j_.current=!0,!!Z0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iv.current=e.matches;e.addListener(t),t()}else Iv.current=!1}function Uee(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ur(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&xp(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(ur(o))e.addValue(r,Rh(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Rh(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const LD=new WeakMap,zee=[...Z7,Yn,Ju],Wee=e=>zee.find(Y7(e)),VD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Hee{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=L0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=ca.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Br.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Ap(n),this.isVariantNode=__(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];c[m]!==void 0&&ur(g)&&g.set(c[m],!1)}}mount(t){this.current=t,LD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),j_.current||Kee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Iv.current,process.env.NODE_ENV!=="production"&&xp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){LD.delete(this.current),this.projection&&this.projection.unmount(),Cv(this.notifyUpdate),Cv(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=vs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Br.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Bu){const n=Bu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):E_()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<VD.length;r++){const i=VD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Uee(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Rh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(W7(i)||z7(i))?i=parseFloat(i):!Wee(i)&&Ju.test(n)&&(i=i_(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=O0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new v_),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class K_ extends Hee{constructor(){super(...arguments),this.KeyframeResolver=o_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ur(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Gee(e){return window.getComputedStyle(e)}class qee extends K_{constructor(){super(...arguments),this.type="html",this.renderInstance=R_}readValueFromInstance(t,n){if(vs.has(n)){const r=K0(n);return r&&r.default||0}else{const r=Gee(t),i=(G7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return NQ(t,n)}build(t,n,r){t1(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Q0(t,n,r)}}class Yee extends K_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E_}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vs.has(n)){const r=K0(n);return r&&r.default||0}return n=O_.has(n)?n:Y0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return k_(t,n,r)}build(t,n,r){n1(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){M_(t,n,r,i)}mount(t){this.isSVGTag=r1(t.tagName),super.mount(t)}}const Zee=(e,t)=>X0(e)?new Yee(t):new qee(t,{allowProjection:e!==b.Fragment}),Jee=jee(),Xee=CJ(Jee);function Qee({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!Gg(t)),i=b.useRef(void 0);if(!Gg(t)){const{renderer:o,...a}=t;i.current=o,Bv(a)}return b.useEffect(()=>{Gg(t)&&t().then(({renderer:o,...a})=>{Bv(a),i.current=o,r(!0)})},[]),Eo.jsx(J0.Provider,{value:{renderer:i.current,strict:n},children:e})}function Gg(e){return typeof e=="function"}const ete={renderer:Zee,...FQ,...uee};function U_(e){return t=>typeof t===e}var tte=U_("function"),nte=e=>e===null,ND=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",jD=e=>!rte(e)&&!nte(e)&&(tte(e)||typeof e=="object"),rte=U_("undefined");function ite(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}function ote(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function ate(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!lr(n[1],t.get(n[0])))return!1;return!0}function ste(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function lr(e,t){if(e===t)return!0;if(e&&jD(e)&&t&&jD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return ite(e,t);if(e instanceof Map&&t instanceof Map)return ate(e,t);if(e instanceof Set&&t instanceof Set)return ste(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return ote(e,t);if(ND(e)&&ND(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var ute=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],lte=["bigint","boolean","null","number","string","symbol","undefined"];function Pp(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(cte(t))return t}function Si(e){return t=>Pp(t)===e}function cte(e){return ute.includes(e)}function Qu(e){return t=>typeof t===e}function dte(e){return lte.includes(e)}var fte=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=Pp(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>Pp(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=Qu("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=Si("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&&fte.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=Si("Error");Oe.function=Qu("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=Si("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=Si("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>Qu("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=Si("Function");Oe.plainObject=e=>{if(Pp(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||dte(typeof e);Oe.promise=Si("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=Si("RegExp");Oe.set=Si("Set");Oe.string=Qu("string");Oe.symbol=Qu("symbol");Oe.undefined=Qu("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function hte(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function pte(e,t,n){return z_(e,t)?[e,t].every(ke.array)?!e.some(HD(n))&&t.some(HD(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(WD(n))&&Object.entries(t).some(WD(n)):t===n:!1}function KD(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=Ui(e,i),c=Ui(t,i);let d=[u,c].every(ke.number)&&(a==="increased"?u<c:u>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&u===o),d}function UD(e,t,n){const{key:r,type:i,value:o}=n,a=Ui(e,r),u=Ui(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return pte(c,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(i1(c)):[a,u].every(ke.plainObject)?mte(Object.keys(c),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function zD(e,t,{key:n}={}){let r=Ui(e,n),i=Ui(t,n);if(!z_(r,i))throw new TypeError("Inputs have different types");if(!hte(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function WD(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&i1(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function mte(e,t){return t.some(n=>!e.includes(n))}function HD(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&i1(t)(n)):lr(e,t)}function kl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function i1(e){return t=>e.some(n=>lr(n,t))}function z_(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function Ui(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function Mh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return UD(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=Ui(e,f),v=Ui(t,f),$=ke.defined(h),C=ke.defined(m);if($||C){const x=C?kl(m,g):!kl(h,g),y=kl(h,v);return x&&y}return[g,v].every(ke.array)||[g,v].every(ke.plainObject)?!lr(g,v):g!==v}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=Ui(e,f),v=Ui(t,f),$=ke.defined(m);return kl(h,g)&&($?kl(m,v):!$)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=zD(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=zD(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return UD(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var qg,GD;function gte(){if(GD)return qg;GD=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;qg={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),v=d[u],$=h.ease||o,C=isNaN(h.duration)?350:+h.duration,x=!1;return v===f?m(e,d[u]):requestAnimationFrame(D),y;function y(){x=!0}function D(P){if(x)return m(t,d[u]);var E=r(),T=n(1,(E-g)/C),k=$(T);d[u]=k*(f-v)+v,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return qg}var yte=gte();const vte=Ao(yte);var jf={exports:{}},bte=jf.exports,qD;function $te(){return qD||(qD=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(bte,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(jf)),jf.exports}var xte=$te();const W_=Ao(xte);var Yg,YD;function wte(){if(YD)return Yg;YD=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,Yg=n,Yg}var Dte=wte();const ZD=Ao(Dte);var Zg,JD;function Ete(){if(JD)return Zg;JD=1;var e=function(y){return t(y)&&!n(y)};function t(x){return!!x&&typeof x=="object"}function n(x){var y=Object.prototype.toString.call(x);return y==="[object RegExp]"||y==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function a(x){return Array.isArray(x)?[]:{}}function u(x,y){return y.clone!==!1&&y.isMergeableObject(x)?$(a(x),x,y):x}function c(x,y,D){return x.concat(y).map(function(P){return u(P,D)})}function d(x,y){if(!y.customMerge)return $;var D=y.customMerge(x);return typeof D=="function"?D:$}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(y){return Object.propertyIsEnumerable.call(x,y)}):[]}function h(x){return Object.keys(x).concat(f(x))}function m(x,y){try{return y in x}catch{return!1}}function g(x,y){return m(x,y)&&!(Object.hasOwnProperty.call(x,y)&&Object.propertyIsEnumerable.call(x,y))}function v(x,y,D){var P={};return D.isMergeableObject(x)&&h(x).forEach(function(E){P[E]=u(x[E],D)}),h(y).forEach(function(E){g(x,E)||(m(x,E)&&D.isMergeableObject(y[E])?P[E]=d(E,D)(x[E],y[E],D):P[E]=u(y[E],D))}),P}function $(x,y,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var P=Array.isArray(y),E=Array.isArray(x),T=P===E;return T?P?D.arrayMerge(x,y,D):v(x,y,D):u(y,D)}$.all=function(y,D){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(P,E){return $(P,E,D)},{})};var C=$;return Zg=C,Zg}var Cte=Ete();const bi=Ao(Cte);var bf={exports:{}},$f={exports:{}},Et={};/** @license React v16.13.1
|
|
156
156
|
* react-is.production.min.js
|
|
157
157
|
*
|
|
158
158
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -220,4 +220,4 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var le=he($e,xe,fe,ie,Ee
|
|
|
220
220
|
transform: scale(1);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:u,styles:c}=this.props,d=Ii(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=qe.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=qe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},qe.createElement("span",{style:c.beaconInner}),qe.createElement("span",{style:c.beaconOuter}));return h}};function Tre({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return b.createElement("button",{style:o,type:"button",...t},b.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var Are=Tre;function Pre(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:v,title:$}=u,C={};return C.primary=qe.createElement("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...o}),g&&!i&&(C.skip=qe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=qe.createElement("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),C.close=!h&&qe.createElement(Are,{"data-test-id":"button-close",styles:v.buttonClose,...n}),qe.createElement("div",{key:"JoyrideTooltip","aria-label":Ii($??d),className:"react-joyride__tooltip",style:v.tooltip,...c},qe.createElement("div",{style:v.tooltipContainer},$&&qe.createElement("h1",{"aria-label":Ii($),style:v.tooltipTitle},$),qe.createElement("div",{style:v.tooltipContent},d)),!m&&qe.createElement("div",{style:v.tooltipFooter},qe.createElement("div",{style:v.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var _re=Pre,Rre=class extends qe.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Ii(a),g=Ii(u),v=Ii(c),$=Ii(d),C=Ii(h);let x=u,y=g;if(e){if(x=d,y=$,o.showProgress&&!n){const D=Ii(f,{step:t+1,steps:i});x=Uv(f,t+1,i),y=D}n&&(x=c,y=v)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":y,children:x,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:u,...c}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=u;d=qe.createElement(h,{...f})}else d=qe.createElement(_re,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Ore=class extends qe.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return qe.createElement(Rre,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ga({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:c,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:v,changedFrom:$}=Mh(e,this.props),C=u.info(),x=i&&n!==$t.CLOSE&&(c>0||n===$t.PREV),y=v("action")||v("index")||v("lifecycle")||v("status"),D=$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),P=v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&v("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),y){const T=$o(m.target),k=!!T;k&&ire(T)?($("status",ct.READY,ct.RUNNING)||$("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(k?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:c+(n===$t.PREV?-1:1)}))}$("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:DE(m)||x?Qe.TOOLTIP:Qe.BEACON}),v("index")&&ga({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),v("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),v("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new Cre(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return DE(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=$o(a.target);return!DR(a)||!ke.domElement(u)?null:qe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},qe.createElement(f1,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},qe.createElement(Sre,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},CR=class extends qe.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:c}=this.state,{steps:d}=this.props,f=d[u];c===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;Ys(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=$re({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ga({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ta())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;SE(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ta())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:v,stop:$,update:C}=this.store,{changed:x}=Mh(e,this.props),{changed:y,changedFrom:D}=Mh(t,this.state),P=Ys(this.props,d[i]),E=!lr(h,d),T=ke.number(c)&&x("stepIndex"),k=$o(P.target);if(E&&(SE(d,a)?g(d):console.warn("Steps are not valid",d)),x("run")&&(u?v(c):$()),T){let O=ke.number(f)&&f<c?$t.NEXT:$t.PREV;n===$t.STOP&&(O=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:O,index:c,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!k&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&y("status",ct.PAUSED)){const O=Ys(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER})}if(y("status",[ct.FINISHED,ct.SKIPPED])){const O=Ys(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:O,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(y("status")||y("action",$t.RESET))&&this.callback({...S,type:ri.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=Ys(this.props,d[t]),h=$o(f.target),m=fre({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===ct.RUNNING&&m){const g=ld(h,o),v=Pc(h,o);let $=Math.floor(are(h,u,o))||0;ga({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:y,placement:D}=C;!["bottom"].includes(D)&&!g&&($=Math.floor(y.popper.top-u))}else if(n===Qe.TOOLTIP&&x){const{flipped:y,offsets:D,placement:P}=x;["top","right","left"].includes(P)&&!y&&!g?$=Math.floor(D.popper.top-u):$-=f.spotlightPadding}$=$>=0?$:0,r===ct.RUNNING&&sre($,{element:v,duration:a}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update()},10)})}}render(){if(!ta())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,c=n===ct.RUNNING,d={};if(c&&u[e]){const f=Ys(this.props,u[e]);d.step=qe.createElement(Ore,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=qe.createElement(Ere,{id:"react-joyride-portal"},qe.createElement(Dre,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return qe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(CR,"defaultProps",mre);var Mre=CR;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=ZT;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=zC;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Lc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=BV;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=xn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=Zj;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=qT;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=ej;exports.$293f70390ea03370$export$497855f14858aa34=zj;exports.$32489daedd52963e$export$1315d136e6f7581=nK;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Aj;exports.$36a0ac60f04457c5$export$136073280381448e=zN;exports.$3c0fc76039f1c516$export$60e84778edff6d26=BA;exports.$40df3f8667284809$export$d55e7ee900f34e93=aK;exports.$46a4342aab3d8076$export$87e0539f600c24e5=jN;exports.$47b897dc8cdb026b$export$8d15029008292ae=ij;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=nj;exports.$6057a3d2a53a12fd$export$42df105a73306d51=Xj;exports.$64244302c3013299$export$dd0bbc9b26defe37=xN;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=kN;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=oK;exports.$93c38a5e28be6249$export$e50a61c1de9f574=SK;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=NN;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=sK;exports.$a916eb452884faea$export$b7a616150fdb9f44=FN;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=hK;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=bK;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$S;exports.$bcca50147b47f54d$export$56b2c08e277f365=rj;exports.$c132121280ec012d$export$50eacbbf140a3141=Bj;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=Lj;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=qj;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=KN;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=TK;exports.$f2f8a6077418541e$export$542a6fd13ac93354=Cj;exports.$fae977aafc393c5c$export$588937bcd60ade55=ZV;exports.$fae977aafc393c5c$export$6b862160d295c8e=YV;exports.ACTIONS=$t;exports.AdvancedImage=FW;exports.Cloudinary=PH;exports.Controller=IK;exports.EVENTS=ri;exports.FormProvider=FK;exports.LazyMotion=Qee;exports.M=aL;exports.M$1=gi;exports.R=ps;exports.ReorderGroup=$J;exports.ReorderItem=EJ;exports.STATUS=ct;exports._=qI;exports.autoUpdate=dC;exports.components_default=Mre;exports.dayjs=RK;exports.domAnimation=ete;exports.dt=QE;exports.ee=nP;exports.flip=WI;exports.isNumber=UH;exports.lazyload=nW;exports.lodashExports=mC;exports.lt=Yv;exports.m=Xee;exports.mt=cI;exports.nt=sI;exports.o=FH;exports.offset=zI;exports.ot=uI;exports.placeholder=aW;exports.prismExports=RH;exports.q=Ob;exports.useFloating=UI;exports.useForm=YK;exports.useFormContext=ap;exports.useWatch=HA;
|
|
223
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:u,styles:c}=this.props,d=Ii(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=qe.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=qe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},qe.createElement("span",{style:c.beaconInner}),qe.createElement("span",{style:c.beaconOuter}));return h}};function Tre({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return b.createElement("button",{style:o,type:"button",...t},b.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var Are=Tre;function Pre(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:v,title:$}=u,C={};return C.primary=qe.createElement("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...o}),g&&!i&&(C.skip=qe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=qe.createElement("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),C.close=!h&&qe.createElement(Are,{"data-test-id":"button-close",styles:v.buttonClose,...n}),qe.createElement("div",{key:"JoyrideTooltip","aria-label":Ii($??d),className:"react-joyride__tooltip",style:v.tooltip,...c},qe.createElement("div",{style:v.tooltipContainer},$&&qe.createElement("h1",{"aria-label":Ii($),style:v.tooltipTitle},$),qe.createElement("div",{style:v.tooltipContent},d)),!m&&qe.createElement("div",{style:v.tooltipFooter},qe.createElement("div",{style:v.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var _re=Pre,Rre=class extends qe.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Ii(a),g=Ii(u),v=Ii(c),$=Ii(d),C=Ii(h);let x=u,y=g;if(e){if(x=d,y=$,o.showProgress&&!n){const D=Ii(f,{step:t+1,steps:i});x=Uv(f,t+1,i),y=D}n&&(x=c,y=v)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":y,children:x,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:u,...c}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=u;d=qe.createElement(h,{...f})}else d=qe.createElement(_re,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Ore=class extends qe.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return qe.createElement(Rre,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ga({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:c,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:v,changedFrom:$}=Mh(e,this.props),C=u.info(),x=i&&n!==$t.CLOSE&&(c>0||n===$t.PREV),y=v("action")||v("index")||v("lifecycle")||v("status"),D=$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),P=v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&v("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),y){const T=$o(m.target),k=!!T;k&&ire(T)?($("status",ct.READY,ct.RUNNING)||$("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(k?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:c+(n===$t.PREV?-1:1)}))}$("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:DE(m)||x?Qe.TOOLTIP:Qe.BEACON}),v("index")&&ga({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),v("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),v("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new Cre(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return DE(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=$o(a.target);return!DR(a)||!ke.domElement(u)?null:qe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},qe.createElement(f1,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},qe.createElement(Sre,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},CR=class extends qe.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:c}=this.state,{steps:d}=this.props,f=d[u];c===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;Ys(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=$re({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ga({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ta())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;SE(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ta())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:v,stop:$,update:C}=this.store,{changed:x}=Mh(e,this.props),{changed:y,changedFrom:D}=Mh(t,this.state),P=Ys(this.props,d[i]),E=!lr(h,d),T=ke.number(c)&&x("stepIndex"),k=$o(P.target);if(E&&(SE(d,a)?g(d):console.warn("Steps are not valid",d)),x("run")&&(u?v(c):$()),T){let O=ke.number(f)&&f<c?$t.NEXT:$t.PREV;n===$t.STOP&&(O=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:O,index:c,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!k&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&y("status",ct.PAUSED)){const O=Ys(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER})}if(y("status",[ct.FINISHED,ct.SKIPPED])){const O=Ys(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:O,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(y("status")||y("action",$t.RESET))&&this.callback({...S,type:ri.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=Ys(this.props,d[t]),h=$o(f.target),m=fre({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===ct.RUNNING&&m){const g=ld(h,o),v=Pc(h,o);let $=Math.floor(are(h,u,o))||0;ga({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:y,placement:D}=C;!["bottom"].includes(D)&&!g&&($=Math.floor(y.popper.top-u))}else if(n===Qe.TOOLTIP&&x){const{flipped:y,offsets:D,placement:P}=x;["top","right","left"].includes(P)&&!y&&!g?$=Math.floor(D.popper.top-u):$-=f.spotlightPadding}$=$>=0?$:0,r===ct.RUNNING&&sre($,{element:v,duration:a}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update()},10)})}}render(){if(!ta())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,c=n===ct.RUNNING,d={};if(c&&u[e]){const f=Ys(this.props,u[e]);d.step=qe.createElement(Ore,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=qe.createElement(Ere,{id:"react-joyride-portal"},qe.createElement(Dre,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return qe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(CR,"defaultProps",mre);var Mre=CR;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=hA;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=sS;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Vc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=eN;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=xn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=pK;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=dA;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=vj;exports.$293f70390ea03370$export$497855f14858aa34=uK;exports.$32489daedd52963e$export$1315d136e6f7581=$K;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Hj;exports.$36a0ac60f04457c5$export$136073280381448e=uj;exports.$3c0fc76039f1c516$export$60e84778edff6d26=QA;exports.$40df3f8667284809$export$d55e7ee900f34e93=EK;exports.$46a4342aab3d8076$export$87e0539f600c24e5=oj;exports.$47b897dc8cdb026b$export$8d15029008292ae=wj;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=$j;exports.$6057a3d2a53a12fd$export$42df105a73306d51=gK;exports.$64244302c3013299$export$dd0bbc9b26defe37=VN;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=QN;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=DK;exports.$93c38a5e28be6249$export$e50a61c1de9f574=zK;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=ij;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=CK;exports.$a916eb452884faea$export$b7a616150fdb9f44=XN;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=RK;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=IK;exports.$bb77f239b46e8c72$export$3274cf84b703fff=IS;exports.$bcca50147b47f54d$export$56b2c08e277f365=xj;exports.$c132121280ec012d$export$50eacbbf140a3141=eK;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=nK;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=fK;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=aj;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=WK;exports.$f2f8a6077418541e$export$542a6fd13ac93354=Uj;exports.$fae977aafc393c5c$export$588937bcd60ade55=pN;exports.$fae977aafc393c5c$export$6b862160d295c8e=hN;exports.ACTIONS=$t;exports.AdvancedImage=FW;exports.Cloudinary=PH;exports.Controller=fL;exports.EVENTS=ri;exports.FormProvider=lL;exports.LazyMotion=Qee;exports.M=aL;exports.M$1=gi;exports.R=ps;exports.ReorderGroup=$J;exports.ReorderItem=EJ;exports.STATUS=ct;exports._=qI;exports.autoUpdate=dC;exports.components_default=Mre;exports.dayjs=YK;exports.domAnimation=ete;exports.dt=QE;exports.ee=nP;exports.flip=WI;exports.isNumber=UH;exports.lazyload=nW;exports.lodashExports=mC;exports.lt=Yv;exports.m=Xee;exports.mt=cI;exports.nt=sI;exports.o=FH;exports.offset=zI;exports.ot=uI;exports.placeholder=aW;exports.prismExports=RH;exports.q=Ob;exports.useFloating=UI;exports.useForm=EL;exports.useFormContext=Gh;exports.useWatch=SC;
|