PageSourceSearch

https://kadelio.com/assets/radix-CkTspAmM.js

js kadelio.com collected 2026-10-02 01:33:16 UTC 83,480 bytes, 42 lines download raw bytes

vendor: 4,368 bytes, line 1
1import{a as e,t}from"./rolldown-runtime-B0Z9INg1.js";var n=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ee(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ne=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function F(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;
1try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ne)}catch(e){ne(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function re(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else F(re.bind(null,e))}var ie={map:ee,forEach:function(e,t,n){ee(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ee(e,function(){t++}),t},toArray:function(e){return ee(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ie,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=re,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;
vendor: 5,872 bytes, line 1
1if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=F,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),r=t(((e,t)=>{t.exports=n()})),i=t((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()}
1,e.version=`19.3.0`})),a=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=i()})),o=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),s=t(((e,t)=>{t.exports=o()})),c=e(r(),1),l=Object.defineProperty,u=(e,t)=>l(e,`name`,{value:t,configurable:!0}),d=!!(typeof window<`u`&&window.document&&window.document.createElement);function f(e,t,{checkForDefaultPrevented:n=!0}={}){return u(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}u(f,`composeEventHandlers`);function p(e){if(!d)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}u(p,`getOwnerWindow`);function m(e){if(!d)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}u(m,`getOwnerDocument`);function h(e,t=!1){let{activeElement:n}=m(e);if(!n?.nodeName)return null;if(g(n)&&n.contentDocument)return h(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=m(n).getElementById(e);if(t)return t}}return n}u(h,`getActiveElement`);function g(e){return e.tagName===`IFRAME`}u(g,`isFrame`);var _=Object.defineProperty,v=(e,t)=>_(e,`name`,{value:t,configurable:!0});function y(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}v(y,`setRef`);function b(...e){return t=>{let n=!1,r=e.map(e=>{let r=y(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():y(e[t],null)}}}}v(b,`composeRefs`);function x(...e){return c.useCallback(b(...e),e)}v(x,`useComposedRefs`);var S=s(),C=Object.defineProperty,w=(e,t)=>C(e,`name`,{value:t,configurable:!0});function T(e,t){let n=c.createContext(t);n.displayName=e+`Context`;let r=w(e=>{let{children:t,...r}=e,i=c.useMemo(()=>r,Object.values(r));return(0,S.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=c.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return w(i,`useContext`),[r,i]}w(T,`createContext`);function E(e,t=[]){let n=[];function r(t,r){let i=c.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=w(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=c.useMemo(()=>o,Object.values(o));return(0,S.jsx)(s.Provider,{value:l,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:l=!1}=s,u=o?.[e]?.[a]||i,d=c.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return w(s,`useContext`),[o,s]}w(r,`createContext`);let i=w(()=>{let t=n.map(e=>c.createContext(e));return w(function(n){let r=n?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,D(i,...t)]}w(E,`createContextScope`);function D(...e){let t=e[0];if(e.length===1)return t;let n=w(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return w(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}w(D,`composeContextScopes`);var O=globalThis?.document?c.useLayoutEffect:()=>{},k=Object.defineProperty,A=(e,t)=>k(e,`name`,{value:t,configurable:!0}),j=c.useId||(()=>void 0),M=0;function N(e){let[t,n]=c.useState(j());return O(()=>{e||n(e=>e??String(M++))},[e]),e||(t?`radix-${t}`:``)}A(N,`useId`);var P=Object.defineProperty,ee=(e,t)=>P(e,`name`,{value:t,configurable:!0}),te=c.useEffectEvent,ne=c.useInsertionEffect;function F(e){if(typeof te==`function`)return te(e);let t=c.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof ne==`function`?ne(()=>{t.current=e}):O(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}ee(F,`useEffectEvent`);var re=Object.defineProperty,ie=(e,t)=>re(e,`name`,{value:t,configurable:!0}),ae=c.useInsertionEffect||O;function oe({prop:e,defaultProp:t,onChange:n=ie(()=>{},`onChange`),caller:r}){let[i,a,o]=se({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,c.useCallback(t=>{if(s){let n=ce(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}ie(oe,`useControllableState`);function se({defaultProp:e,onChange:t}){let[n,r]=c.useState(e),i=c.useRef(n),a=c.useRef(t);return ae(()=>{a.current=t},[t]),c.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}ie(se,`useUncontrolledState`);function ce(e){return typeof e==`function`}ie(ce,`isFunction`);var le=Symbol(`RADIX:SYNC_STATE`);function ue(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,l=i!==void 0,u=F(o),d=[{...n,state:a}];r&&d.push(r);let[f,p]=c.useReducer((t,n)=>{if(n.type===le)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=c.useRef(m);c.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=c.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return c.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:le,state:i})},[i,f.state,l]),[g,p]}ie(ue,`useControllableStateReducer`);var de=e(a(),1),fe=Object.defineProperty,I=(e,t)=>fe(e,`name`,{value:t,configurable:!0});
1function pe(e){let t=c.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];xe(r)&&typeof Te==`function`&&(r=Te(r._payload)),c.Children.forEach(r,e=>{if(ye(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;xe(n)&&typeof Te==`function`&&(n=Te(n._payload)),a=ge(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=c.cloneElement(a,void 0,s):!o&&c.Children.count(r)===1&&c.isValidElement(r)&&(a=r);let l=a?ve(a):void 0,u=x(n,l);if(!a){if(r||r===0)throw Error(o?we(e):Ce(e));return r}let d=_e(i,a.props??{});return a.type!==c.Fragment&&(d.ref=n?u:l),c.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}I(pe,`createSlot`);var me=Symbol.for(`radix.slottable`);function he(e){let t=I(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=me,t}I(he,`createSlottable`);var ge=I((e,t)=>{if(`child`in e.props){let t=e.props.child;return c.isValidElement(t)?c.cloneElement(t,void 0,e.props.children(t.props.children)):null}return c.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function _e(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}I(_e,`mergeProps`);function ve(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}I(ve,`getElementRef`);function ye(e){return c.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===me}I(ye,`isSlottable`);var be=Symbol.for(`react.lazy`);function xe(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===be&&`_payload`in e&&Se(e._payload)}I(xe,`isLazyComponent`);function Se(e){return typeof e==`object`&&!!e&&`then`in e}I(Se,`isPromiseLike`);var Ce=I(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),we=I(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Te=c.use,Ee=Object.defineProperty,De=(e,t)=>Ee(e,`name`,{value:t,configurable:!0}),L=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=pe(`Primitive.${t}`),r=c.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,S.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Oe(e,t){e&&de.flushSync(()=>e.dispatchEvent(t))}De(Oe,`dispatchDiscreteCustomEvent`);var ke=Object.defineProperty,Ae=(e,t)=>ke(e,`name`,{value:t,configurable:!0});function je(e){let t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ae(je,`useCallbackRef`);var Me=Object.defineProperty,R=(e,t)=>Me(e,`name`,{value:t,configurable:!0}),Ne=`dismissableLayer.update`,Pe=`dismissableLayer.pointerDownOutside`,Fe=`dismissableLayer.focusOutside`,Ie,Le=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Re=c.forwardRef(R(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,d=c.useContext(Le),[p,m]=c.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=c.useState({}),_=x(t,m),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=y?v.indexOf(y):-1,C=p?v.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,T=C>=b,E=c.useRef(!1),D=Ve(e=>{a?.(e),s?.(e),e.defaultPrevented||l?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return T&&!t},[d.branches,T])}),O=He(e=>{if(r&&E.current)return;let t=e.target;[...d.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||l?.())},h),k=p?C===v.length-1:!1,A=je(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return c.useEffect(()=>
1{if(k)return h.addEventListener(`keydown`,A,{capture:!0}),()=>h.removeEventListener(`keydown`,A,{capture:!0})},[h,k,A]),c.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ie=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Ue(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(p),d.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Ie))}},[p,h,n,d]),c.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Ue())},[p,d]),c.useEffect(()=>{let e=R(()=>g({}),`handleUpdate`);return document.addEventListener(Ne,e),()=>document.removeEventListener(Ne,e)},[]),(0,S.jsx)(L.div,{...u,ref:_,style:{pointerEvents:w?T?`auto`:`none`:void 0,...e.style},onFocusCapture:f(e.onFocusCapture,O.onFocusCapture),onBlurCapture:f(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:f(e.onPointerDownCapture,D.onPointerDownCapture)})},`DismissableLayer`));function ze(){let e=c.useContext(Le),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}R(ze,`useDismissableLayerSurface`);var Be=R(()=>!0,`IS_TRUE`);function Ve(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Be}=t,s=je(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}R(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}R(t,`isOutsideInteractionIntercepted`);function c(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}R(c,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}R(p,`handleInteractionBubble`);let m=R(a=>{if(a.target&&!l.current){let c=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||We(Pe,s,p,{discrete:!0})};if(R(c,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?c():(n.removeEventListener(`click`,f.current),f.current=c,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,c,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,c,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:R(()=>l.current=!0,`onPointerDownCapture`)}}R(Ve,`usePointerDownOutside`);function He(e,t=globalThis?.document){let n=je(e),r=c.useRef(!1);return c.useEffect(()=>{let e=R(e=>{e.target&&!r.current&&We(Fe,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:R(()=>r.current=!0,`onFocusCapture`),onBlurCapture:R(()=>r.current=!1,`onBlurCapture`)}}R(He,`useFocusOutside`);function Ue(){let e=new CustomEvent(Ne);document.dispatchEvent(e)}R(Ue,`dispatchUpdate`);function We(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Oe(i,a):i.dispatchEvent(a)}R(We,`handleAndDispatchCustomEvent`);var Ge=Object.defineProperty,z=(e,t)=>Ge(e,`name`,{value:t,configurable:!0}),Ke=`focusScope.autoFocusOnMount`,qe=`focusScope.autoFocusOnUnmount`,Je={bubbles:!1,cancelable:!0},Ye=c.forwardRef(z(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=c.useState(null),u=je(i),d=je(a),f=c.useRef(null),p=x(t,l),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let e=function(e){if(m.paused||!s)return;let t=e.target;s.contains(t)?f.current=t:nt(f.current,{select:!0})},t=function(e){if(m.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||nt(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&nt(s)};z(e,`handleFocusIn`),z(t,`handleFocusOut`),z(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,m.paused]),c.useEffect(()=>{if(s){rt.add(m);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Ke,Je);s.addEventListener(Ke,u),s.dispatchEvent(t),t.defaultPrevented||(Xe(ot(Qe(s)),{select:!0}),document.activeElement===e&&nt(s))}return()=>{s.removeEventListener(Ke,u),setTimeout(()=>{let t=new CustomEvent(qe,Je);s.addEventListener(qe,d),s.dispatchEvent(t),t.defaultPrevented||nt(e??document.body,{select:!0}),s.removeEventListener(qe,d),rt.remove(m)},0)}}},[s,u,d,m]);let h=c.useCallback(e=>{if(!n&&!r||m.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Ze(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&nt(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&nt(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,m.paused]);return(0,S.jsx)(L.div,{tabIndex:-1,...o,ref:p,onKeyDown:h})},`FocusScope`));function Xe(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(nt(r,{select:t}),document.activeElement!==n)return}z(Xe,`focusFirst`);function Ze(e){let t=Qe(e);return[$e(t,e),$e(t.reverse(),e)]}z(Ze,`getTabbableEdges`);function Qe(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:z(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)}
1);for(;n.nextNode();)t.push(n.currentNode);return t}z(Qe,`getTabbableCandidates`);function $e(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):et(r,{upTo:t})))return r}z($e,`findVisible`);function et(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}z(et,`isHidden`);function tt(e){return e instanceof HTMLInputElement&&`select`in e}z(tt,`isSelectableInput`);function nt(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tt(e)&&t&&e.select()}}z(nt,`focus`);var rt=it();function it(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=at(e,t),e.unshift(t)},remove(t){e=at(e,t),e[0]?.resume()}}}z(it,`createFocusScopesStack`);function at(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}z(at,`arrayRemove`);function ot(e){return e.filter(e=>e.tagName!==`A`)}z(ot,`removeLinks`);var st=Object.defineProperty,ct=c.forwardRef(((e,t)=>st(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=c.useState(!1);O(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?de.createPortal((0,S.jsx)(L.div,{...r,ref:t}),o):null},`Portal`)),lt=Object.defineProperty,B=(e,t)=>lt(e,`name`,{value:t,configurable:!0});function ut(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}B(ut,`useStateMachine`);var dt=B(e=>{let{present:t,children:n}=e,r=ft(t),i=typeof n==`function`?n({present:r.isPresent}):c.Children.only(n),a=mt(r.ref,gt(i));return typeof n==`function`||r.isPresent?c.cloneElement(i,{ref:a}):null},`Presence`);function ft(e){let[t,n]=c.useState(),r=c.useRef(null),i=c.useRef(e),a=c.useRef(`none`),o=c.useRef(void 0),[s,l]=ut(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return c.useEffect(()=>{s===`mounted`?(a.current=o.current??ht(r.current),o.current=void 0):a.current=`none`},[s]),O(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=ht(t);e?(o.current=s,l(`MOUNT`)):s===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),O(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=B(a=>{let o=ht(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=B(e=>{e.target===t&&(a.current=ht(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:c.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=ht(t)}else r.current=null;n(e)},[])}}B(ft,`usePresence`);function pt(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}B(pt,`setRef`);function mt(...e){let t=c.useRef(e);return t.current=e,c.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=pt(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():pt(n[e],null)}}},[])}B(mt,`useStableComposedRefs`);function ht(e){return e?.animationName||`none`}B(ht,`getAnimationName`);function gt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}B(gt,`getElementRef`);var _t=Object.defineProperty,vt=(e,t)=>_t(e,`name`,{value:t,configurable:!0}),yt=0,bt=null;function xt(e){return St(),e.children}vt(xt,`FocusGuards`);function St(){c.useEffect(()=>{bt||={start:Ct(),end:Ct()};let{start:e,end:t}=bt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),yt++,()=>{yt===1&&(bt?.start.remove(),bt?.end.remove(),bt=null),yt=Math.max(0,yt-1)}},[])}vt(St,`useFocusGuards`);function Ct(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}vt(Ct,`createFocusGuard`);var V=function(){return V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},V.apply(this,arguments)};function wt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Tt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;
vendor: 8,891 bytes, lines 1-41
1r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Et=`right-scroll-bar-position`,Dt=`width-before-scroll-bar`,Ot=`with-scroll-bars-hidden`,kt=`--removed-body-scroll-bar-size`;function At(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function jt(e,t){var n=(0,c.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Mt=typeof window<`u`?c.useLayoutEffect:c.useEffect,Nt=new WeakMap;function Pt(e,t){var n=jt(t||null,function(t){return e.forEach(function(e){return At(e,t)})});return Mt(function(){var t=Nt.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||At(e,null)}),i.forEach(function(e){r.has(e)||At(e,a)})}Nt.set(n,e)},[e]),n}function Ft(e){return e}function It(e,t){t===void 0&&(t=Ft);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Lt(e){e===void 0&&(e={});var t=It(null);return t.options=V({async:!0,ssr:!1},e),t}var Rt=function(e){var t=e.sideCar,n=wt(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return c.createElement(r,V({},n))};Rt.isSideCarExport=!0;function zt(e,t){return e.useMedium(t),Rt}var Bt=Lt(),Vt=function(){},Ht=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Vt,onWheelCapture:Vt,onTouchMoveCapture:Vt}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=wt(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=Pt([n,t]),w=V(V({},x),i);return c.createElement(c.Fragment,null,d&&c.createElement(S,{sideCar:Bt,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?c.cloneElement(c.Children.only(s),V(V({},w),{ref:C})):c.createElement(y,V({},w,{className:l,ref:C}),s))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ht.classNames={fullWidth:Dt,zeroRight:Et};var Ut=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Wt(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Ut();return t&&e.setAttribute(`nonce`,t),e}function Gt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Kt(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var qt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wt())&&(Gt(t,n),Kt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jt=function(){var e=qt();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yt=function(){var e=Jt();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Xt={left:0,top:0,right:0,gap:0},Zt=function(e){return parseInt(e||``,10)||0},Qt=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Zt(n),Zt(r),Zt(i)]},$t=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Xt;var t=Qt(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},en=Yt(),tn=`data-scroll-locked`,nn=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2  .${Ot} {
3   overflow: hidden ${r};
4   padding-right: ${s}px ${r};
5  }
6  body[${tn}] {
7    overflow: hidden ${r};
8    overscroll-behavior: contain;
9    ${[t&&`position: relative ${r};`,n===`margin`&&`
10    padding-left: ${i}px;
11    padding-top: ${a}px;
12    padding-right: ${o}px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: ${s}px ${r};
16    `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17  }
18  
19  .${Et} {
20    right: ${s}px ${r};
21  }
22  
23  .${Dt} {
24    margin-right: ${s}px ${r};
25  }
26  
27  .${Et} .${Et} {
28    right: 0 ${r};
29  }
30  
31  .${Dt} .${Dt} {
32    margin-right: 0 ${r};
33  }
34  
35  body[${tn}] {
36    ${kt}: ${s}px;
37  }
38`},rn=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},an=function(){c.useEffect(function(){return document.body.setAttribute(tn,(rn()+1).toString()),function(){var e=rn()-1;e<=0?document.body.removeAttribute(tn):document.body.setAttribute(tn,e.toString())}},[])},on=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;an();var a=c.useMemo(function(){return $t(i)},[i]);return c.createElement(en,{styles:nn(a,!t,i,n?``:`!important`)})},sn=!1;if(typeof window<`u`)try{var cn=Object.defineProperty({},"passive",{get:function(){return sn=!0,!0}});window.addEventListener(`test`,cn,cn),window.removeEventListener(`test`,cn,cn)}catch{sn=!1}var ln=sn?{passive:!1}:!1,un=function(e){return e.tagName===`TEXTAREA`},dn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!un(e)&&n[t]===`visible`)},fn=function(e){return dn(e,`overflowY`)},pn=function(e){return dn(e,`overflowX`)},mn=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),_n(e,r)){var i=vn(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},hn=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},gn=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},_n=function(e,t){return e===`v`?fn(t):pn(t)},vn=function(e,t){return e===`v`?hn(t):gn(t)},yn=function(e,t){return e===`h`&&t===`rtl`?-1:1},bn=function(e,t,n,r,i){var a=yn(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=vn(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&_n(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},xn=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sn=function(e){return[e.deltaX,e.deltaY]},Cn=function(e){return e&&`current`in e?e.current:e},wn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Tn=function(e){return`
39  .block-interactivity-${e} {pointer-events: none;}
40  .allow-interactivity-${e} {pointer-events: all;}
41`},En=0,Dn=[];function On(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(En++)[0],a=c.useState(Yt)[0],o=c.useRef(e);c.useEffect(function(){o.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Tt([e.lockRef.current],(e.shards||[]).map(Cn),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=xn(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=mn(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=mn(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return bn(h,t,e,h===`h`?s:c,!0)},[]),l=c.useCallback(function(e){var n=e;if(Dn.length&&Dn[Dn.length-1]===a){var r=`deltaY`in n?Sn(n):xn(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&wn(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
41if(!i){var c=(o.current.shards||[]).map(Cn).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:kn(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=xn(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,Sn(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,xn(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return Dn.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,ln),document.addEventListener(`touchmove`,l,ln),document.addEventListener(`touchstart`,d,ln),function(){Dn=Dn.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,l,ln),document.removeEventListener(`touchmove`,l,ln),document.removeEventListener(`touchstart`,d,ln)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Tn(i)}):null,m?c.createElement(on,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function kn(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var An=zt(Bt,On),jn=c.forwardRef(function(e,t){return c.createElement(Ht,V({},e,{ref:t,sideCar:An}))});jn.classNames=Ht.classNames;var Mn=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Nn=new WeakMap,Pn=new WeakMap,Fn={},In=0,Ln=function(e){return e&&(e.host||Ln(e.parentNode))},Rn=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ln(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},zn=function(e,t,n,r){var i=Rn(t,Array.isArray(e)?e:[e]);Fn[n]||(Fn[n]=new WeakMap);var a=Fn[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Nn.get(e)||0)+1,l=(a.get(e)||0)+1;Nn.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Pn.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),In++,function(){o.forEach(function(e){var t=Nn.get(e)-1,i=a.get(e)-1;Nn.set(e,t),a.set(e,i),t||(Pn.has(e)||e.removeAttribute(r),Pn.delete(e)),i||e.removeAttribute(n)}),In--,In||(Nn=new WeakMap,Nn=new WeakMap,Pn=new WeakMap,Fn={})}},Bn=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Mn(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),zn(r,i,n,`aria-hidden`)):function(){return null}},Vn=Object.defineProperty,H=(e,t)=>Vn(e,`name`,{value:t,configurable:!0}),Hn=`Dialog`,[Un,Wn]=E(Hn),[Gn,U]=Un(Hn),Kn=H(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=c.useRef(null),l=c.useRef(null),[u,d]=oe({prop:r,defaultProp:i??!1,onChange:a,caller:Hn}),[f,p]=c.useState(0),[m,h]=c.useState(0);return(0,S.jsx)(Gn,{scope:t,triggerRef:s,contentRef:l,contentId:N(),titleId:N(),descriptionId:N(),titlePresent:f>0,descriptionPresent:m>0,setTitleCount:p,setDescriptionCount:h,open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(e=>!e),[d]),modal:o,children:n})},`Dialog`),qn=`DialogTrigger`,Jn=c.forwardRef(H(function(e,t){let{__scopeDialog:n,...r}=e,i=U(qn,n),a=x(t,i.triggerRef);return(0,S.jsx)(L.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":mr(i.open),...r,ref:a,onClick:f(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Yn=`DialogPortal`,[Xn,Zn]=Un(Yn,{forceMount:void 0}),Qn=H(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=U(Yn,t);return(0,S.jsx)(Xn,{scope:t,forceMount:n,children:c.Children.map(r,e=>(0,S.jsx)(dt,{present:n||a.open,children:(0,S.jsx)(ct,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),$n=`DialogOverlay`,er=c.forwardRef(H(function(e,t){let n=Zn($n,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=U($n,e.__scopeDialog);return a.modal?(0,S.jsx)(dt,{present:r||a.open,children:(0,S.jsx)(nr,{...i,ref:t})}):null},`DialogOverlay`)),tr=pe(`DialogOverlay.RemoveScroll`),nr=c.forwardRef(H(function(e,t){let{__scopeDialog:n,...r}=e,i=U($n,n),a=x(t,ze());return(0,S.jsx)(jn,{as:tr,allowPinchZoom:!0,shards:[i.contentRef],children:(0,S.jsx)(L.div,{"data-state":mr(i.open
41),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),rr=`DialogContent`,ir=c.forwardRef(H(function(e,t){let n=Zn(rr,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=U(rr,e.__scopeDialog);return(0,S.jsx)(dt,{present:r||a.open,children:a.modal?(0,S.jsx)(ar,{...i,ref:t}):(0,S.jsx)(or,{...i,ref:t})})},`DialogContent`)),ar=c.forwardRef(H(function(e,t){let n=U(rr,e.__scopeDialog),r=c.useRef(null),i=x(t,n.contentRef,r);return c.useEffect(()=>{let e=r.current;if(e)return Bn(e)},[]),(0,S.jsx)(sr,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:f(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:f(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),or=c.forwardRef(H(function(e,t){let n=U(rr,e.__scopeDialog),r=c.useRef(!1),i=c.useRef(!1);return(0,S.jsx)(sr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),sr=c.forwardRef(H(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=U(rr,n);return St(),(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(Ye,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,S.jsx)(Re,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":mr(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),cr=`DialogTitle`,lr=c.forwardRef(H(function(e,t){let{__scopeDialog:n,...r}=e,i=U(cr,n),{setTitleCount:a}=i;return O(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,S.jsx)(L.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),ur=`DialogDescription`,dr=c.forwardRef(H(function(e,t){let{__scopeDialog:n,...r}=e,i=U(ur,n),{setDescriptionCount:a}=i;return O(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,S.jsx)(L.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),fr=`DialogClose`,pr=c.forwardRef(H(function(e,t){let{__scopeDialog:n,...r}=e,i=U(fr,n);return(0,S.jsx)(L.button,{type:`button`,...r,ref:t,onClick:f(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function mr(e){return e?`open`:`closed`}H(mr,`getState`);var hr=Object.defineProperty,gr=(e,t)=>hr(e,`name`,{value:t,configurable:!0});function _r(e){let[t,n]=c.useState(void 0);return O(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}gr(_r,`useSize`);var vr=Object.defineProperty,yr=(e,t)=>vr(e,`name`,{value:t,configurable:!0}),br=`Switch`,[xr,Sr]=E(br),[Cr,wr]=xr(br);function Tr(e){let{__scopeSwitch:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:l,required:u,value:d=`on`,internal_do_not_use_render:f}=e,[p,m]=oe({prop:n,defaultProp:i??!1,onChange:l,caller:br}),[h,g]=c.useState(null),[_,v]=c.useState(null),y=c.useRef(!1),[b,x]=c.useReducer(e=>e+1,0),C={checked:p,setChecked:m,disabled:a,control:h,setControl:g,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:y,userInteractionCount:b,onUserInteraction:x,required:u,defaultChecked:i,isFormControl:!h||!!o||!!h.closest(`form`),bubbleInput:_,setBubbleInput:v};return(0,S.jsx)(Cr,{scope:t,...C,children:Nr(f)?f(C):r})}yr(Tr,`SwitchProvider`);var Er=`SwitchTrigger`,Dr=c.forwardRef(yr(function({__scopeSwitch:e,onClick:t,...n}
41,r){let{control:i,form:a,value:o,disabled:s,checked:l,required:u,setControl:d,setChecked:p,hasConsumerStoppedPropagationRef:m,onUserInteraction:h,isFormControl:g,bubbleInput:_}=wr(Er,e),v=x(r,d),y=c.useRef(l);return c.useEffect(()=>{let e=a?i?.ownerDocument.getElementById(a):i?.form;if(e instanceof HTMLFormElement){let t=yr(()=>p(y.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[i,a,p]),(0,S.jsx)(L.button,{type:`button`,role:`switch`,"aria-checked":l,"aria-required":u,"data-state":Pr(l),"data-disabled":s?``:void 0,disabled:s,value:o,...n,ref:v,onClick:f(t,e=>{h(),p(e=>!e),_&&g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})},`SwitchTrigger`)),Or=c.forwardRef(yr(function(e,t){let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,S.jsx)(Tr,{__scopeSwitch:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Dr,{...d,ref:t,__scopeSwitch:n}),e&&(0,S.jsx)(Mr,{__scopeSwitch:n})]})})},`Switch`)),kr=`SwitchThumb`,Ar=c.forwardRef(yr(function(e,t){let{__scopeSwitch:n,...r}=e,i=wr(kr,n);return(0,S.jsx)(L.span,{"data-state":Pr(i.checked),"data-disabled":i.disabled?``:void 0,...r,ref:t})},`SwitchThumb`)),jr=`SwitchBubbleInput`,Mr=c.forwardRef(yr(function({__scopeSwitch:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:a,userInteractionCount:o,checked:s,defaultChecked:l,required:u,disabled:d,name:p,value:m,form:h,bubbleInput:g,setBubbleInput:_}=wr(jr,e),v=x(r,_),y=_r(i),b=c.useRef(!1),C=c.useRef(s),w=c.useRef(o);c.useEffect(()=>{let e=g;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=o!==w.current;w.current=o;let i=C.current!==s;C.current=s;let c=!(r&&a.current);if(i&&n){b.current=!r;let t=new Event(`click`,{bubbles:c});n.call(e,s),e.dispatchEvent(t),b.current=!1}},[g,s,a,o]);let T=c.useRef(s);return(0,S.jsx)(L.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:l??T.current,required:u,disabled:d,name:p,value:m,form:h,...n,tabIndex:-1,ref:v,onClick:f(t,e=>{b.current&&e.stopPropagation()}),style:{...n.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`SwitchBubbleInput`));function Nr(e){return typeof e==`function`}yr(Nr,`isFunction`);function Pr(e){return e?`checked`:`unchecked`}yr(Pr,`getState`);var Fr=[`top`,`right`,`bottom`,`left`],Ir=Math.min,W=Math.max,Lr=Math.round,Rr=Math.floor,G=e=>({x:e,y:e}),zr={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Br(e,t,n){return W(e,Ir(t,n))}function K(e,t){return typeof e==`function`?e(t):e}function q(e){return e.split(`-`)[0]}function Vr(e){return e.split(`-`)[1]}function Hr(e){return e===`x`?`y`:`x`}function Ur(e){return e===`y`?`height`:`width`}function J(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Wr(e){return Hr(J(e))}function Gr(e,t,n){n===void 0&&(n=!1);let r=Vr(e),i=Wr(e),a=Ur(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ei(o)),[o,ei(o)]}function Kr(e){let t=ei(e);return[qr(e),t,qr(t)]}function qr(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Jr=[`left`,`right`],Yr=[`right`,`left`],Xr=[`top`,`bottom`],Zr=[`bottom`,`top`];function Qr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Yr:Jr:t?Jr:Yr;case`left`:case`right`:return t?Xr:Zr;default:return[]}}function $r(e,t,n,r){let i=Vr(e),a=Qr(q(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(qr)))),a}function ei(e){let t=q(e);return zr[t]+e.slice(t.length)}function ti(e){return{top:0,right:0,bottom:0,left:0,...e}}function ni(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ti(e)}function ri(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ii(e,t,n){let{reference:r,floating:i}=e,a=J(t),o=Wr(t),s=Ur(o),c=q(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Vr(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1)}return p}async function ai(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=K(t,e),p=ni(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ri(await i.getClippingRect
vendor: 4,605 bytes, line 41
41({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ri(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var oi=50,si=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ai},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ii(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<oi&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ii(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ci=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=K(e,t)||{};if(l==null)return{};let d=ni(u),f={x:n,y:r},p=Wr(i),m=Ur(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ir(d[_],T),D=Ir(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Br(O,A,k),M=!c.arrow&&Vr(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),li=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=K(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=q(r),_=J(o),v=q(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ei(o)]:Kr(o)),x=p!==`none`;!d&&x&&b.push(...$r(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Gr(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===J(t)||T.every(e=>J(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=J(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function ui(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function di(e){return Fr.some(t=>e[t]>=0)}var fi=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=K(e,t);switch(i){case`referenceHidden`:{let e=ui(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:di(e)}}}case`escaped`:{let e=ui(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:di(e)}}}default:return{}}}}},pi=new Set([`left`,`top`]);async function mi(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=q(n),s=Vr(n),c=J(n)===`y`,l=pi.has(o)?-1:1,u=a&&c?-1:1,d=K(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}
41:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var hi=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await mi(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},gi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=K(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=J(q(i)),p=Hr(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Br(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Br(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},_i=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=K(e,t),u={x:n,y:r},d=J(i),f=Hr(d),p=u[f],m=u[d],h=K(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=pi.has(q(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},vi=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=K(e,t),u=await o.detectOverflow(t,l),d=q(i),f=Vr(i),p=J(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ir(h-u[g],v),x=Ir(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=W(u.left,0),t=W(u.right,0),n=W(u.top,0),r=W(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:W(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:W(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function yi(){return typeof window<`u`}function bi(e){return xi(e)?(e.nodeName||``).toLowerCase():`#document`}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function X(e){return((xi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function xi(e){return yi()?e instanceof Node||e instanceof Y(e).Node:!1}function Z(e){return yi()?e instanceof Element||e instanceof Y(e).Element:!1}function Q(e){return yi()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function Si(e){return!yi()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}function Ci(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function wi(e){return/^(table|td|th)$/.test(bi(e))}function Ti(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ei=/transform|translate|scale|rotate|perspective|filter/,Di=/paint|layout|strict|content/,Oi=e=>!!e&&e!==`none`,ki;function Ai(e){let t=Z(e)?$(e):e;return Oi(t.transform)||Oi(t.translate)||Oi(t.scale)||Oi(t.rotate)||Oi(t.perspective)||!Mi()&&(Oi(t.backdropFilter)||Oi(t.filter))||Ei.test(t.willChange||``)||Di.test(t.contain||``)}function ji(e){let t=Fi(e);for(;Q(t)&&!Ni(t);){if(Ai(t))return t;if(Ti(t))return null;t=Fi(t)}return null}function Mi(){return ki??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ki}function Ni(e){return/^(html|body|#document)$/.test(bi(e))}function $(e){return Y(e).getComputedStyle(e)}function Pi(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fi(e){if(bi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Si(e)&&e.host||X(e);return Si(t)?t.host:t}function Ii(e){let t=Fi(e);return Ni(t)?e.ownerDocument?e.ownerDocument.body:e.body:Q(t)&&Ci(t)?t:Ii(t)}function Li(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ii(e),i=r===e.ownerDocument?.body,a=Y(r);if(i){let e=Ri(a);
vendor: 4,108 bytes, line 41
41return t.concat(a,a.visualViewport||[],Ci(r)?r:[],e&&n?Li(e):[])}return t.concat(r,Li(r,[],n))}function Ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zi(e){let t=$(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Q(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Lr(n)!==a||Lr(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Bi(e){return Z(e)?e:e.contextElement}function Vi(e){let t=Bi(e);if(!Q(t))return G(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=zi(t),o=(a?Lr(n.width):n.width)/r,s=(a?Lr(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Hi=G(0);function Ui(e){let t=Y(e);return!Mi()||!t.visualViewport?Hi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Y(e)?!1:t}function Gi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Bi(e),o=G(1);t&&(r?Z(r)&&(o=Vi(r)):o=Vi(e));let s=Wi(a,n,r)?Ui(a):G(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Y(a),t=r&&Z(r)?Y(r):r,n=e,i=Ri(n);for(;i&&r&&t!==n;){let e=Vi(i),t=i.getBoundingClientRect(),r=$(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Y(i),i=Ri(n)}}return ri({width:u,height:d,x:c,y:l})}function Ki(e,t){let n=Pi(e).scrollLeft;return t?t.left+n:Gi(X(e)).left+n}function qi(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ki(e,n),y:n.top+t.scrollTop}}function Ji(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=X(r),s=t?Ti(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=G(1),u=G(0),d=Q(r);if((d||!d&&!a)&&((bi(r)!==`body`||Ci(o))&&(c=Pi(r)),d)){let e=Gi(r);l=Vi(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?qi(o,c):G(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Yi(e){return Array.from(e.getClientRects())}function Xi(e){let t=X(e),n=Pi(e),r=e.ownerDocument.body,i=W(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=W(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ki(e),s=-n.scrollTop;return $(r).direction===`rtl`&&(o+=W(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Zi=25;function Qi(e,t){let n=Y(e),r=X(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Mi();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ki(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Zi&&(a-=o)}else l<=Zi&&(a+=l);return{width:a,height:o,x:s,y:c}}function $i(e,t){let n=Gi(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Q(e)?Vi(e):G(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ea(e,t,n){let r;if(t===`viewport`)r=Qi(e,n);else if(t===`document`)r=Xi(X(e));else if(Z(t))r=$i(t,n);else{let n=Ui(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ri(r)}function ta(e,t){let n=Fi(e);return n===t||!Z(n)||Ni(n)?!1:$(n).position===`fixed`||ta(n,t)}function na(e,t){let n=t.get(e);if(n)return n;let r=Li(e,[],!1).filter(e=>Z(e)&&bi(e)!==`body`),i=null,a=$(e).position===`fixed`,o=a?Fi(e):e;for(;Z(o)&&!Ni(o);){let t=$(o),n=Ai(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ci(o)&&!n&&ta(e,o))?r=r.filter(e=>e!==o):i=t,o=Fi(o)}return t.set(e,r),r}function ra(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ti(t)?[]:na(t,this._c):[].concat(n),r],o=ea(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ea(t,a[e],i);s=W(n.top,s),c=Ir(n.right,c),l=Ir(n.bottom,l),u=W(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function ia(e){let{width:t,height:n}=zi(e);return{width:t,height:n}}
vendor: 4,261 bytes, line 41
41function aa(e,t,n){let r=Q(t),i=X(t),a=n===`fixed`,o=Gi(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=G(0);function l(){c.x=Ki(i)}if(r||!r&&!a){if((bi(t)!==`body`||Ci(i))&&(s=Pi(t)),r){let e=Gi(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l()}a&&!r&&i&&l();let u=i&&!r&&!a?qi(i,s):G(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function oa(e){return $(e).position===`static`}function sa(e,t){if(!Q(e)||$(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function ca(e,t){let n=Y(e);if(Ti(e))return n;if(!Q(e)){let t=Fi(e);for(;t&&!Ni(t);){if(Z(t)&&!oa(t))return t;t=Fi(t)}return n}let r=sa(e,t);for(;r&&wi(r)&&oa(r);)r=sa(r,t);return r&&Ni(r)&&oa(r)&&!Ai(r)?n:r||ji(e)||n}var la=async function(e){let t=this.getOffsetParent||ca,n=this.getDimensions,r=await n(e.floating);return{reference:aa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ua(e){return $(e).direction===`rtl`}var da={convertOffsetParentRelativeRectToViewportRelativeRect:Ji,getDocumentElement:X,getClippingRect:ra,getOffsetParent:ca,getElementRects:la,getClientRects:Yi,getDimensions:ia,getScale:Vi,isElement:Z,isRTL:ua};function fa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pa(e,t){let n=null,r,i=X(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Rr(d),h=Rr(i.clientWidth-(u+f)),g=Rr(i.clientHeight-(d+p)),_=Rr(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:W(0,Ir(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!fa(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function ma(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Bi(e),u=i||a?[...l?Li(l):[],...t?Li(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?pa(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Gi(e):null;c&&g();function g(){let t=Gi(e);h&&!fa(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ha=hi,ga=gi,_a=li,va=vi,ya=fi,ba=ci,xa=_i,Sa=(e,t,n)=>{let r=new Map,i={platform:da,...n},a={...i.platform,_c:r};return si(e,t,{...i,platform:a})},Ca=typeof document<`u`?c.useLayoutEffect:function(){};function wa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!wa(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!wa(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ta(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ea(e,t){let n=Ta(e);return Math.round(t*n)/n}function Da(e){let t=c.useRef(e);return Ca(()=>{t.current=e}),t}function Oa(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=c.useState(r);wa(p,r)||m(r);let[h,g]=c.useState(null),[_,v]=c.useState(null),y=c.useCallback(e=>
41{e!==C.current&&(C.current=e,g(e))},[]),b=c.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=c.useRef(null),w=c.useRef(null),T=c.useRef(d),E=l!=null,D=Da(l),O=Da(i),k=Da(u),A=c.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),Sa(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!wa(T.current,t)&&(T.current=t,de.flushSync(()=>{f(t)}))})},[p,t,n,O,k]);Ca(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let j=c.useRef(!1);Ca(()=>(j.current=!0,()=>{j.current=!1}),[]),Ca(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=c.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=c.useMemo(()=>({reference:x,floating:S}),[x,S]),P=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Ea(N.floating,d.x),r=Ea(N.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Ta(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:A,refs:M,elements:N,floatingStyles:P}),[d,A,M,N,P])}var ka=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:ba({element:r.current,padding:i}).fn(n):r?ba({element:r,padding:i}).fn(n):{}}}},Aa=(e,t)=>{let n=ha(e);return{name:n.name,fn:n.fn,options:[e,t]}},ja=(e,t)=>{let n=ga(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ma=(e,t)=>({fn:xa(e).fn,options:[e,t]}),Na=(e,t)=>{let n=_a(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pa=(e,t)=>{let n=va(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fa=(e,t)=>{let n=ya(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ia=(e,t)=>{let n=ka(e);return{name:n.name,fn:n.fn,options:[e,t]}},La=Object.defineProperty,Ra=(e,t)=>La(e,`name`,{value:t,configurable:!0}),za=`Popper`,[Ba,Va]=E(za),[Ha,Ua]=Ba(za),Wa=Ra(e=>{let{__scopePopper:t,children:n}=e,[r,i]=c.useState(null),[a,o]=c.useState(void 0);return(0,S.jsx)(Ha,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Ga=`PopperAnchor`,Ka=c.forwardRef(Ra(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Ua(Ga,n),o=c.useRef(null),s=a.onAnchorChange,l=x(t,c.useCallback(e=>{o.current=e,e&&s(e)},[s])),u=c.useRef(null);c.useEffect(()=>{if(!r)return;let e=u.current;u.current=r.current,e!==u.current&&s(u.current)});let d=a.placementState&&$a(a.placementState),f=d?.[0],p=d?.[1];return r?null:(0,S.jsx)(L.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...i,ref:l})},`PopperAnchor`)),qa=`PopperContent`,[Ja,Ya]=Ba(qa),Xa=c.forwardRef(Ra(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:p=!1,updatePositionStrategy:m=`optimized`,onPlaced:h,...g}=e,_=Ua(qa,n),[v,y]=c.useState(null),b=x(t,y),[C,w]=c.useState(null),T=_r(C),E=T?.width??0,D=T?.height??0,k=r+(a===`center`?``:`-`+a),A=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},j=Array.isArray(u)?u:[u],M=j.length>0,N={padding:A,boundary:j.filter(Za),altBoundary:M},{refs:P,floatingStyles:ee,placement:te,isPositioned:ne,middlewareData:F}=Oa({strategy:`fixed`,placement:k,whileElementsMounted:Ra((...e)=>ma(...e,{animationFrame:m===`always`}),`whileElementsMounted`),elements:{reference:_.anchor},middleware:[Aa({mainAxis:i+D,alignmentAxis:o}),l&&ja({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?Ma():void 0,...N}),l&&Na({...N}),Pa({...N,apply:Ra(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}
41),C&&Ia({element:C,padding:s}),Qa({arrowWidth:E,arrowHeight:D}),p&&Fa({strategy:`referenceHidden`,...N,boundary:M?N.boundary:void 0})]}),re=_.setPlacementState;O(()=>(re(te),()=>{re(void 0)}),[te,re]);let[ie,ae]=$a(te),oe=je(h);O(()=>{ne&&oe?.()},[ne,oe]);let se=F.arrow?.x,ce=F.arrow?.y,le=F.arrow?.centerOffset!==0,[ue,de]=c.useState();return O(()=>{v&&de(window.getComputedStyle(v).zIndex)},[v]),(0,S.jsx)(`div`,{ref:P.setFloating,"data-radix-popper-content-wrapper":``,style:{...ee,transform:ne?ee.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ue,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(` `),...F.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,S.jsx)(Ja,{scope:n,placedSide:ie,placedAlign:ae,onArrowChange:w,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,S.jsx)(L.div,{"data-side":ie,"data-align":ae,...g,ref:b,style:{...g.style,animation:ne?g.style?.animation:`none`}})})})},`PopperContent`));function Za(e){return e!==null}Ra(Za,`isNotNull`);var Qa=Ra(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=$a(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function $a(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Ra($a,`getSideAndAlignFromPlacement`);var eo=Wa,to=Ka,no=Xa,ro=Object.defineProperty,io=(e,t)=>ro(e,`name`,{value:t,configurable:!0}),ao=`Popover`,[oo,so]=E(ao,[Va]),co=Va(),[lo,uo]=oo(ao),fo=io(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=co(t),l=c.useRef(null),[u,d]=c.useState(!1),[f,p]=oe({prop:r,defaultProp:i??!1,onChange:a,caller:ao});return(0,S.jsx)(eo,{...s,children:(0,S.jsx)(lo,{scope:t,contentId:N(),triggerRef:l,open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>d(!0),[]),onCustomAnchorRemove:c.useCallback(()=>d(!1),[]),modal:o,children:n})})},`Popover`),po=`PopoverTrigger`,mo=c.forwardRef(io(function(e,t){let{__scopePopover:n,...r}=e,i=uo(po,n),a=co(n),o=x(t,i.triggerRef),s=(0,S.jsx)(L.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":To(i.open),...r,ref:o,onClick:f(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,S.jsx)(to,{asChild:!0,...a,children:s})},`PopoverTrigger`)),ho=`PopoverPortal`,[go,_o]=oo(ho,{forceMount:void 0}),vo=io(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=uo(ho,t);return(0,S.jsx)(go,{scope:t,forceMount:n,children:(0,S.jsx)(dt,{present:n||a.open,children:(0,S.jsx)(ct,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),yo=`PopoverContent`,bo=c.forwardRef(io(function(e,t){let n=_o(yo,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=uo(yo,e.__scopePopover);return(0,S.jsx)(dt,{present:r||a.open,children:a.modal?(0,S.jsx)(So,{...i,ref:t}):(0,S.jsx)(Co,{...i,ref:t})})},`PopoverContent`)),xo=pe(`PopoverContent.RemoveScroll`),So=c.forwardRef(io(function(e,t){let n=uo(yo,e.__scopePopover),r=c.useRef(null),i=x(t,r),a=c.useRef(!1);return c.useEffect(()=>{let e=r.current;if(e)return Bn(e)},[]),(0,S.jsx)(jn,{as:xo,allowPinchZoom:!0,children:(0,S.jsx)(wo,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:f(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),Co=c.forwardRef(io(function(e,t){let n=uo(yo,e.__scopePopover),r=c.useRef(!1),i=c.useRef(!1);return(0,S.jsx)(wo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),wo=c.forwardRef(io(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=uo(yo,n),p=co(n);return St(),(0,S.jsx)(Ye,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,S.jsx)(Re,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,S.jsx)(no,{"data-state":To(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})},`PopoverContentImpl`));function To(e){return e?`open`:`closed`}io(To,`getState`);var Eo=fo,Do=mo,Oo=vo,ko=bo;export{b as _,Or as a,r as b,pr as c,er as d,Qn as f,N as g,L as h,Do as i,ir as l,Jn as m,Oo as n,Ar as o,lr as p,Eo as r,Kn as s,ko as t,dr as u,s as v,a as y};
42//# sourceMappingURL=radix-CkTspAmM.js.map

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.