react-big-nepali-calendar
Version:
The Nepali Calendar Package is a lightweight and easy-to-use library that allows users to view the Nepali (Bikram Sambat) calendar and explore events on specific dates. Designed for developers and applications that require localized date management.
134 lines (125 loc) • 167 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("react"),No=require("react-dom");function Ao(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=Ao(ie),un=Ao(No);function As(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lt={exports:{}},Rt={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Wr;function Os(){if(Wr)return Rt;Wr=1;var e=ie,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,c,u){var f,m={},v=null,y=null;u!==void 0&&(v=""+u),c.key!==void 0&&(v=""+c.key),c.ref!==void 0&&(y=c.ref);for(f in c)r.call(c,f)&&!a.hasOwnProperty(f)&&(m[f]=c[f]);if(i&&i.defaultProps)for(f in c=i.defaultProps,c)m[f]===void 0&&(m[f]=c[f]);return{$$typeof:t,type:i,key:v,ref:y,props:m,_owner:o.current}}return Rt.Fragment=n,Rt.jsx=s,Rt.jsxs=s,Rt}var Pt={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Br;function Ds(){return Br||(Br=1,process.env.NODE_ENV!=="production"&&function(){var e=ie,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),w=Symbol.iterator,d="@@iterator";function g(h){if(h===null||typeof h!="object")return null;var N=w&&h[w]||h[d];return typeof N=="function"?N:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(h){{for(var N=arguments.length,j=new Array(N>1?N-1:0),Y=1;Y<N;Y++)j[Y-1]=arguments[Y];S("error",h,j)}}function S(h,N,j){{var Y=x.ReactDebugCurrentFrame,Q=Y.getStackAddendum();Q!==""&&(N+="%s",j=j.concat([Q]));var ae=j.map(function(Z){return String(Z)});ae.unshift("Warning: "+N),Function.prototype.apply.call(console[h],console,ae)}}var R=!1,P=!1,k=!1,A=!1,F=!1,V;V=Symbol.for("react.module.reference");function $(h){return!!(typeof h=="string"||typeof h=="function"||h===r||h===a||F||h===o||h===u||h===f||A||h===y||R||P||k||typeof h=="object"&&h!==null&&(h.$$typeof===v||h.$$typeof===m||h.$$typeof===s||h.$$typeof===i||h.$$typeof===c||h.$$typeof===V||h.getModuleId!==void 0))}function I(h,N,j){var Y=h.displayName;if(Y)return Y;var Q=N.displayName||N.name||"";return Q!==""?j+"("+Q+")":j}function L(h){return h.displayName||"Context"}function H(h){if(h==null)return null;if(typeof h.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case i:var N=h;return L(N)+".Consumer";case s:var j=h;return L(j._context)+".Provider";case c:return I(h,h.render,"ForwardRef");case m:var Y=h.displayName||null;return Y!==null?Y:H(h.type)||"Memo";case v:{var Q=h,ae=Q._payload,Z=Q._init;try{return H(Z(ae))}catch{return null}}}return null}var O=Object.assign,T=0,E,D,C,M,_,B,J;function re(){}re.__reactDisabledLog=!0;function oe(){{if(T===0){E=console.log,D=console.info,C=console.warn,M=console.error,_=console.group,B=console.groupCollapsed,J=console.groupEnd;var h={configurable:!0,enumerable:!0,value:re,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}T++}}function ue(){{if(T--,T===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},h,{value:E}),info:O({},h,{value:D}),warn:O({},h,{value:C}),error:O({},h,{value:M}),group:O({},h,{value:_}),groupCollapsed:O({},h,{value:B}),groupEnd:O({},h,{value:J})})}T<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var he=x.ReactCurrentDispatcher,W;function X(h,N,j){{if(W===void 0)try{throw Error()}catch(Q){var Y=Q.stack.trim().match(/\n( *(at )?)/);W=Y&&Y[1]||""}return`
`+W+h}}var ee=!1,z;{var G=typeof WeakMap=="function"?WeakMap:Map;z=new G}function K(h,N){if(!h||ee)return"";{var j=z.get(h);if(j!==void 0)return j}var Y;ee=!0;var Q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=he.current,he.current=null,oe();try{if(N){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(ye){Y=ye}Reflect.construct(h,[],Z)}else{try{Z.call()}catch(ye){Y=ye}h.call(Z.prototype)}}else{try{throw Error()}catch(ye){Y=ye}h()}}catch(ye){if(ye&&Y&&typeof ye.stack=="string"){for(var q=ye.stack.split(`
`),ge=Y.stack.split(`
`),de=q.length-1,pe=ge.length-1;de>=1&&pe>=0&&q[de]!==ge[pe];)pe--;for(;de>=1&&pe>=0;de--,pe--)if(q[de]!==ge[pe]){if(de!==1||pe!==1)do if(de--,pe--,pe<0||q[de]!==ge[pe]){var Se=`
`+q[de].replace(" at new "," at ");return h.displayName&&Se.includes("<anonymous>")&&(Se=Se.replace("<anonymous>",h.displayName)),typeof h=="function"&&z.set(h,Se),Se}while(de>=1&&pe>=0);break}}}finally{ee=!1,he.current=ae,ue(),Error.prepareStackTrace=Q}var at=h?h.displayName||h.name:"",Xe=at?X(at):"";return typeof h=="function"&&z.set(h,Xe),Xe}function fe(h,N,j){return K(h,!1)}function we(h){var N=h.prototype;return!!(N&&N.isReactComponent)}function Ae(h,N,j){if(h==null)return"";if(typeof h=="function")return K(h,we(h));if(typeof h=="string")return X(h);switch(h){case u:return X("Suspense");case f:return X("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case c:return fe(h.render);case m:return Ae(h.type,N,j);case v:{var Y=h,Q=Y._payload,ae=Y._init;try{return Ae(ae(Q),N,j)}catch{}}}return""}var Ce=Object.prototype.hasOwnProperty,Fe={},$t=x.ReactDebugCurrentFrame;function je(h){if(h){var N=h._owner,j=Ae(h.type,h._source,N?N.type:null);$t.setExtraStackFrame(j)}else $t.setExtraStackFrame(null)}function ss(h,N,j,Y,Q){{var ae=Function.call.bind(Ce);for(var Z in h)if(ae(h,Z)){var q=void 0;try{if(typeof h[Z]!="function"){var ge=Error((Y||"React class")+": "+j+" type `"+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[Z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ge.name="Invariant Violation",ge}q=h[Z](N,Z,Y,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(de){q=de}q&&!(q instanceof Error)&&(je(Q),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Y||"React class",j,Z,typeof q),je(null)),q instanceof Error&&!(q.message in Fe)&&(Fe[q.message]=!0,je(Q),b("Failed %s type: %s",j,q.message),je(null))}}}var cs=Array.isArray;function Sn(h){return cs(h)}function ls(h){{var N=typeof Symbol=="function"&&Symbol.toStringTag,j=N&&h[Symbol.toStringTag]||h.constructor.name||"Object";return j}}function us(h){try{return Ar(h),!1}catch{return!0}}function Ar(h){return""+h}function Or(h){if(us(h))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ls(h)),Ar(h)}var Et=x.ReactCurrentOwner,ds={key:!0,ref:!0,__self:!0,__source:!0},Dr,Mr,Cn;Cn={};function fs(h){if(Ce.call(h,"ref")){var N=Object.getOwnPropertyDescriptor(h,"ref").get;if(N&&N.isReactWarning)return!1}return h.ref!==void 0}function ps(h){if(Ce.call(h,"key")){var N=Object.getOwnPropertyDescriptor(h,"key").get;if(N&&N.isReactWarning)return!1}return h.key!==void 0}function hs(h,N){if(typeof h.ref=="string"&&Et.current&&N&&Et.current.stateNode!==N){var j=H(Et.current.type);Cn[j]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',H(Et.current.type),h.ref),Cn[j]=!0)}}function ms(h,N){{var j=function(){Dr||(Dr=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};j.isReactWarning=!0,Object.defineProperty(h,"key",{get:j,configurable:!0})}}function gs(h,N){{var j=function(){Mr||(Mr=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};j.isReactWarning=!0,Object.defineProperty(h,"ref",{get:j,configurable:!0})}}var vs=function(h,N,j,Y,Q,ae,Z){var q={$$typeof:t,type:h,key:N,ref:j,props:Z,_owner:ae};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Q}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function ys(h,N,j,Y,Q){{var ae,Z={},q=null,ge=null;j!==void 0&&(Or(j),q=""+j),ps(N)&&(Or(N.key),q=""+N.key),fs(N)&&(ge=N.ref,hs(N,Q));for(ae in N)Ce.call(N,ae)&&!ds.hasOwnProperty(ae)&&(Z[ae]=N[ae]);if(h&&h.defaultProps){var de=h.defaultProps;for(ae in de)Z[ae]===void 0&&(Z[ae]=de[ae])}if(q||ge){var pe=typeof h=="function"?h.displayName||h.name||"Unknown":h;q&&ms(Z,pe),ge&&gs(Z,pe)}return vs(h,q,ge,Q,Y,Et.current,Z)}}var En=x.ReactCurrentOwner,jr=x.ReactDebugCurrentFrame;function ot(h){if(h){var N=h._owner,j=Ae(h.type,h._source,N?N.type:null);jr.setExtraStackFrame(j)}else jr.setExtraStackFrame(null)}var Rn;Rn=!1;function Pn(h){return typeof h=="object"&&h!==null&&h.$$typeof===t}function kr(){{if(En.current){var h=H(En.current.type);if(h)return`
Check the render method of \``+h+"`."}return""}}function bs(h){return""}var _r={};function xs(h){{var N=kr();if(!N){var j=typeof h=="string"?h:h.displayName||h.name;j&&(N=`
Check the top-level render call using <`+j+">.")}return N}}function Ir(h,N){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var j=xs(N);if(_r[j])return;_r[j]=!0;var Y="";h&&h._owner&&h._owner!==En.current&&(Y=" It was passed a child from "+H(h._owner.type)+"."),ot(h),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,Y),ot(null)}}function $r(h,N){{if(typeof h!="object")return;if(Sn(h))for(var j=0;j<h.length;j++){var Y=h[j];Pn(Y)&&Ir(Y,N)}else if(Pn(h))h._store&&(h._store.validated=!0);else if(h){var Q=g(h);if(typeof Q=="function"&&Q!==h.entries)for(var ae=Q.call(h),Z;!(Z=ae.next()).done;)Pn(Z.value)&&Ir(Z.value,N)}}}function ws(h){{var N=h.type;if(N==null||typeof N=="string")return;var j;if(typeof N=="function")j=N.propTypes;else if(typeof N=="object"&&(N.$$typeof===c||N.$$typeof===m))j=N.propTypes;else return;if(j){var Y=H(N);ss(j,h.props,"prop",Y,h)}else if(N.PropTypes!==void 0&&!Rn){Rn=!0;var Q=H(N);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Q||"Unknown")}typeof N.getDefaultProps=="function"&&!N.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ss(h){{for(var N=Object.keys(h.props),j=0;j<N.length;j++){var Y=N[j];if(Y!=="children"&&Y!=="key"){ot(h),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),ot(null);break}}h.ref!==null&&(ot(h),b("Invalid attribute `ref` supplied to `React.Fragment`."),ot(null))}}var Lr={};function Fr(h,N,j,Y,Q,ae){{var Z=$(h);if(!Z){var q="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ge=bs();ge?q+=ge:q+=kr();var de;h===null?de="null":Sn(h)?de="array":h!==void 0&&h.$$typeof===t?(de="<"+(H(h.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):de=typeof h,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",de,q)}var pe=ys(h,N,j,Q,ae);if(pe==null)return pe;if(Z){var Se=N.children;if(Se!==void 0)if(Y)if(Sn(Se)){for(var at=0;at<Se.length;at++)$r(Se[at],h);Object.freeze&&Object.freeze(Se)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $r(Se,h)}if(Ce.call(N,"key")){var Xe=H(h),ye=Object.keys(N).filter(function(Ns){return Ns!=="key"}),Tn=ye.length>0?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}";if(!Lr[Xe+Tn]){var Ts=ye.length>0?"{"+ye.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,Tn,Xe,Ts,Xe),Lr[Xe+Tn]=!0}}return h===r?Ss(pe):ws(pe),pe}}function Cs(h,N,j){return Fr(h,N,j,!0)}function Es(h,N,j){return Fr(h,N,j,!1)}var Rs=Es,Ps=Cs;Pt.Fragment=r,Pt.jsx=Rs,Pt.jsxs=Ps}()),Pt}var Vr;function Ms(){return Vr||(Vr=1,process.env.NODE_ENV==="production"?Lt.exports=Os():Lt.exports=Ds()),Lt.exports}var p=Ms();function te(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function zr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Oo(...e){return t=>{let n=!1;const r=e.map(o=>{const a=zr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():zr(e[o],null)}}}}function le(...e){return l.useCallback(Oo(...e),e)}function js(e,t){const n=l.createContext(t),r=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(a){const s=l.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function dn(e,t=[]){let n=[];function r(a,s){const i=l.createContext(s),c=n.length;n=[...n,s];const u=m=>{var x;const{scope:v,children:y,...w}=m,d=((x=v==null?void 0:v[e])==null?void 0:x[c])||i,g=l.useMemo(()=>w,Object.values(w));return p.jsx(d.Provider,{value:g,children:y})};u.displayName=a+"Provider";function f(m,v){var d;const y=((d=v==null?void 0:v[e])==null?void 0:d[c])||i,w=l.useContext(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(s=>l.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,ks(o,...t)]}function ks(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:c,scopeName:u})=>{const m=c(a)[`__scope${u}`];return{...i,...m}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ve=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},_s=l.useId||(()=>{}),Is=0;function ft(e){const[t,n]=l.useState(_s());return ve(()=>{n(r=>r??String(Is++))},[e]),t?`radix-${t}`:""}function Re(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Yn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=$s({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,i=Re(n),c=l.useCallback(u=>{if(a){const m=typeof u=="function"?u(e):u;m!==e&&i(m)}else o(u)},[a,e,o,i]);return[s,c]}function $s({defaultProp:e,onChange:t}){const n=l.useState(e),[r]=n,o=l.useRef(r),a=Re(t);return l.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var et=l.forwardRef((e,t)=>{const{children:n,...r}=e,o=l.Children.toArray(n),a=o.find(Fs);if(a){const s=a.props.children,i=o.map(c=>c===a?l.Children.count(s)>1?l.Children.only(null):l.isValidElement(s)?s.props.children:null:c);return p.jsx(Hn,{...r,ref:t,children:l.isValidElement(s)?l.cloneElement(s,void 0,i):null})}return p.jsx(Hn,{...r,ref:t,children:n})});et.displayName="Slot";var Hn=l.forwardRef((e,t)=>{const{children:n,...r}=e;if(l.isValidElement(n)){const o=Bs(n);return l.cloneElement(n,{...Ws(r,n.props),ref:t?Oo(t,o):o})}return l.Children.count(n)>1?l.Children.only(null):null});Hn.displayName="SlotClone";var Ls=({children:e})=>p.jsx(p.Fragment,{children:e});function Fs(e){return l.isValidElement(e)&&e.type===Ls}function Ws(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{a(...i),o(...i)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Bs(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Vs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ne=Vs.reduce((e,t)=>{const n=l.forwardRef((r,o)=>{const{asChild:a,...s}=r,i=a?et:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(i,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Do(e,t){e&&un.flushSync(()=>e.dispatchEvent(t))}function Mo(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var zs="DismissableLayer",Un="dismissableLayer.update",Ys="dismissableLayer.pointerDownOutside",Hs="dismissableLayer.focusOutside",Yr,jo=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ko=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=l.useContext(jo),[f,m]=l.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=l.useState({}),w=le(t,A=>m(A)),d=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=d.indexOf(g),b=f?d.indexOf(f):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,R=b>=x,P=Ks(A=>{const F=A.target,V=[...u.branches].some($=>$.contains(F));!R||V||(o==null||o(A),s==null||s(A),A.defaultPrevented||i==null||i())},v),k=Xs(A=>{const F=A.target;[...u.branches].some($=>$.contains(F))||(a==null||a(A),s==null||s(A),A.defaultPrevented||i==null||i())},v);return Mo(A=>{b===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},v),l.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yr=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Hr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Yr)}},[f,v,n,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Hr())},[f,u]),l.useEffect(()=>{const A=()=>y({});return document.addEventListener(Un,A),()=>document.removeEventListener(Un,A)},[]),p.jsx(ne.div,{...c,ref:w,style:{pointerEvents:S?R?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,k.onFocusCapture),onBlurCapture:te(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,P.onPointerDownCapture)})});ko.displayName=zs;var Us="DismissableLayerBranch",Gs=l.forwardRef((e,t)=>{const n=l.useContext(jo),r=l.useRef(null),o=le(t,r);return l.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),p.jsx(ne.div,{...e,ref:o})});Gs.displayName=Us;function Ks(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let c=function(){_o(Ys,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xs(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!r.current&&_o(Hs,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Hr(){const e=new CustomEvent(Un);document.dispatchEvent(e)}function _o(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Do(o,a):o.dispatchEvent(a)}var Nn="focusScope.autoFocusOnMount",An="focusScope.autoFocusOnUnmount",Ur={bubbles:!1,cancelable:!0},qs="FocusScope",lr=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),u=Re(o),f=Re(a),m=l.useRef(null),v=le(t,d=>c(d)),y=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let d=function(S){if(y.paused||!i)return;const R=S.target;i.contains(R)?m.current=R:ze(m.current,{select:!0})},g=function(S){if(y.paused||!i)return;const R=S.relatedTarget;R!==null&&(i.contains(R)||ze(m.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const P of S)P.removedNodes.length>0&&ze(i)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const b=new MutationObserver(x);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),b.disconnect()}}},[r,i,y.paused]),l.useEffect(()=>{if(i){Kr.add(y);const d=document.activeElement;if(!i.contains(d)){const x=new CustomEvent(Nn,Ur);i.addEventListener(Nn,u),i.dispatchEvent(x),x.defaultPrevented||(Zs(nc(Io(i)),{select:!0}),document.activeElement===d&&ze(i))}return()=>{i.removeEventListener(Nn,u),setTimeout(()=>{const x=new CustomEvent(An,Ur);i.addEventListener(An,f),i.dispatchEvent(x),x.defaultPrevented||ze(d??document.body,{select:!0}),i.removeEventListener(An,f),Kr.remove(y)},0)}}},[i,u,f,y]);const w=l.useCallback(d=>{if(!n&&!r||y.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,x=document.activeElement;if(g&&x){const b=d.currentTarget,[S,R]=Js(b);S&&R?!d.shiftKey&&x===R?(d.preventDefault(),n&&ze(S,{select:!0})):d.shiftKey&&x===S&&(d.preventDefault(),n&&ze(R,{select:!0})):x===b&&d.preventDefault()}},[n,r,y.paused]);return p.jsx(ne.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});lr.displayName=qs;function Zs(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ze(r,{select:t}),document.activeElement!==n)return}function Js(e){const t=Io(e),n=Gr(t,e),r=Gr(t.reverse(),e);return[n,r]}function Io(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gr(e,t){for(const n of e)if(!Qs(n,{upTo:t}))return n}function Qs(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}function ec(e){return e instanceof HTMLInputElement&&"select"in e}function ze(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ec(e)&&t&&e.select()}}var Kr=tc();function tc(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xr(e,t),e.unshift(t)},remove(t){var n;e=Xr(e,t),(n=e[0])==null||n.resume()}}}function Xr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function nc(e){return e.filter(t=>t.tagName!=="A")}var rc="Portal",ur=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=l.useState(!1);ve(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?No.createPortal(p.jsx(ne.div,{...r,ref:t}),s):null});ur.displayName=rc;function oc(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var fn=e=>{const{present:t,children:n}=e,r=ac(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),a=le(r.ref,ic(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:a}):null};fn.displayName="Presence";function ac(e){const[t,n]=l.useState(),r=l.useRef({}),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=oc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ft(r.current);a.current=i==="mounted"?u:"none"},[i]),ve(()=>{const u=r.current,f=o.current;if(f!==e){const v=a.current,y=Ft(u);e?c("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&v!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ve(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,m=y=>{const d=Ft(r.current).includes(y.animationName);if(y.target===t&&d&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=y=>{y.target===t&&(a.current=Ft(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ft(e){return(e==null?void 0:e.animationName)||"none"}function ic(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var On=0;function $o(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qr()),document.body.insertAdjacentElement("beforeend",e[1]??qr()),On++,()=>{On===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),On--}},[])}function qr(){const 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}var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},me.apply(this,arguments)};function pn(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Lo(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Xt="right-scroll-bar-position",qt="width-before-scroll-bar",sc="with-scroll-bars-hidden",cc="--removed-body-scroll-bar-size";function Dn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lc(e,t){var n=ie.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var uc=typeof window<"u"?l.useLayoutEffect:l.useEffect,Zr=new WeakMap;function dc(e,t){var n=lc(null,function(r){return e.forEach(function(o){return Dn(o,r)})});return uc(function(){var r=Zr.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Dn(i,null)}),a.forEach(function(i){o.has(i)||Dn(i,s)})}Zr.set(n,e)},[e]),n}function fc(e){return e}function pc(e,t){t===void 0&&(t=fc);var n=[],r=!1,o={read:function(){if(r)throw new 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(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var c=function(){var f=s;s=[],f.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),n}}}};return o}function hc(e){e===void 0&&(e={});var t=pc(null);return t.options=me({async:!0,ssr:!1},e),t}var Fo=function(e){var t=e.sideCar,n=pn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,me({},n))};Fo.isSideCarExport=!0;function mc(e,t){return e.useMedium(t),Fo}var Wo=hc(),Mn=function(){},hn=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:Mn,onWheelCapture:Mn,onTouchMoveCapture:Mn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,m=e.shards,v=e.sideCar,y=e.noIsolation,w=e.inert,d=e.allowPinchZoom,g=e.as,x=g===void 0?"div":g,b=e.gapMode,S=pn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,P=dc([n,t]),k=me(me({},S),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:Wo,removeScrollBar:u,shards:m,noIsolation:y,inert:w,setCallbacks:a,allowPinchZoom:!!d,lockRef:n,gapMode:b}),s?l.cloneElement(l.Children.only(i),me(me({},k),{ref:P})):l.createElement(x,me({},k,{className:c,ref:P}),i))});hn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};hn.classNames={fullWidth:qt,zeroRight:Xt};var Bo=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function gc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Bo();return t&&e.setAttribute("nonce",t),e}function vc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=gc())&&(vc(t,n),yc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xc=function(){var e=bc();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Vo=function(){var e=xc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},wc={left:0,top:0,right:0,gap:0},jn=function(e){return parseInt(e||"",10)||0},Sc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[jn(n),jn(r),jn(o)]},Cc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wc;var t=Sc(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])}},Ec=Vo(),pt="data-scroll-locked",Rc=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
.`.concat(sc,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(i,"px ").concat(r,`;
}
body[`).concat(pt,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(a,`px;
padding-right: `).concat(s,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(i,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Xt,` {
right: `).concat(i,"px ").concat(r,`;
}
.`).concat(qt,` {
margin-right: `).concat(i,"px ").concat(r,`;
}
.`).concat(Xt," .").concat(Xt,` {
right: 0 `).concat(r,`;
}
.`).concat(qt," .").concat(qt,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(pt,`] {
`).concat(cc,": ").concat(i,`px;
}
`)},Jr=function(){var e=parseInt(document.body.getAttribute(pt)||"0",10);return isFinite(e)?e:0},Pc=function(){l.useEffect(function(){return document.body.setAttribute(pt,(Jr()+1).toString()),function(){var e=Jr()-1;e<=0?document.body.removeAttribute(pt):document.body.setAttribute(pt,e.toString())}},[])},Tc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Pc();var a=l.useMemo(function(){return Cc(o)},[o]);return l.createElement(Ec,{styles:Rc(a,!t,o,n?"":"!important")})},Gn=!1;if(typeof window<"u")try{var Wt=Object.defineProperty({},"passive",{get:function(){return Gn=!0,!0}});window.addEventListener("test",Wt,Wt),window.removeEventListener("test",Wt,Wt)}catch{Gn=!1}var it=Gn?{passive:!1}:!1,Nc=function(e){return e.tagName==="TEXTAREA"},zo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nc(e)&&n[t]==="visible")},Ac=function(e){return zo(e,"overflowY")},Oc=function(e){return zo(e,"overflowX")},Qr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Yo(e,r);if(o){var a=Ho(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Dc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Mc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Yo=function(e,t){return e==="v"?Ac(t):Oc(t)},Ho=function(e,t){return e==="v"?Dc(t):Mc(t)},jc=function(e,t){return e==="h"&&t==="rtl"?-1:1},kc=function(e,t,n,r,o){var a=jc(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,c=t.contains(i),u=!1,f=s>0,m=0,v=0;do{var y=Ho(e,i),w=y[0],d=y[1],g=y[2],x=d-g-a*w;(w||x)&&Yo(e,i)&&(m+=x,v+=w),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&(Math.abs(m)<1||!o)||!f&&(Math.abs(v)<1||!o))&&(u=!0),u},Bt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eo=function(e){return[e.deltaX,e.deltaY]},to=function(e){return e&&"current"in e?e.current:e},_c=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ic=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},$c=0,st=[];function Lc(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState($c++)[0],a=l.useState(Vo)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=Lo([e.lockRef.current],(e.shards||[]).map(to),!0).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!s.current.allowPinchZoom;var x=Bt(d),b=n.current,S="deltaX"in d?d.deltaX:b[0]-x[0],R="deltaY"in d?d.deltaY:b[1]-x[1],P,k=d.target,A=Math.abs(S)>Math.abs(R)?"h":"v";if("touches"in d&&A==="h"&&k.type==="range")return!1;var F=Qr(A,k);if(!F)return!0;if(F?P=A:(P=A==="v"?"h":"v",F=Qr(A,k)),!F)return!1;if(!r.current&&"changedTouches"in d&&(S||R)&&(r.current=P),!P)return!0;var V=r.current||P;return kc(V,g,d,V==="h"?S:R,!0)},[]),c=l.useCallback(function(d){var g=d;if(!(!st.length||st[st.length-1]!==a)){var x="deltaY"in g?eo(g):Bt(g),b=t.current.filter(function(P){return P.name===g.type&&(P.target===g.target||g.target===P.shadowParent)&&_c(P.delta,x)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var S=(s.current.shards||[]).map(to).filter(Boolean).filter(function(P){return P.contains(g.target)}),R=S.length>0?i(g,S[0]):!s.current.noIsolation;R&&g.cancelable&&g.preventDefault()}}},[]),u=l.useCallback(function(d,g,x,b){var S={name:d,delta:g,target:x,should:b,shadowParent:Fc(x)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(R){return R!==S})},1)},[]),f=l.useCallback(function(d){n.current=Bt(d),r.current=void 0},[]),m=l.useCallback(function(d){u(d.type,eo(d),d.target,i(d,e.lockRef.current))},[]),v=l.useCallback(function(d){u(d.type,Bt(d),d.target,i(d,e.lockRef.current))},[]);l.useEffect(function(){return st.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",c,it),document.addEventListener("touchmove",c,it),document.addEventListener("touchstart",f,it),function(){st=st.filter(function(d){return d!==a}),document.removeEventListener("wheel",c,it),document.removeEventListener("touchmove",c,it),document.removeEventListener("touchstart",f,it)}},[]);var y=e.removeScrollBar,w=e.inert;return l.createElement(l.Fragment,null,w?l.createElement(a,{styles:Ic(o)}):null,y?l.createElement(Tc,{gapMode:e.gapMode}):null)}function Fc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Wc=mc(Wo,Lc);var Uo=l.forwardRef(function(e,t){return l.createElement(hn,me({},e,{ref:t,sideCar:Wc}))});Uo.classNames=hn.classNames;var Bc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ct=new WeakMap,Vt=new WeakMap,zt={},kn=0,Go=function(e){return e&&(e.host||Go(e.parentNode))},Vc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Go(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zc=function(e,t,n,r){var o=Vc(t,Array.isArray(e)?e:[e]);zt[n]||(zt[n]=new WeakMap);var a=zt[n],s=[],i=new Set,c=new Set(o),u=function(m){!m||i.has(m)||(i.add(m),u(m.parentNode))};o.forEach(u);var f=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(v){if(i.has(v))f(v);else try{var y=v.getAttribute(r),w=y!==null&&y!=="false",d=(ct.get(v)||0)+1,g=(a.get(v)||0)+1;ct.set(v,d),a.set(v,g),s.push(v),d===1&&w&&Vt.set(v,!0),g===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",v,x)}})};return f(t),i.clear(),kn++,function(){s.forEach(function(m){var v=ct.get(m)-1,y=a.get(m)-1;ct.set(m,v),a.set(m,y),v||(Vt.has(m)||m.removeAttribute(r),Vt.delete(m)),y||m.removeAttribute(n)}),kn--,kn||(ct=new WeakMap,ct=new WeakMap,Vt=new WeakMap,zt={})}},Ko=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Bc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),zc(r,o,n,"aria-hidden")):function(){return null}},dr="Dialog",[Xo,np]=dn(dr),[Yc,Ne]=Xo(dr),qo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[u=!1,f]=Yn({prop:r,defaultProp:o,onChange:a});return p.jsx(Yc,{scope:t,triggerRef:i,contentRef:c,contentId:ft(),titleId:ft(),descriptionId:ft(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(m=>!m),[f]),modal:s,children:n})};qo.displayName=dr;var Zo="DialogTrigger",Hc=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(Zo,n),a=le(t,o.triggerRef);return p.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hr(o.open),...r,ref:a,onClick:te(e.onClick,o.onOpenToggle)})});Hc.displayName=Zo;var fr="DialogPortal",[Uc,Jo]=Xo(fr,{forceMount:void 0}),Qo=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ne(fr,t);return p.jsx(Uc,{scope:t,forceMount:n,children:l.Children.map(r,s=>p.jsx(fn,{present:n||a.open,children:p.jsx(ur,{asChild:!0,container:o,children:s})}))})};Qo.displayName=fr;var tn="DialogOverlay",ea=l.forwardRef((e,t)=>{const n=Jo(tn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ne(tn,e.__scopeDialog);return a.modal?p.jsx(fn,{present:r||a.open,children:p.jsx(Gc,{...o,ref:t})}):null});ea.displayName=tn;var Gc=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(tn,n);return p.jsx(Uo,{as:et,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(ne.div,{"data-state":hr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),tt="DialogContent",ta=l.forwardRef((e,t)=>{const n=Jo(tt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ne(tt,e.__scopeDialog);return p.jsx(fn,{present:r||a.open,children:a.modal?p.jsx(Kc,{...o,ref:t}):p.jsx(Xc,{...o,ref:t})})});ta.displayName=tt;var Kc=l.forwardRef((e,t)=>{const n=Ne(tt,e.__scopeDialog),r=l.useRef(null),o=le(t,n.contentRef,r);return l.useEffect(()=>{const a=r.current;if(a)return Ko(a)},[]),p.jsx(na,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:te(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:te(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:te(e.onFocusOutside,a=>a.preventDefault())})}),Xc=l.forwardRef((e,t)=>{const n=Ne(tt,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(na,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),na=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=Ne(tt,n),c=l.useRef(null),u=le(t,c);return $o(),p.jsxs(p.Fragment,{children:[p.jsx(lr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(ko,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":hr(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(qc,{titleId:i.titleId}),p.jsx(Jc,{contentRef:c,descriptionId:i.descriptionId})]})]})}),pr="DialogTitle",ra=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(pr,n);return p.jsx(ne.h2,{id:o.titleId,...r,ref:t})});ra.displayName=pr;var oa="DialogDescription",aa=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(oa,n);return p.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});aa.displayName=oa;var ia="DialogClose",sa=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(ia,n);return p.jsx(ne.button,{type:"button",...r,ref:t,onClick:te(e.onClick,()=>o.onOpenChange(!1))})});sa.displayName=ia;function hr(e){return e?"open":"closed"}var ca="DialogTitleWarning",[rp,la]=js(ca,{contentName:tt,titleName:pr,docsSlug:"dialog"}),qc=({titleId:e})=>{const t=la(ca),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Zc="DialogDescriptionWarning",Jc=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${la(Zc).contentName}}.`;return l.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Qc=qo,el=Qo,ua=ea,da=ta,fa=ra,pa=aa,ha=sa;/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ma=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var nl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rl=ie.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},c)=>ie.createElement("svg",{ref:c,...nl,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ma("lucide",o),...i},[...s.map(([u,f])=>ie.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Le=(e,t)=>{const n=ie.forwardRef(({className:r,...o},a)=>ie.createElement(rl,{ref:a,iconNode:t,className:ma(`lucide-${tl(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ol=Le("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ga=Le("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const al=Le("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const il=Le("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sl=Le("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cl=Le("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ll=Le("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ul=Le("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202