PageSourceSearch

https://static-awsprod-shop.lilysilk.com/fe/lilysilk-shop-server/p…/static/chunks/2668-d9c8e0544594a699.js

js lilysilk.com collected 2026-09-24 09:58:55 UTC 65,795 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cb8df306-82ca-438e-afb4-089ab5a696a2",e._sentryDebugIdIdentifier="sentry-dbid-cb8df306-82ca-438e-afb4-089ab5a696a2")}catch(e){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};"use strict";_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack],{"_sentryBundlerPluginAppKey:sa-fe-lilysilk-server-webpack-plugin-application-key":!0}),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2668],{12668:function(e,t,n){n.d(t,{K:function(){return nc}});var r=n(57437);function i(e){let{isSelected:t,disableAnimation:n,...i}=e;return(0,r.jsx)("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!n&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...i,children:(0,r.jsx)("polyline",{points:"1 9 7 14 15 4"})})}function o(e){let{isSelected:t,disableAnimation:n,...i}=e;return(0,r.jsx)("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...i,children:(0,r.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function a(e){let{isIndeterminate:t,...n}=e;return(0,r.jsx)(t?o:i,{...n})}var l=n(2265),[s,u]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=l.createContext(void 0);return i.displayName=r,[i.Provider,function e(){var r;let o=l.useContext(i);if(!o&&t){let t=Error(n);throw t.name="ContextError",null==(r=Error.captureStackTrace)||r.call(Error,t,e),t}return o},i]}({name:"CheckboxGroupContext",strict:!1}),d=n(14086),c=n(78181);function f(e={}){let{isReadOnly:t}=e,[n,r]=(0,c.z)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}var p=n(38386),v=n(31572),g=(0,p.tv)({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...v.ID],hiddenInput:v.PZ,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]}
1,full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}});(0,p.tv)({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}});var m=n(32400);let y=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},b=!1,E=0;function h(){b=!0,setTimeout(()=>{b=!1},50)}function T(e){"touch"===e.pointerType&&h()}function w(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",T):document.addEventListener("touchend",h),E++,()=>{--E>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",T):document.removeEventListener("touchend",h))}}let P="undefined"!=typeof document?l.useLayoutEffect:()=>{};class L{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function k(e){let t=(0,l.useRef)({isFocused:!1,observer:null});P(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,l.useRef)(null);return P(()=>{t.current=e},[e]),(0,l.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,l.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new L("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function M(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function S(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function K(e){let t=null;return()=>(null==t&&(t=e()),t)}let C=K(function(){return S(/^Mac/i)}),x=K(function(){return S(/^iPhone/i)}),I=K(function(){return S(/^iPad/i)||C()&&navigator.maxTouchPoints>1}),D=K(function(){return x()||I()});K(function(){return C()||D()}
1),K(function(){return M(/AppleWebKit/i)&&!O()});let O=K(function(){return M(/Chrome/i)}),F=K(function(){return M(/Android/i)});K(function(){return M(/Firefox/i)});let R=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},A=e=>e&&"window"in e&&e.window===e?e:R(e).defaultView||window,H=null,G=new Set,N=new Map,_=!1,V=!1,W={Tab:!0,Escape:!0};function B(e,t){for(let n of G)n(e,t)}function j(e){_=!0,e.metaKey||!C()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(H="keyboard",B("keyboard",e))}function U(e){H="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(_=!0,B("pointer",e))}function z(e){(0===e.mozInputSource&&e.isTrusted||(F()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(_=!0,H="virtual")}function Y(e){e.target!==window&&e.target!==document&&e.isTrusted&&(_||V||(H="virtual",B("virtual",e)),_=!1,V=!1)}function X(){_=!1,V=!0}function q(e){if("undefined"==typeof window||N.get(A(e)))return;let t=A(e),n=R(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){_=!0,r.apply(this,arguments)},n.addEventListener("keydown",j,!0),n.addEventListener("keyup",j,!0),n.addEventListener("click",z,!0),t.addEventListener("focus",Y,!0),t.addEventListener("blur",X,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",U,!0),n.addEventListener("pointermove",U,!0),n.addEventListener("pointerup",U,!0)):(n.addEventListener("mousedown",U,!0),n.addEventListener("mousemove",U,!0),n.addEventListener("mouseup",U,!0)),t.addEventListener("beforeunload",()=>{Z(e)},{once:!0}),N.set(t,{focus:r})}let Z=(e,t)=>{let n=A(e),r=R(e);t&&r.removeEventListener("DOMContentLoaded",t),N.has(n)&&(n.HTMLElement.prototype.focus=N.get(n).focus,r.removeEventListener("keydown",j,!0),r.removeEventListener("keyup",j,!0),r.removeEventListener("click",z,!0),n.removeEventListener("focus",Y,!0),n.removeEventListener("blur",X,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",U,!0),r.removeEventListener("pointermove",U,!0),r.removeEventListener("pointerup",U,!0)):(r.removeEventListener("mousedown",U,!0),r.removeEventListener("mousemove",U,!0),r.removeEventListener("mouseup",U,!0)),N.delete(n))};function Q(){return"pointer"!==H}"undefined"!=typeof document&&function(e){let t;let n=R(void 0);"loading"!==n.readyState?q(void 0):(t=()=>{q(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>Z(e,t)}();let $=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),J=(e=document)=>e.activeElement;function ee(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}"undefined"!=typeof window&&window.document&&window.document.createElement;let et=new Map;new FinalizationRegistry(e=>{et.delete(e)});var en=n(61994);function er(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=ee(n,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof i?t[e]=(0,en.Z)(n,i):"id"===e&&n&&i?t.id=function(e,t){if(e===t)return e;let n=et.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=et.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,i):t[e]=void 0!==i?i:n}}return t}var ei=e=>e?"true":void 0;function eo(...e){for(var t,n,r=0,i="";r<e.length;)(t=e[r++])&&(n=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(t))&&(i&&(i+=" "),i+=n);return i}var ea=(...e)=>{let t=" ";for(let n of e)if("string"==typeof n&&n.length>0){t=n;break}return t};function el(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}"undefined"!=typeof window&&window.document&&window.document.createElement;let es=new Map;function eu(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=el(n,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof i?t[e]=(0,en.Z)(n,i):"id"===e&&n&&i?t.id=function(e,t){if(e===t)return e;let n=es.get(e);
1if(n)return n.forEach(e=>e.current=t),t;let r=es.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,i):t[e]=void 0!==i?i:n}}return t}"undefined"!=typeof FinalizationRegistry&&new FinalizationRegistry(e=>{es.delete(e)});var ed=n(37932),ec=n(9063);function ef(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function ep(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ev(e){let t=null;return()=>(null==t&&(t=e()),t)}let eg=ev(function(){return ep(/^Mac/i)}),em=ev(function(){return ep(/^iPhone/i)}),ey=ev(function(){return ep(/^iPad/i)||eg()&&navigator.maxTouchPoints>1}),eb=ev(function(){return em()||ey()});ev(function(){return eg()||eb()});let eE=ev(function(){return ef(/AppleWebKit/i)&&!eh()}),eh=ev(function(){return ef(/Chrome/i)}),eT=ev(function(){return ef(/Android/i)}),ew=ev(function(){return ef(/Firefox/i)}),eP=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},eL=e=>e&&"window"in e&&e.window===e?e:eP(e).defaultView||window,ek=new Map,eM=new Set;function eS(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=ek.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),ek.delete(n.target)),0===ek.size)){for(let e of eM)e();eM.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let r=ek.get(n.target);r||(r=new Set,ek.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}"undefined"!=typeof document&&("loading"!==document.readyState?eS():document.addEventListener("DOMContentLoaded",eS));let eK="default",eC="",ex=new WeakMap;function eI(e){if(eb()){if("default"===eK){let t=eP(e);eC=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}eK="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";ex.set(e,e.style[t]),e.style[t]="none"}}function eD(e){if(eb())"disabled"===eK&&(eK="restoring",setTimeout(()=>{var t;t=()=>{if("restoring"===eK){let t=eP(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=eC||""),eC="",eK="default"}},requestAnimationFrame(()=>{0===ek.size?t():eM.add(t)})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ex.has(e)){let t=ex.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),ex.delete(e)}}let eO=l.createContext({register:()=>{}});eO.displayName="PressResponderContext";let eF=["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"])'],eR=eF.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";function eA(e){if(function(){if(null==eH){eH=!1;try{document.createElement("div").focus({get preventScroll(){return eH=!0,!0}})}catch{}}return eH}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}eF.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),eF.join(':not([hidden]):not([tabindex="-1"]),');let eH=null;function eG(e){for(;e&&!e.matches(eR);)e=e.parentElement;let t=eL(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},o=t=>{t.target!==n&&!r||(t.stopImmediatePropagation(),e||r||(r=!0,eA(n),s()))},a=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},l=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,eA(n),s()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),r=!1},u=requestAnimationFrame(s);return s}var eN=n(95691),e_=n(36960),eV=n(11455);let eW="undefined"!=typeof document?l.useLayoutEffect:()=>{};function eB(e){let t=(0,l.useRef)(null);return eW(()=>{t.current=e},[e]),(0,l.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)}
1,[])}function ej(e,t){return!!t&&!!e&&e.contains(t)}function eU(e){return e.target}function ez(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}=t;ew()&&(null===(i=window.event)||void 0===i?void 0:null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(eg()?o=!0:a=!0);let u=eE()&&eg()&&!ey()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});ez.isOpening=n,eA(e),e.dispatchEvent(u),ez.isOpening=!1}function eY(e){return 0===e.mozInputSource&&!!e.isTrusted||(eT()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}ez.isOpening=!1;var eX=n(54887),eq=new WeakMap;class eZ{continuePropagation(){(0,eV._)(this,eq,!1)}get shouldStopPropagation(){return(0,eN._)(this,eq)}constructor(e,t,n,r){var i;(0,e_._)(this,eq,{writable:!0,value:void 0}),(0,eV._)(this,eq,!0);let o=null!==(i=null==r?void 0:r.target)&&void 0!==i?i:n.currentTarget,a=null==o?void 0:o.getBoundingClientRect(),l,s=0,u,d=null;null!=n.clientX&&null!=n.clientY&&(u=n.clientX,d=n.clientY),a&&(null!=u&&null!=d?(l=u-a.left,s=d-a.top):(l=a.width/2,s=a.height/2)),this.type=e,this.pointerType=t,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=s}}let eQ=Symbol("linkClicked");function e$(e){return"A"===e.tagName&&e.hasAttribute("href")}function eJ(e,t){let{key:n,code:r}=e,i=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof eL(t).HTMLInputElement&&!e4(t,n)||t instanceof eL(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===i||!i&&e$(t))&&"Enter"!==n)}function e0(e,t){let n=e.changedTouches;for(let e=0;e<n.length;e++){let r=n[e];if(r.identifier===t)return r}return null}function e1(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function e2(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function e6(e,t){let n,r,i=t.getBoundingClientRect(),o=(n=0,r=0,void 0!==e.width?n=e.width/2:void 0!==e.radiusX&&(n=e.radiusX),void 0!==e.height?r=e.height/2:void 0!==e.radiusY&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+n,bottom:e.clientY+r,left:e.clientX-n});return!(i.left>o.right)&&!(o.left>i.right)&&!(i.top>o.bottom)&&!(o.top>i.bottom)}function e5(e,t){return e instanceof HTMLInputElement?!e4(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!e$(e))}let e3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function e4(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:e3.has(e.type)}function e8(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}"undefined"!=typeof window&&window.document&&window.document.createElement;let e7=new Map;function e9(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=e8(n,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof i?t[e]=(0,en.Z)(n,i):"id"===e&&n&&i?t.id=function(e,t){if(e===t)return e;let n=e7.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=e7.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,i):t[e]=void 0!==i?i:n}}return t}"undefined"!=typeof FinalizationRegistry&&new FinalizationRegistry(e=>{e7.delete(e)});let te=new Set(["id"]),tt=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),tn=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),tr=/^(data-.*)$/,ti="undefined"!=typeof document?l.useLayoutEffect:()=>{};function to(e){let t=(0,l.useRef)(null);return ti(()=>{t.current=e},[e]),(0,l.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)}
1,[])}function ta(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function tl(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ts(e){let t=null;return()=>(null==t&&(t=e()),t)}let tu=ts(function(){return tl(/^Mac/i)}),td=ts(function(){return tl(/^iPhone/i)}),tc=ts(function(){return tl(/^iPad/i)||tu()&&navigator.maxTouchPoints>1}),tf=ts(function(){return td()||tc()});ts(function(){return tu()||tf()});let tp=ts(function(){return ta(/AppleWebKit/i)&&!tv()}),tv=ts(function(){return ta(/Chrome/i)}),tg=ts(function(){return ta(/Android/i)}),tm=ts(function(){return ta(/Firefox/i)}),ty=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},tb=e=>e&&"window"in e&&e.window===e?e:ty(e).defaultView||window,tE=new Map,th=new Set;function tT(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=tE.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),tE.delete(n.target)),0===tE.size)){for(let e of th)e();th.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let r=tE.get(n.target);r||(r=new Set,tE.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function tw(e){requestAnimationFrame(()=>{0===tE.size?e():th.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?tT():document.addEventListener("DOMContentLoaded",tT));let tP="default",tL="",tk=new WeakMap;function tM(e){if(tf()){if("default"===tP){let t=ty(e);tL=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}tP="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";tk.set(e,e.style[t]),e.style[t]="none"}}function tS(e){if(tf())"disabled"===tP&&(tP="restoring",setTimeout(()=>{tw(()=>{if("restoring"===tP){let t=ty(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=tL||""),tL="",tP="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&tk.has(e)){let t=tk.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),tk.delete(e)}}let tK=l.createContext({register:()=>{}});tK.displayName="PressResponderContext";let tC=["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"])'],tx=tC.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";function tI(e){if(function(){if(null==tD){tD=!1;try{document.createElement("div").focus({get preventScroll(){return tD=!0,!0}})}catch{}}return tD}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}tC.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),tC.join(':not([hidden]):not([tabindex="-1"]),');let tD=null;class tO{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}let tF=!1;function tR(e){for(;e&&!e.matches(tx);)e=e.parentElement;let t=tb(e),n=t.document.activeElement;if(!n||n===e)return;tF=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},o=t=>{t.target!==n&&!r||(t.stopImmediatePropagation(),e||r||(r=!0,tI(n),s()))},a=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},l=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,tI(n),s()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),tF=!1,r=!1},u=requestAnimationFrame(s);return s}function tA(e,t){ti(()=>
1{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function tH(e,t){return!!t&&!!e&&e.contains(t)}let tG=(e=document)=>e.activeElement;function tN(e){return e.target}function t_(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}=t;tm()&&(null===(i=window.event)||void 0===i?void 0:null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(tu()?o=!0:a=!0);let u=tp()&&tu()&&!tc()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});t_.isOpening=n,tI(e),e.dispatchEvent(u),t_.isOpening=!1}function tV(e){return 0===e.mozInputSource&&!!e.isTrusted||(tg()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}t_.isOpening=!1;var tW=new WeakMap;class tB{continuePropagation(){(0,eV._)(this,tW,!1)}get shouldStopPropagation(){return(0,eN._)(this,tW)}constructor(e,t,n,r){var i;(0,e_._)(this,tW,{writable:!0,value:void 0}),(0,eV._)(this,tW,!0);let o=null!==(i=null==r?void 0:r.target)&&void 0!==i?i:n.currentTarget,a=null==o?void 0:o.getBoundingClientRect(),l,s=0,u,d=null;null!=n.clientX&&null!=n.clientY&&(u=n.clientX,d=n.clientY),a&&(null!=u&&null!=d?(l=u-a.left,s=d-a.top):(l=a.width/2,s=a.height/2)),this.type=e,this.pointerType=t,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=s}}let tj=Symbol("linkClicked");function tU(e){let t,n,r,i,{onPress:o,onPressChange:a,onPressStart:s,onPressEnd:u,onPressUp:d,isDisabled:c,isPressed:f,preventFocusOnPress:p,shouldCancelOnPointerExit:v,allowTextSelectionOnPress:g,ref:m,...y}=function(e){let t=(0,l.useContext)(tK);if(t){let{register:n,...r}=t;e=e9(r,e),n()}return tA(t,e.ref),e}(e),[b,E]=(0,l.useState)(!1),h=(0,l.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:T,removeAllGlobalListeners:w}=(t=(0,l.useRef)(new Map),n=(0,l.useCallback)((e,n,r,i)=>{let o=(null==i?void 0:i.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:o,options:i}),e.addEventListener(n,o,i)},[]),r=(0,l.useCallback)((e,n,r,i)=>{var o;let a=(null===(o=t.current.get(r))||void 0===o?void 0:o.fn)||r;e.removeEventListener(n,a,i),t.current.delete(r)},[]),i=(0,l.useCallback)(()=>{t.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]),(0,l.useEffect)(()=>i,[i]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:i}),P=to((e,t)=>{let n=h.current;if(c||n.didFirePressStart)return!1;let r=!0;if(n.isTriggeringEvent=!0,s){let n=new tB("pressstart",t,e);s(n),r=n.shouldStopPropagation}return a&&a(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,E(!0),r}),L=to((e,t,n=!0)=>{let r=h.current;if(!r.didFirePressStart)return!1;r.didFirePressStart=!1,r.isTriggeringEvent=!0;let i=!0;if(u){let n=new tB("pressend",t,e);u(n),i=n.shouldStopPropagation}if(a&&a(!1),E(!1),o&&n&&!c){let n=new tB("press",t,e);o(n),i&&(i=n.shouldStopPropagation)}return r.isTriggeringEvent=!1,i}),k=to((e,t)=>{let n=h.current;if(c)return!1;if(d){n.isTriggeringEvent=!0;let r=new tB("pressup",t,e);return d(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),M=to(e=>{let t=h.current;if(t.isPressed&&t.target){for(let n of(t.didFirePressStart&&null!=t.pointerType&&L(tZ(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,w(),g||tS(t.target),t.disposables))n();t.disposables=[]}}),S=to(e=>{v&&M(e)}),K=(0,l.useMemo)(()=>{let e=h.current,t={onKeyDown(t){if(tY(t.nativeEvent,t.currentTarget)&&tH(t.currentTarget,tN(t.nativeEvent))){var r;t$(tN(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",i=P(t,"keyboard");let r=t.currentTarget;T(ty(t.currentTarget),"keyup",e8(t=>{tY(t,r)&&!t.repeat&&tH(r,tN(t))&&e.target&&k(tZ(e.target,t),"keyboard")},n),!0)}
1i&&t.stopPropagation(),t.metaKey&&tu()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||tH(t.currentTarget,tN(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!t_.isOpening){let n=!0;if(c&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||tV(t.nativeEvent))){let e=P(t,"virtual"),r=k(t,"virtual"),i=L(t,"virtual");n=e&&r&&i}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual";n=L(tZ(t.currentTarget,t),r,!0),e.isOverTarget=!1,M(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n,r,i;if(e.isPressed&&e.target&&tY(t,e.target)){t$(tN(t),t.key)&&t.preventDefault();let n=tN(t);L(tZ(e.target,t),"keyboard",tH(e.target,tN(t))),w(),"Enter"!==t.key&&tz(e.target)&&tH(e.target,n)&&!t[tj]&&(t[tj]=!0,t_(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{var i;if(0!==t.button||!tH(t.currentTarget,tN(t.nativeEvent)))return;if(i=t.nativeEvent,!tg()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let o=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,g||tM(e.target),o=P(t,e.pointerType);let i=tN(t.nativeEvent);"releasePointerCapture"in i&&i.releasePointerCapture(t.pointerId),T(ty(t.currentTarget),"pointerup",n,!1),T(ty(t.currentTarget),"pointercancel",r,!1)}o&&t.stopPropagation()},t.onMouseDown=t=>{if(tH(t.currentTarget,tN(t.nativeEvent))&&0===t.button){if(p){let n=tR(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{tH(t.currentTarget,tN(t.nativeEvent))&&"virtual"!==e.pointerType&&0===t.button&&k(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,P(tZ(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,L(tZ(e.target,t),e.pointerType,!1),S(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(tH(e.target,tN(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?M(t):(tI(e.target),e.target.click()))},80);T(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else M(t);e.isOverTarget=!1}},r=e=>{M(e)};t.onDragStart=e=>{tH(e.currentTarget,tN(e.nativeEvent))&&M(e)}}else{t.onMouseDown=t=>{if(0===t.button&&tH(t.currentTarget,tN(t.nativeEvent))){if(e.ignoreEmulatedMouseEvents){t.stopPropagation();return}if(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=tV(t.nativeEvent)?"virtual":"mouse",(0,eX.flushSync)(()=>P(t,e.pointerType))&&t.stopPropagation(),p){let n=tR(t.target);n&&e.disposables.push(n)}T(ty(t.currentTarget),"mouseup",n,!1)}},t.onMouseEnter=t=>{if(!tH(t.currentTarget,tN(t.nativeEvent)))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=P(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!tH(t.currentTarget,tN(t.nativeEvent)))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=L(t,e.pointerType,!1),S(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{tH(t.currentTarget,tN(t.nativeEvent))&&!e.ignoreEmulatedMouseEvents&&0===t.button&&k(t,e.pointerType||"mouse")};let n=t=>{if(0===t.button){if(e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&e.target.contains(t.target)&&null!=e.pointerType||M(t),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!tH(t.currentTarget,tN(t.nativeEvent)))return;let n=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",g||tM(e.target),P(tq(e.target,t),e.pointerType)&&t.stopPropagation(),T(tb(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!tH(t.currentTarget,tN(t.nativeEvent)))return;if(!e.isPressed){t.stopPropagation();return}let n=tX(t.nativeEvent,e.activePointerId),r=!0;n&&tQ(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=P(tq(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=L(tq(e.target,t),e.pointerType,!1),S(tq(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!tH(t.currentTarget,tN(t.nativeEvent)))return;if(!e.isPressed){t.stopPropagation();return}let n=tX(t.nativeEvent,e.activePointerId),r=!0;n&&tQ(n,t.currentTarget)&&null!=e.pointerType?(k(tq(e.target,t),e.pointerType),r=L(tq(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=L(tq(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!g&&tS(e.target),w()},t.onTouchCancel=t=>{tH(t.currentTarget,tN(t.nativeEvent))&&(t.stopPropagation(),e.isPressed&&M(tq(e.target,t)))};let r=t=>{e.isPressed&&tH(tN(t),e.target)&&M({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{tH(e.currentTarget,tN(e.nativeEvent))&&M(e)}}return t},[T,c,p,w,g,M,S,L,P,k]);return(0,l.useEffect)(()=>{let e=h.current;return()=>{var t;for(let n of(g||tS(null!==(t=e.target)&&void 0!==t?t:void 0),e.disposables)
1)n();e.disposables=[]}},[g]),{isPressed:f||b,pressProps:e9(y,K)}}function tz(e){return"A"===e.tagName&&e.hasAttribute("href")}function tY(e,t){let{key:n,code:r}=e,i=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof tb(t).HTMLInputElement&&!t0(t,n)||t instanceof tb(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===i||!i&&tz(t))&&"Enter"!==n)}function tX(e,t){let n=e.changedTouches;for(let e=0;e<n.length;e++){let r=n[e];if(r.identifier===t)return r}return null}function tq(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function tZ(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function tQ(e,t){let n,r,i=t.getBoundingClientRect(),o=(n=0,r=0,void 0!==e.width?n=e.width/2:void 0!==e.radiusX&&(n=e.radiusX),void 0!==e.height?r=e.height/2:void 0!==e.radiusY&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+n,bottom:e.clientY+r,left:e.clientX-n});return!(i.left>o.right)&&!(o.left>i.right)&&!(i.top>o.bottom)&&!(o.top>i.bottom)}function t$(e,t){return e instanceof HTMLInputElement?!t0(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!tz(e))}let tJ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function t0(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:tJ.has(e.type)}let t1=null,t2=new Set,t6=new Map,t5=!1,t3=!1;function t4(e,t){for(let n of t2)n(e,t)}function t8(e){t5=!0,e.metaKey||!tu()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(t1="keyboard",t4("keyboard",e))}
1function t7(e){t1="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(t5=!0,t4("pointer",e))}function t9(e){tV(e)&&(t5=!0,t1="virtual")}function ne(e){e.target!==window&&e.target!==document&&!tF&&e.isTrusted&&(t5||t3||(t1="virtual",t4("virtual",e)),t5=!1,t3=!1)}function nt(){tF||(t5=!1,t3=!0)}function nn(e){if("undefined"==typeof window||t6.get(tb(e)))return;let t=tb(e),n=ty(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){t5=!0,r.apply(this,arguments)},n.addEventListener("keydown",t8,!0),n.addEventListener("keyup",t8,!0),n.addEventListener("click",t9,!0),t.addEventListener("focus",ne,!0),t.addEventListener("blur",nt,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",t7,!0),n.addEventListener("pointermove",t7,!0),n.addEventListener("pointerup",t7,!0)):(n.addEventListener("mousedown",t7,!0),n.addEventListener("mousemove",t7,!0),n.addEventListener("mouseup",t7,!0)),t.addEventListener("beforeunload",()=>{nr(e)},{once:!0}),t6.set(t,{focus:r})}let nr=(e,t)=>{let n=tb(e),r=ty(e);t&&r.removeEventListener("DOMContentLoaded",t),t6.has(n)&&(n.HTMLElement.prototype.focus=t6.get(n).focus,r.removeEventListener("keydown",t8,!0),r.removeEventListener("keyup",t8,!0),r.removeEventListener("click",t9,!0),n.removeEventListener("focus",ne,!0),n.removeEventListener("blur",nt,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",t7,!0),r.removeEventListener("pointermove",t7,!0),r.removeEventListener("pointerup",t7,!0)):(r.removeEventListener("mousedown",t7,!0),r.removeEventListener("mousemove",t7,!0),r.removeEventListener("mouseup",t7,!0)),t6.delete(n))};function ni(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){t?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:()=>t}),t&&n.stopPropagation()}}"undefined"!=typeof document&&function(e){let t;let n=ty(void 0);"loading"!==n.readyState?nn(void 0):(t=()=>{nn(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>nr(e,t)}();let no=l.createContext(null);function na(e,t,n){let r=(0,ed.Q3)({...e,value:t.isSelected}),{isInvalid:i,validationErrors:o,validationDetails:a}=r.displayValidation,{labelProps:s,inputProps:u,isSelected:d,isPressed:c,isDisabled:f,isReadOnly:p}=function(e,t,n){var r,i;let o,a,{isDisabled:s=!1,isReadOnly:u=!1,value:d,name:c,children:f,"aria-label":p,"aria-labelledby":v,validationState:g="valid",isInvalid:m}=e;null!=f||null!=p||null!=v||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:y,isPressed:b}=tU({isDisabled:s}),{pressProps:E,isPressed:h}=tU({onPress(){var e;t.toggle(),null===(e=n.current)||void 0===e||e.focus()},isDisabled:s||u}),{focusableProps:T}=function(e,t){let{focusProps:n}=function(e){let t,n,{isDisabled:r,onFocus:i,onBlur:o,onFocusChange:a}=e,s=(0,l.useCallback)(e=>{if(e.target===e.currentTarget)return o&&o(e),a&&a(!1),!0},[o,a]),u=(t=(0,l.useRef)({isFocused:!1,observer:null}),ti(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),n=to(e=>{null==s||s(e)}),(0,l.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new tO("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])),d=(0,l.useCallback)(e=>{let t=ty(e.target),n=t?tG(t):tG();e.target===e.currentTarget&&n===tN(e.nativeEvent)&&(i&&i(e),a&&a(!0),u(e))},[a,i,u]);return{focusProps:{onFocus:!r&&(i||a||o)?d:void 0,onBlur:!r&&(o||a)?s:void 0}}}(e),{keyboardProps:r}={keyboardProps:e.isDisabled?{}:{onKeyDown:ni(e.onKeyDown),onKeyUp:ni(e.onKeyUp)}},i=e9(n,r),o=function(e){let t=(0,l.useContext)(no)||{};tA(t,e);let{ref:n,...r}=t;return r}(t),a=e.isDisabled?{}:o,s=(0,l.useRef)(e.autoFocus);(0,l.useEffect)(()=>{s.current&&t.current&&function(e){let t=ty(e),n=tG(t);"virtual"===t1?tw(()=>{tG(t)===n&&e.isConnected&&tI(e)}):tI(e)}(t.current),s.current=!1},[t]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:e9({...i,tabIndex:u},a)}}(e,n),w=e9(y,T),P=function(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(te.has(t)||n&&tt.has(t)||r&&tn.has(t)||(null==i?void 0:i.has(t))||tr.test(t))&&(o[t]=e[t]);return o}(e,{labelable:!0});return r=t.isSelected,i=t.setSelected,o=(0,l.useRef)(r),a=to(()=>{i&&i(o.current)}),(0,l.useEffect)(()=>{var e;let t=null==n?void 0:null===(e=n.current)||void 0===e?void 0:e.form;return null==t||t.addEventListener("reset",a),()=>{null==t||t.removeEventListener("reset",a)}},[n,a]),{labelProps:e9(E,{onClick:e=>e.preventDefault()}),inputProps:e9(P,{"aria-invalid":m||"invalid"===g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":u||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:s,...null==d?{}:{value:d},name:c,type:"checkbox",...w}),isSelected:t.isSelected,isPressed:b||h,isDisabled:s,isReadOnly:u,isInvalid:m||"invalid"===g}}({...e,isInvalid:i},t,n);(0,ec.Q)(e,r,n);let{isIndeterminate:v,isRequired:g,validationBehavior:m="aria"}=e;(0,l.useEffect)(()=>{n.current&&(n.current.indeterminate=!!v)});let{pressProps:y}=function(e){let t,n,r,i,{onPress:o,onPressChange:a,onPressStart:s,onPressEnd:u,onPressUp:d,isDisabled:c,isPressed:f,preventFocusOnPress:p,shouldCancelOnPointerExit:v,allowTextSelectionOnPress:g,ref:m,...y}=function(e){var t;let n=(0,l.useContext)(eO);if(n){let{register:t,...r}=n;e=eu(r,e),t()}return t=e.ref,eW(()=>{if(n&&n.ref&&t)return n.ref.current=t.current,()=>{n.ref&&(n.ref.current=null)}}),e}(e),[b,E]=(0,l.useState)(!1),h=(0,l.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:T,removeAllGlobalListeners:w}=(t=(0,l.useRef)(new Map),n=(0,l.useCallback)((e,n,r,i)=>{let o=(null==i?void 0:i.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:o,options:i}),e.addEventListener(n,o,i)},[]),r=(0,l.useCallback)((e,n,r,i)=>{var o;let a=(null===(o=t.current.get(r))||void 0===o?void 0:o.fn)||r;e.removeEventListener(n,a,i),t.current.delete(r)},[]),i=(0,l.useCallback)(()=>{t.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]),(0,l.useEffect)(()=>i,[i]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:i}),P=eB((e,t)=>{let n=h.current;if(c||n.didFirePressStart)return!1;let r=!0;if(n.isTriggeringEvent=!0,s){let n=new eZ("pressstart",t,e);s(n),r=n.shouldStopPropagation}return a&&a(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,E(!0),r}),L=eB((e,t,n=!0)=>{let r=h.current;if(!r.didFirePressStart)return!1;r.didFirePressStart=!1,r.isTriggeringEvent=!0;let i=!0;if(u){let n=new eZ("pressend",t,e);u(n),i=n.shouldStopPropagation}if(a&&a(!1),E(!1),o&&n&&!c){let n=new eZ("press",t,e);o(n),i&&(i=n.shouldStopPropagation)}return r.isTriggeringEvent=!1,i}),k=eB((e,t)=>{let n=h.current;if(c)return!1;if(d){n.isTriggeringEvent=!0;let r=new eZ("pressup",t,e);return d(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),M=eB(e=>{let t=h.current;if(t.isPressed&&t.target){for(let n of(t.didFirePressStart&&null!=t.pointerType&&L(e2(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,w(),g||eD(t.target),t.disposables)
1)n();t.disposables=[]}}),S=eB(e=>{v&&M(e)}),K=(0,l.useMemo)(()=>{let e=h.current,t={onKeyDown(t){if(eJ(t.nativeEvent,t.currentTarget)&&ej(t.currentTarget,eU(t.nativeEvent))){var r;e5(eU(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",i=P(t,"keyboard");let r=t.currentTarget;T(eP(t.currentTarget),"keyup",el(t=>{eJ(t,r)&&!t.repeat&&ej(r,eU(t))&&e.target&&k(e2(e.target,t),"keyboard")},n),!0)}i&&t.stopPropagation(),t.metaKey&&eg()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||ej(t.currentTarget,eU(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!ez.isOpening){let n=!0;if(c&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||eY(t.nativeEvent))){let e=P(t,"virtual"),r=k(t,"virtual"),i=L(t,"virtual");n=e&&r&&i}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual";n=L(e2(t.currentTarget,t),r,!0),e.isOverTarget=!1,M(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n,r,i;if(e.isPressed&&e.target&&eJ(t,e.target)){e5(eU(t),t.key)&&t.preventDefault();let n=eU(t);L(e2(e.target,t),"keyboard",ej(e.target,eU(t))),w(),"Enter"!==t.key&&e$(e.target)&&ej(e.target,n)&&!t[eQ]&&(t[eQ]=!0,ez(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{var i;if(0!==t.button||!ej(t.currentTarget,eU(t.nativeEvent)))return;if(i=t.nativeEvent,!eT()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let o=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,g||eI(e.target),o=P(t,e.pointerType);let i=eU(t.nativeEvent);"releasePointerCapture"in i&&i.releasePointerCapture(t.pointerId),T(eP(t.currentTarget),"pointerup",n,!1),T(eP(t.currentTarget),"pointercancel",r,!1)}o&&t.stopPropagation()},t.onMouseDown=t=>{if(ej(t.currentTarget,eU(t.nativeEvent))&&0===t.button){if(p){let n=eG(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{ej(t.currentTarget,eU(t.nativeEvent))&&"virtual"!==e.pointerType&&0===t.button&&k(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,P(e2(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,L(e2(e.target,t),e.pointerType,!1),S(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(ej(e.target,eU(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?M(t):(eA(e.target),e.target.click()))},80);T(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else M(t);e.isOverTarget=!1}},r=e=>{M(e)};t.onDragStart=e=>{ej(e.currentTarget,eU(e.nativeEvent))&&M(e)}}else{t.onMouseDown=t=>{if(0===t.button&&ej(t.currentTarget,eU(t.nativeEvent))){if(e.ignoreEmulatedMouseEvents){t.stopPropagation();return}if(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=eY(t.nativeEvent)?"virtual":"mouse",(0,eX.flushSync)(()=>P(t,e.pointerType))&&t.stopPropagation(),p){let n=eG(t.target);n&&e.disposables.push(n)}T(eP(t.currentTarget),"mouseup",n,!1)}},t.onMouseEnter=t=>{if(!ej(t.currentTarget,eU(t.nativeEvent)))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=P(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!ej(t.currentTarget,eU(t.nativeEvent)))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=L(t,e.pointerType,!1),S(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{ej(t.currentTarget,eU(t.nativeEvent))&&!e.ignoreEmulatedMouseEvents&&0===t.button&&k(t,e.pointerType||"mouse")};let n=t=>{if(0===t.button){if(e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&e.target.contains(t.target)&&null!=e.pointerType||M(t),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!ej(t.currentTarget,eU(t.nativeEvent)))return;let n=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",g||eI(e.target),P(e1(e.target,t),e.pointerType)&&t.stopPropagation(),T(eL(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!ej(t.currentTarget,eU(t.nativeEvent)))return;if(!e.isPressed){t.stopPropagation();return}let n=e0(t.nativeEvent,e.activePointerId),r=!0;n&&e6(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=P(e1(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=L(e1(e.target,t),e.pointerType,!1),S(e1(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!ej(t.currentTarget,eU(t.nativeEvent)))return;if(!e.isPressed){t.stopPropagation();return}let n=e0(t.nativeEvent,e.activePointerId),r=!0;n&&e6(n,t.currentTarget)&&null!=e.pointerType?(k(e1(e.target,t),e.pointerType),r=L(e1(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=L(e1(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!g&&eD(e.target),w()},t.onTouchCancel=t=>{ej(t.currentTarget,eU(t.nativeEvent))&&(t.stopPropagation(),e.isPressed&&M(e1(e.target,t)))};let r=t=>{e.isPressed&&ej(eU(t),e.target)&&M({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{ej(e.currentTarget,eU(e.nativeEvent))&&M(e)}}return t},[T,c,p,w,g,M,S,L,P,k]);return(0,l.useEffect)(()=>{let e=h.current;return()=>{var t;for(let n of(g||eD(null!==(t=e.target)&&void 0!==t?t:void 0),e.disposables)
1)n();e.disposables=[]}},[g]),{isPressed:f||b,pressProps:eu(y,K)}}({isDisabled:f||p,onPress(){let{[ed.tL]:t}=e,{commitValidation:n}=t||r;n()}});return{labelProps:eu(s,y),inputProps:{...u,checked:d,"aria-required":g&&"aria"===m||void 0,required:g&&"native"===m},isSelected:d,isPressed:c,isDisabled:f,isReadOnly:p,isInvalid:i,validationErrors:o,validationDetails:a}}let nl=new WeakMap;var ns=n(6376),nu=n(38507),nd=(0,n(95667).Gp)((e,t)=>{let{Component:n,children:i,icon:o=(0,r.jsx)(a,{}),getBaseProps:s,getWrapperProps:c,getInputProps:p,getIconProps:v,getLabelProps:E}=function(){var e,t,n,r,i,o,a,s;let c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=(0,d.w)(),v=u(),{validationBehavior:E}=(0,ns.jn)(nu.q)||{},h=!!v,{as:T,ref:P,value:M="",children:S,icon:K,name:C,isRequired:x,isReadOnly:I=!1,autoFocus:D=!1,isSelected:O,size:F=null!=(e=null==v?void 0:v.size)?e:"md",color:H=null!=(t=null==v?void 0:v.color)?t:"primary",radius:N=null==v?void 0:v.radius,lineThrough:_=null!=(n=null==v?void 0:v.lineThrough)&&n,isDisabled:V=null!=(r=null==v?void 0:v.isDisabled)&&r,disableAnimation:B=null!=(o=null!=(i=null==v?void 0:v.disableAnimation)?i:null==p?void 0:p.disableAnimation)&&o,validationState:j,isInvalid:U=j?"invalid"===j:null!=(a=null==v?void 0:v.isInvalid)&&a,isIndeterminate:z=!1,validationBehavior:Y=h?v.validationBehavior:null!=(s=null!=E?E:null==p?void 0:p.validationBehavior)?s:"native",defaultSelected:X,classNames:Z,className:et,onValueChange:en,validate:el,...es}=c,eu=(0,l.useRef)(null),ec=(0,l.useRef)(null),ef=c.onChange;h&&(ef=ee(()=>{v.groupState.resetValidation()},ef));let ep=(0,l.useId)(),ev=(0,l.useMemo)(()=>({name:C,value:M,children:S,autoFocus:D,defaultSelected:X,isIndeterminate:z,isRequired:x,isInvalid:U,isSelected:O,isDisabled:V,isReadOnly:I,"aria-label":ea(es["aria-label"],S),"aria-labelledby":es["aria-labelledby"]||ep,onChange:en}),[C,M,S,D,X,z,x,U,O,V,I,es["aria-label"],es["aria-labelledby"],ep,en]),eg=f(ev),em={isInvalid:U,isRequired:x,validate:el,validationState:j,validationBehavior:Y},{inputProps:ey,isSelected:eb,isDisabled:eE,isReadOnly:eh,isPressed:eT,isInvalid:ew}=h?function(e,t,n){var r,i;let o=f({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}}),{name:a,descriptionId:s,errorMessageId:u,validationBehavior:d}=nl.get(t);d=null!==(r=e.validationBehavior)&&void 0!==r?r:d;let{realtimeValidation:c}=(0,ed.Q3)({...e,value:o.isSelected,name:void 0,validationBehavior:"aria"}),p=(0,l.useRef)(ed.PS),v=()=>{t.setInvalid(e.value,c.isInvalid?c:p.current)};(0,l.useEffect)(v);let g=t.realtimeValidation.isInvalid?t.realtimeValidation:c,m="native"===d?t.displayValidation:g,y=na({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||a,isRequired:null!==(i=e.isRequired)&&void 0!==i?i:t.isRequired,validationBehavior:d,[ed.tL]:{realtimeValidation:g,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){p.current=e,v()}}},o,n);return{...y,inputProps:{...y.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?u:null,s].filter(Boolean).join(" ")||void 0}}}({...ev,...em},v.groupState,ec):na({...ev,...em},eg,ec),eP="invalid"===j||U||ew,eL=!(eE||eh)&&eT,{hoverProps:ek,isHovered:eM}=function(e){let t,n,r,i,{onHoverStart:o,onHoverChange:a,onHoverEnd:s,isDisabled:u}=e,[d,c]=(0,l.useState)(!1),f=(0,l.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,l.useEffect)(w,[]);let{addGlobalListener:p,removeAllGlobalListeners:v}=(t=(0,l.useRef)(new Map),n=(0,l.useCallback)((e,n,r,i)=>{let o=(null==i?void 0:i.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:o,options:i}),e.addEventListener(n,o,i)},[]),r=(0,l.useCallback)((e,n,r,i)=>{var o;let a=(null===(o=t.current.get(r))||void 0===o?void 0:o.fn)||r;e.removeEventListener(n,a,i),t.current.delete(r)},[]),i=(0,l.useCallback)(()=>{t.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]),(0,l.useEffect)(()=>i,[i]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:i}),{hoverProps:g,triggerHoverEnd:m}=(0,l.useMemo)(()=>
1{let e=(e,n)=>{if(f.pointerType=n,u||"touch"===n||f.isHovered||!e.currentTarget.contains(e.target))return;f.isHovered=!0;let r=e.currentTarget;f.target=r,p(y(e.target),"pointerover",e=>{var n,r;f.isHovered&&f.target&&(n=f.target,!((r=e.target)&&n&&n.contains(r)))&&t(e,e.pointerType)},{capture:!0}),o&&o({type:"hoverstart",target:r,pointerType:n}),a&&a(!0),c(!0)},t=(e,t)=>{let n=f.target;f.pointerType="",f.target=null,"touch"!==t&&f.isHovered&&n&&(f.isHovered=!1,v(),s&&s({type:"hoverend",target:n,pointerType:t}),a&&a(!1),c(!1))},n={};return"undefined"!=typeof PointerEvent?(n.onPointerEnter=t=>{b&&"mouse"===t.pointerType||e(t,t.pointerType)},n.onPointerLeave=e=>{!u&&e.currentTarget.contains(e.target)&&t(e,e.pointerType)}):(n.onTouchStart=()=>{f.ignoreEmulatedMouseEvents=!0},n.onMouseEnter=t=>{f.ignoreEmulatedMouseEvents||b||e(t,"mouse"),f.ignoreEmulatedMouseEvents=!1},n.onMouseLeave=e=>{!u&&e.currentTarget.contains(e.target)&&t(e,"mouse")}),{hoverProps:n,triggerHoverEnd:t}},[o,a,s,u,f,p,v]);return(0,l.useEffect)(()=>{u&&m({currentTarget:f.target},f.pointerType)},[u]),{hoverProps:g,isHovered:d}}({isDisabled:ey.disabled}),{focusProps:eS,isFocused:eK,isFocusVisible:eC}=function(e={}){var t,n,r;let{autoFocus:i=!1,isTextInput:o,within:a}=e,s=(0,l.useRef)({isFocused:!1,isFocusVisible:i||Q()}),[u,d]=(0,l.useState)(!1),[c,f]=(0,l.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),p=(0,l.useCallback)(()=>f(s.current.isFocused&&s.current.isFocusVisible),[]),v=(0,l.useCallback)(e=>{s.current.isFocused=e,d(e),p()},[p]);t=e=>{s.current.isFocusVisible=e,p()},n=[],r={isTextInput:o},q(),(0,l.useEffect)(()=>{let e=(e,n)=>{(function(e,t,n){let r=R(null==n?void 0:n.target),i="undefined"!=typeof window?A(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?A(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?A(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?A(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof i&&!$.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof l&&!W[n.key])})(!!(null==r?void 0:r.isTextInput),e,n)&&t(Q())};return G.add(e),()=>{G.delete(e)}},n);let{focusProps:g}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,o=(0,l.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),a=k(o),s=(0,l.useCallback)(e=>{let t=R(e.target),r=t?J(t):J();e.target===e.currentTarget&&r===e.nativeEvent.target&&(n&&n(e),i&&i(!0),a(e))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?o:void 0}}}({isDisabled:a,onFocusChange:v}),{focusWithinProps:m}=function(e){let t,n,r,i,{isDisabled:o,onBlurWithin:a,onFocusWithin:s,onFocusWithinChange:u}=e,d=(0,l.useRef)({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:f}=(t=(0,l.useRef)(new Map),n=(0,l.useCallback)((e,n,r,i)=>{let o=(null==i?void 0:i.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:o,options:i}),e.addEventListener(n,o,i)},[]),r=(0,l.useCallback)((e,n,r,i)=>{var o;let a=(null===(o=t.current.get(r))||void 0===o?void 0:o.fn)||r;e.removeEventListener(n,a,i),t.current.delete(r)},[]),i=(0,l.useCallback)(()=>{t.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]),(0,l.useEffect)(()=>i,[i]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:i}),p=(0,l.useCallback)(e=>{e.currentTarget.contains(e.target)&&d.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(d.current.isFocusWithin=!1,f(),a&&a(e),u&&u(!1))},[a,u,d,f]),v=k(p),g=(0,l.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=R(e.target),n=J(t);if(!d.current.isFocusWithin&&n===e.nativeEvent.target){s&&s(e),u&&u(!0),d.current.isFocusWithin=!0,v(e);let n=e.currentTarget;c(t,"focus",e=>{var r;if(d.current.isFocusWithin&&!((r=e.target)&&n&&n.contains(r))){let r=new L("blur",new t.defaultView.FocusEvent("blur",{relatedTarget:e.target}));r.target=n,r.currentTarget=n,p(r)}},{capture:!0})}},[s,u,v,c,p]);return o?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}
1:{focusWithinProps:{onFocus:g,onBlur:p}}}({isDisabled:!a,onFocusWithinChange:v});return{isFocused:u,isFocusVisible:c,focusProps:a?m:g}}({autoFocus:ey.autoFocus}),ex=(0,l.useMemo)(()=>g({color:H,size:F,radius:N,isInvalid:eP,lineThrough:_,isDisabled:eE,disableAnimation:B}),[H,F,N,eP,_,eE,B]);(0,m.G)(()=>{if(!ec.current)return;let e=!!ec.current.checked;eg.setSelected(e)},[ec.current]);let eI=function(e,t=[]){let n=(0,l.useRef)(e);return(0,m.G)(()=>{n.current=e}),(0,l.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}(ef),eD=(0,l.useCallback)(e=>{if(eh||eE){e.preventDefault();return}null==eI||eI(e)},[eh,eE,eI]),eO=eo(null==Z?void 0:Z.base,et),eF=(0,l.useCallback)(()=>({ref:eu,className:ex.base({class:eO}),"data-disabled":ei(eE),"data-selected":ei(eb||z),"data-invalid":ei(eP),"data-hover":ei(eM),"data-focus":ei(eK),"data-pressed":ei(eL),"data-readonly":ei(ey.readOnly),"data-focus-visible":ei(eC),"data-indeterminate":ei(z),...er(ek,es)}),[ex,eO,eE,eb,z,eP,eM,eK,eL,ey.readOnly,eC,ek,es]),eR=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"aria-hidden":!0,className:eo(ex.wrapper({class:eo(null==Z?void 0:Z.wrapper,null==e?void 0:e.className)}))}},[ex,null==Z?void 0:Z.wrapper]),eA=(0,l.useCallback)(()=>({ref:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>(function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error("Cannot assign value '".concat(t,"' to ref '").concat(e,"'"))}}})(t,e))}}(ec,P),...er(ey,eS),className:ex.hiddenInput({class:null==Z?void 0:Z.hiddenInput}),onChange:ee(ey.onChange,eD)}),[ey,eS,eD,null==Z?void 0:Z.hiddenInput]),eH=(0,l.useCallback)(()=>({id:ep,className:ex.label({class:null==Z?void 0:Z.label})}),[ex,null==Z?void 0:Z.label,eE,eb,eP]),eG=(0,l.useCallback)(()=>({isSelected:eb,isIndeterminate:z,disableAnimation:B,className:ex.icon({class:null==Z?void 0:Z.icon})}),[ex,null==Z?void 0:Z.icon,eb,z,B]);return{Component:T||"label",icon:K,children:S,isSelected:eb,isDisabled:eE,isInvalid:eP,isFocused:eK,isHovered:eM,isFocusVisible:eC,getBaseProps:eF,getWrapperProps:eR,getInputProps:eA,getLabelProps:eH,getIconProps:eG}}({...e,ref:t}),h="function"==typeof o?o(v()):(0,l.cloneElement)(o,v());return(0,r.jsxs)(n,{...s(),children:[(0,r.jsx)("input",{...p()}),(0,r.jsx)("span",{...c(),children:h}),i&&(0,r.jsx)("span",{...E(),children:i})]})});nd.displayName="HeroUI.Checkbox";var nc=nd}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.