PageSourceSearch

https://www.magicinsights.ai/_next/static/chunks/57688b149eb5b68d.js

js magicinsights.ai collected 2026-10-05 14:27:28 UTC 69,622 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55838,(e,t,n)=>{"use strict";var r=e.r(71645),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,l=r.useLayoutEffect,a=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return l(function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})},[e,n,t]),s(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),a(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},32208,(e,t,n)=>{"use strict";t.exports=e.r(55838)},52822,(e,t,n)=>{"use strict";var r=e.r(71645),o=e.r(32208),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,l=r.useRef,a=r.useEffect,u=r.useMemo,c=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=s(e,(d=u(function(){function e(e){if(!a){if(a=!0,s=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,i(s,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(s=e,t):(s=e,l=n)}var s,l,a=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,o]))[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},30224,(e,t,n)=>{"use strict";t.exports=e.r(52822)},77329,e=>{"use strict";let t,n,r;var o,i,s,l,a,u,c=e.i(43476),d=e.i(71645),f=e.i(75254);let p=(0,f.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),g=(0,f.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var h=e.i(31412);function m(){return"u">typeof window}function v(e){return y(e)?(e.nodeName||"").toLowerCase():"#document"}function b(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function y(e){return!!m()&&(e instanceof Node||e instanceof b(e).Node)}function x(e){return!!m()&&(e instanceof Element||e instanceof b(e).Element)}function S(e){return!!m()&&(e instanceof HTMLElement||e instanceof b(e).HTMLElement)}function w(e){return!(!m()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof b(e).ShadowRoot)}function E(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=C(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function k(e){return/^(html|body|#document)$/.test(v(e))}function C(e){return b(e).getComputedStyle(e)}e.i(47167);let R={...d},O={};function T(e,t){let n=d.useRef(O);return n.current===O&&(n.current=e(t)),n}let P=R.useInsertionEffect,I=P&&P!==R.useLayoutEffect?P:e=>e();function A(e){let t=T(j).current;return t.next=e,I(t.effect),t.trampoline}function j(){let e={next:void 0,callback:D,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function D(){}let M="u">typeof document?d.useLayoutEffect:()=>{};function N(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}let B={};function W(e,t,n,r,o){if(!n&&!r&&!o&&!e)return z(t);let i=z(e);return t&&(i=H(i,t)),n&&(i=H(i,n)),r&&(i=H(i,r)),o&&(i=H(i,o)),i}function z(e){return $(e)?{...L(e,B)}:function(e){let t={...e};for(let e in t){let n=t[e];U(e,n)&&(t[e]=q(n))}return t}(e)}function H(e,t){return $(t)?L(t,e):function(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case"style":e[n]=N(e.style,r);break;case"className":e[n]=_(e.className,r);break;default:U(n,r)?e[n]=function(e,t){return t?e?(...n)=>{let r=n[0];if(F(r)){V(r);let o=t(...n);return r.baseUIHandlerPrevented||e?.(...n),o}let o=t(...n);return e?.(...n),o}:q(t):e}(e[n],r):e[n]=r}}return e}(e,t)}function U(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function $(e){return"function"==typeof e}function L(e,t){return $(e)?e(t):e??B}function q(e){return e?(...t)=>{let n=t[0];return F(n)&&V(n),e(...t)}:e}function V(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function _(e,t){return t?e?t+" "+e:t:e}function F(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}let Y=function(e,...t){let n=new URL("https://base-ui.com/production-error");
1return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`},K=d.createContext(void 0);function X(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0,composite:i}=e,s=d.useRef(null),l=function(e=!1){let t=d.useContext(K);if(void 0===t&&!e)throw Error(Y(16));return t}(!0),a=i??void 0!==l,{props:u}=function(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:i}=e,s=r&&!1!==t,l=r&&!1===t;return{props:d.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=o,!i&&n&&(e.tabIndex=t?o:-1)),(i&&(t||s)||!i&&n)&&(e["aria-disabled"]=n),i&&(!t||l)&&(e.disabled=n),e},[r,n,t,s,l,i,o])}}({focusableWhenDisabled:n,disabled:t,composite:a,tabIndex:r,isNativeButton:o}),c=d.useCallback(()=>{let e=s.current;G(e)&&a&&t&&void 0===u.disabled&&e.disabled&&(e.disabled=!1)},[t,u.disabled,a]);return M(c,[c]),{getButtonProps:d.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:i,onKeyDown:s,onPointerDown:l,...c}=e;return W({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){var r;if(t||(V(e),s?.(e),e.baseUIHandlerPrevented))return;let i=e.target===e.currentTarget,l=e.currentTarget,u=G(l),c=!o&&(r=l,!!(r?.tagName==="A"&&r?.href)),d=i&&(o?u:!c),f="Enter"===e.key,p=" "===e.key,g=l.getAttribute("role"),h=g?.startsWith("menuitem")||"option"===g||"gridcell"===g;if(i&&a&&p){if(e.defaultPrevented&&h)return;e.preventDefault(),c||o&&u?(l.click(),e.preventBaseUIHandler()):d&&(n?.(e),e.preventBaseUIHandler());return}d&&(!o&&(p||f)&&e.preventDefault(),!o&&f&&n?.(e))},onKeyUp(e){t||((V(e),i?.(e),e.target===e.currentTarget&&o&&a&&G(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||o||a||" "!==e.key||n?.(e)))},onPointerDown(e){t?e.preventDefault():l?.(e)}},o?{type:"button"}:{role:"button"},u,c)},[t,u,a,o]),buttonRef:A(e=>{s.current=e,c()})}}function G(e){return S(e)&&"BUTTON"===e.tagName}function J(e,t,n,r){var o,i,s,l,a;let u=T(Q).current;return o=u,i=e,s=t,l=n,a=r,(o.refs[0]!==i||o.refs[1]!==s||o.refs[2]!==l||o.refs[3]!==a)&&Z(u,[e,t,n,r]),u.callback}function Q(){return{callback:null,cleanup:null,refs:[]}}function Z(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let o=t[e];if(null!=o)switch(typeof o){case"function":{let t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}let ee=parseInt(d.version,10);function et(e){if(!d.isValidElement(e))return null;let t=e.props;return(ee>=19?t?.ref:e.ref)??null}function en(){}Object.freeze([]);let er=Object.freeze({});function eo(e,t,n={}){let r=t.render,o=function(e,t={}){var n,r,o;let{className:i,style:s,render:l}=e,{state:a=er,ref:u,props:c,stateAttributesMapping:d,enabled:f=!0}=t,p=f?"function"==typeof i?i(a):i:void 0,g=f?"function"==typeof s?s(a):s:void 0,h=f?function(e,t){let n={};for(let r in e){let o=e[r];if(t?.hasOwnProperty(r)){let e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(a,d):er,m=f&&c?function(e){if(Array.isArray(e)){if(0===e.length)return B;if(1===e.length)return z(e[0]);let t=z(e[0]);for(let n=1;n<e.length;n+=1)t=H(t,e[n]);return t}return W(void 0,e)}(c):void 0,v=f?N(h,m)??{}:er;if("u">typeof document)if(f)if(Array.isArray(u)){let e;n=[v.ref,et(l),...u],r=e=T(Q).current,o=n,(r.refs.length!==o.length||r.refs.some((e,t)=>e!==o[t]))&&Z(e,n),v.ref=e.callback}else v.ref=J(v.ref,et(l),u);else J(null,null);return f?(void 0!==p&&(v.className=_(v.className,p)),void 0!==g&&(v.style=N(v.style,g)),v):er}(t,n);return!1===n.enabled?null:function(e,t,n,r){if(t){if("function"==typeof t)return t(n,r);let e=W(n,t.props);e.ref=n.ref;let o=t;return o?.$$typeof===ei&&(o=d.Children.toArray(t)[0]),d.cloneElement(o,e)}if(e&&"string"==typeof e){var o,i;return o=e,i=n,"button"===o?(0,d.createElement)("button",{type:"button",...i,key:i.key}):"img"===o?(0,d.createElement)("img",{alt:"",...i,key:i.key}):d.createElement(o,i)}throw Error(Y(8))}(e,r,o,n.state??er)}let ei=Symbol.for("react.lazy"),es=d.forwardRef(function(e,t){let{render:n,className:r,disabled:o=!1,focusableWhenDisabled:i=!1,nativeButton:s=!0,style:l,...a}=e,{getButtonProps:u,buttonRef:c}=X({disabled:o,focusableWhenDisabled:i,native:s});return eo("button",e,{state:{disabled:o},ref:[t,c],props:[a,u]})});var el=e.i(7670);let ea=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,eu=el.clsx;var ec=e.i(47163);let ed=(t="group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-
1px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n={variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var r;if((null==n?void 0:n.variants)==null)return eu(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:o,defaultVariants:i}=n,s=Object.keys(o).map(t=>{let n=null==e?void 0:e[t],r=null==i?void 0:i[t];if(null===n)return null;let s=ea(n)||ea(r);return o[t][s]}),l=e&&Object.entries(e).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return eu(t,s,null==n||null==(r=n.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...l}[t]):({...i,...l})[t]===n})?[...e,n,r]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)});function ef({className:e,variant:t="default",size:n="default",...r}){return(0,c.jsx)(es,{"data-slot":"button",className:(0,ec.cn)(ed({variant:t,size:n,className:e})),...r})}e.s([],14651),e.i(14651);let ep=d.createContext(!1),eg=d.createContext(void 0);function eh(e){let t=d.useContext(eg);if(!1===e&&void 0===t)throw Error(Y(27));return t}let em=((o={}).startingStyle="data-starting-style",o.endingStyle="data-ending-style",o),ev={[em.startingStyle]:""},eb={[em.endingStyle]:""},ey={transitionStatus:e=>"starting"===e?ev:"ending"===e?eb:null},ex=((i={}).open="data-open",i.closed="data-closed",i[i.startingStyle=em.startingStyle]="startingStyle",i[i.endingStyle=em.endingStyle]="endingStyle",i.anchorHidden="data-anchor-hidden",i.side="data-side",i.align="data-align",i),eS=((s={}).popupOpen="data-popup-open",s.pressed="data-pressed",s),ew={[eS.popupOpen]:""};eS.popupOpen,eS.pressed;let eE={[ex.open]:""},ek={[ex.closed]:""},eC={[ex.anchorHidden]:""},eR={open:e=>e?ew:null},eO={open:e=>e?eE:ek,anchorHidden:e=>e?eC:null},eT={...eO,...ey},eP=d.forwardRef(function(e,t){let{render:n,className:r,style:o,forceRender:i=!1,...s}=e,{store:l}=eh(),a=l.useState("open"),u=l.useState("nested"),c=l.useState("mounted");return eo("div",e,{state:{open:a,transitionStatus:l.useState("transitionStatus")},ref:[l.context.backdropRef,t],stateAttributesMapping:eT,props:[{role:"presentation",hidden:!c,style:{userSelect:"none",WebkitUserSelect:"none"}},s],enabled:i||!u})});function eI(e,t,n,r){let o=!1,i=!1,s=r??er;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},trigger:n,...s}}e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","initial",0,"initial","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","
1inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","missing",0,"missing","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","wheel",0,"wheel","windowResize",0,"window-resize"],16856);var eA=e.i(16856),eA=eA;let ej=d.forwardRef(function(e,t){let{render:n,className:r,style:o,disabled:i=!1,nativeButton:s=!0,...l}=e,{store:a}=eh(),u=a.useState("open"),{getButtonProps:c,buttonRef:d}=X({disabled:i,native:s});return eo("button",e,{state:{disabled:i},ref:[t,d],props:[{onClick:function(e){u&&a.setOpen(!1,eI(eA.closePress,e.nativeEvent))}},l,c]})}),eD=0,eM=R.useId;function eN(e,t){if(void 0!==eM){let n=eM();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){let[n,r]=d.useState(e),o=e||n;return d.useEffect(()=>{null==n&&(eD+=1,r(`${t}-${eD}`))},[n,t]),o}(e,t)}function eB(e){return eN(e,"base-ui")}let eW=d.forwardRef(function(e,t){let{render:n,className:r,style:o,id:i,...s}=e,{store:l}=eh(),a=eB(i);return l.useSyncedValueWithCleanup("descriptionElementId",a),eo("p",e,{ref:t,props:[{id:a},s]})});function ez(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function eH(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function eU(e){let t=T(e$,e).current;return t.next=e,M(t.effect),t}function e$(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}let eL=[];function eq(e){d.useEffect(e,eL)}class eV{static create(){return new eV}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function e_(){let e=T(eV.create).current;return eq(e.disposeEffect),e}e.s([],64949),e.i(64949);let{userAgent:eF,platform:eY,maxTouchPoints:eK}="u"<typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},eX=eF.toLowerCase(),eG=eY.toLowerCase(),eJ=/^i(os$|p)/.test(eG)||"macintel"===eG&&eK>1,eQ="android",eZ=eG===eQ||eX.includes(eQ),e0=!eJ&&eG.startsWith("mac"),e1=eG.startsWith("win"),e2=!eZ&&/^(linux|chrome os)/.test(eG),e5=e0||eJ;e.s(["android",0,eZ,"apple",0,e5,"ios",0,eJ,"linux",0,e2,"mac",0,e0,"windows",0,e1],3720);var e3=e.i(3720);let e4="u">typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none"),e6=!e4&&eX.includes("firefox"),e7=!e4&&eX.includes("chrom");e.s(["blink",0,e7,"gecko",0,e6,"webkit",0,e4],79850);var e9=e.i(79850);e.s(["voiceOver",0,e5],99170);var e8=e.i(99170);let te=/jsdom|happydom/.test(eX);e.s(["jsdom",0,te],36174);var tt=e.i(36174);e.s(["engine",0,e9,"env",0,tt,"os",0,e3,"screenReader",0,e8],79214);var tn=e.i(79214),tn=tn;let tr=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class to{static create(){return new to}static request(e){return tr.request(e)}static cancel(e){return tr.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=tr.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(tr.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}function ti(){let e=T(to.create).current;return eq(e.disposeEffect),e}function ts(e){return e?.ownerDocument||document}var tn=tn;let tl={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},ta={...tl,position:"fixed",top:0,left:0};({...tl,position:"absolute"});let tu=d.forwardRef(function(e,t){let[n,r]=d.useState();return M(()=>{tn.screenReader.voiceOver&&tn.engine.webkit&&r("button")},[]),(0,c.jsx)("span",{...e,ref:t,style:ta,"aria-hidden":!n||void 0,tabIndex:0,role:n,"data-base-ui-focus-guard":""})});function tc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function td(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;
1if(n&&w(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function tf(e){return"composedPath"in e?e.composedPath()[0]:e.target}let tp="data-base-ui-focusable";function tg(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function th(e){return S(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function tm(e){return!!e&&"combobox"===e.getAttribute("role")&&th(e)}function tv(e){return e?e.hasAttribute(tp)?e:e.querySelector(`[${tp}]`)||e:null}var tn=tn;function tb(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function ty(e,t=e?C(e):null){var n;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(n=t).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}function tx(e){for(let t of Array.from(e.children))if("summary"===v(t))return t;return null}function tS(e){let t=e?v(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===v(e.parentElement)&&tx(e.parentElement)===e)&&("details"!==t||null==tx(e))&&("input"!==t||"hidden"!==e.type)}function tw(e){if(!tS(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return w(n)?n.host:null}(t)){let n=t!==e,r="slot"===v(t);if(t.hasAttribute("inert")||n&&"details"===v(t)&&!t.open&&!function(e,t){let n=tx(t);return!!n&&(e===n||td(n,e))}(e,t)||t.hasAttribute("hidden")||!r&&!function(e,t){let n=C(e);return t?"none"!==n.display:ty(e,n)}(t,n))return!1}return!0}function tE(e){let t=e.tabIndex;if(t<0){let t=v(e);if("details"===t||"audio"===t||"video"===t||S(e)&&e.isContentEditable)return 0}return t}function tk(e){return"input"!==v(e)?null:"radio"===e.type&&""!==e.name?e:null}function tC(e){if(S(e)&&"slot"===v(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return S(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function tR(e){return tw(e)&&tE(e)>=0}function tO(e){let t=[];return!function e(t,n){tC(t).forEach(t=>{tS(t)&&n.push(t),e(t,n)})}(e,t),t.filter(tw)}function tT(e){let t=tO(e);return t.filter(e=>tE(e)>=0&&function(e,t){let n=tk(e);if(!n)return!0;let r=t.find(e=>{let t=tk(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=tk(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function tP(e,t){let n=tT(e),r=n.length;if(0===r)return;let o=tc(ts(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function tI(e){return tP(ts(e).body,1)||e}function tA(e){return tP(ts(e).body,-1)||e}function tj(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!td(n,r)}function tD(e){let t=[];!function e(t,n,r){tC(t).forEach(t=>{S(t)&&t.matches(n)&&r.push(t),e(t,n,r)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}function tM(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...tM(e,t.id,n)])}function tN(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}var eA=eA;function tB(e){return`data-base-ui-${e}`}let tW=0;function tz(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:o}=t;function i(){(!o||o())&&e?.focus({preventScroll:n})}if(cancelAnimationFrame(tW),r)return i(),en;let s=requestAnimationFrame(i);return tW=s,()=>{tW===s&&(cancelAnimationFrame(s),tW=0)}}let tH={inert:new WeakMap,"aria-hidden":new WeakMap},tU="data-base-ui-inert",t$={inert:new WeakSet,"aria-hidden":new WeakSet},tL=new WeakMap,tq=0,tV=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?w(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),t_=e=>{let t=new Set;
1return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},tF=(e,t,n)=>{let r=[],o=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==v(e)&&(t.has(e)?o(e):r.push(e))})};return o(e),r};function tY(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:o=!0}=t,i=ts(e[0]).body;return function(e,t,n,r,{mark:o=!0}){let i=null;r?i="inert":n&&(i="aria-hidden");let s=null,l=null,a=tV(t,e),u=o?tF(t,t_(a),new Set(a)):[],c=[],d=[];if(i){let e=tH[i],n=t$[i];l=n,s=e;let r=tV(t,Array.from(t.querySelectorAll("[aria-live]"))),o=a.concat(r);tF(t,t_(o),new Set(o)).forEach(t=>{let r=t.getAttribute(i),o=null!==r&&"false"!==r,s=(e.get(t)||0)+1;e.set(t,s),c.push(t),1===s&&o&&n.add(t),o||t.setAttribute(i,"inert"===i?"":"true")})}return o&&u.forEach(e=>{let t=(tL.get(e)||0)+1;tL.set(e,t),d.push(e),1===t&&e.setAttribute(tU,"")}),tq+=1,()=>{s&&c.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!l?.has(e)&&i&&e.removeAttribute(i),l?.delete(e))}),o&&d.forEach(e=>{let t=(tL.get(e)||0)-1;tL.set(e,t),t||e.removeAttribute(tU)}),(tq-=1)||(tH.inert=new WeakMap,tH["aria-hidden"]=new WeakMap,t$.inert=new WeakSet,t$["aria-hidden"]=new WeakSet,tL=new WeakMap)}}(e,i,n,r,{mark:o})}var tK=e.i(74080),eA=eA;let tX="data-base-ui-click-trigger",tG={clipPath:"inset(50%)",position:"fixed",top:0,left:0},tJ=d.createContext(null),tQ=tB("portal"),tZ=d.forwardRef(function(e,t){let{render:n,className:r,style:o,children:i,container:s,renderGuards:l,...a}=e,{portalNode:u,portalSubtree:f}=function(e={}){let{ref:t,container:n,componentProps:r=er,elementProps:o}=e,i=eN(),s=d.useContext(tJ),l=s?.portalNode,[a,u]=d.useState(null),[c,f]=d.useState(null),p=A(e=>{null!==e&&f(e)}),g=d.useRef(null);M(()=>{if(null===n){g.current&&(g.current=null,f(null),u(null));return}if(null==i)return;let e=(n&&(y(n)?n:n.current))??l??document.body;if(null==e){g.current&&(g.current=null,f(null),u(null));return}g.current!==e&&(g.current=e,f(null),u(e))},[n,l,i]);let h=eo("div",r,{ref:[t,p],props:[{id:i,[tQ]:""},o]});return{portalNode:c,portalSubtree:a&&h?tK.createPortal(h,a):null}}({container:s,ref:t,componentProps:e,elementProps:a}),p=d.useRef(null),g=d.useRef(null),h=d.useRef(null),m=d.useRef(null),[v,b]=d.useState(null),x=d.useRef(!1),S=v?.modal,w=v?.open,E="boolean"==typeof l?l:!!v&&!v.modal&&v.open&&!!u;d.useEffect(()=>{if(u&&!S)return eH(ez(u,"focusin",e,!0),ez(u,"focusout",e,!0));function e(e){u&&e.relatedTarget&&tj(e)&&("focusin"===e.type?x.current&&(tD(u),x.current=!1):(tT(u).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),x.current=!0))}},[u,S]),M(()=>{u&&!0===w&&x.current&&(tD(u),x.current=!1)},[w,u]);let k=d.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:g,beforeInsideRef:h,afterInsideRef:m,portalNode:u,setFocusManagerState:b}),[u]);return(0,c.jsxs)(d.Fragment,{children:[f,(0,c.jsxs)(tJ.Provider,{value:k,children:[E&&u&&(0,c.jsx)(tu,{"data-type":"outside",ref:p,onFocus:e=>{if(tj(e,u))h.current?.focus();else{let e=tA(v?v.domReference:null);e?.focus()}}}),E&&u&&(0,c.jsx)("span",{"aria-owns":u.id,style:tG}),u&&tK.createPortal(i,u),E&&u&&(0,c.jsx)(tu,{"data-type":"outside",ref:g,onFocus:e=>{if(tj(e,u))m.current?.focus();else{let t=tI(v?v.domReference:null);t?.focus(),v?.closeOnFocusOut&&v?.onOpenChange(!1,eI(eA.focusOut,e.nativeEvent))}}})]})]})}),t0=d.createContext(null),t1=d.createContext(null),t2=e=>{let t=d.useContext(t1);return e??t};function t5(e){return null==e?e:"current"in e?e.current:e}let t3=[];function t4(){t3=t3.filter(e=>e.deref()?.isConnected)}function t6(e){t4(),e&&"body"!==v(e)&&(t3.push(new WeakRef(e)),t3.length>20&&(t3=t3.slice(-20)))}function t7(){return t4(),t3[t3.length-1]?.deref()}function t9(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=tO(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return tR(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),n=e.getAttribute("tabindex");0===t.length?"0"!==n&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==n||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}
1function t8(e){let{context:t,children:n,disabled:r=!1,initialFocus:o=!0,returnFocus:i=!0,restoreFocus:s=!1,modal:l=!0,closeOnFocusOut:a=!0,openInteractionType:u="",nextFocusableElement:f,previousFocusableElement:p,beforeContentFocusGuardRef:g,externalTree:h,getInsideElements:m}=e,y="rootStore"in t?t.rootStore:t,x=y.useState("open"),w=y.useState("domReferenceElement"),E=y.useState("floatingElement"),{events:k,dataRef:C}=y.context,R=A(()=>C.current.floatingContext?.nodeId),O=tm(w)&&!1===o,T=eU(o),P=eU(i),I=eU(u),j=eU(x),D=t2(h),N=d.useContext(tJ),B=d.useRef(!1),W=d.useRef(!1),z=d.useRef(!1),H=d.useRef(null),U=d.useRef(""),$=d.useRef(""),L=d.useRef(null),q=d.useRef(null),V=J(L,g,N?.beforeInsideRef),_=J(q,N?.afterInsideRef),F=e_(),Y=e_(),K=ti(),X=null!=N,G=tv(E),Q=A((e=G)=>e?tT(e):[]),Z=A(()=>m?.().filter(e=>null!=e)??[]);d.useEffect(()=>{if(!r&&l)return ez(ts(G),"keydown",function(e){"Tab"===e.key&&td(G,tc(ts(G)))&&0===Q().length&&!O&&(e.preventDefault(),e.stopPropagation())})},[r,G,l,O,Q]),d.useEffect(()=>{if(r||!x)return;let e=ts(G);function t(){z.current=!1}return eH(ez(e,"pointerdown",function(e){let t=tf(e),n=Z();z.current=!(td(E,t)||td(w,t)||td(N?.portalNode,t)||n.some(e=>e===t||td(e,t))),$.current=e.pointerType||"keyboard",t?.closest(`[${tX}]`)&&(W.current=!0,Y.start(0,()=>{W.current=!1}))},!0),ez(e,"pointerup",t,!0),ez(e,"pointercancel",t,!0),ez(e,"keydown",function(){$.current="keyboard"},!0),t)},[r,E,w,G,x,N,Y,Z]),d.useEffect(()=>{if(r||!a)return;let e=ts(G);function t(t){let n=t.relatedTarget,r=t.currentTarget,o=tf(t);l&&null==n&&null!=o&&td(E,o)&&t6(o),queueMicrotask(()=>{let i=R(),a=y.context.triggerElements,u=Z(),c=n?.hasAttribute(tB("focus-guard"))&&[L.current,q.current,N?.beforeInsideRef.current,N?.afterInsideRef.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,t5(p),t5(f)].includes(n),d=!(td(w,n)||td(E,n)||td(n,E)||td(N?.portalNode,n)||u.some(e=>e===n||td(e,n))||null!=n&&a.hasElement(n)||a.hasMatchingElement(e=>td(e,n))||c||D&&(tM(D.nodesRef.current,i).find(e=>td(e.context?.elements.floating,n)||td(e.context?.elements.domReference,n))||tN(D.nodesRef.current,i).find(e=>[e.context?.elements.floating,tv(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===w&&G&&t9(G),s&&r!==w&&!ty(o)&&tc(e)===e.body){if(S(G)&&(G.focus(),"popup"===s))return void K.request(()=>{G.focus()});let e=Q(),t=H.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||G;S(n)&&n.focus()}if(C.current.insideReactTree){C.current.insideReactTree=!1;return}(O||!l)&&n&&d&&!W.current&&(O||n!==t7())&&(B.current=!0,y.setOpen(!1,eI(eA.focusOut,t)))})}let n=S(w)?w:null;if(E||n)return eH(n&&ez(n,"focusout",t),n&&ez(n,"pointerdown",function(){W.current=!0,Y.start(0,()=>{W.current=!1})}),E&&ez(E,"focusin",function(e){let t=tf(e);tR(t)&&(H.current=t)}),E&&ez(E,"focusout",t),E&&N&&ez(E,"focusout",function(){z.current||(C.current.insideReactTree=!0,F.start(0,()=>{C.current.insideReactTree=!1}))},!0))},[r,w,E,G,l,D,N,y,a,s,Q,O,R,C,F,Y,K,f,p,Z]),d.useEffect(()=>{if(r||!E||!x)return;let e=Array.from(N?.portalNode?.querySelectorAll(`[${tB("portal")}]`)||[]),t=D?tN(D.nodesRef.current,R()):[],n=t.find(e=>tm(e.context?.elements.domReference||null))?.context?.elements.domReference,o=tY([E,...e,L.current,q.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,...Z(),n,t5(p),t5(f),O?w:null].filter(e=>null!=e),{ariaHidden:l||O,mark:!1}),i=tY([E,...e].filter(e=>null!=e));return()=>{i(),o()}},[x,r,w,E,l,N,O,D,R,f,p,Z]),M(()=>{if(!x||r||!S(G))return;let e=ts(G),t=tc(e);queueMicrotask(()=>{let n,r=T.current,o="function"==typeof r?r(I.current||""):r;if(void 0===o||!1===o||td(G,t))return;let i=null,s=()=>(null==i&&(i=Q(G)),i[0]||G);n=(n=!0===o||null===o?s():t5(o))||s();let l=td(G,tc(e));tz(n,{preventScroll:n===G,shouldFocus(){if(!j.current)return!1;if(l)return!0;let t=tc(e);return!(t!==n&&td(G,t))}})})},[r,x,G,Q,T,I,j]),M(()=>{if(r||!G)return;let e=ts(G),t=tc(e),n=null==I.current;function o(e){var t,n,r,o;let i;if(e.open||(t=e.nativeEvent,n=$.current,i=b(tf(t)),U.current=t instanceof i.KeyboardEvent?"keyboard":t instanceof i.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"ke
1yboard":"touches"in t?"touch":t instanceof i.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===eA.triggerHover&&"mouseleave"===e.nativeEvent.type&&(B.current=!0),e.reason===eA.outsidePress)if(e.nested)B.current=!1;else if((""===(r=e.nativeEvent).pointerType&&r.isTrusted?0:tn.os.android&&r.pointerType?"click"!==r.type||1!==r.buttons:0!==r.detail||r.pointerType)&&(o=e.nativeEvent,tn.env.jsdom?1:(tn.os.android||0!==o.width||0!==o.height)&&(!tn.os.android||1!==o.width||1!==o.height||0!==o.pressure||0!==o.detail||"mouse"!==o.pointerType)&&(!(o.width<1)||!(o.height<1)||0!==o.pressure||0!==o.detail||"touch"!==o.pointerType))){let e=!1;ts(G).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?B.current=!1:B.current=!0}else B.current=!1}return t6(t),k.on("openchange",o),()=>{k.off("openchange",o);let r=tc(e),i=Z(),s=td(E,r)||i.some(e=>e===r||td(e,r))||D&&tM(D.nodesRef.current,R(),!1).some(e=>td(e.context?.elements.floating,r)),l=P.current,a=function(){let e=P.current,r="function"==typeof e?e(U.current):e;if(void 0===r||!1===r)return null;null===r&&(r=!0);let o=w?.isConnected?w:null,i=t?.isConnected&&"body"!==v(t)?t:null,s=n?i||o:o||i;return(s||(s=t7()||null),"boolean"==typeof r)?s:t5(r)||s||null}();queueMicrotask(()=>{let t=a?tR(a)?a:tT(a)[0]||a:null;l&&!B.current&&S(t)&&("boolean"!=typeof l||t===r||r===e.body||s)&&t.focus({preventScroll:!0}),B.current=!1})}},[r,E,G,P,I,k,D,w,R,Z]),M(()=>{if(!tn.engine.webkit||x||!E)return;let e=tc(ts(E));S(e)&&th(e)&&td(E,e)&&e.blur()},[x,E]),M(()=>{if(!r&&N)return N.setFocusManagerState({modal:l,closeOnFocusOut:a,open:x,onOpenChange:y.setOpen,domReference:w}),()=>{N.setFocusManagerState(null)}},[r,N,l,x,y,a,w]),M(()=>{if(!r&&G)return t9(G),()=>{queueMicrotask(t4)}},[r,G]);let ee=!r&&(!l||!O)&&(X||l);return(0,c.jsxs)(d.Fragment,{children:[ee&&(0,c.jsx)(tu,{"data-type":"inside",ref:V,onFocus:e=>{if(l){let e=Q();tz(e[e.length-1])}else if(N?.portalNode)if(B.current=!1,tj(e,N.portalNode)){let e=tI(w);e?.focus()}else t5(p??N.beforeOutsideRef)?.focus()}}),n,ee&&(0,c.jsx)(tu,{"data-type":"inside",ref:_,onFocus:e=>{if(l)tz(Q()[0]);else if(N?.portalNode)if(a&&(B.current=!0),tj(e,N.portalNode)){let e=tA(w);e?.focus()}else t5(f??N.afterOutsideRef)?.focus()}})]})}let ne=((l={}).nestedDialogs="--nested-dialogs",l),nt=((a={})[a.open=ex.open]="open",a[a.closed=ex.closed]="closed",a[a.startingStyle=ex.startingStyle]="startingStyle",a[a.endingStyle=ex.endingStyle]="endingStyle",a.nested="data-nested",a.nestedDialogOpen="data-nested-dialog-open",a),nn=d.createContext(void 0);function nr(){let e=d.useContext(nn);if(void 0===e)throw Error(Y(26));return e}function no(e){let{enabled:t=!0,open:n,ref:r,onComplete:o}=e,i=A(o),s=function(e,t=!1,n=!0){let r=ti();return A((o,i=null)=>{r.cancel();let s=t5(e);if(null==s)return;let l=()=>{tK.flushSync(o)};if("function"!=typeof s.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void o();function a(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||l()}).catch(()=>{if(n){i?.aborted||l();return}let e=s.getAnimations();!i?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&a()})}if(t){let e=em.startingStyle;if(!s.hasAttribute(e))return void r.request(a);let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),a())});return t.observe(s,{attributes:!0,attributeFilter:[e]}),void i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}r.request(a)})}(r,n,!1);d.useEffect(()=>{if(!t)return;let e=new AbortController;return s(i,e.signal),()=>{e.abort()}},[t,n,i,s])}let ni=new Set([...new Set([...new Set(["ArrowLeft","ArrowRight"]),...new Set(["ArrowUp","ArrowDown"])]),"Home","End"]),ns=(e,t,n,r,o,i,...s)=>{let l;if(s.length>0)throw Error(Y(1));if(e&&t&&n&&r&&o&&i)l=(s,l,a,u)=>i(e(s,l,a,u),t(s,l,a,u),n(s,l,a,u),r(s,l,a,u),o(s,l,a,u),l,a,u);else if(e&&t&&n&&r&&o)l=(i,s,l,a)=>o(e(i,s,l,a),t(i,s,l,a),n(i,s,l,a),r(i,s,l,a),s,l,a);else if(e&&t&&n&&r)l=(o,i,s,l)=>r(e(o,i,s,l),t(o,i,s,l),n(o,i,s,l),i,s,l);else if(e&&t&&n)l=(r,o,i,s)=>n(e(r,o,i,s),t(r,o,i,s),o,i,s);else if(e&&t)l=(n,r,o,i)=>t(e(n,r,o,i),r,o,i);else if(e)l=e;else throw Error("Missing arguments");return l};var nl=e.i(32208),na=e.i(30224);let nu=ee>=19?function(e,t,n,o,i){let s;if(!r){let r;return r=d.useCallback(()=>t(e.getSnapshot(),n,o,i),[e,t,n,o,i]),(0,nl.useSyncExternalStore)(e.subscribe,r,r)}let l=r.syncIndex;return r.syncIndex+=1,r.didInitialize?(s=r.syncHooks[l]).store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,o)&&Object.is(s.a3,i)||(s.store!==e&&(r.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=o,s.a3=i,s.value=t(e.getSnapshot(),n,o,i)):(s={store:e,selector:t,a1:n,a2:o,a3:i,value:t(e.getSnapshot(),n,o,i)},r.syncHooks.push(s)),s.value}:function(e,t,n,r,o){return(0,na.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,o))};[].push({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],o=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,o)||(t=!0,r.value=o)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,nl.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});
1class nc{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return nu(this,e,t,n,r)}}class nd extends nc{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){d.useDebugValue(e);let n=this;M(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;M(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;M(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){d.useDebugValue(e);let n=this,r=void 0!==t;M(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,r){return d.useDebugValue(e),nu(this,this.selectors[e],t,n,r)}useContextCallback(e,t){d.useDebugValue(e);let n=A(t??en);this.context[e]=n}useStateSetter(e){let t=d.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let o=n(e);if(!Object.is(r,o)){let e=r;r=o,t(o,e,this)}})}}let nf={open:ns(e=>e.open),transitionStatus:ns(e=>e.transitionStatus),domReferenceElement:ns(e=>e.domReferenceElement),referenceElement:ns(e=>e.positionReference??e.referenceElement),floatingElement:ns(e=>e.floatingElement),floatingId:ns(e=>e.floatingId)};class np extends nd{constructor(e){const{syncOnly:t,nested:n,onOpenChange:r,triggerElements:o,...i}=e;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:function(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}(),nested:n,triggerElements:o},nf),this.syncOnly=t}syncOpenEvent=(e,t)=>{let n;e&&this.state.open&&(null==t||"click"!==(n=t.type)&&"mousedown"!==n&&"keydown"!==n&&"keyup"!==n)||(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>
1{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}var eA=eA;let ng={tabIndex:-1,[tp]:""},nh={...eO,...ey,nestedDialogOpen:e=>e?{[nt.nestedDialogOpen]:""}:null},nm=d.forwardRef(function(e,t){var n;let{render:r,className:o,style:i,finalFocus:s,initialFocus:l,...a}=e,{store:u}=eh(),d=u.useState("descriptionElementId"),f=u.useState("disablePointerDismissal"),p=u.useState("floatingRootContext"),g=u.useState("popupProps"),h=u.useState("modal"),m=u.useState("mounted"),v=u.useState("nested"),b=u.useState("nestedOpenDialogCount"),y=u.useState("open"),x=u.useState("openMethod"),S=u.useState("titleElementId"),w=u.useState("transitionStatus"),E=u.useState("role"),k=p.useState("floatingId"),C=a.id??k;nr(),no({open:y,ref:u.context.popupRef,onComplete(){y&&u.context.onOpenChangeComplete?.(!0)}});let R=void 0===l?(n=u.context.popupRef,e=>"touch"!==e||n.current):l,O=u.useStateSetter("popupElement"),T=eo("div",e,{state:{open:y,nested:v,transitionStatus:w,nestedDialogOpen:b>0},props:[g,{id:C,"aria-labelledby":S??void 0,"aria-describedby":d??void 0,role:E,...ng,hidden:!m,onKeyDown(e){ni.has(e.key)&&e.stopPropagation()},style:{[ne.nestedDialogs]:b}},a],ref:[t,u.context.popupRef,O],stateAttributesMapping:nh});return(0,c.jsx)(t8,{context:p,openInteractionType:x,disabled:!m,closeOnFocusOut:!f,initialFocus:R,returnFocus:s,modal:!1!==h,restoreFocus:"popup",children:T})}),nv=d.forwardRef(function(e,t){let n,{cutout:r,...o}=e;if(r){let e=r.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,c.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})}),nb=d.forwardRef(function(e,t){var n;let{keepMounted:r=!1,...o}=e,{store:i}=eh(),s=i.useState("mounted"),l=i.useState("modal"),a=i.useState("open");return s||r?(0,c.jsx)(nn.Provider,{value:r,children:(0,c.jsxs)(tZ,{ref:t,...o,children:[s&&!0===l&&(0,c.jsx)(nv,{ref:i.context.internalBackdropRef,inert:(n=!a,ee>=19?n:n?"true":void 0)}),e.children]})}):null});var tn=tn;let ny={},nx={},nS="";class nw{lockCount=0;restore=null;timeoutLock=eV.create();timeoutUnlock=eV.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,n,r,o,i;if(0===this.lockCount||null!==this.restore)return;let s=ts(e).documentElement,l=b(s).getComputedStyle(s).overflowY;if("hidden"===l||"clip"===l){this.restore=en;return}let a=tn.os.ios||!function(e){if("u"<typeof document)return!1;let t=ts(e);return b(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=a?(n=(t=ts(e)).documentElement,r=t.body,i={overflowY:(o=E(n)?n:r).style.overflowY,overflowX:o.style.overflowX},Object.assign(o.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(o.style,i)}):function(e){let t=ts(e),n=t.documentElement,r=t.body,o=b(n),i=0,s=0,l=!1,a=to.create();if(tn.engine.webkit&&(o.visualViewport?.scale??1)!==1)return()=>{};function u(){let t=o.getComputedStyle(n),a=o.getComputedStyle(r),u=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=n.scrollTop,s=n.scrollLeft,ny={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},nS=n.style.scrollBehavior,nx={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let c=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f="scroll"===t.overflowY||"scroll"===a.overflowY,p="scroll"===t.overflowX||"scroll"===a.overflowX,g=Math.max(0,o.innerWidth-r.clientWidth),h=Math.max(0,o.innerHeight-r.clientHeight),m=parseFloat(a.marginTop)+parseFloat(a.marginBottom),v=parseFloat(a.marginLeft)+parseFloat(a.marginRight),b=E(n)?n:r;if(l=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=ts(e),n=t.documentElement,r=t.body,o=E(n)?n:r,i=o.style.overflowY,s=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",o.style.overflowY="scroll";let l=o.offsetWidth;o.style.overflowY="hidden";let a=o.offsetWidth;return o.style.overflowY=i,n.style.scrollbarGutter=s,l===a}(e)){n.style.scrollbarGutter=u,b.style.overflowY="hidden",b.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:u,overflowY:"hidden",overflowX:"hidden"}),(c||f)&&(n.style.overflowY="scroll"),(d||p)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:m||h?`calc(100dvh - ${m+h}px)`:"100dvh",width:v||g?`calc(100vw - ${v+g}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=s,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function c(){Object.assign(n.style,ny),Object.assign(r.style,nx),l||(n.scrollTop=i,n.scrollLeft=s,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=nS)}u();let d=ez(o,"resize",function(){c(),a.request(u)});return()=>{a.cancel(),c(),"function"==typeof o.removeEventListener&&d()}}(e)}}let nE=new nw;var tn=tn,eA=eA;function nk(){return!1}var eA=eA;function nC({store:e,parentContext:t,isDrawer:n}){var r;let o=e.useState("open"),i=e.useState("disablePointerDismissal"),s=e.useState("modal"),l=e.useState("popupElement"),a=e.useState("floatingRootContext"),[u,c]=d.use
1State(0),[f,p]=d.useState(0),g=0===u,h=function(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:o=!0,outsidePressEvent:i="sloppy",referencePress:s=nk,bubbles:l,externalTree:a}=t,u="rootStore"in e?e.rootStore:e,c=u.useState("open"),f=u.useState("floatingElement"),{dataRef:p}=u.context,g=t2(a),h=A("function"==typeof o?o:()=>!1),m="function"==typeof o?h:o,b=!1!==m,E=A(()=>i),{escapeKey:R,outsidePress:O}={escapeKey:"boolean"==typeof l?l:l?.escapeKey??!1,outsidePress:"boolean"==typeof l?l:l?.outsidePress??!0},T=d.useRef(!1),P=d.useRef(!1),I=d.useRef(!1),j=d.useRef(!1),D=d.useRef(""),M=d.useRef(null),N=e_(),B=e_(),W=A(()=>{B.clear(),p.current.insideReactTree=!1}),z=A(e=>{let t=p.current.floatingContext?.nodeId;return(g?tM(g.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),H=A(e=>tg(e,u.select("floatingElement"))||tg(e,u.select("domReferenceElement"))),U=A(e=>{s()&&u.setOpen(!1,eI(eA.triggerPress,e.nativeEvent))}),$=A(e=>{if(!c||!n||!r||"Escape"!==e.key||j.current||!R&&z("__escapeKeyBubbles"))return;let t="nativeEvent"in e?e.nativeEvent:e,o=eI(eA.escapeKey,t);u.setOpen(!1,o),o.isCanceled||e.preventDefault(),R||o.isPropagationAllowed||e.stopPropagation()}),L=A(()=>{p.current.insideReactTree=!0,B.start(0,W)}),q=A(e=>{if(!c||!n||0!==e.button)return;let t=tf(e.nativeEvent);td(u.select("floatingElement"),t)&&(T.current||(T.current=!0,P.current=!1))}),V=A(e=>{!c||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&T.current&&(P.current=!0)});d.useEffect(()=>{if(!c||!n)return;p.current.__escapeKeyBubbles=R,p.current.__outsidePressBubbles=O;let e=new eV,t=new eV;function o(){I.current=!0,t.start(0,()=>{I.current=!1})}function i(){T.current=!1,P.current=!1}function s(){let e=D.current,t=E(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function l(e){let t=p.current.floatingContext?.nodeId,n=g&&tM(g.nodesRef.current,t).some(t=>tg(e,t.context?.elements.floating));return H(e)||n}function a(e){let n;if("intentional"===(n=s())&&"click"!==e.type||"sloppy"===n&&"click"===e.type){"click"===e.type||H(e)||(t.clear(),I.current=!1),W();return}if(p.current.insideReactTree)return void W();let r=tf(e),o=`[${tB("inert")}]`,i=x(r)?r.getRootNode():null,a=Array.from((w(i)?i:ts(u.select("floatingElement"))).querySelectorAll(o)),c=u.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>td(e,r))))return;let d=x(r)?r:null;for(;d&&!k(d);){let e=function(e){var t;if("html"===v(e))return e;let n=e.assignedSlot||e.parentNode||w(e)&&e.host||(null==(t=(y(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement);return w(n)?n.host:n}(d);if(k(e)||!x(e))break;d=e}if(!(a.length&&x(r)&&!r.matches("html,body")&&!td(r,u.select("floatingElement"))&&a.every(e=>!td(d,e)))){if(S(r)&&!("touches"in e)){let t=k(r),n=C(r),o=/auto|scroll/,i=t||o.test(n.overflowX),s=t||o.test(n.overflowY),l=i&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,a=s&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,u="rtl"===n.direction,c=a&&(u?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=l&&e.offsetY>r.clientHeight;if(c||d)return}if(!l(e)){if("intentional"===s()&&I.current){t.clear(),I.current=!1;return}"function"==typeof m&&!m(e)||z("__outsidePressBubbles")||(u.setOpen(!1,eI(eA.outsidePress,e)),W())}}}function d(e){if("sloppy"!==s()||!u.select("open")||!n||H(e))return;let t=e.touches[0];t&&(M.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},N.start(1e3,()=>{M.current&&(M.current.dismissOnTouchEnd=!1,M.current.dismissOnMouseDown=!1)}))}function h(e,t){let n=tf(e);if(!n)return;let r=ez(n,e.type,()=>{t(e),r()})}function A(e){N.clear(),"pointerdown"===e.type&&(D.current=e.pointerType),("mousedown"!==e.type||!M.current||M.current.dismissOnMouseDown)&&h(e,e=>{if("pointerdown"===e.type)"sloppy"!==s()||"touch"===e.pointerType||!u.select("open")||!n||H(e)||a(e);else a(e)})}function B(e){if(!T.current)return;let n=P.current;if(i(),"intentional"===s()){if("pointercancel"===e.type){n&&o();return}l(e)||(n?o():("function"!=typeof m||m(e))&&(t.clear(),I.current=!0,W()))}}function U(e){if("sloppy"!==s()||!M.current||H(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-M.current.startX),r=Math.abs(t.clientY-M.current.startY),o=Math.sqrt(n*n+r*r);o>5&&(M.current.dismissOnTouchEnd=!0),o>10&&(a(e),N.clear(),M.current=null)}function L(e){"sloppy"!==s()||!M.current||H(e)||(M.current.dismissOnTouchEnd&&a(e),N.clear(),M.current=null)}let q=ts(f),V=eH(r&&eH(ez(q,"keydown",$),ez(q,"compositionstart",function(){e.clear(),j.current=!0}),ez(q,"compositionend",function(){e.start(5*!!tn.engine.webkit,()=>{j.current=!1})}
1)),b&&eH(ez(q,"click",A,!0),ez(q,"pointerdown",A,!0),ez(q,"pointerup",B,!0),ez(q,"pointercancel",B,!0),ez(q,"mousedown",A,!0),ez(q,"mouseup",B,!0),ez(q,"touchstart",function(e){D.current="touch",h(e,d)},!0),ez(q,"touchmove",function(e){h(e,U)},!0),ez(q,"touchend",function(e){h(e,L)},!0)));return()=>{V(),e.clear(),t.clear(),i(),I.current=!1}},[p,f,r,b,m,c,n,R,O,$,W,E,z,H,g,u,N]),d.useEffect(W,[m,W]);let _=d.useMemo(()=>({onKeyDown:$,onPointerDown:U,onClick:U}),[$,U]),F=d.useMemo(()=>({onKeyDown:$,onPointerDown:V,onMouseDown:V,onClickCapture:L,onMouseDownCapture(e){L(),q(e)},onPointerDownCapture(e){L(),q(e)},onMouseUpCapture:L,onTouchEndCapture:L,onTouchMoveCapture:L}),[$,L,q,V]);return d.useMemo(()=>n?{reference:_,floating:F,trigger:_}:{},[n,_,F])}(a,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===s?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button||"touches"in t&&1!==t.touches.length)return!1;let n=tf(t);return!!g&&!i&&(!s||!e.context.internalBackdropRef.current&&!e.context.backdropRef.current||e.context.internalBackdropRef.current===n||e.context.backdropRef.current===n||td(n,l)&&!n?.hasAttribute("data-base-ui-portal"))},escapeKey:g});!function(e=!0,t=null){M(()=>{if(e)return nE.acquire(t)},[e,t])}(o&&!0===s,l),e.useContextCallback("onNestedDialogOpen",(e,t)=>{c(e),p(t)}),e.useContextCallback("onNestedDialogClose",()=>{c(0),p(0)}),d.useEffect(()=>(t?.onNestedDialogOpen&&o&&t.onNestedDialogOpen(u+1,f+ +!!n),t?.onNestedDialogClose&&!o&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&o&&t.onNestedDialogClose()}),[n,o,u,f,t]);let m=h.reference??er,b=h.trigger??er;return r={activeTriggerProps:m,inactiveTriggerProps:b,popupProps:h.floating??er,nestedOpenDialogCount:u,nestedOpenDrawerCount:f},e.useSyncedValues(r),M(()=>()=>{e.update({activeTriggerProps:er,inactiveTriggerProps:er,popupProps:er})},[e]),null}class nR{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}let nO=ns(e=>e.triggerIdProp??e.activeTriggerId),nT=ns(e=>e.openProp??e.open),nP=ns(e=>(e.popupElement?.id??e.floatingId)||void 0);function nI(e,t){return void 0!==t&&nT(e)&&nO(e)===t}let nA={...{open:nT,mounted:ns(e=>e.mounted),transitionStatus:ns(e=>e.transitionStatus),floatingRootContext:ns(e=>e.floatingRootContext),triggerCount:ns(e=>e.triggerCount),preventUnmountingOnClose:ns(e=>e.preventUnmountingOnClose),payload:ns(e=>e.payload),activeTriggerId:nO,activeTriggerElement:ns(e=>e.mounted?e.activeTriggerElement:null),popupId:nP,isTriggerActive:ns((e,t)=>void 0!==t&&nO(e)===t),isOpenedByTrigger:ns((e,t)=>nI(e,t)),isMountedByTrigger:ns((e,t)=>void 0!==t&&nO(e)===t&&e.mounted),triggerProps:ns((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:ns((e,t)=>nI(e,t)||void 0!==t&&nT(e)&&null==nO(e)&&1===e.triggerCount?nP(e):void 0),popupProps:ns(e=>e.popupProps),popupElement:ns(e=>e.popupElement),positionerElement:ns(e=>e.positionerElement)},modal:ns(e=>e.modal),nested:ns(e=>e.nested),nestedOpenDialogCount:ns(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:ns(e=>e.nestedOpenDrawerCount),disablePointerDismissal:ns(e=>e.disablePointerDismissal),openMethod:ns(e=>e.openMethod),descriptionElementId:ns(e=>e.descriptionElementId),titleElementId:ns(e=>e.titleElementId),viewportElement:ns(e=>e.viewportElement),role:ns(e=>e.role)};class nj extends nd{constructor(e,t,n=!1){const r=new nR,o=function(e={}){return{...{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new np({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new nR,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0}),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:er,inactiveTriggerProps:er,popupProps:er},modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e);o.floatingRootContext=function(e,t,n=!1){return new np({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}(r,t,n),super(o,{popupRef:d.createRef(),backdropRef:d.createRef(),internalBackdropRef:d.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},nA)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};!function(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let o=n?.id??null;(o||t)&&(e.activeTriggerId=o,e.activeTriggerElement=n??null)}(n,e,t.trigger),this.update(n)};static useStore(e,t){return function(e,t,n=!1){let r=eN(),o=null!=(d.useContext(t0)?.id||null),i=d.useRef(null);void 0===e&&null===i.current&&(i.current=t(r,o));let s=e??i.current;return!function(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:o,nested:i,onOpenChange:s}=e,l=t.useState("open"),a=t.useState("activeTriggerElement"),u=t.useState(n?"popupElement":"positionerElement"),c=t.context.triggerElements,f=d.useRef(null);
1void 0===r&&null===f.current&&(f.current=new np({open:l,transitionStatus:void 0,referenceElement:a,floatingElement:u,triggerElements:c,onOpenChange:s,floatingId:o,syncOnly:!0,nested:i}));let p=r??f.current;t.useSyncedValue("floatingId",o),M(()=>{let e={open:l,floatingId:o,referenceElement:a,floatingElement:u};x(a)&&(e.domReferenceElement=a),p.state.positionReference===p.state.referenceElement&&(e.positionReference=a),p.update(e)},[l,o,a,u,p]),p.context.onOpenChange=s,p.context.nested=i}({popupStore:s,treatPopupAsFloatingElement:n,floatingRootContext:s.state.floatingRootContext,floatingId:r,nested:o,onOpenChange:s.setOpen}),{store:s,internalStore:i.current}}(e,(e,n)=>new nj(t,e,n),!0).store}}function nD(e){return function(e,t="dialog"){let n,{children:r,open:o,defaultOpen:i=!1,onOpenChange:s,onOpenChangeComplete:l,disablePointerDismissal:a=!1,modal:u=!0,actionsRef:f,handle:p,triggerId:g,defaultTriggerId:h=null}=e,m="alert-dialog"===t,v=eh(!0),b={modal:!!m||u,disablePointerDismissal:m||a,nested:!!v,role:m?"alertdialog":"dialog"},y=nj.useStore(p?.store,{open:i,openProp:o,activeTriggerId:h,triggerIdProp:g,...b});(n=d.useRef(!0)).current&&(n.current=!1,(()=>{let e=void 0===o&&!1===y.state.open&&!0===i?{open:!0,activeTriggerId:h}:null;m?y.update(e?{...b,...e}:b):e&&y.update(e)})()),y.useControlledProp("openProp",o),y.useControlledProp("triggerIdProp",g),y.useSyncedValues(b),y.useContextCallback("onOpenChange",s),y.useContextCallback("onOpenChangeComplete",l);let x=y.useState("open"),S=y.useState("mounted"),w=y.useState("payload");!function(e){var t;let{store:n,actionsRef:r}=e,o=n.useState("open");M(()=>{t||null===n.state.openMethod||n.set("openMethod",null)},[t=o,n]),M(()=>()=>{null!==n.state.openMethod&&n.set("openMethod",null)},[n]),function(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState("open"),o=e.useState("triggerCount");M(()=>{if(!r){0!==e.state.triggerCount&&e.set("triggerCount",0);return}let t=e.context.triggerElements.size,o={};e.state.triggerCount!==t&&(o.triggerCount=t);let i=e.select("activeTriggerId"),s=null;if(i){let t=e.context.triggerElements.getById(i);t?t!==e.state.activeTriggerElement&&(o.activeTriggerElement=t):s=i}if(!s&&!i&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;o.activeTriggerId=e,o.activeTriggerElement=n}}(void 0!==o.triggerCount||void 0!==o.activeTriggerId||void 0!==o.activeTriggerElement)&&e.update(o),s&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===s&&!e.context.triggerElements.getById(s)){let t=eI(eA.none);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,o,n])}(n);let{forceUnmount:i}=function(e,t,n){let{mounted:r,setMounted:o,transitionStatus:i}=function(e,t=!1,n=!1){let[r,o]=d.useState(e&&t?"idle":void 0),[i,s]=d.useState(e);return e&&!i&&(s(!0),o("starting")),e||!i||"ending"===r||n||o("ending"),e||i||"ending"!==r||o(void 0),M(()=>{if(!e&&i&&"ending"!==r&&n){let e=to.request(()=>{o("ending")});return()=>{to.cancel(e)}}},[e,i,r,n]),M(()=>{if(!e||t)return;let n=to.request(()=>{o(void 0)});return()=>{to.cancel(n)}},[t,e]),M(()=>{if(!e||!t)return;e&&i&&"idle"!==r&&o("starting");let n=to.request(()=>{o("idle")});return()=>{to.cancel(n)}},[t,e,i,r]),{mounted:i,setMounted:s,transitionStatus:r}}(e),s=t.useState("preventUnmountingOnClose"),l=!e&&s;t.useSyncedValues({mounted:r,transitionStatus:i,preventUnmountingOnClose:l});let a=A(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),t.context.onOpenChangeComplete?.(!1)});return no({enabled:r&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||a()}}),{forceUnmount:a,transitionStatus:i}}(o,n),s=d.useCallback(()=>{n.setOpen(!1,eI(eA.imperativeAction))},[n]);d.useImperativeHandle(r,()=>({unmount:i,close:s}),[i,s])}({store:y,actionsRef:f});let E=d.useMemo(()=>({store:y}),[y]);return(0,c.jsx)(ep.Provider,{value:!1,children:(0,c.jsxs)(eg.Provider,{value:E,children:[(x||S)&&(0,c.jsx)(nC,{store:y,parentContext:v?.store.context,isDrawer:"drawer"===t}),"function"==typeof r?r({payload:w}):r]})})}(e,d.useContext(ep)?"drawer":"dialog")}let nM=((u={}
1)[u.open=ex.open]="open",u[u.closed=ex.closed]="closed",u[u.startingStyle=ex.startingStyle]="startingStyle",u[u.endingStyle=ex.endingStyle]="endingStyle",u.nested="data-nested",u.nestedDialogOpen="data-nested-dialog-open",u),nN={...eO,...ey,nested:e=>e?{[nM.nested]:""}:null,nestedDialogOpen:e=>e?{[nM.nestedDialogOpen]:""}:null},nB=d.forwardRef(function(e,t){let{render:n,className:r,style:o,children:i,...s}=e,l=nr(),{store:a}=eh(),u=a.useState("open"),c=a.useState("nested"),d=a.useState("transitionStatus"),f=a.useState("nestedOpenDialogCount"),p=a.useState("mounted");return eo("div",e,{enabled:l||p,state:{open:u,nested:c,transitionStatus:d,nestedDialogOpen:f>0},ref:[t,a.useStateSetter("viewportElement")],stateAttributesMapping:nN,props:[{role:"presentation",hidden:!p,style:{pointerEvents:u?void 0:"none"},children:i},s]})}),nW=d.forwardRef(function(e,t){let{render:n,className:r,style:o,id:i,...s}=e,{store:l}=eh(),a=eB(i);return l.useSyncedValueWithCleanup("titleElementId",a),eo("h2",e,{ref:t,props:[{id:a},s]})});var eA=eA,tn=tn;let nz=d.forwardRef(function(e,t){var n;let r,o,i,s,l,{render:a,className:u,style:c,disabled:f=!1,nativeButton:p=!0,id:g,payload:h,handle:m,...v}=e,b=eh(!0),y=m?.store??b?.store;if(!y)throw Error(Y(79));let x=eB(g),S=y.useState("floatingRootContext"),w=y.useState("isOpenedByTrigger",x),E=y.useState("triggerPopupId",x),k=d.useRef(null),{registerTrigger:C,isMountedByThisTrigger:R}=(n={payload:h},r=y.useState("isMountedByTrigger",x),o=d.useRef(null),i=d.useRef(null),s=d.useCallback(e=>{if(void 0===x)return;let t=!1;if(null!==o.current){let e=o.current,n=i.current,r=y.context.triggerElements.getById(e);n&&r===n&&(y.context.triggerElements.delete(e),t=!0),o.current=null,i.current=null}if(null!==e&&(o.current=x,i.current=e,y.context.triggerElements.add(x,e),t=!0),t){let e=y.context.triggerElements.size;y.select("open")&&y.state.triggerCount!==e&&y.set("triggerCount",e)}},[y,x]),l=A(e=>{if(s(e),!e)return;let t=y.select("open"),r=y.select("activeTriggerId");r===x?y.update({activeTriggerElement:e,...t?n:null}):null==r&&t&&y.update({activeTriggerId:x,activeTriggerElement:e,...n})}),M(()=>{r&&y.update({activeTriggerElement:k.current,...n})},[r,y,k,...Object.values(n)]),{registerTrigger:l,isMountedByThisTrigger:r}),{getButtonProps:O,buttonRef:T}=X({disabled:f,native:p}),P=function(e,t={}){let{enabled:n=!0,event:r="click",toggle:o=!0,ignoreMouse:i=!1,stickIfOpen:s=!0,touchOpenDelay:l=0,reason:a=eA.triggerPress}=t,u="rootStore"in e?e.rootStore:e,c=u.context.dataRef,f=d.useRef(void 0),p=ti(),g=e_(),h=d.useMemo(()=>{function e(e,t,n,r){let o=eI(a,t,n);e&&"touch"===r&&l>0?g.start(l,()=>{u.setOpen(!0,o)}):u.setOpen(e,o)}function t(e,t,n){let r=c.current.openEvent,i=u.select("domReferenceElement")!==t;return!!e&&!!i||!e||!o||!!r&&!!s&&!n(r.type)}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let o=f.current,s=n.nativeEvent,l=u.select("open");if(0!==n.button||"click"===r||tb(o,!0)&&i)return;let a=t(l,n.currentTarget,e=>"click"===e||"mousedown"===e),c=tf(s);if(th(c))return void e(a,s,c,o);let d=n.currentTarget;p.request(()=>{e(a,s,d,o)})},onClick(n){if("mousedown-only"===r)return;let o=f.current;if("mousedown"===r&&o){f.current=void 0;return}tb(o,!0)&&i||e(t(u.select("open"),n.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),n.nativeEvent,n.currentTarget,o)},onKeyDown(){f.current=void 0}}},[c,r,i,a,u,s,o,p,g,l]);return d.useMemo(()=>n?{reference:h}:er,[n,h])}(S,{enabled:null!=S}),I=function(e,t){var n;let r,o,{onClick:i,onPointerDown:s}=(n=A((n,r)=>{("function"==typeof e?e():e)||t(r||(tn.os.ios?"touch":""))}),r=d.useRef(""),o=d.useCallback(e=>{e.defaultPrevented||(r.current=e.pointerType,n(e,e.pointerType))},[n]),{onClick:d.useCallback(e=>{0===e.detail?n(e,"keyboard"):("pointerType"in e?n(e,e.pointerType):n(e,r.current),r.current="")},[n]),onPointerDown:o});return d.useMemo(()=>({onClick:i,onPointerDown:s}),[i,s])}(()=>y.select("open"),e=>{y.set("openMethod",e)}),j=y.useState("triggerProps",R);return eo("button",e,{state:{disabled:f,open:w},ref:[T,t,C,k],props:[P.reference,j,I,{[tX]:"",id:x,"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":E},v,O],stateAttributesMapping:eR})});var eA=eA;class nH{constructor(e){this.store=e??new nj}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,eI(eA.imperativeAction,void 0,t))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,eI(eA.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,eI(eA.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}}function nU(){return new nH}e.s(["Backdrop",0,eP,"Close",0,ej,"Description",0,eW,"Handle",()=>nH,"Popup",0,nm,"Portal",0,nb,"Root",()=>nD,"Title",0,nW,"Trigger",0,nz,"Viewport",0,nB,"createHandle",()=>nU],80195);var n$=e.i(80195),n$=n$;function nL({...e}){return(0,c.jsx)(n$.Root,{"data-slot":"sheet",...e})}function nq({...e}){return(0,c.jsx)(n$.Close,{"data-slot":"sheet-close",...e})}function nV({...e}){return(0,c.jsx)(n$.Portal,{"data-slot":"sheet-portal",...e})}function n_({className:e,...t}){return(0,c.jsx)(n$.Backdrop,{"data-slot":"sheet-overlay",className:(0,ec.cn)("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",e),...t})}function nF({className:e,children:t,side:n="right",showCloseButton:r=!0,fullScreen:o=!1,...i}){return(0,c.jsxs)(nV,{children:[(0,c.jsx)(n_,{className:o?"bg-transparent supports-backdrop-filter:backdrop-blur-none":void 0}),(0,c.jsxs)(n$.Popup,{"data-slot":"sheet-content","data-side":n,className:(0,ec.cn)(o?"bg-brand-surface text-brand-ink fixed inset-x-0 top-16 bottom-0 z-[90] flex w-full max-w-none flex-col gap-0 overflow-y-auto overscroll-contain border-0 pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)] shadow-none transition duration-200 ease-in-out will-change-[op
1acity] data-ending-style:opacity-0 data-starting-style:opacity-0":"bg-popover text-popover-foreground fixed z-50 flex flex-col gap-4 overflow-y-auto overscroll-contain bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out will-change-[opacity,transform] data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",e),...i,children:[t,r&&(0,c.jsxs)(n$.Close,{"data-slot":"sheet-close",render:(0,c.jsx)(ef,{variant:"ghost",className:(0,ec.cn)("absolute z-10",o?"top-3 right-3 size-10":"top-3 right-3"),size:o?"icon":"icon-sm"}),children:[(0,c.jsx)(g,{}),(0,c.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function nY({className:e,...t}){return(0,c.jsx)(n$.Title,{"data-slot":"sheet-title",className:(0,ec.cn)("font-heading text-foreground text-base font-medium",e),...t})}var nK=e.i(50380),nX=e.i(97597);function nG(){let[e,t]=(0,d.useState)(!1),n=(0,d.useCallback)(()=>{t(e=>!e)},[]);return(0,c.jsxs)(nL,{open:e,onOpenChange:t,children:[(0,c.jsx)(ef,{variant:"ghost",className:(0,ec.cn)(h.headerIconButtonClass,"md:hidden"),"aria-label":e?"Close menu":"Open menu","aria-expanded":e,onClick:n,children:e?(0,c.jsx)(g,{className:"size-5"}):(0,c.jsx)(p,{className:"size-5"})}),(0,c.jsxs)(nF,{fullScreen:!0,showCloseButton:!1,className:"p-0",children:[(0,c.jsx)(nY,{className:"sr-only",children:"Navigation"}),(0,c.jsxs)("div",{className:(0,ec.cn)(nX.spacing.containerWide,"border-brand-thread/35 flex flex-col gap-3 border-b py-6"),children:[(0,c.jsx)(nq,{nativeButton:!1,render:(0,c.jsx)(h.HeaderGhostButton,{className:(0,ec.cn)(nX.typeScale.ui,"h-12 touch-manipulation justify-center"),...(0,nK.ctaLink)(nK.APP_LOGIN_URL,"login","mobile_nav"),children:"Sign in"})}),(0,c.jsx)(nq,{nativeButton:!1,render:(0,c.jsx)(h.HeaderPrimaryButton,{className:(0,ec.cn)(nX.typeScale.ui,"h-12 touch-manipulation justify-center"),...(0,nK.ctaLink)(nK.APP_SIGN_UP_URL,"signup","mobile_nav"),children:"Start for free"})})]})]})]})}e.s(["MobileNav",()=>nG],77329)}]);

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.