docthub-core-components 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/dist/index.cjs.js +182 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.es.js +12403 -0
- package/dist/index.es.js.map +1 -0
- package/dist/logoAnimation.gif +0 -0
- package/dist/vite.svg +1 -0
- package/package.json +102 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),Ga=require("react-dom");function Va(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 f=Va(O),ur=Va(Ga);function Ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $n={exports:{}},un={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Xo;function ll(){if(Xo)return un;Xo=1;var e=O,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 i(s,c,l){var d,u={},h=null,g=null;l!==void 0&&(h=""+l),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(g=c.ref);for(d in c)r.call(c,d)&&!a.hasOwnProperty(d)&&(u[d]=c[d]);if(s&&s.defaultProps)for(d in c=s.defaultProps,c)u[d]===void 0&&(u[d]=c[d]);return{$$typeof:t,type:s,key:h,ref:g,props:u,_owner:o.current}}return un.Fragment=n,un.jsx=i,un.jsxs=i,un}var dn={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Zo;function ul(){return Zo||(Zo=1,process.env.NODE_ENV!=="production"&&function(){var e=O,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"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),w=Symbol.iterator,p="@@iterator";function b(y){if(y===null||typeof y!="object")return null;var I=w&&y[w]||y[p];return typeof I=="function"?I:null}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(y){{for(var I=arguments.length,q=new Array(I>1?I-1:0),re=1;re<I;re++)q[re-1]=arguments[re];S("error",y,q)}}function S(y,I,q){{var re=k.ReactDebugCurrentFrame,he=re.getStackAddendum();he!==""&&(I+="%s",q=q.concat([he]));var ye=q.map(function(de){return String(de)});ye.unshift("Warning: "+I),Function.prototype.apply.call(console[y],console,ye)}}var D=!1,x=!1,M=!1,E=!1,N=!1,H;H=Symbol.for("react.module.reference");function B(y){return!!(typeof y=="string"||typeof y=="function"||y===r||y===a||N||y===o||y===l||y===d||E||y===g||D||x||M||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===u||y.$$typeof===i||y.$$typeof===s||y.$$typeof===c||y.$$typeof===H||y.getModuleId!==void 0))}function L(y,I,q){var re=y.displayName;if(re)return re;var he=I.displayName||I.name||"";return he!==""?q+"("+he+")":q}function J(y){return y.displayName||"Context"}function te(y){if(y==null)return null;if(typeof y.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case d:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case s:var I=y;return J(I)+".Consumer";case i:var q=y;return J(q._context)+".Provider";case c:return L(y,y.render,"ForwardRef");case u:var re=y.displayName||null;return re!==null?re:te(y.type)||"Memo";case h:{var he=y,ye=he._payload,de=he._init;try{return te(de(ye))}catch{return null}}}return null}var A=Object.assign,_=0,R,T,C,$,z,ne,P;function W(){}W.__reactDisabledLog=!0;function Y(){{if(_===0){R=console.log,T=console.info,C=console.warn,$=console.error,z=console.group,ne=console.groupCollapsed,P=console.groupEnd;var y={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}_++}}function F(){{if(_--,_===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},y,{value:R}),info:A({},y,{value:T}),warn:A({},y,{value:C}),error:A({},y,{value:$}),group:A({},y,{value:z}),groupCollapsed:A({},y,{value:ne}),groupEnd:A({},y,{value:P})})}_<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=k.ReactCurrentDispatcher,j;function K(y,I,q){{if(j===void 0)try{throw Error()}catch(he){var re=he.stack.trim().match(/\n( *(at )?)/);j=re&&re[1]||""}return`
|
|
18
|
+
`+j+y}}var ee=!1,V;{var oe=typeof WeakMap=="function"?WeakMap:Map;V=new oe}function ae(y,I){if(!y||ee)return"";{var q=V.get(y);if(q!==void 0)return q}var re;ee=!0;var he=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ye;ye=Q.current,Q.current=null,Y();try{if(I){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(Ae){re=Ae}Reflect.construct(y,[],de)}else{try{de.call()}catch(Ae){re=Ae}y.call(de.prototype)}}else{try{throw Error()}catch(Ae){re=Ae}y()}}catch(Ae){if(Ae&&re&&typeof Ae.stack=="string"){for(var le=Ae.stack.split(`
|
|
19
|
+
`),_e=re.stack.split(`
|
|
20
|
+
`),Se=le.length-1,ke=_e.length-1;Se>=1&&ke>=0&&le[Se]!==_e[ke];)ke--;for(;Se>=1&&ke>=0;Se--,ke--)if(le[Se]!==_e[ke]){if(Se!==1||ke!==1)do if(Se--,ke--,ke<0||le[Se]!==_e[ke]){var ze=`
|
|
21
|
+
`+le[Se].replace(" at new "," at ");return y.displayName&&ze.includes("<anonymous>")&&(ze=ze.replace("<anonymous>",y.displayName)),typeof y=="function"&&V.set(y,ze),ze}while(Se>=1&&ke>=0);break}}}finally{ee=!1,Q.current=ye,F(),Error.prepareStackTrace=he}var Lt=y?y.displayName||y.name:"",xt=Lt?K(Lt):"";return typeof y=="function"&&V.set(y,xt),xt}function xe(y,I,q){return ae(y,!1)}function Re(y){var I=y.prototype;return!!(I&&I.isReactComponent)}function Le(y,I,q){if(y==null)return"";if(typeof y=="function")return ae(y,Re(y));if(typeof y=="string")return K(y);switch(y){case l:return K("Suspense");case d:return K("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case c:return xe(y.render);case u:return Le(y.type,I,q);case h:{var re=y,he=re._payload,ye=re._init;try{return Le(ye(he),I,q)}catch{}}}return""}var je=Object.prototype.hasOwnProperty,Ze={},At=k.ReactDebugCurrentFrame;function qe(y){if(y){var I=y._owner,q=Le(y.type,y._source,I?I.type:null);At.setExtraStackFrame(q)}else At.setExtraStackFrame(null)}function Nr(y,I,q,re,he){{var ye=Function.call.bind(je);for(var de in y)if(ye(y,de)){var le=void 0;try{if(typeof y[de]!="function"){var _e=Error((re||"React class")+": "+q+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _e.name="Invariant Violation",_e}le=y[de](I,de,re,q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Se){le=Se}le&&!(le instanceof Error)&&(qe(he),v("%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).",re||"React class",q,de,typeof le),qe(null)),le instanceof Error&&!(le.message in Ze)&&(Ze[le.message]=!0,qe(he),v("Failed %s type: %s",q,le.message),qe(null))}}}var Dr=Array.isArray;function jt(y){return Dr(y)}function cn(y){{var I=typeof Symbol=="function"&&Symbol.toStringTag,q=I&&y[Symbol.toStringTag]||y.constructor.name||"Object";return q}}function ln(y){try{return Rn(y),!1}catch{return!0}}function Rn(y){return""+y}function _n(y){if(ln(y))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cn(y)),Rn(y)}var Tn=k.ReactCurrentOwner,Pr={key:!0,ref:!0,__self:!0,__source:!0},An,jn;function Rr(y){if(je.call(y,"ref")){var I=Object.getOwnPropertyDescriptor(y,"ref").get;if(I&&I.isReactWarning)return!1}return y.ref!==void 0}function _r(y){if(je.call(y,"key")){var I=Object.getOwnPropertyDescriptor(y,"key").get;if(I&&I.isReactWarning)return!1}return y.key!==void 0}function Tr(y,I){typeof y.ref=="string"&&Tn.current}function Ar(y,I){{var q=function(){An||(An=!0,v("%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)",I))};q.isReactWarning=!0,Object.defineProperty(y,"key",{get:q,configurable:!0})}}function jr(y,I){{var q=function(){jn||(jn=!0,v("%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)",I))};q.isReactWarning=!0,Object.defineProperty(y,"ref",{get:q,configurable:!0})}}var In=function(y,I,q,re,he,ye,de){var le={$$typeof:t,type:y,key:I,ref:q,props:de,_owner:ye};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function Ir(y,I,q,re,he){{var ye,de={},le=null,_e=null;q!==void 0&&(_n(q),le=""+q),_r(I)&&(_n(I.key),le=""+I.key),Rr(I)&&(_e=I.ref,Tr(I,he));for(ye in I)je.call(I,ye)&&!Pr.hasOwnProperty(ye)&&(de[ye]=I[ye]);if(y&&y.defaultProps){var Se=y.defaultProps;for(ye in Se)de[ye]===void 0&&(de[ye]=Se[ye])}if(le||_e){var ke=typeof y=="function"?y.displayName||y.name||"Unknown":y;le&&Ar(de,ke),_e&&jr(de,ke)}return In(y,le,_e,he,re,Tn.current,de)}}var It=k.ReactCurrentOwner,se=k.ReactDebugCurrentFrame;function me(y){if(y){var I=y._owner,q=Le(y.type,y._source,I?I.type:null);se.setExtraStackFrame(q)}else se.setExtraStackFrame(null)}var ue;ue=!1;function Ye(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function Te(){{if(It.current){var y=te(It.current.type);if(y)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+y+"`."}return""}}function Wt(y){return""}var Ce={};function Be(y){{var I=Te();if(!I){var q=typeof y=="string"?y:y.displayName||y.name;q&&(I=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+q+">.")}return I}}function fe(y,I){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var q=Be(I);if(Ce[q])return;Ce[q]=!0;var re="";y&&y._owner&&y._owner!==It.current&&(re=" It was passed a child from "+te(y._owner.type)+"."),me(y),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',q,re),me(null)}}function Wn(y,I){{if(typeof y!="object")return;if(jt(y))for(var q=0;q<y.length;q++){var re=y[q];Ye(re)&&fe(re,I)}else if(Ye(y))y._store&&(y._store.validated=!0);else if(y){var he=b(y);if(typeof he=="function"&&he!==y.entries)for(var ye=he.call(y),de;!(de=ye.next()).done;)Ye(de.value)&&fe(de.value,I)}}}function Wr(y){{var I=y.type;if(I==null||typeof I=="string")return;var q;if(typeof I=="function")q=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===c||I.$$typeof===u))q=I.propTypes;else return;if(q){var re=te(I);Nr(q,y.props,"prop",re,y)}else if(I.PropTypes!==void 0&&!ue){ue=!0;var he=te(I);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",he||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $r(y){{for(var I=Object.keys(y.props),q=0;q<I.length;q++){var re=I[q];if(re!=="children"&&re!=="key"){me(y),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",re),me(null);break}}y.ref!==null&&(me(y),v("Invalid attribute `ref` supplied to `React.Fragment`."),me(null))}}var $t={};function Ft(y,I,q,re,he,ye){{var de=B(y);if(!de){var le="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(le+=" 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 _e=Wt();_e?le+=_e:le+=Te();var Se;y===null?Se="null":jt(y)?Se="array":y!==void 0&&y.$$typeof===t?(Se="<"+(te(y.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof y,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,le)}var ke=Ir(y,I,q,he,ye);if(ke==null)return ke;if(de){var ze=I.children;if(ze!==void 0)if(re)if(jt(ze)){for(var Lt=0;Lt<ze.length;Lt++)Wn(ze[Lt],y);Object.freeze&&Object.freeze(ze)}else v("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 Wn(ze,y)}if(je.call(I,"key")){var xt=te(y),Ae=Object.keys(I).filter(function(cl){return cl!=="key"}),Fr=Ae.length>0?"{key: someKey, "+Ae.join(": ..., ")+": ...}":"{key: someKey}";if(!$t[xt+Fr]){var il=Ae.length>0?"{"+Ae.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,Fr,xt,il,xt),$t[xt+Fr]=!0}}return y===r?$r(ke):Wr(ke),ke}}function rl(y,I,q){return Ft(y,I,q,!0)}function ol(y,I,q){return Ft(y,I,q,!1)}var al=ol,sl=rl;dn.Fragment=r,dn.jsx=al,dn.jsxs=sl}()),dn}var Jo;function dl(){return Jo||(Jo=1,process.env.NODE_ENV==="production"?$n.exports=ll():$n.exports=ul()),$n.exports}var m=dl();function Qo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ct(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Qo(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():Qo(e[o],null)}}}}function we(...e){return f.useCallback(Ct(...e),e)}function Mt(e){const t=ml(e),n=f.forwardRef((r,o)=>{const{children:a,...i}=r,s=f.Children.toArray(a),c=s.find(pl);if(c){const l=c.props.children,d=s.map(u=>u===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:u);return m.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return m.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var fl=Mt("Slot");function ml(e){const t=f.forwardRef((n,r)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const i=vl(o),s=gl(a,o.props);return o.type!==f.Fragment&&(s.ref=r?Ct(r,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hl=Symbol("radix.slottable");function pl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hl}function gl(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]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function vl(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)}function Xa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Xa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Za(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Xa(e))&&(r&&(r+=" "),r+=t);return r}const ea=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ta=Za,dr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ta(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const d=n==null?void 0:n[l],u=a==null?void 0:a[l];if(d===null)return null;const h=ea(d)||ea(u);return o[l][h]}),s=n&&Object.entries(n).reduce((l,d)=>{let[u,h]=d;return h===void 0||(l[u]=h),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,d)=>{let{class:u,className:h,...g}=d;return Object.entries(g).every(w=>{let[p,b]=w;return Array.isArray(b)?b.includes({...a,...s}[p]):{...a,...s}[p]===b})?[...l,u,h]:l},[]);return ta(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)},Eo="-",yl=e=>{const t=wl(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(Eo);return s[0]===""&&s.length!==1&&s.shift(),Ja(s,t)||bl(i)},getConflictingClassGroupIds:(i,s)=>{const c=n[i]||[];return s&&r[i]?[...c,...r[i]]:c}}},Ja=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ja(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Eo);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},na=/^\[(.+)\]$/,bl=e=>{if(na.test(e)){const t=na.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},wl=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)ao(n[o],r,o,t);return r},ao=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:ra(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(xl(o)){ao(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{ao(i,ra(t,a),n,r)})})},ra=(e,t)=>{let n=e;return t.split(Eo).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},xl=e=>e.isThemeGetter,Sl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},so="!",io=":",kl=io.length,Cl=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,s=0,c=0,l;for(let w=0;w<o.length;w++){let p=o[w];if(i===0&&s===0){if(p===io){a.push(o.slice(c,w)),c=w+kl;continue}if(p==="/"){l=w;continue}}p==="["?i++:p==="]"?i--:p==="("?s++:p===")"&&s--}const d=a.length===0?o:o.substring(c),u=Ml(d),h=u!==d,g=l&&l>c?l-c:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+io,a=r;r=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Ml=e=>e.endsWith(so)?e.substring(0,e.length-1):e.startsWith(so)?e.substring(1):e,El=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},Ol=e=>({cache:Sl(e.cacheSize),parseClassName:Cl(e),sortModifiers:El(e),...yl(e)}),Nl=/\s+/,Dl=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(Nl);let c="";for(let l=s.length-1;l>=0;l-=1){const d=s[l],{isExternal:u,modifiers:h,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:p}=n(d);if(u){c=d+(c.length>0?" "+c:c);continue}let b=!!p,k=r(b?w.substring(0,p):w);if(!k){if(!b){c=d+(c.length>0?" "+c:c);continue}if(k=r(w),!k){c=d+(c.length>0?" "+c:c);continue}b=!1}const v=a(h).join(":"),S=g?v+so:v,D=S+k;if(i.includes(D))continue;i.push(D);const x=o(k,b);for(let M=0;M<x.length;++M){const E=x[M];i.push(S+E)}c=d+(c.length>0?" "+c:c)}return c};function Pl(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Qa(t))&&(r&&(r+=" "),r+=n);return r}const Qa=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Qa(e[r]))&&(n&&(n+=" "),n+=t);return n};function Rl(e,...t){let n,r,o,a=i;function i(c){const l=t.reduce((d,u)=>u(d),e());return n=Ol(l),r=n.cache.get,o=n.cache.set,a=s,s(c)}function s(c){const l=r(c);if(l)return l;const d=Dl(c,n);return o(c,d),d}return function(){return a(Pl.apply(null,arguments))}}const Me=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},es=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ts=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_l=/^\d+\/\d+$/,Tl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Al=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Il=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yt=e=>_l.test(e),ie=e=>!!e&&!Number.isNaN(Number(e)),ft=e=>!!e&&Number.isInteger(Number(e)),Lr=e=>e.endsWith("%")&&ie(e.slice(0,-1)),st=e=>Tl.test(e),$l=()=>!0,Fl=e=>Al.test(e)&&!jl.test(e),ns=()=>!1,Ll=e=>Il.test(e),Yl=e=>Wl.test(e),Bl=e=>!U(e)&&!G(e),zl=e=>en(e,as,ns),U=e=>es.test(e),St=e=>en(e,ss,Fl),Yr=e=>en(e,Vl,ie),oa=e=>en(e,rs,ns),Hl=e=>en(e,os,Yl),Fn=e=>en(e,is,Ll),G=e=>ts.test(e),fn=e=>tn(e,ss),ql=e=>tn(e,Kl),aa=e=>tn(e,rs),Ul=e=>tn(e,as),Gl=e=>tn(e,os),Ln=e=>tn(e,is,!0),en=(e,t,n)=>{const r=es.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},tn=(e,t,n=!1)=>{const r=ts.exec(e);return r?r[1]?t(r[1]):n:!1},rs=e=>e==="position"||e==="percentage",os=e=>e==="image"||e==="url",as=e=>e==="length"||e==="size"||e==="bg-size",ss=e=>e==="length",Vl=e=>e==="number",Kl=e=>e==="family-name",is=e=>e==="shadow",Xl=()=>{const e=Me("color"),t=Me("font"),n=Me("text"),r=Me("font-weight"),o=Me("tracking"),a=Me("leading"),i=Me("breakpoint"),s=Me("container"),c=Me("spacing"),l=Me("radius"),d=Me("shadow"),u=Me("inset-shadow"),h=Me("text-shadow"),g=Me("drop-shadow"),w=Me("blur"),p=Me("perspective"),b=Me("aspect"),k=Me("ease"),v=Me("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...D(),G,U],M=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],N=()=>[G,U,c],H=()=>[Yt,"full","auto",...N()],B=()=>[ft,"none","subgrid",G,U],L=()=>["auto",{span:["full",ft,G,U]},ft,G,U],J=()=>[ft,"auto",G,U],te=()=>["auto","min","max","fr",G,U],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...N()],T=()=>[Yt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],C=()=>[e,G,U],$=()=>[...D(),aa,oa,{position:[G,U]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",Ul,zl,{size:[G,U]}],P=()=>[Lr,fn,St],W=()=>["","none","full",l,G,U],Y=()=>["",ie,fn,St],F=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>[ie,Lr,aa,oa],K=()=>["","none",w,G,U],ee=()=>["none",ie,G,U],V=()=>["none",ie,G,U],oe=()=>[ie,G,U],ae=()=>[Yt,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[st],breakpoint:[st],color:[$l],container:[st],"drop-shadow":[st],ease:["in","out","in-out"],font:[Bl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[st],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[st],shadow:[st],spacing:["px",ie],text:[st],"text-shadow":[st],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yt,U,G,b]}],container:["container"],columns:[{columns:[ie,U,G,s]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[ft,"auto",G,U]}],basis:[{basis:[Yt,"full","auto",s,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ie,Yt,"auto","initial","none",U]}],grow:[{grow:["",ie,G,U]}],shrink:[{shrink:["",ie,G,U]}],order:[{order:[ft,"first","last","none",G,U]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],w:[{w:[s,"screen",...T()]}],"min-w":[{"min-w":[s,"screen","none",...T()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",n,fn,St]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,G,Yr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lr,U]}],"font-family":[{font:[ql,U,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,G,U]}],"line-clamp":[{"line-clamp":[ie,"none",G,Yr]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",G,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[ie,"from-font","auto",G,St]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[ie,"auto",G,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ft,G,U],radial:["",G,U],conic:[ft,G,U]},Gl,Hl]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ie,G,U]}],"outline-w":[{outline:["",ie,fn,St]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",d,Ln,Fn]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",u,Ln,Fn]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[ie,St]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",h,Ln,Fn]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[ie,G,U]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[G,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,U]}],filter:[{filter:["","none",G,U]}],blur:[{blur:K()}],brightness:[{brightness:[ie,G,U]}],contrast:[{contrast:[ie,G,U]}],"drop-shadow":[{"drop-shadow":["","none",g,Ln,Fn]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",ie,G,U]}],"hue-rotate":[{"hue-rotate":[ie,G,U]}],invert:[{invert:["",ie,G,U]}],saturate:[{saturate:[ie,G,U]}],sepia:[{sepia:["",ie,G,U]}],"backdrop-filter":[{"backdrop-filter":["","none",G,U]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[ie,G,U]}],"backdrop-contrast":[{"backdrop-contrast":[ie,G,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ie,G,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ie,G,U]}],"backdrop-invert":[{"backdrop-invert":["",ie,G,U]}],"backdrop-opacity":[{"backdrop-opacity":[ie,G,U]}],"backdrop-saturate":[{"backdrop-saturate":[ie,G,U]}],"backdrop-sepia":[{"backdrop-sepia":["",ie,G,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ie,"initial",G,U]}],ease:[{ease:["linear","initial",k,G,U]}],delay:[{delay:[ie,G,U]}],animate:[{animate:["none",v,G,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,G,U]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[G,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,U]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[ie,fn,St,Yr]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Zl=Rl(Xl);function Z(...e){return Zl(Za(e))}const cs=dr("inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-black text-white hover:bg-black/90",outline:"border-2 border-gray-200 bg-white text-gray-700 hover:bg-gray-100",ghost:"text-gray-700 hover:bg-gray-100",error:"bg-red-500 text-white hover:bg-[#EA4335]",success:"bg-green-500 text-white hover:bg-[#00C752]",warning:"bg-yellow-500 text-white hover:bg-[#FFB200]",blue:"bg-[#4389FF] text-white hover:bg-blue-600",disabled:"bg-gray-200 text-gray-400 cursor-not-allowed hover:bg-gray-200",primary:"bg-customBlue text-white hover:bg-customBlue/90"},size:{large:"rounded-[12px] text-base py-2.5 px-5 leading-snug font-semibold gap-2",medium:"rounded-[10px] text-sm py-2 px-4 leading-tight font-semibold gap-2",small:"rounded-[14px] text-xs py-1.5 px-3 leading-4 font-semibold gap-1 h-9","icon.large":"rounded-[12px] p-2.5","icon.medium":"rounded-[10px] p-2","icon.small":"rounded-[14px] p-1.5"},iconSize:{large:"[&_svg]:w-6 [&_svg]:h-6",medium:"[&_svg]:w-5 [&_svg]:h-5",small:"[&_svg]:w-4 [&_svg]:h-4"},iconPosition:{left:"flex-row",right:"flex-row-reverse"},fullWidth:{true:"w-full",false:"w-auto"}},defaultVariants:{variant:"default",size:"medium",iconPosition:"left",fullWidth:!1}}),Et=O.forwardRef(({className:e,variant:t,size:n,iconSize:r,iconPosition:o,fullWidth:a,asChild:i=!1,icon:s,iconOnly:c,children:l,...d},u)=>{const h=i?fl:"button";let g=n;if(c&&n)switch(n){case"large":g="icon.large";break;case"medium":g="icon.medium";break;case"small":g="icon.small";break}const w=r||(n==="large"?"large":n==="small"?"small":"medium");return m.jsxs(h,{className:Z(cs({variant:t,size:g,iconSize:w,iconPosition:o,fullWidth:a,className:e})),ref:u,...d,children:[s&&m.jsx("span",{"data-testid":"button-icon",children:s}),!c&&l]})});Et.displayName="DoctButton";const Jl={h1:{fontSize:"56px",tag:"h1"},h2:{fontSize:"46px",tag:"h2"},h3:{fontSize:"36px",tag:"h3"},h4:{fontSize:"32px",tag:"h4"},h5:{fontSize:"28px",tag:"h5"},h6:{fontSize:"24px",tag:"h6"},h7:{fontSize:"20px",tag:"p"},h8:{fontSize:"18px",tag:"p"},title1:{fontSize:"22px",tag:"p"},title2:{fontSize:"18px",tag:"p"},title3:{fontSize:"14px",tag:"p"},title4:{fontSize:"12px",tag:"p"},body1:{fontSize:"16px",tag:"p"},body2:{fontSize:"14px",tag:"p"},body3:{fontSize:"12px",tag:"p"},body4:{fontSize:"10px",tag:"p"},textLabel1:{fontSize:"16px",tag:"span"},textLabel2:{fontSize:"14px",tag:"span"},textLabel3:{fontSize:"12px",tag:"span"},textLabel4:{fontSize:"11px",tag:"span"}},Ql={regular:"400",medium:"500",semiBold:"600",bold:"700",extraBold:"800",light:"300"},eu=({variant:e,weight:t="regular",children:n,color:r="#000",align:o="inherit",className:a=""})=>{const i=Jl[e]??{fontSize:"16px",tag:"p"},{fontSize:s,tag:c}=i;return m.jsx(c,{className:a,style:{fontSize:s,fontWeight:Ql[t]??"400",color:r,textAlign:o,margin:0},children:n})};function tu(){return m.jsx("div",{className:"flex flex-col items-center justify-center h-screen w-full bg-white",children:m.jsx("img",{src:"/logoAnimation.gif",alt:"Loading animation",className:"w-32 h-32 object-contain"})})}const kn=f.forwardRef(({className:e,type:t,...n},r)=>m.jsx("input",{type:t,className:Z("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder-gray-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));kn.displayName="Input";var nu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ce=nu.reduce((e,t)=>{const n=Mt(`Primitive.${t}`),r=f.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(c,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ru(e,t){e&&ur.flushSync(()=>e.dispatchEvent(t))}var ou="Label",ls=f.forwardRef((e,t)=>m.jsx(ce.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ls.displayName=ou;var us=ls;const au=dr("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Tt=f.forwardRef(({className:e,...t},n)=>m.jsx(us,{ref:n,className:Z(au(),e),...t}));Tt.displayName=us.displayName;function He({label:e,placeholder:t,helperText:n,error:r,required:o,type:a="text",icon:i,className:s,inputClassName:c,onChange:l}){return m.jsxs("div",{className:Z("space-y-1",s),children:[e&&m.jsxs(Tt,{className:"text-sm font-medium text-gray-700",children:[e,o&&m.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),m.jsxs("div",{className:"relative",children:[i&&m.jsx("div",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400",children:i}),m.jsx(kn,{type:a,placeholder:t,className:Z(i&&"pl-10",r&&"border-red-500 focus-visible:ring-red-500",c),onChange:l})]}),(n||r)&&m.jsx("p",{className:Z("text-xs",r?"text-red-500":"text-gray-500"),children:r||n})]})}function su({length:e=6,label:t,value:n,onChange:r,onComplete:o,className:a}){const i=O.useRef([]),s=(l,d)=>{var h;if(d.length>1)return;const u=[...n];u[l]=d,r(u),d&&l<e-1&&((h=i.current[l+1])==null||h.focus()),u.every(g=>g!=="")&&o&&o(u.join(""))},c=(l,d)=>{var u;d.key==="Backspace"&&!n[l]&&l>0&&((u=i.current[l-1])==null||u.focus())};return m.jsxs("div",{className:Z("space-y-2",a),children:[t&&m.jsx(Tt,{className:"text-sm font-medium text-gray-700",children:t}),m.jsx("div",{className:"flex gap-2",children:n.map((l,d)=>m.jsx(kn,{ref:u=>i.current[d]=u,type:"text",inputMode:"numeric",maxLength:1,value:l,onChange:u=>s(d,u.target.value),onKeyDown:u=>c(d,u),className:"w-12 h-12 text-center p-0 text-lg font-semibold"},d))})]})}/**
|
|
31
|
+
* @license lucide-react v0.474.0 - ISC
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the ISC license.
|
|
34
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/const iu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ds=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
36
|
+
* @license lucide-react v0.474.0 - ISC
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the ISC license.
|
|
39
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/var cu={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"};/**
|
|
41
|
+
* @license lucide-react v0.474.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const lu=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},c)=>O.createElement("svg",{ref:c,...cu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ds("lucide",o),...s},[...i.map(([l,d])=>O.createElement(l,d)),...Array.isArray(a)?a:[a]]));/**
|
|
46
|
+
* @license lucide-react v0.474.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/const Pe=(e,t)=>{const n=O.forwardRef(({className:r,...o},a)=>O.createElement(lu,{ref:a,iconNode:t,className:ds(`lucide-${iu(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
51
|
+
* @license lucide-react v0.474.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const uu=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]],du=Pe("Building",uu);/**
|
|
56
|
+
* @license lucide-react v0.474.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const fu=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],mu=Pe("CalendarDays",fu);/**
|
|
61
|
+
* @license lucide-react v0.474.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const hu=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fs=Pe("Check",hu);/**
|
|
66
|
+
* @license lucide-react v0.474.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const pu=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ms=Pe("ChevronDown",pu);/**
|
|
71
|
+
* @license lucide-react v0.474.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const gu=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],vu=Pe("ChevronLeft",gu);/**
|
|
76
|
+
* @license lucide-react v0.474.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const yu=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],bu=Pe("ChevronRight",yu);/**
|
|
81
|
+
* @license lucide-react v0.474.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const wu=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],xu=Pe("ChevronUp",wu);/**
|
|
86
|
+
* @license lucide-react v0.474.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const Su=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ku=Pe("EyeOff",Su);/**
|
|
91
|
+
* @license lucide-react v0.474.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const Cu=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Mu=Pe("Eye",Cu);/**
|
|
96
|
+
* @license lucide-react v0.474.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const Eu=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],Ou=Pe("Filter",Eu);/**
|
|
101
|
+
* @license lucide-react v0.474.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const Nu=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],hs=Pe("Mail",Nu);/**
|
|
106
|
+
* @license lucide-react v0.474.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const Du=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Pu=Pe("MapPin",Du);/**
|
|
111
|
+
* @license lucide-react v0.474.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const Ru=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],_u=Pe("Phone",Ru);/**
|
|
116
|
+
* @license lucide-react v0.474.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const Tu=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],ps=Pe("Search",Tu);/**
|
|
121
|
+
* @license lucide-react v0.474.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const Au=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ju=Pe("User",Au);/**
|
|
126
|
+
* @license lucide-react v0.474.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const Iu=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Oo=Pe("X",Iu);function co({label:e,placeholder:t="Enter password",helperText:n,error:r,required:o,className:a,showPassword:i=!1,onShowPasswordChange:s,value:c,onChange:l}){return m.jsxs("div",{className:Z("space-y-1",a),children:[e&&m.jsxs(Tt,{className:"text-sm font-medium text-gray-700",children:[e,o&&m.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),m.jsxs("div",{className:"relative",children:[m.jsx(kn,{type:i?"text":"password",placeholder:t,className:Z("pr-10",r&&"border-red-500 focus-visible:ring-red-500"),value:c,onChange:d=>l==null?void 0:l(d.target.value)}),m.jsx(Et,{type:"button",variant:"ghost",size:"small",className:"absolute right-2 top-1/2 -translate-y-1/2",onClick:()=>s==null?void 0:s(!i),children:i?m.jsx(ku,{className:"h-4 w-4 text-gray-400"}):m.jsx(Mu,{className:"h-4 w-4 text-gray-400"})})]}),r&&m.jsx("p",{className:"text-xs text-red-500",children:r}),n&&m.jsx("p",{className:"text-xs text-gray-500",children:n})]})}const gs=f.forwardRef(({className:e,...t},n)=>m.jsx("textarea",{className:Z("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));gs.displayName="Textarea";function vs({label:e,placeholder:t="Write here...",helperText:n,error:r,required:o,rows:a=4,className:i,onChange:s}){return m.jsxs("div",{className:Z("space-y-1",i),children:[e&&m.jsxs(Tt,{className:"text-sm font-medium text-gray-700",children:[e,o&&m.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),m.jsx(gs,{placeholder:t,rows:a,className:Z("resize-none",r&&"border-red-500 focus-visible:ring-red-500"),onChange:s}),(n||r)&&m.jsx("p",{className:Z("text-xs",r?"text-red-500":"text-gray-500"),children:r||n})]})}function pe(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 Wu(e,t){const n=f.createContext(t),r=a=>{const{children:i,...s}=a,c=f.useMemo(()=>s,Object.values(s));return m.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(a){const i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Cn(e,t=[]){let n=[];function r(a,i){const s=f.createContext(i),c=n.length;n=[...n,i];const l=u=>{var k;const{scope:h,children:g,...w}=u,p=((k=h==null?void 0:h[e])==null?void 0:k[c])||s,b=f.useMemo(()=>w,Object.values(w));return m.jsx(p.Provider,{value:b,children:g})};l.displayName=a+"Provider";function d(u,h){var p;const g=((p=h==null?void 0:h[e])==null?void 0:p[c])||s,w=f.useContext(g);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[l,d]}const o=()=>{const a=n.map(i=>f.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,$u(o,...t)]}function $u(...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 i=r.reduce((s,{useScope:c,scopeName:l})=>{const u=c(a)[`__scope${l}`];return{...s,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ot(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Fu(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e);f.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 Lu="DismissableLayer",lo="dismissableLayer.update",Yu="dismissableLayer.pointerDownOutside",Bu="dismissableLayer.focusOutside",sa,ys=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fr=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=f.useContext(ys),[d,u]=f.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=f.useState({}),w=we(t,E=>u(E)),p=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),k=p.indexOf(b),v=d?p.indexOf(d):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,D=v>=k,x=qu(E=>{const N=E.target,H=[...l.branches].some(B=>B.contains(N));!D||H||(o==null||o(E),i==null||i(E),E.defaultPrevented||s==null||s())},h),M=Uu(E=>{const N=E.target;[...l.branches].some(B=>B.contains(N))||(a==null||a(E),i==null||i(E),E.defaultPrevented||s==null||s())},h);return Fu(E=>{v===l.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},h),f.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(sa=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),ia(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=sa)}},[d,h,n,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),ia())},[d,l]),f.useEffect(()=>{const E=()=>g({});return document.addEventListener(lo,E),()=>document.removeEventListener(lo,E)},[]),m.jsx(ce.div,{...c,ref:w,style:{pointerEvents:S?D?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,x.onPointerDownCapture)})});fr.displayName=Lu;var zu="DismissableLayerBranch",Hu=f.forwardRef((e,t)=>{const n=f.useContext(ys),r=f.useRef(null),o=we(t,r);return f.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(ce.div,{...e,ref:o})});Hu.displayName=zu;function qu(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){bs(Yu,n,l,{discrete:!0})};const l={originalEvent:s};s.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},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Uu(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e),r=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!r.current&&bs(Bu,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 ia(){const e=new CustomEvent(lo);document.dispatchEvent(e)}function bs(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?ru(o,a):o.dispatchEvent(a)}var Br=0;function No(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ca()),document.body.insertAdjacentElement("beforeend",e[1]??ca()),Br++,()=>{Br===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Br--}},[])}function ca(){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 zr="focusScope.autoFocusOnMount",Hr="focusScope.autoFocusOnUnmount",la={bubbles:!1,cancelable:!0},Gu="FocusScope",mr=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=f.useState(null),l=Ot(o),d=Ot(a),u=f.useRef(null),h=we(t,p=>c(p)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let p=function(S){if(g.paused||!s)return;const D=S.target;s.contains(D)?u.current=D:ht(u.current,{select:!0})},b=function(S){if(g.paused||!s)return;const D=S.relatedTarget;D!==null&&(s.contains(D)||ht(u.current,{select:!0}))},k=function(S){if(document.activeElement===document.body)for(const x of S)x.removedNodes.length>0&&ht(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const v=new MutationObserver(k);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),v.disconnect()}}},[r,s,g.paused]),f.useEffect(()=>{if(s){da.add(g);const p=document.activeElement;if(!s.contains(p)){const k=new CustomEvent(zr,la);s.addEventListener(zr,l),s.dispatchEvent(k),k.defaultPrevented||(Vu(Qu(ws(s)),{select:!0}),document.activeElement===p&&ht(s))}return()=>{s.removeEventListener(zr,l),setTimeout(()=>{const k=new CustomEvent(Hr,la);s.addEventListener(Hr,d),s.dispatchEvent(k),k.defaultPrevented||ht(p??document.body,{select:!0}),s.removeEventListener(Hr,d),da.remove(g)},0)}}},[s,l,d,g]);const w=f.useCallback(p=>{if(!n&&!r||g.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,k=document.activeElement;if(b&&k){const v=p.currentTarget,[S,D]=Ku(v);S&&D?!p.shiftKey&&k===D?(p.preventDefault(),n&&ht(S,{select:!0})):p.shiftKey&&k===S&&(p.preventDefault(),n&&ht(D,{select:!0})):k===v&&p.preventDefault()}},[n,r,g.paused]);return m.jsx(ce.div,{tabIndex:-1,...i,ref:h,onKeyDown:w})});mr.displayName=Gu;function Vu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ht(r,{select:t}),document.activeElement!==n)return}function Ku(e){const t=ws(e),n=ua(t,e),r=ua(t.reverse(),e);return[n,r]}function ws(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 ua(e,t){for(const n of e)if(!Xu(n,{upTo:t}))return n}function Xu(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 Zu(e){return e instanceof HTMLInputElement&&"select"in e}function ht(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Zu(e)&&t&&e.select()}}var da=Ju();function Ju(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=fa(e,t),e.unshift(t)},remove(t){var n;e=fa(e,t),(n=e[0])==null||n.resume()}}}function fa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Qu(e){return e.filter(t=>t.tagName!=="A")}var De=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},ed=f[" useId ".trim().toString()]||(()=>{}),td=0;function $e(e){const[t,n]=f.useState(ed());return De(()=>{n(r=>r??String(td++))},[e]),e||(t?`radix-${t}`:"")}const nd=["top","right","bottom","left"],pt=Math.min,We=Math.max,Qn=Math.round,Yn=Math.floor,nt=e=>({x:e,y:e}),rd={left:"right",right:"left",bottom:"top",top:"bottom"},od={start:"end",end:"start"};function uo(e,t,n){return We(e,pt(t,n))}function lt(e,t){return typeof e=="function"?e(t):e}function ut(e){return e.split("-")[0]}function nn(e){return e.split("-")[1]}function Do(e){return e==="x"?"y":"x"}function Po(e){return e==="y"?"height":"width"}const ad=new Set(["top","bottom"]);function et(e){return ad.has(ut(e))?"y":"x"}function Ro(e){return Do(et(e))}function sd(e,t,n){n===void 0&&(n=!1);const r=nn(e),o=Ro(e),a=Po(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=er(i)),[i,er(i)]}function id(e){const t=er(e);return[fo(e),t,fo(t)]}function fo(e){return e.replace(/start|end/g,t=>od[t])}const ma=["left","right"],ha=["right","left"],cd=["top","bottom"],ld=["bottom","top"];function ud(e,t,n){switch(e){case"top":case"bottom":return n?t?ha:ma:t?ma:ha;case"left":case"right":return t?cd:ld;default:return[]}}function dd(e,t,n,r){const o=nn(e);let a=ud(ut(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(fo)))),a}function er(e){return e.replace(/left|right|bottom|top/g,t=>rd[t])}function fd(e){return{top:0,right:0,bottom:0,left:0,...e}}function xs(e){return typeof e!="number"?fd(e):{top:e,right:e,bottom:e,left:e}}function tr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function pa(e,t,n){let{reference:r,floating:o}=e;const a=et(t),i=Ro(t),s=Po(i),c=ut(t),l=a==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let g;switch(c){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-o.width,y:u};break;default:g={x:r.x,y:r.y}}switch(nn(t)){case"start":g[i]-=h*(n&&l?-1:1);break;case"end":g[i]+=h*(n&&l?-1:1);break}return g}const md=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=pa(l,r,c),h=r,g={},w=0;for(let p=0;p<s.length;p++){const{name:b,fn:k}=s[p],{x:v,y:S,data:D,reset:x}=await k({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:l,platform:i,elements:{reference:e,floating:t}});d=v??d,u=S??u,g={...g,[b]:{...g[b],...D}},x&&w<=50&&(w++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(l=x.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:u}=pa(l,h,c)),p=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:g}};async function bn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:g=0}=lt(t,e),w=xs(g),b=s[h?u==="floating"?"reference":"floating":u],k=tr(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:c})),v=u==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),D=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},x=tr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:S,strategy:c}):v);return{top:(k.top-x.top+w.top)/D.y,bottom:(x.bottom-k.bottom+w.bottom)/D.y,left:(k.left-x.left+w.left)/D.x,right:(x.right-k.right+w.right)/D.x}}const hd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:d=0}=lt(e,t)||{};if(l==null)return{};const u=xs(d),h={x:n,y:r},g=Ro(o),w=Po(g),p=await i.getDimensions(l),b=g==="y",k=b?"top":"left",v=b?"bottom":"right",S=b?"clientHeight":"clientWidth",D=a.reference[w]+a.reference[g]-h[g]-a.floating[w],x=h[g]-a.reference[g],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let E=M?M[S]:0;(!E||!await(i.isElement==null?void 0:i.isElement(M)))&&(E=s.floating[S]||a.floating[w]);const N=D/2-x/2,H=E/2-p[w]/2-1,B=pt(u[k],H),L=pt(u[v],H),J=B,te=E-p[w]-L,A=E/2-p[w]/2+N,_=uo(J,A,te),R=!c.arrow&&nn(o)!=null&&A!==_&&a.reference[w]/2-(A<J?B:L)-p[w]/2<0,T=R?A<J?A-J:A-te:0;return{[g]:h[g]+T,data:{[g]:_,centerOffset:A-_-T,...R&&{alignmentOffset:T}},reset:R}}}),pd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...b}=lt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const k=ut(o),v=et(s),S=ut(s)===s,D=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=h||(S||!p?[er(s)]:id(s)),M=w!=="none";!h&&M&&x.push(...dd(s,p,w,D));const E=[s,...x],N=await bn(t,b),H=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&H.push(N[k]),u){const A=sd(o,i,D);H.push(N[A[0]],N[A[1]])}if(B=[...B,{placement:o,overflows:H}],!H.every(A=>A<=0)){var L,J;const A=(((L=a.flip)==null?void 0:L.index)||0)+1,_=E[A];if(_&&(!(u==="alignment"?v!==et(_):!1)||B.every(C=>C.overflows[0]>0&&et(C.placement)===v)))return{data:{index:A,overflows:B},reset:{placement:_}};let R=(J=B.filter(T=>T.overflows[0]<=0).sort((T,C)=>T.overflows[1]-C.overflows[1])[0])==null?void 0:J.placement;if(!R)switch(g){case"bestFit":{var te;const T=(te=B.filter(C=>{if(M){const $=et(C.placement);return $===v||$==="y"}return!0}).map(C=>[C.placement,C.overflows.filter($=>$>0).reduce(($,z)=>$+z,0)]).sort((C,$)=>C[1]-$[1])[0])==null?void 0:te[0];T&&(R=T);break}case"initialPlacement":R=s;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function ga(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function va(e){return nd.some(t=>e[t]>=0)}const gd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=lt(e,t);switch(r){case"referenceHidden":{const a=await bn(t,{...o,elementContext:"reference"}),i=ga(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:va(i)}}}case"escaped":{const a=await bn(t,{...o,altBoundary:!0}),i=ga(a,n.floating);return{data:{escapedOffsets:i,escaped:va(i)}}}default:return{}}}}},Ss=new Set(["left","top"]);async function vd(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=ut(n),s=nn(n),c=et(n)==="y",l=Ss.has(i)?-1:1,d=a&&c?-1:1,u=lt(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:w}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&typeof w=="number"&&(g=s==="end"?w*-1:w),c?{x:g*d,y:h*l}:{x:h*l,y:g*d}}const yd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await vd(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},bd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:k,y:v}=b;return{x:k,y:v}}},...c}=lt(e,t),l={x:n,y:r},d=await bn(t,c),u=et(ut(o)),h=Do(u);let g=l[h],w=l[u];if(a){const b=h==="y"?"top":"left",k=h==="y"?"bottom":"right",v=g+d[b],S=g-d[k];g=uo(v,g,S)}if(i){const b=u==="y"?"top":"left",k=u==="y"?"bottom":"right",v=w+d[b],S=w-d[k];w=uo(v,w,S)}const p=s.fn({...t,[h]:g,[u]:w});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:a,[u]:i}}}}}},wd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=lt(e,t),d={x:n,y:r},u=et(o),h=Do(u);let g=d[h],w=d[u];const p=lt(s,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const S=h==="y"?"height":"width",D=a.reference[h]-a.floating[S]+b.mainAxis,x=a.reference[h]+a.reference[S]-b.mainAxis;g<D?g=D:g>x&&(g=x)}if(l){var k,v;const S=h==="y"?"width":"height",D=Ss.has(ut(o)),x=a.reference[u]-a.floating[S]+(D&&((k=i.offset)==null?void 0:k[u])||0)+(D?0:b.crossAxis),M=a.reference[u]+a.reference[S]+(D?0:((v=i.offset)==null?void 0:v[u])||0)-(D?b.crossAxis:0);w<x?w=x:w>M&&(w=M)}return{[h]:g,[u]:w}}}},xd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...l}=lt(e,t),d=await bn(t,l),u=ut(o),h=nn(o),g=et(o)==="y",{width:w,height:p}=a.floating;let b,k;u==="top"||u==="bottom"?(b=u,k=h===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(k=u,b=h==="end"?"top":"bottom");const v=p-d.top-d.bottom,S=w-d.left-d.right,D=pt(p-d[b],v),x=pt(w-d[k],S),M=!t.middlewareData.shift;let E=D,N=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=v),M&&!h){const B=We(d.left,0),L=We(d.right,0),J=We(d.top,0),te=We(d.bottom,0);g?N=w-2*(B!==0||L!==0?B+L:We(d.left,d.right)):E=p-2*(J!==0||te!==0?J+te:We(d.top,d.bottom))}await c({...t,availableWidth:N,availableHeight:E});const H=await i.getDimensions(s.floating);return w!==H.width||p!==H.height?{reset:{rects:!0}}:{}}}};function hr(){return typeof window<"u"}function rn(e){return ks(e)?(e.nodeName||"").toLowerCase():"#document"}function Fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(ks(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ks(e){return hr()?e instanceof Node||e instanceof Fe(e).Node:!1}function Ve(e){return hr()?e instanceof Element||e instanceof Fe(e).Element:!1}function rt(e){return hr()?e instanceof HTMLElement||e instanceof Fe(e).HTMLElement:!1}function ya(e){return!hr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fe(e).ShadowRoot}const Sd=new Set(["inline","contents"]);function Mn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Sd.has(o)}const kd=new Set(["table","td","th"]);function Cd(e){return kd.has(rn(e))}const Md=[":popover-open",":modal"];function pr(e){return Md.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ed=["transform","translate","scale","rotate","perspective"],Od=["transform","translate","scale","rotate","perspective","filter"],Nd=["paint","layout","strict","content"];function _o(e){const t=To(),n=Ve(e)?Ke(e):e;return Ed.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Od.some(r=>(n.willChange||"").includes(r))||Nd.some(r=>(n.contain||"").includes(r))}function Dd(e){let t=gt(e);for(;rt(t)&&!Xt(t);){if(_o(t))return t;if(pr(t))return null;t=gt(t)}return null}function To(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Pd=new Set(["html","body","#document"]);function Xt(e){return Pd.has(rn(e))}function Ke(e){return Fe(e).getComputedStyle(e)}function gr(e){return Ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gt(e){if(rn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ya(e)&&e.host||ot(e);return ya(t)?t.host:t}function Cs(e){const t=gt(e);return Xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:rt(t)&&Mn(t)?t:Cs(t)}function wn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Cs(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=Fe(o);if(a){const s=mo(i);return t.concat(i,i.visualViewport||[],Mn(o)?o:[],s&&n?wn(s):[])}return t.concat(o,wn(o,[],n))}function mo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ms(e){const t=Ke(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Qn(n)!==a||Qn(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Ao(e){return Ve(e)?e:e.contextElement}function Vt(e){const t=Ao(e);if(!rt(t))return nt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ms(t);let i=(a?Qn(n.width):n.width)/r,s=(a?Qn(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Rd=nt(0);function Es(e){const t=Fe(e);return!To()||!t.visualViewport?Rd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _d(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fe(e)?!1:t}function Nt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Ao(e);let i=nt(1);t&&(r?Ve(r)&&(i=Vt(r)):i=Vt(e));const s=_d(a,n,r)?Es(a):nt(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(a){const h=Fe(a),g=r&&Ve(r)?Fe(r):r;let w=h,p=mo(w);for(;p&&r&&g!==w;){const b=Vt(p),k=p.getBoundingClientRect(),v=Ke(p),S=k.left+(p.clientLeft+parseFloat(v.paddingLeft))*b.x,D=k.top+(p.clientTop+parseFloat(v.paddingTop))*b.y;c*=b.x,l*=b.y,d*=b.x,u*=b.y,c+=S,l+=D,w=Fe(p),p=mo(w)}}return tr({width:d,height:u,x:c,y:l})}function jo(e,t){const n=gr(e).scrollLeft;return t?t.left+n:Nt(ot(e)).left+n}function Os(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:jo(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Td(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=ot(r),s=t?pr(t.floating):!1;if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=nt(1);const d=nt(0),u=rt(r);if((u||!u&&!a)&&((rn(r)!=="body"||Mn(i))&&(c=gr(r)),rt(r))){const g=Nt(r);l=Vt(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const h=i&&!u&&!a?Os(i,c,!0):nt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+h.x,y:n.y*l.y-c.scrollTop*l.y+d.y+h.y}}function Ad(e){return Array.from(e.getClientRects())}function jd(e){const t=ot(e),n=gr(e),r=e.ownerDocument.body,o=We(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=We(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+jo(e);const s=-n.scrollTop;return Ke(r).direction==="rtl"&&(i+=We(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Id(e,t){const n=Fe(e),r=ot(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const l=To();(!l||l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}const Wd=new Set(["absolute","fixed"]);function $d(e,t){const n=Nt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=rt(e)?Vt(e):nt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=r*a.y;return{width:i,height:s,x:c,y:l}}function ba(e,t,n){let r;if(t==="viewport")r=Id(e,n);else if(t==="document")r=jd(ot(e));else if(Ve(t))r=$d(t,n);else{const o=Es(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return tr(r)}function Ns(e,t){const n=gt(e);return n===t||!Ve(n)||Xt(n)?!1:Ke(n).position==="fixed"||Ns(n,t)}function Fd(e,t){const n=t.get(e);if(n)return n;let r=wn(e,[],!1).filter(s=>Ve(s)&&rn(s)!=="body"),o=null;const a=Ke(e).position==="fixed";let i=a?gt(e):e;for(;Ve(i)&&!Xt(i);){const s=Ke(i),c=_o(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&Wd.has(o.position)||Mn(i)&&!c&&Ns(e,i))?r=r.filter(d=>d!==i):o=s,i=gt(i)}return t.set(e,r),r}function Ld(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?pr(t)?[]:Fd(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((l,d)=>{const u=ba(t,d,o);return l.top=We(u.top,l.top),l.right=pt(u.right,l.right),l.bottom=pt(u.bottom,l.bottom),l.left=We(u.left,l.left),l},ba(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Yd(e){const{width:t,height:n}=Ms(e);return{width:t,height:n}}function Bd(e,t,n){const r=rt(t),o=ot(t),a=n==="fixed",i=Nt(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=nt(0);function l(){c.x=jo(o)}if(r||!r&&!a)if((rn(t)!=="body"||Mn(o))&&(s=gr(t)),r){const g=Nt(t,!0,a,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&l();a&&!r&&o&&l();const d=o&&!r&&!a?Os(o,s):nt(0),u=i.left+s.scrollLeft-c.x-d.x,h=i.top+s.scrollTop-c.y-d.y;return{x:u,y:h,width:i.width,height:i.height}}function qr(e){return Ke(e).position==="static"}function wa(e,t){if(!rt(e)||Ke(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function Ds(e,t){const n=Fe(e);if(pr(e))return n;if(!rt(e)){let o=gt(e);for(;o&&!Xt(o);){if(Ve(o)&&!qr(o))return o;o=gt(o)}return n}let r=wa(e,t);for(;r&&Cd(r)&&qr(r);)r=wa(r,t);return r&&Xt(r)&&qr(r)&&!_o(r)?n:r||Dd(e)||n}const zd=async function(e){const t=this.getOffsetParent||Ds,n=this.getDimensions,r=await n(e.floating);return{reference:Bd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Hd(e){return Ke(e).direction==="rtl"}const qd={convertOffsetParentRelativeRectToViewportRelativeRect:Td,getDocumentElement:ot,getClippingRect:Ld,getOffsetParent:Ds,getElementRects:zd,getClientRects:Ad,getDimensions:Yd,getScale:Vt,isElement:Ve,isRTL:Hd};function Ps(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ud(e,t){let n=null,r;const o=ot(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:d,top:u,width:h,height:g}=l;if(s||t(),!h||!g)return;const w=Yn(u),p=Yn(o.clientWidth-(d+h)),b=Yn(o.clientHeight-(u+g)),k=Yn(d),S={rootMargin:-w+"px "+-p+"px "+-b+"px "+-k+"px",threshold:We(0,pt(1,c))||1};let D=!0;function x(M){const E=M[0].intersectionRatio;if(E!==c){if(!D)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Ps(l,e.getBoundingClientRect())&&i(),D=!1}try{n=new IntersectionObserver(x,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,S)}n.observe(e)}return i(!0),a}function Gd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Ao(e),d=o||a?[...l?wn(l):[],...wn(t)]:[];d.forEach(k=>{o&&k.addEventListener("scroll",n,{passive:!0}),a&&k.addEventListener("resize",n)});const u=l&&s?Ud(l,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(k=>{let[v]=k;v&&v.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let w,p=c?Nt(e):null;c&&b();function b(){const k=Nt(e);p&&!Ps(p,k)&&n(),p=k,w=requestAnimationFrame(b)}return n(),()=>{var k;d.forEach(v=>{o&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),u==null||u(),(k=g)==null||k.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const Vd=yd,Kd=bd,Xd=pd,Zd=xd,Jd=gd,xa=hd,Qd=wd,ef=(e,t,n)=>{const r=new Map,o={platform:qd,...n},a={...o.platform,_c:r};return md(e,t,{...o,platform:a})};var tf=typeof document<"u",nf=function(){},Gn=tf?O.useLayoutEffect:nf;function nr(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,o;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(!nr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!nr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Rs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sa(e,t){const n=Rs(e);return Math.round(t*n)/n}function Ur(e){const t=f.useRef(e);return Gn(()=>{t.current=e}),t}function rf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[d,u]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=f.useState(r);nr(h,r)||g(r);const[w,p]=f.useState(null),[b,k]=f.useState(null),v=f.useCallback(C=>{C!==M.current&&(M.current=C,p(C))},[]),S=f.useCallback(C=>{C!==E.current&&(E.current=C,k(C))},[]),D=a||w,x=i||b,M=f.useRef(null),E=f.useRef(null),N=f.useRef(d),H=c!=null,B=Ur(c),L=Ur(o),J=Ur(l),te=f.useCallback(()=>{if(!M.current||!E.current)return;const C={placement:t,strategy:n,middleware:h};L.current&&(C.platform=L.current),ef(M.current,E.current,C).then($=>{const z={...$,isPositioned:J.current!==!1};A.current&&!nr(N.current,z)&&(N.current=z,ur.flushSync(()=>{u(z)}))})},[h,t,n,L,J]);Gn(()=>{l===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,u(C=>({...C,isPositioned:!1})))},[l]);const A=f.useRef(!1);Gn(()=>(A.current=!0,()=>{A.current=!1}),[]),Gn(()=>{if(D&&(M.current=D),x&&(E.current=x),D&&x){if(B.current)return B.current(D,x,te);te()}},[D,x,te,B,H]);const _=f.useMemo(()=>({reference:M,floating:E,setReference:v,setFloating:S}),[v,S]),R=f.useMemo(()=>({reference:D,floating:x}),[D,x]),T=f.useMemo(()=>{const C={position:n,left:0,top:0};if(!R.floating)return C;const $=Sa(R.floating,d.x),z=Sa(R.floating,d.y);return s?{...C,transform:"translate("+$+"px, "+z+"px)",...Rs(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:z}},[n,s,R.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:te,refs:_,elements:R,floatingStyles:T}),[d,te,_,R,T])}const of=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?xa({element:r.current,padding:o}).fn(n):{}:r?xa({element:r,padding:o}).fn(n):{}}}},af=(e,t)=>({...Vd(e),options:[e,t]}),sf=(e,t)=>({...Kd(e),options:[e,t]}),cf=(e,t)=>({...Qd(e),options:[e,t]}),lf=(e,t)=>({...Xd(e),options:[e,t]}),uf=(e,t)=>({...Zd(e),options:[e,t]}),df=(e,t)=>({...Jd(e),options:[e,t]}),ff=(e,t)=>({...of(e),options:[e,t]});var mf="Arrow",_s=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(ce.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});_s.displayName=mf;var hf=_s;function pf(e){const[t,n]=f.useState(void 0);return De(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Io="Popper",[Ts,vr]=Cn(Io),[gf,As]=Ts(Io),js=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return m.jsx(gf,{scope:t,anchor:r,onAnchorChange:o,children:n})};js.displayName=Io;var Is="PopperAnchor",Ws=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=As(Is,n),i=f.useRef(null),s=we(t,i);return f.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:m.jsx(ce.div,{...o,ref:s})});Ws.displayName=Is;var Wo="PopperContent",[vf,yf]=Ts(Wo),$s=f.forwardRef((e,t)=>{var j,K,ee,V,oe,ae;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:w,...p}=e,b=As(Wo,n),[k,v]=f.useState(null),S=we(t,xe=>v(xe)),[D,x]=f.useState(null),M=pf(D),E=(M==null?void 0:M.width)??0,N=(M==null?void 0:M.height)??0,H=r+(a!=="center"?"-"+a:""),B=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},L=Array.isArray(l)?l:[l],J=L.length>0,te={padding:B,boundary:L.filter(wf),altBoundary:J},{refs:A,floatingStyles:_,placement:R,isPositioned:T,middlewareData:C}=rf({strategy:"fixed",placement:H,whileElementsMounted:(...xe)=>Gd(...xe,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[af({mainAxis:o+N,alignmentAxis:i}),c&&sf({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?cf():void 0,...te}),c&&lf({...te}),uf({...te,apply:({elements:xe,rects:Re,availableWidth:Le,availableHeight:je})=>{const{width:Ze,height:At}=Re.reference,qe=xe.floating.style;qe.setProperty("--radix-popper-available-width",`${Le}px`),qe.setProperty("--radix-popper-available-height",`${je}px`),qe.setProperty("--radix-popper-anchor-width",`${Ze}px`),qe.setProperty("--radix-popper-anchor-height",`${At}px`)}}),D&&ff({element:D,padding:s}),xf({arrowWidth:E,arrowHeight:N}),h&&df({strategy:"referenceHidden",...te})]}),[$,z]=Ys(R),ne=Ot(w);De(()=>{T&&(ne==null||ne())},[T,ne]);const P=(j=C.arrow)==null?void 0:j.x,W=(K=C.arrow)==null?void 0:K.y,Y=((ee=C.arrow)==null?void 0:ee.centerOffset)!==0,[F,Q]=f.useState();return De(()=>{k&&Q(window.getComputedStyle(k).zIndex)},[k]),m.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:T?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[(V=C.transformOrigin)==null?void 0:V.x,(oe=C.transformOrigin)==null?void 0:oe.y].join(" "),...((ae=C.hide)==null?void 0:ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(vf,{scope:n,placedSide:$,onArrowChange:x,arrowX:P,arrowY:W,shouldHideArrow:Y,children:m.jsx(ce.div,{"data-side":$,"data-align":z,...p,ref:S,style:{...p.style,animation:T?void 0:"none"}})})})});$s.displayName=Wo;var Fs="PopperArrow",bf={top:"bottom",right:"left",bottom:"top",left:"right"},Ls=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=yf(Fs,r),i=bf[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(hf,{...o,ref:n,style:{...o.style,display:"block"}})})});Ls.displayName=Fs;function wf(e){return e!==null}var xf=e=>({name:"transformOrigin",options:e,fn(t){var b,k,v;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,d]=Ys(n),u={start:"0%",center:"50%",end:"100%"}[d],h=(((k=o.arrow)==null?void 0:k.x)??0)+s/2,g=(((v=o.arrow)==null?void 0:v.y)??0)+c/2;let w="",p="";return l==="bottom"?(w=i?u:`${h}px`,p=`${-c}px`):l==="top"?(w=i?u:`${h}px`,p=`${r.floating.height+c}px`):l==="right"?(w=`${-c}px`,p=i?u:`${g}px`):l==="left"&&(w=`${r.floating.width+c}px`,p=i?u:`${g}px`),{data:{x:w,y:p}}}});function Ys(e){const[t,n="center"]=e.split("-");return[t,n]}var Bs=js,$o=Ws,zs=$s,Hs=Ls,Sf="Portal",yr=f.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=f.useState(!1);De(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Ga.createPortal(m.jsx(ce.div,{...r,ref:t}),i):null});yr.displayName=Sf;function kf(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var on=e=>{const{present:t,children:n}=e,r=Cf(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),a=we(r.ref,Mf(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:a}):null};on.displayName="Presence";function Cf(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[s,c]=kf(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Bn(r.current);a.current=s==="mounted"?l:"none"},[s]),De(()=>{const l=r.current,d=o.current;if(d!==e){const h=a.current,g=Bn(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),De(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,u=g=>{const p=Bn(r.current).includes(g.animationName);if(g.target===t&&p&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=g=>{g.target===t&&(a.current=Bn(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Bn(e){return(e==null?void 0:e.animationName)||"none"}function Mf(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 Ef=f[" useInsertionEffect ".trim().toString()]||De;function rr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=Of({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const u=d.current;u!==s&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const l=f.useCallback(d=>{var u;if(s){const h=Nf(d)?d(e):d;h!==e&&((u=i.current)==null||u.call(i,h))}else a(d)},[s,e,a,i]);return[c,l]}function Of({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),a=f.useRef(t);return Ef(()=>{a.current=t},[t]),f.useEffect(()=>{var i;o.current!==n&&((i=a.current)==null||i.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Nf(e){return typeof e=="function"}var Df=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Bt=new WeakMap,zn=new WeakMap,Hn={},Gr=0,qs=function(e){return e&&(e.host||qs(e.parentNode))},Pf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=qs(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})},Rf=function(e,t,n,r){var o=Pf(t,Array.isArray(e)?e:[e]);Hn[n]||(Hn[n]=new WeakMap);var a=Hn[n],i=[],s=new Set,c=new Set(o),l=function(u){!u||s.has(u)||(s.add(u),l(u.parentNode))};o.forEach(l);var d=function(u){!u||c.has(u)||Array.prototype.forEach.call(u.children,function(h){if(s.has(h))d(h);else try{var g=h.getAttribute(r),w=g!==null&&g!=="false",p=(Bt.get(h)||0)+1,b=(a.get(h)||0)+1;Bt.set(h,p),a.set(h,b),i.push(h),p===1&&w&&zn.set(h,!0),b===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(k){console.error("aria-hidden: cannot operate on ",h,k)}})};return d(t),s.clear(),Gr++,function(){i.forEach(function(u){var h=Bt.get(u)-1,g=a.get(u)-1;Bt.set(u,h),a.set(u,g),h||(zn.has(u)||u.removeAttribute(r),zn.delete(u)),g||u.removeAttribute(n)}),Gr--,Gr||(Bt=new WeakMap,Bt=new WeakMap,zn=new WeakMap,Hn={})}},Fo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Df(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Rf(r,o,n,"aria-hidden")):function(){return null}},Qe=function(){return Qe=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},Qe.apply(this,arguments)};function Us(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 _f(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 Vn="right-scroll-bar-position",Kn="width-before-scroll-bar",Tf="with-scroll-bars-hidden",Af="--removed-body-scroll-bar-size";function Vr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jf(e,t){var n=O.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 If=typeof window<"u"?f.useLayoutEffect:f.useEffect,ka=new WeakMap;function Wf(e,t){var n=jf(null,function(r){return e.forEach(function(o){return Vr(o,r)})});return If(function(){var r=ka.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||Vr(s,null)}),a.forEach(function(s){o.has(s)||Vr(s,i)})}ka.set(n,e)},[e]),n}function $f(e){return e}function Ff(e,t){t===void 0&&(t=$f);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 i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var c=function(){var d=i;i=[],d.forEach(a)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){i.push(d),l()},filter:function(d){return i=i.filter(d),n}}}};return o}function Lf(e){e===void 0&&(e={});var t=Ff(null);return t.options=Qe({async:!0,ssr:!1},e),t}var Gs=function(e){var t=e.sideCar,n=Us(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 f.createElement(r,Qe({},n))};Gs.isSideCarExport=!0;function Yf(e,t){return e.useMedium(t),Gs}var Vs=Lf(),Kr=function(){},br=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Kr,onWheelCapture:Kr,onTouchMoveCapture:Kr}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,u=e.shards,h=e.sideCar,g=e.noRelative,w=e.noIsolation,p=e.inert,b=e.allowPinchZoom,k=e.as,v=k===void 0?"div":k,S=e.gapMode,D=Us(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=h,M=Wf([n,t]),E=Qe(Qe({},D),o);return f.createElement(f.Fragment,null,d&&f.createElement(x,{sideCar:Vs,removeScrollBar:l,shards:u,noRelative:g,noIsolation:w,inert:p,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:S}),i?f.cloneElement(f.Children.only(s),Qe(Qe({},E),{ref:M})):f.createElement(v,Qe({},E,{className:c,ref:M}),s))});br.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};br.classNames={fullWidth:Kn,zeroRight:Vn};var Bf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Bf();return t&&e.setAttribute("nonce",t),e}function Hf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Uf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zf())&&(Hf(t,n),qf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Gf=function(){var e=Uf();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ks=function(){var e=Gf(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Vf={left:0,top:0,right:0,gap:0},Xr=function(e){return parseInt(e||"",10)||0},Kf=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[Xr(n),Xr(r),Xr(o)]},Xf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Vf;var t=Kf(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])}},Zf=Ks(),Kt="data-scroll-locked",Jf=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
131
|
+
.`.concat(Tf,` {
|
|
132
|
+
overflow: hidden `).concat(r,`;
|
|
133
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
134
|
+
}
|
|
135
|
+
body[`).concat(Kt,`] {
|
|
136
|
+
overflow: hidden `).concat(r,`;
|
|
137
|
+
overscroll-behavior: contain;
|
|
138
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
139
|
+
padding-left: `.concat(o,`px;
|
|
140
|
+
padding-top: `).concat(a,`px;
|
|
141
|
+
padding-right: `).concat(i,`px;
|
|
142
|
+
margin-left:0;
|
|
143
|
+
margin-top:0;
|
|
144
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
145
|
+
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.`).concat(Vn,` {
|
|
149
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.`).concat(Kn,` {
|
|
153
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.`).concat(Vn," .").concat(Vn,` {
|
|
157
|
+
right: 0 `).concat(r,`;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.`).concat(Kn," .").concat(Kn,` {
|
|
161
|
+
margin-right: 0 `).concat(r,`;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
body[`).concat(Kt,`] {
|
|
165
|
+
`).concat(Af,": ").concat(s,`px;
|
|
166
|
+
}
|
|
167
|
+
`)},Ca=function(){var e=parseInt(document.body.getAttribute(Kt)||"0",10);return isFinite(e)?e:0},Qf=function(){f.useEffect(function(){return document.body.setAttribute(Kt,(Ca()+1).toString()),function(){var e=Ca()-1;e<=0?document.body.removeAttribute(Kt):document.body.setAttribute(Kt,e.toString())}},[])},em=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Qf();var a=f.useMemo(function(){return Xf(o)},[o]);return f.createElement(Zf,{styles:Jf(a,!t,o,n?"":"!important")})},ho=!1;if(typeof window<"u")try{var qn=Object.defineProperty({},"passive",{get:function(){return ho=!0,!0}});window.addEventListener("test",qn,qn),window.removeEventListener("test",qn,qn)}catch{ho=!1}var zt=ho?{passive:!1}:!1,tm=function(e){return e.tagName==="TEXTAREA"},Xs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!tm(e)&&n[t]==="visible")},nm=function(e){return Xs(e,"overflowY")},rm=function(e){return Xs(e,"overflowX")},Ma=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Zs(e,r);if(o){var a=Js(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},om=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},am=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Zs=function(e,t){return e==="v"?nm(t):rm(t)},Js=function(e,t){return e==="v"?om(t):am(t)},sm=function(e,t){return e==="h"&&t==="rtl"?-1:1},im=function(e,t,n,r,o){var a=sm(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,c=t.contains(s),l=!1,d=i>0,u=0,h=0;do{if(!s)break;var g=Js(e,s),w=g[0],p=g[1],b=g[2],k=p-b-a*w;(w||k)&&Zs(e,s)&&(u+=k,h+=w);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(d&&Math.abs(u)<1||!d&&Math.abs(h)<1)&&(l=!0),l},Un=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ea=function(e){return[e.deltaX,e.deltaY]},Oa=function(e){return e&&"current"in e?e.current:e},cm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},lm=function(e){return`
|
|
168
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
169
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
170
|
+
`)},um=0,Ht=[];function dm(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(um++)[0],a=f.useState(Ks)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=_f([e.lockRef.current],(e.shards||[]).map(Oa),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var k=Un(p),v=n.current,S="deltaX"in p?p.deltaX:v[0]-k[0],D="deltaY"in p?p.deltaY:v[1]-k[1],x,M=p.target,E=Math.abs(S)>Math.abs(D)?"h":"v";if("touches"in p&&E==="h"&&M.type==="range")return!1;var N=Ma(E,M);if(!N)return!0;if(N?x=E:(x=E==="v"?"h":"v",N=Ma(E,M)),!N)return!1;if(!r.current&&"changedTouches"in p&&(S||D)&&(r.current=x),!x)return!0;var H=r.current||x;return im(H,b,p,H==="h"?S:D)},[]),c=f.useCallback(function(p){var b=p;if(!(!Ht.length||Ht[Ht.length-1]!==a)){var k="deltaY"in b?Ea(b):Un(b),v=t.current.filter(function(x){return x.name===b.type&&(x.target===b.target||b.target===x.shadowParent)&&cm(x.delta,k)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var S=(i.current.shards||[]).map(Oa).filter(Boolean).filter(function(x){return x.contains(b.target)}),D=S.length>0?s(b,S[0]):!i.current.noIsolation;D&&b.cancelable&&b.preventDefault()}}},[]),l=f.useCallback(function(p,b,k,v){var S={name:p,delta:b,target:k,should:v,shadowParent:fm(k)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(D){return D!==S})},1)},[]),d=f.useCallback(function(p){n.current=Un(p),r.current=void 0},[]),u=f.useCallback(function(p){l(p.type,Ea(p),p.target,s(p,e.lockRef.current))},[]),h=f.useCallback(function(p){l(p.type,Un(p),p.target,s(p,e.lockRef.current))},[]);f.useEffect(function(){return Ht.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",c,zt),document.addEventListener("touchmove",c,zt),document.addEventListener("touchstart",d,zt),function(){Ht=Ht.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,zt),document.removeEventListener("touchmove",c,zt),document.removeEventListener("touchstart",d,zt)}},[]);var g=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(a,{styles:lm(o)}):null,g?f.createElement(em,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function fm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mm=Yf(Vs,dm);var wr=f.forwardRef(function(e,t){return f.createElement(br,Qe({},e,{ref:t,sideCar:mm}))});wr.classNames=br.classNames;var xr="Popover",[Qs,_y]=Cn(xr,[vr]),En=vr(),[hm,yt]=Qs(xr),ei=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=En(t),c=f.useRef(null),[l,d]=f.useState(!1),[u,h]=rr({prop:r,defaultProp:o??!1,onChange:a,caller:xr});return m.jsx(Bs,{...s,children:m.jsx(hm,{scope:t,contentId:$e(),triggerRef:c,open:u,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(g=>!g),[h]),hasCustomAnchor:l,onCustomAnchorAdd:f.useCallback(()=>d(!0),[]),onCustomAnchorRemove:f.useCallback(()=>d(!1),[]),modal:i,children:n})})};ei.displayName=xr;var ti="PopoverAnchor",pm=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yt(ti,n),a=En(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(i(),()=>s()),[i,s]),m.jsx($o,{...a,...r,ref:t})});pm.displayName=ti;var ni="PopoverTrigger",ri=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yt(ni,n),a=En(n),i=we(t,o.triggerRef),s=m.jsx(ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ci(o.open),...r,ref:i,onClick:pe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:m.jsx($o,{asChild:!0,...a,children:s})});ri.displayName=ni;var Lo="PopoverPortal",[gm,vm]=Qs(Lo,{forceMount:void 0}),oi=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=yt(Lo,t);return m.jsx(gm,{scope:t,forceMount:n,children:m.jsx(on,{present:n||a.open,children:m.jsx(yr,{asChild:!0,container:o,children:r})})})};oi.displayName=Lo;var Zt="PopoverContent",ai=f.forwardRef((e,t)=>{const n=vm(Zt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=yt(Zt,e.__scopePopover);return m.jsx(on,{present:r||a.open,children:a.modal?m.jsx(bm,{...o,ref:t}):m.jsx(wm,{...o,ref:t})})});ai.displayName=Zt;var ym=Mt("PopoverContent.RemoveScroll"),bm=f.forwardRef((e,t)=>{const n=yt(Zt,e.__scopePopover),r=f.useRef(null),o=we(t,r),a=f.useRef(!1);return f.useEffect(()=>{const i=r.current;if(i)return Fo(i)},[]),m.jsx(wr,{as:ym,allowPinchZoom:!0,children:m.jsx(si,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,l=s.button===2||c;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:pe(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),wm=f.forwardRef((e,t)=>{const n=yt(Zt,e.__scopePopover),r=f.useRef(!1),o=f.useRef(!1);return m.jsx(si,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),si=f.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:d,...u}=e,h=yt(Zt,n),g=En(n);return No(),m.jsx(mr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(fr,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:m.jsx(zs,{"data-state":ci(h.open),role:"dialog",id:h.contentId,...g,...u,ref:t,style:{...u.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)"}})})})}),ii="PopoverClose",xm=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yt(ii,n);return m.jsx(ce.button,{type:"button",...r,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});xm.displayName=ii;var Sm="PopoverArrow",km=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=En(n);return m.jsx(Hs,{...o,...r,ref:t})});km.displayName=Sm;function ci(e){return e?"open":"closed"}var Cm=ei,Mm=ri,Em=oi,li=ai;const Om=Cm,Nm=Mm,ui=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(Em,{children:m.jsx(li,{ref:r,sideOffset:t,className:Z("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n})}));ui.displayName=li.displayName;function Na(e,[t,n]){return Math.min(n,Math.max(t,e))}function Dm(e){const t=e+"CollectionProvider",[n,r]=Cn(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:b,children:k}=p,v=O.useRef(null),S=O.useRef(new Map).current;return m.jsx(o,{scope:b,itemMap:S,collectionRef:v,children:k})};i.displayName=t;const s=e+"CollectionSlot",c=Mt(s),l=O.forwardRef((p,b)=>{const{scope:k,children:v}=p,S=a(s,k),D=we(b,S.collectionRef);return m.jsx(c,{ref:D,children:v})});l.displayName=s;const d=e+"CollectionItemSlot",u="data-radix-collection-item",h=Mt(d),g=O.forwardRef((p,b)=>{const{scope:k,children:v,...S}=p,D=O.useRef(null),x=we(b,D),M=a(d,k);return O.useEffect(()=>(M.itemMap.set(D,{ref:D,...S}),()=>void M.itemMap.delete(D))),m.jsx(h,{[u]:"",ref:x,children:v})});g.displayName=d;function w(p){const b=a(e+"CollectionConsumer",p);return O.useCallback(()=>{const v=b.collectionRef.current;if(!v)return[];const S=Array.from(v.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((M,E)=>S.indexOf(M.ref.current)-S.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:g},w,r]}var Pm=f.createContext(void 0);function Rm(e){const t=f.useContext(Pm);return e||t||"ltr"}function _m(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var di=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Tm="VisuallyHidden",Am=f.forwardRef((e,t)=>m.jsx(ce.span,{...e,ref:t,style:{...di,...e.style}}));Am.displayName=Tm;var jm=[" ","Enter","ArrowUp","ArrowDown"],Im=[" ","Enter"],Dt="Select",[Sr,kr,Wm]=Dm(Dt),[an,Ty]=Cn(Dt,[Wm,vr]),Cr=vr(),[$m,bt]=an(Dt),[Fm,Lm]=an(Dt),fi=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:c,dir:l,name:d,autoComplete:u,disabled:h,required:g,form:w}=e,p=Cr(t),[b,k]=f.useState(null),[v,S]=f.useState(null),[D,x]=f.useState(!1),M=Rm(l),[E,N]=rr({prop:r,defaultProp:o??!1,onChange:a,caller:Dt}),[H,B]=rr({prop:i,defaultProp:s,onChange:c,caller:Dt}),L=f.useRef(null),J=b?w||!!b.closest("form"):!0,[te,A]=f.useState(new Set),_=Array.from(te).map(R=>R.props.value).join(";");return m.jsx(Bs,{...p,children:m.jsxs($m,{required:g,scope:t,trigger:b,onTriggerChange:k,valueNode:v,onValueNodeChange:S,valueNodeHasChildren:D,onValueNodeHasChildrenChange:x,contentId:$e(),value:H,onValueChange:B,open:E,onOpenChange:N,dir:M,triggerPointerDownPosRef:L,disabled:h,children:[m.jsx(Sr.Provider,{scope:t,children:m.jsx(Fm,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(R=>{A(T=>new Set(T).add(R))},[]),onNativeOptionRemove:f.useCallback(R=>{A(T=>{const C=new Set(T);return C.delete(R),C})},[]),children:n})}),J?m.jsxs(Ii,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:u,value:H,onChange:R=>B(R.target.value),disabled:h,form:w,children:[H===void 0?m.jsx("option",{value:""}):null,Array.from(te)]},_):null]})})};fi.displayName=Dt;var mi="SelectTrigger",hi=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Cr(n),i=bt(mi,n),s=i.disabled||r,c=we(t,i.onTriggerChange),l=kr(n),d=f.useRef("touch"),[u,h,g]=$i(p=>{const b=l().filter(S=>!S.disabled),k=b.find(S=>S.value===i.value),v=Fi(b,p,k);v!==void 0&&i.onValueChange(v.value)}),w=p=>{s||(i.onOpenChange(!0),g()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return m.jsx($o,{asChild:!0,...a,children:m.jsx(ce.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Wi(i.value)?"":void 0,...o,ref:c,onClick:pe(o.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&w(p)}),onPointerDown:pe(o.onPointerDown,p=>{d.current=p.pointerType;const b=p.target;b.hasPointerCapture(p.pointerId)&&b.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(w(p),p.preventDefault())}),onKeyDown:pe(o.onKeyDown,p=>{const b=u.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(b&&p.key===" ")&&jm.includes(p.key)&&(w(),p.preventDefault())})})})});hi.displayName=mi;var pi="SelectValue",gi=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,c=bt(pi,n),{onValueNodeHasChildrenChange:l}=c,d=a!==void 0,u=we(t,c.onValueNodeChange);return De(()=>{l(d)},[l,d]),m.jsx(ce.span,{...s,ref:u,style:{pointerEvents:"none"},children:Wi(c.value)?m.jsx(m.Fragment,{children:i}):a})});gi.displayName=pi;var Ym="SelectIcon",vi=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return m.jsx(ce.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});vi.displayName=Ym;var Bm="SelectPortal",yi=e=>m.jsx(yr,{asChild:!0,...e});yi.displayName=Bm;var Pt="SelectContent",bi=f.forwardRef((e,t)=>{const n=bt(Pt,e.__scopeSelect),[r,o]=f.useState();if(De(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?ur.createPortal(m.jsx(wi,{scope:e.__scopeSelect,children:m.jsx(Sr.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),a):null}return m.jsx(xi,{...e,ref:t})});bi.displayName=Pt;var Ue=10,[wi,wt]=an(Pt),zm="SelectContentImpl",Hm=Mt("SelectContent.RemoveScroll"),xi=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:c,align:l,alignOffset:d,arrowPadding:u,collisionBoundary:h,collisionPadding:g,sticky:w,hideWhenDetached:p,avoidCollisions:b,...k}=e,v=bt(Pt,n),[S,D]=f.useState(null),[x,M]=f.useState(null),E=we(t,j=>D(j)),[N,H]=f.useState(null),[B,L]=f.useState(null),J=kr(n),[te,A]=f.useState(!1),_=f.useRef(!1);f.useEffect(()=>{if(S)return Fo(S)},[S]),No();const R=f.useCallback(j=>{const[K,...ee]=J().map(ae=>ae.ref.current),[V]=ee.slice(-1),oe=document.activeElement;for(const ae of j)if(ae===oe||(ae==null||ae.scrollIntoView({block:"nearest"}),ae===K&&x&&(x.scrollTop=0),ae===V&&x&&(x.scrollTop=x.scrollHeight),ae==null||ae.focus(),document.activeElement!==oe))return},[J,x]),T=f.useCallback(()=>R([N,S]),[R,N,S]);f.useEffect(()=>{te&&T()},[te,T]);const{onOpenChange:C,triggerPointerDownPosRef:$}=v;f.useEffect(()=>{if(S){let j={x:0,y:0};const K=V=>{var oe,ae;j={x:Math.abs(Math.round(V.pageX)-(((oe=$.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(V.pageY)-(((ae=$.current)==null?void 0:ae.y)??0))}},ee=V=>{j.x<=10&&j.y<=10?V.preventDefault():S.contains(V.target)||C(!1),document.removeEventListener("pointermove",K),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",ee,{capture:!0})}}},[S,C,$]),f.useEffect(()=>{const j=()=>C(!1);return window.addEventListener("blur",j),window.addEventListener("resize",j),()=>{window.removeEventListener("blur",j),window.removeEventListener("resize",j)}},[C]);const[z,ne]=$i(j=>{const K=J().filter(oe=>!oe.disabled),ee=K.find(oe=>oe.ref.current===document.activeElement),V=Fi(K,j,ee);V&&setTimeout(()=>V.ref.current.focus())}),P=f.useCallback((j,K,ee)=>{const V=!_.current&&!ee;(v.value!==void 0&&v.value===K||V)&&(H(j),V&&(_.current=!0))},[v.value]),W=f.useCallback(()=>S==null?void 0:S.focus(),[S]),Y=f.useCallback((j,K,ee)=>{const V=!_.current&&!ee;(v.value!==void 0&&v.value===K||V)&&L(j)},[v.value]),F=r==="popper"?po:Si,Q=F===po?{side:s,sideOffset:c,align:l,alignOffset:d,arrowPadding:u,collisionBoundary:h,collisionPadding:g,sticky:w,hideWhenDetached:p,avoidCollisions:b}:{};return m.jsx(wi,{scope:n,content:S,viewport:x,onViewportChange:M,itemRefCallback:P,selectedItem:N,onItemLeave:W,itemTextRefCallback:Y,focusSelectedItem:T,selectedItemText:B,position:r,isPositioned:te,searchRef:z,children:m.jsx(wr,{as:Hm,allowPinchZoom:!0,children:m.jsx(mr,{asChild:!0,trapped:v.open,onMountAutoFocus:j=>{j.preventDefault()},onUnmountAutoFocus:pe(o,j=>{var K;(K=v.trigger)==null||K.focus({preventScroll:!0}),j.preventDefault()}),children:m.jsx(fr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:j=>j.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:m.jsx(F,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:j=>j.preventDefault(),...k,...Q,onPlaced:()=>A(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:pe(k.onKeyDown,j=>{const K=j.ctrlKey||j.altKey||j.metaKey;if(j.key==="Tab"&&j.preventDefault(),!K&&j.key.length===1&&ne(j.key),["ArrowUp","ArrowDown","Home","End"].includes(j.key)){let V=J().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(j.key)&&(V=V.slice().reverse()),["ArrowUp","ArrowDown"].includes(j.key)){const oe=j.target,ae=V.indexOf(oe);V=V.slice(ae+1)}setTimeout(()=>R(V)),j.preventDefault()}})})})})})})});xi.displayName=zm;var qm="SelectItemAlignedPosition",Si=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=bt(Pt,n),i=wt(Pt,n),[s,c]=f.useState(null),[l,d]=f.useState(null),u=we(t,E=>d(E)),h=kr(n),g=f.useRef(!1),w=f.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:k,focusSelectedItem:v}=i,S=f.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&p&&b&&k){const E=a.trigger.getBoundingClientRect(),N=l.getBoundingClientRect(),H=a.valueNode.getBoundingClientRect(),B=k.getBoundingClientRect();if(a.dir!=="rtl"){const oe=B.left-N.left,ae=H.left-oe,xe=E.left-ae,Re=E.width+xe,Le=Math.max(Re,N.width),je=window.innerWidth-Ue,Ze=Na(ae,[Ue,Math.max(Ue,je-Le)]);s.style.minWidth=Re+"px",s.style.left=Ze+"px"}else{const oe=N.right-B.right,ae=window.innerWidth-H.right-oe,xe=window.innerWidth-E.right-ae,Re=E.width+xe,Le=Math.max(Re,N.width),je=window.innerWidth-Ue,Ze=Na(ae,[Ue,Math.max(Ue,je-Le)]);s.style.minWidth=Re+"px",s.style.right=Ze+"px"}const L=h(),J=window.innerHeight-Ue*2,te=p.scrollHeight,A=window.getComputedStyle(l),_=parseInt(A.borderTopWidth,10),R=parseInt(A.paddingTop,10),T=parseInt(A.borderBottomWidth,10),C=parseInt(A.paddingBottom,10),$=_+R+te+C+T,z=Math.min(b.offsetHeight*5,$),ne=window.getComputedStyle(p),P=parseInt(ne.paddingTop,10),W=parseInt(ne.paddingBottom,10),Y=E.top+E.height/2-Ue,F=J-Y,Q=b.offsetHeight/2,j=b.offsetTop+Q,K=_+R+j,ee=$-K;if(K<=Y){const oe=L.length>0&&b===L[L.length-1].ref.current;s.style.bottom="0px";const ae=l.clientHeight-p.offsetTop-p.offsetHeight,xe=Math.max(F,Q+(oe?W:0)+ae+T),Re=K+xe;s.style.height=Re+"px"}else{const oe=L.length>0&&b===L[0].ref.current;s.style.top="0px";const xe=Math.max(Y,_+p.offsetTop+(oe?P:0)+Q)+ee;s.style.height=xe+"px",p.scrollTop=K-Y+p.offsetTop}s.style.margin=`${Ue}px 0`,s.style.minHeight=z+"px",s.style.maxHeight=J+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,a.trigger,a.valueNode,s,l,p,b,k,a.dir,r]);De(()=>S(),[S]);const[D,x]=f.useState();De(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]);const M=f.useCallback(E=>{E&&w.current===!0&&(S(),v==null||v(),w.current=!1)},[S,v]);return m.jsx(Gm,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:M,children:m.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:m.jsx(ce.div,{...o,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Si.displayName=qm;var Um="SelectPopperPosition",po=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ue,...a}=e,i=Cr(n);return m.jsx(zs,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});po.displayName=Um;var[Gm,Yo]=an(Pt,{}),go="SelectViewport",ki=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=wt(go,n),i=Yo(go,n),s=we(t,a.onViewportChange),c=f.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),m.jsx(Sr.Slot,{scope:n,children:m.jsx(ce.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:pe(o.onScroll,l=>{const d=l.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&u){const g=Math.abs(c.current-d.scrollTop);if(g>0){const w=window.innerHeight-Ue*2,p=parseFloat(u.style.minHeight),b=parseFloat(u.style.height),k=Math.max(p,b);if(k<w){const v=k+g,S=Math.min(w,v),D=v-S;u.style.height=S+"px",u.style.bottom==="0px"&&(d.scrollTop=D>0?D:0,u.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});ki.displayName=go;var Ci="SelectGroup",[Vm,Km]=an(Ci),Xm=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=$e();return m.jsx(Vm,{scope:n,id:o,children:m.jsx(ce.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Xm.displayName=Ci;var Mi="SelectLabel",Ei=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Km(Mi,n);return m.jsx(ce.div,{id:o.id,...r,ref:t})});Ei.displayName=Mi;var or="SelectItem",[Zm,Oi]=an(or),Ni=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=bt(or,n),c=wt(or,n),l=s.value===r,[d,u]=f.useState(a??""),[h,g]=f.useState(!1),w=we(t,v=>{var S;return(S=c.itemRefCallback)==null?void 0:S.call(c,v,r,o)}),p=$e(),b=f.useRef("touch"),k=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx(Zm,{scope:n,value:r,disabled:o,textId:p,isSelected:l,onItemTextChange:f.useCallback(v=>{u(S=>S||((v==null?void 0:v.textContent)??"").trim())},[]),children:m.jsx(Sr.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:m.jsx(ce.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":l&&h,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:w,onFocus:pe(i.onFocus,()=>g(!0)),onBlur:pe(i.onBlur,()=>g(!1)),onClick:pe(i.onClick,()=>{b.current!=="mouse"&&k()}),onPointerUp:pe(i.onPointerUp,()=>{b.current==="mouse"&&k()}),onPointerDown:pe(i.onPointerDown,v=>{b.current=v.pointerType}),onPointerMove:pe(i.onPointerMove,v=>{var S;b.current=v.pointerType,o?(S=c.onItemLeave)==null||S.call(c):b.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(i.onPointerLeave,v=>{var S;v.currentTarget===document.activeElement&&((S=c.onItemLeave)==null||S.call(c))}),onKeyDown:pe(i.onKeyDown,v=>{var D;((D=c.searchRef)==null?void 0:D.current)!==""&&v.key===" "||(Im.includes(v.key)&&k(),v.key===" "&&v.preventDefault())})})})})});Ni.displayName=or;var gn="SelectItemText",Di=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=bt(gn,n),s=wt(gn,n),c=Oi(gn,n),l=Lm(gn,n),[d,u]=f.useState(null),h=we(t,k=>u(k),c.onItemTextChange,k=>{var v;return(v=s.itemTextRefCallback)==null?void 0:v.call(s,k,c.value,c.disabled)}),g=d==null?void 0:d.textContent,w=f.useMemo(()=>m.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=l;return De(()=>(p(w),()=>b(w)),[p,b,w]),m.jsxs(m.Fragment,{children:[m.jsx(ce.span,{id:c.textId,...a,ref:h}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ur.createPortal(a.children,i.valueNode):null]})});Di.displayName=gn;var Pi="SelectItemIndicator",Ri=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Oi(Pi,n).isSelected?m.jsx(ce.span,{"aria-hidden":!0,...r,ref:t}):null});Ri.displayName=Pi;var vo="SelectScrollUpButton",_i=f.forwardRef((e,t)=>{const n=wt(vo,e.__scopeSelect),r=Yo(vo,e.__scopeSelect),[o,a]=f.useState(!1),i=we(t,r.onScrollButtonChange);return De(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=c.scrollTop>0;a(l)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?m.jsx(Ai,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});_i.displayName=vo;var yo="SelectScrollDownButton",Ti=f.forwardRef((e,t)=>{const n=wt(yo,e.__scopeSelect),r=Yo(yo,e.__scopeSelect),[o,a]=f.useState(!1),i=we(t,r.onScrollButtonChange);return De(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<l;a(d)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?m.jsx(Ai,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});Ti.displayName=yo;var Ai=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=wt("SelectScrollButton",n),i=f.useRef(null),s=kr(n),c=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>c(),[c]),De(()=>{var d;const l=s().find(u=>u.ref.current===document.activeElement);(d=l==null?void 0:l.ref.current)==null||d.scrollIntoView({block:"nearest"})},[s]),m.jsx(ce.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:pe(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:pe(o.onPointerMove,()=>{var l;(l=a.onItemLeave)==null||l.call(a),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:pe(o.onPointerLeave,()=>{c()})})}),Jm="SelectSeparator",ji=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(ce.div,{"aria-hidden":!0,...r,ref:t})});ji.displayName=Jm;var bo="SelectArrow",Qm=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Cr(n),a=bt(bo,n),i=wt(bo,n);return a.open&&i.position==="popper"?m.jsx(Hs,{...o,...r,ref:t}):null});Qm.displayName=bo;var eh="SelectBubbleInput",Ii=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),a=we(r,o),i=_m(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&d){const u=new Event("change",{bubbles:!0});d.call(s,t),s.dispatchEvent(u)}},[i,t]),m.jsx(ce.select,{...n,style:{...di,...n.style},ref:a,defaultValue:t})});Ii.displayName=eh;function Wi(e){return e===""||e===void 0}function $i(e){const t=Ot(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(i=>{const s=n.current+i;t(s),function c(l){n.current=l,window.clearTimeout(r.current),l!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),a=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Fi(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=th(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function th(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var nh=fi,Li=hi,rh=gi,oh=vi,ah=yi,Yi=bi,sh=ki,Bi=Ei,zi=Ni,ih=Di,ch=Ri,Hi=_i,qi=Ti,Ui=ji;const wo=nh,xo=rh,ar=f.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(Li,{ref:r,className:Z("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,m.jsx(oh,{asChild:!0,children:m.jsx(ms,{strokeWidth:1.5,className:"h-5 w-5 ml-6 text-black"})})]}));ar.displayName=Li.displayName;const Gi=f.forwardRef(({className:e,...t},n)=>m.jsx(Hi,{ref:n,className:Z("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(xu,{className:"h-4 w-4"})}));Gi.displayName=Hi.displayName;const Vi=f.forwardRef(({className:e,...t},n)=>m.jsx(qi,{ref:n,className:Z("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(ms,{className:"h-4 w-4"})}));Vi.displayName=qi.displayName;const sr=f.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>m.jsx(ah,{children:m.jsxs(Yi,{ref:o,className:Z("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[m.jsx(Gi,{}),m.jsx(sh,{className:Z("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),m.jsx(Vi,{})]})}));sr.displayName=Yi.displayName;const lh=f.forwardRef(({className:e,...t},n)=>m.jsx(Bi,{ref:n,className:Z("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));lh.displayName=Bi.displayName;const ir=f.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(zi,{ref:r,className:Z("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(ch,{children:m.jsx(fs,{className:"h-4 w-4"})})}),m.jsx(ih,{children:t})]}));ir.displayName=zi.displayName;const uh=f.forwardRef(({className:e,...t},n)=>m.jsx(Ui,{ref:n,className:Z("-mx-1 my-1 h-px bg-muted",e),...t}));uh.displayName=Ui.displayName;const Zr={},vn={};function yn(e,t){try{const r=(Zr[e]||(Zr[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in vn?vn[r]:Da(r,r.split(":"))}catch{if(e in vn)return vn[e];const n=e==null?void 0:e.match(dh);return n?Da(e,n.slice(1)):NaN}}const dh=/([+-]\d\d):?(\d\d)?/;function Da(e,t){const n=+t[0],r=+(t[1]||0);return vn[e]=n>0?n*60+r:n*60-r}class tt extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(yn(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Ki(this),So(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new tt(...n,t):new tt(Date.now(),t)}withTimeZone(t){return new tt(+this,t)}getTimezoneOffset(){return-yn(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),So(this),+this}[Symbol.for("constructDateFrom")](t){return new tt(+new Date(t),this.timeZone)}}const Pa=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Pa.test(e))return;const t=e.replace(Pa,"$1UTC");tt.prototype[t]&&(e.startsWith("get")?tt.prototype[e]=function(){return this.internal[t]()}:(tt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),fh(this),+this},tt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),So(this),+this}))});function So(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function fh(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ki(e)}function Ki(e){const t=yn(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),o=-new Date(+n).getTimezoneOffset(),a=r-o,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=r-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const c=yn(e.timeZone,e),d=-new Date(+e).getTimezoneOffset()-c,u=c!==t,h=d-s;if(u&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const g=yn(e.timeZone,e),w=c-g;w&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+w),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+w))}}class Ne extends tt{static tz(t,...n){return n.length?new Ne(...n,t):new Ne(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${mh(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Ne(+this,t)}[Symbol.for("constructDateFrom")](t){return new Ne(+new Date(t),this.timeZone)}}function mh(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}var X;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(X||(X={}));var be;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(be||(be={}));var Ge;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Ge||(Ge={}));var Ie;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Ie||(Ie={}));const Xi=6048e5,hh=864e5,Ra=Symbol.for("constructDateFrom");function Ee(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ra in e?e[Ra](t):e instanceof Date?new e.constructor(t):new Date(t)}function ve(e,t){return Ee(t||e,e)}function Zi(e,t,n){const r=ve(e,n==null?void 0:n.in);return isNaN(t)?Ee(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Ji(e,t,n){const r=ve(e,n==null?void 0:n.in);if(isNaN(t))return Ee(e,NaN);if(!t)return r;const o=r.getDate(),a=Ee(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let ph={};function On(){return ph}function Jt(e,t){var s,c,l,d;const n=On(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(l=n.locale)==null?void 0:l.options)==null?void 0:d.weekStartsOn)??0,o=ve(e,t==null?void 0:t.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function xn(e,t){return Jt(e,{...t,weekStartsOn:1})}function Qi(e,t){const n=ve(e,t==null?void 0:t.in),r=n.getFullYear(),o=Ee(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=xn(o),i=Ee(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=xn(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function _a(e){const t=ve(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function sn(e,...t){const n=Ee.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Sn(e,t){const n=ve(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function ec(e,t,n){const[r,o]=sn(n==null?void 0:n.in,e,t),a=Sn(r),i=Sn(o),s=+a-_a(a),c=+i-_a(i);return Math.round((s-c)/hh)}function gh(e,t){const n=Qi(e,t),r=Ee(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),xn(r)}function vh(e,t,n){return Zi(e,t*7,n)}function yh(e,t,n){return Ji(e,t*12,n)}function bh(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ee.bind(null,o));const a=ve(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),Ee(r,n||NaN)}function wh(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ee.bind(null,o));const a=ve(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),Ee(r,n||NaN)}function xh(e,t,n){const[r,o]=sn(n==null?void 0:n.in,e,t);return+Sn(r)==+Sn(o)}function tc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Sh(e){return!(!tc(e)&&typeof e!="number"||isNaN(+ve(e)))}function kh(e,t,n){const[r,o]=sn(n==null?void 0:n.in,e,t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function Ch(e,t){const n=ve(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Mh(e,t){const[n,r]=sn(e,t.start,t.end);return{start:n,end:r}}function Eh(e,t){const{start:n,end:r}=Mh(t==null?void 0:t.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setDate(1);let s=1;const c=[];for(;+i<=a;)c.push(Ee(n,i)),i.setMonth(i.getMonth()+s);return o?c.reverse():c}function Oh(e,t){const n=ve(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Nh(e,t){const n=ve(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function nc(e,t){const n=ve(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function rc(e,t){var s,c,l,d;const n=On(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(l=n.locale)==null?void 0:l.options)==null?void 0:d.weekStartsOn)??0,o=ve(e,t==null?void 0:t.in),a=o.getDay(),i=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function Dh(e,t){return rc(e,{...t,weekStartsOn:1})}const Ph={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Rh=(e,t,n)=>{let r;const o=Ph[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Jr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const _h={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Th={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ah={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jh={date:Jr({formats:_h,defaultWidth:"full"}),time:Jr({formats:Th,defaultWidth:"full"}),dateTime:Jr({formats:Ah,defaultWidth:"full"})},Ih={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wh=(e,t,n,r)=>Ih[e];function mn(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const $h={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fh={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Lh={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Yh={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Bh={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zh={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Hh=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},qh={ordinalNumber:Hh,era:mn({values:$h,defaultWidth:"wide"}),quarter:mn({values:Fh,defaultWidth:"wide",argumentCallback:e=>e-1}),month:mn({values:Lh,defaultWidth:"wide"}),day:mn({values:Yh,defaultWidth:"wide"}),dayPeriod:mn({values:Bh,defaultWidth:"wide",formattingValues:zh,defaultFormattingWidth:"wide"})};function hn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Gh(s,u=>u.test(i)):Uh(s,u=>u.test(i));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const d=t.slice(i.length);return{value:l,rest:d}}}function Uh(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Gh(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Vh(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const Kh=/^(\d+)(th|st|nd|rd)?/i,Xh=/\d+/i,Zh={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Jh={any:[/^b/i,/^(a|c)/i]},Qh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ep={any:[/1/i,/2/i,/3/i,/4/i]},tp={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},np={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},rp={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},op={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ap={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},sp={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ip={ordinalNumber:Vh({matchPattern:Kh,parsePattern:Xh,valueCallback:e=>parseInt(e,10)}),era:hn({matchPatterns:Zh,defaultMatchWidth:"wide",parsePatterns:Jh,defaultParseWidth:"any"}),quarter:hn({matchPatterns:Qh,defaultMatchWidth:"wide",parsePatterns:ep,defaultParseWidth:"any",valueCallback:e=>e+1}),month:hn({matchPatterns:tp,defaultMatchWidth:"wide",parsePatterns:np,defaultParseWidth:"any"}),day:hn({matchPatterns:rp,defaultMatchWidth:"wide",parsePatterns:op,defaultParseWidth:"any"}),dayPeriod:hn({matchPatterns:ap,defaultMatchWidth:"any",parsePatterns:sp,defaultParseWidth:"any"})},Bo={code:"en-US",formatDistance:Rh,formatLong:jh,formatRelative:Wh,localize:qh,match:ip,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cp(e,t){const n=ve(e,t==null?void 0:t.in);return ec(n,nc(n))+1}function oc(e,t){const n=ve(e,t==null?void 0:t.in),r=+xn(n)-+gh(n);return Math.round(r/Xi)+1}function ac(e,t){var d,u,h,g;const n=ve(e,t==null?void 0:t.in),r=n.getFullYear(),o=On(),a=(t==null?void 0:t.firstWeekContainsDate)??((u=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(h=o.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=Ee((t==null?void 0:t.in)||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=Jt(i,t),c=Ee((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const l=Jt(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function lp(e,t){var s,c,l,d;const n=On(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(l=n.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??1,o=ac(e,t),a=Ee((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Jt(a,t)}function sc(e,t){const n=ve(e,t==null?void 0:t.in),r=+Jt(n,t)-+lp(n,t);return Math.round(r/Xi)+1}function ge(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const mt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ge(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ge(n+1,2)},d(e,t){return ge(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ge(e.getHours()%12||12,t.length)},H(e,t){return ge(e.getHours(),t.length)},m(e,t){return ge(e.getMinutes(),t.length)},s(e,t){return ge(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return ge(o,t.length)}},qt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ta={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return mt.y(e,t)},Y:function(e,t,n,r){const o=ac(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return ge(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):ge(a,t.length)},R:function(e,t){const n=Qi(e);return ge(n,t.length)},u:function(e,t){const n=e.getFullYear();return ge(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ge(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ge(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return mt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ge(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=sc(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):ge(o,t.length)},I:function(e,t,n){const r=oc(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ge(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):mt.d(e,t)},D:function(e,t,n){const r=cp(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ge(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ge(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ge(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return ge(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=qt.noon:r===0?o=qt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=qt.evening:r>=12?o=qt.afternoon:r>=4?o=qt.morning:o=qt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return mt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):mt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ge(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ge(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):mt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):mt.s(e,t)},S:function(e,t){return mt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return ja(r);case"XXXX":case"XX":return kt(r);case"XXXXX":case"XXX":default:return kt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ja(r);case"xxxx":case"xx":return kt(r);case"xxxxx":case"xxx":default:return kt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Aa(r,":");case"OOOO":default:return"GMT"+kt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Aa(r,":");case"zzzz":default:return"GMT"+kt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ge(r,t.length)},T:function(e,t,n){return ge(+e,t.length)}};function Aa(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+ge(a,2)}function ja(e,t){return e%60===0?(e>0?"-":"+")+ge(Math.abs(e)/60,2):kt(e,t)}function kt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=ge(Math.trunc(r/60),2),a=ge(r%60,2);return n+o+t+a}const Ia=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ic=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},up=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Ia(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ia(r,t)).replace("{{time}}",ic(o,t))},dp={p:ic,P:up},fp=/^D+$/,mp=/^Y+$/,hp=["D","DD","YY","YYYY"];function pp(e){return fp.test(e)}function gp(e){return mp.test(e)}function vp(e,t,n){const r=yp(e,t,n);if(console.warn(r),hp.includes(e))throw new RangeError(r)}function yp(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const bp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xp=/^'([^]*?)'?$/,Sp=/''/g,kp=/[a-zA-Z]/;function Cp(e,t,n){var d,u,h,g,w,p,b,k;const r=On(),o=(n==null?void 0:n.locale)??r.locale??Bo,a=(n==null?void 0:n.firstWeekContainsDate)??((u=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((p=(w=n==null?void 0:n.locale)==null?void 0:w.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((k=(b=r.locale)==null?void 0:b.options)==null?void 0:k.weekStartsOn)??0,s=ve(e,n==null?void 0:n.in);if(!Sh(s))throw new RangeError("Invalid time value");let c=t.match(wp).map(v=>{const S=v[0];if(S==="p"||S==="P"){const D=dp[S];return D(v,o.formatLong)}return v}).join("").match(bp).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const S=v[0];if(S==="'")return{isToken:!1,value:Mp(v)};if(Ta[S])return{isToken:!0,value:v};if(S.match(kp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:v}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(v=>{if(!v.isToken)return v.value;const S=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&gp(S)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&pp(S))&&vp(S,t,String(e));const D=Ta[S[0]];return D(s,S,o.localize,l)}).join("")}function Mp(e){const t=e.match(xp);return t?t[1].replace(Sp,"'"):e}function Ep(e,t){const n=ve(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),a=Ee(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Op(e,t){return ve(e,t==null?void 0:t.in).getMonth()}function Np(e,t){return ve(e,t==null?void 0:t.in).getFullYear()}function Dp(e,t){return+ve(e)>+ve(t)}function Pp(e,t){return+ve(e)<+ve(t)}function Rp(e,t,n){const[r,o]=sn(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function _p(e,t,n){const[r,o]=sn(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()}function Tp(e,t,n){const r=ve(e,n==null?void 0:n.in),o=r.getFullYear(),a=r.getDate(),i=Ee(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=Ep(i);return r.setMonth(t,Math.min(a,s)),r}function Ap(e,t,n){const r=ve(e,n==null?void 0:n.in);return isNaN(+r)?Ee(e,NaN):(r.setFullYear(t),r)}const Wa=5,jp=4;function Ip(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,Wa*7-1);return t.getMonth(e)===t.getMonth(a)?Wa:jp}function cc(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-1*6):t.addDays(n,-1*(r-1))}function Wp(e,t){const n=cc(e,t),r=Ip(e,t);return t.addDays(n,r*7-1)}class dt{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?Ne.tz(this.options.timeZone):new this.Date},this.newDate=(r,o,a)=>{var i;return(i=this.overrides)!=null&&i.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new Ne(r,o,a,this.options.timeZone):new Date(r,o,a)},this.addDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addDays?this.overrides.addDays(r,o):Zi(r,o)},this.addMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addMonths?this.overrides.addMonths(r,o):Ji(r,o)},this.addWeeks=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addWeeks?this.overrides.addWeeks(r,o):vh(r,o)},this.addYears=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addYears?this.overrides.addYears(r,o):yh(r,o)},this.differenceInCalendarDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):ec(r,o)},this.differenceInCalendarMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):kh(r,o)},this.eachMonthOfInterval=r=>{var o;return(o=this.overrides)!=null&&o.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):Eh(r)},this.endOfBroadcastWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):Wp(r,this)},this.endOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfISOWeek?this.overrides.endOfISOWeek(r):Dh(r)},this.endOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.endOfMonth?this.overrides.endOfMonth(r):Ch(r)},this.endOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.endOfWeek?this.overrides.endOfWeek(r,o):rc(r,this.options)},this.endOfYear=r=>{var o;return(o=this.overrides)!=null&&o.endOfYear?this.overrides.endOfYear(r):Nh(r)},this.format=(r,o,a)=>{var s;const i=(s=this.overrides)!=null&&s.format?this.overrides.format(r,o,this.options):Cp(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(i):i},this.getISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.getISOWeek?this.overrides.getISOWeek(r):oc(r)},this.getMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getMonth?this.overrides.getMonth(r,this.options):Op(r,this.options)},this.getYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getYear?this.overrides.getYear(r,this.options):Np(r,this.options)},this.getWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getWeek?this.overrides.getWeek(r,this.options):sc(r,this.options)},this.isAfter=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isAfter?this.overrides.isAfter(r,o):Dp(r,o)},this.isBefore=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isBefore?this.overrides.isBefore(r,o):Pp(r,o)},this.isDate=r=>{var o;return(o=this.overrides)!=null&&o.isDate?this.overrides.isDate(r):tc(r)},this.isSameDay=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameDay?this.overrides.isSameDay(r,o):xh(r,o)},this.isSameMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameMonth?this.overrides.isSameMonth(r,o):Rp(r,o)},this.isSameYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameYear?this.overrides.isSameYear(r,o):_p(r,o)},this.max=r=>{var o;return(o=this.overrides)!=null&&o.max?this.overrides.max(r):bh(r)},this.min=r=>{var o;return(o=this.overrides)!=null&&o.min?this.overrides.min(r):wh(r)},this.setMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setMonth?this.overrides.setMonth(r,o):Tp(r,o)},this.setYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setYear?this.overrides.setYear(r,o):Ap(r,o)},this.startOfBroadcastWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):cc(r,this)},this.startOfDay=r=>{var o;return(o=this.overrides)!=null&&o.startOfDay?this.overrides.startOfDay(r):Sn(r)},this.startOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfISOWeek?this.overrides.startOfISOWeek(r):xn(r)},this.startOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.startOfMonth?this.overrides.startOfMonth(r):Oh(r)},this.startOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfWeek?this.overrides.startOfWeek(r,this.options):Jt(r,this.options)},this.startOfYear=r=>{var o;return(o=this.overrides)!=null&&o.startOfYear?this.overrides.startOfYear(r):nc(r)},this.options={locale:Bo,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}}const at=new dt;class lc{constructor(t,n,r=at){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class $p{constructor(t,n){this.date=t,this.weeks=n}}class Fp{constructor(t,n){this.days=n,this.weekNumber=t}}function it(e,t,n=!1,r=at){let{from:o,to:a}=e;const{differenceInCalendarDays:i,isSameDay:s}=r;return o&&a?(i(a,o)<0&&([o,a]=[a,o]),i(t,o)>=(n?1:0)&&i(a,t)>=(n?1:0)):!n&&a?s(a,t):!n&&o?s(o,t):!1}function uc(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function zo(e){return!!(e&&typeof e=="object"&&"from"in e)}function dc(e){return!!(e&&typeof e=="object"&&"after"in e)}function fc(e){return!!(e&&typeof e=="object"&&"before"in e)}function mc(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function hc(e,t){return Array.isArray(e)&&e.every(t.isDate)}function ct(e,t,n=at){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:i}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(e,s);if(hc(s,n))return s.includes(e);if(zo(s))return it(s,e,!1,n);if(mc(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(e.getDay()):s.dayOfWeek===e.getDay();if(uc(s)){const c=a(s.before,e),l=a(s.after,e),d=c>0,u=l<0;return i(s.before,s.after)?u&&d:d||u}return dc(s)?a(e,s.after)>0:fc(s)?a(s.before,e)>0:typeof s=="function"?s(e):!1})}function Lp(e,t,n,r,o){const{disabled:a,hidden:i,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:d}=t,{isSameDay:u,isSameMonth:h,startOfMonth:g,isBefore:w,endOfMonth:p,isAfter:b}=o,k=n&&g(n),v=r&&p(r),S={[be.focused]:[],[be.outside]:[],[be.disabled]:[],[be.hidden]:[],[be.today]:[]},D={};for(const x of e){const{date:M,displayMonth:E}=x,N=!!(E&&!h(M,E)),H=!!(k&&w(M,k)),B=!!(v&&b(M,v)),L=!!(a&&ct(M,a,o)),J=!!(i&&ct(M,i,o))||H||B||!l&&!c&&N||l&&c===!1&&N,te=u(M,d??o.today());N&&S.outside.push(x),L&&S.disabled.push(x),J&&S.hidden.push(x),te&&S.today.push(x),s&&Object.keys(s).forEach(A=>{const _=s==null?void 0:s[A];_&&ct(M,_,o)&&(D[A]?D[A].push(x):D[A]=[x])})}return x=>{const M={[be.focused]:!1,[be.disabled]:!1,[be.hidden]:!1,[be.outside]:!1,[be.today]:!1},E={};for(const N in S){const H=S[N];M[N]=H.some(B=>B===x)}for(const N in D)E[N]=D[N].some(H=>H===x);return{...M,...E}}}function Yp(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[be[a]]?o.push(t[be[a]]):t[Ge[a]]&&o.push(t[Ge[a]]),o),[t[X.Day]])}function Bp(e){return O.createElement("button",{...e})}function zp(e){return O.createElement("span",{...e})}function Hp(e){const{size:t=24,orientation:n="left",className:r}=e;return O.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&O.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&O.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&O.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&O.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function qp(e){const{day:t,modifiers:n,...r}=e;return O.createElement("td",{...r})}function Up(e){const{day:t,modifiers:n,...r}=e,o=O.useRef(null);return O.useEffect(()=>{var a;n.focused&&((a=o.current)==null||a.focus())},[n.focused]),O.createElement("button",{ref:o,...r})}function Gp(e){const{options:t,className:n,components:r,classNames:o,...a}=e,i=[o[X.Dropdown],n].join(" "),s=t==null?void 0:t.find(({value:c})=>c===a.value);return O.createElement("span",{"data-disabled":a.disabled,className:o[X.DropdownRoot]},O.createElement(r.Select,{className:i,...a},t==null?void 0:t.map(({value:c,label:l,disabled:d})=>O.createElement(r.Option,{key:c,value:c,disabled:d},l))),O.createElement("span",{className:o[X.CaptionLabel],"aria-hidden":!0},s==null?void 0:s.label,O.createElement(r.Chevron,{orientation:"down",size:18,className:o[X.Chevron]})))}function Vp(e){return O.createElement("div",{...e})}function Kp(e){return O.createElement("div",{...e})}function Xp(e){const{calendarMonth:t,displayIndex:n,...r}=e;return O.createElement("div",{...r},e.children)}function Zp(e){const{calendarMonth:t,displayIndex:n,...r}=e;return O.createElement("div",{...r})}function Jp(e){return O.createElement("table",{...e})}function Qp(e){return O.createElement("div",{...e})}const pc=O.createContext(void 0);function Nn(){const e=O.useContext(pc);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function eg(e){const{components:t}=Nn();return O.createElement(t.Dropdown,{...e})}function tg(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:i,classNames:s,labels:{labelPrevious:c,labelNext:l}}=Nn(),d=O.useCallback(h=>{o&&(n==null||n(h))},[o,n]),u=O.useCallback(h=>{r&&(t==null||t(h))},[r,t]);return O.createElement("nav",{...a},O.createElement(i.PreviousMonthButton,{type:"button",className:s[X.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:u},O.createElement(i.Chevron,{disabled:r?void 0:!0,className:s[X.Chevron],orientation:"left"})),O.createElement(i.NextMonthButton,{type:"button",className:s[X.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":l(o),onClick:d},O.createElement(i.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[X.Chevron]})))}function ng(e){const{components:t}=Nn();return O.createElement(t.Button,{...e})}function rg(e){return O.createElement("option",{...e})}function og(e){const{components:t}=Nn();return O.createElement(t.Button,{...e})}function ag(e){const{rootRef:t,...n}=e;return O.createElement("div",{...n,ref:t})}function sg(e){return O.createElement("select",{...e})}function ig(e){const{week:t,...n}=e;return O.createElement("tr",{...n})}function cg(e){return O.createElement("th",{...e})}function lg(e){return O.createElement("thead",{"aria-hidden":!0},O.createElement("tr",{...e}))}function ug(e){const{week:t,...n}=e;return O.createElement("th",{...n})}function dg(e){return O.createElement("th",{...e})}function fg(e){return O.createElement("tbody",{...e})}function mg(e){const{components:t}=Nn();return O.createElement(t.Dropdown,{...e})}const hg=Object.freeze(Object.defineProperty({__proto__:null,Button:Bp,CaptionLabel:zp,Chevron:Hp,Day:qp,DayButton:Up,Dropdown:Gp,DropdownNav:Vp,Footer:Kp,Month:Xp,MonthCaption:Zp,MonthGrid:Jp,Months:Qp,MonthsDropdown:eg,Nav:tg,NextMonthButton:ng,Option:rg,PreviousMonthButton:og,Root:ag,Select:sg,Week:ig,WeekNumber:ug,WeekNumberHeader:dg,Weekday:cg,Weekdays:lg,Weeks:fg,YearsDropdown:mg},Symbol.toStringTag,{value:"Module"}));function pg(e){return{...hg,...e}}function gg(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function vg(){const e={};for(const t in X)e[X[t]]=`rdp-${X[t]}`;for(const t in be)e[be[t]]=`rdp-${be[t]}`;for(const t in Ge)e[Ge[t]]=`rdp-${Ge[t]}`;for(const t in Ie)e[Ie[t]]=`rdp-${Ie[t]}`;return e}function gc(e,t,n){return(n??new dt(t)).format(e,"LLLL y")}const yg=gc;function bg(e,t,n){return(n??new dt(t)).format(e,"d")}function wg(e,t=at){return t.format(e,"LLLL")}function xg(e,t=at){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Sg(){return""}function kg(e,t,n){return(n??new dt(t)).format(e,"cccccc")}function vc(e,t=at){return t.format(e,"yyyy")}const Cg=vc,Mg=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:gc,formatDay:bg,formatMonthCaption:yg,formatMonthDropdown:wg,formatWeekNumber:xg,formatWeekNumberHeader:Sg,formatWeekdayName:kg,formatYearCaption:Cg,formatYearDropdown:vc},Symbol.toStringTag,{value:"Module"}));function Eg(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Mg,...e}}function Og(e,t,n,r,o){const{startOfMonth:a,startOfYear:i,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=o;return c({start:i(e),end:s(e)}).map(h=>{const g=r.formatMonthDropdown(h,o),w=l(h),p=t&&h<a(t)||n&&h>a(n)||!1;return{value:w,label:g,disabled:p}})}function Ng(e,t={},n={}){let r={...t==null?void 0:t[X.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n==null?void 0:n[o]}}),r}function Dg(e,t,n){const r=e.today(),o=t?e.startOfISOWeek(r):e.startOfWeek(r),a=[];for(let i=0;i<7;i++){const s=e.addDays(o,i);a.push(s)}return a}function Pg(e,t,n,r){if(!e||!t)return;const{startOfYear:o,endOfYear:a,addYears:i,getYear:s,isBefore:c,isSameYear:l}=r,d=o(e),u=a(t),h=[];let g=d;for(;c(g,u)||l(g,u);)h.push(g),g=i(g,1);return h.map(w=>{const p=n.formatYearDropdown(w,r);return{value:s(w),label:p,disabled:!1}})}function yc(e,t,n){return(n??new dt(t)).format(e,"LLLL y")}const Rg=yc;function _g(e,t,n,r){let o=(r??new dt(n)).format(e,"PPPP");return t!=null&&t.today&&(o=`Today, ${o}`),o}function bc(e,t,n,r){let o=(r??new dt(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Tg=bc;function Ag(){return""}function jg(e){return"Choose the Month"}function Ig(e){return"Go to the Next Month"}function Wg(e){return"Go to the Previous Month"}function $g(e,t,n){return(n??new dt(t)).format(e,"cccc")}function Fg(e,t){return`Week ${e}`}function Lg(e){return"Week Number"}function Yg(e){return"Choose the Year"}const Bg=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Rg,labelDay:Tg,labelDayButton:bc,labelGrid:yc,labelGridcell:_g,labelMonthDropdown:jg,labelNav:Ag,labelNext:Ig,labelPrevious:Wg,labelWeekNumber:Fg,labelWeekNumberHeader:Lg,labelWeekday:$g,labelYearDropdown:Yg},Symbol.toStringTag,{value:"Module"})),Dn=e=>e instanceof HTMLElement?e:null,Qr=e=>[...e.querySelectorAll("[data-animated-month]")??[]],zg=e=>Dn(e.querySelector("[data-animated-month]")),eo=e=>Dn(e.querySelector("[data-animated-caption]")),to=e=>Dn(e.querySelector("[data-animated-weeks]")),Hg=e=>Dn(e.querySelector("[data-animated-nav]")),qg=e=>Dn(e.querySelector("[data-animated-weekdays]"));function Ug(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const i=O.useRef(null),s=O.useRef(r),c=O.useRef(!1);O.useLayoutEffect(()=>{const l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;const d=a.isSameMonth(r[0].date,l[0].date),u=a.isAfter(r[0].date,l[0].date),h=u?n[Ie.caption_after_enter]:n[Ie.caption_before_enter],g=u?n[Ie.weeks_after_enter]:n[Ie.weeks_before_enter],w=i.current,p=e.current.cloneNode(!0);if(p instanceof HTMLElement?(Qr(p).forEach(S=>{if(!(S instanceof HTMLElement))return;const D=zg(S);D&&S.contains(D)&&S.removeChild(D);const x=eo(S);x&&x.classList.remove(h);const M=to(S);M&&M.classList.remove(g)}),i.current=p):i.current=null,c.current||d||o)return;const b=w instanceof HTMLElement?Qr(w):[],k=Qr(e.current);if(k&&k.every(v=>v instanceof HTMLElement)&&b&&b.every(v=>v instanceof HTMLElement)){c.current=!0,e.current.style.isolation="isolate";const v=Hg(e.current);v&&(v.style.zIndex="1"),k.forEach((S,D)=>{const x=b[D];if(!x)return;S.style.position="relative",S.style.overflow="hidden";const M=eo(S);M&&M.classList.add(h);const E=to(S);E&&E.classList.add(g);const N=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),v&&(v.style.zIndex=""),M&&M.classList.remove(h),E&&E.classList.remove(g),S.style.position="",S.style.overflow="",S.contains(x)&&S.removeChild(x)};x.style.pointerEvents="none",x.style.position="absolute",x.style.overflow="hidden",x.setAttribute("aria-hidden","true");const H=qg(x);H&&(H.style.opacity="0");const B=eo(x);B&&(B.classList.add(u?n[Ie.caption_before_exit]:n[Ie.caption_after_exit]),B.addEventListener("animationend",N));const L=to(x);L&&L.classList.add(u?n[Ie.weeks_before_exit]:n[Ie.weeks_after_exit]),S.insertBefore(x,S.firstChild)})}})}function Gg(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:i,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:d,differenceInCalendarMonths:u,endOfBroadcastWeek:h,endOfISOWeek:g,endOfMonth:w,endOfWeek:p,isAfter:b,startOfBroadcastWeek:k,startOfISOWeek:v,startOfWeek:S}=r,D=c?k(o,r):i?v(o):S(o),x=c?h(a):i?g(w(a)):p(w(a)),M=d(x,D),E=u(a,o)+1,N=[];for(let L=0;L<=M;L++){const J=l(D,L);if(t&&b(J,t))break;N.push(J)}const B=(c?35:42)*E;if(s&&N.length<B){const L=B-N.length;for(let J=0;J<L;J++){const te=l(N[N.length-1],1);N.push(te)}}return N}function Vg(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,i)=>[...a,...i.days],t);return[...n,...o]},t)}function Kg(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let i=0;i<o;i++){const s=r.addMonths(e,i);if(t&&s>t)break;a.push(s)}return a}function $a(e,t,n,r){const{month:o,defaultMonth:a,today:i=r.today(),numberOfMonths:s=1}=e;let c=o||a||i;const{differenceInCalendarMonths:l,addMonths:d,startOfMonth:u}=r;if(n&&l(n,c)<s-1){const h=-1*(s-1);c=d(n,h)}return t&&l(c,t)<0&&(c=t),u(c)}function Xg(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:i,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:d,startOfBroadcastWeek:u,startOfISOWeek:h,startOfWeek:g}=r,w=e.reduce((p,b)=>{const k=n.broadcastCalendar?u(b,r):n.ISOWeek?h(b):g(b),v=n.broadcastCalendar?a(b):n.ISOWeek?i(s(b)):c(s(b)),S=t.filter(E=>E>=k&&E<=v),D=n.broadcastCalendar?35:42;if(n.fixedWeeks&&S.length<D){const E=t.filter(N=>{const H=D-S.length;return N>v&&N<=o(v,H)});S.push(...E)}const x=S.reduce((E,N)=>{const H=n.ISOWeek?l(N):d(N),B=E.find(J=>J.weekNumber===H),L=new lc(N,b,r);return B?B.days.push(L):E.push(new Fp(H,[L])),E},[]),M=new $p(b,x);return p.push(M),p},[]);return n.reverseMonths?w.reverse():w}function Zg(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:i,endOfMonth:s,addYears:c,endOfYear:l,newDate:d,today:u}=t,{fromYear:h,toYear:g,fromMonth:w,toMonth:p}=e;!n&&w&&(n=w),!n&&h&&(n=t.newDate(h,0,1)),!r&&p&&(r=p),!r&&g&&(r=d(g,11,31));const b=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=i(n):h?n=d(h,0,1):!n&&b&&(n=o(c(e.today??u(),-100))),r?r=s(r):g?r=d(g,11,31):!r&&b&&(r=l(e.today??u())),[n&&a(n),r&&a(r)]}function Jg(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:c}=r,l=o?a:1,d=i(e);if(!t)return s(d,l);if(!(c(t,e)<a))return s(d,l)}function Qg(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:c}=r,l=o?a??1:1,d=i(e);if(!t)return s(d,-l);if(!(c(d,t)<=0))return s(d,-l)}function ev(e){const t=[];return e.reduce((n,r)=>[...n,...r.weeks],t)}function Mr(e,t){const[n,r]=O.useState(e);return[t===void 0?n:t,r]}function tv(e,t){const[n,r]=Zg(e,t),{startOfMonth:o,endOfMonth:a}=t,i=$a(e,n,r,t),[s,c]=Mr(i,e.month?i:void 0);O.useEffect(()=>{const M=$a(e,n,r,t);c(M)},[e.timeZone]);const l=Kg(s,r,e,t),d=Gg(l,e.endMonth?a(e.endMonth):void 0,e,t),u=Xg(l,d,e,t),h=ev(u),g=Vg(u),w=Qg(s,n,e,t),p=Jg(s,r,e,t),{disableNavigation:b,onMonthChange:k}=e,v=M=>h.some(E=>E.days.some(N=>N.isEqualTo(M))),S=M=>{if(b)return;let E=o(M);n&&E<o(n)&&(E=o(n)),r&&E>o(r)&&(E=o(r)),c(E),k==null||k(E)};return{months:u,weeks:h,days:g,navStart:n,navEnd:r,previousMonth:w,nextMonth:p,goToMonth:S,goToDay:M=>{v(M)||S(M.date)}}}var Je;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Je||(Je={}));function Fa(e){return!e[be.disabled]&&!e[be.hidden]&&!e[be.outside]}function nv(e,t,n,r){let o,a=-1;for(const i of e){const s=t(i);Fa(s)&&(s[be.focused]&&a<Je.FocusedModifier?(o=i,a=Je.FocusedModifier):r!=null&&r.isEqualTo(i)&&a<Je.LastFocused?(o=i,a=Je.LastFocused):n(i.date)&&a<Je.Selected?(o=i,a=Je.Selected):s[be.today]&&a<Je.Today&&(o=i,a=Je.Today))}return o||(o=e.find(i=>Fa(t(i)))),o}function rv(e,t,n,r,o,a,i){const{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:d,addWeeks:u,addYears:h,endOfBroadcastWeek:g,endOfISOWeek:w,endOfWeek:p,max:b,min:k,startOfBroadcastWeek:v,startOfISOWeek:S,startOfWeek:D}=i;let M={day:l,week:u,month:d,year:h,startOfWeek:E=>c?v(E,i):s?S(E):D(E),endOfWeek:E=>c?g(E):s?w(E):p(E)}[e](n,t==="after"?1:-1);return t==="before"&&r?M=b([r,M]):t==="after"&&o&&(M=k([o,M])),M}function wc(e,t,n,r,o,a,i,s=0){if(s>365)return;const c=rv(e,t,n.date,r,o,a,i),l=!!(a.disabled&&ct(c,a.disabled,i)),d=!!(a.hidden&&ct(c,a.hidden,i)),u=c,h=new lc(c,u,i);return!l&&!d?h:wc(e,t,h,r,o,a,i,s+1)}function ov(e,t,n,r,o){const{autoFocus:a}=e,[i,s]=O.useState(),c=nv(t.days,n,r||(()=>!1),i),[l,d]=O.useState(a?c:void 0);return{isFocusTarget:p=>!!(c!=null&&c.isEqualTo(p)),setFocused:d,focused:l,blur:()=>{s(l),d(void 0)},moveFocus:(p,b)=>{if(!l)return;const k=wc(p,b,l,t.navStart,t.navEnd,e,o);k&&(t.goToDay(k),d(k))}}}function av(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=Mr(n,o?n:void 0),s=o?n:a,{isSameDay:c}=t,l=g=>(s==null?void 0:s.some(w=>c(w,g)))??!1,{min:d,max:u}=e;return{selected:s,select:(g,w,p)=>{let b=[...s??[]];if(l(g)){if((s==null?void 0:s.length)===d||r&&(s==null?void 0:s.length)===1)return;b=s==null?void 0:s.filter(k=>!c(k,g))}else(s==null?void 0:s.length)===u?b=[g]:b=[...b,g];return o||i(b),o==null||o(b,g,w,p),b},isSelected:l}}function sv(e,t,n=0,r=0,o=!1,a=at){const{from:i,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:d}=a;let u;if(!i&&!s)u={from:e,to:n>0?void 0:e};else if(i&&!s)c(i,e)?o?u={from:i,to:void 0}:u=void 0:d(e,i)?u={from:e,to:i}:u={from:i,to:e};else if(i&&s)if(c(i,e)&&c(s,e))o?u={from:i,to:s}:u=void 0;else if(c(i,e))u={from:i,to:n>0?void 0:e};else if(c(s,e))u={from:e,to:n>0?void 0:e};else if(d(e,i))u={from:e,to:s};else if(l(e,i))u={from:i,to:e};else if(l(e,s))u={from:i,to:e};else throw new Error("Invalid range");if(u!=null&&u.from&&(u!=null&&u.to)){const h=a.differenceInCalendarDays(u.to,u.from);r>0&&h>r?u={from:e,to:void 0}:n>1&&h<n&&(u={from:e,to:void 0})}return u}function iv(e,t,n=at){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),i=Math.min(a,6);for(let s=0;s<=i;s++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function La(e,t,n=at){return it(e,t.from,!1,n)||it(e,t.to,!1,n)||it(t,e.from,!1,n)||it(t,e.to,!1,n)}function cv(e,t,n=at){const r=Array.isArray(t)?t:[t];if(r.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?it(e,s,!1,n):hc(s,n)?s.some(c=>it(e,c,!1,n)):zo(s)?s.from&&s.to?La(e,{from:s.from,to:s.to},n):!1:mc(s)?iv(e,s.dayOfWeek,n):uc(s)?n.isAfter(s.before,s.after)?La(e,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):ct(e.from,s,n)||ct(e.to,s,n):dc(s)||fc(s)?ct(e.from,s,n)||ct(e.to,s,n):!1))return!0;const i=r.filter(s=>typeof s=="function");if(i.length){let s=e.from;const c=n.differenceInCalendarDays(e.to,e.from);for(let l=0;l<=c;l++){if(i.some(d=>d(s)))return!0;s=n.addDays(s,1)}}return!1}function lv(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:i}=e,[s,c]=Mr(o,i?o:void 0),l=i?o:s;return{selected:l,select:(h,g,w)=>{const{min:p,max:b}=e,k=h?sv(h,l,p,b,a,t):void 0;return r&&n&&(k!=null&&k.from)&&k.to&&cv({from:k.from,to:k.to},n,t)&&(k.from=h,k.to=void 0),i||c(k),i==null||i(k,h,g,w),k},isSelected:h=>l&&it(l,h,!1,t)}}function uv(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=Mr(n,o?n:void 0),s=o?n:a,{isSameDay:c}=t;return{selected:s,select:(u,h,g)=>{let w=u;return!r&&s&&s&&c(u,s)&&(w=void 0),o||i(w),o==null||o(w,u,h,g),w},isSelected:u=>s?c(s,u):!1}}function dv(e,t){const n=uv(e,t),r=av(e,t),o=lv(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function fv(e){var It;let t=e;t.timeZone&&(t={...e},t.today&&(t.today=new Ne(t.today,t.timeZone)),t.month&&(t.month=new Ne(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new Ne(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new Ne(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new Ne(t.endMonth,t.timeZone)),t.mode==="single"&&t.selected?t.selected=new Ne(t.selected,t.timeZone):t.mode==="multiple"&&t.selected?t.selected=(It=t.selected)==null?void 0:It.map(se=>new Ne(se,t.timeZone)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?new Ne(t.selected.from,t.timeZone):void 0,to:t.selected.to?new Ne(t.selected.to,t.timeZone):void 0}));const{components:n,formatters:r,labels:o,dateLib:a,locale:i,classNames:s}=O.useMemo(()=>{const se={...Bo,...t.locale};return{dateLib:new dt({locale:se,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:pg(t.components),formatters:Eg(t.formatters),labels:{...Bg,...t.labels},locale:se,classNames:{...vg(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:c,mode:l,navLayout:d,numberOfMonths:u=1,onDayBlur:h,onDayClick:g,onDayFocus:w,onDayKeyDown:p,onDayMouseEnter:b,onDayMouseLeave:k,onNextClick:v,onPrevClick:S,showWeekNumber:D,styles:x}=t,{formatCaption:M,formatDay:E,formatMonthDropdown:N,formatWeekNumber:H,formatWeekNumberHeader:B,formatWeekdayName:L,formatYearDropdown:J}=r,te=tv(t,a),{days:A,months:_,navStart:R,navEnd:T,previousMonth:C,nextMonth:$,goToMonth:z}=te,ne=Lp(A,t,R,T,a),{isSelected:P,select:W,selected:Y}=dv(t,a)??{},{blur:F,focused:Q,isFocusTarget:j,moveFocus:K,setFocused:ee}=ov(t,te,ne,P??(()=>!1),a),{labelDayButton:V,labelGridcell:oe,labelGrid:ae,labelMonthDropdown:xe,labelNav:Re,labelPrevious:Le,labelNext:je,labelWeekday:Ze,labelWeekNumber:At,labelWeekNumberHeader:qe,labelYearDropdown:Nr}=o,Dr=O.useMemo(()=>Dg(a,t.ISOWeek),[a,t.ISOWeek]),jt=l!==void 0||g!==void 0,cn=O.useCallback(()=>{C&&(z(C),S==null||S(C))},[C,z,S]),ln=O.useCallback(()=>{$&&(z($),v==null||v($))},[z,$,v]),Rn=O.useCallback((se,me)=>ue=>{ue.preventDefault(),ue.stopPropagation(),ee(se),W==null||W(se.date,me,ue),g==null||g(se.date,me,ue)},[W,g,ee]),_n=O.useCallback((se,me)=>ue=>{ee(se),w==null||w(se.date,me,ue)},[w,ee]),Tn=O.useCallback((se,me)=>ue=>{F(),h==null||h(se.date,me,ue)},[F,h]),Pr=O.useCallback((se,me)=>ue=>{const Ye={ArrowLeft:[ue.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[ue.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[ue.shiftKey?"year":"week","after"],ArrowUp:[ue.shiftKey?"year":"week","before"],PageUp:[ue.shiftKey?"year":"month","before"],PageDown:[ue.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Ye[ue.key]){ue.preventDefault(),ue.stopPropagation();const[Te,Wt]=Ye[ue.key];K(Te,Wt)}p==null||p(se.date,me,ue)},[K,p,t.dir]),An=O.useCallback((se,me)=>ue=>{b==null||b(se.date,me,ue)},[b]),jn=O.useCallback((se,me)=>ue=>{k==null||k(se.date,me,ue)},[k]),Rr=O.useCallback(se=>me=>{const ue=Number(me.target.value),Ye=a.setMonth(a.startOfMonth(se),ue);z(Ye)},[a,z]),_r=O.useCallback(se=>me=>{const ue=Number(me.target.value),Ye=a.setYear(a.startOfMonth(se),ue);z(Ye)},[a,z]),{className:Tr,style:Ar}=O.useMemo(()=>({className:[s[X.Root],t.className].filter(Boolean).join(" "),style:{...x==null?void 0:x[X.Root],...t.style}}),[s,t.className,t.style,x]),jr=gg(t),In=O.useRef(null);Ug(In,!!t.animate,{classNames:s,months:_,focused:Q,dateLib:a});const Ir={dayPickerProps:t,selected:Y,select:W,isSelected:P,months:_,nextMonth:$,previousMonth:C,goToMonth:z,getModifiers:ne,components:n,classNames:s,styles:x,labels:o,formatters:r};return O.createElement(pc.Provider,{value:Ir},O.createElement(n.Root,{rootRef:t.animate?In:void 0,className:Tr,style:Ar,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],...jr},O.createElement(n.Months,{className:s[X.Months],style:x==null?void 0:x[X.Months]},!t.hideNavigation&&!d&&O.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:s[X.Nav],style:x==null?void 0:x[X.Nav],"aria-label":Re(),onPreviousClick:cn,onNextClick:ln,previousMonth:C,nextMonth:$}),_.map((se,me)=>{const ue=Og(se.date,R,T,r,a),Ye=Pg(R,T,r,a);return O.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:s[X.Month],style:x==null?void 0:x[X.Month],key:me,displayIndex:me,calendarMonth:se},d==="around"&&!t.hideNavigation&&me===0&&O.createElement(n.PreviousMonthButton,{type:"button",className:s[X.PreviousMonthButton],tabIndex:C?void 0:-1,"aria-disabled":C?void 0:!0,"aria-label":Le(C),onClick:cn,"data-animated-button":t.animate?"true":void 0},O.createElement(n.Chevron,{disabled:C?void 0:!0,className:s[X.Chevron],orientation:t.dir==="rtl"?"right":"left"})),O.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:s[X.MonthCaption],style:x==null?void 0:x[X.MonthCaption],calendarMonth:se,displayIndex:me},c!=null&&c.startsWith("dropdown")?O.createElement(n.DropdownNav,{className:s[X.Dropdowns],style:x==null?void 0:x[X.Dropdowns]},c==="dropdown"||c==="dropdown-months"?O.createElement(n.MonthsDropdown,{className:s[X.MonthsDropdown],"aria-label":xe(),classNames:s,components:n,disabled:!!t.disableNavigation,onChange:Rr(se.date),options:ue,style:x==null?void 0:x[X.Dropdown],value:a.getMonth(se.date)}):O.createElement("span",null,N(se.date,a)),c==="dropdown"||c==="dropdown-years"?O.createElement(n.YearsDropdown,{className:s[X.YearsDropdown],"aria-label":Nr(a.options),classNames:s,components:n,disabled:!!t.disableNavigation,onChange:_r(se.date),options:Ye,style:x==null?void 0:x[X.Dropdown],value:a.getYear(se.date)}):O.createElement("span",null,J(se.date,a)),O.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},M(se.date,a.options,a))):O.createElement(n.CaptionLabel,{className:s[X.CaptionLabel],role:"status","aria-live":"polite"},M(se.date,a.options,a))),d==="around"&&!t.hideNavigation&&me===u-1&&O.createElement(n.NextMonthButton,{type:"button",className:s[X.NextMonthButton],tabIndex:$?void 0:-1,"aria-disabled":$?void 0:!0,"aria-label":je($),onClick:ln,"data-animated-button":t.animate?"true":void 0},O.createElement(n.Chevron,{disabled:$?void 0:!0,className:s[X.Chevron],orientation:t.dir==="rtl"?"left":"right"})),me===u-1&&d==="after"&&!t.hideNavigation&&O.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:s[X.Nav],style:x==null?void 0:x[X.Nav],"aria-label":Re(),onPreviousClick:cn,onNextClick:ln,previousMonth:C,nextMonth:$}),O.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":l==="multiple"||l==="range","aria-label":ae(se.date,a.options,a)||void 0,className:s[X.MonthGrid],style:x==null?void 0:x[X.MonthGrid]},!t.hideWeekdays&&O.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:s[X.Weekdays],style:x==null?void 0:x[X.Weekdays]},D&&O.createElement(n.WeekNumberHeader,{"aria-label":qe(a.options),className:s[X.WeekNumberHeader],style:x==null?void 0:x[X.WeekNumberHeader],scope:"col"},B()),Dr.map((Te,Wt)=>O.createElement(n.Weekday,{"aria-label":Ze(Te,a.options,a),className:s[X.Weekday],key:Wt,style:x==null?void 0:x[X.Weekday],scope:"col"},L(Te,a.options,a)))),O.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:s[X.Weeks],style:x==null?void 0:x[X.Weeks]},se.weeks.map((Te,Wt)=>O.createElement(n.Week,{className:s[X.Week],key:Te.weekNumber,style:x==null?void 0:x[X.Week],week:Te},D&&O.createElement(n.WeekNumber,{week:Te,style:x==null?void 0:x[X.WeekNumber],"aria-label":At(Te.weekNumber,{locale:i}),className:s[X.WeekNumber],scope:"row",role:"rowheader"},H(Te.weekNumber,a)),Te.days.map(Ce=>{const{date:Be}=Ce,fe=ne(Ce);if(fe[be.focused]=!fe.hidden&&!!(Q!=null&&Q.isEqualTo(Ce)),fe[Ge.selected]=(P==null?void 0:P(Be))||fe.selected,zo(Y)){const{from:$t,to:Ft}=Y;fe[Ge.range_start]=!!($t&&Ft&&a.isSameDay(Be,$t)),fe[Ge.range_end]=!!($t&&Ft&&a.isSameDay(Be,Ft)),fe[Ge.range_middle]=it(Y,Be,!0,a)}const Wn=Ng(fe,x,t.modifiersStyles),Wr=Yp(fe,s,t.modifiersClassNames),$r=!jt&&!fe.hidden?oe(Be,fe,a.options,a):void 0;return O.createElement(n.Day,{key:`${a.format(Be,"yyyy-MM-dd")}_${a.format(Ce.displayMonth,"yyyy-MM")}`,day:Ce,modifiers:fe,className:Wr.join(" "),style:Wn,role:"gridcell","aria-selected":fe.selected||void 0,"aria-label":$r,"data-day":a.format(Be,"yyyy-MM-dd"),"data-month":Ce.outside?a.format(Be,"yyyy-MM"):void 0,"data-selected":fe.selected||void 0,"data-disabled":fe.disabled||void 0,"data-hidden":fe.hidden||void 0,"data-outside":Ce.outside||void 0,"data-focused":fe.focused||void 0,"data-today":fe.today||void 0},!fe.hidden&&jt?O.createElement(n.DayButton,{className:s[X.DayButton],style:x==null?void 0:x[X.DayButton],type:"button",day:Ce,modifiers:fe,disabled:fe.disabled||void 0,tabIndex:j(Ce)?0:-1,"aria-label":V(Be,fe,a.options,a),onClick:Rn(Ce,fe),onBlur:Tn(Ce,fe),onFocus:_n(Ce,fe),onKeyDown:Pr(Ce,fe),onMouseEnter:An(Ce,fe),onMouseLeave:jn(Ce,fe)},E(Be,a.options,a)):!fe.hidden&&E(Ce.date,a.options,a))}))))))})),t.footer&&O.createElement(n.Footer,{className:s[X.Footer],style:x==null?void 0:x[X.Footer],role:"status","aria-live":"polite"},t.footer)))}var Xn={exports:{}},mv=Xn.exports,Ya;function xc(){return Ya||(Ya=1,function(e,t){(function(n,r){e.exports=r()})(mv,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",c="hour",l="day",d="week",u="month",h="quarter",g="year",w="date",p="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var _=["th","st","nd","rd"],R=A%100;return"["+A+(_[(R-20)%10]||_[R]||_[0])+"]"}},S=function(A,_,R){var T=String(A);return!T||T.length>=_?A:""+Array(_+1-T.length).join(R)+A},D={s:S,z:function(A){var _=-A.utcOffset(),R=Math.abs(_),T=Math.floor(R/60),C=R%60;return(_<=0?"+":"-")+S(T,2,"0")+":"+S(C,2,"0")},m:function A(_,R){if(_.date()<R.date())return-A(R,_);var T=12*(R.year()-_.year())+(R.month()-_.month()),C=_.clone().add(T,u),$=R-C<0,z=_.clone().add(T+($?-1:1),u);return+(-(T+(R-C)/($?C-z:z-C))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:u,y:g,w:d,d:l,D:w,h:c,m:s,s:i,ms:a,Q:h}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},x="en",M={};M[x]=v;var E="$isDayjsObject",N=function(A){return A instanceof J||!(!A||!A[E])},H=function A(_,R,T){var C;if(!_)return x;if(typeof _=="string"){var $=_.toLowerCase();M[$]&&(C=$),R&&(M[$]=R,C=$);var z=_.split("-");if(!C&&z.length>1)return A(z[0])}else{var ne=_.name;M[ne]=_,C=ne}return!T&&C&&(x=C),C||!T&&x},B=function(A,_){if(N(A))return A.clone();var R=typeof _=="object"?_:{};return R.date=A,R.args=arguments,new J(R)},L=D;L.l=H,L.i=N,L.w=function(A,_){return B(A,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var J=function(){function A(R){this.$L=H(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[E]=!0}var _=A.prototype;return _.parse=function(R){this.$d=function(T){var C=T.date,$=T.utc;if(C===null)return new Date(NaN);if(L.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var z=C.match(b);if(z){var ne=z[2]-1||0,P=(z[7]||"0").substring(0,3);return $?new Date(Date.UTC(z[1],ne,z[3]||1,z[4]||0,z[5]||0,z[6]||0,P)):new Date(z[1],ne,z[3]||1,z[4]||0,z[5]||0,z[6]||0,P)}}return new Date(C)}(R),this.init()},_.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},_.$utils=function(){return L},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(R,T){var C=B(R);return this.startOf(T)<=C&&C<=this.endOf(T)},_.isAfter=function(R,T){return B(R)<this.startOf(T)},_.isBefore=function(R,T){return this.endOf(T)<B(R)},_.$g=function(R,T,C){return L.u(R)?this[T]:this.set(C,R)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(R,T){var C=this,$=!!L.u(T)||T,z=L.p(R),ne=function(ee,V){var oe=L.w(C.$u?Date.UTC(C.$y,V,ee):new Date(C.$y,V,ee),C);return $?oe:oe.endOf(l)},P=function(ee,V){return L.w(C.toDate()[ee].apply(C.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(V)),C)},W=this.$W,Y=this.$M,F=this.$D,Q="set"+(this.$u?"UTC":"");switch(z){case g:return $?ne(1,0):ne(31,11);case u:return $?ne(1,Y):ne(0,Y+1);case d:var j=this.$locale().weekStart||0,K=(W<j?W+7:W)-j;return ne($?F-K:F+(6-K),Y);case l:case w:return P(Q+"Hours",0);case c:return P(Q+"Minutes",1);case s:return P(Q+"Seconds",2);case i:return P(Q+"Milliseconds",3);default:return this.clone()}},_.endOf=function(R){return this.startOf(R,!1)},_.$set=function(R,T){var C,$=L.p(R),z="set"+(this.$u?"UTC":""),ne=(C={},C[l]=z+"Date",C[w]=z+"Date",C[u]=z+"Month",C[g]=z+"FullYear",C[c]=z+"Hours",C[s]=z+"Minutes",C[i]=z+"Seconds",C[a]=z+"Milliseconds",C)[$],P=$===l?this.$D+(T-this.$W):T;if($===u||$===g){var W=this.clone().set(w,1);W.$d[ne](P),W.init(),this.$d=W.set(w,Math.min(this.$D,W.daysInMonth())).$d}else ne&&this.$d[ne](P);return this.init(),this},_.set=function(R,T){return this.clone().$set(R,T)},_.get=function(R){return this[L.p(R)]()},_.add=function(R,T){var C,$=this;R=Number(R);var z=L.p(T),ne=function(Y){var F=B($);return L.w(F.date(F.date()+Math.round(Y*R)),$)};if(z===u)return this.set(u,this.$M+R);if(z===g)return this.set(g,this.$y+R);if(z===l)return ne(1);if(z===d)return ne(7);var P=(C={},C[s]=r,C[c]=o,C[i]=n,C)[z]||1,W=this.$d.getTime()+R*P;return L.w(W,this)},_.subtract=function(R,T){return this.add(-1*R,T)},_.format=function(R){var T=this,C=this.$locale();if(!this.isValid())return C.invalidDate||p;var $=R||"YYYY-MM-DDTHH:mm:ssZ",z=L.z(this),ne=this.$H,P=this.$m,W=this.$M,Y=C.weekdays,F=C.months,Q=C.meridiem,j=function(V,oe,ae,xe){return V&&(V[oe]||V(T,$))||ae[oe].slice(0,xe)},K=function(V){return L.s(ne%12||12,V,"0")},ee=Q||function(V,oe,ae){var xe=V<12?"AM":"PM";return ae?xe.toLowerCase():xe};return $.replace(k,function(V,oe){return oe||function(ae){switch(ae){case"YY":return String(T.$y).slice(-2);case"YYYY":return L.s(T.$y,4,"0");case"M":return W+1;case"MM":return L.s(W+1,2,"0");case"MMM":return j(C.monthsShort,W,F,3);case"MMMM":return j(F,W);case"D":return T.$D;case"DD":return L.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return j(C.weekdaysMin,T.$W,Y,2);case"ddd":return j(C.weekdaysShort,T.$W,Y,3);case"dddd":return Y[T.$W];case"H":return String(ne);case"HH":return L.s(ne,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return ee(ne,P,!0);case"A":return ee(ne,P,!1);case"m":return String(P);case"mm":return L.s(P,2,"0");case"s":return String(T.$s);case"ss":return L.s(T.$s,2,"0");case"SSS":return L.s(T.$ms,3,"0");case"Z":return z}return null}(V)||z.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(R,T,C){var $,z=this,ne=L.p(T),P=B(R),W=(P.utcOffset()-this.utcOffset())*r,Y=this-P,F=function(){return L.m(z,P)};switch(ne){case g:$=F()/12;break;case u:$=F();break;case h:$=F()/3;break;case d:$=(Y-W)/6048e5;break;case l:$=(Y-W)/864e5;break;case c:$=Y/o;break;case s:$=Y/r;break;case i:$=Y/n;break;default:$=Y}return C?$:L.a($)},_.daysInMonth=function(){return this.endOf(u).$D},_.$locale=function(){return M[this.$L]},_.locale=function(R,T){if(!R)return this.$L;var C=this.clone(),$=H(R,T,!0);return $&&(C.$L=$),C},_.clone=function(){return L.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},A}(),te=J.prototype;return B.prototype=te,[["$ms",a],["$s",i],["$m",s],["$H",c],["$W",l],["$M",u],["$y",g],["$D",w]].forEach(function(A){te[A[1]]=function(_){return this.$g(_,A[0],A[1])}}),B.extend=function(A,_){return A.$i||(A(_,J,B),A.$i=!0),B},B.locale=H,B.isDayjs=N,B.unix=function(A){return B(1e3*A)},B.en=M[x],B.Ls=M,B.p={},B})}(Xn)),Xn.exports}var hv=xc();const ko=Ka(hv);var Zn={exports:{}},pv=Zn.exports,Ba;function gv(){return Ba||(Ba=1,function(e,t){(function(n,r){e.exports=r()})(pv,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var l=this.$locale().formats,d=function(u,h){return u.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,w,p){var b=p&&p.toUpperCase();return w||h[p]||n[p]||h[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,v,S){return v||S.slice(1)})})}(c,l===void 0?{}:l);return s.call(this,d)}}})}(Zn)),Zn.exports}var vv=gv();const yv=Ka(vv);var Jn={exports:{}},bv=Jn.exports,za;function wv(){return za||(za=1,function(e,t){(function(n,r){e.exports=r(xc())})(bv,function(n){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(n),a={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(i){return""+i+(i===1?"er":"")}};return o.default.locale(a,null,!0),a})}(Jn)),Jn.exports}wv();function xv({month:e,onMonthChange:t}){const n=e.getFullYear(),r=e.getMonth(),o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=new Date().getFullYear(),i=Array.from({length:201},(u,h)=>a-100+h),s=u=>{const h=new Date(e);h.setMonth(Number.parseInt(u)),t(h)},c=u=>{const h=new Date(e);h.setFullYear(Number.parseInt(u)),t(h)},l=()=>{const u=new Date(e);u.setMonth(u.getMonth()-1),t(u)},d=()=>{const u=new Date(e);u.setMonth(u.getMonth()+1),t(u)};return m.jsxs("div",{className:"flex items-center justify-between p-2 border-b bg-gray-50",children:[m.jsx(Et,{variant:"outline",size:"small",onClick:l,className:"h-7 w-7 p-0",children:m.jsx(vu,{className:"h-4 w-4"})}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs(wo,{value:r.toString(),onValueChange:s,children:[m.jsx(ar,{className:"w-32 h-8 text-sm",children:m.jsx(xo,{})}),m.jsx(sr,{children:o.map((u,h)=>m.jsx(ir,{value:h.toString(),children:u},u))})]}),m.jsxs(wo,{value:n.toString(),onValueChange:c,children:[m.jsx(ar,{className:"w-20 h-8 text-sm",children:m.jsx(xo,{})}),m.jsx(sr,{className:"max-h-[200px]",children:i.map(u=>m.jsx(ir,{value:u.toString(),children:u},u))})]})]}),m.jsx(Et,{variant:"outline",size:"small",onClick:d,className:"h-7 w-7 p-0",children:m.jsx(bu,{className:"h-4 w-4"})})]})}ko.extend(yv);function cr({label:e,placeholder:t="Pick a date",helperText:n,error:r,required:o,value:a,onSelect:i,className:s,minDate:c,maxDate:l,disabled:d,readOnly:u,locale:h="en",showOutsideDays:g,dayPickerProps:w,month:p,onMonthChange:b,open:k,onOpenChange:v,...S}){const[D,x]=O.useState(!1),M=k!==void 0?k:D,E=v||x,N=p??a??new Date,H=B=>{B&&(!a||B.getTime()!==a.getTime())&&(i==null||i(B),E(!1))};return ko.locale(h),m.jsxs("div",{className:Z("space-y-1",s),...S,children:[e&&m.jsxs(Tt,{className:"text-sm font-medium text-gray-700",children:[e,o&&m.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),m.jsxs(Om,{open:M,onOpenChange:E,children:[m.jsx(Nm,{asChild:!0,children:m.jsxs(Et,{variant:"outline",className:Z("w-full flex justify-between items-center font-normal",!a&&"text-muted-foreground",r&&"border-red-500 focus:ring-red-500"),disabled:d,"aria-readonly":u,onClick:()=>E(!M),children:[m.jsx("span",{className:Z("text-left",!a&&"text-gray-400"),children:a?ko(a).locale(h).format("LL"):t}),m.jsx(mu,{strokeWidth:1.2,className:"ml-6 h-6 w-6 shrink-0 text-foreground"})]})}),m.jsx(ui,{className:"w-auto p-0",align:"start",children:m.jsxs("div",{className:"bg-white rounded-md border shadow-md",children:[m.jsx(xv,{month:N,onMonthChange:b??(()=>{})}),m.jsx("div",{className:"p-3",children:m.jsx(fv,{mode:"single",selected:a,onSelect:H,month:N,onMonthChange:b,fromDate:c,toDate:l,showOutsideDays:g,className:"p-0",classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"hidden",caption_label:"text-sm font-medium",nav:"hidden",nav_button:"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",nav_button_previous:"absolute left-1 top-1",nav_button_next:"absolute right-1 top-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:"h-9 w-9 p-0 font-normal aria-selected:opacity-100 hover:bg-accent hover:text-accent-foreground rounded-md transition-colors",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible"},...w})})]})})]}),(n||r)&&m.jsx("p",{className:Z("text-xs",r?"text-red-500":"text-gray-500"),children:r||n})]})}function Qt({label:e,placeholder:t="Select option",options:n,leadingIcon:r,helperText:o,error:a,required:i,onValueChange:s,className:c,variant:l="default",disabled:d=!1}){return m.jsxs("div",{className:Z("space-y-1",c),children:[e&&m.jsxs(Tt,{className:Z("text-sm font-medium",d?"text-gray-400":"text-gray-700"),children:[e,i&&m.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),m.jsxs(wo,{onValueChange:s,disabled:d,children:[m.jsx(ar,{className:Z(a&&"border-red-500 focus:ring-red-500",l==="gray"&&"bg-gray-100 border-gray-300 text-gray-700",d&&"opacity-50 cursor-not-allowed"),children:m.jsxs("div",{className:"flex items-center gap-2 w-full",children:[r&&m.jsx("div",{className:"text-gray-400",children:r}),m.jsx(xo,{placeholder:t})]})}),m.jsx(sr,{children:n.map(u=>m.jsx(ir,{value:u.value,children:u.label},u.value))})]}),(o||a)&&m.jsx("p",{className:Z("text-xs",a?"text-red-500":d?"text-gray-400":"text-gray-500"),children:a||o})]})}const Sv=({label:e,variant:t="filled",color:n="default",size:r="medium",deletable:o=!1,onDelete:a,onClick:i,icon:s,avatar:c,disabled:l=!1,className:d="",...u})=>{const h="inline-flex items-center gap-1 font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",g={small:"px-2 py-0.5 text-xs rounded-full",medium:"px-3 py-1 text-sm rounded-full",large:"px-4 py-1.5 text-base rounded-lg"},w={default:{filled:"bg-gray-200 text-gray-800 hover:bg-gray-300",outlined:"border border-gray-300 text-gray-700 hover:bg-gray-50"},primary:{filled:"bg-blue-500 text-white hover:bg-blue-600",outlined:"border border-blue-500 text-blue-600 hover:bg-blue-50"},secondary:{filled:"bg-purple-500 text-white hover:bg-purple-600",outlined:"border border-purple-500 text-purple-600 hover:bg-purple-50"},success:{filled:"bg-green-500 text-white hover:bg-green-600",outlined:"border border-green-500 text-green-600 hover:bg-green-50"},warning:{filled:"bg-yellow-500 text-white hover:bg-yellow-600",outlined:"border border-yellow-500 text-yellow-600 hover:bg-yellow-50"},error:{filled:"bg-red-500 text-white hover:bg-red-600",outlined:"border border-red-500 text-red-600 hover:bg-red-50"}},p=l?"opacity-50 cursor-not-allowed":"cursor-pointer",b=i&&!l?"hover:shadow-md":"",k=`
|
|
171
|
+
${h}
|
|
172
|
+
${g[r]}
|
|
173
|
+
${w[n][t]}
|
|
174
|
+
${p}
|
|
175
|
+
${b}
|
|
176
|
+
${d}
|
|
177
|
+
`.trim(),v=x=>{!l&&i&&i(x)},S=x=>{x.stopPropagation(),!l&&a&&a(x)},D=r==="small"?12:r==="large"?18:14;return m.jsxs("div",{className:k,onClick:v,...u,children:[c&&m.jsx("div",{className:`rounded-full overflow-hidden ${r==="small"?"w-4 h-4":r==="large"?"w-6 h-6":"w-5 h-5"}`,children:typeof c=="string"?m.jsx("img",{src:c,alt:"",className:"w-full h-full object-cover"}):c}),s&&!c&&m.jsx("div",{className:"flex items-center",children:O.isValidElement(s)?O.cloneElement(s,{size:D}):s}),m.jsx("span",{children:e}),o&&m.jsx("button",{onClick:S,className:`ml-1 rounded-full p-0.5 hover:bg-black hover:bg-opacity-10 transition-colors ${l?"cursor-not-allowed":"cursor-pointer"}`,disabled:l,children:m.jsx(Oo,{size:D})})]})},kv=({children:e,className:t="",...n})=>m.jsx("div",{className:`flex flex-wrap gap-2 ${t}`,...n,children:e}),Cv={small:"h-8 text-sm",medium:"h-10",large:"h-12 text-base"},Mv={white:"bg-white border-gray-300",grey:"bg-gray-100 border-gray-300"};function Sc({size:e="medium",variant:t="white",placeholder:n="Search here",className:r,onChange:o,query:a=""}){return m.jsx(m.Fragment,{children:m.jsxs("div",{className:"relative",children:[m.jsx(ps,{strokeWidth:1.5,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-900 h-4 w-4"}),m.jsx(kn,{placeholder:n,className:Z("pl-10 rounded-full",Cv[e],Mv[t],r),onChange:o,value:a})]})})}const Ev=[{value:"all",label:"All Categories"},{value:"electronics",label:"Electronics"},{value:"clothing",label:"Clothing"},{value:"books",label:"Books"}],Ov=[{value:"newest",label:"Newest First"},{value:"oldest",label:"Oldest First"},{value:"name-asc",label:"Name A-Z"},{value:"name-desc",label:"Name Z-A"}];function Nv({className:e,searchPlaceholder:t="Search...",categories:n=Ev,sortOptions:r=Ov,showDateFilter:o=!1,onSearch:a,onFilter:i,onClear:s,defaultFilters:c}){const[l,d]=O.useState({category:(c==null?void 0:c.category)??"",sort:(c==null?void 0:c.sort)??"",dateFrom:c==null?void 0:c.dateFrom,dateTo:c==null?void 0:c.dateTo}),[u,h]=O.useState(!1),[g,w]=O.useState(!1),[p,b]=O.useState(l.dateFrom??new Date),[k,v]=O.useState(l.dateTo??new Date),S=(M,E)=>{const N={...l,[M]:E};d(N),i==null||i(N)},D=()=>{d({category:"",sort:"",dateFrom:void 0,dateTo:void 0}),s==null||s()},x=Object.values(l).some(M=>M!==""&&M!==void 0);return m.jsxs("div",{className:Z("space-y-4",e),children:[m.jsx(Sc,{size:"medium",placeholder:t,onChange:M=>a==null?void 0:a(M.target.value)}),m.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Ou,{className:"h-4 w-4 text-gray-500"}),m.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Filters:"})]}),m.jsx(Qt,{placeholder:"Category",options:n,onValueChange:M=>S("category",M),className:"min-w-[140px]"}),m.jsx(Qt,{placeholder:"Sort by",options:r,onValueChange:M=>S("sort",M),className:"min-w-[140px]"}),o&&m.jsxs(m.Fragment,{children:[m.jsx(cr,{placeholder:"From date",value:l.dateFrom,onSelect:M=>{S("dateFrom",M),b(M??p)},className:"min-w-[140px]",open:u,onOpenChange:h,month:p,onMonthChange:b}),m.jsx(cr,{placeholder:"To date",value:l.dateTo,onSelect:M=>{S("dateTo",M),v(M??k)},className:"min-w-[140px]",open:g,onOpenChange:w,month:k,onMonthChange:v})]}),x&&m.jsxs(Et,{variant:"outline",size:"small",onClick:D,className:"flex items-center gap-1",children:[m.jsx(Oo,{className:"h-3 w-3"}),"Clear"]})]})]})}const Dv=[{value:"personal",label:"Personal Account"},{value:"business",label:"Business Account"},{value:"developer",label:"Developer Account"}];function Pv({className:e,showDateOfBirth:t=!0,accountTypes:n=Dv,onValueChange:r}){const[o,a]=O.useState(),[i,s]=O.useState(!1),[c,l]=O.useState(!1),[d,u]=O.useState(!1),[h,g]=O.useState(o??new Date),[w,p]=O.useState(""),[b,k]=O.useState("");return m.jsxs("div",{className:Z("space-y-4",e),children:[m.jsx(He,{label:"Username",placeholder:"Choose a username",helperText:"Must be at least 3 characters long",required:!0,onChange:v=>r==null?void 0:r("username",v.target.value)}),m.jsx(He,{label:"Email Address",type:"email",placeholder:"Enter your email",icon:m.jsx(hs,{className:"h-4 w-4"}),required:!0,onChange:v=>r==null?void 0:r("email",v.target.value)}),m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[m.jsx(co,{label:"Password",helperText:"Must be at least 8 characters",required:!0,value:w,onChange:v=>{p(v),r==null||r("password",v)},showPassword:i,onShowPasswordChange:s}),m.jsx(co,{label:"Confirm Password",placeholder:"Confirm your password",required:!0,value:b,onChange:v=>{k(v),r==null||r("confirmPassword",v)},showPassword:c,onShowPasswordChange:l})]}),m.jsx(Qt,{label:"Account Type",placeholder:"Select account type",options:n,leadingIcon:m.jsx(ju,{className:"h-4 w-4"}),required:!0,onValueChange:v=>r==null?void 0:r("accountType",v)}),t&&m.jsx(cr,{label:"Date of Birth",placeholder:"Select your birth date",helperText:"Must be 18 or older",value:o,maxDate:new Date,onSelect:v=>{a(v),g(v??h),v&&(r==null||r("dateOfBirth",v))},open:d,onOpenChange:u,month:h,onMonthChange:g})]})}const Rv=[{value:"us",label:"United States"},{value:"ca",label:"Canada"},{value:"uk",label:"United Kingdom"},{value:"au",label:"Australia"},{value:"de",label:"Germany"},{value:"fr",label:"France"}];function _v({className:e,countries:t=Rv,onValueChange:n}){return m.jsxs("div",{className:Z("space-y-4",e),children:[m.jsx(He,{label:"Street Address",placeholder:"Enter street address",required:!0,onChange:r=>n==null?void 0:n("streetAddress",r.target.value)}),m.jsx(He,{label:"Apartment, suite, etc.",placeholder:"Apartment, suite, etc. (optional)",onChange:r=>n==null?void 0:n("addressLine2",r.target.value)}),m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[m.jsx(He,{label:"City",placeholder:"Enter city",required:!0,onChange:r=>n==null?void 0:n("city",r.target.value)}),m.jsx(He,{label:"State/Province",placeholder:"Enter state",required:!0,onChange:r=>n==null?void 0:n("state",r.target.value)}),m.jsx(He,{label:"ZIP/Postal Code",placeholder:"Enter ZIP code",required:!0,onChange:r=>n==null?void 0:n("zipCode",r.target.value)})]}),m.jsx(Qt,{label:"Country",placeholder:"Select country",options:t,leadingIcon:m.jsx(Pu,{className:"h-4 w-4"}),required:!0,onValueChange:r=>n==null?void 0:n("country",r)})]})}const Tv=[{value:"sales",label:"Sales"},{value:"support",label:"Support"},{value:"general",label:"General Inquiry"}];function Av({className:e,showDepartment:t=!0,departmentOptions:n=Tv,onValueChange:r}){return m.jsxs("div",{className:Z("space-y-4",e),children:[m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[m.jsx(He,{label:"First Name",placeholder:"Enter first name",required:!0,onChange:o=>r==null?void 0:r("firstName",o.target.value)}),m.jsx(He,{label:"Last Name",placeholder:"Enter last name",required:!0,onChange:o=>r==null?void 0:r("lastName",o.target.value)})]}),m.jsx(He,{label:"Email Address",type:"email",placeholder:"Enter your email",icon:m.jsx(hs,{className:"h-4 w-4"}),required:!0,onChange:o=>r==null?void 0:r("email",o.target.value)}),m.jsx(He,{label:"Phone Number",type:"tel",placeholder:"+1 (555) 000-0000",icon:m.jsx(_u,{className:"h-4 w-4"}),onChange:o=>r==null?void 0:r("phone",o.target.value)}),t&&m.jsx(Qt,{label:"Department",placeholder:"Select department",options:n,leadingIcon:m.jsx(du,{className:"h-4 w-4"}),onValueChange:o=>r==null?void 0:r("department",o)}),m.jsx(vs,{label:"Message",placeholder:"How can we help you?",required:!0,onChange:o=>r==null?void 0:r("message",o.target.value)})]})}var Ha=1,jv=.9,Iv=.8,Wv=.17,no=.1,ro=.999,$v=.9999,Fv=.99,Lv=/[\\\/_+.#"@\[\(\{&]/,Yv=/[\\\/_+.#"@\[\(\{&]/g,Bv=/[\s-]/,kc=/[\s-]/g;function Co(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?Ha:Fv;var s=`${o},${a}`;if(i[s]!==void 0)return i[s];for(var c=r.charAt(a),l=n.indexOf(c,o),d=0,u,h,g,w;l>=0;)u=Co(e,t,n,r,l+1,a+1,i),u>d&&(l===o?u*=Ha:Lv.test(e.charAt(l-1))?(u*=Iv,g=e.slice(o,l-1).match(Yv),g&&o>0&&(u*=Math.pow(ro,g.length))):Bv.test(e.charAt(l-1))?(u*=jv,w=e.slice(o,l-1).match(kc),w&&o>0&&(u*=Math.pow(ro,w.length))):(u*=Wv,o>0&&(u*=Math.pow(ro,l-o))),e.charAt(l)!==t.charAt(a)&&(u*=$v)),(u<no&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(h=Co(e,t,n,r,l+1,a+2,i),h*no>u&&(u=h*no)),u>d&&(d=u),l=n.indexOf(c,l+1);return i[s]=d,d}function qa(e){return e.toLowerCase().replace(kc," ")}function zv(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Co(e,t,qa(e),qa(t),0,0,{})}var Er="Dialog",[Cc,Ay]=Cn(Er),[Hv,Xe]=Cc(Er),Mc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=f.useRef(null),c=f.useRef(null),[l,d]=rr({prop:r,defaultProp:o??!1,onChange:a,caller:Er});return m.jsx(Hv,{scope:t,triggerRef:s,contentRef:c,contentId:$e(),titleId:$e(),descriptionId:$e(),open:l,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(u=>!u),[d]),modal:i,children:n})};Mc.displayName=Er;var Ec="DialogTrigger",qv=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xe(Ec,n),a=we(t,o.triggerRef);return m.jsx(ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Uo(o.open),...r,ref:a,onClick:pe(e.onClick,o.onOpenToggle)})});qv.displayName=Ec;var Ho="DialogPortal",[Uv,Oc]=Cc(Ho,{forceMount:void 0}),Nc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Xe(Ho,t);return m.jsx(Uv,{scope:t,forceMount:n,children:f.Children.map(r,i=>m.jsx(on,{present:n||a.open,children:m.jsx(yr,{asChild:!0,container:o,children:i})}))})};Nc.displayName=Ho;var lr="DialogOverlay",Dc=f.forwardRef((e,t)=>{const n=Oc(lr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Xe(lr,e.__scopeDialog);return a.modal?m.jsx(on,{present:r||a.open,children:m.jsx(Vv,{...o,ref:t})}):null});Dc.displayName=lr;var Gv=Mt("DialogOverlay.RemoveScroll"),Vv=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xe(lr,n);return m.jsx(wr,{as:Gv,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(ce.div,{"data-state":Uo(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Rt="DialogContent",Pc=f.forwardRef((e,t)=>{const n=Oc(Rt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Xe(Rt,e.__scopeDialog);return m.jsx(on,{present:r||a.open,children:a.modal?m.jsx(Kv,{...o,ref:t}):m.jsx(Xv,{...o,ref:t})})});Pc.displayName=Rt;var Kv=f.forwardRef((e,t)=>{const n=Xe(Rt,e.__scopeDialog),r=f.useRef(null),o=we(t,n.contentRef,r);return f.useEffect(()=>{const a=r.current;if(a)return Fo(a)},[]),m.jsx(Rc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,a=>a.preventDefault())})}),Xv=f.forwardRef((e,t)=>{const n=Xe(Rt,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return m.jsx(Rc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Rc=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Xe(Rt,n),c=f.useRef(null),l=we(t,c);return No(),m.jsxs(m.Fragment,{children:[m.jsx(mr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(fr,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Uo(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Zv,{titleId:s.titleId}),m.jsx(Qv,{contentRef:c,descriptionId:s.descriptionId})]})]})}),qo="DialogTitle",_c=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xe(qo,n);return m.jsx(ce.h2,{id:o.titleId,...r,ref:t})});_c.displayName=qo;var Tc="DialogDescription",Ac=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xe(Tc,n);return m.jsx(ce.p,{id:o.descriptionId,...r,ref:t})});Ac.displayName=Tc;var jc="DialogClose",Ic=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xe(jc,n);return m.jsx(ce.button,{type:"button",...r,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});Ic.displayName=jc;function Uo(e){return e?"open":"closed"}var Wc="DialogTitleWarning",[jy,$c]=Wu(Wc,{contentName:Rt,titleName:qo,docsSlug:"dialog"}),Zv=({titleId:e})=>{const t=$c(Wc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
178
|
+
|
|
179
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
180
|
+
|
|
181
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Jv="DialogDescriptionWarning",Qv=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$c(Jv).contentName}}.`;return f.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},ey=Mc,Fc=Nc,Go=Dc,Vo=Pc,Lc=_c,Yc=Ac,ty=Ic,pn='[cmdk-group=""]',oo='[cmdk-group-items=""]',ny='[cmdk-group-heading=""]',Bc='[cmdk-item=""]',Ua=`${Bc}:not([aria-disabled="true"])`,Mo="cmdk-item-select",Ut="data-value",ry=(e,t,n)=>zv(e,t,n),zc=f.createContext(void 0),Pn=()=>f.useContext(zc),Hc=f.createContext(void 0),Ko=()=>f.useContext(Hc),qc=f.createContext(void 0),Uc=f.forwardRef((e,t)=>{let n=Gt(()=>{var P,W;return{search:"",value:(W=(P=e.value)!=null?P:e.defaultValue)!=null?W:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Gt(()=>new Set),o=Gt(()=>new Map),a=Gt(()=>new Map),i=Gt(()=>new Set),s=Gc(e),{label:c,children:l,value:d,onValueChange:u,filter:h,shouldFilter:g,loop:w,disablePointerSelection:p=!1,vimBindings:b=!0,...k}=e,v=$e(),S=$e(),D=$e(),x=f.useRef(null),M=hy();_t(()=>{if(d!==void 0){let P=d.trim();n.current.value=P,E.emit()}},[d]),_t(()=>{M(6,te)},[]);let E=f.useMemo(()=>({subscribe:P=>(i.current.add(P),()=>i.current.delete(P)),snapshot:()=>n.current,setState:(P,W,Y)=>{var F,Q,j,K;if(!Object.is(n.current[P],W)){if(n.current[P]=W,P==="search")J(),B(),M(1,L);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ee=document.getElementById(D);ee?ee.focus():(F=document.getElementById(v))==null||F.focus()}if(M(7,()=>{var ee;n.current.selectedItemId=(ee=A())==null?void 0:ee.id,E.emit()}),Y||M(5,te),((Q=s.current)==null?void 0:Q.value)!==void 0){let ee=W??"";(K=(j=s.current).onValueChange)==null||K.call(j,ee);return}}E.emit()}},emit:()=>{i.current.forEach(P=>P())}}),[]),N=f.useMemo(()=>({value:(P,W,Y)=>{var F;W!==((F=a.current.get(P))==null?void 0:F.value)&&(a.current.set(P,{value:W,keywords:Y}),n.current.filtered.items.set(P,H(W,Y)),M(2,()=>{B(),E.emit()}))},item:(P,W)=>(r.current.add(P),W&&(o.current.has(W)?o.current.get(W).add(P):o.current.set(W,new Set([P]))),M(3,()=>{J(),B(),n.current.value||L(),E.emit()}),()=>{a.current.delete(P),r.current.delete(P),n.current.filtered.items.delete(P);let Y=A();M(4,()=>{J(),(Y==null?void 0:Y.getAttribute("id"))===P&&L(),E.emit()})}),group:P=>(o.current.has(P)||o.current.set(P,new Set),()=>{a.current.delete(P),o.current.delete(P)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:v,inputId:D,labelId:S,listInnerRef:x}),[]);function H(P,W){var Y,F;let Q=(F=(Y=s.current)==null?void 0:Y.filter)!=null?F:ry;return P?Q(P,n.current.search,W):0}function B(){if(!n.current.search||s.current.shouldFilter===!1)return;let P=n.current.filtered.items,W=[];n.current.filtered.groups.forEach(F=>{let Q=o.current.get(F),j=0;Q.forEach(K=>{let ee=P.get(K);j=Math.max(ee,j)}),W.push([F,j])});let Y=x.current;_().sort((F,Q)=>{var j,K;let ee=F.getAttribute("id"),V=Q.getAttribute("id");return((j=P.get(V))!=null?j:0)-((K=P.get(ee))!=null?K:0)}).forEach(F=>{let Q=F.closest(oo);Q?Q.appendChild(F.parentElement===Q?F:F.closest(`${oo} > *`)):Y.appendChild(F.parentElement===Y?F:F.closest(`${oo} > *`))}),W.sort((F,Q)=>Q[1]-F[1]).forEach(F=>{var Q;let j=(Q=x.current)==null?void 0:Q.querySelector(`${pn}[${Ut}="${encodeURIComponent(F[0])}"]`);j==null||j.parentElement.appendChild(j)})}function L(){let P=_().find(Y=>Y.getAttribute("aria-disabled")!=="true"),W=P==null?void 0:P.getAttribute(Ut);E.setState("value",W||void 0)}function J(){var P,W,Y,F;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Q=0;for(let j of r.current){let K=(W=(P=a.current.get(j))==null?void 0:P.value)!=null?W:"",ee=(F=(Y=a.current.get(j))==null?void 0:Y.keywords)!=null?F:[],V=H(K,ee);n.current.filtered.items.set(j,V),V>0&&Q++}for(let[j,K]of o.current)for(let ee of K)if(n.current.filtered.items.get(ee)>0){n.current.filtered.groups.add(j);break}n.current.filtered.count=Q}function te(){var P,W,Y;let F=A();F&&(((P=F.parentElement)==null?void 0:P.firstChild)===F&&((Y=(W=F.closest(pn))==null?void 0:W.querySelector(ny))==null||Y.scrollIntoView({block:"nearest"})),F.scrollIntoView({block:"nearest"}))}function A(){var P;return(P=x.current)==null?void 0:P.querySelector(`${Bc}[aria-selected="true"]`)}function _(){var P;return Array.from(((P=x.current)==null?void 0:P.querySelectorAll(Ua))||[])}function R(P){let W=_()[P];W&&E.setState("value",W.getAttribute(Ut))}function T(P){var W;let Y=A(),F=_(),Q=F.findIndex(K=>K===Y),j=F[Q+P];(W=s.current)!=null&&W.loop&&(j=Q+P<0?F[F.length-1]:Q+P===F.length?F[0]:F[Q+P]),j&&E.setState("value",j.getAttribute(Ut))}function C(P){let W=A(),Y=W==null?void 0:W.closest(pn),F;for(;Y&&!F;)Y=P>0?fy(Y,pn):my(Y,pn),F=Y==null?void 0:Y.querySelector(Ua);F?E.setState("value",F.getAttribute(Ut)):T(P)}let $=()=>R(_().length-1),z=P=>{P.preventDefault(),P.metaKey?$():P.altKey?C(1):T(1)},ne=P=>{P.preventDefault(),P.metaKey?R(0):P.altKey?C(-1):T(-1)};return f.createElement(ce.div,{ref:t,tabIndex:-1,...k,"cmdk-root":"",onKeyDown:P=>{var W;(W=k.onKeyDown)==null||W.call(k,P);let Y=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||Y))switch(P.key){case"n":case"j":{b&&P.ctrlKey&&z(P);break}case"ArrowDown":{z(P);break}case"p":case"k":{b&&P.ctrlKey&&ne(P);break}case"ArrowUp":{ne(P);break}case"Home":{P.preventDefault(),R(0);break}case"End":{P.preventDefault(),$();break}case"Enter":{P.preventDefault();let F=A();if(F){let Q=new Event(Mo);F.dispatchEvent(Q)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:gy},c),Or(e,P=>f.createElement(Hc.Provider,{value:E},f.createElement(zc.Provider,{value:N},P))))}),oy=f.forwardRef((e,t)=>{var n,r;let o=$e(),a=f.useRef(null),i=f.useContext(qc),s=Pn(),c=Gc(e),l=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:i==null?void 0:i.forceMount;_t(()=>{if(!l)return s.item(o,i==null?void 0:i.id)},[l]);let d=Vc(o,a,[e.value,e.children,a],e.keywords),u=Ko(),h=vt(M=>M.value&&M.value===d.current),g=vt(M=>l||s.filter()===!1?!0:M.search?M.filtered.items.get(o)>0:!0);f.useEffect(()=>{let M=a.current;if(!(!M||e.disabled))return M.addEventListener(Mo,w),()=>M.removeEventListener(Mo,w)},[g,e.onSelect,e.disabled]);function w(){var M,E;p(),(E=(M=c.current).onSelect)==null||E.call(M,d.current)}function p(){u.setState("value",d.current,!0)}if(!g)return null;let{disabled:b,value:k,onSelect:v,forceMount:S,keywords:D,...x}=e;return f.createElement(ce.div,{ref:Ct(a,t),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!h,"data-disabled":!!b,"data-selected":!!h,onPointerMove:b||s.getDisablePointerSelection()?void 0:p,onClick:b?void 0:w},e.children)}),ay=f.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=$e(),s=f.useRef(null),c=f.useRef(null),l=$e(),d=Pn(),u=vt(g=>o||d.filter()===!1?!0:g.search?g.filtered.groups.has(i):!0);_t(()=>d.group(i),[]),Vc(i,s,[e.value,e.heading,c]);let h=f.useMemo(()=>({id:i,forceMount:o}),[o]);return f.createElement(ce.div,{ref:Ct(s,t),...a,"cmdk-group":"",role:"presentation",hidden:u?void 0:!0},n&&f.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),Or(e,g=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},f.createElement(qc.Provider,{value:h},g))))}),sy=f.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=f.useRef(null),a=vt(i=>!i.search);return!n&&!a?null:f.createElement(ce.div,{ref:Ct(o,t),...r,"cmdk-separator":"",role:"separator"})}),iy=f.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=Ko(),i=vt(l=>l.search),s=vt(l=>l.selectedItemId),c=Pn();return f.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),f.createElement(ce.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:o?e.value:i,onChange:l=>{o||a.setState("search",l.target.value),n==null||n(l.target.value)}})}),cy=f.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=f.useRef(null),i=f.useRef(null),s=vt(l=>l.selectedItemId),c=Pn();return f.useEffect(()=>{if(i.current&&a.current){let l=i.current,d=a.current,u,h=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{let g=l.offsetHeight;d.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return h.observe(l),()=>{cancelAnimationFrame(u),h.unobserve(l)}}},[]),f.createElement(ce.div,{ref:Ct(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:c.listId},Or(e,l=>f.createElement("div",{ref:Ct(i,c.listInnerRef),"cmdk-list-sizer":""},l)))}),ly=f.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return f.createElement(ey,{open:n,onOpenChange:r},f.createElement(Fc,{container:i},f.createElement(Go,{"cmdk-overlay":"",className:o}),f.createElement(Vo,{"aria-label":e.label,"cmdk-dialog":"",className:a},f.createElement(Uc,{ref:t,...s}))))}),uy=f.forwardRef((e,t)=>vt(n=>n.filtered.count===0)?f.createElement(ce.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),dy=f.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return f.createElement(ce.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Or(e,i=>f.createElement("div",{"aria-hidden":!0},i)))}),Oe=Object.assign(Uc,{List:cy,Item:oy,Input:iy,Group:ay,Separator:sy,Dialog:ly,Empty:uy,Loading:dy});function fy(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function my(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Gc(e){let t=f.useRef(e);return _t(()=>{t.current=e}),t}var _t=typeof window>"u"?f.useEffect:f.useLayoutEffect;function Gt(e){let t=f.useRef();return t.current===void 0&&(t.current=e()),t}function vt(e){let t=Ko(),n=()=>e(t.snapshot());return f.useSyncExternalStore(t.subscribe,n,n)}function Vc(e,t,n,r=[]){let o=f.useRef(),a=Pn();return _t(()=>{var i;let s=(()=>{var l;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(l=d.current.textContent)==null?void 0:l.trim():o.current}})(),c=r.map(l=>l.trim());a.value(e,s,c),(i=t.current)==null||i.setAttribute(Ut,s),o.current=s}),o}var hy=()=>{let[e,t]=f.useState(),n=Gt(()=>new Map);return _t(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function py(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Or({asChild:e,children:t},n){return e&&f.isValidElement(t)?f.cloneElement(py(t),{ref:t.ref},n(t.props.children)):n(t)}var gy={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const vy=Fc,Kc=f.forwardRef(({className:e,...t},n)=>m.jsx(Go,{ref:n,className:Z("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Kc.displayName=Go.displayName;const yy=f.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(vy,{children:[m.jsx(Kc,{}),m.jsxs(Vo,{ref:r,className:Z("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,m.jsxs(ty,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[m.jsx(Oo,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));yy.displayName=Vo.displayName;const by=f.forwardRef(({className:e,...t},n)=>m.jsx(Lc,{ref:n,className:Z("text-lg font-semibold leading-none tracking-tight",e),...t}));by.displayName=Lc.displayName;const wy=f.forwardRef(({className:e,...t},n)=>m.jsx(Yc,{ref:n,className:Z("text-sm text-muted-foreground",e),...t}));wy.displayName=Yc.displayName;const xy=f.forwardRef(({className:e,...t},n)=>m.jsx(Oe,{ref:n,className:Z("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));xy.displayName=Oe.displayName;const Xc=f.forwardRef(({className:e,...t},n)=>m.jsxs("div",{className:"flex items-center h-auto px-3","cmdk-input-wrapper":"",children:[m.jsx(ps,{strokeWidth:1.25,className:"mr-2 h-4 w-4 shrink-0"}),m.jsx(Oe.Input,{ref:n,className:Z("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-gray-400 disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Xc.displayName=Oe.Input.displayName;const Zc=f.forwardRef(({className:e,...t},n)=>m.jsx(Oe.List,{ref:n,className:Z("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Zc.displayName=Oe.List.displayName;const Sy=f.forwardRef((e,t)=>m.jsx(Oe.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Sy.displayName=Oe.Empty.displayName;const Jc=f.forwardRef(({className:e,...t},n)=>m.jsx(Oe.Group,{ref:n,className:Z("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Jc.displayName=Oe.Group.displayName;const ky=f.forwardRef(({className:e,...t},n)=>m.jsx(Oe.Separator,{ref:n,className:Z("-mx-1 h-px bg-border",e),...t}));ky.displayName=Oe.Separator.displayName;const Qc=f.forwardRef(({className:e,...t},n)=>m.jsx(Oe.Item,{ref:n,className:Z("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Qc.displayName=Oe.Item.displayName;function Cy({className:e,...t}){return m.jsx("div",{className:Z("animate-pulse rounded-md bg-muted",e),...t})}function My(e="medium",t="white"){const n={small:"text-sm py-1 px-2 h-8",medium:"text-base py-2 px-3 h-10",large:"text-lg py-3 px-4 h-12"},r={white:"bg-background text-foreground border-border",grey:"bg-muted text-muted-foreground border-border"};return{sizeClasses:n[e],variantClasses:r[t],combined:`${n[e]} ${r[t]}`}}const Ey=({options:e,placeholder:t,emptyMessage:n,value:r,onValueChange:o,disabled:a,isLoading:i=!1,className:s,size:c,variant:l})=>{const{variantClasses:d,combined:u}=My(c,l),h=O.useRef(null),[g,w]=O.useState(!1),[p,b]=O.useState(r),[k,v]=O.useState((r==null?void 0:r.label)||""),S=O.useCallback(M=>{const E=h.current;if(E){if(g||w(!0),M.key==="Enter"&&E.value!==""){const N=e.find(H=>H.label===E.value);N&&(b(N),o==null||o(N))}M.key==="Escape"&&E.blur()}},[g,e,o]),D=O.useCallback(()=>{w(!1),v((p==null?void 0:p.label)||"")},[p]),x=O.useCallback(M=>{v(M.label),b(M),o==null||o(M),setTimeout(()=>{var E;(E=h==null?void 0:h.current)==null||E.blur()},0)},[o]);return m.jsxs(Oe,{onKeyDown:S,children:[m.jsxs("div",{className:Z("rounded-full border bg-gray-100",d,s),children:[" ",m.jsx(Xc,{ref:h,value:k,onValueChange:i?void 0:v,onBlur:D,onFocus:()=>w(!0),placeholder:t,disabled:a,className:u})]}),m.jsx("div",{className:"relative mt-1",children:m.jsx("div",{className:Z("animate-in fade-in-0 zoom-in-95 absolute top-0 z-10 w-full rounded-xl bg-white dark:bg-gray-800 outline-none",g?"block":"hidden",s),children:m.jsxs(Zc,{className:"rounded-lg ring-1 ring-slate-200 dark:ring-gray-700",children:[i?m.jsx(Oe.Loading,{children:m.jsx("div",{className:"p-1",children:m.jsx(Cy,{className:"h-8 w-full"})})}):null,e.length>0&&!i?m.jsx(Jc,{children:e.map(M=>{const E=(p==null?void 0:p.value)===M.value;return m.jsxs(Qc,{value:M.label,onMouseDown:N=>{N.preventDefault(),N.stopPropagation()},onSelect:()=>x(M),className:Z("flex w-full items-center gap-2 dark:text-white",E?null:"pl-8"),children:[E?m.jsx(fs,{className:"w-4"}):null,M.label]},M.value)})}):null,i?null:m.jsx(Oe.Empty,{className:"select-none rounded-sm px-2 py-3 text-center text-sm dark:text-gray-400",children:n})]})})})]})},Oy=dr("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ny({className:e,variant:t,...n}){return m.jsx("div",{className:Z(Oy({variant:t}),e),...n})}function Dy({title:e,children:t,className:n}){return m.jsxs("section",{className:Z("space-y-6",n),children:[m.jsx("div",{className:"border-b border-gray-200 pb-3",children:m.jsx("h2",{className:"text-sm font-semibold text-gray-900 tracking-wide uppercase",children:e})}),t]})}function Py({title:e,variant:t="primary",children:n,className:r}){return m.jsxs("div",{className:Z("space-y-4",r),children:[m.jsx(Ny,{variant:t==="primary"?"default":"secondary",className:Z(t==="primary"&&"bg-black text-white hover:bg-black/90"),children:e}),n]})}const Ry=dr("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),el=f.forwardRef(({className:e,variant:t,...n},r)=>m.jsx("div",{ref:r,role:"alert",className:Z(Ry({variant:t}),e),...n}));el.displayName="Alert";const tl=f.forwardRef(({className:e,...t},n)=>m.jsx("h5",{ref:n,className:Z("mb-1 font-medium leading-none tracking-tight",e),...t}));tl.displayName="AlertTitle";const nl=f.forwardRef(({className:e,...t},n)=>m.jsx("p",{ref:n,className:Z("text-sm [&_p]:leading-relaxed",e),...t}));nl.displayName="AlertDescription";exports.AddressFormSection=_v;exports.Alert=el;exports.AlertDescription=nl;exports.AlertTitle=tl;exports.AutoComplete=Ey;exports.Chip=Sv;exports.ChipsContainer=kv;exports.ComponentSection=Dy;exports.ComponentVariant=Py;exports.ContactFormSection=Av;exports.DatePickerField=cr;exports.DoctAnimationLoader=tu;exports.DoctButton=Et;exports.DoctButtonVariants=cs;exports.DoctTypography=eu;exports.LabeledInput=He;exports.OtpInput=su;exports.PasswordInput=co;exports.SearchFilterSection=Nv;exports.SearchInput=Sc;exports.SelectField=Qt;exports.TextareaField=vs;exports.UserRegistrationSection=Pv;
|
|
182
|
+
//# sourceMappingURL=index.cjs.js.map
|