@openpawlabs/diy-guides-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +126 -0
- package/dist/components/Callout/Callout.d.ts +21 -0
- package/dist/components/Callout/Callout.d.ts.map +1 -0
- package/dist/components/Callout/Callout.stories.d.ts +31 -0
- package/dist/components/Callout/Callout.stories.d.ts.map +1 -0
- package/dist/components/Callout/Callout.test.d.ts +2 -0
- package/dist/components/Callout/Callout.test.d.ts.map +1 -0
- package/dist/components/Callout/index.d.ts +3 -0
- package/dist/components/Callout/index.d.ts.map +1 -0
- package/dist/components/DifficultyBadge/DifficultyBadge.d.ts +20 -0
- package/dist/components/DifficultyBadge/DifficultyBadge.d.ts.map +1 -0
- package/dist/components/DifficultyBadge/DifficultyBadge.stories.d.ts +37 -0
- package/dist/components/DifficultyBadge/DifficultyBadge.stories.d.ts.map +1 -0
- package/dist/components/DifficultyBadge/DifficultyBadge.test.d.ts +2 -0
- package/dist/components/DifficultyBadge/DifficultyBadge.test.d.ts.map +1 -0
- package/dist/components/DifficultyBadge/index.d.ts +3 -0
- package/dist/components/DifficultyBadge/index.d.ts.map +1 -0
- package/dist/components/GuideLayout/GuideLayout.d.ts +49 -0
- package/dist/components/GuideLayout/GuideLayout.d.ts.map +1 -0
- package/dist/components/GuideLayout/GuideLayout.stories.d.ts +33 -0
- package/dist/components/GuideLayout/GuideLayout.stories.d.ts.map +1 -0
- package/dist/components/GuideLayout/GuideLayout.test.d.ts +2 -0
- package/dist/components/GuideLayout/GuideLayout.test.d.ts.map +1 -0
- package/dist/components/GuideLayout/index.d.ts +3 -0
- package/dist/components/GuideLayout/index.d.ts.map +1 -0
- package/dist/components/GuideStep/GuideStep.d.ts +62 -0
- package/dist/components/GuideStep/GuideStep.d.ts.map +1 -0
- package/dist/components/GuideStep/GuideStep.stories.d.ts +36 -0
- package/dist/components/GuideStep/GuideStep.stories.d.ts.map +1 -0
- package/dist/components/GuideStep/GuideStep.test.d.ts +2 -0
- package/dist/components/GuideStep/GuideStep.test.d.ts.map +1 -0
- package/dist/components/GuideStep/index.d.ts +3 -0
- package/dist/components/GuideStep/index.d.ts.map +1 -0
- package/dist/components/GuideStepList/GuideStepList.d.ts +21 -0
- package/dist/components/GuideStepList/GuideStepList.d.ts.map +1 -0
- package/dist/components/GuideStepList/GuideStepList.stories.d.ts +23 -0
- package/dist/components/GuideStepList/GuideStepList.stories.d.ts.map +1 -0
- package/dist/components/GuideStepList/GuideStepList.test.d.ts +2 -0
- package/dist/components/GuideStepList/GuideStepList.test.d.ts.map +1 -0
- package/dist/components/GuideStepList/index.d.ts +3 -0
- package/dist/components/GuideStepList/index.d.ts.map +1 -0
- package/dist/components/MediaFigure/MediaFigure.d.ts +70 -0
- package/dist/components/MediaFigure/MediaFigure.d.ts.map +1 -0
- package/dist/components/MediaFigure/MediaFigure.stories.d.ts +33 -0
- package/dist/components/MediaFigure/MediaFigure.stories.d.ts.map +1 -0
- package/dist/components/MediaFigure/MediaFigure.test.d.ts +2 -0
- package/dist/components/MediaFigure/MediaFigure.test.d.ts.map +1 -0
- package/dist/components/MediaFigure/MediaFigureMedia.d.ts +8 -0
- package/dist/components/MediaFigure/MediaFigureMedia.d.ts.map +1 -0
- package/dist/components/MediaFigure/MediaFigureModel.d.ts +5 -0
- package/dist/components/MediaFigure/MediaFigureModel.d.ts.map +1 -0
- package/dist/components/MediaFigure/index.d.ts +3 -0
- package/dist/components/MediaFigure/index.d.ts.map +1 -0
- package/dist/components/ToolList/ToolList.d.ts +34 -0
- package/dist/components/ToolList/ToolList.d.ts.map +1 -0
- package/dist/components/ToolList/ToolList.stories.d.ts +24 -0
- package/dist/components/ToolList/ToolList.stories.d.ts.map +1 -0
- package/dist/components/ToolList/ToolList.test.d.ts +2 -0
- package/dist/components/ToolList/ToolList.test.d.ts.map +1 -0
- package/dist/components/ToolList/index.d.ts +3 -0
- package/dist/components/ToolList/index.d.ts.map +1 -0
- package/dist/diy-guides-ui.cjs +24 -0
- package/dist/diy-guides-ui.cjs.map +1 -0
- package/dist/diy-guides-ui.js +7749 -0
- package/dist/diy-guides-ui.js.map +1 -0
- package/dist/hooks/useControlledState.d.ts +7 -0
- package/dist/hooks/useControlledState.d.ts.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/stories/Welcome.stories.d.ts +21 -0
- package/dist/stories/Welcome.stories.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/test/setup.d.ts +2 -0
- package/dist/test/setup.d.ts.map +1 -0
- package/dist/test/smoke.test.d.ts +2 -0
- package/dist/test/smoke.test.d.ts.map +1 -0
- package/dist/types/callout.d.ts +13 -0
- package/dist/types/callout.d.ts.map +1 -0
- package/dist/types/callout.test.d.ts +2 -0
- package/dist/types/callout.test.d.ts.map +1 -0
- package/dist/types/colors.d.ts +20 -0
- package/dist/types/colors.d.ts.map +1 -0
- package/dist/types/colors.test.d.ts +2 -0
- package/dist/types/colors.test.d.ts.map +1 -0
- package/dist/utils/mediaCrop.d.ts +19 -0
- package/dist/utils/mediaCrop.d.ts.map +1 -0
- package/dist/utils/mediaCrop.test.d.ts +2 -0
- package/dist/utils/mediaCrop.test.d.ts.map +1 -0
- package/package.json +81 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";var Ra=Object.create;var xr=Object.defineProperty;var Ia=Object.getOwnPropertyDescriptor;var Na=Object.getOwnPropertyNames;var Oa=Object.getPrototypeOf,ja=Object.prototype.hasOwnProperty;var $r=e=>{throw TypeError(e)};var Va=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Na(t))!ja.call(e,a)&&a!==r&&xr(e,a,{get:()=>t[a],enumerable:!(n=Ia(t,a))||n.enumerable});return e};var Da=(e,t,r)=>(r=e!=null?Ra(Oa(e)):{},Va(t||!e||!e.__esModule?xr(r,"default",{value:e,enumerable:!0}):r,e));var Er=(e,t,r)=>t.has(e)||$r("Cannot "+r);var wr=(e,t,r)=>(Er(e,t,"read from private field"),r?r.call(e):t.get(e)),Pr=(e,t,r)=>t.has(e)?$r("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),kt=(e,t,r,n)=>(Er(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),i=require("react"),Aa=require("react-dom"),He={GREY:"#7A8090",RED:"#E7320D",ORANGE:"#FF850A",YELLOW:"#F5E429",GREEN:"#14CC76",LIGHT_BLUE:"#20B3E9",BLUE:"#1738DE",MAGENTA:"#D945B1"};function Ge(e,t){const r=e.replace("#",""),n=parseInt(r.slice(0,2),16),a=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16);return`rgba(${n}, ${a}, ${o}, ${t})`}function hn(e){const t=e.replace("#",""),r=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return(.299*r+.587*n+.114*a)/255>.55?"#111111":"#ffffff"}const gn={note:"GREY",info:"LIGHT_BLUE",tip:"GREEN",caution:"ORANGE",danger:"RED"};function vn(e){return He[gn[e]]}const ut={note:"Note",info:"Info",tip:"Tip",caution:"Caution",danger:"Danger"};function $t(e){var r;if(typeof window>"u"||window.navigator==null)return!1;let t=(r=window.navigator.userAgentData)==null?void 0:r.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function rr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function le(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Te=le(function(){return rr(/^Mac/i)}),_a=le(function(){return rr(/^iPhone/i)}),yn=le(function(){return rr(/^iPad/i)||Te()&&navigator.maxTouchPoints>1}),nr=le(function(){return _a()||yn()});le(function(){return Te()||nr()});const Fa=le(function(){return $t(/AppleWebKit/i)&&!Ba()}),Ba=le(function(){return $t(/Chrome/i)}),xn=le(function(){return $t(/Android/i)}),Ga=le(function(){return $t(/Firefox/i)});function Le(e){if(Ka())e.focus({preventScroll:!0});else{let t=Ha(e);e.focus(),za(t)}}let et=null;function Ka(){if(et==null){et=!1;try{document.createElement("div").focus({get preventScroll(){return et=!0,!0}})}catch{}}return et}function Ha(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function za(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}const Ua=i.createContext({isNative:!0,open:Ya,useHref:e=>e});function $n(){return i.useContext(Ua)}function Wa(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function be(e,t,r=!0){var c,b;let{metaKey:n,ctrlKey:a,altKey:o,shiftKey:s}=t;Ga()&&((b=(c=window.event)==null?void 0:c.type)!=null&&b.startsWith("key"))&&e.target==="_blank"&&(Te()?n=!0:a=!0);let l=Fa()&&Te()&&!yn()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:a,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:n,ctrlKey:a,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});be.isOpening=r,Le(e),e.dispatchEvent(l),be.isOpening=!1}be.isOpening=!1;function qa(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function Ya(e,t){qa(e,r=>be(r,t))}function Xa(e){const r=$n().useHref((e==null?void 0:e.href)??"");let n={};if(e)for(let a of["href","target","rel","download","ping","referrerPolicy"])a in e&&(n[a]=a==="href"?r:e[a]);return n}function Za(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Wa(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}const ce=typeof document<"u"?i.useLayoutEffect:()=>{},ft={prefix:String(Math.round(Math.random()*1e10)),current:0},En=i.createContext(ft),Ja=i.createContext(!1);let Qa=!!(typeof window<"u"&&window.document&&window.document.createElement),Ct=new WeakMap;function eo(e=!1){var n,a;let t=i.useContext(En),r=i.useRef(null);if(r.current===null&&!e){let o=(a=(n=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:n.ReactCurrentOwner)==null?void 0:a.current;if(o){let s=Ct.get(o);s==null?Ct.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,Ct.delete(o))}r.current=++t.current}return r.current}function to(e){let t=i.useContext(En);t===ft&&!Qa&&process.env.NODE_ENV!=="production"&&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 r=eo(!!e),n=t===ft&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function ro(e){let t=i.useId(),[r]=i.useState(ar()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ft.prefix}`;return e||`${n}-${t}`}const no=typeof i.useId=="function"?ro:to;function ao(){return!1}function oo(){return!0}function so(e){return()=>{}}function ar(){return typeof i.useSyncExternalStore=="function"?i.useSyncExternalStore(so,ao,oo):i.useContext(Ja)}let io=!!(typeof window<"u"&&window.document&&window.document.createElement),ke=new Map,De;typeof FinalizationRegistry<"u"&&(De=new FinalizationRegistry(e=>{ke.delete(e)}));function Me(e){let[t,r]=i.useState(e),n=i.useRef(null),a=no(t),o=i.useRef(null);if(De&&De.register(o,a),io){const s=ke.get(a);s&&!s.includes(n)?s.push(n):ke.set(a,[n])}return ce(()=>{let s=a;return()=>{De&&De.unregister(o),ke.delete(s)}},[a]),i.useEffect(()=>{let s=n.current;return s&&r(s),()=>{s&&(n.current=null)}}),a}function lo(e,t){if(e===t)return e;let r=ke.get(e);if(r)return r.forEach(a=>a.current=t),t;let n=ke.get(t);return n?(n.forEach(a=>a.current=e),e):t}function wn(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Y=e=>(e==null?void 0:e.ownerDocument)??document,oe=e=>e&&"window"in e&&e.window===e?e:Y(e).defaultView||window;function co(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function uo(e){return co(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let fo=!1;function or(){return fo}function D(e,t){if(!or())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:uo(r)?r=r.host:r=r.parentNode}return!1}const me=(e=document)=>{var r;if(!or())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&((r=t.shadowRoot)!=null&&r.activeElement);)t=t.shadowRoot.activeElement;return t};function I(e){if(or()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function ze(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(a=>{const o=Sr(a,t);return r||(r=typeof o=="function"),o});if(r)return()=>{n.forEach((a,o)=>{typeof a=="function"?a():Sr(e[o],null)})}}}function Sr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Pn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function po(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Pn(e))&&(n&&(n+=" "),n+=t);return n}function K(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let a in n){let o=t[a],s=n[a];typeof o=="function"&&typeof s=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=wn(o,s):(a==="className"||a==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[a]=po(o,s):a==="id"&&o&&s?t.id=lo(o,s):a==="ref"&&o&&s?t.ref=ze(o,s):t[a]=s!==void 0?s:o}}return t}const bo=new Set(["id"]),mo=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ho=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),go=new Set(["dir","lang","hidden","inert","translate"]),kr=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),vo=/^(data-.*)$/;function ne(e,t={}){let{labelable:r,isLink:n,global:a,events:o=a,propNames:s}=t,l={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(bo.has(c)||r&&mo.has(c)||n&&ho.has(c)||a&&go.has(c)||o&&(kr.has(c)||c.endsWith("Capture")&&kr.has(c.slice(0,-7)))||s!=null&&s.has(c)||vo.test(c))&&(l[c]=e[c]);return l}let pe=new Map,Dt=new Set;function Cr(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{let a=I(n);if(!e(n)||!a)return;let o=pe.get(a);o||(o=new Set,pe.set(a,o),a.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{let a=I(n);if(!e(n)||!a)return;let o=pe.get(a);if(o&&(o.delete(n.propertyName),o.size===0&&(a.removeEventListener("transitioncancel",r),pe.delete(a)),pe.size===0)){for(let s of Dt)s();Dt.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Cr():document.addEventListener("DOMContentLoaded",Cr));function yo(){for(const[e]of pe)"isConnected"in e&&!e.isConnected&&pe.delete(e)}function Sn(e){requestAnimationFrame(()=>{yo(),pe.size===0?e():Dt.add(e)})}function sr(){let e=i.useRef(new Map),t=i.useCallback((a,o,s,l)=>{let c=l!=null&&l.once?(...b)=>{e.current.delete(s),s(...b)}:s;e.current.set(s,{type:o,eventTarget:a,fn:c,options:l}),a.addEventListener(o,c,l)},[]),r=i.useCallback((a,o,s,l)=>{var b;let c=((b=e.current.get(s))==null?void 0:b.fn)||s;a.removeEventListener(o,c,l),e.current.delete(s)},[]),n=i.useCallback(()=>{e.current.forEach((a,o)=>{r(a.eventTarget,a.type,o,a.options)})},[r]);return i.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function xo(e,t){let{id:r,"aria-label":n,"aria-labelledby":a}=e;return r=Me(r),a&&n?a=[...new Set([r,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!n&&!a&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":a}}function kn(e){const t=i.useRef(null),r=i.useRef(void 0),n=i.useCallback(a=>{if(typeof e=="function"){const o=e,s=o(a);return()=>{typeof s=="function"?s():o(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return i.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,r.current&&(r.current(),r.current=void 0),a!=null&&(r.current=n(a))}}),[n])}const $o=i.useInsertionEffect??ce;function xe(e){const t=i.useRef(null);return $o(()=>{t.current=e},[e]),i.useCallback((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}function Cn(e,t){ce(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function At(e){return e.pointerType===""&&e.isTrusted?!0:xn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Eo(e){return!xn()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function wo(e,t,r){let n=xe(a=>{r&&!a.defaultPrevented&&r(t)});i.useEffect(()=>{var o;let a=(o=e==null?void 0:e.current)==null?void 0:o.form;return a==null||a.addEventListener("reset",n),()=>{a==null||a.removeEventListener("reset",n)}},[e])}const Po=typeof Element<"u"&&"checkVisibility"in Element.prototype;function So(e){const t=oe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,a=r!=="none"&&n!=="hidden"&&n!=="collapse";if(a){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:s,visibility:l}=o(e);a=s!=="none"&&l!=="hidden"&&l!=="collapse"}return a}function ko(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 Tn(e,t){return Po?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&So(e)&&ko(e,t)&&(!e.parentElement||Tn(e.parentElement,e))}const Ln=["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]:not([contenteditable^="false"])',"permission"],Co=Ln.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ln.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function To(e,t){return e.matches(Co)&&!Lo(e)&&((t==null?void 0:t.skipVisibilityCheck)||Tn(e))}function Lo(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Tr(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let Tt=new WeakMap;function Mo(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return Tr(t);if(Tt.has(t))return Tt.get(t);let r=t.querySelector('meta[property="csp-nonce"]'),n=r&&r instanceof oe(r).HTMLMetaElement&&(r.nonce||r.content)||Tr(t)||void 0;return n!==void 0&&Tt.set(t,n),n}function Ro(e,t,r){const{render:n,...a}=t,o=i.useRef(null),s=i.useMemo(()=>ze(r,o),[r,o]);ce(()=>{var c;typeof process<"u"&&((c=process.env)==null?void 0:c.NODE_ENV)!=="production"&&n&&(o.current||console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[e,n]);const l={...a,ref:s};return n?n(l,void 0):u.jsx(e,{...l})}const Lr={},W=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=Lr[t];return r||(r=i.forwardRef(Ro.bind(null,t)),Lr[t]=r),r}});var Io=/\s+/g,No=e=>typeof e!="string"||!e?e:e.replace(Io," ").trim(),Ke=(...e)=>{const t=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let o=0,s=n.length;o<s;o++)r(n[o]);return}const a=typeof n;if(a==="string"||a==="number"||a==="bigint"){if(a==="number"&&n!==n)return;t.push(String(n))}else if(a==="object"){const o=Object.keys(n);for(let s=0,l=o.length;s<l;s++){const c=o[s];n[c]&&t.push(c)}}};for(let n=0,a=e.length;n<a;n++){const o=e[n];o!=null&&r(o)}return t.length>0?No(t.join(" ")):void 0},Mr=e=>e===!1?"false":e===!0?"true":e===0?"0":e,Q=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Oo=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let a=0;a<r.length;a++){const o=r[a];if(!n.includes(o)||e[o]!==t[o])return!1}return!0},jo=(e,t)=>{for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=t[r];r in e?e[r]=Ke(e[r],n):e[r]=n}return e},Mn=(e,t)=>{for(let r=0;r<e.length;r++){const n=e[r];Array.isArray(n)?Mn(n,t):n&&t.push(n)}},Rn=(...e)=>{const t=[];Mn(e,t);const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},_t=(e,t)=>{const r={};for(const n in e){const a=e[n];if(n in t){const o=t[n];Array.isArray(a)||Array.isArray(o)?r[n]=Rn(o,a):typeof a=="object"&&typeof o=="object"&&a&&o?r[n]=_t(a,o):r[n]=o+" "+a}else r[n]=a}for(const n in t)n in e||(r[n]=t[n]);return r},Vo={twMerge:!0,twMergeConfig:{}};function Do(){let e=null,t={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(n){e=n},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(n){t=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){e=null,t={},r=!1}}}var ie=Do(),Ao=e=>{const t=(n,a)=>{const{extend:o=null,slots:s={},variants:l={},compoundVariants:c=[],compoundSlots:b=[],defaultVariants:m={}}=n,p={...Vo,...a},y=o!=null&&o.base?Ke(o.base,n==null?void 0:n.base):n==null?void 0:n.base,v=o!=null&&o.variants&&!Q(o.variants)?_t(l,o.variants):l,$=o!=null&&o.defaultVariants&&!Q(o.defaultVariants)?{...o.defaultVariants,...m}:m;!Q(p.twMergeConfig)&&!Oo(p.twMergeConfig,ie.cachedTwMergeConfig)&&(ie.didTwMergeConfigChange=!0,ie.cachedTwMergeConfig=p.twMergeConfig);const h=Q(o==null?void 0:o.slots),E=Q(s)?{}:{base:Ke(n==null?void 0:n.base,h&&(o==null?void 0:o.base)),...s},S=h?E:jo({...o==null?void 0:o.slots},Q(E)?{base:n==null?void 0:n.base}:E),R=Q(o==null?void 0:o.compoundVariants)?c:Rn(o==null?void 0:o.compoundVariants,c),O=N=>{if(Q(v)&&Q(s)&&h)return e(y,N==null?void 0:N.class,N==null?void 0:N.className)(p);if(R&&!Array.isArray(R))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof R}`);if(b&&!Array.isArray(b))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof b}`);const Z=(d,w=v,T=null,g=null)=>{const x=w[d];if(!x||Q(x))return null;const f=(g==null?void 0:g[d])??(N==null?void 0:N[d]);if(f===null)return null;const L=Mr(f);if(typeof L=="object")return null;const P=$==null?void 0:$[d],V=L??Mr(P);return x[V||"false"]},H=()=>{if(!v)return null;const d=Object.keys(v),w=[];for(let T=0;T<d.length;T++){const g=Z(d[T],v);g&&w.push(g)}return w},M=(d,w)=>{if(!v||typeof v!="object")return null;const T=[];for(const g in v){const x=Z(g,v,d,w),f=d==="base"&&typeof x=="string"?x:x&&x[d];f&&T.push(f)}return T},B={};for(const d in N){const w=N[d];w!==void 0&&(B[d]=w)}const A=(d,w)=>{var g;const T=typeof(N==null?void 0:N[d])=="object"?{[d]:(g=N[d])==null?void 0:g.initial}:{};return{...$,...B,...T,...w}},re=(d=[],w)=>{const T=[],g=d.length;for(let x=0;x<g;x++){const{class:f,className:L,...P}=d[x];let V=!0;const _=A(null,w);for(const G in P){const J=P[G],ge=_[G];if(Array.isArray(J)){if(!J.includes(ge)){V=!1;break}}else{if((J==null||J===!1)&&(ge==null||ge===!1))continue;if(ge!==J){V=!1;break}}}V&&(f&&T.push(f),L&&T.push(L))}return T},ee=d=>{const w=re(R,d);if(!Array.isArray(w))return w;const T={},g=e;for(let x=0;x<w.length;x++){const f=w[x];if(typeof f=="string")T.base=g(T.base,f)(p);else if(typeof f=="object")for(const L in f)T[L]=g(T[L],f[L])(p)}return T},de=d=>{if(b.length<1)return null;const w={},T=A(null,d);for(let g=0;g<b.length;g++){const{slots:x=[],class:f,className:L,...P}=b[g];if(!Q(P)){let V=!0;for(const _ in P){const G=T[_],J=P[_];if(G===void 0||(Array.isArray(J)?!J.includes(G):J!==G)){V=!1;break}}if(!V)continue}for(let V=0;V<x.length;V++){const _=x[V];w[_]||(w[_]=[]),w[_].push([f,L])}}return w};if(!Q(s)||!h){const d={};if(typeof S=="object"&&!Q(S)){const w=e;for(const T in S)d[T]=g=>{const x=ee(g),f=de(g);return w(S[T],M(T,g),x?x[T]:void 0,f?f[T]:void 0,g==null?void 0:g.class,g==null?void 0:g.className)(p)}}return d}return e(y,H(),re(R),N==null?void 0:N.class,N==null?void 0:N.className)(p)},F=()=>{if(!(!v||typeof v!="object"))return Object.keys(v)};return O.variantKeys=F(),O.extend=o,O.base=y,O.slots=S,O.variants=v,O.defaultVariants=$,O.compoundSlots=b,O.compoundVariants=R,O};return{tv:t,createTV:n=>(a,o)=>t(a,o?_t(n,o):n)}};const _o=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Fo=(e,t)=>({classGroupId:e,validator:t}),In=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),pt="-",Rr=[],Bo="arbitrary..",Go=e=>{const t=Ho(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Ko(s);const l=s.split(pt),c=l[0]===""&&l.length>1?1:0;return Nn(l,c,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const c=n[s],b=r[s];return c?b?_o(b,c):c:b||Rr}return r[s]||Rr}}},Nn=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const a=e[t],o=r.nextPart.get(a);if(o){const b=Nn(e,t+1,o);if(b)return b}const s=r.validators;if(s===null)return;const l=t===0?e.join(pt):e.slice(t).join(pt),c=s.length;for(let b=0;b<c;b++){const m=s[b];if(m.validator(l))return m.classGroupId}},Ko=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Bo+n:void 0})(),Ho=e=>{const{theme:t,classGroups:r}=e;return zo(r,t)},zo=(e,t)=>{const r=In();for(const n in e){const a=e[n];ir(a,r,n,t)}return r},ir=(e,t,r,n)=>{const a=e.length;for(let o=0;o<a;o++){const s=e[o];Uo(s,t,r,n)}},Uo=(e,t,r,n)=>{if(typeof e=="string"){Wo(e,t,r);return}if(typeof e=="function"){qo(e,t,r,n);return}Yo(e,t,r,n)},Wo=(e,t,r)=>{const n=e===""?t:On(t,e);n.classGroupId=r},qo=(e,t,r,n)=>{if(Xo(e)){ir(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Fo(r,e))},Yo=(e,t,r,n)=>{const a=Object.entries(e),o=a.length;for(let s=0;s<o;s++){const[l,c]=a[s];ir(c,On(t,l),r,n)}},On=(e,t)=>{let r=e;const n=t.split(pt),a=n.length;for(let o=0;o<a;o++){const s=n[o];let l=r.nextPart.get(s);l||(l=In(),r.nextPart.set(s,l)),r=l}return r},Xo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Zo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const a=(o,s)=>{r[o]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(o){let s=r[o];if(s!==void 0)return s;if((s=n[o])!==void 0)return a(o,s),s},set(o,s){o in r?r[o]=s:a(o,s)}}},Ft="!",Ir=":",Jo=[],Nr=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),Qo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=a=>{const o=[];let s=0,l=0,c=0,b;const m=a.length;for(let h=0;h<m;h++){const E=a[h];if(s===0&&l===0){if(E===Ir){o.push(a.slice(c,h)),c=h+1;continue}if(E==="/"){b=h;continue}}E==="["?s++:E==="]"?s--:E==="("?l++:E===")"&&l--}const p=o.length===0?a:a.slice(c);let y=p,v=!1;p.endsWith(Ft)?(y=p.slice(0,-1),v=!0):p.startsWith(Ft)&&(y=p.slice(1),v=!0);const $=b&&b>c?b-c:void 0;return Nr(o,v,y,$)};if(t){const a=t+Ir,o=n;n=s=>s.startsWith(a)?o(s.slice(a.length)):Nr(Jo,!1,s,void 0,!0)}if(r){const a=n;n=o=>r({className:o,parseClassName:a})}return n},es=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let a=[];for(let o=0;o<r.length;o++){const s=r[o],l=s[0]==="[",c=t.has(s);l||c?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(s)):a.push(s)}return a.length>0&&(a.sort(),n.push(...a)),n}},ts=e=>({cache:Zo(e.cacheSize),parseClassName:Qo(e),sortModifiers:es(e),...Go(e)}),rs=/\s+/,ns=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=t,s=[],l=e.trim().split(rs);let c="";for(let b=l.length-1;b>=0;b-=1){const m=l[b],{isExternal:p,modifiers:y,hasImportantModifier:v,baseClassName:$,maybePostfixModifierPosition:h}=r(m);if(p){c=m+(c.length>0?" "+c:c);continue}let E=!!h,S=n(E?$.substring(0,h):$);if(!S){if(!E){c=m+(c.length>0?" "+c:c);continue}if(S=n($),!S){c=m+(c.length>0?" "+c:c);continue}E=!1}const R=y.length===0?"":y.length===1?y[0]:o(y).join(":"),O=v?R+Ft:R,F=O+S;if(s.indexOf(F)>-1)continue;s.push(F);const N=a(S,E);for(let Z=0;Z<N.length;++Z){const H=N[Z];s.push(O+H)}c=m+(c.length>0?" "+c:c)}return c},as=(...e)=>{let t=0,r,n,a="";for(;t<e.length;)(r=e[t++])&&(n=jn(r))&&(a&&(a+=" "),a+=n);return a},jn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=jn(e[n]))&&(r&&(r+=" "),r+=t);return r},Bt=(e,...t)=>{let r,n,a,o;const s=c=>{const b=t.reduce((m,p)=>p(m),e());return r=ts(b),n=r.cache.get,a=r.cache.set,o=l,l(c)},l=c=>{const b=n(c);if(b)return b;const m=ns(c,r);return a(c,m),m};return o=s,(...c)=>o(as(...c))},os=[],z=e=>{const t=r=>r[e]||os;return t.isThemeGetter=!0,t},Vn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Dn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ss=/^\d+\/\d+$/,is=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ls=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,cs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ds=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,us=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,we=e=>ss.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>!!e&&Number.isInteger(Number(e)),Lt=e=>e.endsWith("%")&&j(e.slice(0,-1)),se=e=>is.test(e),fs=()=>!0,ps=e=>ls.test(e)&&!cs.test(e),An=()=>!1,bs=e=>ds.test(e),ms=e=>us.test(e),hs=e=>!k(e)&&!C(e),gs=e=>Re(e,Bn,An),k=e=>Vn.test(e),ve=e=>Re(e,Gn,ps),Mt=e=>Re(e,Es,j),Or=e=>Re(e,_n,An),vs=e=>Re(e,Fn,ms),tt=e=>Re(e,Kn,bs),C=e=>Dn.test(e),je=e=>Ie(e,Gn),ys=e=>Ie(e,ws),jr=e=>Ie(e,_n),xs=e=>Ie(e,Bn),$s=e=>Ie(e,Fn),rt=e=>Ie(e,Kn,!0),Re=(e,t,r)=>{const n=Vn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ie=(e,t,r=!1)=>{const n=Dn.exec(e);return n?n[1]?t(n[1]):r:!1},_n=e=>e==="position"||e==="percentage",Fn=e=>e==="image"||e==="url",Bn=e=>e==="length"||e==="size"||e==="bg-size",Gn=e=>e==="length",Es=e=>e==="number",ws=e=>e==="family-name",Kn=e=>e==="shadow",Gt=()=>{const e=z("color"),t=z("font"),r=z("text"),n=z("font-weight"),a=z("tracking"),o=z("leading"),s=z("breakpoint"),l=z("container"),c=z("spacing"),b=z("radius"),m=z("shadow"),p=z("inset-shadow"),y=z("text-shadow"),v=z("drop-shadow"),$=z("blur"),h=z("perspective"),E=z("aspect"),S=z("ease"),R=z("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...F(),C,k],Z=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],M=()=>[C,k,c],B=()=>[we,"full","auto",...M()],A=()=>[ue,"none","subgrid",C,k],re=()=>["auto",{span:["full",ue,C,k]},ue,C,k],ee=()=>[ue,"auto",C,k],de=()=>["auto","min","max","fr",C,k],d=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],w=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...M()],g=()=>[we,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],x=()=>[e,C,k],f=()=>[...F(),jr,Or,{position:[C,k]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",xs,gs,{size:[C,k]}],V=()=>[Lt,je,ve],_=()=>["","none","full",b,C,k],G=()=>["",j,je,ve],J=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[j,Lt,jr,Or],yr=()=>["","none",$,C,k],Ze=()=>["none",j,C,k],Je=()=>["none",j,C,k],St=()=>[j,C,k],Qe=()=>[we,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[se],breakpoint:[se],color:[fs],container:[se],"drop-shadow":[se],ease:["in","out","in-out"],font:[hs],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[se],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[se],shadow:[se],spacing:["px",j],text:[se],"text-shadow":[se],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",we,k,C,E]}],container:["container"],columns:[{columns:[j,k,C,l]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[ue,"auto",C,k]}],basis:[{basis:[we,"full","auto",l,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,we,"auto","initial","none",k]}],grow:[{grow:["",j,C,k]}],shrink:[{shrink:["",j,C,k]}],order:[{order:[ue,"first","last","none",C,k]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...d(),"normal"]}],"justify-items":[{"justify-items":[...w(),"normal"]}],"justify-self":[{"justify-self":["auto",...w()]}],"align-content":[{content:["normal",...d()]}],"align-items":[{items:[...w(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...w(),{baseline:["","last"]}]}],"place-content":[{"place-content":d()}],"place-items":[{"place-items":[...w(),"baseline"]}],"place-self":[{"place-self":["auto",...w()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:g()}],w:[{w:[l,"screen",...g()]}],"min-w":[{"min-w":[l,"screen","none",...g()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...g()]}],h:[{h:["screen","lh",...g()]}],"min-h":[{"min-h":["screen","lh","none",...g()]}],"max-h":[{"max-h":["screen","lh",...g()]}],"font-size":[{text:["base",r,je,ve]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,C,Mt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lt,k]}],"font-family":[{font:[ys,k,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,C,k]}],"line-clamp":[{"line-clamp":[j,"none",C,Mt]}],leading:[{leading:[o,...M()]}],"list-image":[{"list-image":["none",C,k]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",C,k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",C,ve]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[j,"auto",C,k]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C,k]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C,k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:f()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ue,C,k],radial:["",C,k],conic:[ue,C,k]},$s,vs]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,C,k]}],"outline-w":[{outline:["",j,je,ve]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",m,rt,tt]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",p,rt,tt]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[j,ve]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",y,rt,tt]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[j,C,k]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[C,k]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:f()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",C,k]}],filter:[{filter:["","none",C,k]}],blur:[{blur:yr()}],brightness:[{brightness:[j,C,k]}],contrast:[{contrast:[j,C,k]}],"drop-shadow":[{"drop-shadow":["","none",v,rt,tt]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",j,C,k]}],"hue-rotate":[{"hue-rotate":[j,C,k]}],invert:[{invert:["",j,C,k]}],saturate:[{saturate:[j,C,k]}],sepia:[{sepia:["",j,C,k]}],"backdrop-filter":[{"backdrop-filter":["","none",C,k]}],"backdrop-blur":[{"backdrop-blur":yr()}],"backdrop-brightness":[{"backdrop-brightness":[j,C,k]}],"backdrop-contrast":[{"backdrop-contrast":[j,C,k]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,C,k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,C,k]}],"backdrop-invert":[{"backdrop-invert":["",j,C,k]}],"backdrop-opacity":[{"backdrop-opacity":[j,C,k]}],"backdrop-saturate":[{"backdrop-saturate":[j,C,k]}],"backdrop-sepia":[{"backdrop-sepia":["",j,C,k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",C,k]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",C,k]}],ease:[{ease:["linear","initial",S,C,k]}],delay:[{delay:[j,C,k]}],animate:[{animate:["none",R,C,k]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,C,k]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:St()}],"skew-x":[{"skew-x":St()}],"skew-y":[{"skew-y":St()}],transform:[{transform:[C,k,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qe()}],"translate-x":[{"translate-x":Qe()}],"translate-y":[{"translate-y":Qe()}],"translate-z":[{"translate-z":Qe()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C,k]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C,k]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[j,je,ve,Mt]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ps=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:a={},override:o={}})=>(Ae(e,"cacheSize",t),Ae(e,"prefix",r),Ae(e,"experimentalParseClassName",n),nt(e.theme,o.theme),nt(e.classGroups,o.classGroups),nt(e.conflictingClassGroups,o.conflictingClassGroups),nt(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ae(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),at(e.theme,a.theme),at(e.classGroups,a.classGroups),at(e.conflictingClassGroups,a.conflictingClassGroups),at(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Hn(e,a,"orderSensitiveModifiers"),e),Ae=(e,t,r)=>{r!==void 0&&(e[t]=r)},nt=(e,t)=>{if(t)for(const r in t)Ae(e,r,t[r])},at=(e,t)=>{if(t)for(const r in t)Hn(e,t,r)},Hn=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Ss=(e,...t)=>typeof e=="function"?Bt(Gt,e,...t):Bt(()=>Ps(Gt(),e),...t),ks=Bt(Gt);var Cs=e=>Q(e)?ks:Ss({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),zn=(e,t)=>{const r=Ke(e);return!r||!((t==null?void 0:t.twMerge)??!0)?r:((!ie.cachedTwMerge||ie.didTwMergeConfigChange)&&(ie.didTwMergeConfigChange=!1,ie.cachedTwMerge=Cs(ie.cachedTwMergeConfig)),ie.cachedTwMerge(r)||void 0)},U=(...e)=>zn(e,{}),Ts=(...e)=>t=>zn(e,t),{tv:he}=Ao(Ts);const Ls=he({defaultVariants:{status:"default"},slots:{base:"alert",content:"alert__content",description:"alert__description",indicator:"alert__indicator",title:"alert__title"},variants:{status:{accent:{base:"alert--accent"},danger:{base:"alert--danger"},default:{base:"alert--default"},success:{base:"alert--success"},warning:{base:"alert--warning"}}}}),Ms=he({base:"button",defaultVariants:{fullWidth:!1,isIconOnly:!1,size:"md",variant:"primary"},variants:{fullWidth:{false:"",true:"button--full-width"},isIconOnly:{true:"button--icon-only"},size:{lg:"button--lg",md:"button--md",sm:"button--sm"},variant:{danger:"button--danger","danger-soft":"button--danger-soft",ghost:"button--ghost",outline:"button--outline",primary:"button--primary",secondary:"button--secondary",tertiary:"button--tertiary"}}}),Rs=he({defaultVariants:{variant:"default"},slots:{base:"card",content:"card__content",description:"card__description",footer:"card__footer",header:"card__header",title:"card__title"},variants:{variant:{default:{base:"card--default"},secondary:{base:"card--secondary"},tertiary:{base:"card--tertiary"},transparent:{base:"card--transparent"}}}}),Is=he({defaultVariants:{variant:"primary"},slots:{base:"checkbox",content:"checkbox__content",control:"checkbox__control",indicator:"checkbox__indicator"},variants:{variant:{primary:{base:"checkbox--primary"},secondary:{base:"checkbox--secondary"}}}}),Ns=he({defaultVariants:{color:"default",variant:"secondary"},slots:{base:"chip",label:"chip__label"},variants:{color:{accent:{base:"chip--accent"},danger:{base:"chip--danger"},default:{base:"chip--default"},success:{base:"chip--success"},warning:{base:"chip--warning"}},size:{lg:{base:"chip--lg"},md:{base:"chip--md"},sm:{base:"chip--sm"}},variant:{primary:{base:"chip--primary"},secondary:{base:"chip--secondary"},soft:{base:"chip--soft"},tertiary:{base:"chip--tertiary"}}}}),Os=he({slots:{base:"link",icon:"link__icon"}}),js=he({defaultVariants:{color:"accent",size:"md"},slots:{base:"progress-bar",fill:"progress-bar__fill",output:"progress-bar__output",track:"progress-bar__track"},variants:{color:{accent:{base:"progress-bar--accent"},danger:{base:"progress-bar--danger"},default:{base:"progress-bar--default"},success:{base:"progress-bar--success"},warning:{base:"progress-bar--warning"}},size:{lg:{base:"progress-bar--lg"},md:{base:"progress-bar--md"},sm:{base:"progress-bar--sm"}}}}),Vs=he({base:"separator",defaultVariants:{orientation:"horizontal",variant:"default"},variants:{orientation:{horizontal:"separator--horizontal",vertical:"separator--vertical"},variant:{default:"separator--default",secondary:"separator--secondary",tertiary:"separator--tertiary"}}}),Ds=Symbol("default");function As({values:e,children:t}){for(let[r,n]of e)t=i.createElement(r.Provider,{value:n},t);return t}function Ue(e){let{className:t,style:r,children:n,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:l,render:c}=e;return i.useMemo(()=>{let b,m,p;return typeof t=="function"?b=t({...l,defaultClassName:a}):b=t,typeof r=="function"?m=r({...l,defaultStyle:s||{}}):m=r,typeof n=="function"?p=n({...l,defaultChildren:o}):n==null?p=o:p=n,{className:b??a,style:m||s?{...s,...m}:void 0,children:p??o,"data-rac":"",render:c?y=>c(y,l):void 0}},[t,r,n,a,o,s,l,c])}function _s(e,t){return r=>t(typeof e=="function"?e(r):e,r)}function lr(e,t){let r=i.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||Ds;if(!r.slots[n]){let a=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`)),o=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${a}.`)}return r.slots[n]}return r}function We(e,t,r){let n=lr(r,e.slot)||{},{ref:a,...o}=n,s=kn(i.useMemo(()=>ze(t,a),[t,a])),l=K(o,e);return"style"in o&&o.style&&"style"in e&&e.style&&(typeof o.style=="function"||typeof e.style=="function"?l.style=c=>{let b=typeof o.style=="function"?o.style(c):o.style,m={...c.defaultStyle,...b},p=typeof e.style=="function"?e.style({...c,defaultStyle:m}):e.style;return{...m,...p}}:l.style={...o.style,...e.style}),[l,s]}function Fs(e=!0){let[t,r]=i.useState(e),n=i.useRef(!1),a=i.useCallback(o=>{n.current=!0,r(!!o)},[]);return ce(()=>{n.current||r(!1)},[]),[a,t]}function Bs(e){const t=/^(data-.*)$/;let r={};for(const n in e)t.test(n)||(r[n]=e[n]);return r}function Gs(e,t,r){let{render:n,...a}=t,o=i.useRef(null),s=i.useMemo(()=>ze(r,o),[r,o]);ce(()=>{process.env.NODE_ENV!=="production"&&n&&(o.current?o.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${o.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[e,n]);let l={...a,ref:s};return n?n(l,void 0):i.createElement(e,l)}const Vr={},Ne=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=Vr[t];return r||(r=i.forwardRef(Gs.bind(null,t)),Vr[t]=r),r}});typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));const Ks=i.createContext(!1);function Hs(e){let t=(r,n)=>i.useContext(Ks)?null:e(r,n);return t.displayName=e.displayName||e.name,i.forwardRef(t)}const zs=i.createContext({});function Us(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":a,labelElementType:o="label"}=e;t=Me(t);let s=Me(),l={};r?(n=n?`${s} ${n}`:s,l={id:s,htmlFor:o==="label"?t:void 0}):!n&&!a&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=xo({id:t,"aria-label":a,"aria-labelledby":n});return{labelProps:l,fieldProps:c}}const Ws=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),qs=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ys(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return Ws.has(r.script)}let t=e.split("-")[0];return qs.has(t)}const Un=Symbol.for("react-aria.i18n.locale");function Wn(){let e=typeof window<"u"&&window[Un]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Ys(e)?"rtl":"ltr"}}let Kt=Wn(),_e=new Set;function Dr(){Kt=Wn();for(let e of _e)e(Kt)}function Xs(){let e=ar(),[t,r]=i.useState(Kt);return i.useEffect(()=>(_e.size===0&&window.addEventListener("languagechange",Dr),_e.add(r),()=>{_e.delete(r),_e.size===0&&window.removeEventListener("languagechange",Dr)}),[]),e?{locale:typeof window<"u"&&window[Un]||"en-US",direction:"ltr"}:t}const Zs=i.createContext(null);function Js(){let e=Xs();return i.useContext(Zs)||e}let Rt=new Map,Ht=!1;try{Ht=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let bt=!1;try{bt=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const qn={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Qs{constructor(t,r={}){this.numberFormatter=ei(t,r),this.options=r}format(t){var n;let r="";if(!Ht&&this.options.signDisplay!=null?r=ti(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!bt){let{unit:a,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!a)return r;let l=(n=qn[a])==null?void 0:n[o];r+=l[s]||l.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(r);return[...n.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ht&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!bt&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function ei(e,t={}){var o;let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!bt){let{unit:s,unitDisplay:l="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!((o=qn[s])!=null&&o[l]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort((s,l)=>s[0]<l[0]?-1:1).join():"");if(Rt.has(n))return Rt.get(n);let a=new Intl.NumberFormat(e,t);return Rt.set(n,a),a}function ti(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let a=e.format(-r),o=e.format(r),s=a.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return e.format(r)}}function ri(e={}){let{locale:t}=Js();return i.useMemo(()=>new Qs(t,e),[t,e])}function ni(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ai(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:a,isIndeterminate:o,formatOptions:s={style:"percent"}}=e,l=ne(e,{labelable:!0}),{labelProps:c,fieldProps:b}=Us({...e,labelElementType:"span"});t=ni(t,r,n);let m=(t-r)/(n-r),p=ri(s);if(!o&&!a){let y=s.style==="percent"?m:t;a=p.format(y)}return{progressBarProps:K(l,{...b,"aria-valuenow":o?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":o?void 0:a,role:"progressbar"}),labelProps:c}}function oi(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}const Yn=i.createContext(null),si=i.forwardRef(function(t,r){[t,r]=We(t,r,Yn);let{value:n=0,minValue:a=0,maxValue:o=100,isIndeterminate:s=!1}=t;n=oi(n,a,o);let[l,c]=Fs(!t["aria-label"]&&!t["aria-labelledby"]),{progressBarProps:b,labelProps:m}=ai({...t,label:c}),p=s?void 0:(n-a)/(o-a)*100,y=Ue({...t,defaultClassName:"react-aria-ProgressBar",values:{percentage:p,valueText:b["aria-valuetext"],isIndeterminate:s}}),v=ne(t,{global:!0});return i.createElement(Ne.div,{...K(v,y,b),ref:r,slot:t.slot||void 0},i.createElement(zs.Provider,{value:{...m,ref:l,elementType:"span"}},y.children))}),Xn=7e3;let ae=null;function Ar(e,t="assertive",r=Xn){ae?ae.announce(e,t,r):(ae=new ii,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ae.announce(e,t,r):setTimeout(()=>{ae!=null&&ae.isAttached()&&(ae==null||ae.announce(e,t,r))},100))}class ii{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))}isAttached(){var t;return(t=this.node)==null?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=Xn){var o,s;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,r==="assertive"?(o=this.assertiveLog)==null||o.appendChild(a):(s=this.politeLog)==null||s.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function cr(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Zn(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Jn(e){let t=i.useRef({isFocused:!1,observer:null});return ce(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),i.useCallback(r=>{let n=I(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){t.current.isFocused=!0;let a=n,o=s=>{if(t.current.isFocused=!1,a.disabled){let l=cr(s);e==null||e(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{var s;if(t.current.isFocused&&a.disabled){(s=t.current.observer)==null||s.disconnect();let l=a===me()?null:me();a.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let mt=!1;function _r(e){for(;e&&!To(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=oe(e),r=t.document.activeElement;if(!r||r===e)return;mt=!0;let n=!1,a=m=>{(I(m)===r||n)&&m.stopImmediatePropagation()},o=m=>{(I(m)===r||n)&&(m.stopImmediatePropagation(),!e&&!n&&(n=!0,Le(r),c()))},s=m=>{(I(m)===e||n)&&m.stopImmediatePropagation()},l=m=>{(I(m)===e||n)&&(m.stopImmediatePropagation(),n||(n=!0,Le(r),c()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",s,!0);let c=()=>{cancelAnimationFrame(b),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",s,!0),mt=!1,n=!1},b=requestAnimationFrame(c);return c}let Ee=null;const zt=new Set;let Be=new Map,$e=!1,Ut=!1;const li={Tab:!0,Escape:!0};function Et(e,t){for(let r of zt)r(e,t)}function ci(e){return!(e.metaKey||!Te()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ht(e){$e=!0,!be.isOpening&&ci(e)&&(Ee="keyboard",Et("keyboard",e))}function te(e){Ee="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&($e=!0,Et("pointer",e))}function Qn(e){!be.isOpening&&At(e)&&($e=!0,Ee="virtual")}function ea(e){let t=oe(I(e)),r=Y(I(e));I(e)===t||I(e)===r||mt||!e.isTrusted||(!$e&&!Ut&&(Ee="virtual",Et("virtual",e)),$e=!1,Ut=!1)}function ta(){mt||($e=!1,Ut=!0)}function Wt(e){if(typeof window>"u"||typeof document>"u")return;const t=oe(e),r=Y(e);if(Be.get(t))return;let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){$e=!0,n.apply(this,arguments)},r.addEventListener("keydown",ht,!0),r.addEventListener("keyup",ht,!0),r.addEventListener("click",Qn,!0),t.addEventListener("focus",ea,!0),t.addEventListener("blur",ta,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",te,!0),r.addEventListener("pointermove",te,!0),r.addEventListener("pointerup",te,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",te,!0),r.addEventListener("mousemove",te,!0),r.addEventListener("mouseup",te,!0)),t.addEventListener("beforeunload",()=>{ra(e)},{once:!0}),Be.set(t,{focus:n})}const ra=(e,t)=>{const r=oe(e),n=Y(e);t&&n.removeEventListener("DOMContentLoaded",t),Be.has(r)&&(r.HTMLElement.prototype.focus=Be.get(r).focus,n.removeEventListener("keydown",ht,!0),n.removeEventListener("keyup",ht,!0),n.removeEventListener("click",Qn,!0),r.removeEventListener("focus",ea,!0),r.removeEventListener("blur",ta,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",te,!0),n.removeEventListener("pointermove",te,!0),n.removeEventListener("pointerup",te,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",te,!0),n.removeEventListener("mousemove",te,!0),n.removeEventListener("mouseup",te,!0)),Be.delete(r))};function di(e){const t=Y(e);let r;return t.readyState!=="loading"?Wt(e):(r=()=>{Wt(e)},t.addEventListener("DOMContentLoaded",r)),()=>ra(e,r)}typeof document<"u"&&di();function qt(){return Ee!=="pointer"}function ui(){return Ee}function fi(e){Ee=e,Et(e,null)}const pi=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bi(e,t,r){let n=r?I(r):void 0,a=Y(n),o=oe(n);const s=typeof o<"u"?o.HTMLInputElement:HTMLInputElement,l=typeof o<"u"?o.HTMLTextAreaElement:HTMLTextAreaElement,c=typeof o<"u"?o.HTMLElement:HTMLElement,b=typeof o<"u"?o.KeyboardEvent:KeyboardEvent;let m=me(a);return e=e||m instanceof s&&!pi.has(m.type)||m instanceof l||m instanceof c&&m.isContentEditable,!(e&&t==="keyboard"&&r instanceof b&&!li[r.key])}function mi(e,t,r){Wt(),i.useEffect(()=>{if((r==null?void 0:r.enabled)===!1)return;let n=(a,o)=>{bi(!!(r!=null&&r.isTextInput),a,o)&&e(qt())};return zt.add(n),()=>{zt.delete(n)}},t)}function hi(e){if(!e.isConnected)return;const t=Y(e);if(ui()==="virtual"){let r=me(t);Sn(()=>{const n=me(t);(n===r||n===t.body)&&e.isConnected&&Le(e)})}else Le(e)}function na(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:a}=e;const o=i.useCallback(c=>{if(I(c)===c.currentTarget)return n&&n(c),a&&a(!1),!0},[n,a]),s=Jn(o),l=i.useCallback(c=>{let b=I(c);const m=Y(b),p=m?me(m):me();b===c.currentTarget&&b===p&&(r&&r(c),a&&a(!0),s(c))},[a,r,s]);return{focusProps:{onFocus:!t&&(r||a||n)?l:void 0,onBlur:!t&&(n||a)?o:void 0}}}function Fr(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function gi(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Fr(e.onKeyDown),onKeyUp:Fr(e.onKeyUp)}}}let Yt=i.createContext(null);function vi(e){let t=i.useContext(Yt)||{};Cn(t,e);let{ref:r,...n}=t;return n}function dr(e,t){let{focusProps:r}=na(e),{keyboardProps:n}=gi(e),a=K(r,n),o=vi(t),s=e.isDisabled?{}:o,l=i.useRef(e.autoFocus);i.useEffect(()=>{l.current&&t.current&&hi(t.current),l.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:K({...a,tabIndex:c},s)}}let Se="default",Xt="",dt=new WeakMap;function Br(e){if(nr()){if(Se==="default"){const t=Y(e);Xt=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Se="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";dt.set(e,e.style[t]),e.style[t]="none"}}function It(e){if(nr()){if(Se!=="disabled")return;Se="restoring",setTimeout(()=>{Sn(()=>{if(Se==="restoring"){const t=Y(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Xt||""),Xt="",Se="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&dt.has(e)){let t=dt.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),dt.delete(e)}}const aa=i.createContext({register:()=>{}});aa.displayName="PressResponderContext";function yi(e){let t=i.useContext(aa);if(t){let{register:r,ref:n,...a}=t;e=K(a,e),r()}return Cn(t,e.ref),e}var Ce;class ot{constructor(t,r,n,a){Pr(this,Ce);kt(this,Ce,!0);let o=(a==null?void 0:a.target)??n.currentTarget;const s=o==null?void 0:o.getBoundingClientRect();let l,c=0,b,m=null;n.clientX!=null&&n.clientY!=null&&(b=n.clientX,m=n.clientY),s&&(b!=null&&m!=null?(l=b-s.left,c=m-s.top):(l=s.width/2,c=s.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c,this.key=n.key}continuePropagation(){kt(this,Ce,!1)}get shouldStopPropagation(){return wr(this,Ce)}}Ce=new WeakMap;const Gr=Symbol("linkClicked"),Kr="react-aria-pressable-style",Hr="data-react-aria-pressable";function gt(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:a,onPressUp:o,onClick:s,isDisabled:l,isPressed:c,preventFocusOnPress:b,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:p,ref:y,...v}=yi(e),[$,h]=i.useState(!1),E=i.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:S,removeAllGlobalListeners:R}=sr(),O=i.useCallback((d,w)=>{let T=E.current;if(l||T.didFirePressStart)return!1;let g=!0;if(T.isTriggeringEvent=!0,n){let x=new ot("pressstart",w,d);n(x),g=x.shouldStopPropagation}return r&&r(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,h(!0),g},[l,n,r]),F=i.useCallback((d,w,T=!0)=>{let g=E.current;if(!g.didFirePressStart)return!1;g.didFirePressStart=!1,g.isTriggeringEvent=!0;let x=!0;if(a){let f=new ot("pressend",w,d);a(f),x=f.shouldStopPropagation}if(r&&r(!1),h(!1),t&&T&&!l){let f=new ot("press",w,d);t(f),x&&(x=f.shouldStopPropagation)}return g.isTriggeringEvent=!1,x},[l,a,r,t]),N=xe(F),Z=i.useCallback((d,w)=>{let T=E.current;if(l)return!1;if(o){T.isTriggeringEvent=!0;let g=new ot("pressup",w,d);return o(g),T.isTriggeringEvent=!1,g.shouldStopPropagation}return!0},[l,o]),H=xe(Z),M=i.useCallback(d=>{let w=E.current;if(w.isPressed&&w.target){w.didFirePressStart&&w.pointerType!=null&&F(ye(w.target,d),w.pointerType,!1),w.isPressed=!1,w.isOverTarget=!1,w.activePointerId=null,w.pointerType=null,R(),p||It(w.target);for(let T of w.disposables)T();w.disposables=[]}},[p,R,F]),B=xe(M);i.useEffect(()=>{l&&E.current.isPressed&&B({currentTarget:E.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let A=i.useCallback(d=>{m&&M(d)},[m,M]),re=i.useCallback(d=>{l||s==null||s(d)},[l,s]),ee=i.useCallback((d,w)=>{if(!l&&s){let T=new MouseEvent("click",d);Zn(T,w),s(cr(T))}},[l,s]),de=i.useMemo(()=>{let d=E.current,w={onKeyDown(g){var x;if(Nt(g.nativeEvent,g.currentTarget)&&D(g.currentTarget,I(g))){Wr(I(g),g.key)&&g.preventDefault();let f=!0;!d.isPressed&&!g.repeat&&(d.target=g.currentTarget,d.isPressed=!0,d.pointerType="keyboard",f=O(g,"keyboard"));let L=g.currentTarget,P=V=>{Nt(V,L)&&!V.repeat&&D(L,I(V))&&d.target&&H(ye(d.target,V),"keyboard")};S(Y(g.currentTarget),"keyup",wn(P,T),!0),f&&g.stopPropagation(),g.metaKey&&Te()&&((x=d.metaKeyEvents)==null||x.set(g.key,g.nativeEvent))}else g.key==="Meta"&&(d.metaKeyEvents=new Map)},onClick(g){if(!(g&&!D(g.currentTarget,I(g)))&&g&&g.button===0&&!d.isTriggeringEvent&&!be.isOpening){let x=!0;if(l&&g.preventDefault(),!d.ignoreEmulatedMouseEvents&&!d.isPressed&&(d.pointerType==="virtual"||At(g.nativeEvent))){let f=O(g,"virtual"),L=H(g,"virtual"),P=N(g,"virtual");re(g),x=f&&L&&P}else if(d.isPressed&&d.pointerType!=="keyboard"){let f=d.pointerType||g.nativeEvent.pointerType||"virtual",L=H(ye(g.currentTarget,g),f),P=N(ye(g.currentTarget,g),f,!0);x=L&&P,d.isOverTarget=!1,re(g),B(g)}d.ignoreEmulatedMouseEvents=!1,x&&g.stopPropagation()}}},T=g=>{var x,f,L;if(d.isPressed&&d.target&&Nt(g,d.target)){Wr(I(g),g.key)&&g.preventDefault();let P=I(g),V=D(d.target,P);N(ye(d.target,g),"keyboard",V),V&&ee(g,d.target),R(),g.key!=="Enter"&&ur(d.target)&&D(d.target,P)&&!g[Gr]&&(g[Gr]=!0,be(d.target,g,!1)),d.isPressed=!1,(x=d.metaKeyEvents)==null||x.delete(g.key)}else if(g.key==="Meta"&&((f=d.metaKeyEvents)!=null&&f.size)){let P=d.metaKeyEvents;d.metaKeyEvents=void 0;for(let V of P.values())(L=d.target)==null||L.dispatchEvent(new KeyboardEvent("keyup",V))}};if(typeof PointerEvent<"u"){w.onPointerDown=f=>{if(f.button!==0||!D(f.currentTarget,I(f)))return;if(Eo(f.nativeEvent)){d.pointerType="virtual";return}d.pointerType=f.pointerType;let L=!0;if(!d.isPressed){d.isPressed=!0,d.isOverTarget=!0,d.activePointerId=f.pointerId,d.target=f.currentTarget,p||Br(d.target),L=O(f,d.pointerType);let P=I(f);"releasePointerCapture"in P&&("hasPointerCapture"in P?P.hasPointerCapture(f.pointerId)&&P.releasePointerCapture(f.pointerId):P.releasePointerCapture(f.pointerId)),S(Y(f.currentTarget),"pointerup",g,!1),S(Y(f.currentTarget),"pointercancel",x,!1)}L&&f.stopPropagation()},w.onMouseDown=f=>{if(D(f.currentTarget,I(f))&&f.button===0){if(b){let L=_r(f.target);L&&d.disposables.push(L)}f.stopPropagation()}},w.onPointerUp=f=>{!D(f.currentTarget,I(f))||d.pointerType==="virtual"||f.button===0&&!d.isPressed&&H(f,d.pointerType||f.pointerType)},w.onPointerEnter=f=>{f.pointerId===d.activePointerId&&d.target&&!d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!0,O(ye(d.target,f),d.pointerType))},w.onPointerLeave=f=>{f.pointerId===d.activePointerId&&d.target&&d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!1,N(ye(d.target,f),d.pointerType,!1),A(f))};let g=f=>{if(f.pointerId===d.activePointerId&&d.isPressed&&f.button===0&&d.target){if(D(d.target,I(f))&&d.pointerType!=null){let L=!1,P=setTimeout(()=>{d.isPressed&&d.target instanceof HTMLElement&&(L?B(f):(Le(d.target),d.target.click()))},80);S(f.currentTarget,"click",()=>L=!0,!0),d.disposables.push(()=>clearTimeout(P))}else B(f);d.isOverTarget=!1}},x=f=>{B(f)};w.onDragStart=f=>{D(f.currentTarget,I(f))&&B(f)}}else if(process.env.NODE_ENV==="test"){w.onMouseDown=f=>{if(f.button!==0||!D(f.currentTarget,I(f)))return;if(d.ignoreEmulatedMouseEvents){f.stopPropagation();return}if(d.isPressed=!0,d.isOverTarget=!0,d.target=f.currentTarget,d.pointerType=At(f.nativeEvent)?"virtual":"mouse",Aa.flushSync(()=>O(f,d.pointerType))&&f.stopPropagation(),b){let P=_r(f.target);P&&d.disposables.push(P)}S(Y(f.currentTarget),"mouseup",g,!1)},w.onMouseEnter=f=>{if(!D(f.currentTarget,I(f)))return;let L=!0;d.isPressed&&!d.ignoreEmulatedMouseEvents&&d.pointerType!=null&&(d.isOverTarget=!0,L=O(f,d.pointerType)),L&&f.stopPropagation()},w.onMouseLeave=f=>{if(!D(f.currentTarget,I(f)))return;let L=!0;d.isPressed&&!d.ignoreEmulatedMouseEvents&&d.pointerType!=null&&(d.isOverTarget=!1,L=N(f,d.pointerType,!1),A(f)),L&&f.stopPropagation()},w.onMouseUp=f=>{D(f.currentTarget,I(f))&&!d.ignoreEmulatedMouseEvents&&f.button===0&&!d.isPressed&&H(f,d.pointerType||"mouse")};let g=f=>{if(f.button===0){if(d.ignoreEmulatedMouseEvents){d.ignoreEmulatedMouseEvents=!1;return}d.target&&D(d.target,I(f))&&d.pointerType!=null||B(f),d.isOverTarget=!1}};w.onTouchStart=f=>{if(!D(f.currentTarget,I(f)))return;let L=xi(f.nativeEvent);if(!L)return;d.activePointerId=L.identifier,d.ignoreEmulatedMouseEvents=!0,d.isOverTarget=!0,d.isPressed=!0,d.target=f.currentTarget,d.pointerType="touch",p||Br(d.target),O(fe(d.target,f),d.pointerType)&&f.stopPropagation(),S(oe(f.currentTarget),"scroll",x,!0)},w.onTouchMove=f=>{if(!D(f.currentTarget,I(f)))return;if(!d.isPressed){f.stopPropagation();return}let L=zr(f.nativeEvent,d.activePointerId),P=!0;L&&Ur(L,f.currentTarget)?!d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!0,P=O(fe(d.target,f),d.pointerType)):d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!1,P=N(fe(d.target,f),d.pointerType,!1),A(fe(d.target,f))),P&&f.stopPropagation()},w.onTouchEnd=f=>{if(!D(f.currentTarget,I(f)))return;if(!d.isPressed){f.stopPropagation();return}let L=zr(f.nativeEvent,d.activePointerId),P=!0;L&&Ur(L,f.currentTarget)&&d.pointerType!=null?(H(fe(d.target,f),d.pointerType),P=N(fe(d.target,f),d.pointerType),ee(f.nativeEvent,d.target)):d.isOverTarget&&d.pointerType!=null&&(P=N(fe(d.target,f),d.pointerType,!1)),P&&f.stopPropagation(),d.isPressed=!1,d.activePointerId=null,d.isOverTarget=!1,d.ignoreEmulatedMouseEvents=!0,d.target&&!p&&It(d.target),R()},w.onTouchCancel=f=>{D(f.currentTarget,I(f))&&(f.stopPropagation(),d.isPressed&&B(fe(d.target,f)))};let x=f=>{d.isPressed&&D(I(f),d.target)&&B({currentTarget:d.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};w.onDragStart=f=>{D(f.currentTarget,I(f))&&B(f)}}return w},[S,l,b,R,p,A,O,re,ee]);return i.useEffect(()=>{if(!y||process.env.NODE_ENV==="test")return;const d=Y(y.current);if(!d||!d.head||d.getElementById(Kr))return;const w=d.createElement("style");w.id=Kr;let T=Mo(d);T&&(w.nonce=T),w.textContent=`
|
|
2
|
+
@layer {
|
|
3
|
+
[${Hr}] {
|
|
4
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
`.trim(),d.head.prepend(w)},[y]),i.useEffect(()=>{let d=E.current;return()=>{p||It(d.target??void 0);for(let w of d.disposables)w();d.disposables=[]}},[p]),{isPressed:c||$,pressProps:K(v,de,{[Hr]:!0})}}function ur(e){return e.tagName==="A"&&e.hasAttribute("href")}function Nt(e,t){const{key:r,code:n}=e,a=t,o=a.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(a instanceof oe(a).HTMLInputElement&&!oa(a,r)||a instanceof oe(a).HTMLTextAreaElement||a.isContentEditable)&&!((o==="link"||!o&&ur(a))&&r!=="Enter")}function xi(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function zr(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const a=r[n];if(a.identifier===t)return a}return null}function fe(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function ye(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n,key:t.key}}function $i(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Ei(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Ur(e,t){let r=t.getBoundingClientRect(),n=$i(e);return Ei(r,n)}function wi(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!ur(e)}function Wr(e,t){return e instanceof HTMLInputElement?!oa(e,t):wi(e)}const Pi=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function oa(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Pi.has(e.type)}function Si(e,t){let{elementType:r="button",isDisabled:n,onPress:a,onPressStart:o,onPressEnd:s,onPressUp:l,onPressChange:c,preventFocusOnPress:b,allowFocusWhenDisabled:m,onClick:p,href:y,target:v,rel:$,type:h="button"}=e,E;r==="button"?E={type:h,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:E={role:"button",href:r==="a"&&!n?y:void 0,target:r==="a"?v:void 0,type:r==="input"?h:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?$:void 0};let{pressProps:S,isPressed:R}=gt({onPressStart:o,onPressEnd:s,onPressChange:c,onPress:a,onPressUp:l,onClick:p,isDisabled:n,preventFocusOnPress:b,ref:t}),{focusableProps:O}=dr(e,t);m&&(O.tabIndex=n?-1:O.tabIndex);let F=K(O,S,ne(e,{labelable:!0}));return{isPressed:R,buttonProps:K(E,F,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function sa(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,o=i.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=sr(),c=i.useCallback(p=>{D(p.currentTarget,I(p))&&o.current.isFocusWithin&&!D(p.currentTarget,p.relatedTarget)&&(o.current.isFocusWithin=!1,l(),r&&r(p),a&&a(!1))},[r,a,o,l]),b=Jn(c),m=i.useCallback(p=>{if(!D(p.currentTarget,I(p)))return;let y=I(p);const v=Y(y),$=me(v);if(!o.current.isFocusWithin&&$===y){n&&n(p),a&&a(!0),o.current.isFocusWithin=!0,b(p);let h=p.currentTarget;s(v,"focus",E=>{let S=I(E);if(o.current.isFocusWithin&&!D(h,S)){let R=new v.defaultView.FocusEvent("blur",{relatedTarget:S});Zn(R,h);let O=cr(R);c(O)}},{capture:!0})}},[n,a,b,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:c}}}function fr(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,a=i.useRef({isFocused:!1,isFocusVisible:t||qt()}),[o,s]=i.useState(!1),[l,c]=i.useState(()=>a.current.isFocused&&a.current.isFocusVisible),b=i.useCallback(()=>c(a.current.isFocused&&a.current.isFocusVisible),[]),m=i.useCallback(v=>{a.current.isFocused=v,a.current.isFocusVisible=qt(),s(v),b()},[b]);mi(v=>{a.current.isFocusVisible=v,b()},[r,o],{enabled:o,isTextInput:r});let{focusProps:p}=na({isDisabled:n,onFocusChange:m}),{focusWithinProps:y}=sa({isDisabled:!n,onFocusWithinChange:m});return{isFocused:o,isFocusVisible:l,focusProps:n?y:p}}let vt=!1,st=0;function Zt(){vt=!0,setTimeout(()=>{vt=!1},500)}function qr(e){e.pointerType==="touch"&&Zt()}function ki(){let e=Y(null);if(!(typeof e>"u"))return st===0&&(typeof PointerEvent<"u"?e.addEventListener("pointerup",qr):process.env.NODE_ENV==="test"&&e.addEventListener("touchend",Zt)),st++,()=>{st--,!(st>0)&&(typeof PointerEvent<"u"?e.removeEventListener("pointerup",qr):process.env.NODE_ENV==="test"&&e.removeEventListener("touchend",Zt))}}function pr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:a}=e,[o,s]=i.useState(!1),l=i.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i.useEffect(ki,[]);let{addGlobalListener:c,removeAllGlobalListeners:b}=sr(),{hoverProps:m,triggerHoverEnd:p}=i.useMemo(()=>{let y=(h,E)=>{if(l.pointerType=E,a||E==="touch"||l.isHovered||!D(h.currentTarget,I(h)))return;l.isHovered=!0;let S=h.currentTarget;l.target=S,c(Y(I(h)),"pointerover",R=>{l.isHovered&&l.target&&!D(l.target,I(R))&&v(R,R.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:S,pointerType:E}),r&&r(!0),s(!0)},v=(h,E)=>{let S=l.target;l.pointerType="",l.target=null,!(E==="touch"||!l.isHovered||!S)&&(l.isHovered=!1,b(),n&&n({type:"hoverend",target:S,pointerType:E}),r&&r(!1),s(!1))},$={};return typeof PointerEvent<"u"?($.onPointerEnter=h=>{vt&&h.pointerType==="mouse"||y(h,h.pointerType)},$.onPointerLeave=h=>{!a&&D(h.currentTarget,I(h))&&v(h,h.pointerType)}):process.env.NODE_ENV==="test"&&($.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},$.onMouseEnter=h=>{!l.ignoreEmulatedMouseEvents&&!vt&&y(h,"mouse"),l.ignoreEmulatedMouseEvents=!1},$.onMouseLeave=h=>{!a&&D(h.currentTarget,I(h))&&v(h,"mouse")}),{hoverProps:$,triggerHoverEnd:v}},[t,r,n,a,l,c,b]);return i.useEffect(()=>{a&&p({currentTarget:l.target},l.pointerType)},[a]),{hoverProps:m,isHovered:o}}const Ci=i.createContext({}),Ti=Hs(function(t,r){[t,r]=We(t,r,Ci);let n=t,{isPending:a}=n,{buttonProps:o,isPressed:s}=Si(t,r);o=Mi(o,a);let{focusProps:l,isFocused:c,isFocusVisible:b}=fr(t),{hoverProps:m,isHovered:p}=pr({...t,isDisabled:t.isDisabled||a}),y={isHovered:p,isPressed:(n.isPressed||s)&&!a,isFocused:c,isFocusVisible:b,isDisabled:t.isDisabled||!1,isPending:a??!1},v=Ue({...t,values:y,defaultClassName:"react-aria-Button"}),$=Me(o.id),h=Me(),E=o["aria-labelledby"];a&&(E?E=`${E} ${h}`:o["aria-label"]&&(E=`${$} ${h}`));let S=i.useRef(a);i.useEffect(()=>{let O={"aria-labelledby":E||$};(!S.current&&c&&a||S.current&&c&&!a)&&Ar(O,"assertive"),S.current=a},[a,c,E,$]);let R=ne(t,{global:!0});return delete R.onClick,i.createElement(Ne.button,{...K(R,v,o,l,m),type:o.type==="submit"&&a?"button":o.type,id:$,ref:r,"aria-labelledby":E,slot:t.slot||void 0,"aria-disabled":a?"true":o["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":y.isPressed||void 0,"data-hovered":p||void 0,"data-focused":c||void 0,"data-pending":a||void 0,"data-focus-visible":b||void 0},i.createElement(Yn.Provider,{value:{id:h}},v.children))}),Li=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Mi(e,t){if(t){for(const r in e)r.startsWith("on")&&!Li.test(r)&&(e[r]=void 0);e.href=void 0,e.target=void 0}return e}const Ri=typeof document<"u"?i.useInsertionEffect??i.useLayoutEffect:()=>{};function Ii(e,t,r){let[n,a]=i.useState(e||t),o=i.useRef(n),s=i.useRef(e!==void 0),l=e!==void 0;i.useEffect(()=>{let p=s.current;p!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),s.current=l},[l]);let c=l?e:n;Ri(()=>{o.current=c});let[,b]=i.useReducer(()=>({}),{}),m=i.useCallback((p,...y)=>{let v=typeof p=="function"?p(o.current):p;Object.is(o.current,v)||(o.current=v,a(v),b(),r==null||r(v,...y))},[r]);return[c,m]}const Ni=e=>e?"true":void 0;function qe(e,t){return _s(e,(r,n)=>{const a=typeof t=="function"?t(n)??"":t??"";return Ke(a,r??"")??""})}const X=(e,t,r)=>typeof e=="function"?e({className:t}):t,Oi=({height:e=9,width:t=9,...r})=>u.jsx("svg",{"aria-hidden":"true","aria-label":"External link icon",fill:"none",height:e,role:"presentation",viewBox:"0 0 7 7",width:t,xmlns:"http://www.w3.org/2000/svg",...r,children:u.jsx("path",{d:"M1.20592 6.84333L0.379822 6.01723L4.52594 1.8672H1.37819L1.38601 0.731812H6.48742V5.83714H5.34421L5.35203 2.6933L1.20592 6.84333Z",fill:"currentColor"})}),Yr=e=>u.jsx("svg",{"aria-hidden":"true","aria-label":"Info icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:u.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),ji=e=>u.jsx("svg",{"aria-hidden":"true","aria-label":"Warning icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:u.jsx("path",{clipRule:"evenodd",d:"M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0",fill:"currentColor",fillRule:"evenodd"})}),Vi=e=>u.jsx("svg",{"aria-hidden":"true","aria-label":"Danger icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:u.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Di=e=>u.jsx("svg",{"aria-hidden":"true","aria-label":"Success icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:u.jsx("path",{clipRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",fill:"currentColor",fillRule:"evenodd"})}),ia=i.createContext({}),Xr={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 Ai(e={}){let{style:t,isFocusable:r}=e,[n,a]=i.useState(!1),{focusWithinProps:o}=sa({isDisabled:!r,onFocusWithinChange:l=>a(l)}),s=i.useMemo(()=>n?t:t?{...Xr,...t}:Xr,[n]);return{visuallyHiddenProps:{...o,style:s}}}function _i(e){let{children:t,elementType:r="div",isFocusable:n,style:a,...o}=e,{visuallyHiddenProps:s}=Ai(e);return i.createElement(r,K(o,s),t)}class Ye{constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,r,n){let a=this.clone();return r.addDescendants(a,t),a}}class la extends Ye{filter(t,r,n){let[a,o]=Fi(t,r,this.firstChildKey,n),s=this.clone();return s.firstChildKey=a,s.lastChildKey=o,s}}const br=class br extends Ye{};br.type="header";let Zr=br;const mr=class mr extends Ye{};mr.type="loader";let Jr=mr;const hr=class hr extends la{filter(t,r,n){if(n(this.textValue,this)){let a=this.clone();return r.addDescendants(a,t),a}return null}};hr.type="item";let Qr=hr;const gr=class gr extends la{filter(t,r,n){let a=super.filter(t,r,n);if(a&&a.lastChildKey!==null){let o=t.getItem(a.lastChildKey);if(o&&o.type!=="header")return a}return null}};gr.type="section";let en=gr;function Fi(e,t,r,n){if(r==null)return[null,null];let a=null,o=null,s=e.getItem(r);for(;s!=null;){let l=s.filter(e,t,n);l!=null&&(l.nextKey=null,o&&(l.prevKey=o.key,o.nextKey=l.key),a==null&&(a=l),t.addNode(l),o=l),s=s.nextKey!=null?e.getItem(s.nextKey):null}if(o&&o.type==="separator"){let l=o.prevKey;t.removeNode(o.key),l!=null?(o=t.getItem(l),o.nextKey=null):o=null}return[(a==null?void 0:a.key)??null,(o==null?void 0:o.key)??null]}var it={exports:{}},Ot={};/**
|
|
8
|
+
* @license React
|
|
9
|
+
* use-sync-external-store-shim.production.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/var tn;function Bi(){if(tn)return Ot;tn=1;var e=i;function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function l(p,y){var v=y(),$=n({inst:{value:v,getSnapshot:y}}),h=$[0].inst,E=$[1];return o(function(){h.value=v,h.getSnapshot=y,c(h)&&E({inst:h})},[p,v,y]),a(function(){return c(h)&&E({inst:h}),p(function(){c(h)&&E({inst:h})})},[p]),s(v),v}function c(p){var y=p.getSnapshot;p=p.value;try{var v=y();return!r(p,v)}catch{return!0}}function b(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?b:l;return Ot.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Ot}var jt={};/**
|
|
16
|
+
* @license React
|
|
17
|
+
* use-sync-external-store-shim.development.js
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the MIT license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/var rn;function Gi(){return rn||(rn=1,process.env.NODE_ENV!=="production"&&(function(){function e(v,$){return v===$&&(v!==0||1/v===1/$)||v!==v&&$!==$}function t(v,$){m||a.startTransition===void 0||(m=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=$();if(!p){var E=$();o(h,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}E=s({inst:{value:h,getSnapshot:$}});var S=E[0].inst,R=E[1];return c(function(){S.value=h,S.getSnapshot=$,r(S)&&R({inst:S})},[v,h,$]),l(function(){return r(S)&&R({inst:S}),v(function(){r(S)&&R({inst:S})})},[v]),b(h),h}function r(v){var $=v.getSnapshot;v=v.value;try{var h=$();return!o(v,h)}catch{return!0}}function n(v,$){return $()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=i,o=typeof Object.is=="function"?Object.is:e,s=a.useState,l=a.useEffect,c=a.useLayoutEffect,b=a.useDebugValue,m=!1,p=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;jt.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),jt}var nn;function Ki(){return nn||(nn=1,process.env.NODE_ENV==="production"?it.exports=Bi():it.exports=Gi()),it.exports}var Hi=Ki();const zi=i.createContext(!1);function Ui(e,t,r){let n=ar(),a=i.useRef(n);a.current=n;let o=i.useCallback(()=>a.current?r():t(),[t,r]);return Hi.useSyncExternalStore(e,o)}typeof i.useSyncExternalStore=="function"&&i.useSyncExternalStore;const an=i.createContext(null);function Wi(e){var r;return r=class extends Ye{},r.type=e,r}function qi(e,t,r,n,a,o){typeof e=="string"&&(e=Wi(e));let s=i.useCallback(c=>{c==null||c.setProps(t,r,e,n,o)},[t,r,n,o,e]),l=i.useContext(an);if(l){let c=l.ownerDocument.nodesByProps.get(t);return c||(c=l.ownerDocument.createElement(e.type),c.setProps(t,r,e,n,o),l.appendChild(c),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,c)),a?i.createElement(an.Provider,{value:c},a):null}return i.createElement(e.type,{ref:s},a)}function Yi(e,t){let r=({node:a})=>t(a.props,a.props.ref,a),n=i.forwardRef((a,o)=>{let s=i.useContext(Yt);if(!i.useContext(zi)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,o)}return qi(e,a,o,"children"in a?a.children:null,null,c=>i.createElement(Yt.Provider,{value:s},i.createElement(r,{node:c})))});return n.displayName=t.name,n}function Xi(e){let t=ne(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}const ca=i.createContext({}),vr=class vr extends Ye{filter(t,r){let n=r.getItem(this.prevKey);if(n&&n.type!=="separator"){let a=this.clone();return r.addDescendants(a,t),a}return null}};vr.type="separator";let Jt=vr;const Zi=Yi(Jt,function(t,r){[t,r]=We(t,r,ca);let{elementType:n,orientation:a,style:o,className:s,slot:l,...c}=t,b=n||"hr";b==="hr"&&a==="vertical"&&(b="div");let m=Ne[b],{separatorProps:p}=Xi({...c,elementType:n,orientation:a}),y=ne(t,{global:!0});return i.createElement(m,{render:t.render,...K(y,p),style:o,className:s??"react-aria-Separator",ref:r,slot:l||void 0})}),Ji=i.createContext({}),Qi=i.createContext(null),el=i.createContext(null);function tl(e,t,r){let{validationBehavior:n,focus:a}=e;ce(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let b=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(b),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(nl(r.current))}});let o=i.useRef(!1),s=xe(()=>{o.current||t.resetValidation()}),l=xe(b=>{var p,y;t.displayValidation.isInvalid||t.commitValidation();let m=(p=r==null?void 0:r.current)==null?void 0:p.form;!b.defaultPrevented&&r&&m&&al(m)===r.current&&(a?a():(y=r.current)==null||y.focus(),fi("keyboard")),b.preventDefault()}),c=xe(()=>{t.commitValidation()});i.useEffect(()=>{let b=r==null?void 0:r.current;if(!b)return;let m=b.form,p=m==null?void 0:m.reset;return m&&(m.reset=()=>{o.current=!window.event||window.event.type==="message"&&I(window.event)instanceof MessagePort,p==null||p.call(m),o.current=!1}),b.addEventListener("invalid",l),b.addEventListener("change",c),m==null||m.addEventListener("reset",s),()=>{b.removeEventListener("invalid",l),b.removeEventListener("change",c),m==null||m.removeEventListener("reset",s),m&&(m.reset=p)}},[r,n])}function rl(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 nl(e){return{isInvalid:!e.validity.valid,validationDetails:rl(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function al(e){var t;for(let r=0;r<e.elements.length;r++){let n=e.elements[r];if(((t=n.validity)==null?void 0:t.valid)===!1)return n}return null}function ol(e,t){let{elementType:r="a",onPress:n,onPressStart:a,onPressEnd:o,onClick:s,isDisabled:l,...c}=e,b={};r!=="a"&&(b={role:"link",tabIndex:l?void 0:0});let{focusableProps:m}=dr(e,t),{pressProps:p,isPressed:y}=gt({onPress:n,onPressStart:a,onPressEnd:o,onClick:s,isDisabled:l,ref:t}),v=ne(c,{labelable:!0}),$=K(m,p),h=$n(),E=Xa(e);return{isPressed:y,linkProps:K(v,E,{...$,...b,"aria-disabled":l||void 0,"aria-current":e["aria-current"],onClick:S=>{var R;(R=p.onClick)==null||R.call(p,S),Za(S,h,e.href,e.routerOptions)}})}}const sl=i.createContext(null),il=i.forwardRef(function(t,r){[t,r]=We(t,r,sl);let n=t.href&&!t.isDisabled?"a":"span",{linkProps:a,isPressed:o}=ol({...t,elementType:n},r),s=Ne[n],{hoverProps:l,isHovered:c}=pr(t),{focusProps:b,isFocused:m,isFocusVisible:p}=fr(),y=Ue({...t,defaultClassName:"react-aria-Link",values:{isCurrent:!!t["aria-current"],isDisabled:t.isDisabled||!1,isPressed:o,isHovered:c,isFocused:m,isFocusVisible:p}}),v=ne(t,{global:!0});return delete v.onClick,i.createElement(s,{ref:r,slot:t.slot||void 0,...K(v,y,a,l,b),"data-focused":m||void 0,"data-hovered":c||void 0,"data-pressed":o||void 0,"data-focus-visible":p||void 0,"data-current":!!t["aria-current"]||void 0,"data-disabled":t.isDisabled||void 0},y.children)}),da=i.createContext({}),on=({children:e,className:t,...r})=>{const n=i.useMemo(()=>Os(),[]);return u.jsx(da,{value:{slots:n},children:u.jsx(il,{...r,className:qe(t,n==null?void 0:n.base()),children:a=>u.jsx(u.Fragment,{children:typeof e=="function"?e(a):e})})})},ll=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(da);return u.jsx(W.span,{className:X(n==null?void 0:n.icon,t),"data-default-icon":Ni(!e),"data-slot":"link-icon",...r,children:e??u.jsx(Oi,{"data-slot":"link-default-icon"})})},cl=Object.assign(on,{Root:on,Icon:ll});function dl(e={}){let{isReadOnly:t}=e,[r,n]=Ii(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=i.useState(r);function o(l){t||n(l)}function s(){t||n(!r)}return{isSelected:r,defaultSelected:e.defaultSelected??a,setSelected:o,toggle:s}}const ul=i.createContext({}),fl="__button_group_child",sn=({children:e,className:t,fullWidth:r,isDisabled:n,isIconOnly:a,size:o,slot:s,style:l,variant:c,[fl]:b,...m})=>{const p=i.useContext(ul),y=b===!0,v=o??(y?p==null?void 0:p.size:void 0),$=c??(y?p==null?void 0:p.variant:void 0),h=n??(y?p==null?void 0:p.isDisabled:void 0),E=r??(y?p==null?void 0:p.fullWidth:void 0),S=Ms({fullWidth:E,isIconOnly:a,size:v,variant:$});return u.jsx(Ti,{className:qe(t,S),"data-slot":"button",isDisabled:h,slot:s,style:l,...m,children:R=>typeof e=="function"?e(R):e})},pl=Object.assign(sn,{Root:sn}),Oe=i.createContext({}),ln=({children:e,className:t,variant:r="default",...n})=>{const a=i.useMemo(()=>Rs({variant:r}),[r]),o=u.jsx(W.div,{className:a.base({className:t}),"data-slot":"card",...n,children:e});return u.jsx(Oe,{value:{slots:a},children:r==="transparent"?o:u.jsx(ia,{value:{variant:r},children:o})})},bl=({className:e,...t})=>{const{slots:r}=i.useContext(Oe);return u.jsx(W.div,{className:X(r==null?void 0:r.header,e),"data-slot":"card-header",...t})},ml=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Oe);return u.jsx(W.h3,{className:X(n==null?void 0:n.title,t),"data-slot":"card-title",...r,children:e})},hl=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Oe);return u.jsx(W.p,{className:X(n==null?void 0:n.description,t),"data-slot":"card-description",...r,children:e})},gl=({className:e,...t})=>{const{slots:r}=i.useContext(Oe);return u.jsx(W.div,{className:X(r==null?void 0:r.content,e),"data-slot":"card-content",...t})},vl=({className:e,...t})=>{const{slots:r}=i.useContext(Oe);return u.jsx(W.div,{className:X(r==null?void 0:r.footer,e),"data-slot":"card-footer",...t})},Fe=Object.assign(ln,{Root:ln,Header:bl,Title:ml,Description:hl,Content:gl,Footer:vl}),yl=new WeakMap;function xl(e=!0){let[t,r]=i.useState(e),n=i.useRef(!1),a=i.useCallback(o=>{n.current=!0,r(!!o)},[]);return ce(()=>{n.current||r(!1)},[]),[a,t]}function cn(e=!0){let t=Me(),[r,n]=xl(e);return{id:n?t:void 0,ref:r}}const ua={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},fa={...ua,customError:!0,valid:!1},Pe={isInvalid:!1,validationDetails:ua,validationErrors:[]},$l=i.createContext({}),yt="__reactAriaFormValidationState";function pa(e){if(e[yt]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:a,commitValidation:o}=e[yt];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:a,commitValidation:o}}return El(e)}function El(e){let{isInvalid:t,validationState:r,name:n,value:a,builtinValidation:o,validate:s,validationBehavior:l="aria"}=e;r&&(t||(t=r==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:fa}:null,b=i.useMemo(()=>{if(!s||a==null)return null;let A=wl(s,a);return dn(A)},[s,a]);o!=null&&o.validationDetails.valid&&(o=void 0);let m=i.useContext($l),p=i.useMemo(()=>n?Array.isArray(n)?n.flatMap(A=>Qt(m[A])):Qt(m[n]):[],[m,n]),[y,v]=i.useState(m),[$,h]=i.useState(!1);m!==y&&(v(m),h(!1));let E=i.useMemo(()=>dn($?[]:p),[$,p]),S=i.useRef(Pe),[R,O]=i.useState(Pe),F=i.useRef(Pe),N=()=>{if(!Z)return;H(!1);let A=b||o||S.current;Vt(A,F.current)||(F.current=A,O(A))},[Z,H]=i.useState(!1);return i.useEffect(N),{realtimeValidation:c||E||b||o||Pe,displayValidation:l==="native"?c||E||R:c||E||b||o||R,updateValidation(A){l==="aria"&&!Vt(R,A)?O(A):S.current=A},resetValidation(){let A=Pe;Vt(A,F.current)||(F.current=A,O(A)),l==="native"&&H(!1),h(!0)},commitValidation(){l==="native"&&H(!0),h(!0)}}}function Qt(e){return e?Array.isArray(e)?e:[e]:[]}function wl(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Qt(r)}return[]}function dn(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:fa}:null}function Vt(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function Pl(e,t,r){let{isDisabled:n=!1,isReadOnly:a=!1,value:o,name:s,form:l,children:c,isRequired:b,validationBehavior:m="aria","aria-label":p,"aria-labelledby":y,"aria-describedby":v,onPressStart:$,onPressEnd:h,onPressChange:E,onPress:S,onPressUp:R,onClick:O}=e,F=pa({...e,value:t.isSelected}),{isInvalid:N,validationErrors:Z,validationDetails:H}=F.displayValidation;tl(e,F,r);let M=P=>{P.stopPropagation(),t.setSelected(I(P).checked)},B=c!=null,A=p!=null||y!=null;!B&&!A&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:re,isPressed:ee}=gt({onPressStart:$,onPressEnd:h,onPressChange:E,onPress:S,onPressUp:R,onClick:O,isDisabled:n}),[de,d]=i.useState(!1),{pressProps:w}=gt({onPressStart(P){if(P.pointerType==="keyboard"||P.pointerType==="virtual"){P.continuePropagation();return}$==null||$(P),E==null||E(!0),d(!0)},onPressEnd(P){if(P.pointerType==="keyboard"||P.pointerType==="virtual"){P.continuePropagation();return}h==null||h(P),E==null||E(!1),d(!1)},onPressUp(P){if(P.pointerType==="keyboard"||P.pointerType==="virtual"){P.continuePropagation();return}R==null||R(P)},onClick:O,onPress(P){var G;if(P.pointerType==="keyboard"||P.pointerType==="virtual"){P.continuePropagation();return}S==null||S(P),t.toggle(),(G=r.current)==null||G.focus();let{[yt]:V}=e,{commitValidation:_}=V||F;_()},isDisabled:n||a}),{focusableProps:T}=dr(e,r),g=K(re,T),x=ne(e,{labelable:!0});wo(r,t.defaultSelected,t.setSelected);let f=cn(),L=cn();return{labelProps:K(w,{onClick:P=>P.preventDefault()}),inputProps:K(x,{checked:t.isSelected,"aria-required":b&&m==="aria"||void 0,required:b&&m==="native","aria-invalid":N||e.validationState==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":a||void 0,"aria-describedby":[f.id,L.id,v].filter(Boolean).join(" ")||void 0,onChange:M,disabled:n,...o==null?{}:{value:o},name:s,form:l,type:"checkbox",...g}),descriptionProps:f,errorMessageProps:L,isSelected:t.isSelected,isPressed:ee||de,isDisabled:n,isReadOnly:a,isInvalid:N||e.validationState==="invalid",validationErrors:Z,validationDetails:H}}function ba(e,t,r){let{labelProps:n,inputProps:a,descriptionProps:o,errorMessageProps:s,isSelected:l,isPressed:c,isDisabled:b,isReadOnly:m,isInvalid:p,validationErrors:y,validationDetails:v}=Pl(e,t,r),{isIndeterminate:$}=e;return i.useEffect(()=>{r.current&&(r.current.indeterminate=!!$)}),{labelProps:K(n,i.useMemo(()=>({onMouseDown:h=>h.preventDefault()}),[])),inputProps:a,descriptionProps:o,errorMessageProps:s,isSelected:l,isPressed:c,isDisabled:b,isReadOnly:m,isInvalid:p,validationErrors:y,validationDetails:v}}const Sl=typeof document<"u"?i.useInsertionEffect??i.useLayoutEffect:()=>{};function kl(e,t,r){let[n,a]=i.useState(e||t),o=i.useRef(n),s=i.useRef(e!==void 0),l=e!==void 0;i.useEffect(()=>{let p=s.current;p!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),s.current=l},[l]);let c=l?e:n;Sl(()=>{o.current=c});let[,b]=i.useReducer(()=>({}),{}),m=i.useCallback((p,...y)=>{let v=typeof p=="function"?p(o.current):p;Object.is(o.current,v)||(o.current=v,a(v),b(),r==null||r(v,...y))},[r]);return[c,m]}function Cl(e={}){let{isReadOnly:t}=e,[r,n]=kl(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=i.useState(r);function o(l){t||n(l)}function s(){t||n(!r)}return{isSelected:r,defaultSelected:e.defaultSelected??a,setSelected:o,toggle:s}}function Tl(e,t,r){const n=Cl({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(h){h?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(h)}});let{name:a,form:o,descriptionId:s,errorMessageId:l,validationBehavior:c}=yl.get(t);c=e.validationBehavior??c;let{realtimeValidation:b}=pa({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),m=i.useRef(Pe),p=()=>{t.setInvalid(e.value,b.isInvalid?b:m.current)};i.useEffect(p);let y=t.realtimeValidation.isInvalid?t.realtimeValidation:b,v=c==="native"?t.displayValidation:y,$=ba({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||a,form:e.form||o,isRequired:e.isRequired??t.isRequired,validationBehavior:c,[yt]:{realtimeValidation:y,displayValidation:v,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(h){m.current=h,p()}}},n,r);return{...$,inputProps:{...$.inputProps,"aria-describedby":[$.inputProps["aria-describedby"],t.isInvalid?l:null,s].filter(Boolean).join(" ")||void 0}}}const Ll=i.createContext(null),ma=i.createContext(null),ha=i.createContext(null),Ml=i.forwardRef(function(t,r){let{inputRef:n=null,...a}=t;[t,r]=We(a,r,Ll);let o=i.useContext(ma),[s,l]=Rl(t,n),{descriptionProps:c,errorMessageProps:b,isSelected:m,isDisabled:p,isReadOnly:y,isInvalid:v,validationDetails:$,validationErrors:h}=s,E=Ue({...t,defaultClassName:"react-aria-CheckboxField",values:{isSelected:m,isIndeterminate:t.isIndeterminate||!1,isDisabled:p,isReadOnly:y,isInvalid:v,isRequired:t.isRequired||!1}}),S=ne(t,{global:!0});return delete S.id,delete S.onClick,i.createElement(Ne.div,{...K(S,E),ref:r,slot:t.slot||void 0,"data-selected":m||void 0,"data-indeterminate":t.isIndeterminate||void 0,"data-disabled":p||void 0,"data-readonly":y||void 0,"data-invalid":v||void 0,"data-required":t.isRequired||void 0},i.createElement(As,{values:[[ha,{...s,inputRef:l,defaultClassName:"react-aria-CheckboxButton",isIndeterminate:t.isIndeterminate,isRequired:t.isRequired}],[Ji,{slots:{description:c,errorMessage:b}}],[Qi,o?null:{isInvalid:v,validationDetails:$,validationErrors:h}]]},E.children))});function Rl(e,t){let{validationBehavior:r}=lr(el)||{},n=e.validationBehavior??r??"native",a=i.useContext(ma),o=kn(i.useMemo(()=>ze(t,e.inputRef!==void 0?e.inputRef:null),[t,e.inputRef])),s={...Bs(e),children:typeof e.children=="function"?!0:e.children,value:e.value,validationBehavior:n};return[a?Tl(s,a,o):ba(s,dl(e),o),o]}const Il=i.forwardRef(function(t,r){let{labelProps:n,inputProps:a,isSelected:o,isDisabled:s,isReadOnly:l,isPressed:c,isInvalid:b,inputRef:m,defaultClassName:p,isIndeterminate:y,isRequired:v}=i.useContext(ha),{isFocused:$,isFocusVisible:h,focusProps:E}=fr(),S=s||l,{hoverProps:R,isHovered:O}=pr({...t,isDisabled:S}),F=Ue({...t,defaultClassName:p,values:{isSelected:o,isIndeterminate:y||!1,isPressed:c,isHovered:O,isFocused:$,isFocusVisible:h,isDisabled:s,isReadOnly:l,isInvalid:b,isRequired:v||!1}}),N=ne(t,{global:!0});return delete N.id,delete N.onClick,i.createElement(Ne.label,{...K(N,n,R,F),ref:r,slot:t.slot||void 0,"data-selected":o||void 0,"data-indeterminate":y||void 0,"data-pressed":c||void 0,"data-hovered":O||void 0,"data-focused":$||void 0,"data-focus-visible":h||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0,"data-invalid":b||void 0,"data-required":v||void 0},i.createElement(_i,{elementType:"span"},i.createElement("input",{...K(a,E),ref:m})),F.children)}),Nl=i.createContext({}),wt=i.createContext({}),er=({children:e,className:t,variant:r,...n})=>{const a=i.useContext(Nl),o=r??a.variant,s=i.useMemo(()=>Is({variant:o}),[o]);return u.jsx(Ml,{"data-slot":"checkbox",...n,className:qe(t,s.base()),children:l=>u.jsx(wt,{value:{slots:s,state:l},children:typeof e=="function"?e(l):e})})};er.displayName="HeroUI.Checkbox";const ga=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(wt);return u.jsx(Il,{"data-slot":"checkbox-content",...r,className:qe(t,n==null?void 0:n.content()),children:e})};ga.displayName="HeroUI.Checkbox.Content";const va=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(wt);return u.jsx(W.span,{className:X(n==null?void 0:n.control,t),"data-slot":"checkbox-control",...r,children:e})};va.displayName="HeroUI.Checkbox.Control";const ya=({children:e,className:t,...r})=>{const{slots:n,state:a}=i.useContext(wt),o=a==null?void 0:a.isSelected,s=a==null?void 0:a.isIndeterminate,l=typeof e=="function"?e(a??{}):e||(s?u.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--indeterminate",fill:"none",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeWidth:3,viewBox:"0 0 24 24",children:u.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})}):u.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:o?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:u.jsx("polyline",{points:"1 9 7 14 15 4"})}));return u.jsx(W.span,{"aria-hidden":"true",className:X(n==null?void 0:n.indicator,t),"data-slot":"checkbox-indicator",...r,children:l})};ya.displayName="HeroUI.Checkbox.Indicator";const lt=Object.assign(er,{Root:er,Content:ga,Control:va,Indicator:ya}),xa=i.createContext({}),un=({children:e,className:t,color:r,size:n,variant:a,...o})=>{const s=i.useMemo(()=>Ns({color:r,size:n,variant:a}),[r,n,a]),l=i.useMemo(()=>typeof e=="string"||typeof e=="number"?u.jsx($a,{children:e}):e,[e]);return u.jsx(xa,{value:{slots:s},children:u.jsx(W.span,{...o,className:X(s.base,t),"data-slot":"chip",children:l})})},$a=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(xa);return u.jsx(W.span,{className:X(n==null?void 0:n.label,t),"data-slot":"chip-label",...r,children:e})},xt=Object.assign(un,{Root:un,Label:$a}),Pt=i.createContext({}),tr=({children:e,className:t,color:r,size:n,...a})=>{const o=i.useMemo(()=>js({color:r,size:n}),[r,n]);return u.jsx(si,{"data-slot":"progress-bar",...a,className:qe(t,o.base()),children:s=>u.jsx(Pt,{value:{slots:o,state:s},children:typeof e=="function"?e(s):e})})};tr.displayName="HeroUI.ProgressBar";const Ea=({children:e,className:t,...r})=>{const{slots:n,state:a}=i.useContext(Pt);return u.jsx(W.span,{className:X(n==null?void 0:n.output,t),"data-slot":"progress-bar-output",...r,children:e??(a==null?void 0:a.valueText)})};Ea.displayName="HeroUI.ProgressBar.Output";const wa=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Pt);return u.jsx(W.div,{className:X(n==null?void 0:n.track,t),"data-slot":"progress-bar-track",...r,children:e})};wa.displayName="HeroUI.ProgressBar.Track";const Pa=({className:e,style:t,...r})=>{const{slots:n,state:a}=i.useContext(Pt);return u.jsx(W.div,{className:X(n==null?void 0:n.fill,e),"data-slot":"progress-bar-fill",style:{...t,width:a!=null&&a.isIndeterminate?void 0:`${(a==null?void 0:a.percentage)??0}%`},...r})};Pa.displayName="HeroUI.ProgressBar.Fill";const ct=Object.assign(tr,{Root:tr,Output:Ea,Track:wa,Fill:Pa}),fn=({className:e,orientation:t,variant:r,...n})=>{const a=lr(ca),o=t??(a==null?void 0:a.orientation)??"horizontal";return u.jsx(Zi,{"data-orientation":o,"data-slot":"separator",orientation:o,className:Vs({orientation:o,variant:r,className:e}),...n})},Ol=Object.assign(fn,{Root:fn}),Xe=i.createContext({}),pn=({children:e,className:t,status:r,...n})=>{const a=i.useMemo(()=>Ls({status:r}),[r]);return u.jsx(Xe,{value:{slots:a,status:r},children:u.jsx(ia,{value:{variant:"default"},children:u.jsx(W.div,{className:a==null?void 0:a.base({className:t}),"data-slot":"alert-root",...n,children:e})})})},jl=({children:e,className:t,...r})=>{const{slots:n,status:a}=i.useContext(Xe),o=()=>{switch(a){case"accent":return u.jsx(Yr,{"data-slot":"alert-default-icon"});case"success":return u.jsx(Di,{"data-slot":"alert-default-icon"});case"warning":return u.jsx(ji,{"data-slot":"alert-default-icon"});case"danger":return u.jsx(Vi,{"data-slot":"alert-default-icon"});default:return u.jsx(Yr,{"data-slot":"alert-default-icon"})}};return u.jsx(W.div,{className:X(n==null?void 0:n.indicator,t),"data-slot":"alert-indicator",...r,children:e??o()})},Vl=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Xe);return u.jsx(W.div,{className:X(n==null?void 0:n.content,t),"data-slot":"alert-content",...r,children:e})},Dl=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Xe);return u.jsx(W.p,{className:X(n==null?void 0:n.title,t),"data-slot":"alert-title",...r,children:e})},Al=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Xe);return u.jsx(W.span,{className:X(n==null?void 0:n.description,t),"data-slot":"alert-description",...r,children:e})},Ve=Object.assign(pn,{Root:pn,Indicator:jl,Content:Vl,Title:Dl,Description:Al}),_l={easy:"GREEN",moderate:"ORANGE",difficult:"RED"},Fl={easy:"Easy",moderate:"Moderate",difficult:"Difficult"};function Bl(){return u.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-[1em]",children:[u.jsx("path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),u.jsx("path",{d:"m13.4 10.6 3.6-3.6"}),u.jsx("path",{d:"M3.3 16a9 9 0 1 1 17.4 0"})]})}function Sa({difficulty:e,label:t,showIcon:r=!0,size:n="md",className:a}){const o=He[_l[e]];return u.jsxs(xt,{variant:"soft",size:n,className:U(a),style:{backgroundColor:Ge(o,.15),color:o},children:[r&&u.jsx(Bl,{}),u.jsx(xt.Label,{children:t??Fl[e]})]})}const bn=u.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0ZM12 9v4M12 17h.01"}),mn=u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"M12 16v-4M12 8h.01"})]}),Gl=u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"m8.5 12 2.5 2.5 4.5-5"})]}),Kl={note:mn,info:mn,tip:Gl,caution:bn,danger:bn};function Hl({type:e}){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5",children:Kl[e]})}function zl({type:e="caution",title:t,icon:r,children:n,className:a}){const o=t===void 0?ut[e]:t,s=vn(e);return u.jsxs(Ve,{className:U("border",a),style:{backgroundColor:Ge(s,.1),borderColor:s},children:[u.jsx(Ve.Indicator,{style:{color:s},children:r??u.jsx(Hl,{type:e})}),u.jsxs(Ve.Content,{children:[o!=null&&u.jsx(Ve.Title,{children:o}),u.jsx(Ve.Description,{children:n})]})]})}const Ul=4/3;function ka(e){return Math.round(e*3/4)}function Wl(e,t,r){const{x:n,y:a,width:o}=e;if(o<=0||n<0||a<0)return!1;const s=ka(o);return n+o<=t&&a+s<=r}function ql(e,t,r,n,a){if(n<=0||a<=0||t<=0||r<=0||!Wl(e,t,r))return null;const o=n/e.width;return{position:"absolute",width:o*t,height:o*r,left:-e.x*o,top:-e.y*o,maxWidth:"none"}}function Yl({src:e}){const t=i.useRef(null);return i.useEffect(()=>{const r=t.current;if(!r)return;let n=!1,a=null,o=null;return import("online-3d-viewer").then(s=>{if(n)return;const l=b=>{const m=b.GetViewer();m.SetNavigationMode(s.NavigationMode.FreeOrbit),m.SetUpVector(s.Direction.Z,!1);const p=m.GetBoundingSphere(()=>!0);m.FitSphereToWindow(p,!1)},c=new s.EmbeddedViewer(r,{projectionMode:s.ProjectionMode.Orthographic,backgroundColor:new s.RGBAColor(0,0,0,0),onModelLoaded:()=>{l(c)}});o=c,c.LoadModelFromUrlList([e]),typeof ResizeObserver<"u"&&(a=new ResizeObserver(()=>{c.Resize()}),a.observe(r))}),()=>{n=!0,a==null||a.disconnect(),o==null||o.Destroy()}},[e]),u.jsx("div",{ref:t,className:"absolute inset-0 [&_canvas]:size-full!","aria-label":"Interactive 3D model",role:"img"})}function Xl({src:e,type:t,displayRegion:r}){const n=i.useRef(null),[a,o]=i.useState(null),[s,l]=i.useState(null),c=i.useCallback(()=>{const $=n.current;if(!$)return;const{width:h,height:E}=$.getBoundingClientRect();h>0&&E>0&&l({width:h,height:E})},[]);i.useEffect(()=>{if(!r)return;c();const $=n.current;if(!$)return;const h=new ResizeObserver(c);return h.observe($),()=>h.disconnect()},[r,c]);const b=r&&a&&s&&ql(r,a.width,a.height,s.width,s.height),m=!!b,p="size-full object-cover object-center",y=$=>{const h=$.currentTarget;h.naturalWidth>0&&h.naturalHeight>0&&o({width:h.naturalWidth,height:h.naturalHeight})},v=$=>{const h=$.currentTarget;h.videoWidth>0&&h.videoHeight>0&&o({width:h.videoWidth,height:h.videoHeight})};return t==="model"?u.jsx(Yl,{src:e}):u.jsx("div",{ref:n,className:"absolute inset-0",children:t==="video"?u.jsx("video",{src:e,controls:!0,className:m?"absolute max-w-none":p,style:m&&b?b:void 0,onLoadedMetadata:r?v:void 0}):u.jsx("img",{src:e,className:m?"absolute max-w-none":p,style:m&&b?b:void 0,onLoad:r?y:void 0})})}function Zl(e){return e.type==="circle"}function Jl(e){return e.type==="rectangle"}function Ql(e,t){const r=e.id??t,n=e.color??"GREY",a=He[n];if(Zl(e))return u.jsx("div",{role:"img","aria-label":e.title,className:"pointer-events-none absolute rounded-full border-2",style:{left:`${e.x}%`,top:`${e.y}%`,width:`${e.radius*2}%`,aspectRatio:"1",transform:"translate(-50%, -50%)",borderColor:a,backgroundColor:Ge(a,.1)}},r);if(Jl(e)){const o=Math.min(e.x1,e.x2),s=Math.min(e.y1,e.y2),l=Math.abs(e.x2-e.x1),c=Math.abs(e.y2-e.y1);return u.jsx("div",{role:"img","aria-label":e.title,className:"pointer-events-none absolute border-2",style:{left:`${o}%`,top:`${s}%`,width:`${l}%`,height:`${c}%`,borderColor:a,backgroundColor:Ge(a,.1)}},r)}return u.jsx("span",{role:"img","aria-label":e.title,style:{left:`${e.x}%`,top:`${e.y}%`,backgroundColor:a,color:hn(a)},className:"absolute flex min-h-6 min-w-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full px-1.5 text-xs font-semibold shadow ring-2 ring-background",children:e.label},r)}function Ca({src:e,type:t="image",annotations:r=[],displayRegion:n,className:a}){return u.jsx("figure",{className:U("flex flex-col gap-2",a),children:u.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden rounded-lg border border-default bg-default-soft",children:[u.jsx(Xl,{src:e,type:t,displayRegion:n}),r.map(Ql)]})})}function ec({name:e,thumbnail:t,href:r,quantity:n,price:a,children:o,className:s}){return u.jsxs("li",{className:U("flex items-center gap-3 py-3 first:pt-0 last:pb-0",s),children:[t&&u.jsx("img",{src:t,alt:"",className:"size-12 shrink-0 rounded-md border border-default object-cover"}),u.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[r?u.jsx(cl,{href:r,className:"font-medium",children:e}):u.jsx("span",{className:"font-medium",children:e}),o!=null&&u.jsx("span",{className:"text-sm text-default-500",children:o})]}),n!=null&&u.jsxs("span",{className:"shrink-0 text-sm text-default-500",children:["×",n]}),a!=null&&u.jsx("span",{className:"shrink-0 text-sm font-medium",children:a})]})}function tc({title:e="What you need",children:t,className:r}){return u.jsxs(Fe,{className:U("w-full",r),children:[e!=null&&u.jsx(Fe.Header,{children:u.jsx(Fe.Title,{children:e})}),u.jsx(Fe.Content,{children:u.jsx("ul",{className:"flex flex-col divide-y divide-default",children:t})})]})}const rc=Object.assign(tc,{Item:ec});function nc(e,t,r){const[n,a]=i.useState(t),o=e!==void 0,s=o?e:n,l=i.useCallback(c=>{o||a(c),r==null||r(c)},[o,r]);return[s,l]}const ac=3,oc="#3ABF84",sc="#34B07A",ic="#0B7A47",lc={caution:ut.caution,reminder:"Reminder",note:ut.note};function cc(){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5 shrink-0 text-danger",children:u.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0ZM12 9v4M12 17h.01"})})}function dc(){return u.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5 shrink-0 text-default-500",children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"M12 16v-4M12 8h.01"})]})}function uc(){return u.jsx("span",{"aria-hidden":"true",className:"mt-0.5 flex size-6 shrink-0 items-center justify-center rounded bg-default-100",children:u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-3.5 text-default-500",children:u.jsx("path",{d:"M16 12V4h1V3H7v1h1v8l-2 2v1h5.2c-.2.6-.3 1.2-.3 1.8 0 2.2 1.8 4 4 4s4-1.8 4-4c0-.6-.1-1.2-.3-1.8H18v-1l-2-2z"})})})}function fc(e){return i.isValidElement(e)&&e.type===Ca}function pc(e){return i.isValidElement(e)&&e.type===Ma}function bc(e){return i.isValidElement(e)?i.Children.toArray(e.props.children).filter(pc).length:0}function mc(e){let t=null,r=null;for(const a of i.Children.toArray(e))i.isValidElement(a)&&(a.type===Ta&&(t=a.props.children),a.type===La&&(r=a));const n=i.Children.toArray(t).filter(fc);return bc(r),{figures:n.slice(0,ac),bullets:r}}function Ta(e){return null}function La({children:e,className:t}){return u.jsx("ul",{className:U("flex flex-col gap-2",t),children:e})}function Ma({variant:e="dot",color:t="GREY",label:r,hideLabel:n=!1,children:a,className:o}){if(e==="dot")return u.jsxs("li",{className:U("flex gap-2.5",o),children:[u.jsx("span",{"aria-hidden":"true",className:"mt-1.5 size-2 shrink-0 rounded-full",style:{backgroundColor:He[t]}}),u.jsx("span",{className:"flex-1",children:a})]});const s=r??lc[e],l=e==="caution"?u.jsx(cc,{}):e==="reminder"?u.jsx(uc,{}):u.jsx(dc,{});return u.jsxs("li",{className:U("flex gap-2.5",e==="caution"&&"text-danger",o),children:[l,u.jsxs("span",{className:"flex-1",children:[!n&&u.jsxs(u.Fragment,{children:[u.jsxs("span",{className:"font-semibold",children:[s,":"]})," "]}),a]})]})}function hc(){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:u.jsx("path",{d:"m5 12 5 5 9-11"})})}function gc({figures:e,bullets:t}){const[r,n]=i.useState(0),a=e[r]??e[0];return u.jsxs("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2",children:[u.jsx("div",{className:"min-w-0",children:a&&i.cloneElement(a,{className:U("w-full",a.props.className)})}),u.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[e.length>1&&u.jsx("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":"Step images",children:e.map((o,s)=>u.jsx("button",{type:"button",className:U("overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",s===r?"border-accent shadow-md":"border-default opacity-80 hover:opacity-100"),onMouseEnter:()=>n(s),onFocus:()=>n(s),"aria-label":`Image ${s+1}`,"aria-pressed":s===r,children:u.jsx("img",{src:o.props.src,alt:"",className:"size-16 object-cover sm:size-20"})},o.key??o.props.src??s))}),t]})]})}function vc({number:e,title:t,isCompleted:r,defaultCompleted:n=!1,onCompletedChange:a,completable:o=!0,children:s,className:l}){const[c,b]=nc(r,n,a),m=i.useId(),{figures:p,bullets:y}=mc(s);return u.jsxs("section",{"aria-labelledby":t!=null?m:void 0,"data-completed":c||void 0,className:U("flex flex-col gap-4 transition-opacity",c&&"opacity-60",l),children:[u.jsxs("header",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[u.jsxs("div",{className:"flex min-w-0 items-center gap-3 sm:flex-1",children:[e!=null&&u.jsx("span",{className:U("flex size-8 shrink-0 items-center justify-center rounded-md text-sm font-bold tabular-nums",c?"bg-success text-success-foreground":"bg-foreground text-background"),children:c?u.jsx(hc,{}):e}),t!=null&&u.jsx("h3",{id:m,className:"min-w-0 flex-1 text-lg font-semibold leading-tight",children:t})]}),o&&u.jsx(pl,{variant:c?"primary":"secondary",size:"lg",onPress:()=>b(!c),"aria-pressed":c,className:U("ml-auto shrink-0",c&&"guide-step-complete-button"),style:c?{"--guide-step-complete-bg":oc,"--guide-step-complete-bg-hover":sc,"--guide-step-complete-checkbox":ic}:void 0,children:u.jsx(lt,{isSelected:c,isReadOnly:!0,"aria-hidden":!0,className:"pointer-events-none gap-2 text-inherit",children:u.jsxs(lt.Content,{className:"flex items-center gap-2 whitespace-nowrap",children:[u.jsx(lt.Control,{children:u.jsx(lt.Indicator,{})}),"Mark complete"]})})})]}),u.jsx(gc,{figures:p,bullets:y})]})}const yc=Object.assign(vc,{Media:Ta,Bullets:La,Bullet:Ma});function xc(e){return i.isValidElement(e)}function $c({children:e,showProgress:t=!0,onProgressChange:r,className:n}){const a=i.Children.toArray(e).filter(xc),o=a.length,[s,l]=i.useState(()=>Object.fromEntries(a.map((b,m)=>[b.props.number??m+1,!!(b.props.defaultCompleted??b.props.isCompleted)]))),c=Object.values(s).filter(Boolean).length;return i.useEffect(()=>{r==null||r({completed:c,total:o})},[c,o,r]),u.jsxs("div",{className:U("flex flex-col gap-8",n),children:[t&&o>0&&u.jsx("div",{className:"sticky top-2 mx-2 z-10",children:u.jsx(Fe,{className:"w-full px-6 py-4",children:u.jsxs(ct,{value:c,maxValue:o,"aria-label":"Guide progress",className:"flex flex-col gap-1.5",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm text-default-500",children:[u.jsx("span",{children:"Guide Progress"}),u.jsxs(ct.Output,{children:[c," / ",o," steps"]})]}),u.jsx(ct.Track,{className:"h-2 overflow-hidden rounded-full bg-default-soft",children:u.jsx(ct.Fill,{className:"h-full rounded-full bg-success transition-[width]"})})]})})}),u.jsx("ol",{className:"flex flex-col",children:a.map((b,m)=>{const p=b.props.number??m+1;return u.jsxs("li",{children:[i.cloneElement(b,{number:p,isCompleted:s[p]??!1,onCompletedChange:y=>{var v,$;l(h=>({...h,[p]:y})),($=(v=b.props).onCompletedChange)==null||$.call(v,y)}}),m<a.length-1&&u.jsx(Ol,{className:"my-8"})]},b.key??p)})})]})}function Ec({title:e,difficulty:t,timeEstimate:r,meta:n,className:a}){const o=t!=null||r!=null;return u.jsxs("header",{className:U("flex flex-col gap-4 border-b border-default pb-6 md:[grid-area:header]",a),children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:e}),n!=null&&u.jsx("div",{className:"text-sm text-default-500",children:n})]}),o&&u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t!=null&&u.jsx(Sa,{difficulty:t}),r!=null&&u.jsx(xt,{variant:"soft",color:"default",children:u.jsx(xt.Label,{children:r})})]})]})}function wc({children:e,className:t}){return u.jsx("div",{className:U("min-w-0 md:[grid-area:intro]",t),children:u.jsx("div",{className:"max-w-prose text-default-700",children:e})})}function Pc({children:e,className:t}){return u.jsx("aside",{className:U("min-w-0 md:[grid-area:sidebar]",t),children:u.jsx("div",{className:"flex flex-col gap-4",children:e})})}function Sc({children:e,className:t}){return u.jsx("main",{className:U("min-w-0 w-full md:[grid-area:main]",t),children:e})}const kc=Object.assign(function({children:t,className:r}){return u.jsx("div",{className:U("mx-auto grid w-full max-w-6xl grid-cols-1 gap-x-8 gap-y-8 md:grid-cols-[minmax(0,1fr)_20rem] md:[grid-template-areas:'header_header'_'intro_sidebar'_'main_main']",r),children:t})},{Header:Ec,Intro:wc,Sidebar:Pc,Content:Sc});exports.COLORS=He;exports.Callout=zl;exports.DISPLAY_REGION_ASPECT=Ul;exports.DifficultyBadge=Sa;exports.GuideLayout=kc;exports.GuideStep=yc;exports.GuideStepList=$c;exports.MediaFigure=Ca;exports.ToolList=rc;exports.calloutTypeColor=gn;exports.calloutTypeHex=vn;exports.calloutTypeLabel=ut;exports.displayRegionHeight=ka;exports.hexToRgba=Ge;exports.markerTextColor=hn;
|
|
24
|
+
//# sourceMappingURL=diy-guides-ui.cjs.map
|