ui-arreya-components 1.0.0 → 1.2.0
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/CHANGELOG.md +6 -26
- package/dist/components/feature/graph-card.d.ts +20 -0
- package/dist/components/feature/graph-card.stories.d.ts +9 -0
- package/dist/components/feature/header.d.ts +15 -0
- package/dist/components/feature/header.stories.d.ts +12 -0
- package/dist/components/feature/login-form.d.ts +1 -0
- package/dist/components/feature/login-form.stories.d.ts +13 -0
- package/dist/components/feature/search-bar.d.ts +10 -0
- package/dist/components/feature/search-bar.stories.d.ts +19 -0
- package/dist/components/feature/wizard.d.ts +57 -0
- package/dist/components/feature/wizard.stories.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert-dialog.stories.d.ts +12 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/alert.stories.d.ts +15 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/aspect-ratio.stories.d.ts +12 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/avatar.stories.d.ts +12 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.stories.d.ts +16 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.stories.d.ts +16 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.stories.d.ts +21 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/card.stories.d.ts +27 -0
- package/dist/components/ui/carousel.d.ts +18 -0
- package/dist/components/ui/carousel.stories.d.ts +17 -0
- package/dist/components/ui/chart.d.ts +62 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.stories.d.ts +14 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.stories.d.ts +12 -0
- package/dist/components/ui/context-menu.d.ts +27 -0
- package/dist/components/ui/context-menu.stories.d.ts +12 -0
- package/dist/components/ui/dialog.d.ts +19 -0
- package/dist/components/ui/dialog.stories.d.ts +12 -0
- package/dist/components/ui/drawer.d.ts +22 -0
- package/dist/components/ui/drawer.stories.d.ts +15 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/dropdown-menu.stories.d.ts +14 -0
- package/dist/components/ui/form.d.ts +23 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.stories.d.ts +12 -0
- package/dist/components/ui/input-otp.d.ts +34 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.stories.d.ts +16 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/menubar.d.ts +28 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/pagination.d.ts +28 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/resizable.d.ts +23 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/sidebar.d.ts +65 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.stories.d.ts +12 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toast.d.ts +15 -0
- package/dist/components/ui/toaster.d.ts +1 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle.d.ts +12 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-toast.d.ts +44 -0
- package/dist/index.d.ts +50 -0
- package/dist/lib/types.d.ts +4 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/styles.css +1 -1
- package/dist/types/index.d.ts +642 -0
- package/dist/{ui.es.js → ui-arreya-components.es.js} +10284 -11014
- package/dist/ui-arreya-components.umd.js +238 -0
- package/package.json +54 -54
- package/rollup.config.js +12 -0
- package/src/components/feature/search-bar.tsx +1 -1
- package/src/components/ui/breadcrumb.tsx +75 -81
- package/src/components/ui/table.stories.tsx +102 -0
- package/src/index.css +14 -457
- package/src/index.ts +0 -1
- package/src/styles/tailwind.css +2 -2
- package/tsconfig.json +34 -7
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +5 -8
- package/.github/workflows/npm-publish.yml +0 -35
- package/.storybook/main.ts +0 -18
- package/.storybook/preview.ts +0 -16
- package/.storybook/vitest.setup.ts +0 -9
- package/dist/ui.cjs.js +0 -242
- package/dist/ui.umd.js +0 -242
- package/tsconfig.app.json +0 -30
- package/tsconfig.node.json +0 -24
package/dist/ui.cjs.js
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),Ya=require("react-dom");function Mb(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=Mb(R),go=Mb(Ya);var Vo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Go={exports:{}},Dn={};/**
|
|
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 Qp;function GN(){if(Qp)return Dn;Qp=1;var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=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 p,d={},m=null,b=null;l!==void 0&&(m=""+l),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(b=c.ref);for(p in c)n.call(c,p)&&!a.hasOwnProperty(p)&&(d[p]=c[p]);if(s&&s.defaultProps)for(p in c=s.defaultProps,c)d[p]===void 0&&(d[p]=c[p]);return{$$typeof:t,type:s,key:m,ref:b,props:d,_owner:o.current}}return Dn.Fragment=r,Dn.jsx=i,Dn.jsxs=i,Dn}var kn={};/**
|
|
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 em;function WN(){return em||(em=1,process.env.NODE_ENV!=="production"&&function(){var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=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"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=Symbol.iterator,h="@@iterator";function v(T){if(T===null||typeof T!="object")return null;var Y=g&&T[g]||T[h];return typeof Y=="function"?Y:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(T){{for(var Y=arguments.length,se=new Array(Y>1?Y-1:0),he=1;he<Y;he++)se[he-1]=arguments[he];w("error",T,se)}}function w(T,Y,se){{var he=y.ReactDebugCurrentFrame,Ne=he.getStackAddendum();Ne!==""&&(Y+="%s",se=se.concat([Ne]));var je=se.map(function(Pe){return String(Pe)});je.unshift("Warning: "+Y),Function.prototype.apply.call(console[T],console,je)}}var S=!1,_=!1,E=!1,C=!1,A=!1,P;P=Symbol.for("react.module.reference");function k(T){return!!(typeof T=="string"||typeof T=="function"||T===n||T===a||A||T===o||T===l||T===p||C||T===b||S||_||E||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===d||T.$$typeof===i||T.$$typeof===s||T.$$typeof===c||T.$$typeof===P||T.getModuleId!==void 0))}function j(T,Y,se){var he=T.displayName;if(he)return he;var Ne=Y.displayName||Y.name||"";return Ne!==""?se+"("+Ne+")":se}function L(T){return T.displayName||"Context"}function N(T){if(T==null)return null;if(typeof T.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case p:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case s:var Y=T;return L(Y)+".Consumer";case i:var se=T;return L(se._context)+".Provider";case c:return j(T,T.render,"ForwardRef");case d:var he=T.displayName||null;return he!==null?he:N(T.type)||"Memo";case m:{var Ne=T,je=Ne._payload,Pe=Ne._init;try{return N(Pe(je))}catch{return null}}}return null}var D=Object.assign,$=0,O,G,H,z,oe,Z,te;function F(){}F.__reactDisabledLog=!0;function W(){{if($===0){O=console.log,G=console.info,H=console.warn,z=console.error,oe=console.group,Z=console.groupCollapsed,te=console.groupEnd;var T={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:T,log:T,warn:T,error:T,group:T,groupCollapsed:T,groupEnd:T})}$++}}function Q(){{if($--,$===0){var T={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},T,{value:O}),info:D({},T,{value:G}),warn:D({},T,{value:H}),error:D({},T,{value:z}),group:D({},T,{value:oe}),groupCollapsed:D({},T,{value:Z}),groupEnd:D({},T,{value:te})})}$<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=y.ReactCurrentDispatcher,q;function U(T,Y,se){{if(q===void 0)try{throw Error()}catch(Ne){var he=Ne.stack.trim().match(/\n( *(at )?)/);q=he&&he[1]||""}return`
|
|
18
|
-
`+q+T}}var re=!1,J;{var ne=typeof WeakMap=="function"?WeakMap:Map;J=new ne}function V(T,Y){if(!T||re)return"";{var se=J.get(T);if(se!==void 0)return se}var he;re=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var je;je=K.current,K.current=null,W();try{if(Y){var Pe=function(){throw Error()};if(Object.defineProperty(Pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pe,[])}catch(ht){he=ht}Reflect.construct(T,[],Pe)}else{try{Pe.call()}catch(ht){he=ht}T.call(Pe.prototype)}}else{try{throw Error()}catch(ht){he=ht}T()}}catch(ht){if(ht&&he&&typeof ht.stack=="string"){for(var _e=ht.stack.split(`
|
|
19
|
-
`),pt=he.stack.split(`
|
|
20
|
-
`),Ge=_e.length-1,Ye=pt.length-1;Ge>=1&&Ye>=0&&_e[Ge]!==pt[Ye];)Ye--;for(;Ge>=1&&Ye>=0;Ge--,Ye--)if(_e[Ge]!==pt[Ye]){if(Ge!==1||Ye!==1)do if(Ge--,Ye--,Ye<0||_e[Ge]!==pt[Ye]){var _t=`
|
|
21
|
-
`+_e[Ge].replace(" at new "," at ");return T.displayName&&_t.includes("<anonymous>")&&(_t=_t.replace("<anonymous>",T.displayName)),typeof T=="function"&&J.set(T,_t),_t}while(Ge>=1&&Ye>=0);break}}}finally{re=!1,K.current=je,Q(),Error.prepareStackTrace=Ne}var Ur=T?T.displayName||T.name:"",Tr=Ur?U(Ur):"";return typeof T=="function"&&J.set(T,Tr),Tr}function ae(T,Y,se){return V(T,!1)}function I(T){var Y=T.prototype;return!!(Y&&Y.isReactComponent)}function ee(T,Y,se){if(T==null)return"";if(typeof T=="function")return V(T,I(T));if(typeof T=="string")return U(T);switch(T){case l:return U("Suspense");case p:return U("SuspenseList")}if(typeof T=="object")switch(T.$$typeof){case c:return ae(T.render);case d:return ee(T.type,Y,se);case m:{var he=T,Ne=he._payload,je=he._init;try{return ee(je(Ne),Y,se)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,me={},ge=y.ReactDebugCurrentFrame;function fe(T){if(T){var Y=T._owner,se=ee(T.type,T._source,Y?Y.type:null);ge.setExtraStackFrame(se)}else ge.setExtraStackFrame(null)}function Ee(T,Y,se,he,Ne){{var je=Function.call.bind(pe);for(var Pe in T)if(je(T,Pe)){var _e=void 0;try{if(typeof T[Pe]!="function"){var pt=Error((he||"React class")+": "+se+" type `"+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof T[Pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw pt.name="Invariant Violation",pt}_e=T[Pe](Y,Pe,he,se,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ge){_e=Ge}_e&&!(_e instanceof Error)&&(fe(Ne),x("%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).",he||"React class",se,Pe,typeof _e),fe(null)),_e instanceof Error&&!(_e.message in me)&&(me[_e.message]=!0,fe(Ne),x("Failed %s type: %s",se,_e.message),fe(null))}}}var Fe=Array.isArray;function we(T){return Fe(T)}function Oe(T){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,se=Y&&T[Symbol.toStringTag]||T.constructor.name||"Object";return se}}function rt(T){try{return Ze(T),!1}catch{return!0}}function Ze(T){return""+T}function Ue(T){if(rt(T))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Oe(T)),Ze(T)}var ot=y.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},ft,Ve;function Ct(T){if(pe.call(T,"ref")){var Y=Object.getOwnPropertyDescriptor(T,"ref").get;if(Y&&Y.isReactWarning)return!1}return T.ref!==void 0}function Ke(T){if(pe.call(T,"key")){var Y=Object.getOwnPropertyDescriptor(T,"key").get;if(Y&&Y.isReactWarning)return!1}return T.key!==void 0}function Je(T,Y){typeof T.ref=="string"&&ot.current}function Mt(T,Y){{var se=function(){ft||(ft=!0,x("%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)",Y))};se.isReactWarning=!0,Object.defineProperty(T,"key",{get:se,configurable:!0})}}function Gt(T,Y){{var se=function(){Ve||(Ve=!0,x("%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)",Y))};se.isReactWarning=!0,Object.defineProperty(T,"ref",{get:se,configurable:!0})}}var pr=function(T,Y,se,he,Ne,je,Pe){var _e={$$typeof:t,type:T,key:Y,ref:se,props:Pe,_owner:je};return _e._store={},Object.defineProperty(_e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.defineProperty(_e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(_e.props),Object.freeze(_e)),_e};function Pr(T,Y,se,he,Ne){{var je,Pe={},_e=null,pt=null;se!==void 0&&(Ue(se),_e=""+se),Ke(Y)&&(Ue(Y.key),_e=""+Y.key),Ct(Y)&&(pt=Y.ref,Je(Y,Ne));for(je in Y)pe.call(Y,je)&&!mt.hasOwnProperty(je)&&(Pe[je]=Y[je]);if(T&&T.defaultProps){var Ge=T.defaultProps;for(je in Ge)Pe[je]===void 0&&(Pe[je]=Ge[je])}if(_e||pt){var Ye=typeof T=="function"?T.displayName||T.name||"Unknown":T;_e&&Mt(Pe,Ye),pt&&Gt(Pe,Ye)}return pr(T,_e,pt,Ne,he,ot.current,Pe)}}var Ot=y.ReactCurrentOwner,ue=y.ReactDebugCurrentFrame;function be(T){if(T){var Y=T._owner,se=ee(T.type,T._source,Y?Y.type:null);ue.setExtraStackFrame(se)}else ue.setExtraStackFrame(null)}var Ce;Ce=!1;function ve(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function ie(){{if(Ot.current){var T=N(Ot.current.type);if(T)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+T+"`."}return""}}function Se(T){return""}var xe={};function ke(T){{var Y=ie();if(!Y){var se=typeof T=="string"?T:T.displayName||T.name;se&&(Y=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+se+">.")}return Y}}function Qe(T,Y){{if(!T._store||T._store.validated||T.key!=null)return;T._store.validated=!0;var se=ke(Y);if(xe[se])return;xe[se]=!0;var he="";T&&T._owner&&T._owner!==Ot.current&&(he=" It was passed a child from "+N(T._owner.type)+"."),be(T),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',se,he),be(null)}}function Ie(T,Y){{if(typeof T!="object")return;if(we(T))for(var se=0;se<T.length;se++){var he=T[se];ve(he)&&Qe(he,Y)}else if(ve(T))T._store&&(T._store.validated=!0);else if(T){var Ne=v(T);if(typeof Ne=="function"&&Ne!==T.entries)for(var je=Ne.call(T),Pe;!(Pe=je.next()).done;)ve(Pe.value)&&Qe(Pe.value,Y)}}}function Be(T){{var Y=T.type;if(Y==null||typeof Y=="string")return;var se;if(typeof Y=="function")se=Y.propTypes;else if(typeof Y=="object"&&(Y.$$typeof===c||Y.$$typeof===d))se=Y.propTypes;else return;if(se){var he=N(Y);Ee(se,T.props,"prop",he,T)}else if(Y.PropTypes!==void 0&&!Ce){Ce=!0;var Ne=N(Y);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof Y.getDefaultProps=="function"&&!Y.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function at(T){{for(var Y=Object.keys(T.props),se=0;se<Y.length;se++){var he=Y[se];if(he!=="children"&&he!=="key"){be(T),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",he),be(null);break}}T.ref!==null&&(be(T),x("Invalid attribute `ref` supplied to `React.Fragment`."),be(null))}}var et={};function it(T,Y,se,he,Ne,je){{var Pe=k(T);if(!Pe){var _e="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(_e+=" 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 pt=Se();pt?_e+=pt:_e+=ie();var Ge;T===null?Ge="null":we(T)?Ge="array":T!==void 0&&T.$$typeof===t?(Ge="<"+(N(T.type)||"Unknown")+" />",_e=" Did you accidentally export a JSX literal instead of a component?"):Ge=typeof T,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ge,_e)}var Ye=Pr(T,Y,se,Ne,je);if(Ye==null)return Ye;if(Pe){var _t=Y.children;if(_t!==void 0)if(he)if(we(_t)){for(var Ur=0;Ur<_t.length;Ur++)Ie(_t[Ur],T);Object.freeze&&Object.freeze(_t)}else x("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 Ie(_t,T)}if(pe.call(Y,"key")){var Tr=N(T),ht=Object.keys(Y).filter(function(VN){return VN!=="key"}),Gi=ht.length>0?"{key: someKey, "+ht.join(": ..., ")+": ...}":"{key: someKey}";if(!et[Tr+Gi]){var HN=ht.length>0?"{"+ht.join(": ..., ")+": ...}":"{}";x(`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} />`,Gi,Tr,HN,Tr),et[Tr+Gi]=!0}}return T===n?at(Ye):Be(Ye),Ye}}function Ho(T,Y,se){return it(T,Y,se,!0)}function rr(T,Y,se){return it(T,Y,se,!1)}var Jp=rr,qN=Ho;kn.Fragment=n,kn.jsx=Jp,kn.jsxs=qN}()),kn}var tm;function UN(){return tm||(tm=1,process.env.NODE_ENV==="production"?Go.exports=GN():Go.exports=WN()),Go.exports}var u=UN();function KN(e,t){const r=f.createContext(t),n=a=>{const{children:i,...s}=a,c=f.useMemo(()=>s,Object.values(s));return u.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function o(a){const i=f.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function De(e,t=[]){let r=[];function n(a,i){const s=f.createContext(i),c=r.length;r=[...r,i];const l=d=>{var y;const{scope:m,children:b,...g}=d,h=((y=m==null?void 0:m[e])==null?void 0:y[c])||s,v=f.useMemo(()=>g,Object.values(g));return u.jsx(h.Provider,{value:v,children:b})};l.displayName=a+"Provider";function p(d,m){var h;const b=((h=m==null?void 0:m[e])==null?void 0:h[c])||s,g=f.useContext(b);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[l,p]}const o=()=>{const a=r.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,[n,YN(o,...t)]}function YN(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:c,scopeName:l})=>{const d=c(a)[`__scope${l}`];return{...s,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function rm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vo(...e){return t=>{let r=!1;const n=e.map(o=>{const a=rm(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():rm(e[o],null)}}}}function de(...e){return f.useCallback(vo(...e),e)}var ct=f.forwardRef((e,t)=>{const{children:r,...n}=e,o=f.Children.toArray(r),a=o.find(XN);if(a){const i=a.props.children,s=o.map(c=>c===a?f.Children.count(i)>1?f.Children.only(null):f.isValidElement(i)?i.props.children:null:c);return u.jsx(vu,{...n,ref:t,children:f.isValidElement(i)?f.cloneElement(i,void 0,s):null})}return u.jsx(vu,{...n,ref:t,children:r})});ct.displayName="Slot";var vu=f.forwardRef((e,t)=>{const{children:r,...n}=e;if(f.isValidElement(r)){const o=JN(r),a=ZN(n,r.props);return r.type!==f.Fragment&&(a.ref=t?vo(t,o):o),f.cloneElement(r,a)}return f.Children.count(r)>1?f.Children.only(null):null});vu.displayName="SlotClone";var bd=({children:e})=>u.jsx(u.Fragment,{children:e});function XN(e){return f.isValidElement(e)&&e.type===bd}function ZN(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{a(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function JN(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function cr(e){const t=e+"CollectionProvider",[r,n]=De(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:g,children:h}=b,v=R.useRef(null),y=R.useRef(new Map).current;return u.jsx(o,{scope:g,itemMap:y,collectionRef:v,children:h})};i.displayName=t;const s=e+"CollectionSlot",c=R.forwardRef((b,g)=>{const{scope:h,children:v}=b,y=a(s,h),x=de(g,y.collectionRef);return u.jsx(ct,{ref:x,children:v})});c.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",d=R.forwardRef((b,g)=>{const{scope:h,children:v,...y}=b,x=R.useRef(null),w=de(g,x),S=a(l,h);return R.useEffect(()=>(S.itemMap.set(x,{ref:x,...y}),()=>void S.itemMap.delete(x))),u.jsx(ct,{[p]:"",ref:w,children:v})});d.displayName=l;function m(b){const g=a(e+"CollectionConsumer",b);return R.useCallback(()=>{const v=g.collectionRef.current;if(!v)return[];const y=Array.from(v.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((S,_)=>y.indexOf(S.ref.current)-y.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:c,ItemSlot:d},m,n]}function B(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Te(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function $e({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=QN({defaultProp:t,onChange:r}),a=e!==void 0,i=a?e:n,s=Te(r),c=f.useCallback(l=>{if(a){const d=typeof l=="function"?l(e):l;d!==e&&s(d)}else o(l)},[a,e,o,s]);return[i,c]}function QN({defaultProp:e,onChange:t}){const r=f.useState(e),[n]=r,o=f.useRef(n),a=Te(t);return f.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}var e1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],X=e1.reduce((e,t)=>{const r=f.forwardRef((n,o)=>{const{asChild:a,...i}=n,s=a?ct:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Zn(e,t){e&&go.flushSync(()=>e.dispatchEvent(t))}var He=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{};function t1(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Le=e=>{const{present:t,children:r}=e,n=r1(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=de(n.ref,n1(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function r1(e){const[t,r]=f.useState(),n=f.useRef({}),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[s,c]=t1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Wo(n.current);a.current=s==="mounted"?l:"none"},[s]),He(()=>{const l=n.current,p=o.current;if(p!==e){const m=a.current,b=Wo(l);e?c("MOUNT"):b==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(p&&m!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),He(()=>{if(t){let l;const p=t.ownerDocument.defaultView??window,d=b=>{const h=Wo(n.current).includes(b.animationName);if(b.target===t&&h&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=b=>{b.target===t&&(a.current=Wo(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function Wo(e){return(e==null?void 0:e.animationName)||"none"}function n1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var o1=f.useId||(()=>{}),a1=0;function We(e){const[t,r]=f.useState(o1());return He(()=>{r(n=>n??String(a1++))},[e]),t?`radix-${t}`:""}var yd="Collapsible",[i1,Ob]=De(yd),[s1,xd]=i1(yd),Ib=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[c=!1,l]=$e({prop:n,defaultProp:o,onChange:i});return u.jsx(s1,{scope:r,disabled:a,contentId:We(),open:c,onOpenToggle:f.useCallback(()=>l(p=>!p),[l]),children:u.jsx(X.div,{"data-state":_d(c),"data-disabled":a?"":void 0,...s,ref:t})})});Ib.displayName=yd;var jb="CollapsibleTrigger",wd=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=xd(jb,r);return u.jsx(X.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":_d(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:B(e.onClick,o.onOpenToggle)})});wd.displayName=jb;var Sd="CollapsibleContent",Cd=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=xd(Sd,e.__scopeCollapsible);return u.jsx(Le,{present:r||o.open,children:({present:a})=>u.jsx(c1,{...n,ref:t,present:a})})});Cd.displayName=Sd;var c1=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=xd(Sd,r),[s,c]=f.useState(n),l=f.useRef(null),p=de(t,l),d=f.useRef(0),m=d.current,b=f.useRef(0),g=b.current,h=i.open||s,v=f.useRef(h),y=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),He(()=>{const x=l.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();d.current=w.height,b.current=w.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),c(n)}},[i.open,n]),u.jsx(X.div,{"data-state":_d(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!h,...a,ref:p,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:h&&o})});function _d(e){return e?"open":"closed"}var Db=Ib,l1=wd,u1=Cd,d1=f.createContext(void 0);function Bt(e){const t=f.useContext(d1);return e||t||"ltr"}var lr="Accordion",f1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Rd,p1,m1]=cr(lr),[Xa,c3]=De(lr,[m1,Ob]),Ed=Ob(),kb=R.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return u.jsx(Rd.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?u.jsx(b1,{...a,ref:t}):u.jsx(v1,{...o,ref:t})})});kb.displayName=lr;var[$b,h1]=Xa(lr),[Lb,g1]=Xa(lr,{collapsible:!1}),v1=R.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,c]=$e({prop:r,defaultProp:n,onChange:o});return u.jsx($b,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:c,onItemClose:R.useCallback(()=>a&&c(""),[a,c]),children:u.jsx(Lb,{scope:e.__scopeAccordion,collapsible:a,children:u.jsx(Fb,{...i,ref:t})})})}),b1=R.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=$e({prop:r,defaultProp:n,onChange:o}),c=R.useCallback(p=>s((d=[])=>[...d,p]),[s]),l=R.useCallback(p=>s((d=[])=>d.filter(m=>m!==p)),[s]);return u.jsx($b,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:l,children:u.jsx(Lb,{scope:e.__scopeAccordion,collapsible:!0,children:u.jsx(Fb,{...a,ref:t})})})}),[y1,Za]=Xa(lr),Fb=R.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...i}=e,s=R.useRef(null),c=de(s,t),l=p1(r),d=Bt(o)==="ltr",m=B(e.onKeyDown,b=>{var A;if(!f1.includes(b.key))return;const g=b.target,h=l().filter(P=>{var k;return!((k=P.ref.current)!=null&&k.disabled)}),v=h.findIndex(P=>P.ref.current===g),y=h.length;if(v===-1)return;b.preventDefault();let x=v;const w=0,S=y-1,_=()=>{x=v+1,x>S&&(x=w)},E=()=>{x=v-1,x<w&&(x=S)};switch(b.key){case"Home":x=w;break;case"End":x=S;break;case"ArrowRight":a==="horizontal"&&(d?_():E());break;case"ArrowDown":a==="vertical"&&_();break;case"ArrowLeft":a==="horizontal"&&(d?E():_());break;case"ArrowUp":a==="vertical"&&E();break}const C=x%y;(A=h[C].ref.current)==null||A.focus()});return u.jsx(y1,{scope:r,disabled:n,direction:o,orientation:a,children:u.jsx(Rd.Slot,{scope:r,children:u.jsx(X.div,{...i,"data-orientation":a,ref:c,onKeyDown:n?void 0:m})})})}),ba="AccordionItem",[x1,Pd]=Xa(ba),Bb=R.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=Za(ba,r),i=h1(ba,r),s=Ed(r),c=We(),l=n&&i.value.includes(n)||!1,p=a.disabled||e.disabled;return u.jsx(x1,{scope:r,open:l,disabled:p,triggerId:c,children:u.jsx(Db,{"data-orientation":a.orientation,"data-state":Wb(l),...s,...o,ref:t,disabled:p,open:l,onOpenChange:d=>{d?i.onItemOpen(n):i.onItemClose(n)}})})});Bb.displayName=ba;var zb="AccordionHeader",qb=R.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Za(lr,r),a=Pd(zb,r);return u.jsx(X.h3,{"data-orientation":o.orientation,"data-state":Wb(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});qb.displayName=zb;var bu="AccordionTrigger",Hb=R.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Za(lr,r),a=Pd(bu,r),i=g1(bu,r),s=Ed(r);return u.jsx(Rd.ItemSlot,{scope:r,children:u.jsx(l1,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...n,ref:t})})});Hb.displayName=bu;var Vb="AccordionContent",Gb=R.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Za(lr,r),a=Pd(Vb,r),i=Ed(r);return u.jsx(u1,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Gb.displayName=Vb;function Wb(e){return e?"open":"closed"}var w1=kb,S1=Bb,C1=qb,Ub=Hb,Kb=Gb;/**
|
|
31
|
-
* @license lucide-react v0.482.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 _1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yb=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
|
|
36
|
-
* @license lucide-react v0.482.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 R1={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.482.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 E1=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},c)=>R.createElement("svg",{ref:c,...R1,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Yb("lucide",o),...s},[...i.map(([l,p])=>R.createElement(l,p)),...Array.isArray(a)?a:[a]]));/**
|
|
46
|
-
* @license lucide-react v0.482.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 st=(e,t)=>{const r=R.forwardRef(({className:n,...o},a)=>R.createElement(E1,{ref:a,iconNode:t,className:Yb(`lucide-${_1(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
|
|
51
|
-
* @license lucide-react v0.482.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 P1=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],T1=st("ArrowDown",P1);/**
|
|
56
|
-
* @license lucide-react v0.482.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 N1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],A1=st("ArrowLeft",N1);/**
|
|
61
|
-
* @license lucide-react v0.482.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 M1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],O1=st("ArrowRight",M1);/**
|
|
66
|
-
* @license lucide-react v0.482.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 I1=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],j1=st("ArrowUp",I1);/**
|
|
71
|
-
* @license lucide-react v0.482.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 D1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],bn=st("Check",D1);/**
|
|
76
|
-
* @license lucide-react v0.482.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 k1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bo=st("ChevronDown",k1);/**
|
|
81
|
-
* @license lucide-react v0.482.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 $1=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],L1=st("ChevronLeft",$1);/**
|
|
86
|
-
* @license lucide-react v0.482.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 F1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],br=st("ChevronRight",F1);/**
|
|
91
|
-
* @license lucide-react v0.482.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 B1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],z1=st("ChevronUp",B1);/**
|
|
96
|
-
* @license lucide-react v0.482.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 q1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ja=st("Circle",q1);/**
|
|
101
|
-
* @license lucide-react v0.482.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 H1=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Td=st("Ellipsis",H1);/**
|
|
106
|
-
* @license lucide-react v0.482.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 V1=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],G1=st("GripVertical",V1);/**
|
|
111
|
-
* @license lucide-react v0.482.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 W1=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],U1=st("House",W1);/**
|
|
116
|
-
* @license lucide-react v0.482.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 K1=[["path",{d:"M5 12h14",key:"1ays0h"}]],Y1=st("Minus",K1);/**
|
|
121
|
-
* @license lucide-react v0.482.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 X1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Z1=st("PanelLeft",X1);/**
|
|
126
|
-
* @license lucide-react v0.482.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 J1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Q1=st("Search",J1);/**
|
|
131
|
-
* @license lucide-react v0.482.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const eA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Nd=st("X",eA);function Xb(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Xb(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ar(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Xb(e))&&(n&&(n+=" "),n+=t);return n}const Ad="-",tA=e=>{const t=nA(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(Ad);return s[0]===""&&s.length!==1&&s.shift(),Zb(s,t)||rA(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&n[i]?[...c,...n[i]]:c}}},Zb=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Zb(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Ad);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},nm=/^\[(.+)\]$/,rA=e=>{if(nm.test(e)){const t=nm.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},nA=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)yu(r[o],n,o,t);return n},yu=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:om(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(oA(o)){yu(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{yu(i,om(t,a),r,n)})})},om=(e,t)=>{let r=e;return t.split(Ad).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},oA=e=>e.isThemeGetter,aA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},xu="!",wu=":",iA=wu.length,sA=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,c=0,l;for(let g=0;g<o.length;g++){let h=o[g];if(i===0&&s===0){if(h===wu){a.push(o.slice(c,g)),c=g+iA;continue}if(h==="/"){l=g;continue}}h==="["?i++:h==="]"?i--:h==="("?s++:h===")"&&s--}const p=a.length===0?o:o.substring(c),d=cA(p),m=d!==p,b=l&&l>c?l-c:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:b}};if(t){const o=t+wu,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},cA=e=>e.endsWith(xu)?e.substring(0,e.length-1):e.startsWith(xu)?e.substring(1):e,lA=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},uA=e=>({cache:aA(e.cacheSize),parseClassName:sA(e),sortModifiers:lA(e),...tA(e)}),dA=/\s+/,fA=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(dA);let c="";for(let l=s.length-1;l>=0;l-=1){const p=s[l],{isExternal:d,modifiers:m,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:h}=r(p);if(d){c=p+(c.length>0?" "+c:c);continue}let v=!!h,y=n(v?g.substring(0,h):g);if(!y){if(!v){c=p+(c.length>0?" "+c:c);continue}if(y=n(g),!y){c=p+(c.length>0?" "+c:c);continue}v=!1}const x=a(m).join(":"),w=b?x+xu:x,S=w+y;if(i.includes(S))continue;i.push(S);const _=o(y,v);for(let E=0;E<_.length;++E){const C=_[E];i.push(w+C)}c=p+(c.length>0?" "+c:c)}return c};function pA(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Jb(t))&&(n&&(n+=" "),n+=r);return n}const Jb=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Jb(e[n]))&&(r&&(r+=" "),r+=t);return r};function mA(e,...t){let r,n,o,a=i;function i(c){const l=t.reduce((p,d)=>d(p),e());return r=uA(l),n=r.cache.get,o=r.cache.set,a=s,s(c)}function s(c){const l=n(c);if(l)return l;const p=fA(c,r);return o(c,p),p}return function(){return a(pA.apply(null,arguments))}}const nt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Qb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ey=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hA=/^\d+\/\d+$/,gA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vA=/\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$/,bA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kr=e=>hA.test(e),Re=e=>!!e&&!Number.isNaN(Number(e)),Nr=e=>!!e&&Number.isInteger(Number(e)),am=e=>e.endsWith("%")&&Re(e.slice(0,-1)),mr=e=>gA.test(e),wA=()=>!0,SA=e=>vA.test(e)&&!bA.test(e),Md=()=>!1,CA=e=>yA.test(e),_A=e=>xA.test(e),RA=e=>!ce(e)&&!le(e),EA=e=>yn(e,ny,Md),ce=e=>Qb.test(e),Ar=e=>yn(e,oy,SA),Wi=e=>yn(e,$A,Re),PA=e=>yn(e,ty,Md),TA=e=>yn(e,ry,_A),NA=e=>yn(e,Md,CA),le=e=>ey.test(e),Uo=e=>xn(e,oy),AA=e=>xn(e,LA),MA=e=>xn(e,ty),OA=e=>xn(e,ny),IA=e=>xn(e,ry),jA=e=>xn(e,FA,!0),yn=(e,t,r)=>{const n=Qb.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},xn=(e,t,r=!1)=>{const n=ey.exec(e);return n?n[1]?t(n[1]):r:!1},ty=e=>e==="position",DA=new Set(["image","url"]),ry=e=>DA.has(e),kA=new Set(["length","size","percentage"]),ny=e=>kA.has(e),oy=e=>e==="length",$A=e=>e==="number",LA=e=>e==="family-name",FA=e=>e==="shadow",BA=()=>{const e=nt("color"),t=nt("font"),r=nt("text"),n=nt("font-weight"),o=nt("tracking"),a=nt("leading"),i=nt("breakpoint"),s=nt("container"),c=nt("spacing"),l=nt("radius"),p=nt("shadow"),d=nt("inset-shadow"),m=nt("drop-shadow"),b=nt("blur"),g=nt("perspective"),h=nt("aspect"),v=nt("ease"),y=nt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],S=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],E=()=>[le,ce,c],C=()=>[Kr,"full","auto",...E()],A=()=>[Nr,"none","subgrid",le,ce],P=()=>["auto",{span:["full",Nr,le,ce]},le,ce],k=()=>[Nr,"auto",le,ce],j=()=>["auto","min","max","fr",le,ce],L=()=>["start","end","center","between","around","evenly","stretch","baseline"],N=()=>["start","end","center","stretch"],D=()=>["auto",...E()],$=()=>[Kr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],O=()=>[e,le,ce],G=()=>[am,Ar],H=()=>["","none","full",l,le,ce],z=()=>["",Re,Uo,Ar],oe=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["","none",b,le,ce],F=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",le,ce],W=()=>["none",Re,le,ce],Q=()=>["none",Re,le,ce],K=()=>[Re,le,ce],q=()=>[Kr,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mr],breakpoint:[mr],color:[wA],container:[mr],"drop-shadow":[mr],ease:["in","out","in-out"],font:[RA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[mr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[mr],shadow:[mr],spacing:["px",Re],text:[mr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Kr,ce,le,h]}],container:["container"],columns:[{columns:[Re,ce,le,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:[...w(),ce,le]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[Nr,"auto",le,ce]}],basis:[{basis:[Kr,"full","auto",s,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,Kr,"auto","initial","none",ce]}],grow:[{grow:["",Re,le,ce]}],shrink:[{shrink:["",Re,le,ce]}],order:[{order:[Nr,"first","last","none",le,ce]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...N(),"baseline"]}],"align-self":[{self:["auto",...N(),"baseline"]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[s,"screen",...$()]}],"min-w":[{"min-w":[s,"screen","none",...$()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen",...$()]}],"min-h":[{"min-h":["screen","none",...$()]}],"max-h":[{"max-h":["screen",...$()]}],"font-size":[{text:["base",r,Uo,Ar]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,le,Wi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",am,ce]}],"font-family":[{font:[AA,ce,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,le,ce]}],"line-clamp":[{"line-clamp":[Re,"none",le,Wi]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",le,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",le,Ar]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Re,"auto",le,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",le,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...w(),MA,PA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",OA,EA]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nr,le,ce],radial:["",le,ce],conic:[Nr,le,ce]},IA,TA]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,le,ce]}],"outline-w":[{outline:["",Re,Uo,Ar]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",p,jA,NA]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",le,ce,d]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Re,Ar]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":O()}],opacity:[{opacity:[Re,le,ce]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none",le,ce]}],blur:[{blur:te()}],brightness:[{brightness:[Re,le,ce]}],contrast:[{contrast:[Re,le,ce]}],"drop-shadow":[{"drop-shadow":["","none",m,le,ce]}],grayscale:[{grayscale:["",Re,le,ce]}],"hue-rotate":[{"hue-rotate":[Re,le,ce]}],invert:[{invert:["",Re,le,ce]}],saturate:[{saturate:[Re,le,ce]}],sepia:[{sepia:["",Re,le,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ce]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[Re,le,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Re,le,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,le,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,le,ce]}],"backdrop-invert":[{"backdrop-invert":["",Re,le,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Re,le,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Re,le,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,le,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",le,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",le,ce]}],ease:[{ease:["linear","initial",v,le,ce]}],delay:[{delay:[Re,le,ce]}],animate:[{animate:["none",y,le,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,le,ce]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[le,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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",le,ce]}],"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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",le,ce]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Re,Uo,Ar,Wi]}],stroke:[{stroke:["none",...O()]}],"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-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-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:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},zA=mA(BA);function M(...e){return zA(ar(e))}const qA=w1,ay=f.forwardRef(({className:e,...t},r)=>u.jsx(S1,{ref:r,className:M("border-b",e),...t}));ay.displayName="AccordionItem";const iy=f.forwardRef(({className:e,children:t,...r},n)=>u.jsx(C1,{className:"flex",children:u.jsxs(Ub,{ref:n,className:M("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,u.jsx(bo,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));iy.displayName=Ub.displayName;const sy=f.forwardRef(({className:e,children:t,...r},n)=>u.jsx(Kb,{ref:n,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:u.jsx("div",{className:M("pb-4 pt-0",e),children:t})}));sy.displayName=Kb.displayName;function HA(e,t=globalThis==null?void 0:globalThis.document){const r=Te(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var VA="DismissableLayer",Su="dismissableLayer.update",GA="dismissableLayer.pointerDownOutside",WA="dismissableLayer.focusOutside",im,cy=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ur=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=f.useContext(cy),[p,d]=f.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=f.useState({}),g=de(t,C=>d(C)),h=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),x=p?h.indexOf(p):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,S=x>=y,_=KA(C=>{const A=C.target,P=[...l.branches].some(k=>k.contains(A));!S||P||(o==null||o(C),i==null||i(C),C.defaultPrevented||s==null||s())},m),E=YA(C=>{const A=C.target;[...l.branches].some(k=>k.contains(A))||(a==null||a(C),i==null||i(C),C.defaultPrevented||s==null||s())},m);return HA(C=>{x===l.layers.size-1&&(n==null||n(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},m),f.useEffect(()=>{if(p)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(im=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(p)),l.layers.add(p),sm(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=im)}},[p,m,r,l]),f.useEffect(()=>()=>{p&&(l.layers.delete(p),l.layersWithOutsidePointerEventsDisabled.delete(p),sm())},[p,l]),f.useEffect(()=>{const C=()=>b({});return document.addEventListener(Su,C),()=>document.removeEventListener(Su,C)},[]),u.jsx(X.div,{...c,ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,E.onFocusCapture),onBlurCapture:B(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,_.onPointerDownCapture)})});ur.displayName=VA;var UA="DismissableLayerBranch",ly=f.forwardRef((e,t)=>{const r=f.useContext(cy),n=f.useRef(null),o=de(t,n);return f.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),u.jsx(X.div,{...e,ref:o})});ly.displayName=UA;function KA(e,t=globalThis==null?void 0:globalThis.document){const r=Te(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){uy(GA,r,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);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function YA(e,t=globalThis==null?void 0:globalThis.document){const r=Te(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&uy(WA,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function sm(){const e=new CustomEvent(Su);document.dispatchEvent(e)}function uy(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Zn(o,a):o.dispatchEvent(a)}var XA=ur,ZA=ly,Ui="focusScope.autoFocusOnMount",Ki="focusScope.autoFocusOnUnmount",cm={bubbles:!1,cancelable:!0},JA="FocusScope",yo=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=f.useState(null),l=Te(o),p=Te(a),d=f.useRef(null),m=de(t,h=>c(h)),b=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let h=function(w){if(b.paused||!s)return;const S=w.target;s.contains(S)?d.current=S:hr(d.current,{select:!0})},v=function(w){if(b.paused||!s)return;const S=w.relatedTarget;S!==null&&(s.contains(S)||hr(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const _ of w)_.removedNodes.length>0&&hr(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),x.disconnect()}}},[n,s,b.paused]),f.useEffect(()=>{if(s){um.add(b);const h=document.activeElement;if(!s.contains(h)){const y=new CustomEvent(Ui,cm);s.addEventListener(Ui,l),s.dispatchEvent(y),y.defaultPrevented||(QA(oM(dy(s)),{select:!0}),document.activeElement===h&&hr(s))}return()=>{s.removeEventListener(Ui,l),setTimeout(()=>{const y=new CustomEvent(Ki,cm);s.addEventListener(Ki,p),s.dispatchEvent(y),y.defaultPrevented||hr(h??document.body,{select:!0}),s.removeEventListener(Ki,p),um.remove(b)},0)}}},[s,l,p,b]);const g=f.useCallback(h=>{if(!r&&!n||b.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const x=h.currentTarget,[w,S]=eM(x);w&&S?!h.shiftKey&&y===S?(h.preventDefault(),r&&hr(w,{select:!0})):h.shiftKey&&y===w&&(h.preventDefault(),r&&hr(S,{select:!0})):y===x&&h.preventDefault()}},[r,n,b.paused]);return u.jsx(X.div,{tabIndex:-1,...i,ref:m,onKeyDown:g})});yo.displayName=JA;function QA(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(hr(n,{select:t}),document.activeElement!==r)return}function eM(e){const t=dy(e),r=lm(t,e),n=lm(t.reverse(),e);return[r,n]}function dy(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function lm(e,t){for(const r of e)if(!tM(r,{upTo:t}))return r}function tM(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 rM(e){return e instanceof HTMLInputElement&&"select"in e}function hr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&rM(e)&&t&&e.select()}}var um=nM();function nM(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=dm(e,t),e.unshift(t)},remove(t){var r;e=dm(e,t),(r=e[0])==null||r.resume()}}}function dm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function oM(e){return e.filter(t=>t.tagName!=="A")}var aM="Portal",zr=f.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[o,a]=f.useState(!1);He(()=>a(!0),[]);const i=r||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Ya.createPortal(u.jsx(X.div,{...n,ref:t}),i):null});zr.displayName=aM;var Yi=0;function Qa(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fm()),document.body.insertAdjacentElement("beforeend",e[1]??fm()),Yi++,()=>{Yi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Yi--}},[])}function fm(){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 Ut=function(){return Ut=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ut.apply(this,arguments)};function fy(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function iM(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var da="right-scroll-bar-position",fa="width-before-scroll-bar",sM="with-scroll-bars-hidden",cM="--removed-body-scroll-bar-size";function Xi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lM(e,t){var r=R.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var uM=typeof window<"u"?f.useLayoutEffect:f.useEffect,pm=new WeakMap;function dM(e,t){var r=lM(null,function(n){return e.forEach(function(o){return Xi(o,n)})});return uM(function(){var n=pm.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||Xi(s,null)}),a.forEach(function(s){o.has(s)||Xi(s,i)})}pm.set(r,e)},[e]),r}function fM(e){return e}function pM(e,t){t===void 0&&(t=fM);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var c=function(){var p=i;i=[],p.forEach(a)},l=function(){return Promise.resolve().then(c)};l(),r={push:function(p){i.push(p),l()},filter:function(p){return i=i.filter(p),r}}}};return o}function mM(e){e===void 0&&(e={});var t=pM(null);return t.options=Ut({async:!0,ssr:!1},e),t}var py=function(e){var t=e.sideCar,r=fy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,Ut({},r))};py.isSideCarExport=!0;function hM(e,t){return e.useMedium(t),py}var my=mM(),Zi=function(){},ei=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:Zi,onWheelCapture:Zi,onTouchMoveCapture:Zi}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,p=e.enabled,d=e.shards,m=e.sideCar,b=e.noIsolation,g=e.inert,h=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,x=e.gapMode,w=fy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,_=dM([r,t]),E=Ut(Ut({},w),o);return f.createElement(f.Fragment,null,p&&f.createElement(S,{sideCar:my,removeScrollBar:l,shards:d,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:x}),i?f.cloneElement(f.Children.only(s),Ut(Ut({},E),{ref:_})):f.createElement(y,Ut({},E,{className:c,ref:_}),s))});ei.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ei.classNames={fullWidth:fa,zeroRight:da};var gM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gM();return t&&e.setAttribute("nonce",t),e}function bM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xM=function(){var e=0,t=null;return{add:function(r){e==0&&(t=vM())&&(bM(t,r),yM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wM=function(){var e=xM();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},hy=function(){var e=wM(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},SM={left:0,top:0,right:0,gap:0},Ji=function(e){return parseInt(e||"",10)||0},CM=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ji(r),Ji(n),Ji(o)]},_M=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return SM;var t=CM(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},RM=hy(),rn="data-scroll-locked",EM=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
136
|
-
.`.concat(sM,` {
|
|
137
|
-
overflow: hidden `).concat(n,`;
|
|
138
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
|
139
|
-
}
|
|
140
|
-
body[`).concat(rn,`] {
|
|
141
|
-
overflow: hidden `).concat(n,`;
|
|
142
|
-
overscroll-behavior: contain;
|
|
143
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
144
|
-
padding-left: `.concat(o,`px;
|
|
145
|
-
padding-top: `).concat(a,`px;
|
|
146
|
-
padding-right: `).concat(i,`px;
|
|
147
|
-
margin-left:0;
|
|
148
|
-
margin-top:0;
|
|
149
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
|
150
|
-
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.`).concat(da,` {
|
|
154
|
-
right: `).concat(s,"px ").concat(n,`;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.`).concat(fa,` {
|
|
158
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.`).concat(da," .").concat(da,` {
|
|
162
|
-
right: 0 `).concat(n,`;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.`).concat(fa," .").concat(fa,` {
|
|
166
|
-
margin-right: 0 `).concat(n,`;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
body[`).concat(rn,`] {
|
|
170
|
-
`).concat(cM,": ").concat(s,`px;
|
|
171
|
-
}
|
|
172
|
-
`)},mm=function(){var e=parseInt(document.body.getAttribute(rn)||"0",10);return isFinite(e)?e:0},PM=function(){f.useEffect(function(){return document.body.setAttribute(rn,(mm()+1).toString()),function(){var e=mm()-1;e<=0?document.body.removeAttribute(rn):document.body.setAttribute(rn,e.toString())}},[])},TM=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;PM();var a=f.useMemo(function(){return _M(o)},[o]);return f.createElement(RM,{styles:EM(a,!t,o,r?"":"!important")})},Cu=!1;if(typeof window<"u")try{var Ko=Object.defineProperty({},"passive",{get:function(){return Cu=!0,!0}});window.addEventListener("test",Ko,Ko),window.removeEventListener("test",Ko,Ko)}catch{Cu=!1}var Yr=Cu?{passive:!1}:!1,NM=function(e){return e.tagName==="TEXTAREA"},gy=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!NM(e)&&r[t]==="visible")},AM=function(e){return gy(e,"overflowY")},MM=function(e){return gy(e,"overflowX")},hm=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=vy(e,n);if(o){var a=by(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},OM=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},IM=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},vy=function(e,t){return e==="v"?AM(t):MM(t)},by=function(e,t){return e==="v"?OM(t):IM(t)},jM=function(e,t){return e==="h"&&t==="rtl"?-1:1},DM=function(e,t,r,n,o){var a=jM(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,c=t.contains(s),l=!1,p=i>0,d=0,m=0;do{var b=by(e,s),g=b[0],h=b[1],v=b[2],y=h-v-a*g;(g||y)&&vy(e,s)&&(d+=y,m+=g),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(p&&Math.abs(d)<1||!p&&Math.abs(m)<1)&&(l=!0),l},Yo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gm=function(e){return[e.deltaX,e.deltaY]},vm=function(e){return e&&"current"in e?e.current:e},kM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$M=function(e){return`
|
|
173
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
174
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
175
|
-
`)},LM=0,Xr=[];function FM(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(LM++)[0],a=f.useState(hy)[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 h=iM([e.lockRef.current],(e.shards||[]).map(vm),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=Yo(h),x=r.current,w="deltaX"in h?h.deltaX:x[0]-y[0],S="deltaY"in h?h.deltaY:x[1]-y[1],_,E=h.target,C=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in h&&C==="h"&&E.type==="range")return!1;var A=hm(C,E);if(!A)return!0;if(A?_=C:(_=C==="v"?"h":"v",A=hm(C,E)),!A)return!1;if(!n.current&&"changedTouches"in h&&(w||S)&&(n.current=_),!_)return!0;var P=n.current||_;return DM(P,v,h,P==="h"?w:S)},[]),c=f.useCallback(function(h){var v=h;if(!(!Xr.length||Xr[Xr.length-1]!==a)){var y="deltaY"in v?gm(v):Yo(v),x=t.current.filter(function(_){return _.name===v.type&&(_.target===v.target||v.target===_.shadowParent)&&kM(_.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var w=(i.current.shards||[]).map(vm).filter(Boolean).filter(function(_){return _.contains(v.target)}),S=w.length>0?s(v,w[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),l=f.useCallback(function(h,v,y,x){var w={name:h,delta:v,target:y,should:x,shadowParent:BM(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=f.useCallback(function(h){r.current=Yo(h),n.current=void 0},[]),d=f.useCallback(function(h){l(h.type,gm(h),h.target,s(h,e.lockRef.current))},[]),m=f.useCallback(function(h){l(h.type,Yo(h),h.target,s(h,e.lockRef.current))},[]);f.useEffect(function(){return Xr.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Yr),document.addEventListener("touchmove",c,Yr),document.addEventListener("touchstart",p,Yr),function(){Xr=Xr.filter(function(h){return h!==a}),document.removeEventListener("wheel",c,Yr),document.removeEventListener("touchmove",c,Yr),document.removeEventListener("touchstart",p,Yr)}},[]);var b=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(a,{styles:$M(o)}):null,b?f.createElement(TM,{gapMode:e.gapMode}):null)}function BM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zM=hM(my,FM);var xo=f.forwardRef(function(e,t){return f.createElement(ei,Ut({},e,{ref:t,sideCar:zM}))});xo.classNames=ei.classNames;var qM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zr=new WeakMap,Xo=new WeakMap,Zo={},Qi=0,yy=function(e){return e&&(e.host||yy(e.parentNode))},HM=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=yy(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},VM=function(e,t,r,n){var o=HM(t,Array.isArray(e)?e:[e]);Zo[r]||(Zo[r]=new WeakMap);var a=Zo[r],i=[],s=new Set,c=new Set(o),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};o.forEach(l);var p=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(m){if(s.has(m))p(m);else try{var b=m.getAttribute(n),g=b!==null&&b!=="false",h=(Zr.get(m)||0)+1,v=(a.get(m)||0)+1;Zr.set(m,h),a.set(m,v),i.push(m),h===1&&g&&Xo.set(m,!0),v===1&&m.setAttribute(r,"true"),g||m.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return p(t),s.clear(),Qi++,function(){i.forEach(function(d){var m=Zr.get(d)-1,b=a.get(d)-1;Zr.set(d,m),a.set(d,b),m||(Xo.has(d)||d.removeAttribute(n),Xo.delete(d)),b||d.removeAttribute(r)}),Qi--,Qi||(Zr=new WeakMap,Zr=new WeakMap,Xo=new WeakMap,Zo={})}},ti=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=qM(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),VM(n,o,r,"aria-hidden")):function(){return null}},Od="Dialog",[xy,wy]=De(Od),[GM,zt]=xy(Od),Sy=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=f.useRef(null),c=f.useRef(null),[l=!1,p]=$e({prop:n,defaultProp:o,onChange:a});return u.jsx(GM,{scope:t,triggerRef:s,contentRef:c,contentId:We(),titleId:We(),descriptionId:We(),open:l,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(d=>!d),[p]),modal:i,children:r})};Sy.displayName=Od;var Cy="DialogTrigger",_y=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Cy,r),a=de(t,o.triggerRef);return u.jsx(X.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Dd(o.open),...n,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});_y.displayName=Cy;var Id="DialogPortal",[WM,Ry]=xy(Id,{forceMount:void 0}),Ey=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=zt(Id,t);return u.jsx(WM,{scope:t,forceMount:r,children:f.Children.map(n,i=>u.jsx(Le,{present:r||a.open,children:u.jsx(zr,{asChild:!0,container:o,children:i})}))})};Ey.displayName=Id;var ya="DialogOverlay",Py=f.forwardRef((e,t)=>{const r=Ry(ya,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=zt(ya,e.__scopeDialog);return a.modal?u.jsx(Le,{present:n||a.open,children:u.jsx(UM,{...o,ref:t})}):null});Py.displayName=ya;var UM=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(ya,r);return u.jsx(xo,{as:ct,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(X.div,{"data-state":Dd(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),kr="DialogContent",Ty=f.forwardRef((e,t)=>{const r=Ry(kr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=zt(kr,e.__scopeDialog);return u.jsx(Le,{present:n||a.open,children:a.modal?u.jsx(KM,{...o,ref:t}):u.jsx(YM,{...o,ref:t})})});Ty.displayName=kr;var KM=f.forwardRef((e,t)=>{const r=zt(kr,e.__scopeDialog),n=f.useRef(null),o=de(t,r.contentRef,n);return f.useEffect(()=>{const a=n.current;if(a)return ti(a)},[]),u.jsx(Ny,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault())})}),YM=f.forwardRef((e,t)=>{const r=zt(kr,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return u.jsx(Ny,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ny=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=zt(kr,r),c=f.useRef(null),l=de(t,c);return Qa(),u.jsxs(u.Fragment,{children:[u.jsx(yo,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ur,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Dd(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(ZM,{titleId:s.titleId}),u.jsx(QM,{contentRef:c,descriptionId:s.descriptionId})]})]})}),jd="DialogTitle",Ay=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(jd,r);return u.jsx(X.h2,{id:o.titleId,...n,ref:t})});Ay.displayName=jd;var My="DialogDescription",Oy=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(My,r);return u.jsx(X.p,{id:o.descriptionId,...n,ref:t})});Oy.displayName=My;var Iy="DialogClose",jy=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Iy,r);return u.jsx(X.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});jy.displayName=Iy;function Dd(e){return e?"open":"closed"}var Dy="DialogTitleWarning",[XM,ky]=KN(Dy,{contentName:kr,titleName:jd,docsSlug:"dialog"}),ZM=({titleId:e})=>{const t=ky(Dy),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
176
|
-
|
|
177
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
178
|
-
|
|
179
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},JM="DialogDescriptionWarning",QM=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ky(JM).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(n))},[n,e,t]),null},ri=Sy,ni=_y,oi=Ey,wn=Py,Sn=Ty,Cn=Ay,_n=Oy,qr=jy,$y="AlertDialog",[eO,l3]=De($y,[wy]),dr=wy(),Ly=e=>{const{__scopeAlertDialog:t,...r}=e,n=dr(t);return u.jsx(ri,{...n,...r,modal:!0})};Ly.displayName=$y;var tO="AlertDialogTrigger",Fy=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=dr(r);return u.jsx(ni,{...o,...n,ref:t})});Fy.displayName=tO;var rO="AlertDialogPortal",By=e=>{const{__scopeAlertDialog:t,...r}=e,n=dr(t);return u.jsx(oi,{...n,...r})};By.displayName=rO;var nO="AlertDialogOverlay",zy=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=dr(r);return u.jsx(wn,{...o,...n,ref:t})});zy.displayName=nO;var nn="AlertDialogContent",[oO,aO]=eO(nn),qy=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,a=dr(r),i=f.useRef(null),s=de(t,i),c=f.useRef(null);return u.jsx(XM,{contentName:nn,titleName:Hy,docsSlug:"alert-dialog",children:u.jsx(oO,{scope:r,cancelRef:c,children:u.jsxs(Sn,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:B(o.onOpenAutoFocus,l=>{var p;l.preventDefault(),(p=c.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:l=>l.preventDefault(),onInteractOutside:l=>l.preventDefault(),children:[u.jsx(bd,{children:n}),u.jsx(sO,{contentRef:i})]})})})});qy.displayName=nn;var Hy="AlertDialogTitle",Vy=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=dr(r);return u.jsx(Cn,{...o,...n,ref:t})});Vy.displayName=Hy;var Gy="AlertDialogDescription",Wy=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=dr(r);return u.jsx(_n,{...o,...n,ref:t})});Wy.displayName=Gy;var iO="AlertDialogAction",Uy=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=dr(r);return u.jsx(qr,{...o,...n,ref:t})});Uy.displayName=iO;var Ky="AlertDialogCancel",Yy=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=aO(Ky,r),a=dr(r),i=de(t,o);return u.jsx(qr,{...a,...n,ref:i})});Yy.displayName=Ky;var sO=({contentRef:e})=>{const t=`\`${nn}\` requires a description for the component to be accessible for screen reader users.
|
|
180
|
-
|
|
181
|
-
You can add a description to the \`${nn}\` by passing a \`${Gy}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
182
|
-
|
|
183
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${nn}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
184
|
-
|
|
185
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},cO=Ly,lO=Fy,uO=By,Xy=zy,Zy=qy,Jy=Uy,Qy=Yy,ex=Vy,tx=Wy;const bm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ym=ar,fr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ym(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const p=r==null?void 0:r[l],d=a==null?void 0:a[l];if(p===null)return null;const m=bm(p)||bm(d);return o[l][m]}),s=r&&Object.entries(r).reduce((l,p)=>{let[d,m]=p;return m===void 0||(l[d]=m),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,p)=>{let{class:d,className:m,...b}=p;return Object.entries(b).every(g=>{let[h,v]=g;return Array.isArray(v)?v.includes({...a,...s}[h]):{...a,...s}[h]===v})?[...l,d,m]:l},[]);return ym(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},wo=fr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Pt=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},a)=>{const i=n?ct:"button";return u.jsx(i,{className:M(wo({variant:t,size:r,className:e})),ref:a,...o})});Pt.displayName="Button";const dO=cO,fO=lO,rx=uO,kd=f.forwardRef(({className:e,...t},r)=>u.jsx(Xy,{className:M("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,ref:r}));kd.displayName=Xy.displayName;const nx=f.forwardRef(({className:e,...t},r)=>u.jsxs(rx,{children:[u.jsx(kd,{}),u.jsx(Zy,{ref:r,className:M("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),...t})]}));nx.displayName=Zy.displayName;const ox=({className:e,...t})=>u.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});ox.displayName="AlertDialogHeader";const ax=({className:e,...t})=>u.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ax.displayName="AlertDialogFooter";const ix=f.forwardRef(({className:e,...t},r)=>u.jsx(ex,{ref:r,className:M("text-lg font-semibold",e),...t}));ix.displayName=ex.displayName;const sx=f.forwardRef(({className:e,...t},r)=>u.jsx(tx,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));sx.displayName=tx.displayName;const cx=f.forwardRef(({className:e,...t},r)=>u.jsx(Jy,{ref:r,className:M(wo(),e),...t}));cx.displayName=Jy.displayName;const lx=f.forwardRef(({className:e,...t},r)=>u.jsx(Qy,{ref:r,className:M(wo({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));lx.displayName=Qy.displayName;const pO=fr("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),ux=f.forwardRef(({className:e,variant:t,...r},n)=>u.jsx("div",{ref:n,role:"alert",className:M(pO({variant:t}),e),...r}));ux.displayName="Alert";const dx=f.forwardRef(({className:e,...t},r)=>u.jsx("h5",{ref:r,className:M("mb-1 font-medium leading-none tracking-tight",e),...t}));dx.displayName="AlertTitle";const fx=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:M("text-sm [&_p]:leading-relaxed",e),...t}));fx.displayName="AlertDescription";var mO="AspectRatio",px=f.forwardRef((e,t)=>{const{ratio:r=1/1,style:n,...o}=e;return u.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":"",children:u.jsx(X.div,{...o,ref:t,style:{...n,position:"absolute",top:0,right:0,bottom:0,left:0}})})});px.displayName=mO;var hO=px;const gO=hO;var $d="Avatar",[vO,u3]=De($d),[bO,mx]=vO($d),hx=f.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=f.useState("idle");return u.jsx(bO,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:u.jsx(X.span,{...n,ref:t})})});hx.displayName=$d;var gx="AvatarImage",vx=f.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,i=mx(gx,r),s=yO(n,a.referrerPolicy),c=Te(l=>{o(l),i.onImageLoadingStatusChange(l)});return He(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?u.jsx(X.img,{...a,ref:t,src:n}):null});vx.displayName=gx;var bx="AvatarFallback",yx=f.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=mx(bx,r),[i,s]=f.useState(n===void 0);return f.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(c)}},[n]),i&&a.imageLoadingStatus!=="loaded"?u.jsx(X.span,{...o,ref:t}):null});yx.displayName=bx;function yO(e,t){const[r,n]=f.useState("idle");return He(()=>{if(!e){n("error");return}let o=!0;const a=new window.Image,i=s=>()=>{o&&n(s)};return n("loading"),a.onload=i("loaded"),a.onerror=i("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{o=!1}},[e,t]),r}var xx=hx,wx=vx,Sx=yx;const Cx=f.forwardRef(({className:e,...t},r)=>u.jsx(xx,{ref:r,className:M("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Cx.displayName=xx.displayName;const _x=f.forwardRef(({className:e,...t},r)=>u.jsx(wx,{ref:r,className:M("aspect-square h-full w-full",e),...t}));_x.displayName=wx.displayName;const Rx=f.forwardRef(({className:e,...t},r)=>u.jsx(Sx,{ref:r,className:M("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Rx.displayName=Sx.displayName;const Ex=fr("inline-flex items-center rounded-md 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 shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function xO({className:e,variant:t,...r}){return u.jsx("div",{className:M(Ex({variant:t}),e),...r})}const Ld=f.forwardRef(({...e},t)=>u.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ld.displayName="Breadcrumb";const Fd=f.forwardRef(({className:e,...t},r)=>u.jsx("ol",{ref:r,className:M("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Fd.displayName="BreadcrumbList";const xa=f.forwardRef(({className:e,...t},r)=>u.jsx("li",{ref:r,className:M("inline-flex items-center gap-1.5",e),...t}));xa.displayName="BreadcrumbItem";const wa=f.forwardRef(({asChild:e,className:t,...r},n)=>{const o=e?ct:"a";return u.jsx(o,{ref:n,className:M("transition-colors hover:text-foreground",t),...r})});wa.displayName="BreadcrumbLink";const Bd=f.forwardRef(({className:e,...t},r)=>u.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:M("font-normal text-foreground",e),...t}));Bd.displayName="BreadcrumbPage";const Sa=({children:e,className:t,...r})=>u.jsx("li",{role:"presentation","aria-hidden":"true",className:M("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...r,children:e??u.jsx(br,{})});Sa.displayName="BreadcrumbSeparator";const Px=({className:e,...t})=>u.jsxs("span",{role:"presentation","aria-hidden":"true",className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[u.jsx(Td,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"More"})]});Px.displayName="BreadcrumbElipssis";const ai=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:M("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ai.displayName="Card";const ii=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:M("flex flex-col space-y-1.5 p-6",e),...t}));ii.displayName="CardHeader";const si=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:M("font-semibold leading-none tracking-tight",e),...t}));si.displayName="CardTitle";const ci=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:M("text-sm text-muted-foreground",e),...t}));ci.displayName="CardDescription";const li=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:M("p-6 pt-0",e),...t}));li.displayName="CardContent";const zd=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:M("flex items-center p-6 pt-0",e),...t}));zd.displayName="CardFooter";function wO(e){return Object.prototype.toString.call(e)==="[object Object]"}function xm(e){return wO(e)||Array.isArray(e)}function SO(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qd(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:r.every(i=>{const s=e[i],c=t[i];return typeof s=="function"?`${s}`==`${c}`:!xm(s)||!xm(c)?s===c:qd(s,c)})}function wm(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function CO(e,t){if(e.length!==t.length)return!1;const r=wm(e),n=wm(t);return r.every((o,a)=>{const i=n[a];return qd(o,i)})}function Hd(e){return typeof e=="number"}function _u(e){return typeof e=="string"}function ui(e){return typeof e=="boolean"}function Sm(e){return Object.prototype.toString.call(e)==="[object Object]"}function qe(e){return Math.abs(e)}function Vd(e){return Math.sign(e)}function Yn(e,t){return qe(e-t)}function _O(e,t){if(e===0||t===0||qe(e)<=qe(t))return 0;const r=Yn(qe(e),qe(t));return qe(r/e)}function RO(e){return Math.round(e*100)/100}function Jn(e){return Qn(e).map(Number)}function kt(e){return e[So(e)]}function So(e){return Math.max(0,e.length-1)}function Gd(e,t){return t===So(e)}function Cm(e,t=0){return Array.from(Array(e),(r,n)=>t+n)}function Qn(e){return Object.keys(e)}function Tx(e,t){return[e,t].reduce((r,n)=>(Qn(n).forEach(o=>{const a=r[o],i=n[o],s=Sm(a)&&Sm(i);r[o]=s?Tx(a,i):i}),r),{})}function Ru(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function EO(e,t){const r={start:n,center:o,end:a};function n(){return 0}function o(c){return a(c)/2}function a(c){return t-c}function i(c,l){return _u(e)?r[e](c):e(t,c,l)}return{measure:i}}function eo(){let e=[];function t(o,a,i,s={passive:!0}){let c;if("addEventListener"in o)o.addEventListener(a,i,s),c=()=>o.removeEventListener(a,i,s);else{const l=o;l.addListener(i),c=()=>l.removeListener(i)}return e.push(c),n}function r(){e=e.filter(o=>o())}const n={add:t,clear:r};return n}function PO(e,t,r,n){const o=eo(),a=1e3/60;let i=null,s=0,c=0;function l(){o.add(e,"visibilitychange",()=>{e.hidden&&g()})}function p(){b(),o.clear()}function d(v){if(!c)return;i||(i=v,r(),r());const y=v-i;for(i=v,s+=y;s>=a;)r(),s-=a;const x=s/a;n(x),c&&(c=t.requestAnimationFrame(d))}function m(){c||(c=t.requestAnimationFrame(d))}function b(){t.cancelAnimationFrame(c),i=null,s=0,c=0}function g(){i=null,s=0}return{init:l,destroy:p,start:m,stop:b,update:r,render:n}}function TO(e,t){const r=t==="rtl",n=e==="y",o=n?"y":"x",a=n?"x":"y",i=!n&&r?-1:1,s=p(),c=d();function l(g){const{height:h,width:v}=g;return n?h:v}function p(){return n?"top":r?"right":"left"}function d(){return n?"bottom":r?"left":"right"}function m(g){return g*i}return{scroll:o,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:m}}function $r(e=0,t=0){const r=qe(e-t);function n(l){return l<e}function o(l){return l>t}function a(l){return n(l)||o(l)}function i(l){return a(l)?n(l)?e:t:l}function s(l){return r?l-r*Math.ceil((l-t)/r):l}return{length:r,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:n,removeOffset:s}}function Nx(e,t,r){const{constrain:n}=$r(0,e),o=e+1;let a=i(t);function i(m){return r?qe((o+m)%o):n(m)}function s(){return a}function c(m){return a=i(m),d}function l(m){return p().set(s()+m)}function p(){return Nx(e,s(),r)}const d={get:s,set:c,add:l,clone:p};return d}function NO(e,t,r,n,o,a,i,s,c,l,p,d,m,b,g,h,v,y,x){const{cross:w,direction:S}=e,_=["INPUT","SELECT","TEXTAREA"],E={passive:!1},C=eo(),A=eo(),P=$r(50,225).constrain(b.measure(20)),k={mouse:300,touch:400},j={mouse:500,touch:600},L=g?43:25;let N=!1,D=0,$=0,O=!1,G=!1,H=!1,z=!1;function oe(V){if(!x)return;function ae(ee){(ui(x)||x(V,ee))&&K(ee)}const I=t;C.add(I,"dragstart",ee=>ee.preventDefault(),E).add(I,"touchmove",()=>{},E).add(I,"touchend",()=>{}).add(I,"touchstart",ae).add(I,"mousedown",ae).add(I,"touchcancel",U).add(I,"contextmenu",U).add(I,"click",re,!0)}function Z(){C.clear(),A.clear()}function te(){const V=z?r:t;A.add(V,"touchmove",q,E).add(V,"touchend",U).add(V,"mousemove",q,E).add(V,"mouseup",U)}function F(V){const ae=V.nodeName||"";return _.includes(ae)}function W(){return(g?j:k)[z?"mouse":"touch"]}function Q(V,ae){const I=d.add(Vd(V)*-1),ee=p.byDistance(V,!g).distance;return g||qe(V)<P?ee:v&&ae?ee*.5:p.byIndex(I.get(),0).distance}function K(V){const ae=Ru(V,n);z=ae,H=g&&ae&&!V.buttons&&N,N=Yn(o.get(),i.get())>=2,!(ae&&V.button!==0)&&(F(V.target)||(O=!0,a.pointerDown(V),l.useFriction(0).useDuration(0),o.set(i),te(),D=a.readPoint(V),$=a.readPoint(V,w),m.emit("pointerDown")))}function q(V){if(!Ru(V,n)&&V.touches.length>=2)return U(V);const I=a.readPoint(V),ee=a.readPoint(V,w),pe=Yn(I,D),me=Yn(ee,$);if(!G&&!z&&(!V.cancelable||(G=pe>me,!G)))return U(V);const ge=a.pointerMove(V);pe>h&&(H=!0),l.useFriction(.3).useDuration(.75),s.start(),o.add(S(ge)),V.preventDefault()}function U(V){const I=p.byDistance(0,!1).index!==d.get(),ee=a.pointerUp(V)*W(),pe=Q(S(ee),I),me=_O(ee,pe),ge=L-10*me,fe=y+me/50;G=!1,O=!1,A.clear(),l.useDuration(ge).useFriction(fe),c.distance(pe,!g),z=!1,m.emit("pointerUp")}function re(V){H&&(V.stopPropagation(),V.preventDefault(),H=!1)}function J(){return O}return{init:oe,destroy:Z,pointerDown:J}}function AO(e,t){let n,o;function a(d){return d.timeStamp}function i(d,m){const g=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Ru(d,t)?d:d.touches[0])[g]}function s(d){return n=d,o=d,i(d)}function c(d){const m=i(d)-i(o),b=a(d)-a(n)>170;return o=d,b&&(n=d),m}function l(d){if(!n||!o)return 0;const m=i(o)-i(n),b=a(d)-a(n),g=a(d)-a(o)>170,h=m/b;return b&&!g&&qe(h)>.1?h:0}return{pointerDown:s,pointerMove:c,pointerUp:l,readPoint:i}}function MO(){function e(r){const{offsetTop:n,offsetLeft:o,offsetWidth:a,offsetHeight:i}=r;return{top:n,right:o+a,bottom:n+i,left:o,width:a,height:i}}return{measure:e}}function OO(e){function t(n){return e*(n/100)}return{measure:t}}function IO(e,t,r,n,o,a,i){const s=[e].concat(n);let c,l,p=[],d=!1;function m(v){return o.measureSize(i.measure(v))}function b(v){if(!a)return;l=m(e),p=n.map(m);function y(x){for(const w of x){if(d)return;const S=w.target===e,_=n.indexOf(w.target),E=S?l:p[_],C=m(S?e:n[_]);if(qe(C-E)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(x=>{(ui(a)||a(v,x))&&y(x)}),r.requestAnimationFrame(()=>{s.forEach(x=>c.observe(x))})}function g(){d=!0,c&&c.disconnect()}return{init:b,destroy:g}}function jO(e,t,r,n,o,a){let i=0,s=0,c=o,l=a,p=e.get(),d=0;function m(){const E=n.get()-e.get(),C=!c;let A=0;return C?(i=0,r.set(n),e.set(n),A=E):(r.set(e),i+=E/c,i*=l,p+=i,e.add(i),A=p-d),s=Vd(A),d=p,_}function b(){const E=n.get()-t.get();return qe(E)<.001}function g(){return c}function h(){return s}function v(){return i}function y(){return w(o)}function x(){return S(a)}function w(E){return c=E,_}function S(E){return l=E,_}const _={direction:h,duration:g,velocity:v,seek:m,settled:b,useBaseFriction:x,useBaseDuration:y,useFriction:S,useDuration:w};return _}function DO(e,t,r,n,o){const a=o.measure(10),i=o.measure(50),s=$r(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function p(b){if(!l())return;const g=e.reachedMin(t.get())?"min":"max",h=qe(e[g]-t.get()),v=r.get()-t.get(),y=s.constrain(h/i);r.subtract(v*y),!b&&qe(v)<a&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}function d(b){c=!b}return{shouldConstrain:l,constrain:p,toggleActive:d}}function kO(e,t,r,n,o){const a=$r(-t+e,0),i=d(),s=p(),c=m();function l(g,h){return Yn(g,h)<=1}function p(){const g=i[0],h=kt(i),v=i.lastIndexOf(g),y=i.indexOf(h)+1;return $r(v,y)}function d(){return r.map((g,h)=>{const{min:v,max:y}=a,x=a.constrain(g),w=!h,S=Gd(r,h);return w?y:S||l(v,x)?v:l(y,x)?y:x}).map(g=>parseFloat(g.toFixed(3)))}function m(){if(t<=e+o)return[a.max];if(n==="keepSnaps")return i;const{min:g,max:h}=s;return i.slice(g,h)}return{snapsContained:c,scrollContainLimit:s}}function $O(e,t,r){const n=t[0],o=r?n-e:kt(t);return{limit:$r(o,n)}}function LO(e,t,r,n){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:c}=$r(a,i);function l(m){return m===1?c(r.get()):m===-1?s(r.get()):!1}function p(m){if(!l(m))return;const b=e*(m*-1);n.forEach(g=>g.add(b))}return{loop:p}}function FO(e){const{max:t,length:r}=e;function n(a){const i=a-t;return r?i/-r:0}return{get:n}}function BO(e,t,r,n,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,c=d().map(t.measure),l=m(),p=b();function d(){return s(n).map(h=>kt(h)[i]-h[0][a]).map(qe)}function m(){return n.map(h=>r[a]-h[a]).map(h=>-qe(h))}function b(){return s(l).map(h=>h[0]).map((h,v)=>h+c[v])}return{snaps:l,snapsAligned:p}}function zO(e,t,r,n,o,a){const{groupSlides:i}=o,{min:s,max:c}=n,l=p();function p(){const m=i(a),b=!e||t==="keepSnaps";return r.length===1?[a]:b?m:m.slice(s,c).map((g,h,v)=>{const y=!h,x=Gd(v,h);if(y){const w=kt(v[0])+1;return Cm(w)}if(x){const w=So(a)-kt(v)[0]+1;return Cm(w,kt(v)[0])}return g})}return{slideRegistry:l}}function qO(e,t,r,n,o){const{reachedAny:a,removeOffset:i,constrain:s}=n;function c(g){return g.concat().sort((h,v)=>qe(h)-qe(v))[0]}function l(g){const h=e?i(g):s(g),v=t.map((x,w)=>({diff:p(x-h,0),index:w})).sort((x,w)=>qe(x.diff)-qe(w.diff)),{index:y}=v[0];return{index:y,distance:h}}function p(g,h){const v=[g,g+r,g-r];if(!e)return g;if(!h)return c(v);const y=v.filter(x=>Vd(x)===h);return y.length?c(y):kt(v)-r}function d(g,h){const v=t[g]-o.get(),y=p(v,h);return{index:g,distance:y}}function m(g,h){const v=o.get()+g,{index:y,distance:x}=l(v),w=!e&&a(v);if(!h||w)return{index:y,distance:g};const S=t[y]-x,_=g+p(S,0);return{index:y,distance:_}}return{byDistance:m,byIndex:d,shortcut:p}}function HO(e,t,r,n,o,a,i){function s(d){const m=d.distance,b=d.index!==t.get();a.add(m),m&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(r.set(t.get()),t.set(d.index),i.emit("select"))}function c(d,m){const b=o.byDistance(d,m);s(b)}function l(d,m){const b=t.clone().set(d),g=o.byIndex(b.get(),m);s(g)}return{distance:c,index:l}}function VO(e,t,r,n,o,a,i,s){const c={passive:!0,capture:!0};let l=0;function p(b){if(!s)return;function g(h){if(new Date().getTime()-l>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const x=r.findIndex(w=>w.includes(h));Hd(x)&&(o.useDuration(0),n.index(x,0),i.emit("slideFocus"))}a.add(document,"keydown",d,!1),t.forEach((h,v)=>{a.add(h,"focus",y=>{(ui(s)||s(b,y))&&g(v)},c)})}function d(b){b.code==="Tab"&&(l=new Date().getTime())}return{init:p}}function qn(e){let t=e;function r(){return t}function n(c){t=i(c)}function o(c){t+=i(c)}function a(c){t-=i(c)}function i(c){return Hd(c)?c:c.get()}return{get:r,set:n,add:o,subtract:a}}function Ax(e,t){const r=e.scroll==="x"?i:s,n=t.style;let o=null,a=!1;function i(m){return`translate3d(${m}px,0px,0px)`}function s(m){return`translate3d(0px,${m}px,0px)`}function c(m){if(a)return;const b=RO(e.direction(m));b!==o&&(n.transform=r(b),o=b)}function l(m){a=!m}function p(){a||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:c,toggleActive:l}}function GO(e,t,r,n,o,a,i,s,c){const p=Jn(o),d=Jn(o).reverse(),m=y().concat(x());function b(C,A){return C.reduce((P,k)=>P-o[k],A)}function g(C,A){return C.reduce((P,k)=>b(P,A)>0?P.concat([k]):P,[])}function h(C){return a.map((A,P)=>({start:A-n[P]+.5+C,end:A+t-.5+C}))}function v(C,A,P){const k=h(A);return C.map(j=>{const L=P?0:-r,N=P?r:0,D=P?"end":"start",$=k[j][D];return{index:j,loopPoint:$,slideLocation:qn(-1),translate:Ax(e,c[j]),target:()=>s.get()>$?L:N}})}function y(){const C=i[0],A=g(d,C);return v(A,r,!1)}function x(){const C=t-i[0]-1,A=g(p,C);return v(A,-r,!0)}function w(){return m.every(({index:C})=>{const A=p.filter(P=>P!==C);return b(A,t)<=.1})}function S(){m.forEach(C=>{const{target:A,translate:P,slideLocation:k}=C,j=A();j!==k.get()&&(P.to(j),k.set(j))})}function _(){m.forEach(C=>C.translate.clear())}return{canLoop:w,clear:_,loop:S,loopPoints:m}}function WO(e,t,r){let n,o=!1;function a(c){if(!r)return;function l(p){for(const d of p)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}n=new MutationObserver(p=>{o||(ui(r)||r(c,p))&&l(p)}),n.observe(e,{childList:!0})}function i(){n&&n.disconnect(),o=!0}return{init:a,destroy:i}}function UO(e,t,r,n){const o={};let a=null,i=null,s,c=!1;function l(){s=new IntersectionObserver(g=>{c||(g.forEach(h=>{const v=t.indexOf(h.target);o[v]=h}),a=null,i=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(g=>s.observe(g))}function p(){s&&s.disconnect(),c=!0}function d(g){return Qn(o).reduce((h,v)=>{const y=parseInt(v),{isIntersecting:x}=o[y];return(g&&x||!g&&!x)&&h.push(y),h},[])}function m(g=!0){if(g&&a)return a;if(!g&&i)return i;const h=d(g);return g&&(a=h),g||(i=h),h}return{init:l,destroy:p,get:m}}function KO(e,t,r,n,o,a){const{measureSize:i,startEdge:s,endEdge:c}=e,l=r[0]&&o,p=g(),d=h(),m=r.map(i),b=v();function g(){if(!l)return 0;const x=r[0];return qe(t[s]-x[s])}function h(){if(!l)return 0;const x=a.getComputedStyle(kt(n));return parseFloat(x.getPropertyValue(`margin-${c}`))}function v(){return r.map((x,w,S)=>{const _=!w,E=Gd(S,w);return _?m[w]+p:E?m[w]+d:S[w+1][s]-x[s]}).map(qe)}return{slideSizes:m,slideSizesWithGaps:b,startGap:p,endGap:d}}function YO(e,t,r,n,o,a,i,s,c){const{startEdge:l,endEdge:p,direction:d}=e,m=Hd(r);function b(y,x){return Jn(y).filter(w=>w%x===0).map(w=>y.slice(w,w+x))}function g(y){return y.length?Jn(y).reduce((x,w,S)=>{const _=kt(x)||0,E=_===0,C=w===So(y),A=o[l]-a[_][l],P=o[l]-a[w][p],k=!n&&E?d(i):0,j=!n&&C?d(s):0,L=qe(P-j-(A+k));return S&&L>t+c&&x.push(w),C&&x.push(y.length),x},[]).map((x,w,S)=>{const _=Math.max(S[w-1]||0);return y.slice(_,x)}):[]}function h(y){return m?b(y,r):g(y)}return{groupSlides:h}}function XO(e,t,r,n,o,a,i){const{align:s,axis:c,direction:l,startIndex:p,loop:d,duration:m,dragFree:b,dragThreshold:g,inViewThreshold:h,slidesToScroll:v,skipSnaps:y,containScroll:x,watchResize:w,watchSlides:S,watchDrag:_,watchFocus:E}=a,C=2,A=MO(),P=A.measure(t),k=r.map(A.measure),j=TO(c,l),L=j.measureSize(P),N=OO(L),D=EO(s,L),$=!d&&!!x,O=d||!!x,{slideSizes:G,slideSizesWithGaps:H,startGap:z,endGap:oe}=KO(j,P,k,r,O,o),Z=YO(j,L,v,d,P,k,z,oe,C),{snaps:te,snapsAligned:F}=BO(j,D,P,k,Z),W=-kt(te)+kt(H),{snapsContained:Q,scrollContainLimit:K}=kO(L,W,F,x,C),q=$?Q:F,{limit:U}=$O(W,q,d),re=Nx(So(q),p,d),J=re.clone(),ne=Jn(r),V=({dragHandler:Ve,scrollBody:Ct,scrollBounds:Ke,options:{loop:Je}})=>{Je||Ke.constrain(Ve.pointerDown()),Ct.seek()},ae=({scrollBody:Ve,translate:Ct,location:Ke,offsetLocation:Je,previousLocation:Mt,scrollLooper:Gt,slideLooper:pr,dragHandler:Pr,animation:Ot,eventHandler:ue,scrollBounds:be,options:{loop:Ce}},ve)=>{const ie=Ve.settled(),Se=!be.shouldConstrain(),xe=Ce?ie:ie&&Se;xe&&!Pr.pointerDown()&&(Ot.stop(),ue.emit("settle")),xe||ue.emit("scroll");const ke=Ke.get()*ve+Mt.get()*(1-ve);Je.set(ke),Ce&&(Gt.loop(Ve.direction()),pr.loop()),Ct.to(Je.get())},I=PO(n,o,()=>V(ft),Ve=>ae(ft,Ve)),ee=.68,pe=q[re.get()],me=qn(pe),ge=qn(pe),fe=qn(pe),Ee=qn(pe),Fe=jO(me,fe,ge,Ee,m,ee),we=qO(d,q,W,U,Ee),Oe=HO(I,re,J,Fe,we,Ee,i),rt=FO(U),Ze=eo(),Ue=UO(t,r,i,h),{slideRegistry:ot}=zO($,x,q,K,Z,ne),mt=VO(e,r,ot,Oe,Fe,Ze,i,E),ft={ownerDocument:n,ownerWindow:o,eventHandler:i,containerRect:P,slideRects:k,animation:I,axis:j,dragHandler:NO(j,e,n,o,Ee,AO(j,o),me,I,Oe,Fe,we,re,i,N,b,g,y,ee,_),eventStore:Ze,percentOfView:N,index:re,indexPrevious:J,limit:U,location:me,offsetLocation:fe,previousLocation:ge,options:a,resizeHandler:IO(t,i,o,r,j,w,A),scrollBody:Fe,scrollBounds:DO(U,fe,Ee,Fe,N),scrollLooper:LO(W,U,fe,[me,fe,ge,Ee]),scrollProgress:rt,scrollSnapList:q.map(rt.get),scrollSnaps:q,scrollTarget:we,scrollTo:Oe,slideLooper:GO(j,L,W,G,H,te,q,fe,r),slideFocus:mt,slidesHandler:WO(t,i,S),slidesInView:Ue,slideIndexes:ne,slideRegistry:ot,slidesToScroll:Z,target:Ee,translate:Ax(j,t)};return ft}function ZO(){let e={},t;function r(l){t=l}function n(l){return e[l]||[]}function o(l){return n(l).forEach(p=>p(t,l)),c}function a(l,p){return e[l]=n(l).concat([p]),c}function i(l,p){return e[l]=n(l).filter(d=>d!==p),c}function s(){e={}}const c={init:r,emit:o,off:i,on:a,clear:s};return c}const JO={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function QO(e){function t(a,i){return Tx(a,i||{})}function r(a){const i=a.breakpoints||{},s=Qn(i).filter(c=>e.matchMedia(c).matches).map(c=>i[c]).reduce((c,l)=>t(c,l),{});return t(a,s)}function n(a){return a.map(i=>Qn(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:n}}function eI(e){let t=[];function r(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,c)=>Object.assign(s,{[c.name]:c}),{})}function n(){t=t.filter(a=>a.destroy())}return{init:r,destroy:n}}function Ca(e,t,r){const n=e.ownerDocument,o=n.defaultView,a=QO(o),i=eI(a),s=eo(),c=ZO(),{mergeOptions:l,optionsAtMedia:p,optionsMediaQueries:d}=a,{on:m,off:b,emit:g}=c,h=j;let v=!1,y,x=l(JO,Ca.globalOptions),w=l(x),S=[],_,E,C;function A(){const{container:ne,slides:V}=w;E=(_u(ne)?e.querySelector(ne):ne)||e.children[0];const I=_u(V)?E.querySelectorAll(V):V;C=[].slice.call(I||E.children)}function P(ne){const V=XO(e,E,C,n,o,ne,c);if(ne.loop&&!V.slideLooper.canLoop()){const ae=Object.assign({},ne,{loop:!1});return P(ae)}return V}function k(ne,V){v||(x=l(x,ne),w=p(x),S=V||S,A(),y=P(w),d([x,...S.map(({options:ae})=>ae)]).forEach(ae=>s.add(ae,"change",j)),w.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(J),y.eventHandler.init(J),y.resizeHandler.init(J),y.slidesHandler.init(J),y.options.loop&&y.slideLooper.loop(),E.offsetParent&&C.length&&y.dragHandler.init(J),_=i.init(J,S)))}function j(ne,V){const ae=Z();L(),k(l({startIndex:ae},ne),V),c.emit("reInit")}function L(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),i.destroy(),s.clear()}function N(){v||(v=!0,s.clear(),L(),c.emit("destroy"),c.clear())}function D(ne,V,ae){!w.active||v||(y.scrollBody.useBaseFriction().useDuration(V===!0?0:w.duration),y.scrollTo.index(ne,ae||0))}function $(ne){const V=y.index.add(1).get();D(V,ne,-1)}function O(ne){const V=y.index.add(-1).get();D(V,ne,1)}function G(){return y.index.add(1).get()!==Z()}function H(){return y.index.add(-1).get()!==Z()}function z(){return y.scrollSnapList}function oe(){return y.scrollProgress.get(y.location.get())}function Z(){return y.index.get()}function te(){return y.indexPrevious.get()}function F(){return y.slidesInView.get()}function W(){return y.slidesInView.get(!1)}function Q(){return _}function K(){return y}function q(){return e}function U(){return E}function re(){return C}const J={canScrollNext:G,canScrollPrev:H,containerNode:U,internalEngine:K,destroy:N,off:b,on:m,emit:g,plugins:Q,previousScrollSnap:te,reInit:h,rootNode:q,scrollNext:$,scrollPrev:O,scrollProgress:oe,scrollSnapList:z,scrollTo:D,selectedScrollSnap:Z,slideNodes:re,slidesInView:F,slidesNotInView:W};return k(t,r),setTimeout(()=>c.emit("init"),0),J}Ca.globalOptions=void 0;function Wd(e={},t=[]){const r=R.useRef(e),n=R.useRef(t),[o,a]=R.useState(),[i,s]=R.useState(),c=R.useCallback(()=>{o&&o.reInit(r.current,n.current)},[o]);return R.useEffect(()=>{qd(r.current,e)||(r.current=e,c())},[e,c]),R.useEffect(()=>{CO(n.current,t)||(n.current=t,c())},[t,c]),R.useEffect(()=>{if(SO()&&i){Ca.globalOptions=Wd.globalOptions;const l=Ca(i,r.current,n.current);return a(l),()=>l.destroy()}else a(void 0)},[i,a]),[s,o]}Wd.globalOptions=void 0;const Mx=f.createContext(null);function di(){const e=f.useContext(Mx);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Ox=f.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:n,className:o,children:a,...i},s)=>{const[c,l]=Wd({...t,axis:e==="horizontal"?"x":"y"},n),[p,d]=f.useState(!1),[m,b]=f.useState(!1),g=f.useCallback(x=>{x&&(d(x.canScrollPrev()),b(x.canScrollNext()))},[]),h=f.useCallback(()=>{l==null||l.scrollPrev()},[l]),v=f.useCallback(()=>{l==null||l.scrollNext()},[l]),y=f.useCallback(x=>{x.key==="ArrowLeft"?(x.preventDefault(),h()):x.key==="ArrowRight"&&(x.preventDefault(),v())},[h,v]);return f.useEffect(()=>{!l||!r||r(l)},[l,r]),f.useEffect(()=>{if(l)return g(l),l.on("reInit",g),l.on("select",g),()=>{l==null||l.off("select",g)}},[l,g]),u.jsx(Mx.Provider,{value:{carouselRef:c,api:l,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:h,scrollNext:v,canScrollPrev:p,canScrollNext:m},children:u.jsx("div",{ref:s,onKeyDownCapture:y,className:M("relative",o),role:"region","aria-roledescription":"carousel",...i,children:a})})});Ox.displayName="Carousel";const Ix=f.forwardRef(({className:e,...t},r)=>{const{carouselRef:n,orientation:o}=di();return u.jsx("div",{ref:n,className:"overflow-hidden",children:u.jsx("div",{ref:r,className:M("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ix.displayName="CarouselContent";const jx=f.forwardRef(({className:e,...t},r)=>{const{orientation:n}=di();return u.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:M("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})});jx.displayName="CarouselItem";const Dx=f.forwardRef(({className:e,variant:t="outline",size:r="icon",...n},o)=>{const{orientation:a,scrollPrev:i,canScrollPrev:s}=di();return u.jsxs(Pt,{ref:o,variant:t,size:r,className:M("absolute h-8 w-8 rounded-full",a==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:i,...n,children:[u.jsx(A1,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Dx.displayName="CarouselPrevious";const kx=f.forwardRef(({className:e,variant:t="outline",size:r="icon",...n},o)=>{const{orientation:a,scrollNext:i,canScrollNext:s}=di();return u.jsxs(Pt,{ref:o,variant:t,size:r,className:M("absolute h-8 w-8 rounded-full",a==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:i,...n,children:[u.jsx(O1,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Next slide"})]})});kx.displayName="CarouselNext";var es,_m;function qt(){if(_m)return es;_m=1;var e=Array.isArray;return es=e,es}var ts,Rm;function $x(){if(Rm)return ts;Rm=1;var e=typeof Vo=="object"&&Vo&&Vo.Object===Object&&Vo;return ts=e,ts}var rs,Em;function Zt(){if(Em)return rs;Em=1;var e=$x(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return rs=r,rs}var ns,Pm;function Co(){if(Pm)return ns;Pm=1;var e=Zt(),t=e.Symbol;return ns=t,ns}var os,Tm;function tI(){if(Tm)return os;Tm=1;var e=Co(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function a(i){var s=r.call(i,o),c=i[o];try{i[o]=void 0;var l=!0}catch{}var p=n.call(i);return l&&(s?i[o]=c:delete i[o]),p}return os=a,os}var as,Nm;function rI(){if(Nm)return as;Nm=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return as=r,as}var is,Am;function Hr(){if(Am)return is;Am=1;var e=Co(),t=tI(),r=rI(),n="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?o:n:a&&a in Object(s)?t(s):r(s)}return is=i,is}var ss,Mm;function Vr(){if(Mm)return ss;Mm=1;function e(t){return t!=null&&typeof t=="object"}return ss=e,ss}var cs,Om;function _o(){if(Om)return cs;Om=1;var e=Hr(),t=Vr(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return cs=n,cs}var ls,Im;function Ud(){if(Im)return ls;Im=1;var e=qt(),t=_o(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(a,i){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||i!=null&&a in Object(i)}return ls=o,ls}var us,jm;function Sr(){if(jm)return us;jm=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return us=e,us}var ds,Dm;function Kd(){if(Dm)return ds;Dm=1;var e=Hr(),t=Sr(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!t(s))return!1;var c=e(s);return c==n||c==o||c==r||c==a}return ds=i,ds}var fs,km;function nI(){if(km)return fs;km=1;var e=Zt(),t=e["__core-js_shared__"];return fs=t,fs}var ps,$m;function oI(){if($m)return ps;$m=1;var e=nI(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return ps=r,ps}var ms,Lm;function Lx(){if(Lm)return ms;Lm=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return ms=r,ms}var hs,Fm;function aI(){if(Fm)return hs;Fm=1;var e=Kd(),t=oI(),r=Sr(),n=Lx(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,c=i.toString,l=s.hasOwnProperty,p=RegExp("^"+c.call(l).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(m){if(!r(m)||t(m))return!1;var b=e(m)?p:a;return b.test(n(m))}return hs=d,hs}var gs,Bm;function iI(){if(Bm)return gs;Bm=1;function e(t,r){return t==null?void 0:t[r]}return gs=e,gs}var vs,zm;function Gr(){if(zm)return vs;zm=1;var e=aI(),t=iI();function r(n,o){var a=t(n,o);return e(a)?a:void 0}return vs=r,vs}var bs,qm;function fi(){if(qm)return bs;qm=1;var e=Gr(),t=e(Object,"create");return bs=t,bs}var ys,Hm;function sI(){if(Hm)return ys;Hm=1;var e=fi();function t(){this.__data__=e?e(null):{},this.size=0}return ys=t,ys}var xs,Vm;function cI(){if(Vm)return xs;Vm=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return xs=e,xs}var ws,Gm;function lI(){if(Gm)return ws;Gm=1;var e=fi(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(a){var i=this.__data__;if(e){var s=i[a];return s===t?void 0:s}return n.call(i,a)?i[a]:void 0}return ws=o,ws}var Ss,Wm;function uI(){if(Wm)return Ss;Wm=1;var e=fi(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var a=this.__data__;return e?a[o]!==void 0:r.call(a,o)}return Ss=n,Ss}var Cs,Um;function dI(){if(Um)return Cs;Um=1;var e=fi(),t="__lodash_hash_undefined__";function r(n,o){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&o===void 0?t:o,this}return Cs=r,Cs}var _s,Km;function fI(){if(Km)return _s;Km=1;var e=sI(),t=cI(),r=lI(),n=uI(),o=dI();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,_s=a,_s}var Rs,Ym;function pI(){if(Ym)return Rs;Ym=1;function e(){this.__data__=[],this.size=0}return Rs=e,Rs}var Es,Xm;function Yd(){if(Xm)return Es;Xm=1;function e(t,r){return t===r||t!==t&&r!==r}return Es=e,Es}var Ps,Zm;function pi(){if(Zm)return Ps;Zm=1;var e=Yd();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return Ps=t,Ps}var Ts,Jm;function mI(){if(Jm)return Ts;Jm=1;var e=pi(),t=Array.prototype,r=t.splice;function n(o){var a=this.__data__,i=e(a,o);if(i<0)return!1;var s=a.length-1;return i==s?a.pop():r.call(a,i,1),--this.size,!0}return Ts=n,Ts}var Ns,Qm;function hI(){if(Qm)return Ns;Qm=1;var e=pi();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return Ns=t,Ns}var As,eh;function gI(){if(eh)return As;eh=1;var e=pi();function t(r){return e(this.__data__,r)>-1}return As=t,As}var Ms,th;function vI(){if(th)return Ms;th=1;var e=pi();function t(r,n){var o=this.__data__,a=e(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return Ms=t,Ms}var Os,rh;function mi(){if(rh)return Os;rh=1;var e=pI(),t=mI(),r=hI(),n=gI(),o=vI();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,Os=a,Os}var Is,nh;function Xd(){if(nh)return Is;nh=1;var e=Gr(),t=Zt(),r=e(t,"Map");return Is=r,Is}var js,oh;function bI(){if(oh)return js;oh=1;var e=fI(),t=mi(),r=Xd();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return js=n,js}var Ds,ah;function yI(){if(ah)return Ds;ah=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Ds=e,Ds}var ks,ih;function hi(){if(ih)return ks;ih=1;var e=yI();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return ks=t,ks}var $s,sh;function xI(){if(sh)return $s;sh=1;var e=hi();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return $s=t,$s}var Ls,ch;function wI(){if(ch)return Ls;ch=1;var e=hi();function t(r){return e(this,r).get(r)}return Ls=t,Ls}var Fs,lh;function SI(){if(lh)return Fs;lh=1;var e=hi();function t(r){return e(this,r).has(r)}return Fs=t,Fs}var Bs,uh;function CI(){if(uh)return Bs;uh=1;var e=hi();function t(r,n){var o=e(this,r),a=o.size;return o.set(r,n),this.size+=o.size==a?0:1,this}return Bs=t,Bs}var zs,dh;function Zd(){if(dh)return zs;dh=1;var e=bI(),t=xI(),r=wI(),n=SI(),o=CI();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,zs=a,zs}var qs,fh;function _I(){if(fh)return qs;fh=1;var e=Zd(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var i=arguments,s=o?o.apply(this,i):i[0],c=a.cache;if(c.has(s))return c.get(s);var l=n.apply(this,i);return a.cache=c.set(s,l)||c,l};return a.cache=new(r.Cache||e),a}return r.Cache=e,qs=r,qs}var Hs,ph;function RI(){if(ph)return Hs;ph=1;var e=_I(),t=500;function r(n){var o=e(n,function(i){return a.size===t&&a.clear(),i}),a=o.cache;return o}return Hs=r,Hs}var Vs,mh;function EI(){if(mh)return Vs;mh=1;var e=RI(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(i,s,c,l){a.push(c?l.replace(r,"$1"):s||i)}),a});return Vs=n,Vs}var Gs,hh;function Fx(){if(hh)return Gs;hh=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,a=Array(o);++n<o;)a[n]=r(t[n],n,t);return a}return Gs=e,Gs}var Ws,gh;function PI(){if(gh)return Ws;gh=1;var e=Co(),t=Fx(),r=qt(),n=_o(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function i(s){if(typeof s=="string")return s;if(r(s))return t(s,i)+"";if(n(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return Ws=i,Ws}var Us,vh;function Bx(){if(vh)return Us;vh=1;var e=PI();function t(r){return r==null?"":e(r)}return Us=t,Us}var Ks,bh;function zx(){if(bh)return Ks;bh=1;var e=qt(),t=Ud(),r=EI(),n=Bx();function o(a,i){return e(a)?a:t(a,i)?[a]:r(n(a))}return Ks=o,Ks}var Ys,yh;function gi(){if(yh)return Ys;yh=1;var e=_o();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Ys=t,Ys}var Xs,xh;function Jd(){if(xh)return Xs;xh=1;var e=zx(),t=gi();function r(n,o){o=e(o,n);for(var a=0,i=o.length;n!=null&&a<i;)n=n[t(o[a++])];return a&&a==i?n:void 0}return Xs=r,Xs}var Zs,wh;function qx(){if(wh)return Zs;wh=1;var e=Jd();function t(r,n,o){var a=r==null?void 0:e(r,n);return a===void 0?o:a}return Zs=t,Zs}qx();var Js,Sh;function TI(){if(Sh)return Js;Sh=1;function e(t){return t==null}return Js=e,Js}var NI=TI();const AI=Xt(NI);var Qs,Ch;function MI(){if(Ch)return Qs;Ch=1;var e=Hr(),t=qt(),r=Vr(),n="[object String]";function o(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Qs=o,Qs}var OI=MI();const Hx=Xt(OI);var II=Kd();const _a=Xt(II);var jI=Sr();const Vx=Xt(jI);var Jo={exports:{}},Ae={};/**
|
|
186
|
-
* @license React
|
|
187
|
-
* react-is.production.min.js
|
|
188
|
-
*
|
|
189
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
190
|
-
*
|
|
191
|
-
* This source code is licensed under the MIT license found in the
|
|
192
|
-
* LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/var _h;function DI(){if(_h)return Ae;_h=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case r:case o:case n:case l:case p:return v;default:switch(v=v&&v.$$typeof,v){case s:case i:case c:case m:case d:case a:return v;default:return y}}case t:return y}}}return Ae.ContextConsumer=i,Ae.ContextProvider=a,Ae.Element=e,Ae.ForwardRef=c,Ae.Fragment=r,Ae.Lazy=m,Ae.Memo=d,Ae.Portal=t,Ae.Profiler=o,Ae.StrictMode=n,Ae.Suspense=l,Ae.SuspenseList=p,Ae.isAsyncMode=function(){return!1},Ae.isConcurrentMode=function(){return!1},Ae.isContextConsumer=function(v){return h(v)===i},Ae.isContextProvider=function(v){return h(v)===a},Ae.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Ae.isForwardRef=function(v){return h(v)===c},Ae.isFragment=function(v){return h(v)===r},Ae.isLazy=function(v){return h(v)===m},Ae.isMemo=function(v){return h(v)===d},Ae.isPortal=function(v){return h(v)===t},Ae.isProfiler=function(v){return h(v)===o},Ae.isStrictMode=function(v){return h(v)===n},Ae.isSuspense=function(v){return h(v)===l},Ae.isSuspenseList=function(v){return h(v)===p},Ae.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===l||v===p||v===b||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===d||v.$$typeof===a||v.$$typeof===i||v.$$typeof===c||v.$$typeof===g||v.getModuleId!==void 0)},Ae.typeOf=h,Ae}var Me={};/**
|
|
194
|
-
* @license React
|
|
195
|
-
* react-is.development.js
|
|
196
|
-
*
|
|
197
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the MIT license found in the
|
|
200
|
-
* LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/var Rh;function kI(){return Rh||(Rh=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=!1,h=!1,v=!1,y=!1,x=!1,w;w=Symbol.for("react.module.reference");function S(I){return!!(typeof I=="string"||typeof I=="function"||I===r||I===o||x||I===n||I===l||I===p||y||I===b||g||h||v||typeof I=="object"&&I!==null&&(I.$$typeof===m||I.$$typeof===d||I.$$typeof===a||I.$$typeof===i||I.$$typeof===c||I.$$typeof===w||I.getModuleId!==void 0))}function _(I){if(typeof I=="object"&&I!==null){var ee=I.$$typeof;switch(ee){case e:var pe=I.type;switch(pe){case r:case o:case n:case l:case p:return pe;default:var me=pe&&pe.$$typeof;switch(me){case s:case i:case c:case m:case d:case a:return me;default:return ee}}case t:return ee}}}var E=i,C=a,A=e,P=c,k=r,j=m,L=d,N=t,D=o,$=n,O=l,G=p,H=!1,z=!1;function oe(I){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Z(I){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(I){return _(I)===i}function F(I){return _(I)===a}function W(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function Q(I){return _(I)===c}function K(I){return _(I)===r}function q(I){return _(I)===m}function U(I){return _(I)===d}function re(I){return _(I)===t}function J(I){return _(I)===o}function ne(I){return _(I)===n}function V(I){return _(I)===l}function ae(I){return _(I)===p}Me.ContextConsumer=E,Me.ContextProvider=C,Me.Element=A,Me.ForwardRef=P,Me.Fragment=k,Me.Lazy=j,Me.Memo=L,Me.Portal=N,Me.Profiler=D,Me.StrictMode=$,Me.Suspense=O,Me.SuspenseList=G,Me.isAsyncMode=oe,Me.isConcurrentMode=Z,Me.isContextConsumer=te,Me.isContextProvider=F,Me.isElement=W,Me.isForwardRef=Q,Me.isFragment=K,Me.isLazy=q,Me.isMemo=U,Me.isPortal=re,Me.isProfiler=J,Me.isStrictMode=ne,Me.isSuspense=V,Me.isSuspenseList=ae,Me.isValidElementType=S,Me.typeOf=_}()),Me}var Eh;function $I(){return Eh||(Eh=1,process.env.NODE_ENV==="production"?Jo.exports=DI():Jo.exports=kI()),Jo.exports}$I();var ec,Ph;function Gx(){if(Ph)return ec;Ph=1;var e=Hr(),t=Vr(),r="[object Number]";function n(o){return typeof o=="number"||t(o)&&e(o)==r}return ec=n,ec}var tc,Th;function LI(){if(Th)return tc;Th=1;var e=Gx();function t(r){return e(r)&&r!=+r}return tc=t,tc}var FI=LI();const BI=Xt(FI);var zI=Gx();const qI=Xt(zI);var Qo=function(t){return Hx(t)&&t.indexOf("%")===t.length-1},Dt=function(t){return qI(t)&&!BI(t)},Ra=function(t){return Dt(t)||Hx(t)};function Eu(e){"@babel/helpers - typeof";return Eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(e)}var HI=["viewBox","children"],VI=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Nh=["points","pathLength"],rc={svg:HI,polygon:Nh,polyline:Nh},Wx=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],GI=function(t,r,n){return function(o){return t(r,n,o),null}},WI=function(t,r,n){if(!Vx(t)||Eu(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var i=t[a];Wx.includes(a)&&typeof i=="function"&&(o||(o={}),o[a]=GI(i,r,n))}),o},UI=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},KI=function(t,r,n,o){var a,i=(a=rc==null?void 0:rc[o])!==null&&a!==void 0?a:[];return!_a(t)&&(o&&i.includes(r)||VI.includes(r))||Wx.includes(r)},Ux=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(R.isValidElement(t)&&(o=t.props),!Vx(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;KI((s=o)===null||s===void 0?void 0:s[i],i,r,n)&&(a[i]=o[i])}),a},YI=["children","width","height","viewBox","className","style","title","desc"];function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pu.apply(this,arguments)}function XI(e,t){if(e==null)return{};var r=ZI(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function JI(e){var t=e.children,r=e.width,n=e.height,o=e.viewBox,a=e.className,i=e.style,s=e.title,c=e.desc,l=XI(e,YI),p=o||{width:r,height:n,x:0,y:0},d=ar("recharts-surface",a);return R.createElement("svg",Pu({},Ux(l,!0,"svg"),{className:d,width:r,height:n,style:i,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),R.createElement("title",null,s),R.createElement("desc",null,c),t)}var QI=process.env.NODE_ENV!=="production",pa=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];if(QI&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(r.replace(/%s/g,function(){return o[i++]}))}},nc,Ah;function ej(){if(Ah)return nc;Ah=1;function e(t,r,n){var o=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var i=Array(a);++o<a;)i[o]=t[o+r];return i}return nc=e,nc}var oc,Mh;function tj(){if(Mh)return oc;Mh=1;var e=ej();function t(r,n,o){var a=r.length;return o=o===void 0?a:o,!n&&o>=a?r:e(r,n,o)}return oc=t,oc}var ac,Oh;function Kx(){if(Oh)return ac;Oh=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+e+o+a+"]");function c(l){return s.test(l)}return ac=c,ac}var ic,Ih;function rj(){if(Ih)return ic;Ih=1;function e(t){return t.split("")}return ic=e,ic}var sc,jh;function nj(){if(jh)return sc;jh=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\ufe0e\\ufe0f",i="["+e+"]",s="["+o+"]",c="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+c+")",p="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",g=l+"?",h="["+a+"]?",v="(?:"+b+"(?:"+[p,d,m].join("|")+")"+h+g+")*",y=h+g+v,x="(?:"+[p+s+"?",s,d,m,i].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+y,"g");function S(_){return _.match(w)||[]}return sc=S,sc}var cc,Dh;function oj(){if(Dh)return cc;Dh=1;var e=rj(),t=Kx(),r=nj();function n(o){return t(o)?r(o):e(o)}return cc=n,cc}var lc,kh;function aj(){if(kh)return lc;kh=1;var e=tj(),t=Kx(),r=oj(),n=Bx();function o(a){return function(i){i=n(i);var s=t(i)?r(i):void 0,c=s?s[0]:i.charAt(0),l=s?e(s,1).join(""):i.slice(1);return c[a]()+l}}return lc=o,lc}var uc,$h;function ij(){if($h)return uc;$h=1;var e=aj(),t=e("toUpperCase");return uc=t,uc}var sj=ij();const Yx=Xt(sj);function ea(e){return function(){return e}}const Xx=Math.cos,Ea=Math.sin,Ht=Math.sqrt,Pa=Math.PI,vi=2*Pa,Tu=Math.PI,Nu=2*Tu,Or=1e-6,cj=Nu-Or;function Zx(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function lj(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Zx;const r=10**t;return function(n){this._+=n[0];for(let o=1,a=n.length;o<a;++o)this._+=Math.round(arguments[o]*r)/r+n[o]}}class uj{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Zx:lj(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,o){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(t,r,n,o,a,i){this._append`C${+t},${+r},${+n},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,r,n,o,a){if(t=+t,r=+r,n=+n,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,c=n-t,l=o-r,p=i-t,d=s-r,m=p*p+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>Or)if(!(Math.abs(d*c-l*p)>Or)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let b=n-i,g=o-s,h=c*c+l*l,v=b*b+g*g,y=Math.sqrt(h),x=Math.sqrt(m),w=a*Math.tan((Tu-Math.acos((h+m-v)/(2*y*x)))/2),S=w/x,_=w/y;Math.abs(S-1)>Or&&this._append`L${t+S*p},${r+S*d}`,this._append`A${a},${a},0,0,${+(d*b>p*g)},${this._x1=t+_*c},${this._y1=r+_*l}`}}arc(t,r,n,o,a,i){if(t=+t,r=+r,n=+n,i=!!i,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),c=n*Math.sin(o),l=t+s,p=r+c,d=1^i,m=i?o-a:a-o;this._x1===null?this._append`M${l},${p}`:(Math.abs(this._x1-l)>Or||Math.abs(this._y1-p)>Or)&&this._append`L${l},${p}`,n&&(m<0&&(m=m%Nu+Nu),m>cj?this._append`A${n},${n},0,1,${d},${t-s},${r-c}A${n},${n},0,1,${d},${this._x1=l},${this._y1=p}`:m>Or&&this._append`A${n},${n},0,${+(m>=Tu)},${d},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function dj(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new uj(t)}const Qd={draw(e,t){const r=Ht(t/Pa);e.moveTo(r,0),e.arc(0,0,r,0,vi)}},fj={draw(e,t){const r=Ht(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Jx=Ht(1/3),pj=Jx*2,mj={draw(e,t){const r=Ht(t/pj),n=r*Jx;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},hj={draw(e,t){const r=Ht(t),n=-r/2;e.rect(n,n,r,r)}},gj=.8908130915292852,Qx=Ea(Pa/10)/Ea(7*Pa/10),vj=Ea(vi/10)*Qx,bj=-Xx(vi/10)*Qx,yj={draw(e,t){const r=Ht(t*gj),n=vj*r,o=bj*r;e.moveTo(0,-r),e.lineTo(n,o);for(let a=1;a<5;++a){const i=vi*a/5,s=Xx(i),c=Ea(i);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*o,c*n+s*o)}e.closePath()}},dc=Ht(3),xj={draw(e,t){const r=-Ht(t/(dc*3));e.moveTo(0,r*2),e.lineTo(-dc*r,-r),e.lineTo(dc*r,-r),e.closePath()}},Rt=-.5,Et=Ht(3)/2,Au=1/Ht(12),wj=(Au/2+1)*3,Sj={draw(e,t){const r=Ht(t/wj),n=r/2,o=r*Au,a=n,i=r*Au+r,s=-a,c=i;e.moveTo(n,o),e.lineTo(a,i),e.lineTo(s,c),e.lineTo(Rt*n-Et*o,Et*n+Rt*o),e.lineTo(Rt*a-Et*i,Et*a+Rt*i),e.lineTo(Rt*s-Et*c,Et*s+Rt*c),e.lineTo(Rt*n+Et*o,Rt*o-Et*n),e.lineTo(Rt*a+Et*i,Rt*i-Et*a),e.lineTo(Rt*s+Et*c,Rt*c-Et*s),e.closePath()}};function Cj(e,t){let r=null,n=dj(o);e=typeof e=="function"?e:ea(e||Qd),t=typeof t=="function"?t:ea(t===void 0?64:+t);function o(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:ea(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:ea(+a),o):t},o.context=function(a){return arguments.length?(r=a??null,o):r},o}function to(e){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(e)}var _j=["type","size","sizeType"];function Mu(){return Mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mu.apply(this,arguments)}function Lh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Fh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lh(Object(r),!0).forEach(function(n){Rj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rj(e,t,r){return t=Ej(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ej(e){var t=Pj(e,"string");return to(t)=="symbol"?t:t+""}function Pj(e,t){if(to(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(to(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tj(e,t){if(e==null)return{};var r=Nj(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Nj(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ew={symbolCircle:Qd,symbolCross:fj,symbolDiamond:mj,symbolSquare:hj,symbolStar:yj,symbolTriangle:xj,symbolWye:Sj},Aj=Math.PI/180,Mj=function(t){var r="symbol".concat(Yx(t));return ew[r]||Qd},Oj=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*Aj;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Ij=function(t,r){ew["symbol".concat(Yx(t))]=r},tw=function(t){var r=t.type,n=r===void 0?"circle":r,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,c=Tj(t,_j),l=Fh(Fh({},c),{},{type:n,size:a,sizeType:s}),p=function(){var v=Mj(n),y=Cj().type(v).size(Oj(a,s,n));return y()},d=l.className,m=l.cx,b=l.cy,g=Ux(l,!0);return m===+m&&b===+b&&a===+a?R.createElement("path",Mu({},g,{className:ar("recharts-symbols",d),transform:"translate(".concat(m,", ").concat(b,")"),d:p()})):null};tw.registerSymbol=Ij;function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ou.apply(this,arguments)}function Bh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function jj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bh(Object(r),!0).forEach(function(n){ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nw(n.key),n)}}function $j(e,t,r){return t&&kj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lj(e,t,r){return t=Ta(t),Fj(e,rw()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function Fj(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bj(e)}function Bj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rw=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function zj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iu(e,t)}function Iu(e,t){return Iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Iu(e,t)}function ro(e,t,r){return t=nw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nw(e){var t=qj(e,"string");return cn(t)=="symbol"?t:t+""}function qj(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var It=32,ef=function(e){function t(){return Dj(this,t),Lj(this,t,arguments)}return zj(t,e),$j(t,[{key:"renderIcon",value:function(n){var o=this.props.inactiveColor,a=It/2,i=It/6,s=It/3,c=n.inactive?o:n.color;if(n.type==="plainline")return R.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:It,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return R.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,`
|
|
202
|
-
A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(a,`
|
|
203
|
-
H`).concat(It,"M").concat(2*s,",").concat(a,`
|
|
204
|
-
A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return R.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(It/8,"h").concat(It,"v").concat(It*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(R.isValidElement(n.legendIcon)){var l=jj({},n);return delete l.legendIcon,R.cloneElement(n.legendIcon,l)}return R.createElement(tw,{fill:c,cx:a,cy:a,size:It,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,o=this.props,a=o.payload,i=o.iconSize,s=o.layout,c=o.formatter,l=o.inactiveColor,p={x:0,y:0,width:It,height:It},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(b,g){var h=b.formatter||c,v=ar(ro(ro({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",b.inactive));if(b.type==="none")return null;var y=_a(b.value)?null:b.value;pa(!_a(b.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=b.inactive?l:b.color;return R.createElement("li",Ou({className:v,style:d,key:"legend-item-".concat(g)},WI(n.props,b,g)),R.createElement(JI,{width:i,height:i,viewBox:p,style:m},n.renderIcon(b)),R.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},h?h(y,b,g):y))})}},{key:"render",value:function(){var n=this.props,o=n.payload,a=n.layout,i=n.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?i:"left"};return R.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(R.PureComponent);ro(ef,"displayName","Legend");ro(ef,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var fc,zh;function Hj(){if(zh)return fc;zh=1;var e=mi();function t(){this.__data__=new e,this.size=0}return fc=t,fc}var pc,qh;function Vj(){if(qh)return pc;qh=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return pc=e,pc}var mc,Hh;function Gj(){if(Hh)return mc;Hh=1;function e(t){return this.__data__.get(t)}return mc=e,mc}var hc,Vh;function Wj(){if(Vh)return hc;Vh=1;function e(t){return this.__data__.has(t)}return hc=e,hc}var gc,Gh;function Uj(){if(Gh)return gc;Gh=1;var e=mi(),t=Xd(),r=Zd(),n=200;function o(a,i){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,i]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,i),this.size=s.size,this}return gc=o,gc}var vc,Wh;function ow(){if(Wh)return vc;Wh=1;var e=mi(),t=Hj(),r=Vj(),n=Gj(),o=Wj(),a=Uj();function i(s){var c=this.__data__=new e(s);this.size=c.size}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=o,i.prototype.set=a,vc=i,vc}var bc,Uh;function Kj(){if(Uh)return bc;Uh=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return bc=t,bc}var yc,Kh;function Yj(){if(Kh)return yc;Kh=1;function e(t){return this.__data__.has(t)}return yc=e,yc}var xc,Yh;function aw(){if(Yh)return xc;Yh=1;var e=Zd(),t=Kj(),r=Yj();function n(o){var a=-1,i=o==null?0:o.length;for(this.__data__=new e;++a<i;)this.add(o[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,xc=n,xc}var wc,Xh;function Xj(){if(Xh)return wc;Xh=1;function e(t,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(t[n],n,t))return!0;return!1}return wc=e,wc}var Sc,Zh;function iw(){if(Zh)return Sc;Zh=1;function e(t,r){return t.has(r)}return Sc=e,Sc}var Cc,Jh;function sw(){if(Jh)return Cc;Jh=1;var e=aw(),t=Xj(),r=iw(),n=1,o=2;function a(i,s,c,l,p,d){var m=c&n,b=i.length,g=s.length;if(b!=g&&!(m&&g>b))return!1;var h=d.get(i),v=d.get(s);if(h&&v)return h==s&&v==i;var y=-1,x=!0,w=c&o?new e:void 0;for(d.set(i,s),d.set(s,i);++y<b;){var S=i[y],_=s[y];if(l)var E=m?l(_,S,y,s,i,d):l(S,_,y,i,s,d);if(E!==void 0){if(E)continue;x=!1;break}if(w){if(!t(s,function(C,A){if(!r(w,A)&&(S===C||p(S,C,c,l,d)))return w.push(A)})){x=!1;break}}else if(!(S===_||p(S,_,c,l,d))){x=!1;break}}return d.delete(i),d.delete(s),x}return Cc=a,Cc}var _c,Qh;function Zj(){if(Qh)return _c;Qh=1;var e=Zt(),t=e.Uint8Array;return _c=t,_c}var Rc,eg;function Jj(){if(eg)return Rc;eg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o,a){n[++r]=[a,o]}),n}return Rc=e,Rc}var Ec,tg;function tf(){if(tg)return Ec;tg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}return Ec=e,Ec}var Pc,rg;function Qj(){if(rg)return Pc;rg=1;var e=Co(),t=Zj(),r=Yd(),n=sw(),o=Jj(),a=tf(),i=1,s=2,c="[object Boolean]",l="[object Date]",p="[object Error]",d="[object Map]",m="[object Number]",b="[object RegExp]",g="[object Set]",h="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,S=w?w.valueOf:void 0;function _(E,C,A,P,k,j,L){switch(A){case x:if(E.byteLength!=C.byteLength||E.byteOffset!=C.byteOffset)return!1;E=E.buffer,C=C.buffer;case y:return!(E.byteLength!=C.byteLength||!j(new t(E),new t(C)));case c:case l:case m:return r(+E,+C);case p:return E.name==C.name&&E.message==C.message;case b:case h:return E==C+"";case d:var N=o;case g:var D=P&i;if(N||(N=a),E.size!=C.size&&!D)return!1;var $=L.get(E);if($)return $==C;P|=s,L.set(E,C);var O=n(N(E),N(C),P,k,j,L);return L.delete(E),O;case v:if(S)return S.call(E)==S.call(C)}return!1}return Pc=_,Pc}var Tc,ng;function cw(){if(ng)return Tc;ng=1;function e(t,r){for(var n=-1,o=r.length,a=t.length;++n<o;)t[a+n]=r[n];return t}return Tc=e,Tc}var Nc,og;function eD(){if(og)return Nc;og=1;var e=cw(),t=qt();function r(n,o,a){var i=o(n);return t(n)?i:e(i,a(n))}return Nc=r,Nc}var Ac,ag;function tD(){if(ag)return Ac;ag=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,a=0,i=[];++n<o;){var s=t[n];r(s,n,t)&&(i[a++]=s)}return i}return Ac=e,Ac}var Mc,ig;function rD(){if(ig)return Mc;ig=1;function e(){return[]}return Mc=e,Mc}var Oc,sg;function nD(){if(sg)return Oc;sg=1;var e=tD(),t=rD(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(i){return i==null?[]:(i=Object(i),e(o(i),function(s){return n.call(i,s)}))}:t;return Oc=a,Oc}var Ic,cg;function oD(){if(cg)return Ic;cg=1;function e(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}return Ic=e,Ic}var jc,lg;function aD(){if(lg)return jc;lg=1;var e=Hr(),t=Vr(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return jc=n,jc}var Dc,ug;function rf(){if(ug)return Dc;ug=1;var e=aD(),t=Vr(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(i){return t(i)&&n.call(i,"callee")&&!o.call(i,"callee")};return Dc=a,Dc}var Hn={exports:{}},kc,dg;function iD(){if(dg)return kc;dg=1;function e(){return!1}return kc=e,kc}Hn.exports;var fg;function lw(){return fg||(fg=1,function(e,t){var r=Zt(),n=iD(),o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?r.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||n;e.exports=l}(Hn,Hn.exports)),Hn.exports}var $c,pg;function nf(){if(pg)return $c;pg=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var a=typeof n;return o=o??e,!!o&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return $c=r,$c}var Lc,mg;function of(){if(mg)return Lc;mg=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Lc=t,Lc}var Fc,hg;function sD(){if(hg)return Fc;hg=1;var e=Hr(),t=of(),r=Vr(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",c="[object Function]",l="[object Map]",p="[object Number]",d="[object Object]",m="[object RegExp]",b="[object Set]",g="[object String]",h="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",S="[object Int8Array]",_="[object Int16Array]",E="[object Int32Array]",C="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",k="[object Uint32Array]",j={};j[x]=j[w]=j[S]=j[_]=j[E]=j[C]=j[A]=j[P]=j[k]=!0,j[n]=j[o]=j[v]=j[a]=j[y]=j[i]=j[s]=j[c]=j[l]=j[p]=j[d]=j[m]=j[b]=j[g]=j[h]=!1;function L(N){return r(N)&&t(N.length)&&!!j[e(N)]}return Fc=L,Fc}var Bc,gg;function uw(){if(gg)return Bc;gg=1;function e(t){return function(r){return t(r)}}return Bc=e,Bc}var Vn={exports:{}};Vn.exports;var vg;function cD(){return vg||(vg=1,function(e,t){var r=$x(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s}(Vn,Vn.exports)),Vn.exports}var zc,bg;function dw(){if(bg)return zc;bg=1;var e=sD(),t=uw(),r=cD(),n=r&&r.isTypedArray,o=n?t(n):e;return zc=o,zc}var qc,yg;function lD(){if(yg)return qc;yg=1;var e=oD(),t=rf(),r=qt(),n=lw(),o=nf(),a=dw(),i=Object.prototype,s=i.hasOwnProperty;function c(l,p){var d=r(l),m=!d&&t(l),b=!d&&!m&&n(l),g=!d&&!m&&!b&&a(l),h=d||m||b||g,v=h?e(l.length,String):[],y=v.length;for(var x in l)(p||s.call(l,x))&&!(h&&(x=="length"||b&&(x=="offset"||x=="parent")||g&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||o(x,y)))&&v.push(x);return v}return qc=c,qc}var Hc,xg;function uD(){if(xg)return Hc;xg=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return Hc=t,Hc}var Vc,wg;function dD(){if(wg)return Vc;wg=1;function e(t,r){return function(n){return t(r(n))}}return Vc=e,Vc}var Gc,Sg;function fD(){if(Sg)return Gc;Sg=1;var e=dD(),t=e(Object.keys,Object);return Gc=t,Gc}var Wc,Cg;function pD(){if(Cg)return Wc;Cg=1;var e=uD(),t=fD(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!e(a))return t(a);var i=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&i.push(s);return i}return Wc=o,Wc}var Uc,_g;function bi(){if(_g)return Uc;_g=1;var e=Kd(),t=of();function r(n){return n!=null&&t(n.length)&&!e(n)}return Uc=r,Uc}var Kc,Rg;function af(){if(Rg)return Kc;Rg=1;var e=lD(),t=pD(),r=bi();function n(o){return r(o)?e(o):t(o)}return Kc=n,Kc}var Yc,Eg;function mD(){if(Eg)return Yc;Eg=1;var e=eD(),t=nD(),r=af();function n(o){return e(o,r,t)}return Yc=n,Yc}var Xc,Pg;function hD(){if(Pg)return Xc;Pg=1;var e=mD(),t=1,r=Object.prototype,n=r.hasOwnProperty;function o(a,i,s,c,l,p){var d=s&t,m=e(a),b=m.length,g=e(i),h=g.length;if(b!=h&&!d)return!1;for(var v=b;v--;){var y=m[v];if(!(d?y in i:n.call(i,y)))return!1}var x=p.get(a),w=p.get(i);if(x&&w)return x==i&&w==a;var S=!0;p.set(a,i),p.set(i,a);for(var _=d;++v<b;){y=m[v];var E=a[y],C=i[y];if(c)var A=d?c(C,E,y,i,a,p):c(E,C,y,a,i,p);if(!(A===void 0?E===C||l(E,C,s,c,p):A)){S=!1;break}_||(_=y=="constructor")}if(S&&!_){var P=a.constructor,k=i.constructor;P!=k&&"constructor"in a&&"constructor"in i&&!(typeof P=="function"&&P instanceof P&&typeof k=="function"&&k instanceof k)&&(S=!1)}return p.delete(a),p.delete(i),S}return Xc=o,Xc}var Zc,Tg;function gD(){if(Tg)return Zc;Tg=1;var e=Gr(),t=Zt(),r=e(t,"DataView");return Zc=r,Zc}var Jc,Ng;function vD(){if(Ng)return Jc;Ng=1;var e=Gr(),t=Zt(),r=e(t,"Promise");return Jc=r,Jc}var Qc,Ag;function fw(){if(Ag)return Qc;Ag=1;var e=Gr(),t=Zt(),r=e(t,"Set");return Qc=r,Qc}var el,Mg;function bD(){if(Mg)return el;Mg=1;var e=Gr(),t=Zt(),r=e(t,"WeakMap");return el=r,el}var tl,Og;function yD(){if(Og)return tl;Og=1;var e=gD(),t=Xd(),r=vD(),n=fw(),o=bD(),a=Hr(),i=Lx(),s="[object Map]",c="[object Object]",l="[object Promise]",p="[object Set]",d="[object WeakMap]",m="[object DataView]",b=i(e),g=i(t),h=i(r),v=i(n),y=i(o),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=m||t&&x(new t)!=s||r&&x(r.resolve())!=l||n&&x(new n)!=p||o&&x(new o)!=d)&&(x=function(w){var S=a(w),_=S==c?w.constructor:void 0,E=_?i(_):"";if(E)switch(E){case b:return m;case g:return s;case h:return l;case v:return p;case y:return d}return S}),tl=x,tl}var rl,Ig;function xD(){if(Ig)return rl;Ig=1;var e=ow(),t=sw(),r=Qj(),n=hD(),o=yD(),a=qt(),i=lw(),s=dw(),c=1,l="[object Arguments]",p="[object Array]",d="[object Object]",m=Object.prototype,b=m.hasOwnProperty;function g(h,v,y,x,w,S){var _=a(h),E=a(v),C=_?p:o(h),A=E?p:o(v);C=C==l?d:C,A=A==l?d:A;var P=C==d,k=A==d,j=C==A;if(j&&i(h)){if(!i(v))return!1;_=!0,P=!1}if(j&&!P)return S||(S=new e),_||s(h)?t(h,v,y,x,w,S):r(h,v,C,y,x,w,S);if(!(y&c)){var L=P&&b.call(h,"__wrapped__"),N=k&&b.call(v,"__wrapped__");if(L||N){var D=L?h.value():h,$=N?v.value():v;return S||(S=new e),w(D,$,y,x,S)}}return j?(S||(S=new e),n(h,v,y,x,w,S)):!1}return rl=g,rl}var nl,jg;function pw(){if(jg)return nl;jg=1;var e=xD(),t=Vr();function r(n,o,a,i,s){return n===o?!0:n==null||o==null||!t(n)&&!t(o)?n!==n&&o!==o:e(n,o,a,i,r,s)}return nl=r,nl}var ol,Dg;function wD(){if(Dg)return ol;Dg=1;var e=ow(),t=pw(),r=1,n=2;function o(a,i,s,c){var l=s.length,p=l,d=!c;if(a==null)return!p;for(a=Object(a);l--;){var m=s[l];if(d&&m[2]?m[1]!==a[m[0]]:!(m[0]in a))return!1}for(;++l<p;){m=s[l];var b=m[0],g=a[b],h=m[1];if(d&&m[2]){if(g===void 0&&!(b in a))return!1}else{var v=new e;if(c)var y=c(g,h,b,a,i,v);if(!(y===void 0?t(h,g,r|n,c,v):y))return!1}}return!0}return ol=o,ol}var al,kg;function mw(){if(kg)return al;kg=1;var e=Sr();function t(r){return r===r&&!e(r)}return al=t,al}var il,$g;function SD(){if($g)return il;$g=1;var e=mw(),t=af();function r(n){for(var o=t(n),a=o.length;a--;){var i=o[a],s=n[i];o[a]=[i,s,e(s)]}return o}return il=r,il}var sl,Lg;function hw(){if(Lg)return sl;Lg=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return sl=e,sl}var cl,Fg;function CD(){if(Fg)return cl;Fg=1;var e=wD(),t=SD(),r=hw();function n(o){var a=t(o);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(i){return i===o||e(i,o,a)}}return cl=n,cl}var ll,Bg;function _D(){if(Bg)return ll;Bg=1;function e(t,r){return t!=null&&r in Object(t)}return ll=e,ll}var ul,zg;function RD(){if(zg)return ul;zg=1;var e=zx(),t=rf(),r=qt(),n=nf(),o=of(),a=gi();function i(s,c,l){c=e(c,s);for(var p=-1,d=c.length,m=!1;++p<d;){var b=a(c[p]);if(!(m=s!=null&&l(s,b)))break;s=s[b]}return m||++p!=d?m:(d=s==null?0:s.length,!!d&&o(d)&&n(b,d)&&(r(s)||t(s)))}return ul=i,ul}var dl,qg;function ED(){if(qg)return dl;qg=1;var e=_D(),t=RD();function r(n,o){return n!=null&&t(n,o,e)}return dl=r,dl}var fl,Hg;function PD(){if(Hg)return fl;Hg=1;var e=pw(),t=qx(),r=ED(),n=Ud(),o=mw(),a=hw(),i=gi(),s=1,c=2;function l(p,d){return n(p)&&o(d)?a(i(p),d):function(m){var b=t(m,p);return b===void 0&&b===d?r(m,p):e(d,b,s|c)}}return fl=l,fl}var pl,Vg;function yi(){if(Vg)return pl;Vg=1;function e(t){return t}return pl=e,pl}var ml,Gg;function TD(){if(Gg)return ml;Gg=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ml=e,ml}var hl,Wg;function ND(){if(Wg)return hl;Wg=1;var e=Jd();function t(r){return function(n){return e(n,r)}}return hl=t,hl}var gl,Ug;function AD(){if(Ug)return gl;Ug=1;var e=TD(),t=ND(),r=Ud(),n=gi();function o(a){return r(a)?e(n(a)):t(a)}return gl=o,gl}var vl,Kg;function gw(){if(Kg)return vl;Kg=1;var e=CD(),t=PD(),r=yi(),n=qt(),o=AD();function a(i){return typeof i=="function"?i:i==null?r:typeof i=="object"?n(i)?t(i[0],i[1]):e(i):o(i)}return vl=a,vl}var bl,Yg;function MD(){if(Yg)return bl;Yg=1;function e(t,r,n,o){for(var a=t.length,i=n+(o?1:-1);o?i--:++i<a;)if(r(t[i],i,t))return i;return-1}return bl=e,bl}var yl,Xg;function OD(){if(Xg)return yl;Xg=1;function e(t){return t!==t}return yl=e,yl}var xl,Zg;function ID(){if(Zg)return xl;Zg=1;function e(t,r,n){for(var o=n-1,a=t.length;++o<a;)if(t[o]===r)return o;return-1}return xl=e,xl}var wl,Jg;function jD(){if(Jg)return wl;Jg=1;var e=MD(),t=OD(),r=ID();function n(o,a,i){return a===a?r(o,a,i):e(o,t,i)}return wl=n,wl}var Sl,Qg;function DD(){if(Qg)return Sl;Qg=1;var e=jD();function t(r,n){var o=r==null?0:r.length;return!!o&&e(r,n,0)>-1}return Sl=t,Sl}var Cl,ev;function kD(){if(ev)return Cl;ev=1;function e(t,r,n){for(var o=-1,a=t==null?0:t.length;++o<a;)if(n(r,t[o]))return!0;return!1}return Cl=e,Cl}var _l,tv;function $D(){if(tv)return _l;tv=1;function e(){}return _l=e,_l}var Rl,rv;function LD(){if(rv)return Rl;rv=1;var e=fw(),t=$D(),r=tf(),n=1/0,o=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Rl=o,Rl}var El,nv;function FD(){if(nv)return El;nv=1;var e=aw(),t=DD(),r=kD(),n=iw(),o=LD(),a=tf(),i=200;function s(c,l,p){var d=-1,m=t,b=c.length,g=!0,h=[],v=h;if(p)g=!1,m=r;else if(b>=i){var y=l?null:o(c);if(y)return a(y);g=!1,m=n,v=new e}else v=l?[]:h;e:for(;++d<b;){var x=c[d],w=l?l(x):x;if(x=p||x!==0?x:0,g&&w===w){for(var S=v.length;S--;)if(v[S]===w)continue e;l&&v.push(w),h.push(x)}else m(v,w,p)||(v!==h&&v.push(w),h.push(x))}return h}return El=s,El}var Pl,ov;function BD(){if(ov)return Pl;ov=1;var e=gw(),t=FD();function r(n,o){return n&&n.length?t(n,e(o,2)):[]}return Pl=r,Pl}var zD=BD();const av=Xt(zD);function vw(e,t,r){return t===!0?av(e,r):_a(t)?av(e,t):e}function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}var qD=["ref"];function iv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iv(Object(r),!0).forEach(function(n){xi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yw(n.key),n)}}function VD(e,t,r){return t&&sv(e.prototype,t),r&&sv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GD(e,t,r){return t=Na(t),WD(e,bw()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function WD(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UD(e)}function UD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bw=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Na(e)}function KD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ju(e,t)}function ju(e,t){return ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ju(e,t)}function xi(e,t,r){return t=yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yw(e){var t=YD(e,"string");return ln(t)=="symbol"?t:t+""}function YD(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function XD(e,t){if(e==null)return{};var r=ZD(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function JD(e){return e.value}function QD(e,t){if(R.isValidElement(e))return R.cloneElement(e,t);if(typeof e=="function")return R.createElement(e,t);t.ref;var r=XD(t,qD);return R.createElement(ef,r)}var cv=1,sf=function(e){function t(){var r;HD(this,t);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=GD(this,t,[].concat(o)),xi(r,"lastBoundingBox",{width:-1,height:-1}),r}return KD(t,e),VD(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>cv||Math.abs(o.height-this.lastBoundingBox.height)>cv)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,n&&n(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?nr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var o=this.props,a=o.layout,i=o.align,s=o.verticalAlign,c=o.margin,l=o.chartWidth,p=o.chartHeight,d,m;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(i==="center"&&a==="vertical"){var b=this.getBBoxSnapshot();d={left:((l||0)-b.width)/2}}else d=i==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();m={top:((p||0)-g.height)/2}}else m=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return nr(nr({},d),m)}},{key:"render",value:function(){var n=this,o=this.props,a=o.content,i=o.width,s=o.height,c=o.wrapperStyle,l=o.payloadUniqBy,p=o.payload,d=nr(nr({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return R.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(b){n.wrapperNode=b}},QD(a,nr(nr({},this.props),{},{payload:vw(p,l,JD)})))}}],[{key:"getWithHeight",value:function(n,o){var a=nr(nr({},this.defaultProps),n.props),i=a.layout;return i==="vertical"&&Dt(n.props.height)?{height:n.props.height}:i==="horizontal"?{width:n.props.width||o}:null}}])}(R.PureComponent);xi(sf,"displayName","Legend");xi(sf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Tl,lv;function ek(){if(lv)return Tl;lv=1;var e=Co(),t=rf(),r=qt(),n=e?e.isConcatSpreadable:void 0;function o(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Tl=o,Tl}var Nl,uv;function tk(){if(uv)return Nl;uv=1;var e=cw(),t=ek();function r(n,o,a,i,s){var c=-1,l=n.length;for(a||(a=t),s||(s=[]);++c<l;){var p=n[c];o>0&&a(p)?o>1?r(p,o-1,a,i,s):e(s,p):i||(s[s.length]=p)}return s}return Nl=r,Nl}var Al,dv;function rk(){if(dv)return Al;dv=1;function e(t){return function(r,n,o){for(var a=-1,i=Object(r),s=o(r),c=s.length;c--;){var l=s[t?c:++a];if(n(i[l],l,i)===!1)break}return r}}return Al=e,Al}var Ml,fv;function nk(){if(fv)return Ml;fv=1;var e=rk(),t=e();return Ml=t,Ml}var Ol,pv;function ok(){if(pv)return Ol;pv=1;var e=nk(),t=af();function r(n,o){return n&&e(n,o,t)}return Ol=r,Ol}var Il,mv;function ak(){if(mv)return Il;mv=1;var e=bi();function t(r,n){return function(o,a){if(o==null)return o;if(!e(o))return r(o,a);for(var i=o.length,s=n?i:-1,c=Object(o);(n?s--:++s<i)&&a(c[s],s,c)!==!1;);return o}}return Il=t,Il}var jl,hv;function ik(){if(hv)return jl;hv=1;var e=ok(),t=ak(),r=t(e);return jl=r,jl}var Dl,gv;function sk(){if(gv)return Dl;gv=1;var e=ik(),t=bi();function r(n,o){var a=-1,i=t(n)?Array(n.length):[];return e(n,function(s,c,l){i[++a]=o(s,c,l)}),i}return Dl=r,Dl}var kl,vv;function ck(){if(vv)return kl;vv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return kl=e,kl}var $l,bv;function lk(){if(bv)return $l;bv=1;var e=_o();function t(r,n){if(r!==n){var o=r!==void 0,a=r===null,i=r===r,s=e(r),c=n!==void 0,l=n===null,p=n===n,d=e(n);if(!l&&!d&&!s&&r>n||s&&c&&p&&!l&&!d||a&&c&&p||!o&&p||!i)return 1;if(!a&&!s&&!d&&r<n||d&&o&&i&&!a&&!s||l&&o&&i||!c&&i||!p)return-1}return 0}return $l=t,$l}var Ll,yv;function uk(){if(yv)return Ll;yv=1;var e=lk();function t(r,n,o){for(var a=-1,i=r.criteria,s=n.criteria,c=i.length,l=o.length;++a<c;){var p=e(i[a],s[a]);if(p){if(a>=l)return p;var d=o[a];return p*(d=="desc"?-1:1)}}return r.index-n.index}return Ll=t,Ll}var Fl,xv;function dk(){if(xv)return Fl;xv=1;var e=Fx(),t=Jd(),r=gw(),n=sk(),o=ck(),a=uw(),i=uk(),s=yi(),c=qt();function l(p,d,m){d.length?d=e(d,function(h){return c(h)?function(v){return t(v,h.length===1?h[0]:h)}:h}):d=[s];var b=-1;d=e(d,a(r));var g=n(p,function(h,v,y){var x=e(d,function(w){return w(h)});return{criteria:x,index:++b,value:h}});return o(g,function(h,v){return i(h,v,m)})}return Fl=l,Fl}var Bl,wv;function fk(){if(wv)return Bl;wv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Bl=e,Bl}var zl,Sv;function pk(){if(Sv)return zl;Sv=1;var e=fk(),t=Math.max;function r(n,o,a){return o=t(o===void 0?n.length-1:o,0),function(){for(var i=arguments,s=-1,c=t(i.length-o,0),l=Array(c);++s<c;)l[s]=i[o+s];s=-1;for(var p=Array(o+1);++s<o;)p[s]=i[s];return p[o]=a(l),e(n,this,p)}}return zl=r,zl}var ql,Cv;function mk(){if(Cv)return ql;Cv=1;function e(t){return function(){return t}}return ql=e,ql}var Hl,_v;function hk(){if(_v)return Hl;_v=1;var e=Gr(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Hl=t,Hl}var Vl,Rv;function gk(){if(Rv)return Vl;Rv=1;var e=mk(),t=hk(),r=yi(),n=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Vl=n,Vl}var Gl,Ev;function vk(){if(Ev)return Gl;Ev=1;var e=800,t=16,r=Date.now;function n(o){var a=0,i=0;return function(){var s=r(),c=t-(s-i);if(i=s,c>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return Gl=n,Gl}var Wl,Pv;function bk(){if(Pv)return Wl;Pv=1;var e=gk(),t=vk(),r=t(e);return Wl=r,Wl}var Ul,Tv;function yk(){if(Tv)return Ul;Tv=1;var e=yi(),t=pk(),r=bk();function n(o,a){return r(t(o,a,e),o+"")}return Ul=n,Ul}var Kl,Nv;function xk(){if(Nv)return Kl;Nv=1;var e=Yd(),t=bi(),r=nf(),n=Sr();function o(a,i,s){if(!n(s))return!1;var c=typeof i;return(c=="number"?t(s)&&r(i,s.length):c=="string"&&i in s)?e(s[i],a):!1}return Kl=o,Kl}var Yl,Av;function wk(){if(Av)return Yl;Av=1;var e=tk(),t=dk(),r=yk(),n=xk(),o=r(function(a,i){if(a==null)return[];var s=i.length;return s>1&&n(a,i[0],i[1])?i=[]:s>2&&n(i[0],i[1],i[2])&&(i=[i[0]]),t(a,e(i,1),[])});return Yl=o,Yl}var Sk=wk();const Ck=Xt(Sk);function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Du.apply(this,arguments)}function _k(e,t){return Tk(e)||Pk(e,t)||Ek(e,t)||Rk()}function Rk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
205
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ek(e,t){if(e){if(typeof e=="string")return Mv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mv(e,t)}}function Mv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(p){l=!0,o=p}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function Tk(e){if(Array.isArray(e))return e}function Ov(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ov(Object(r),!0).forEach(function(n){Nk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ov(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nk(e,t,r){return t=Ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ak(e){var t=Mk(e,"string");return no(t)=="symbol"?t:t+""}function Mk(e,t){if(no(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(no(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ok(e){return Array.isArray(e)&&Ra(e[0])&&Ra(e[1])?e.join(" ~ "):e}var Ik=function(t){var r=t.separator,n=r===void 0?" : ":r,o=t.contentStyle,a=o===void 0?{}:o,i=t.itemStyle,s=i===void 0?{}:i,c=t.labelStyle,l=c===void 0?{}:c,p=t.payload,d=t.formatter,m=t.itemSorter,b=t.wrapperClassName,g=t.labelClassName,h=t.label,v=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,w=function(){if(p&&p.length){var L={padding:0,margin:0},N=(m?Ck(p,m):p).map(function(D,$){if(D.type==="none")return null;var O=Xl({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},s),G=D.formatter||d||Ok,H=D.value,z=D.name,oe=H,Z=z;if(G&&oe!=null&&Z!=null){var te=G(H,z,D,$,p);if(Array.isArray(te)){var F=_k(te,2);oe=F[0],Z=F[1]}else oe=te}return R.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:O},Ra(Z)?R.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,Ra(Z)?R.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,R.createElement("span",{className:"recharts-tooltip-item-value"},oe),R.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return R.createElement("ul",{className:"recharts-tooltip-item-list",style:L},N)}return null},S=Xl({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=Xl({margin:0},l),E=!AI(h),C=E?h:"",A=ar("recharts-default-tooltip",b),P=ar("recharts-tooltip-label",g);E&&v&&p!==void 0&&p!==null&&(C=v(h,p));var k=x?{role:"status","aria-live":"assertive"}:{};return R.createElement("div",Du({className:A,style:S},k),R.createElement("p",{className:P,style:_},R.isValidElement(C)?C:"".concat(C)),w())};function oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}function ta(e,t,r){return t=jk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jk(e){var t=Dk(e,"string");return oo(t)=="symbol"?t:t+""}function Dk(e,t){if(oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $n="recharts-tooltip-wrapper",kk={visibility:"hidden"};function $k(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ar($n,ta(ta(ta(ta({},"".concat($n,"-right"),Dt(r)&&t&&Dt(t.x)&&r>=t.x),"".concat($n,"-left"),Dt(r)&&t&&Dt(t.x)&&r<t.x),"".concat($n,"-bottom"),Dt(n)&&t&&Dt(t.y)&&n>=t.y),"".concat($n,"-top"),Dt(n)&&t&&Dt(t.y)&&n<t.y))}function Iv(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&Dt(a[n]))return a[n];var p=r[n]-s-o,d=r[n]+o;if(t[n])return i[n]?p:d;if(i[n]){var m=p,b=c[n];return m<b?Math.max(d,c[n]):Math.max(p,c[n])}var g=d+s,h=c[n]+l;return g>h?Math.max(p,c[n]):Math.max(d,c[n])}function Lk(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Fk(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,o=e.position,a=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,p,d;return i.height>0&&i.width>0&&r?(p=Iv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:o,reverseDirection:a,tooltipDimension:i.width,viewBox:c,viewBoxDimension:c.width}),d=Iv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:o,reverseDirection:a,tooltipDimension:i.height,viewBox:c,viewBoxDimension:c.height}),l=Lk({translateX:p,translateY:d,useTranslate3d:s})):l=kk,{cssProperties:l,cssClasses:$k({translateX:p,translateY:d,coordinate:r})}}function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}function jv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Dv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jv(Object(r),!0).forEach(function(n){$u(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ww(n.key),n)}}function qk(e,t,r){return t&&zk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hk(e,t,r){return t=Aa(t),Vk(e,xw()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function Vk(e,t){if(t&&(un(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gk(e)}function Gk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xw=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function Wk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ku(e,t)}function ku(e,t){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ku(e,t)}function $u(e,t,r){return t=ww(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ww(e){var t=Uk(e,"string");return un(t)=="symbol"?t:t+""}function Uk(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kv=1,Kk=function(e){function t(){var r;Bk(this,t);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=Hk(this,t,[].concat(o)),$u(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),$u(r,"handleKeyDown",function(i){if(i.key==="Escape"){var s,c,l,p;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(l=(p=r.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&l!==void 0?l:0}})}}),r}return Wk(t,e),qk(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>kv||Math.abs(n.height-this.state.lastBoundingBox.height)>kv)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,l=o.children,p=o.coordinate,d=o.hasPayload,m=o.isAnimationActive,b=o.offset,g=o.position,h=o.reverseDirection,v=o.useTranslate3d,y=o.viewBox,x=o.wrapperStyle,w=Fk({allowEscapeViewBox:i,coordinate:p,offsetTopLeft:b,position:g,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),S=w.cssClasses,_=w.cssProperties,E=Dv(Dv({transition:m&&a?"transform ".concat(s,"ms ").concat(c):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},x);return R.createElement("div",{tabIndex:-1,className:S,style:E,ref:function(A){n.wrapperNode=A}},l)}}])}(R.PureComponent),Yk=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Xk={isSsr:Yk()};function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function $v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Lv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$v(Object(r),!0).forEach(function(n){cf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Cw(n.key),n)}}function Qk(e,t,r){return t&&Jk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function e$(e,t,r){return t=Ma(t),t$(e,Sw()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function t$(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r$(e)}function r$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sw=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function n$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lu(e,t)}function Lu(e,t){return Lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Lu(e,t)}function cf(e,t,r){return t=Cw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cw(e){var t=o$(e,"string");return dn(t)=="symbol"?t:t+""}function o$(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function a$(e){return e.dataKey}function i$(e,t){return R.isValidElement(e)?R.cloneElement(e,t):typeof e=="function"?R.createElement(e,t):R.createElement(Ik,t)}var lf=function(e){function t(){return Zk(this,t),e$(this,t,arguments)}return n$(t,e),Qk(t,[{key:"render",value:function(){var n=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,l=o.content,p=o.coordinate,d=o.filterNull,m=o.isAnimationActive,b=o.offset,g=o.payload,h=o.payloadUniqBy,v=o.position,y=o.reverseDirection,x=o.useTranslate3d,w=o.viewBox,S=o.wrapperStyle,_=g??[];d&&_.length&&(_=vw(g.filter(function(C){return C.value!=null&&(C.hide!==!0||n.props.includeHidden)}),h,a$));var E=_.length>0;return R.createElement(Kk,{allowEscapeViewBox:i,animationDuration:s,animationEasing:c,isAnimationActive:m,active:a,coordinate:p,hasPayload:E,offset:b,position:v,reverseDirection:y,useTranslate3d:x,viewBox:w,wrapperStyle:S},i$(l,Lv(Lv({},this.props),{},{payload:_})))}}])}(R.PureComponent);cf(lf,"displayName","Tooltip");cf(lf,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Xk.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Zl,Fv;function s$(){if(Fv)return Zl;Fv=1;var e=Zt(),t=function(){return e.Date.now()};return Zl=t,Zl}var Jl,Bv;function c$(){if(Bv)return Jl;Bv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Jl=t,Jl}var Ql,zv;function l$(){if(zv)return Ql;zv=1;var e=c$(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Ql=r,Ql}var eu,qv;function u$(){if(qv)return eu;qv=1;var e=l$(),t=Sr(),r=_o(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function c(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var p=typeof l.valueOf=="function"?l.valueOf():l;l=t(p)?p+"":p}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=a.test(l);return d||i.test(l)?s(l.slice(2),d?2:8):o.test(l)?n:+l}return eu=c,eu}var tu,Hv;function d$(){if(Hv)return tu;Hv=1;var e=Sr(),t=s$(),r=u$(),n="Expected a function",o=Math.max,a=Math.min;function i(s,c,l){var p,d,m,b,g,h,v=0,y=!1,x=!1,w=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(l)&&(y=!!l.leading,x="maxWait"in l,m=x?o(r(l.maxWait)||0,c):m,w="trailing"in l?!!l.trailing:w);function S(N){var D=p,$=d;return p=d=void 0,v=N,b=s.apply($,D),b}function _(N){return v=N,g=setTimeout(A,c),y?S(N):b}function E(N){var D=N-h,$=N-v,O=c-D;return x?a(O,m-$):O}function C(N){var D=N-h,$=N-v;return h===void 0||D>=c||D<0||x&&$>=m}function A(){var N=t();if(C(N))return P(N);g=setTimeout(A,E(N))}function P(N){return g=void 0,w&&p?S(N):(p=d=void 0,b)}function k(){g!==void 0&&clearTimeout(g),v=0,p=h=d=g=void 0}function j(){return g===void 0?b:P(t())}function L(){var N=t(),D=C(N);if(p=arguments,d=this,h=N,D){if(g===void 0)return _(h);if(x)return clearTimeout(g),g=setTimeout(A,c),S(h)}return g===void 0&&(g=setTimeout(A,c)),b}return L.cancel=k,L.flush=j,L}return tu=i,tu}var ru,Vv;function f$(){if(Vv)return ru;Vv=1;var e=d$(),t=Sr(),r="Expected a function";function n(o,a,i){var s=!0,c=!0;if(typeof o!="function")throw new TypeError(r);return t(i)&&(s="leading"in i?!!i.leading:s,c="trailing"in i?!!i.trailing:c),e(o,a,{leading:s,maxWait:a,trailing:c})}return ru=n,ru}var p$=f$();const m$=Xt(p$);function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function Gv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ra(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gv(Object(r),!0).forEach(function(n){h$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h$(e,t,r){return t=g$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g$(e){var t=v$(e,"string");return ao(t)=="symbol"?t:t+""}function v$(e,t){if(ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b$(e,t){return S$(e)||w$(e,t)||x$(e,t)||y$()}function y$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
206
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x$(e,t){if(e){if(typeof e=="string")return Wv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wv(e,t)}}function Wv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(p){l=!0,o=p}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function S$(e){if(Array.isArray(e))return e}var C$=R.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,o=n===void 0?{width:-1,height:-1}:n,a=e.width,i=a===void 0?"100%":a,s=e.height,c=s===void 0?"100%":s,l=e.minWidth,p=l===void 0?0:l,d=e.minHeight,m=e.maxHeight,b=e.children,g=e.debounce,h=g===void 0?0:g,v=e.id,y=e.className,x=e.onResize,w=e.style,S=w===void 0?{}:w,_=R.useRef(null),E=R.useRef();E.current=x,R.useImperativeHandle(t,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var C=R.useState({containerWidth:o.width,containerHeight:o.height}),A=b$(C,2),P=A[0],k=A[1],j=R.useCallback(function(N,D){k(function($){var O=Math.round(N),G=Math.round(D);return $.containerWidth===O&&$.containerHeight===G?$:{containerWidth:O,containerHeight:G}})},[]);R.useEffect(function(){var N=function(z){var oe,Z=z[0].contentRect,te=Z.width,F=Z.height;j(te,F),(oe=E.current)===null||oe===void 0||oe.call(E,te,F)};h>0&&(N=m$(N,h,{trailing:!0,leading:!1}));var D=new ResizeObserver(N),$=_.current.getBoundingClientRect(),O=$.width,G=$.height;return j(O,G),D.observe(_.current),function(){D.disconnect()}},[j,h]);var L=R.useMemo(function(){var N=P.containerWidth,D=P.containerHeight;if(N<0||D<0)return null;pa(Qo(i)||Qo(c),`The width(%s) and height(%s) are both fixed numbers,
|
|
207
|
-
maybe you don't need to use a ResponsiveContainer.`,i,c),pa(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=Qo(i)?N:i,O=Qo(c)?D:c;r&&r>0&&($?O=$/r:O&&($=O*r),m&&O>m&&(O=m)),pa($>0||O>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
208
|
-
please check the style of container, or the props width(%s) and height(%s),
|
|
209
|
-
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
210
|
-
height and width.`,$,O,i,c,p,d,r);var G=!Array.isArray(b)&&UI(b.type).endsWith("Chart");return R.Children.map(b,function(H){return R.isValidElement(H)?R.cloneElement(H,ra({width:$,height:O},G?{style:ra({height:"100%",width:"100%",maxHeight:O,maxWidth:$},H.props.style)}:{})):H})},[r,b,c,m,d,p,P,i]);return R.createElement("div",{id:v?"".concat(v):void 0,className:ar("recharts-responsive-container",y),style:ra(ra({},S),{},{width:i,height:c,minWidth:p,minHeight:d,maxHeight:m}),ref:_},L)});const _$={light:"",dark:".dark"},_w=f.createContext(null);function Rw(){const e=f.useContext(_w);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const uf=f.forwardRef(({id:e,className:t,children:r,config:n,...o},a)=>{const i=f.useId(),s=`chart-${e||i.replace(/:/g,"")}`;return u.jsx(_w.Provider,{value:{config:n},children:u.jsxs("div",{"data-chart":s,ref:a,className:M("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[u.jsx(Ew,{id:s,config:n}),u.jsx(C$,{children:r})]})})});uf.displayName="Chart";const Ew=({id:e,config:t})=>{const r=Object.entries(t).filter(([,n])=>n.theme||n.color);return r.length?u.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(_$).map(([n,o])=>`
|
|
211
|
-
${o} [data-chart=${e}] {
|
|
212
|
-
${r.map(([a,i])=>{var c;const s=((c=i.theme)==null?void 0:c[n])||i.color;return s?` --color-${a}: ${s};`:null}).join(`
|
|
213
|
-
`)}
|
|
214
|
-
}
|
|
215
|
-
`).join(`
|
|
216
|
-
`)}}):null},R$=lf,Pw=f.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:c,formatter:l,color:p,nameKey:d,labelKey:m},b)=>{const{config:g}=Rw(),h=f.useMemo(()=>{var _;if(o||!(t!=null&&t.length))return null;const[y]=t,x=`${m||(y==null?void 0:y.dataKey)||(y==null?void 0:y.name)||"value"}`,w=Fu(g,y,x),S=!m&&typeof i=="string"?((_=g[i])==null?void 0:_.label)||i:w==null?void 0:w.label;return s?u.jsx("div",{className:M("font-medium",c),children:s(S,t)}):S?u.jsx("div",{className:M("font-medium",c),children:S}):null},[i,s,t,o,c,g,m]);if(!e||!(t!=null&&t.length))return null;const v=t.length===1&&n!=="dot";return u.jsxs("div",{ref:b,className:M("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[v?null:h,u.jsx("div",{className:"grid gap-1.5",children:t.map((y,x)=>{const w=`${d||y.name||y.dataKey||"value"}`,S=Fu(g,y,w),_=p||y.payload.fill||y.color;return u.jsx("div",{className:M("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:l&&(y==null?void 0:y.value)!==void 0&&y.name?l(y.value,y.name,y,x,y.payload):u.jsxs(u.Fragment,{children:[S!=null&&S.icon?u.jsx(S.icon,{}):!a&&u.jsx("div",{className:M("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":v&&n==="dashed"}),style:{"--color-bg":_,"--color-border":_}}),u.jsxs("div",{className:M("flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[u.jsxs("div",{className:"grid gap-1.5",children:[v?h:null,u.jsx("span",{className:"text-muted-foreground",children:(S==null?void 0:S.label)||y.name})]}),y.value&&u.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});Pw.displayName="ChartTooltip";const E$=sf,Tw=f.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:o},a)=>{const{config:i}=Rw();return r!=null&&r.length?u.jsx("div",{ref:a,className:M("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.map(s=>{const c=`${o||s.dataKey||"value"}`,l=Fu(i,s,c);return u.jsxs("div",{className:M("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[l!=null&&l.icon&&!t?u.jsx(l.icon,{}):u.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),l==null?void 0:l.label]},s.value)})}):null});Tw.displayName="ChartLegend";function Fu(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=r;return r in t&&typeof t[r]=="string"?o=t[r]:n&&r in n&&typeof n[r]=="string"&&(o=n[r]),o in e?e[o]:e[r]}function Rn(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])}function Ro(e){const[t,r]=f.useState(void 0);return He(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=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;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var df="Checkbox",[P$,d3]=De(df),[T$,N$]=P$(df),Nw=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:c="on",onCheckedChange:l,form:p,...d}=e,[m,b]=f.useState(null),g=de(t,S=>b(S)),h=f.useRef(!1),v=m?p||!!m.closest("form"):!0,[y=!1,x]=$e({prop:o,defaultProp:a,onChange:l}),w=f.useRef(y);return f.useEffect(()=>{const S=m==null?void 0:m.form;if(S){const _=()=>x(w.current);return S.addEventListener("reset",_),()=>S.removeEventListener("reset",_)}},[m,x]),u.jsxs(T$,{scope:r,state:y,disabled:s,children:[u.jsx(X.button,{type:"button",role:"checkbox","aria-checked":vr(y)?"mixed":y,"aria-required":i,"data-state":Ow(y),"data-disabled":s?"":void 0,disabled:s,value:c,...d,ref:g,onKeyDown:B(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:B(e.onClick,S=>{x(_=>vr(_)?!0:!_),v&&(h.current=S.isPropagationStopped(),h.current||S.stopPropagation())})}),v&&u.jsx(A$,{control:m,bubbles:!h.current,name:n,value:c,checked:y,required:i,disabled:s,form:p,style:{transform:"translateX(-100%)"},defaultChecked:vr(a)?!1:a})]})});Nw.displayName=df;var Aw="CheckboxIndicator",Mw=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,a=N$(Aw,r);return u.jsx(Le,{present:n||vr(a.state)||a.state===!0,children:u.jsx(X.span,{"data-state":Ow(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Mw.displayName=Aw;var A$=e=>{const{control:t,checked:r,bubbles:n=!0,defaultChecked:o,...a}=e,i=f.useRef(null),s=Rn(r),c=Ro(t);f.useEffect(()=>{const p=i.current,d=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(d,"checked").set;if(s!==r&&b){const g=new Event("click",{bubbles:n});p.indeterminate=vr(r),b.call(p,vr(r)?!1:r),p.dispatchEvent(g)}},[s,r,n]);const l=f.useRef(vr(r)?!1:r);return u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??l.current,...a,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function vr(e){return e==="indeterminate"}function Ow(e){return vr(e)?"indeterminate":e?"checked":"unchecked"}var Iw=Nw,M$=Mw;const jw=f.forwardRef(({className:e,...t},r)=>u.jsx(Iw,{ref:r,className:M("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:u.jsx(M$,{className:M("flex items-center justify-center text-current"),children:u.jsx(bn,{className:"h-4 w-4"})})}));jw.displayName=Iw.displayName;const O$=Db,I$=wd,j$=Cd,D$=["top","right","bottom","left"],yr=Math.min,wt=Math.max,Oa=Math.round,na=Math.floor,Kt=e=>({x:e,y:e}),k$={left:"right",right:"left",bottom:"top",top:"bottom"},$$={start:"end",end:"start"};function Bu(e,t,r){return wt(e,yr(t,r))}function ir(e,t){return typeof e=="function"?e(t):e}function sr(e){return e.split("-")[0]}function En(e){return e.split("-")[1]}function ff(e){return e==="x"?"y":"x"}function pf(e){return e==="y"?"height":"width"}function xr(e){return["top","bottom"].includes(sr(e))?"y":"x"}function mf(e){return ff(xr(e))}function L$(e,t,r){r===void 0&&(r=!1);const n=En(e),o=mf(e),a=pf(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Ia(i)),[i,Ia(i)]}function F$(e){const t=Ia(e);return[zu(e),t,zu(t)]}function zu(e){return e.replace(/start|end/g,t=>$$[t])}function B$(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:i;default:return[]}}function z$(e,t,r,n){const o=En(e);let a=B$(sr(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(zu)))),a}function Ia(e){return e.replace(/left|right|bottom|top/g,t=>k$[t])}function q$(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dw(e){return typeof e!="number"?q$(e):{top:e,right:e,bottom:e,left:e}}function ja(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Uv(e,t,r){let{reference:n,floating:o}=e;const a=xr(t),i=mf(t),s=pf(i),c=sr(t),l=a==="y",p=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,m=n[s]/2-o[s]/2;let b;switch(c){case"top":b={x:p,y:n.y-o.height};break;case"bottom":b={x:p,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:d};break;case"left":b={x:n.x-o.width,y:d};break;default:b={x:n.x,y:n.y}}switch(En(t)){case"start":b[i]-=m*(r&&l?-1:1);break;case"end":b[i]+=m*(r&&l?-1:1);break}return b}const H$=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,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:p,y:d}=Uv(l,n,c),m=n,b={},g=0;for(let h=0;h<s.length;h++){const{name:v,fn:y}=s[h],{x,y:w,data:S,reset:_}=await y({x:p,y:d,initialPlacement:n,placement:m,strategy:o,middlewareData:b,rects:l,platform:i,elements:{reference:e,floating:t}});p=x??p,d=w??d,b={...b,[v]:{...b[v],...S}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(l=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:p,y:d}=Uv(l,m,c)),h=-1)}return{x:p,y:d,placement:m,strategy:o,middlewareData:b}};async function io(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:m=!1,padding:b=0}=ir(t,e),g=Dw(b),v=s[m?d==="floating"?"reference":"floating":d],y=ja(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:p,strategy:c})),x=d==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},_=ja(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-_.top+g.top)/S.y,bottom:(_.bottom-y.bottom+g.bottom)/S.y,left:(y.left-_.left+g.left)/S.x,right:(_.right-y.right+g.right)/S.x}}const V$=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:p=0}=ir(e,t)||{};if(l==null)return{};const d=Dw(p),m={x:r,y:n},b=mf(o),g=pf(b),h=await i.getDimensions(l),v=b==="y",y=v?"top":"left",x=v?"bottom":"right",w=v?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[b]-m[b]-a.floating[g],_=m[b]-a.reference[b],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let C=E?E[w]:0;(!C||!await(i.isElement==null?void 0:i.isElement(E)))&&(C=s.floating[w]||a.floating[g]);const A=S/2-_/2,P=C/2-h[g]/2-1,k=yr(d[y],P),j=yr(d[x],P),L=k,N=C-h[g]-j,D=C/2-h[g]/2+A,$=Bu(L,D,N),O=!c.arrow&&En(o)!=null&&D!==$&&a.reference[g]/2-(D<L?k:j)-h[g]/2<0,G=O?D<L?D-L:D-N:0;return{[b]:m[b]+G,data:{[b]:$,centerOffset:D-$-G,...O&&{alignmentOffset:G}},reset:O}}}),G$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...v}=ir(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=sr(o),x=xr(s),w=sr(s)===s,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),_=m||(w||!h?[Ia(s)]:F$(s)),E=g!=="none";!m&&E&&_.push(...z$(s,h,g,S));const C=[s,..._],A=await io(t,v),P=[];let k=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&P.push(A[y]),d){const D=L$(o,i,S);P.push(A[D[0]],A[D[1]])}if(k=[...k,{placement:o,overflows:P}],!P.every(D=>D<=0)){var j,L;const D=(((j=a.flip)==null?void 0:j.index)||0)+1,$=C[D];if($)return{data:{index:D,overflows:k},reset:{placement:$}};let O=(L=k.filter(G=>G.overflows[0]<=0).sort((G,H)=>G.overflows[1]-H.overflows[1])[0])==null?void 0:L.placement;if(!O)switch(b){case"bestFit":{var N;const G=(N=k.filter(H=>{if(E){const z=xr(H.placement);return z===x||z==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(z=>z>0).reduce((z,oe)=>z+oe,0)]).sort((H,z)=>H[1]-z[1])[0])==null?void 0:N[0];G&&(O=G);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function Kv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yv(e){return D$.some(t=>e[t]>=0)}const W$=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=ir(e,t);switch(n){case"referenceHidden":{const a=await io(t,{...o,elementContext:"reference"}),i=Kv(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Yv(i)}}}case"escaped":{const a=await io(t,{...o,altBoundary:!0}),i=Kv(a,r.floating);return{data:{escapedOffsets:i,escaped:Yv(i)}}}default:return{}}}}};async function U$(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=sr(r),s=En(r),c=xr(r)==="y",l=["left","top"].includes(i)?-1:1,p=a&&c?-1:1,d=ir(t,e);let{mainAxis:m,crossAxis:b,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(b=s==="end"?g*-1:g),c?{x:b*p,y:m*l}:{x:m*l,y:b*p}}const K$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await U$(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},Y$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...c}=ir(e,t),l={x:r,y:n},p=await io(t,c),d=xr(sr(o)),m=ff(d);let b=l[m],g=l[d];if(a){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=b+p[v],w=b-p[y];b=Bu(x,b,w)}if(i){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",x=g+p[v],w=g-p[y];g=Bu(x,g,w)}const h=s.fn({...t,[m]:b,[d]:g});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[m]:a,[d]:i}}}}}},X$=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ir(e,t),p={x:r,y:n},d=xr(o),m=ff(d);let b=p[m],g=p[d];const h=ir(s,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const w=m==="y"?"height":"width",S=a.reference[m]-a.floating[w]+v.mainAxis,_=a.reference[m]+a.reference[w]-v.mainAxis;b<S?b=S:b>_&&(b=_)}if(l){var y,x;const w=m==="y"?"width":"height",S=["top","left"].includes(sr(o)),_=a.reference[d]-a.floating[w]+(S&&((y=i.offset)==null?void 0:y[d])||0)+(S?0:v.crossAxis),E=a.reference[d]+a.reference[w]+(S?0:((x=i.offset)==null?void 0:x[d])||0)-(S?v.crossAxis:0);g<_?g=_:g>E&&(g=E)}return{[m]:b,[d]:g}}}},Z$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...l}=ir(e,t),p=await io(t,l),d=sr(o),m=En(o),b=xr(o)==="y",{width:g,height:h}=a.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,v=m==="end"?"top":"bottom");const x=h-p.top-p.bottom,w=g-p.left-p.right,S=yr(h-p[v],x),_=yr(g-p[y],w),E=!t.middlewareData.shift;let C=S,A=_;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(C=x),E&&!m){const k=wt(p.left,0),j=wt(p.right,0),L=wt(p.top,0),N=wt(p.bottom,0);b?A=g-2*(k!==0||j!==0?k+j:wt(p.left,p.right)):C=h-2*(L!==0||N!==0?L+N:wt(p.top,p.bottom))}await c({...t,availableWidth:A,availableHeight:C});const P=await i.getDimensions(s.floating);return g!==P.width||h!==P.height?{reset:{rects:!0}}:{}}}};function wi(){return typeof window<"u"}function Pn(e){return kw(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jt(e){var t;return(t=(kw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kw(e){return wi()?e instanceof Node||e instanceof St(e).Node:!1}function Lt(e){return wi()?e instanceof Element||e instanceof St(e).Element:!1}function Yt(e){return wi()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function Xv(e){return!wi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function Eo(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function J$(e){return["table","td","th"].includes(Pn(e))}function Si(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function hf(e){const t=gf(),r=Lt(e)?Ft(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Q$(e){let t=wr(e);for(;Yt(t)&&!fn(t);){if(hf(t))return t;if(Si(t))return null;t=wr(t)}return null}function gf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fn(e){return["html","body","#document"].includes(Pn(e))}function Ft(e){return St(e).getComputedStyle(e)}function Ci(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wr(e){if(Pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xv(e)&&e.host||Jt(e);return Xv(t)?t.host:t}function $w(e){const t=wr(e);return fn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&Eo(t)?t:$w(t)}function so(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=$w(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=St(o);if(a){const s=qu(i);return t.concat(i,i.visualViewport||[],Eo(o)?o:[],s&&r?so(s):[])}return t.concat(o,so(o,[],r))}function qu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lw(e){const t=Ft(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Yt(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=Oa(r)!==a||Oa(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function vf(e){return Lt(e)?e:e.contextElement}function on(e){const t=vf(e);if(!Yt(t))return Kt(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Lw(t);let i=(a?Oa(r.width):r.width)/n,s=(a?Oa(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const eL=Kt(0);function Fw(e){const t=St(e);return!gf()||!t.visualViewport?eL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tL(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==St(e)?!1:t}function Lr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=vf(e);let i=Kt(1);t&&(n?Lt(n)&&(i=on(n)):i=on(e));const s=tL(a,r,n)?Fw(a):Kt(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,p=o.width/i.x,d=o.height/i.y;if(a){const m=St(a),b=n&&Lt(n)?St(n):n;let g=m,h=qu(g);for(;h&&n&&b!==g;){const v=on(h),y=h.getBoundingClientRect(),x=Ft(h),w=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*v.x,S=y.top+(h.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,l*=v.y,p*=v.x,d*=v.y,c+=w,l+=S,g=St(h),h=qu(g)}}return ja({width:p,height:d,x:c,y:l})}function bf(e,t){const r=Ci(e).scrollLeft;return t?t.left+r:Lr(Jt(e)).left+r}function Bw(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:bf(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function rL(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=Jt(n),s=t?Si(t.floating):!1;if(n===i||s&&a)return r;let c={scrollLeft:0,scrollTop:0},l=Kt(1);const p=Kt(0),d=Yt(n);if((d||!d&&!a)&&((Pn(n)!=="body"||Eo(i))&&(c=Ci(n)),Yt(n))){const b=Lr(n);l=on(n),p.x=b.x+n.clientLeft,p.y=b.y+n.clientTop}const m=i&&!d&&!a?Bw(i,c,!0):Kt(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+p.x+m.x,y:r.y*l.y-c.scrollTop*l.y+p.y+m.y}}function nL(e){return Array.from(e.getClientRects())}function oL(e){const t=Jt(e),r=Ci(e),n=e.ownerDocument.body,o=wt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=wt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+bf(e);const s=-r.scrollTop;return Ft(n).direction==="rtl"&&(i+=wt(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}function aL(e,t){const r=St(e),n=Jt(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const l=gf();(!l||l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function iL(e,t){const r=Lr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Yt(e)?on(e):Kt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=n*a.y;return{width:i,height:s,x:c,y:l}}function Zv(e,t,r){let n;if(t==="viewport")n=aL(e,r);else if(t==="document")n=oL(Jt(e));else if(Lt(t))n=iL(t,r);else{const o=Fw(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ja(n)}function zw(e,t){const r=wr(e);return r===t||!Lt(r)||fn(r)?!1:Ft(r).position==="fixed"||zw(r,t)}function sL(e,t){const r=t.get(e);if(r)return r;let n=so(e,[],!1).filter(s=>Lt(s)&&Pn(s)!=="body"),o=null;const a=Ft(e).position==="fixed";let i=a?wr(e):e;for(;Lt(i)&&!fn(i);){const s=Ft(i),c=hf(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Eo(i)&&!c&&zw(e,i))?n=n.filter(p=>p!==i):o=s,i=wr(i)}return t.set(e,n),n}function cL(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?Si(t)?[]:sL(t,this._c):[].concat(r),n],s=i[0],c=i.reduce((l,p)=>{const d=Zv(t,p,o);return l.top=wt(d.top,l.top),l.right=yr(d.right,l.right),l.bottom=yr(d.bottom,l.bottom),l.left=wt(d.left,l.left),l},Zv(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function lL(e){const{width:t,height:r}=Lw(e);return{width:t,height:r}}function uL(e,t,r){const n=Yt(t),o=Jt(t),a=r==="fixed",i=Lr(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=Kt(0);if(n||!n&&!a)if((Pn(t)!=="body"||Eo(o))&&(s=Ci(t)),n){const m=Lr(t,!0,a,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&(c.x=bf(o));const l=o&&!n&&!a?Bw(o,s):Kt(0),p=i.left+s.scrollLeft-c.x-l.x,d=i.top+s.scrollTop-c.y-l.y;return{x:p,y:d,width:i.width,height:i.height}}function nu(e){return Ft(e).position==="static"}function Jv(e,t){if(!Yt(e)||Ft(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Jt(e)===r&&(r=r.ownerDocument.body),r}function qw(e,t){const r=St(e);if(Si(e))return r;if(!Yt(e)){let o=wr(e);for(;o&&!fn(o);){if(Lt(o)&&!nu(o))return o;o=wr(o)}return r}let n=Jv(e,t);for(;n&&J$(n)&&nu(n);)n=Jv(n,t);return n&&fn(n)&&nu(n)&&!hf(n)?r:n||Q$(e)||r}const dL=async function(e){const t=this.getOffsetParent||qw,r=this.getDimensions,n=await r(e.floating);return{reference:uL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function fL(e){return Ft(e).direction==="rtl"}const pL={convertOffsetParentRelativeRectToViewportRelativeRect:rL,getDocumentElement:Jt,getClippingRect:cL,getOffsetParent:qw,getElementRects:dL,getClientRects:nL,getDimensions:lL,getScale:on,isElement:Lt,isRTL:fL};function Hw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mL(e,t){let r=null,n;const o=Jt(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:p,top:d,width:m,height:b}=l;if(s||t(),!m||!b)return;const g=na(d),h=na(o.clientWidth-(p+m)),v=na(o.clientHeight-(d+b)),y=na(p),w={rootMargin:-g+"px "+-h+"px "+-v+"px "+-y+"px",threshold:wt(0,yr(1,c))||1};let S=!0;function _(E){const C=E[0].intersectionRatio;if(C!==c){if(!S)return i();C?i(!1,C):n=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!Hw(l,e.getBoundingClientRect())&&i(),S=!1}try{r=new IntersectionObserver(_,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,w)}r.observe(e)}return i(!0),a}function hL(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=vf(e),p=o||a?[...l?so(l):[],...so(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const d=l&&s?mL(l,r):null;let m=-1,b=null;i&&(b=new ResizeObserver(y=>{let[x]=y;x&&x.target===l&&b&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=b)==null||w.observe(t)})),r()}),l&&!c&&b.observe(l),b.observe(t));let g,h=c?Lr(e):null;c&&v();function v(){const y=Lr(e);h&&!Hw(h,y)&&r(),h=y,g=requestAnimationFrame(v)}return r(),()=>{var y;p.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),d==null||d(),(y=b)==null||y.disconnect(),b=null,c&&cancelAnimationFrame(g)}}const gL=K$,vL=Y$,bL=G$,yL=Z$,xL=W$,Qv=V$,wL=X$,SL=(e,t,r)=>{const n=new Map,o={platform:pL,...r},a={...o.platform,_c:n};return H$(e,t,{...o,platform:a})};var ma=typeof document<"u"?R.useLayoutEffect:R.useEffect;function Da(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Da(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Da(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Vw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eb(e,t){const r=Vw(e);return Math.round(t*r)/r}function ou(e){const t=f.useRef(e);return ma(()=>{t.current=e}),t}function CL(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[p,d]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,b]=f.useState(n);Da(m,n)||b(n);const[g,h]=f.useState(null),[v,y]=f.useState(null),x=f.useCallback(H=>{H!==E.current&&(E.current=H,h(H))},[]),w=f.useCallback(H=>{H!==C.current&&(C.current=H,y(H))},[]),S=a||g,_=i||v,E=f.useRef(null),C=f.useRef(null),A=f.useRef(p),P=c!=null,k=ou(c),j=ou(o),L=ou(l),N=f.useCallback(()=>{if(!E.current||!C.current)return;const H={placement:t,strategy:r,middleware:m};j.current&&(H.platform=j.current),SL(E.current,C.current,H).then(z=>{const oe={...z,isPositioned:L.current!==!1};D.current&&!Da(A.current,oe)&&(A.current=oe,go.flushSync(()=>{d(oe)}))})},[m,t,r,j,L]);ma(()=>{l===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[l]);const D=f.useRef(!1);ma(()=>(D.current=!0,()=>{D.current=!1}),[]),ma(()=>{if(S&&(E.current=S),_&&(C.current=_),S&&_){if(k.current)return k.current(S,_,N);N()}},[S,_,N,k,P]);const $=f.useMemo(()=>({reference:E,floating:C,setReference:x,setFloating:w}),[x,w]),O=f.useMemo(()=>({reference:S,floating:_}),[S,_]),G=f.useMemo(()=>{const H={position:r,left:0,top:0};if(!O.floating)return H;const z=eb(O.floating,p.x),oe=eb(O.floating,p.y);return s?{...H,transform:"translate("+z+"px, "+oe+"px)",...Vw(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:z,top:oe}},[r,s,O.floating,p.x,p.y]);return f.useMemo(()=>({...p,update:N,refs:$,elements:O,floatingStyles:G}),[p,N,$,O,G])}const _L=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Qv({element:n.current,padding:o}).fn(r):{}:n?Qv({element:n,padding:o}).fn(r):{}}}},RL=(e,t)=>({...gL(e),options:[e,t]}),EL=(e,t)=>({...vL(e),options:[e,t]}),PL=(e,t)=>({...wL(e),options:[e,t]}),TL=(e,t)=>({...bL(e),options:[e,t]}),NL=(e,t)=>({...yL(e),options:[e,t]}),AL=(e,t)=>({...xL(e),options:[e,t]}),ML=(e,t)=>({..._L(e),options:[e,t]});var OL="Arrow",Gw=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return u.jsx(X.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gw.displayName=OL;var IL=Gw,yf="Popper",[Ww,Qt]=De(yf),[jL,Uw]=Ww(yf),Kw=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return u.jsx(jL,{scope:t,anchor:n,onAnchorChange:o,children:r})};Kw.displayName=yf;var Yw="PopperAnchor",Xw=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Uw(Yw,r),i=f.useRef(null),s=de(t,i);return f.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:u.jsx(X.div,{...o,ref:s})});Xw.displayName=Yw;var xf="PopperContent",[DL,kL]=Ww(xf),Zw=f.forwardRef((e,t)=>{var q,U,re,J,ne,V;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:p=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:b="optimized",onPlaced:g,...h}=e,v=Uw(xf,r),[y,x]=f.useState(null),w=de(t,ae=>x(ae)),[S,_]=f.useState(null),E=Ro(S),C=(E==null?void 0:E.width)??0,A=(E==null?void 0:E.height)??0,P=n+(a!=="center"?"-"+a:""),k=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},j=Array.isArray(l)?l:[l],L=j.length>0,N={padding:k,boundary:j.filter(LL),altBoundary:L},{refs:D,floatingStyles:$,placement:O,isPositioned:G,middlewareData:H}=CL({strategy:"fixed",placement:P,whileElementsMounted:(...ae)=>hL(...ae,{animationFrame:b==="always"}),elements:{reference:v.anchor},middleware:[RL({mainAxis:o+A,alignmentAxis:i}),c&&EL({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?PL():void 0,...N}),c&&TL({...N}),NL({...N,apply:({elements:ae,rects:I,availableWidth:ee,availableHeight:pe})=>{const{width:me,height:ge}=I.reference,fe=ae.floating.style;fe.setProperty("--radix-popper-available-width",`${ee}px`),fe.setProperty("--radix-popper-available-height",`${pe}px`),fe.setProperty("--radix-popper-anchor-width",`${me}px`),fe.setProperty("--radix-popper-anchor-height",`${ge}px`)}}),S&&ML({element:S,padding:s}),FL({arrowWidth:C,arrowHeight:A}),m&&AL({strategy:"referenceHidden",...N})]}),[z,oe]=e0(O),Z=Te(g);He(()=>{G&&(Z==null||Z())},[G,Z]);const te=(q=H.arrow)==null?void 0:q.x,F=(U=H.arrow)==null?void 0:U.y,W=((re=H.arrow)==null?void 0:re.centerOffset)!==0,[Q,K]=f.useState();return He(()=>{y&&K(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:G?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[(J=H.transformOrigin)==null?void 0:J.x,(ne=H.transformOrigin)==null?void 0:ne.y].join(" "),...((V=H.hide)==null?void 0:V.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(DL,{scope:r,placedSide:z,onArrowChange:_,arrowX:te,arrowY:F,shouldHideArrow:W,children:u.jsx(X.div,{"data-side":z,"data-align":oe,...h,ref:w,style:{...h.style,animation:G?void 0:"none"}})})})});Zw.displayName=xf;var Jw="PopperArrow",$L={top:"bottom",right:"left",bottom:"top",left:"right"},Qw=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=kL(Jw,n),i=$L[a.placedSide];return u.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:u.jsx(IL,{...o,ref:r,style:{...o.style,display:"block"}})})});Qw.displayName=Jw;function LL(e){return e!==null}var FL=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:r,rects:n,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,p]=e0(r),d={start:"0%",center:"50%",end:"100%"}[p],m=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,b=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let g="",h="";return l==="bottom"?(g=i?d:`${m}px`,h=`${-c}px`):l==="top"?(g=i?d:`${m}px`,h=`${n.floating.height+c}px`):l==="right"?(g=`${-c}px`,h=i?d:`${b}px`):l==="left"&&(g=`${n.floating.width+c}px`,h=i?d:`${b}px`),{data:{x:g,y:h}}}});function e0(e){const[t,r="center"]=e.split("-");return[t,r]}var Tn=Kw,Nn=Xw,Po=Zw,To=Qw,au="rovingFocusGroup.onEntryFocus",BL={bubbles:!1,cancelable:!0},_i="RovingFocusGroup",[Hu,t0,zL]=cr(_i),[qL,er]=De(_i,[zL]),[HL,VL]=qL(_i),r0=f.forwardRef((e,t)=>u.jsx(Hu.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Hu.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(GL,{...e,ref:t})})}));r0.displayName=_i;var GL=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:p=!1,...d}=e,m=f.useRef(null),b=de(t,m),g=Bt(a),[h=null,v]=$e({prop:i,defaultProp:s,onChange:c}),[y,x]=f.useState(!1),w=Te(l),S=t0(r),_=f.useRef(!1),[E,C]=f.useState(0);return f.useEffect(()=>{const A=m.current;if(A)return A.addEventListener(au,w),()=>A.removeEventListener(au,w)},[w]),u.jsx(HL,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:h,onItemFocus:f.useCallback(A=>v(A),[v]),onItemShiftTab:f.useCallback(()=>x(!0),[]),onFocusableItemAdd:f.useCallback(()=>C(A=>A+1),[]),onFocusableItemRemove:f.useCallback(()=>C(A=>A-1),[]),children:u.jsx(X.div,{tabIndex:y||E===0?-1:0,"data-orientation":n,...d,ref:b,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{_.current=!0}),onFocus:B(e.onFocus,A=>{const P=!_.current;if(A.target===A.currentTarget&&P&&!y){const k=new CustomEvent(au,BL);if(A.currentTarget.dispatchEvent(k),!k.defaultPrevented){const j=S().filter(O=>O.focusable),L=j.find(O=>O.active),N=j.find(O=>O.id===h),$=[L,N,...j].filter(Boolean).map(O=>O.ref.current);a0($,p)}}_.current=!1}),onBlur:B(e.onBlur,()=>x(!1))})})}),n0="RovingFocusGroupItem",o0=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...i}=e,s=We(),c=a||s,l=VL(n0,r),p=l.currentTabStopId===c,d=t0(r),{onFocusableItemAdd:m,onFocusableItemRemove:b}=l;return f.useEffect(()=>{if(n)return m(),()=>b()},[n,m,b]),u.jsx(Hu.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:u.jsx(X.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...i,ref:t,onMouseDown:B(e.onMouseDown,g=>{n?l.onItemFocus(c):g.preventDefault()}),onFocus:B(e.onFocus,()=>l.onItemFocus(c)),onKeyDown:B(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){l.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=KL(g,l.orientation,l.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=d().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const x=y.indexOf(g.currentTarget);y=l.loop?YL(y,x+1):y.slice(x+1)}setTimeout(()=>a0(y))}})})})});o0.displayName=n0;var WL={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function UL(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function KL(e,t,r){const n=UL(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return WL[n]}function a0(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function YL(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var No=r0,Ao=o0,Vu=["Enter"," "],XL=["ArrowDown","PageUp","Home"],i0=["ArrowUp","PageDown","End"],ZL=[...XL,...i0],JL={ltr:[...Vu,"ArrowRight"],rtl:[...Vu,"ArrowLeft"]},QL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Mo="Menu",[co,e2,t2]=cr(Mo),[Wr,Oo]=De(Mo,[t2,Qt,er]),Io=Qt(),s0=er(),[c0,Cr]=Wr(Mo),[r2,jo]=Wr(Mo),l0=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:i=!0}=e,s=Io(t),[c,l]=f.useState(null),p=f.useRef(!1),d=Te(a),m=Bt(o);return f.useEffect(()=>{const b=()=>{p.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>p.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),u.jsx(Tn,{...s,children:u.jsx(c0,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:l,children:u.jsx(r2,{scope:t,onClose:f.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:p,dir:m,modal:i,children:n})})})};l0.displayName=Mo;var n2="MenuAnchor",wf=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Io(r);return u.jsx(Nn,{...o,...n,ref:t})});wf.displayName=n2;var Sf="MenuPortal",[o2,u0]=Wr(Sf,{forceMount:void 0}),d0=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=Cr(Sf,t);return u.jsx(o2,{scope:t,forceMount:r,children:u.jsx(Le,{present:r||a.open,children:u.jsx(zr,{asChild:!0,container:o,children:n})})})};d0.displayName=Sf;var Tt="MenuContent",[a2,Cf]=Wr(Tt),f0=f.forwardRef((e,t)=>{const r=u0(Tt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Cr(Tt,e.__scopeMenu),i=jo(Tt,e.__scopeMenu);return u.jsx(co.Provider,{scope:e.__scopeMenu,children:u.jsx(Le,{present:n||a.open,children:u.jsx(co.Slot,{scope:e.__scopeMenu,children:i.modal?u.jsx(i2,{...o,ref:t}):u.jsx(s2,{...o,ref:t})})})})}),i2=f.forwardRef((e,t)=>{const r=Cr(Tt,e.__scopeMenu),n=f.useRef(null),o=de(t,n);return f.useEffect(()=>{const a=n.current;if(a)return ti(a)},[]),u.jsx(_f,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),s2=f.forwardRef((e,t)=>{const r=Cr(Tt,e.__scopeMenu);return u.jsx(_f,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),_f=f.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,onDismiss:b,disableOutsideScroll:g,...h}=e,v=Cr(Tt,r),y=jo(Tt,r),x=Io(r),w=s0(r),S=e2(r),[_,E]=f.useState(null),C=f.useRef(null),A=de(t,C,v.onContentChange),P=f.useRef(0),k=f.useRef(""),j=f.useRef(0),L=f.useRef(null),N=f.useRef("right"),D=f.useRef(0),$=g?xo:f.Fragment,O=g?{as:ct,allowPinchZoom:!0}:void 0,G=z=>{var q,U;const oe=k.current+z,Z=S().filter(re=>!re.disabled),te=document.activeElement,F=(q=Z.find(re=>re.ref.current===te))==null?void 0:q.textValue,W=Z.map(re=>re.textValue),Q=y2(W,oe,F),K=(U=Z.find(re=>re.textValue===Q))==null?void 0:U.ref.current;(function re(J){k.current=J,window.clearTimeout(P.current),J!==""&&(P.current=window.setTimeout(()=>re(""),1e3))})(oe),K&&setTimeout(()=>K.focus())};f.useEffect(()=>()=>window.clearTimeout(P.current),[]),Qa();const H=f.useCallback(z=>{var Z,te;return N.current===((Z=L.current)==null?void 0:Z.side)&&w2(z,(te=L.current)==null?void 0:te.area)},[]);return u.jsx(a2,{scope:r,searchRef:k,onItemEnter:f.useCallback(z=>{H(z)&&z.preventDefault()},[H]),onItemLeave:f.useCallback(z=>{var oe;H(z)||((oe=C.current)==null||oe.focus(),E(null))},[H]),onTriggerLeave:f.useCallback(z=>{H(z)&&z.preventDefault()},[H]),pointerGraceTimerRef:j,onPointerGraceIntentChange:f.useCallback(z=>{L.current=z},[]),children:u.jsx($,{...O,children:u.jsx(yo,{asChild:!0,trapped:o,onMountAutoFocus:B(a,z=>{var oe;z.preventDefault(),(oe=C.current)==null||oe.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:u.jsx(ur,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,onDismiss:b,children:u.jsx(No,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:_,onCurrentTabStopIdChange:E,onEntryFocus:B(c,z=>{y.isUsingKeyboardRef.current||z.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Po,{role:"menu","aria-orientation":"vertical","data-state":N0(v.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:A,style:{outline:"none",...h.style},onKeyDown:B(h.onKeyDown,z=>{const Z=z.target.closest("[data-radix-menu-content]")===z.currentTarget,te=z.ctrlKey||z.altKey||z.metaKey,F=z.key.length===1;Z&&(z.key==="Tab"&&z.preventDefault(),!te&&F&&G(z.key));const W=C.current;if(z.target!==W||!ZL.includes(z.key))return;z.preventDefault();const K=S().filter(q=>!q.disabled).map(q=>q.ref.current);i0.includes(z.key)&&K.reverse(),v2(K)}),onBlur:B(e.onBlur,z=>{z.currentTarget.contains(z.target)||(window.clearTimeout(P.current),k.current="")}),onPointerMove:B(e.onPointerMove,lo(z=>{const oe=z.target,Z=D.current!==z.clientX;if(z.currentTarget.contains(oe)&&Z){const te=z.clientX>D.current?"right":"left";N.current=te,D.current=z.clientX}}))})})})})})})});f0.displayName=Tt;var c2="MenuGroup",Rf=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return u.jsx(X.div,{role:"group",...n,ref:t})});Rf.displayName=c2;var l2="MenuLabel",p0=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return u.jsx(X.div,{...n,ref:t})});p0.displayName=l2;var ka="MenuItem",tb="menu.itemSelect",Ri=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=f.useRef(null),i=jo(ka,e.__scopeMenu),s=Cf(ka,e.__scopeMenu),c=de(t,a),l=f.useRef(!1),p=()=>{const d=a.current;if(!r&&d){const m=new CustomEvent(tb,{bubbles:!0,cancelable:!0});d.addEventListener(tb,b=>n==null?void 0:n(b),{once:!0}),Zn(d,m),m.defaultPrevented?l.current=!1:i.onClose()}};return u.jsx(m0,{...o,ref:c,disabled:r,onClick:B(e.onClick,p),onPointerDown:d=>{var m;(m=e.onPointerDown)==null||m.call(e,d),l.current=!0},onPointerUp:B(e.onPointerUp,d=>{var m;l.current||(m=d.currentTarget)==null||m.click()}),onKeyDown:B(e.onKeyDown,d=>{const m=s.searchRef.current!=="";r||m&&d.key===" "||Vu.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Ri.displayName=ka;var m0=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=Cf(ka,r),s=s0(r),c=f.useRef(null),l=de(t,c),[p,d]=f.useState(!1),[m,b]=f.useState("");return f.useEffect(()=>{const g=c.current;g&&b((g.textContent??"").trim())},[a.children]),u.jsx(co.ItemSlot,{scope:r,disabled:n,textValue:o??m,children:u.jsx(Ao,{asChild:!0,...s,focusable:!n,children:u.jsx(X.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:l,onPointerMove:B(e.onPointerMove,lo(g=>{n?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,lo(g=>i.onItemLeave(g))),onFocus:B(e.onFocus,()=>d(!0)),onBlur:B(e.onBlur,()=>d(!1))})})})}),u2="MenuCheckboxItem",h0=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return u.jsx(x0,{scope:e.__scopeMenu,checked:r,children:u.jsx(Ri,{role:"menuitemcheckbox","aria-checked":$a(r)?"mixed":r,...o,ref:t,"data-state":Tf(r),onSelect:B(o.onSelect,()=>n==null?void 0:n($a(r)?!0:!r),{checkForDefaultPrevented:!1})})})});h0.displayName=u2;var g0="MenuRadioGroup",[d2,f2]=Wr(g0,{value:void 0,onValueChange:()=>{}}),v0=f.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=Te(n);return u.jsx(d2,{scope:e.__scopeMenu,value:r,onValueChange:a,children:u.jsx(Rf,{...o,ref:t})})});v0.displayName=g0;var b0="MenuRadioItem",y0=f.forwardRef((e,t)=>{const{value:r,...n}=e,o=f2(b0,e.__scopeMenu),a=r===o.value;return u.jsx(x0,{scope:e.__scopeMenu,checked:a,children:u.jsx(Ri,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":Tf(a),onSelect:B(n.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,r)},{checkForDefaultPrevented:!1})})})});y0.displayName=b0;var Ef="MenuItemIndicator",[x0,p2]=Wr(Ef,{checked:!1}),w0=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=p2(Ef,r);return u.jsx(Le,{present:n||$a(a.checked)||a.checked===!0,children:u.jsx(X.span,{...o,ref:t,"data-state":Tf(a.checked)})})});w0.displayName=Ef;var m2="MenuSeparator",S0=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return u.jsx(X.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});S0.displayName=m2;var h2="MenuArrow",C0=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Io(r);return u.jsx(To,{...o,...n,ref:t})});C0.displayName=h2;var Pf="MenuSub",[g2,_0]=Wr(Pf),R0=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=Cr(Pf,t),i=Io(t),[s,c]=f.useState(null),[l,p]=f.useState(null),d=Te(o);return f.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),u.jsx(Tn,{...i,children:u.jsx(c0,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:p,children:u.jsx(g2,{scope:t,contentId:We(),triggerId:We(),trigger:s,onTriggerChange:c,children:r})})})};R0.displayName=Pf;var Gn="MenuSubTrigger",E0=f.forwardRef((e,t)=>{const r=Cr(Gn,e.__scopeMenu),n=jo(Gn,e.__scopeMenu),o=_0(Gn,e.__scopeMenu),a=Cf(Gn,e.__scopeMenu),i=f.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},p=f.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return f.useEffect(()=>p,[p]),f.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),c(null)}},[s,c]),u.jsx(wf,{asChild:!0,...l,children:u.jsx(m0,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":N0(r.open),...e,ref:vo(t,o.onTriggerChange),onClick:d=>{var m;(m=e.onClick)==null||m.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:B(e.onPointerMove,lo(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:B(e.onPointerLeave,lo(d=>{var b,g;p();const m=(b=r.content)==null?void 0:b.getBoundingClientRect();if(m){const h=(g=r.content)==null?void 0:g.dataset.side,v=h==="right",y=v?-5:5,x=m[v?"left":"right"],w=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x,y:m.top},{x:w,y:m.top},{x:w,y:m.bottom},{x,y:m.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,d=>{var b;const m=a.searchRef.current!=="";e.disabled||m&&d.key===" "||JL[n.dir].includes(d.key)&&(r.onOpenChange(!0),(b=r.content)==null||b.focus(),d.preventDefault())})})})});E0.displayName=Gn;var P0="MenuSubContent",T0=f.forwardRef((e,t)=>{const r=u0(Tt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Cr(Tt,e.__scopeMenu),i=jo(Tt,e.__scopeMenu),s=_0(P0,e.__scopeMenu),c=f.useRef(null),l=de(t,c);return u.jsx(co.Provider,{scope:e.__scopeMenu,children:u.jsx(Le,{present:n||a.open,children:u.jsx(co.Slot,{scope:e.__scopeMenu,children:u.jsx(_f,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var d;i.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:B(e.onFocusOutside,p=>{p.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,p=>{i.onClose(),p.preventDefault()}),onKeyDown:B(e.onKeyDown,p=>{var b;const d=p.currentTarget.contains(p.target),m=QL[i.dir].includes(p.key);d&&m&&(a.onOpenChange(!1),(b=s.trigger)==null||b.focus(),p.preventDefault())})})})})})});T0.displayName=P0;function N0(e){return e?"open":"closed"}function $a(e){return e==="indeterminate"}function Tf(e){return $a(e)?"indeterminate":e?"checked":"unchecked"}function v2(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function b2(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function y2(e,t,r){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let i=b2(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==r));const c=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function x2(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,l=t[i].x,p=t[i].y;c>n!=p>n&&r<(l-s)*(n-c)/(p-c)+s&&(o=!o)}return o}function w2(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return x2(r,t)}function lo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Nf=l0,Af=wf,Mf=d0,Of=f0,If=Rf,jf=p0,Df=Ri,kf=h0,$f=v0,Lf=y0,Ff=w0,Bf=S0,zf=C0,qf=R0,Hf=E0,Vf=T0,Gf="ContextMenu",[S2,f3]=De(Gf,[Oo]),lt=Oo(),[C2,A0]=S2(Gf),M0=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:o,modal:a=!0}=e,[i,s]=f.useState(!1),c=lt(t),l=Te(n),p=f.useCallback(d=>{s(d),l(d)},[l]);return u.jsx(C2,{scope:t,open:i,onOpenChange:p,modal:a,children:u.jsx(Nf,{...c,dir:o,open:i,onOpenChange:p,modal:a,children:r})})};M0.displayName=Gf;var O0="ContextMenuTrigger",I0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...o}=e,a=A0(O0,r),i=lt(r),s=f.useRef({x:0,y:0}),c=f.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),l=f.useRef(0),p=f.useCallback(()=>window.clearTimeout(l.current),[]),d=m=>{s.current={x:m.clientX,y:m.clientY},a.onOpenChange(!0)};return f.useEffect(()=>p,[p]),f.useEffect(()=>void(n&&p()),[n,p]),u.jsxs(u.Fragment,{children:[u.jsx(Af,{...i,virtualRef:c}),u.jsx(X.span,{"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:n?e.onContextMenu:B(e.onContextMenu,m=>{p(),d(m),m.preventDefault()}),onPointerDown:n?e.onPointerDown:B(e.onPointerDown,oa(m=>{p(),l.current=window.setTimeout(()=>d(m),700)})),onPointerMove:n?e.onPointerMove:B(e.onPointerMove,oa(p)),onPointerCancel:n?e.onPointerCancel:B(e.onPointerCancel,oa(p)),onPointerUp:n?e.onPointerUp:B(e.onPointerUp,oa(p))})]})});I0.displayName=O0;var _2="ContextMenuPortal",j0=e=>{const{__scopeContextMenu:t,...r}=e,n=lt(t);return u.jsx(Mf,{...n,...r})};j0.displayName=_2;var D0="ContextMenuContent",k0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=A0(D0,r),a=lt(r),i=f.useRef(!1);return u.jsx(Of,{...a,...n,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{var c;(c=e.onCloseAutoFocus)==null||c.call(e,s),!s.defaultPrevented&&i.current&&s.preventDefault(),i.current=!1},onInteractOutside:s=>{var c;(c=e.onInteractOutside)==null||c.call(e,s),!s.defaultPrevented&&!o.modal&&(i.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});k0.displayName=D0;var R2="ContextMenuGroup",$0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx(If,{...o,...n,ref:t})});$0.displayName=R2;var E2="ContextMenuLabel",L0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx(jf,{...o,...n,ref:t})});L0.displayName=E2;var P2="ContextMenuItem",F0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx(Df,{...o,...n,ref:t})});F0.displayName=P2;var T2="ContextMenuCheckboxItem",B0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx(kf,{...o,...n,ref:t})});B0.displayName=T2;var N2="ContextMenuRadioGroup",z0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx($f,{...o,...n,ref:t})});z0.displayName=N2;var A2="ContextMenuRadioItem",q0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx(Lf,{...o,...n,ref:t})});q0.displayName=A2;var M2="ContextMenuItemIndicator",H0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx(Ff,{...o,...n,ref:t})});H0.displayName=M2;var O2="ContextMenuSeparator",V0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx(Bf,{...o,...n,ref:t})});V0.displayName=O2;var I2="ContextMenuArrow",j2=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx(zf,{...o,...n,ref:t})});j2.displayName=I2;var D2="ContextMenuSub",G0=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:o,defaultOpen:a}=e,i=lt(t),[s,c]=$e({prop:o,defaultProp:a,onChange:n});return u.jsx(qf,{...i,open:s,onOpenChange:c,children:r})};G0.displayName=D2;var k2="ContextMenuSubTrigger",W0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx(Hf,{...o,...n,ref:t})});W0.displayName=k2;var $2="ContextMenuSubContent",U0=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=lt(r);return u.jsx(Vf,{...o,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});U0.displayName=$2;function oa(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var L2=M0,F2=I0,K0=j0,Y0=k0,B2=$0,X0=L0,Z0=F0,J0=B0,z2=z0,Q0=q0,eS=H0,tS=V0,q2=G0,rS=W0,nS=U0;const H2=L2,V2=F2,G2=B2,W2=K0,U2=q2,K2=z2,oS=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>u.jsxs(rS,{ref:o,className:M("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...n,children:[r,u.jsx(br,{className:"ml-auto h-4 w-4"})]}));oS.displayName=rS.displayName;const aS=f.forwardRef(({className:e,...t},r)=>u.jsx(nS,{ref:r,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-context-menu-content-transform-origin]",e),...t}));aS.displayName=nS.displayName;const iS=f.forwardRef(({className:e,...t},r)=>u.jsx(K0,{children:u.jsx(Y0,{ref:r,className:M("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 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-context-menu-content-transform-origin]",e),...t})}));iS.displayName=Y0.displayName;const sS=f.forwardRef(({className:e,inset:t,...r},n)=>u.jsx(Z0,{ref:n,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));sS.displayName=Z0.displayName;const cS=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>u.jsxs(J0,{ref:o,className:M("relative flex 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),checked:r,...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(eS,{children:u.jsx(bn,{className:"h-4 w-4"})})}),t]}));cS.displayName=J0.displayName;const lS=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(Q0,{ref:n,className:M("relative flex 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),...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(eS,{children:u.jsx(Ja,{className:"h-4 w-4 fill-current"})})}),t]}));lS.displayName=Q0.displayName;const uS=f.forwardRef(({className:e,inset:t,...r},n)=>u.jsx(X0,{ref:n,className:M("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));uS.displayName=X0.displayName;const dS=f.forwardRef(({className:e,...t},r)=>u.jsx(tS,{ref:r,className:M("-mx-1 my-1 h-px bg-border",e),...t}));dS.displayName=tS.displayName;const fS=({className:e,...t})=>u.jsx("span",{className:M("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});fS.displayName="ContextMenuShortcut";const Y2=ri,X2=ni,pS=oi,Z2=qr,Wf=f.forwardRef(({className:e,...t},r)=>u.jsx(wn,{ref:r,className:M("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}));Wf.displayName=wn.displayName;const mS=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(pS,{children:[u.jsx(Wf,{}),u.jsxs(Sn,{ref:n,className:M("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),...r,children:[t,u.jsxs(qr,{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:[u.jsx(Nd,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));mS.displayName=Sn.displayName;const hS=({className:e,...t})=>u.jsx("div",{className:M("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});hS.displayName="DialogHeader";const gS=({className:e,...t})=>u.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});gS.displayName="DialogFooter";const vS=f.forwardRef(({className:e,...t},r)=>u.jsx(Cn,{ref:r,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));vS.displayName=Cn.displayName;const bS=f.forwardRef(({className:e,...t},r)=>u.jsx(_n,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));bS.displayName=_n.displayName;function J2(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const yS=R.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Do=()=>{const e=R.useContext(yS);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};J2(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
217
|
-
[data-state=closed]
|
|
218
|
-
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function Q2(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function eF(){return Uf(/^Mac/)}function tF(){return Uf(/^iPhone/)}function rb(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function rF(){return Uf(/^iPad/)||eF()&&navigator.maxTouchPoints>1}function xS(){return tF()||rF()}function Uf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const nF=24,oF=typeof window<"u"?R.useLayoutEffect:R.useEffect;function nb(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const iu=typeof document<"u"&&window.visualViewport;function ob(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function wS(e){for(ob(e)&&(e=e.parentElement);e&&!ob(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const aF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let aa=0,su;function iF(e={}){let{isDisabled:t}=e;oF(()=>{if(!t)return aa++,aa===1&&xS()&&(su=sF()),()=>{aa--,aa===0&&(su==null||su())}},[t])}function sF(){let e,t=0,r=d=>{e=wS(d.target),!(e===document.documentElement&&e===document.body)&&(t=d.changedTouches[0].pageY)},n=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}let m=d.changedTouches[0].pageY,b=e.scrollTop,g=e.scrollHeight-e.clientHeight;g!==0&&((b<=0&&m>t||b>=g&&m<t)&&d.preventDefault(),t=m)},o=d=>{let m=d.target;Gu(m)&&m!==document.activeElement&&(d.preventDefault(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""}))},a=d=>{let m=d.target;Gu(m)&&(m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",iu&&(iu.height<window.innerHeight?requestAnimationFrame(()=>{ab(m)}):iu.addEventListener("resize",()=>ab(m),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=nb(cF(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=nb(Ln(document,"touchstart",r,{passive:!1,capture:!0}),Ln(document,"touchmove",n,{passive:!1,capture:!0}),Ln(document,"touchend",o,{passive:!1,capture:!0}),Ln(document,"focus",a,!0),Ln(window,"scroll",i));return()=>{l(),p(),window.scrollTo(s,c)}}function cF(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Ln(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function ab(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let r=wS(e);if(r!==document.documentElement&&r!==document.body&&r!==e){let n=r.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const i=r.getBoundingClientRect().bottom+nF;a>i&&(r.scrollTop+=o-n)}e=r.parentElement}}function Gu(e){return e instanceof HTMLInputElement&&!aF.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function lF(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function uF(...e){return t=>e.forEach(r=>lF(r,t))}function SS(...e){return f.useCallback(uF(...e),e)}const CS=new WeakMap;function tt(e,t,r=!1){if(!e||!(e instanceof HTMLElement))return;let n={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}n[o]=e.style[o],e.style[o]=a}),!r&&CS.set(e,n)}function dF(e,t){if(!e||!(e instanceof HTMLElement))return;let r=CS.get(e);r&&(e.style[t]=r[t])}const Xe=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function ia(e,t){if(!e)return null;const r=window.getComputedStyle(e),n=r.transform||r.webkitTransform||r.mozTransform;let o=n.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Xe(t)?13:12]):(o=n.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Xe(t)?5:4]):null)}function fF(e){return 8*(Math.log(e+1)-2)}function cu(e,t){if(!e)return()=>{};const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}function pF(...e){return(...t)=>{for(const r of e)typeof r=="function"&&r(...t)}}const ze={DURATION:.5,EASE:[.32,.72,0,1]},_S=.4,mF=.25,hF=100,RS=8,sa=16,Wu=26,lu="vaul-dragging";function ES(e){const t=R.useRef(e);return R.useEffect(()=>{t.current=e}),R.useMemo(()=>(...r)=>t.current==null?void 0:t.current.call(t,...r),[])}function gF({defaultProp:e,onChange:t}){const r=R.useState(e),[n]=r,o=R.useRef(n),a=ES(t);return R.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}function PS({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=gF({defaultProp:t,onChange:r}),a=e!==void 0,i=a?e:n,s=ES(r),c=R.useCallback(l=>{if(a){const d=typeof l=="function"?l(e):l;d!==e&&s(d)}else o(l)},[a,e,o,s]);return[i,c]}function vF({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:r,drawerRef:n,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i,direction:s="bottom",container:c,snapToSequentialPoint:l}){const[p,d]=PS({prop:e,defaultProp:r==null?void 0:r[0],onChange:t}),[m,b]=R.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);R.useEffect(()=>{function C(){b({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]);const g=R.useMemo(()=>p===(r==null?void 0:r[r.length-1])||null,[r,p]),h=R.useMemo(()=>{var C;return(C=r==null?void 0:r.findIndex(A=>A===p))!=null?C:null},[r,p]),v=r&&r.length>0&&(a||a===0)&&!Number.isNaN(a)&&r[a]===p||!r,y=R.useMemo(()=>{const C=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var A;return(A=r==null?void 0:r.map(P=>{const k=typeof P=="string";let j=0;if(k&&(j=parseInt(P,10)),Xe(s)){const N=k?j:m?P*C.height:0;return m?s==="bottom"?C.height-N:-C.height+N:N}const L=k?j:m?P*C.width:0;return m?s==="right"?C.width-L:-C.width+L:L}))!=null?A:[]},[r,m,c]),x=R.useMemo(()=>h!==null?y==null?void 0:y[h]:null,[y,h]),w=R.useCallback(C=>{var A;const P=(A=y==null?void 0:y.findIndex(k=>k===C))!=null?A:null;i(P),tt(n.current,{transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,transform:Xe(s)?`translate3d(0, ${C}px, 0)`:`translate3d(${C}px, 0, 0)`}),y&&P!==y.length-1&&a!==void 0&&P!==a&&P<a?tt(o.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,opacity:"0"}):tt(o.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,opacity:"1"}),d(r==null?void 0:r[Math.max(P,0)])},[n.current,r,y,a,o,d]);R.useEffect(()=>{if(p||e){var C;const A=(C=r==null?void 0:r.findIndex(P=>P===e||P===p))!=null?C:-1;y&&A!==-1&&typeof y[A]=="number"&&w(y[A])}},[p,e,r,y,w]);function S({draggedDistance:C,closeDrawer:A,velocity:P,dismissible:k}){if(a===void 0)return;const j=s==="bottom"||s==="right"?(x??0)-C:(x??0)+C,L=h===a-1,N=h===0,D=C>0;if(L&&tt(o.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`}),!l&&P>2&&!D){k?A():w(y[0]);return}if(!l&&P>2&&D&&y&&r){w(y[r.length-1]);return}const $=y==null?void 0:y.reduce((G,H)=>typeof G!="number"||typeof H!="number"?G:Math.abs(H-j)<Math.abs(G-j)?H:G),O=Xe(s)?window.innerHeight:window.innerWidth;if(P>_S&&Math.abs(C)<O*.4){const G=D?1:-1;if(G>0&&g&&r){w(y[r.length-1]);return}if(N&&G<0&&k&&A(),h===null)return;w(y[h+G]);return}w($)}function _({draggedDistance:C}){if(x===null)return;const A=s==="bottom"||s==="right"?x-C:x+C;(s==="bottom"||s==="right")&&A<y[y.length-1]||(s==="top"||s==="left")&&A>y[y.length-1]||tt(n.current,{transform:Xe(s)?`translate3d(0, ${A}px, 0)`:`translate3d(${A}px, 0, 0)`})}function E(C,A){if(!r||typeof h!="number"||!y||a===void 0)return null;const P=h===a-1;if(h>=a&&A)return 0;if(P&&!A)return 1;if(!v&&!P)return null;const j=P?h+1:h-1,L=P?y[j]-y[j-1]:y[j+1]-y[j],N=C/Math.abs(L);return P?1-N:N}return{isLastSnapPoint:g,activeSnapPoint:p,shouldFade:v,getPercentageDragged:E,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:S,onDrag:_,snapPointsOffset:y}}const bF=()=>()=>{};function yF(){const{direction:e,isOpen:t,shouldScaleBackground:r,setBackgroundColorOnScale:n,noBodyStyles:o}=Do(),a=R.useRef(null),i=R.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-Wu)/window.innerWidth}R.useEffect(()=>{if(t&&r){a.current&&clearTimeout(a.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;pF(n&&!o?cu(document.body,{background:"black"}):bF,cu(c,{transformOrigin:Xe(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${ze.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ze.EASE.join(",")})`}));const l=cu(c,{borderRadius:`${RS}px`,overflow:"hidden",...Xe(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{l(),a.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},ze.DURATION*1e3)}}},[t,r,i])}let Fn=null;function xF({isOpen:e,modal:t,nested:r,hasBeenOpened:n,preventScrollRestoration:o,noBodyStyles:a}){const[i,s]=R.useState(()=>typeof window<"u"?window.location.href:""),c=R.useRef(0),l=R.useCallback(()=>{if(rb()&&Fn===null&&e&&!a){Fn={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:d,innerHeight:m}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-d}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const b=m-window.innerHeight;b&&c.current>=m&&(document.body.style.top=`${-(c.current+b)}px`)}),300)}},[e]),p=R.useCallback(()=>{if(rb()&&Fn!==null&&!a){const d=-parseInt(document.body.style.top,10),m=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Fn),window.requestAnimationFrame(()=>{if(o&&i!==window.location.href){s(window.location.href);return}window.scrollTo(m,d)}),Fn=null}},[i]);return R.useEffect(()=>{function d(){c.current=window.scrollY}return d(),window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[]),R.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||p()}},[t,p]),R.useEffect(()=>{r||!n||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout(()=>{p()},500)):p())},[e,n,i,t,r,l,p]),{restorePositionSetting:p}}function wF({open:e,onOpenChange:t,children:r,onDrag:n,onRelease:o,snapPoints:a,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=mF,scrollLockTimeout:l=hF,dismissible:p=!0,handleOnly:d=!1,fadeFromIndex:m=a&&a.length-1,activeSnapPoint:b,setActiveSnapPoint:g,fixed:h,modal:v=!0,onClose:y,nested:x,noBodyStyles:w=!1,direction:S="bottom",defaultOpen:_=!1,disablePreventScroll:E=!0,snapToSequentialPoint:C=!1,preventScrollRestoration:A=!1,repositionInputs:P=!0,onAnimationEnd:k,container:j,autoFocus:L=!1}){var N,D;const[$=!1,O]=PS({defaultProp:_,prop:e,onChange:ue=>{t==null||t(ue),!ue&&!x&&ot(),setTimeout(()=>{k==null||k(ue)},ze.DURATION*1e3),ue&&!v&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),ue||(document.body.style.pointerEvents="auto")}}),[G,H]=R.useState(!1),[z,oe]=R.useState(!1),[Z,te]=R.useState(!1),F=R.useRef(null),W=R.useRef(null),Q=R.useRef(null),K=R.useRef(null),q=R.useRef(null),U=R.useRef(!1),re=R.useRef(null),J=R.useRef(0),ne=R.useRef(!1),V=R.useRef(!_),ae=R.useRef(0),I=R.useRef(null),ee=R.useRef(((N=I.current)==null?void 0:N.getBoundingClientRect().height)||0),pe=R.useRef(((D=I.current)==null?void 0:D.getBoundingClientRect().width)||0),me=R.useRef(0),ge=R.useCallback(ue=>{a&&ue===Oe.length-1&&(W.current=new Date)},[]),{activeSnapPoint:fe,activeSnapPointIndex:Ee,setActiveSnapPoint:Fe,onRelease:we,snapPointsOffset:Oe,onDrag:rt,shouldFade:Ze,getPercentageDragged:Ue}=vF({snapPoints:a,activeSnapPointProp:b,setActiveSnapPointProp:g,drawerRef:I,fadeFromIndex:m,overlayRef:F,onSnapPointChange:ge,direction:S,container:j,snapToSequentialPoint:C});iF({isDisabled:!$||z||!v||Z||!G||!P||!E});const{restorePositionSetting:ot}=xF({isOpen:$,modal:v,nested:x??!1,hasBeenOpened:G,preventScrollRestoration:A,noBodyStyles:w});function mt(){return(window.innerWidth-Wu)/window.innerWidth}function ft(ue){var be,Ce;!p&&!a||I.current&&!I.current.contains(ue.target)||(ee.current=((be=I.current)==null?void 0:be.getBoundingClientRect().height)||0,pe.current=((Ce=I.current)==null?void 0:Ce.getBoundingClientRect().width)||0,oe(!0),Q.current=new Date,xS()&&window.addEventListener("touchend",()=>U.current=!1,{once:!0}),ue.target.setPointerCapture(ue.pointerId),J.current=Xe(S)?ue.pageY:ue.pageX)}function Ve(ue,be){var Ce;let ve=ue;const ie=(Ce=window.getSelection())==null?void 0:Ce.toString(),Se=I.current?ia(I.current,S):null,xe=new Date;if(ve.tagName==="SELECT"||ve.hasAttribute("data-vaul-no-drag")||ve.closest("[data-vaul-no-drag]"))return!1;if(S==="right"||S==="left")return!0;if(W.current&&xe.getTime()-W.current.getTime()<500)return!1;if(Se!==null&&(S==="bottom"?Se>0:Se<0))return!0;if(ie&&ie.length>0)return!1;if(q.current&&xe.getTime()-q.current.getTime()<l&&Se===0||be)return q.current=xe,!1;for(;ve;){if(ve.scrollHeight>ve.clientHeight){if(ve.scrollTop!==0)return q.current=new Date,!1;if(ve.getAttribute("role")==="dialog")return!0}ve=ve.parentNode}return!0}function Ct(ue){if(I.current&&z){const be=S==="bottom"||S==="right"?1:-1,Ce=(J.current-(Xe(S)?ue.pageY:ue.pageX))*be,ve=Ce>0,ie=a&&!p&&!ve;if(ie&&Ee===0)return;const Se=Math.abs(Ce),xe=document.querySelector("[data-vaul-drawer-wrapper]"),ke=S==="bottom"||S==="top"?ee.current:pe.current;let Qe=Se/ke;const Ie=Ue(Se,ve);if(Ie!==null&&(Qe=Ie),ie&&Qe>=1||!U.current&&!Ve(ue.target,ve))return;if(I.current.classList.add(lu),U.current=!0,tt(I.current,{transition:"none"}),tt(F.current,{transition:"none"}),a&&rt({draggedDistance:Ce}),ve&&!a){const at=fF(Ce),et=Math.min(at*-1,0)*be;tt(I.current,{transform:Xe(S)?`translate3d(0, ${et}px, 0)`:`translate3d(${et}px, 0, 0)`});return}const Be=1-Qe;if((Ze||m&&Ee===m-1)&&(n==null||n(ue,Qe),tt(F.current,{opacity:`${Be}`,transition:"none"},!0)),xe&&F.current&&i){const at=Math.min(mt()+Qe*(1-mt()),1),et=8-Qe*8,it=Math.max(0,14-Qe*14);tt(xe,{borderRadius:`${et}px`,transform:Xe(S)?`scale(${at}) translate3d(0, ${it}px, 0)`:`scale(${at}) translate3d(${it}px, 0, 0)`,transition:"none"},!0)}if(!a){const at=Se*be;tt(I.current,{transform:Xe(S)?`translate3d(0, ${at}px, 0)`:`translate3d(${at}px, 0, 0)`})}}}R.useEffect(()=>{window.requestAnimationFrame(()=>{V.current=!0})},[]),R.useEffect(()=>{var ue;function be(){if(!I.current||!P)return;const Ce=document.activeElement;if(Gu(Ce)||ne.current){var ve;const ie=((ve=window.visualViewport)==null?void 0:ve.height)||0,Se=window.innerHeight;let xe=Se-ie;const ke=I.current.getBoundingClientRect().height||0,Qe=ke>Se*.8;me.current||(me.current=ke);const Ie=I.current.getBoundingClientRect().top;if(Math.abs(ae.current-xe)>60&&(ne.current=!ne.current),a&&a.length>0&&Oe&&Ee){const Be=Oe[Ee]||0;xe+=Be}if(ae.current=xe,ke>ie||ne.current){const Be=I.current.getBoundingClientRect().height;let at=Be;Be>ie&&(at=ie-(Qe?Ie:Wu)),h?I.current.style.height=`${Be-Math.max(xe,0)}px`:I.current.style.height=`${Math.max(at,ie-Ie)}px`}else Q2()||(I.current.style.height=`${me.current}px`);a&&a.length>0&&!ne.current?I.current.style.bottom="0px":I.current.style.bottom=`${Math.max(xe,0)}px`}}return(ue=window.visualViewport)==null||ue.addEventListener("resize",be),()=>{var Ce;return(Ce=window.visualViewport)==null?void 0:Ce.removeEventListener("resize",be)}},[Ee,a,Oe]);function Ke(ue){Mt(),y==null||y(),ue||O(!1),setTimeout(()=>{a&&Fe(a[0])},ze.DURATION*1e3)}function Je(){if(!I.current)return;const ue=document.querySelector("[data-vaul-drawer-wrapper]"),be=ia(I.current,S);tt(I.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`}),tt(F.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,opacity:"1"}),i&&be&&be>0&&$&&tt(ue,{borderRadius:`${RS}px`,overflow:"hidden",...Xe(S)?{transform:`scale(${mt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${mt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ze.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ze.EASE.join(",")})`},!0)}function Mt(){!z||!I.current||(I.current.classList.remove(lu),U.current=!1,oe(!1),K.current=new Date)}function Gt(ue){if(!z||!I.current)return;I.current.classList.remove(lu),U.current=!1,oe(!1),K.current=new Date;const be=ia(I.current,S);if(!ue||!Ve(ue.target,!1)||!be||Number.isNaN(be)||Q.current===null)return;const Ce=K.current.getTime()-Q.current.getTime(),ve=J.current-(Xe(S)?ue.pageY:ue.pageX),ie=Math.abs(ve)/Ce;if(ie>.05&&(te(!0),setTimeout(()=>{te(!1)},200)),a){we({draggedDistance:ve*(S==="bottom"||S==="right"?1:-1),closeDrawer:Ke,velocity:ie,dismissible:p}),o==null||o(ue,!0);return}if(S==="bottom"||S==="right"?ve>0:ve<0){Je(),o==null||o(ue,!0);return}if(ie>_S){Ke(),o==null||o(ue,!1);return}var Se;const xe=Math.min((Se=I.current.getBoundingClientRect().height)!=null?Se:0,window.innerHeight);var ke;const Qe=Math.min((ke=I.current.getBoundingClientRect().width)!=null?ke:0,window.innerWidth),Ie=S==="left"||S==="right";if(Math.abs(be)>=(Ie?Qe:xe)*c){Ke(),o==null||o(ue,!1);return}o==null||o(ue,!0),Je()}R.useEffect(()=>($&&(tt(document.documentElement,{scrollBehavior:"auto"}),W.current=new Date),()=>{dF(document.documentElement,"scrollBehavior")}),[$]);function pr(ue){const be=ue?(window.innerWidth-sa)/window.innerWidth:1,Ce=ue?-16:0;re.current&&window.clearTimeout(re.current),tt(I.current,{transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,transform:Xe(S)?`scale(${be}) translate3d(0, ${Ce}px, 0)`:`scale(${be}) translate3d(${Ce}px, 0, 0)`}),!ue&&I.current&&(re.current=setTimeout(()=>{const ve=ia(I.current,S);tt(I.current,{transition:"none",transform:Xe(S)?`translate3d(0, ${ve}px, 0)`:`translate3d(${ve}px, 0, 0)`})},500))}function Pr(ue,be){if(be<0)return;const Ce=(window.innerWidth-sa)/window.innerWidth,ve=Ce+be*(1-Ce),ie=-16+be*sa;tt(I.current,{transform:Xe(S)?`scale(${ve}) translate3d(0, ${ie}px, 0)`:`scale(${ve}) translate3d(${ie}px, 0, 0)`,transition:"none"})}function Ot(ue,be){const Ce=Xe(S)?window.innerHeight:window.innerWidth,ve=be?(Ce-sa)/Ce:1,ie=be?-16:0;be&&tt(I.current,{transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,transform:Xe(S)?`scale(${ve}) translate3d(0, ${ie}px, 0)`:`scale(${ve}) translate3d(${ie}px, 0, 0)`})}return R.useEffect(()=>{v||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[v]),R.createElement(ri,{defaultOpen:_,onOpenChange:ue=>{!p&&!ue||(ue?H(!0):Ke(!0),O(ue))},open:$},R.createElement(yS.Provider,{value:{activeSnapPoint:fe,snapPoints:a,setActiveSnapPoint:Fe,drawerRef:I,overlayRef:F,onOpenChange:t,onPress:ft,onRelease:Gt,onDrag:Ct,dismissible:p,shouldAnimate:V,handleOnly:d,isOpen:$,isDragging:z,shouldFade:Ze,closeDrawer:Ke,onNestedDrag:Pr,onNestedOpenChange:pr,onNestedRelease:Ot,keyboardIsOpen:ne,modal:v,snapPointsOffset:Oe,activeSnapPointIndex:Ee,direction:S,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:w,container:j,autoFocus:L}},r))}const TS=R.forwardRef(function({...e},t){const{overlayRef:r,snapPoints:n,onRelease:o,shouldFade:a,isOpen:i,modal:s,shouldAnimate:c}=Do(),l=SS(t,r),p=n&&n.length>0;if(!s)return null;const d=R.useCallback(m=>o(m),[o]);return R.createElement(wn,{onMouseUp:d,ref:l,"data-vaul-overlay":"","data-vaul-snap-points":i&&p?"true":"false","data-vaul-snap-points-overlay":i&&a?"true":"false","data-vaul-animate":c!=null&&c.current?"true":"false",...e})});TS.displayName="Drawer.Overlay";const NS=R.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:r,...n},o){const{drawerRef:a,onPress:i,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:p,activeSnapPointIndex:d,modal:m,isOpen:b,direction:g,snapPoints:h,container:v,handleOnly:y,shouldAnimate:x,autoFocus:w}=Do(),[S,_]=R.useState(!1),E=SS(o,a),C=R.useRef(null),A=R.useRef(null),P=R.useRef(!1),k=h&&h.length>0;yF();const j=(N,D,$=0)=>{if(P.current)return!0;const O=Math.abs(N.y),G=Math.abs(N.x),H=G>O,z=["bottom","right"].includes(D)?1:-1;if(D==="left"||D==="right"){if(!(N.x*z<0)&&G>=0&&G<=$)return H}else if(!(N.y*z<0)&&O>=0&&O<=$)return!H;return P.current=!0,!0};R.useEffect(()=>{k&&window.requestAnimationFrame(()=>{_(!0)})},[]);function L(N){C.current=null,P.current=!1,s(N)}return R.createElement(Sn,{"data-vaul-drawer-direction":g,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":b&&k?"true":"false","data-vaul-custom-container":v?"true":"false","data-vaul-animate":x!=null&&x.current?"true":"false",...n,ref:E,style:p&&p.length>0?{"--snap-point-height":`${p[d??0]}px`,...t}:t,onPointerDown:N=>{y||(n.onPointerDown==null||n.onPointerDown.call(n,N),C.current={x:N.pageX,y:N.pageY},i(N))},onOpenAutoFocus:N=>{r==null||r(N),w||N.preventDefault()},onPointerDownOutside:N=>{if(e==null||e(N),!m||N.defaultPrevented){N.preventDefault();return}l.current&&(l.current=!1)},onFocusOutside:N=>{if(!m){N.preventDefault();return}},onPointerMove:N=>{if(A.current=N,y||(n.onPointerMove==null||n.onPointerMove.call(n,N),!C.current))return;const D=N.pageY-C.current.y,$=N.pageX-C.current.x,O=N.pointerType==="touch"?10:2;j({x:$,y:D},g,O)?c(N):(Math.abs($)>O||Math.abs(D)>O)&&(C.current=null)},onPointerUp:N=>{n.onPointerUp==null||n.onPointerUp.call(n,N),C.current=null,P.current=!1,s(N)},onPointerOut:N=>{n.onPointerOut==null||n.onPointerOut.call(n,N),L(A.current)},onContextMenu:N=>{n.onContextMenu==null||n.onContextMenu.call(n,N),A.current&&L(A.current)}})});NS.displayName="Drawer.Content";const SF=250,CF=120,_F=R.forwardRef(function({preventCycle:e=!1,children:t,...r},n){const{closeDrawer:o,isDragging:a,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:p,isOpen:d,onPress:m,onDrag:b}=Do(),g=R.useRef(null),h=R.useRef(!1);function v(){if(h.current){w();return}window.setTimeout(()=>{y()},CF)}function y(){if(a||e||h.current){w();return}if(w(),!i||i.length===0){l||o();return}if(s===i[i.length-1]&&l){o();return}const _=i.findIndex(C=>C===s);if(_===-1)return;const E=i[_+1];c(E)}function x(){g.current=window.setTimeout(()=>{h.current=!0},SF)}function w(){g.current&&window.clearTimeout(g.current),h.current=!1}return R.createElement("div",{onClick:v,onPointerCancel:w,onPointerDown:S=>{p&&m(S),x()},onPointerMove:S=>{p&&b(S)},ref:n,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...r},R.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});_F.displayName="Drawer.Handle";function RF(e){const t=Do(),{container:r=t.container,...n}=e;return R.createElement(oi,{container:r,...n})}const Vt={Root:wF,Content:NS,Overlay:TS,Trigger:ni,Portal:RF,Close:qr,Title:Cn,Description:_n},AS=({shouldScaleBackground:e=!0,...t})=>u.jsx(Vt.Root,{shouldScaleBackground:e,...t});AS.displayName="Drawer";const EF=Vt.Trigger,MS=Vt.Portal,PF=Vt.Close,Kf=f.forwardRef(({className:e,...t},r)=>u.jsx(Vt.Overlay,{ref:r,className:M("fixed inset-0 z-50 bg-black/80",e),...t}));Kf.displayName=Vt.Overlay.displayName;const OS=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(MS,{children:[u.jsx(Kf,{}),u.jsxs(Vt.Content,{ref:n,className:M("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...r,children:[u.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));OS.displayName="DrawerContent";const IS=({className:e,...t})=>u.jsx("div",{className:M("grid gap-1.5 p-4 text-center sm:text-left",e),...t});IS.displayName="DrawerHeader";const jS=({className:e,...t})=>u.jsx("div",{className:M("mt-auto flex flex-col gap-2 p-4",e),...t});jS.displayName="DrawerFooter";const DS=f.forwardRef(({className:e,...t},r)=>u.jsx(Vt.Title,{ref:r,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));DS.displayName=Vt.Title.displayName;const kS=f.forwardRef(({className:e,...t},r)=>u.jsx(Vt.Description,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));kS.displayName=Vt.Description.displayName;var Yf="DropdownMenu",[TF,p3]=De(Yf,[Oo]),ut=Oo(),[NF,$S]=TF(Yf),LS=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,c=ut(t),l=f.useRef(null),[p=!1,d]=$e({prop:o,defaultProp:a,onChange:i});return u.jsx(NF,{scope:t,triggerId:We(),triggerRef:l,contentId:We(),open:p,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(m=>!m),[d]),modal:s,children:u.jsx(Nf,{...c,open:p,onOpenChange:d,dir:n,modal:s,children:r})})};LS.displayName=Yf;var FS="DropdownMenuTrigger",BS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=$S(FS,r),i=ut(r);return u.jsx(Af,{asChild:!0,...i,children:u.jsx(X.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:vo(t,a.triggerRef),onPointerDown:B(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:B(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});BS.displayName=FS;var AF="DropdownMenuPortal",zS=e=>{const{__scopeDropdownMenu:t,...r}=e,n=ut(t);return u.jsx(Mf,{...n,...r})};zS.displayName=AF;var qS="DropdownMenuContent",HS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=$S(qS,r),a=ut(r),i=f.useRef(!1);return u.jsx(Of,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,s=>{var c;i.current||(c=o.triggerRef.current)==null||c.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:B(e.onInteractOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,p=c.button===2||l;(!o.modal||p)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});HS.displayName=qS;var MF="DropdownMenuGroup",VS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx(If,{...o,...n,ref:t})});VS.displayName=MF;var OF="DropdownMenuLabel",GS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx(jf,{...o,...n,ref:t})});GS.displayName=OF;var IF="DropdownMenuItem",WS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx(Df,{...o,...n,ref:t})});WS.displayName=IF;var jF="DropdownMenuCheckboxItem",US=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx(kf,{...o,...n,ref:t})});US.displayName=jF;var DF="DropdownMenuRadioGroup",KS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx($f,{...o,...n,ref:t})});KS.displayName=DF;var kF="DropdownMenuRadioItem",YS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx(Lf,{...o,...n,ref:t})});YS.displayName=kF;var $F="DropdownMenuItemIndicator",XS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx(Ff,{...o,...n,ref:t})});XS.displayName=$F;var LF="DropdownMenuSeparator",ZS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx(Bf,{...o,...n,ref:t})});ZS.displayName=LF;var FF="DropdownMenuArrow",BF=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx(zf,{...o,...n,ref:t})});BF.displayName=FF;var zF=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,i=ut(t),[s=!1,c]=$e({prop:n,defaultProp:a,onChange:o});return u.jsx(qf,{...i,open:s,onOpenChange:c,children:r})},qF="DropdownMenuSubTrigger",JS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx(Hf,{...o,...n,ref:t})});JS.displayName=qF;var HF="DropdownMenuSubContent",QS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ut(r);return u.jsx(Vf,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});QS.displayName=HF;var VF=LS,GF=BS,eC=zS,tC=HS,WF=VS,rC=GS,nC=WS,oC=US,UF=KS,aC=YS,iC=XS,sC=ZS,KF=zF,cC=JS,lC=QS;const uC=VF,dC=GF,YF=WF,XF=eC,ZF=KF,JF=UF,fC=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>u.jsxs(cC,{ref:o,className:M("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[r,u.jsx(br,{className:"ml-auto"})]}));fC.displayName=cC.displayName;const pC=f.forwardRef(({className:e,...t},r)=>u.jsx(lC,{ref:r,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-dropdown-menu-content-transform-origin]",e),...t}));pC.displayName=lC.displayName;const Xf=f.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(eC,{children:u.jsx(tC,{ref:n,sideOffset:t,className:M("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 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-dropdown-menu-content-transform-origin]",e),...r})}));Xf.displayName=tC.displayName;const Zf=f.forwardRef(({className:e,inset:t,...r},n)=>u.jsx(nC,{ref:n,className:M("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...r}));Zf.displayName=nC.displayName;const mC=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>u.jsxs(oC,{ref:o,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(iC,{children:u.jsx(bn,{className:"h-4 w-4"})})}),t]}));mC.displayName=oC.displayName;const hC=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(aC,{ref:n,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(iC,{children:u.jsx(Ja,{className:"h-2 w-2 fill-current"})})}),t]}));hC.displayName=aC.displayName;const gC=f.forwardRef(({className:e,inset:t,...r},n)=>u.jsx(rC,{ref:n,className:M("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));gC.displayName=rC.displayName;const vC=f.forwardRef(({className:e,...t},r)=>u.jsx(sC,{ref:r,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));vC.displayName=sC.displayName;const bC=({className:e,...t})=>u.jsx("span",{className:M("ml-auto text-xs tracking-widest opacity-60",e),...t});bC.displayName="DropdownMenuShortcut";var QF=e=>e.type==="checkbox",eB=e=>e instanceof Date,yC=e=>e==null;const tB=e=>typeof e=="object";var An=e=>!yC(e)&&!Array.isArray(e)&&tB(e)&&!eB(e),rB=e=>An(e)&&e.target?QF(e.target)?e.target.checked:e.target.value:e,nB=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,oB=(e,t)=>e.has(nB(t)),aB=e=>{const t=e.constructor&&e.constructor.prototype;return An(t)&&t.hasOwnProperty("isPrototypeOf")},iB=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Jf(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(iB&&(e instanceof Blob||n))&&(r||An(e)))if(t=r?[]:{},!r&&!aB(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Jf(e[o]));else return e;return t}var xC=e=>Array.isArray(e)?e.filter(Boolean):[],Uu=e=>e===void 0,vt=(e,t,r)=>{if(!t||!An(e))return r;const n=xC(t.split(/[,[\].]+?/)).reduce((o,a)=>yC(o)?o:o[a],e);return Uu(n)||n===e?Uu(e[t])?r:e[t]:n},ib=e=>typeof e=="boolean",sB=e=>/^\w*$/.test(e),cB=e=>xC(e.replace(/["|']|\]/g,"").split(/\.|\[/)),sb=(e,t,r)=>{let n=-1;const o=sB(t)?[t]:cB(t),a=o.length,i=a-1;for(;++n<a;){const s=o[n];let c=r;if(n!==i){const l=e[s];c=An(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}return e};const cb={BLUR:"blur",CHANGE:"change"},lb={all:"all"},wC=R.createContext(null),Ei=()=>R.useContext(wC),lB=e=>{const{children:t,...r}=e;return R.createElement(wC.Provider,{value:r},t)};var uB=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==lb.all&&(t._proxyFormState[i]=!n||lb.all),r&&(r[i]=!0),e[i]}});return o},dB=e=>An(e)&&!Object.keys(e).length,fB=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return dB(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===!0)},pB=e=>Array.isArray(e)?e:[e],SC=(e,t,r)=>!e||!t||e===t||pB(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function CC(e){const t=R.useRef(e);t.current=e,R.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function mB(e){const t=Ei(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=R.useState(r._formState),c=R.useRef(!0),l=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),p=R.useRef(o);return p.current=o,CC({disabled:n,next:d=>c.current&&SC(p.current,d.name,a)&&fB(d,l.current,r._updateFormState)&&s({...r._formState,...d}),subject:r._subjects.state}),R.useEffect(()=>(c.current=!0,l.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),R.useMemo(()=>uB(i,r,l.current,!1),[i,r])}var hB=e=>typeof e=="string",gB=(e,t,r,n,o)=>hB(e)?vt(r,e,o):Array.isArray(e)?e.map(a=>vt(r,a)):r;function vB(e){const t=Ei(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=R.useRef(n);s.current=n,CC({disabled:a,subject:r._subjects.values,next:p=>{SC(s.current,p.name,i)&&l(Jf(gB(s.current,r._names,p.values||r._formValues,!1,o)))}});const[c,l]=R.useState(r._getWatch(n,o));return R.useEffect(()=>r._removeUnmounted()),c}function bB(e){const t=Ei(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a}=e,i=oB(o._names.array,r),s=vB({control:o,name:r,defaultValue:vt(o._formValues,r,vt(o._defaultValues,r,e.defaultValue)),exact:!0}),c=mB({control:o,name:r,exact:!0}),l=R.useRef(o.register(r,{...e.rules,value:s,...ib(e.disabled)?{disabled:e.disabled}:{}})),p=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!vt(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!vt(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!vt(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!vt(c.validatingFields,r)},error:{enumerable:!0,get:()=>vt(c.errors,r)}}),[c,r]),d=R.useMemo(()=>({name:r,value:s,...ib(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:m=>l.current.onChange({target:{value:rB(m),name:r},type:cb.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:vt(o._formValues,r),name:r},type:cb.BLUR}),ref:m=>{const b=vt(o._fields,r);b&&m&&(b._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:g=>m.setCustomValidity(g),reportValidity:()=>m.reportValidity()})}}),[r,o._formValues,n,c.disabled,s,o._fields]);return R.useEffect(()=>{const m=o._options.shouldUnregister||a,b=(g,h)=>{const v=vt(o._fields,g);v&&v._f&&(v._f.mount=h)};if(b(r,!0),m){const g=Jf(vt(o._options.defaultValues,r));sb(o._defaultValues,r,g),Uu(vt(o._formValues,r))&&sb(o._formValues,r,g)}return!i&&o.register(r),()=>{(i?m&&!o._state.action:m)?o.unregister(r):b(r,!1)}},[r,o,i,a]),R.useEffect(()=>{o._updateDisabledField({disabled:n,fields:o._fields,name:r})},[n,r,o]),R.useMemo(()=>({field:d,formState:c,fieldState:p}),[d,c,p])}const yB=e=>e.render(bB(e));var xB="Label",_C=f.forwardRef((e,t)=>u.jsx(X.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));_C.displayName=xB;var RC=_C;const wB=fr("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),uo=f.forwardRef(({className:e,...t},r)=>u.jsx(RC,{ref:r,className:M(wB(),e),...t}));uo.displayName=RC.displayName;const SB=lB,EC=f.createContext({}),CB=({...e})=>u.jsx(EC.Provider,{value:{name:e.name},children:u.jsx(yB,{...e})}),ko=()=>{const e=f.useContext(EC),t=f.useContext(PC),{getFieldState:r,formState:n}=Ei(),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},PC=f.createContext({}),TC=f.forwardRef(({className:e,...t},r)=>{const n=f.useId();return u.jsx(PC.Provider,{value:{id:n},children:u.jsx("div",{ref:r,className:M("space-y-2",e),...t})})});TC.displayName="FormItem";const NC=f.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:o}=ko();return u.jsx(uo,{ref:r,className:M(n&&"text-destructive",e),htmlFor:o,...t})});NC.displayName="FormLabel";const AC=f.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:o,formMessageId:a}=ko();return u.jsx(ct,{ref:t,id:n,"aria-describedby":r?`${o} ${a}`:`${o}`,"aria-invalid":!!r,...e})});AC.displayName="FormControl";const MC=f.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=ko();return u.jsx("p",{ref:r,id:n,className:M("text-[0.8rem] text-muted-foreground",e),...t})});MC.displayName="FormDescription";const OC=f.forwardRef(({className:e,children:t,...r},n)=>{const{error:o,formMessageId:a}=ko(),i=o?String((o==null?void 0:o.message)??""):t;return i?u.jsx("p",{ref:n,id:a,className:M("text-[0.8rem] font-medium text-destructive",e),...r,children:i}):null});OC.displayName="FormMessage";var uu,Qf="HoverCard",[IC,m3]=De(Qf,[Qt]),Pi=Qt(),[_B,ep]=IC(Qf),jC=e=>{const{__scopeHoverCard:t,children:r,open:n,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,c=Pi(t),l=f.useRef(0),p=f.useRef(0),d=f.useRef(!1),m=f.useRef(!1),[b=!1,g]=$e({prop:n,defaultProp:o,onChange:a}),h=f.useCallback(()=>{clearTimeout(p.current),l.current=window.setTimeout(()=>g(!0),i)},[i,g]),v=f.useCallback(()=>{clearTimeout(l.current),!d.current&&!m.current&&(p.current=window.setTimeout(()=>g(!1),s))},[s,g]),y=f.useCallback(()=>g(!1),[g]);return f.useEffect(()=>()=>{clearTimeout(l.current),clearTimeout(p.current)},[]),u.jsx(_B,{scope:t,open:b,onOpenChange:g,onOpen:h,onClose:v,onDismiss:y,hasSelectionRef:d,isPointerDownOnContentRef:m,children:u.jsx(Tn,{...c,children:r})})};jC.displayName=Qf;var DC="HoverCardTrigger",kC=f.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,o=ep(DC,r),a=Pi(r);return u.jsx(Nn,{asChild:!0,...a,children:u.jsx(X.a,{"data-state":o.open?"open":"closed",...n,ref:t,onPointerEnter:B(e.onPointerEnter,Fa(o.onOpen)),onPointerLeave:B(e.onPointerLeave,Fa(o.onClose)),onFocus:B(e.onFocus,o.onOpen),onBlur:B(e.onBlur,o.onClose),onTouchStart:B(e.onTouchStart,i=>i.preventDefault())})})});kC.displayName=DC;var RB="HoverCardPortal",[h3,EB]=IC(RB,{forceMount:void 0}),La="HoverCardContent",$C=f.forwardRef((e,t)=>{const r=EB(La,e.__scopeHoverCard),{forceMount:n=r.forceMount,...o}=e,a=ep(La,e.__scopeHoverCard);return u.jsx(Le,{present:n||a.open,children:u.jsx(PB,{"data-state":a.open?"open":"closed",...o,onPointerEnter:B(e.onPointerEnter,Fa(a.onOpen)),onPointerLeave:B(e.onPointerLeave,Fa(a.onClose)),ref:t})})});$C.displayName=La;var PB=f.forwardRef((e,t)=>{const{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,c=ep(La,r),l=Pi(r),p=f.useRef(null),d=de(t,p),[m,b]=f.useState(!1);return f.useEffect(()=>{if(m){const g=document.body;return uu=g.style.userSelect||g.style.webkitUserSelect,g.style.userSelect="none",g.style.webkitUserSelect="none",()=>{g.style.userSelect=uu,g.style.webkitUserSelect=uu}}},[m]),f.useEffect(()=>{if(p.current){const g=()=>{b(!1),c.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var v;((v=document.getSelection())==null?void 0:v.toString())!==""&&(c.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",g),()=>{document.removeEventListener("pointerup",g),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}},[c.isPointerDownOnContentRef,c.hasSelectionRef]),f.useEffect(()=>{p.current&&AB(p.current).forEach(h=>h.setAttribute("tabindex","-1"))}),u.jsx(ur,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:B(a,g=>{g.preventDefault()}),onDismiss:c.onDismiss,children:u.jsx(Po,{...l,...s,onPointerDown:B(s.onPointerDown,g=>{g.currentTarget.contains(g.target)&&b(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:m?"text":void 0,WebkitUserSelect:m?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),TB="HoverCardArrow",NB=f.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,o=Pi(r);return u.jsx(To,{...o,...n,ref:t})});NB.displayName=TB;function Fa(e){return t=>t.pointerType==="touch"?void 0:e()}function AB(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}var MB=jC,OB=kC,LC=$C;const IB=MB,jB=OB,FC=f.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>u.jsx(LC,{ref:o,align:t,sideOffset:r,className:M("z-50 w-64 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 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-hover-card-content-transform-origin]",e),...n}));FC.displayName=LC.displayName;var DB=Object.defineProperty,kB=Object.defineProperties,$B=Object.getOwnPropertyDescriptors,Ba=Object.getOwnPropertySymbols,BC=Object.prototype.hasOwnProperty,zC=Object.prototype.propertyIsEnumerable,ub=(e,t,r)=>t in e?DB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,LB=(e,t)=>{for(var r in t||(t={}))BC.call(t,r)&&ub(e,r,t[r]);if(Ba)for(var r of Ba(t))zC.call(t,r)&&ub(e,r,t[r]);return e},FB=(e,t)=>kB(e,$B(t)),BB=(e,t)=>{var r={};for(var n in e)BC.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ba)for(var n of Ba(e))t.indexOf(n)<0&&zC.call(e,n)&&(r[n]=e[n]);return r};function zB(e){let t=setTimeout(e,0),r=setTimeout(e,10),n=setTimeout(e,50);return[t,r,n]}function qB(e){let t=f.useRef();return f.useEffect(()=>{t.current=e}),t.current}var HB=18,qC=40,VB=`${qC}px`,GB=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function WB({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:n}){let[o,a]=f.useState(!1),[i,s]=f.useState(!1),[c,l]=f.useState(!1),p=f.useMemo(()=>r==="none"?!1:(r==="increase-width"||r==="experimental-no-flickering")&&o&&i,[o,i,r]),d=f.useCallback(()=>{let m=e.current,b=t.current;if(!m||!b||c||r==="none")return;let g=m,h=g.getBoundingClientRect().left+g.offsetWidth,v=g.getBoundingClientRect().top+g.offsetHeight/2,y=h-HB,x=v;document.querySelectorAll(GB).length===0&&document.elementFromPoint(y,x)===m||(a(!0),l(!0))},[e,t,c,r]);return f.useEffect(()=>{let m=e.current;if(!m||r==="none")return;function b(){let h=window.innerWidth-m.getBoundingClientRect().right;s(h>=qC)}b();let g=setInterval(b,1e3);return()=>{clearInterval(g)}},[e,r]),f.useEffect(()=>{let m=n||document.activeElement===t.current;if(r==="none"||!m)return;let b=setTimeout(d,0),g=setTimeout(d,2e3),h=setTimeout(d,5e3),v=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(b),clearTimeout(g),clearTimeout(h),clearTimeout(v)}},[t,n,r,d]),{hasPWMBadge:o,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:VB}}var HC=f.createContext({}),VC=f.forwardRef((e,t)=>{var r=e,{value:n,onChange:o,maxLength:a,textAlign:i="left",pattern:s,placeholder:c,inputMode:l="numeric",onComplete:p,pushPasswordManagerStrategy:d="increase-width",pasteTransformer:m,containerClassName:b,noScriptCSSFallback:g=UB,render:h,children:v}=r,y=BB(r,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),x,w,S,_,E;let[C,A]=f.useState(typeof y.defaultValue=="string"?y.defaultValue:""),P=n??C,k=qB(P),j=f.useCallback(I=>{o==null||o(I),A(I)},[o]),L=f.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),N=f.useRef(null),D=f.useRef(null),$=f.useRef({value:P,onChange:j,isIOS:typeof window<"u"&&((w=(x=window==null?void 0:window.CSS)==null?void 0:x.supports)==null?void 0:w.call(x,"-webkit-touch-callout","none"))}),O=f.useRef({prev:[(S=N.current)==null?void 0:S.selectionStart,(_=N.current)==null?void 0:_.selectionEnd,(E=N.current)==null?void 0:E.selectionDirection]});f.useImperativeHandle(t,()=>N.current,[]),f.useEffect(()=>{let I=N.current,ee=D.current;if(!I||!ee)return;$.current.value!==I.value&&$.current.onChange(I.value),O.current.prev=[I.selectionStart,I.selectionEnd,I.selectionDirection];function pe(){if(document.activeElement!==I){te(null),W(null);return}let fe=I.selectionStart,Ee=I.selectionEnd,Fe=I.selectionDirection,we=I.maxLength,Oe=I.value,rt=O.current.prev,Ze=-1,Ue=-1,ot;if(Oe.length!==0&&fe!==null&&Ee!==null){let Ct=fe===Ee,Ke=fe===Oe.length&&Oe.length<we;if(Ct&&!Ke){let Je=fe;if(Je===0)Ze=0,Ue=1,ot="forward";else if(Je===we)Ze=Je-1,Ue=Je,ot="backward";else if(we>1&&Oe.length>1){let Mt=0;if(rt[0]!==null&&rt[1]!==null){ot=Je<rt[1]?"backward":"forward";let Gt=rt[0]===rt[1]&&rt[0]<we;ot==="backward"&&!Gt&&(Mt=-1)}Ze=Mt+Je,Ue=Mt+Je+1}}Ze!==-1&&Ue!==-1&&Ze!==Ue&&N.current.setSelectionRange(Ze,Ue,ot)}let mt=Ze!==-1?Ze:fe,ft=Ue!==-1?Ue:Ee,Ve=ot??Fe;te(mt),W(ft),O.current.prev=[mt,ft,Ve]}if(document.addEventListener("selectionchange",pe,{capture:!0}),pe(),document.activeElement===I&&oe(!0),!document.getElementById("input-otp-style")){let fe=document.createElement("style");if(fe.id="input-otp-style",document.head.appendChild(fe),fe.sheet){let Ee="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Bn(fe.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Bn(fe.sheet,`[data-input-otp]:autofill { ${Ee} }`),Bn(fe.sheet,`[data-input-otp]:-webkit-autofill { ${Ee} }`),Bn(fe.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Bn(fe.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let me=()=>{ee&&ee.style.setProperty("--root-height",`${I.clientHeight}px`)};me();let ge=new ResizeObserver(me);return ge.observe(I),()=>{document.removeEventListener("selectionchange",pe,{capture:!0}),ge.disconnect()}},[]);let[G,H]=f.useState(!1),[z,oe]=f.useState(!1),[Z,te]=f.useState(null),[F,W]=f.useState(null);f.useEffect(()=>{zB(()=>{var I,ee,pe,me;(I=N.current)==null||I.dispatchEvent(new Event("input"));let ge=(ee=N.current)==null?void 0:ee.selectionStart,fe=(pe=N.current)==null?void 0:pe.selectionEnd,Ee=(me=N.current)==null?void 0:me.selectionDirection;ge!==null&&fe!==null&&(te(ge),W(fe),O.current.prev=[ge,fe,Ee])})},[P,z]),f.useEffect(()=>{k!==void 0&&P!==k&&k.length<a&&P.length===a&&(p==null||p(P))},[a,p,k,P]);let Q=WB({containerRef:D,inputRef:N,pushPasswordManagerStrategy:d,isFocused:z}),K=f.useCallback(I=>{let ee=I.currentTarget.value.slice(0,a);if(ee.length>0&&L&&!L.test(ee)){I.preventDefault();return}typeof k=="string"&&ee.length<k.length&&document.dispatchEvent(new Event("selectionchange")),j(ee)},[a,j,k,L]),q=f.useCallback(()=>{var I;if(N.current){let ee=Math.min(N.current.value.length,a-1),pe=N.current.value.length;(I=N.current)==null||I.setSelectionRange(ee,pe),te(ee),W(pe)}oe(!0)},[a]),U=f.useCallback(I=>{var ee,pe;let me=N.current;if(!m&&(!$.current.isIOS||!I.clipboardData||!me))return;let ge=I.clipboardData.getData("text/plain"),fe=m?m(ge):ge;I.preventDefault();let Ee=(ee=N.current)==null?void 0:ee.selectionStart,Fe=(pe=N.current)==null?void 0:pe.selectionEnd,we=(Ee!==Fe?P.slice(0,Ee)+fe+P.slice(Fe):P.slice(0,Ee)+fe+P.slice(Ee)).slice(0,a);if(we.length>0&&L&&!L.test(we))return;me.value=we,j(we);let Oe=Math.min(we.length,a-1),rt=we.length;me.setSelectionRange(Oe,rt),te(Oe),W(rt)},[a,j,L,P]),re=f.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),J=f.useMemo(()=>({position:"absolute",inset:0,width:Q.willPushPWMBadge?`calc(100% + ${Q.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Q.willPushPWMBadge?`inset(0 ${Q.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:i,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Q.PWM_BADGE_SPACE_WIDTH,Q.willPushPWMBadge,i]),ne=f.useMemo(()=>f.createElement("input",FB(LB({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":P.length===0||void 0,"data-input-otp-mss":Z,"data-input-otp-mse":F,inputMode:l,pattern:L==null?void 0:L.source,"aria-placeholder":c,style:J,maxLength:a,value:P,ref:N,onPaste:I=>{var ee;U(I),(ee=y.onPaste)==null||ee.call(y,I)},onChange:K,onMouseOver:I=>{var ee;H(!0),(ee=y.onMouseOver)==null||ee.call(y,I)},onMouseLeave:I=>{var ee;H(!1),(ee=y.onMouseLeave)==null||ee.call(y,I)},onFocus:I=>{var ee;q(),(ee=y.onFocus)==null||ee.call(y,I)},onBlur:I=>{var ee;oe(!1),(ee=y.onBlur)==null||ee.call(y,I)}})),[K,q,U,l,J,a,F,Z,y,L==null?void 0:L.source,P]),V=f.useMemo(()=>({slots:Array.from({length:a}).map((I,ee)=>{var pe;let me=z&&Z!==null&&F!==null&&(Z===F&&ee===Z||ee>=Z&&ee<F),ge=P[ee]!==void 0?P[ee]:null,fe=P[0]!==void 0?null:(pe=c==null?void 0:c[ee])!=null?pe:null;return{char:ge,placeholderChar:fe,isActive:me,hasFakeCaret:me&&ge===null}}),isFocused:z,isHovering:!y.disabled&&G}),[z,G,a,F,Z,y.disabled,P]),ae=f.useMemo(()=>h?h(V):f.createElement(HC.Provider,{value:V},v),[v,V,h]);return f.createElement(f.Fragment,null,g!==null&&f.createElement("noscript",null,f.createElement("style",null,g)),f.createElement("div",{ref:D,"data-input-otp-container":!0,style:re,className:b},ae,f.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ne)))});VC.displayName="Input";function Bn(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var UB=`
|
|
219
|
-
[data-input-otp] {
|
|
220
|
-
--nojs-bg: white !important;
|
|
221
|
-
--nojs-fg: black !important;
|
|
222
|
-
|
|
223
|
-
background-color: var(--nojs-bg) !important;
|
|
224
|
-
color: var(--nojs-fg) !important;
|
|
225
|
-
caret-color: var(--nojs-fg) !important;
|
|
226
|
-
letter-spacing: .25em !important;
|
|
227
|
-
text-align: center !important;
|
|
228
|
-
border: 1px solid var(--nojs-fg) !important;
|
|
229
|
-
border-radius: 4px !important;
|
|
230
|
-
width: 100% !important;
|
|
231
|
-
}
|
|
232
|
-
@media (prefers-color-scheme: dark) {
|
|
233
|
-
[data-input-otp] {
|
|
234
|
-
--nojs-bg: black !important;
|
|
235
|
-
--nojs-fg: white !important;
|
|
236
|
-
}
|
|
237
|
-
}`;const GC=f.forwardRef(({className:e,containerClassName:t,...r},n)=>u.jsx(VC,{ref:n,containerClassName:M("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:M("disabled:cursor-not-allowed",e),...r}));GC.displayName="InputOTP";const WC=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:M("flex items-center",e),...t}));WC.displayName="InputOTPGroup";const UC=f.forwardRef(({index:e,className:t,...r},n)=>{const o=f.useContext(HC),{char:a,hasFakeCaret:i,isActive:s}=o.slots[e];return u.jsxs("div",{ref:n,className:M("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",s&&"z-10 ring-1 ring-ring",t),...r,children:[a,i&&u.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:u.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});UC.displayName="InputOTPSlot";const KC=f.forwardRef(({...e},t)=>u.jsx("div",{ref:t,role:"separator",...e,children:u.jsx(Y1,{})}));KC.displayName="InputOTPSeparator";const fo=f.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,className:M("flex h-9 w-full rounded-md border focus:border-[--primary] border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));fo.displayName="Input";var Ti="Menubar",[Ku,KB,YB]=cr(Ti),[YC,g3]=De(Ti,[YB,er]),dt=Oo(),XC=er(),[XB,tp]=YC(Ti),ZC=f.forwardRef((e,t)=>{const{__scopeMenubar:r,value:n,onValueChange:o,defaultValue:a,loop:i=!0,dir:s,...c}=e,l=Bt(s),p=XC(r),[d="",m]=$e({prop:n,onChange:o,defaultProp:a}),[b,g]=f.useState(null);return u.jsx(XB,{scope:r,value:d,onMenuOpen:f.useCallback(h=>{m(h),g(h)},[m]),onMenuClose:f.useCallback(()=>m(""),[m]),onMenuToggle:f.useCallback(h=>{m(v=>v?"":h),g(h)},[m]),dir:l,loop:i,children:u.jsx(Ku.Provider,{scope:r,children:u.jsx(Ku.Slot,{scope:r,children:u.jsx(No,{asChild:!0,...p,orientation:"horizontal",loop:i,dir:l,currentTabStopId:b,onCurrentTabStopIdChange:g,children:u.jsx(X.div,{role:"menubar",...c,ref:t})})})})})});ZC.displayName=Ti;var rp="MenubarMenu",[ZB,JC]=YC(rp),QC=e=>{const{__scopeMenubar:t,value:r,...n}=e,o=We(),a=r||o||"LEGACY_REACT_AUTO_VALUE",i=tp(rp,t),s=dt(t),c=f.useRef(null),l=f.useRef(!1),p=i.value===a;return f.useEffect(()=>{p||(l.current=!1)},[p]),u.jsx(ZB,{scope:t,value:a,triggerId:We(),triggerRef:c,contentId:We(),wasKeyboardTriggerOpenRef:l,children:u.jsx(Nf,{...s,open:p,onOpenChange:d=>{d||i.onMenuClose()},modal:!1,dir:i.dir,...n})})};QC.displayName=rp;var Yu="MenubarTrigger",e_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,disabled:n=!1,...o}=e,a=XC(r),i=dt(r),s=tp(Yu,r),c=JC(Yu,r),l=f.useRef(null),p=de(t,l,c.triggerRef),[d,m]=f.useState(!1),b=s.value===c.value;return u.jsx(Ku.ItemSlot,{scope:r,value:c.value,disabled:n,children:u.jsx(Ao,{asChild:!0,...a,focusable:!n,tabStopId:c.value,children:u.jsx(Af,{asChild:!0,...i,children:u.jsx(X.button,{type:"button",role:"menuitem",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":b,"aria-controls":b?c.contentId:void 0,"data-highlighted":d?"":void 0,"data-state":b?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:p,onPointerDown:B(e.onPointerDown,g=>{!n&&g.button===0&&g.ctrlKey===!1&&(s.onMenuOpen(c.value),b||g.preventDefault())}),onPointerEnter:B(e.onPointerEnter,()=>{var h;!!s.value&&!b&&(s.onMenuOpen(c.value),(h=l.current)==null||h.focus())}),onKeyDown:B(e.onKeyDown,g=>{n||(["Enter"," "].includes(g.key)&&s.onMenuToggle(c.value),g.key==="ArrowDown"&&s.onMenuOpen(c.value),["Enter"," ","ArrowDown"].includes(g.key)&&(c.wasKeyboardTriggerOpenRef.current=!0,g.preventDefault()))}),onFocus:B(e.onFocus,()=>m(!0)),onBlur:B(e.onBlur,()=>m(!1))})})})})});e_.displayName=Yu;var JB="MenubarPortal",t_=e=>{const{__scopeMenubar:t,...r}=e,n=dt(t);return u.jsx(Mf,{...n,...r})};t_.displayName=JB;var Xu="MenubarContent",r_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,align:n="start",...o}=e,a=dt(r),i=tp(Xu,r),s=JC(Xu,r),c=KB(r),l=f.useRef(!1);return u.jsx(Of,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":"",...a,...o,ref:t,align:n,onCloseAutoFocus:B(e.onCloseAutoFocus,p=>{var m;!!!i.value&&!l.current&&((m=s.triggerRef.current)==null||m.focus()),l.current=!1,p.preventDefault()}),onFocusOutside:B(e.onFocusOutside,p=>{const d=p.target;c().some(b=>{var g;return(g=b.ref.current)==null?void 0:g.contains(d)})&&p.preventDefault()}),onInteractOutside:B(e.onInteractOutside,()=>{l.current=!0}),onEntryFocus:p=>{s.wasKeyboardTriggerOpenRef.current||p.preventDefault()},onKeyDown:B(e.onKeyDown,p=>{if(["ArrowRight","ArrowLeft"].includes(p.key)){const d=p.target,m=d.hasAttribute("data-radix-menubar-subtrigger"),b=d.closest("[data-radix-menubar-content]")!==p.currentTarget,h=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===p.key;if(!h&&m||b&&h)return;let x=c().filter(_=>!_.disabled).map(_=>_.value);h&&x.reverse();const w=x.indexOf(s.value);x=i.loop?fz(x,w+1):x.slice(w+1);const[S]=x;S&&i.onMenuOpen(S)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});r_.displayName=Xu;var QB="MenubarGroup",n_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx(If,{...o,...n,ref:t})});n_.displayName=QB;var ez="MenubarLabel",o_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx(jf,{...o,...n,ref:t})});o_.displayName=ez;var tz="MenubarItem",a_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx(Df,{...o,...n,ref:t})});a_.displayName=tz;var rz="MenubarCheckboxItem",i_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx(kf,{...o,...n,ref:t})});i_.displayName=rz;var nz="MenubarRadioGroup",s_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx($f,{...o,...n,ref:t})});s_.displayName=nz;var oz="MenubarRadioItem",c_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx(Lf,{...o,...n,ref:t})});c_.displayName=oz;var az="MenubarItemIndicator",l_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx(Ff,{...o,...n,ref:t})});l_.displayName=az;var iz="MenubarSeparator",u_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx(Bf,{...o,...n,ref:t})});u_.displayName=iz;var sz="MenubarArrow",cz=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx(zf,{...o,...n,ref:t})});cz.displayName=sz;var lz="MenubarSub",d_=e=>{const{__scopeMenubar:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,i=dt(t),[s=!1,c]=$e({prop:n,defaultProp:a,onChange:o});return u.jsx(qf,{...i,open:s,onOpenChange:c,children:r})};d_.displayName=lz;var uz="MenubarSubTrigger",f_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx(Hf,{"data-radix-menubar-subtrigger":"",...o,...n,ref:t})});f_.displayName=uz;var dz="MenubarSubContent",p_=f.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=dt(r);return u.jsx(Vf,{...o,"data-radix-menubar-content":"",...n,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});p_.displayName=dz;function fz(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var m_=ZC,pz=QC,h_=e_,g_=t_,v_=r_,mz=n_,b_=o_,y_=a_,x_=i_,hz=s_,w_=c_,S_=l_,C_=u_,gz=d_,__=f_,R_=p_;function vz({...e}){return u.jsx(pz,{...e})}function bz({...e}){return u.jsx(mz,{...e})}function yz({...e}){return u.jsx(g_,{...e})}function xz({...e}){return u.jsx(hz,{...e})}function wz({...e}){return u.jsx(gz,{"data-slot":"menubar-sub",...e})}const E_=f.forwardRef(({className:e,...t},r)=>u.jsx(m_,{ref:r,className:M("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));E_.displayName=m_.displayName;const P_=f.forwardRef(({className:e,...t},r)=>u.jsx(h_,{ref:r,className:M("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));P_.displayName=h_.displayName;const T_=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>u.jsxs(__,{ref:o,className:M("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...n,children:[r,u.jsx(br,{className:"ml-auto h-4 w-4"})]}));T_.displayName=__.displayName;const N_=f.forwardRef(({className:e,...t},r)=>u.jsx(R_,{ref:r,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-menubar-content-transform-origin]",e),...t}));N_.displayName=R_.displayName;const A_=f.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:n=8,...o},a)=>u.jsx(g_,{children:u.jsx(v_,{ref:a,align:t,alignOffset:r,sideOffset:n,className:M("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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-menubar-content-transform-origin]",e),...o})}));A_.displayName=v_.displayName;const M_=f.forwardRef(({className:e,inset:t,...r},n)=>u.jsx(y_,{ref:n,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));M_.displayName=y_.displayName;const O_=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>u.jsxs(x_,{ref:o,className:M("relative flex 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),checked:r,...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(S_,{children:u.jsx(bn,{className:"h-4 w-4"})})}),t]}));O_.displayName=x_.displayName;const I_=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(w_,{ref:n,className:M("relative flex 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),...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(S_,{children:u.jsx(Ja,{className:"h-4 w-4 fill-current"})})}),t]}));I_.displayName=w_.displayName;const j_=f.forwardRef(({className:e,inset:t,...r},n)=>u.jsx(b_,{ref:n,className:M("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));j_.displayName=b_.displayName;const D_=f.forwardRef(({className:e,...t},r)=>u.jsx(C_,{ref:r,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));D_.displayName=C_.displayName;const k_=({className:e,...t})=>u.jsx("span",{className:M("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});k_.displayname="MenubarShortcut";var Sz="VisuallyHidden",$o=f.forwardRef((e,t)=>u.jsx(X.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));$o.displayName=Sz;var $_=$o,Mn="NavigationMenu",[np,L_,Cz]=cr(Mn),[Zu,_z,Rz]=cr(Mn),[op,v3]=De(Mn,[Cz,Rz]),[Ez,Nt]=op(Mn),[Pz,Tz]=op(Mn),F_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:c="horizontal",dir:l,...p}=e,[d,m]=f.useState(null),b=de(t,P=>m(P)),g=Bt(l),h=f.useRef(0),v=f.useRef(0),y=f.useRef(0),[x,w]=f.useState(!0),[S="",_]=$e({prop:n,onChange:P=>{const k=P!=="",j=s>0;k?(window.clearTimeout(y.current),j&&w(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>w(!0),s)),o==null||o(P)},defaultProp:a}),E=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>_(""),150)},[_]),C=f.useCallback(P=>{window.clearTimeout(v.current),_(P)},[_]),A=f.useCallback(P=>{S===P?window.clearTimeout(v.current):h.current=window.setTimeout(()=>{window.clearTimeout(v.current),_(P)},i)},[S,_,i]);return f.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(v.current),window.clearTimeout(y.current)},[]),u.jsx(z_,{scope:r,isRootMenu:!0,value:S,dir:g,orientation:c,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(h.current),x?A(P):C(P)},onTriggerLeave:()=>{window.clearTimeout(h.current),E()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:E,onItemSelect:P=>{_(k=>k===P?"":P)},onItemDismiss:()=>_(""),children:u.jsx(X.nav,{"aria-label":"Main","data-orientation":c,dir:g,...p,ref:b})})});F_.displayName=Mn;var B_="NavigationMenuSub",Nz=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,c=Nt(B_,r),[l="",p]=$e({prop:n,onChange:o,defaultProp:a});return u.jsx(z_,{scope:r,isRootMenu:!1,value:l,dir:c.dir,orientation:i,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:d=>p(d),onItemSelect:d=>p(d),onItemDismiss:()=>p(""),children:u.jsx(X.div,{"data-orientation":i,...s,ref:t})})});Nz.displayName=B_;var z_=e=>{const{scope:t,isRootMenu:r,rootNavigationMenu:n,dir:o,orientation:a,children:i,value:s,onItemSelect:c,onItemDismiss:l,onTriggerEnter:p,onTriggerLeave:d,onContentEnter:m,onContentLeave:b}=e,[g,h]=f.useState(null),[v,y]=f.useState(new Map),[x,w]=f.useState(null);return u.jsx(Ez,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:Rn(s),baseId:We(),dir:o,orientation:a,viewport:g,onViewportChange:h,indicatorTrack:x,onIndicatorTrackChange:w,onTriggerEnter:Te(p),onTriggerLeave:Te(d),onContentEnter:Te(m),onContentLeave:Te(b),onItemSelect:Te(c),onItemDismiss:Te(l),onViewportContentChange:f.useCallback((S,_)=>{y(E=>(E.set(S,_),new Map(E)))},[]),onViewportContentRemove:f.useCallback(S=>{y(_=>_.has(S)?(_.delete(S),new Map(_)):_)},[]),children:u.jsx(np.Provider,{scope:t,children:u.jsx(Pz,{scope:t,items:v,children:i})})})},q_="NavigationMenuList",H_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Nt(q_,r),a=u.jsx(X.ul,{"data-orientation":o.orientation,...n,ref:t});return u.jsx(X.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:u.jsx(np.Slot,{scope:r,children:o.isRootMenu?u.jsx(Q_,{asChild:!0,children:a}):a})})});H_.displayName=q_;var V_="NavigationMenuItem",[Az,G_]=op(V_),W_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,...o}=e,a=We(),i=n||a||"LEGACY_REACT_AUTO_VALUE",s=f.useRef(null),c=f.useRef(null),l=f.useRef(null),p=f.useRef(()=>{}),d=f.useRef(!1),m=f.useCallback((g="start")=>{if(s.current){p.current();const h=Qu(s.current);h.length&&sp(g==="start"?h:h.reverse())}},[]),b=f.useCallback(()=>{if(s.current){const g=Qu(s.current);g.length&&(p.current=$z(g))}},[]);return u.jsx(Az,{scope:r,value:i,triggerRef:c,contentRef:s,focusProxyRef:l,wasEscapeCloseRef:d,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:b,onContentFocusOutside:b,children:u.jsx(X.li,{...o,ref:t})})});W_.displayName=V_;var Ju="NavigationMenuTrigger",U_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,disabled:n,...o}=e,a=Nt(Ju,e.__scopeNavigationMenu),i=G_(Ju,e.__scopeNavigationMenu),s=f.useRef(null),c=de(s,i.triggerRef,t),l=tR(a.baseId,i.value),p=rR(a.baseId,i.value),d=f.useRef(!1),m=f.useRef(!1),b=i.value===a.value;return u.jsxs(u.Fragment,{children:[u.jsx(np.ItemSlot,{scope:r,value:i.value,children:u.jsx(eR,{asChild:!0,children:u.jsx(X.button,{id:l,disabled:n,"data-disabled":n?"":void 0,"data-state":cp(b),"aria-expanded":b,"aria-controls":p,...o,ref:c,onPointerEnter:B(e.onPointerEnter,()=>{m.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:B(e.onPointerMove,za(()=>{n||m.current||i.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(i.value),d.current=!0)})),onPointerLeave:B(e.onPointerLeave,za(()=>{n||(a.onTriggerLeave(),d.current=!1)})),onClick:B(e.onClick,()=>{a.onItemSelect(i.value),m.current=b}),onKeyDown:B(e.onKeyDown,g=>{const v={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];b&&g.key===v&&(i.onEntryKeyDown(),g.preventDefault())})})})}),b&&u.jsxs(u.Fragment,{children:[u.jsx($_,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const h=i.contentRef.current,v=g.relatedTarget,y=v===s.current,x=h==null?void 0:h.contains(v);(y||!x)&&i.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&u.jsx("span",{"aria-owns":p})]})]})});U_.displayName=Ju;var Mz="NavigationMenuLink",db="navigationMenu.linkSelect",K_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,active:n,onSelect:o,...a}=e;return u.jsx(eR,{asChild:!0,children:u.jsx(X.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...a,ref:t,onClick:B(e.onClick,i=>{const s=i.target,c=new CustomEvent(db,{bubbles:!0,cancelable:!0});if(s.addEventListener(db,l=>o==null?void 0:o(l),{once:!0}),Zn(s,c),!c.defaultPrevented&&!i.metaKey){const l=new CustomEvent(ha,{bubbles:!0,cancelable:!0});Zn(s,l)}},{checkForDefaultPrevented:!1})})})});K_.displayName=Mz;var ap="NavigationMenuIndicator",Y_=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Nt(ap,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?Ya.createPortal(u.jsx(Le,{present:r||a,children:u.jsx(Oz,{...n,ref:t})}),o.indicatorTrack):null});Y_.displayName=ap;var Oz=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Nt(ap,r),a=L_(r),[i,s]=f.useState(null),[c,l]=f.useState(null),p=o.orientation==="horizontal",d=!!o.value;f.useEffect(()=>{var h;const g=(h=a().find(v=>v.value===o.value))==null?void 0:h.ref.current;g&&s(g)},[a,o.value]);const m=()=>{i&&l({size:p?i.offsetWidth:i.offsetHeight,offset:p?i.offsetLeft:i.offsetTop})};return ed(i,m),ed(o.indicatorTrack,m),c?u.jsx(X.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":o.orientation,...n,ref:t,style:{position:"absolute",...p?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...n.style}}):null}),pn="NavigationMenuContent",X_=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Nt(pn,e.__scopeNavigationMenu),a=G_(pn,e.__scopeNavigationMenu),i=de(a.contentRef,t),s=a.value===o.value,c={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...n};return o.viewport?u.jsx(Iz,{forceMount:r,...c,ref:i}):u.jsx(Le,{present:r||s,children:u.jsx(Z_,{"data-state":cp(s),...c,ref:i,onPointerEnter:B(e.onPointerEnter,o.onContentEnter),onPointerLeave:B(e.onPointerLeave,za(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...c.style}})})});X_.displayName=pn;var Iz=f.forwardRef((e,t)=>{const r=Nt(pn,e.__scopeNavigationMenu),{onViewportContentChange:n,onViewportContentRemove:o}=r;return He(()=>{n(e.value,{ref:t,...e})},[e,t,n]),He(()=>()=>o(e.value),[e.value,o]),null}),ha="navigationMenu.rootContentDismiss",Z_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:c,...l}=e,p=Nt(pn,r),d=f.useRef(null),m=de(d,t),b=tR(p.baseId,n),g=rR(p.baseId,n),h=L_(r),v=f.useRef(null),{onItemDismiss:y}=p;f.useEffect(()=>{const w=d.current;if(p.isRootMenu&&w){const S=()=>{var _;y(),s(),w.contains(document.activeElement)&&((_=o.current)==null||_.focus())};return w.addEventListener(ha,S),()=>w.removeEventListener(ha,S)}},[p.isRootMenu,e.value,o,y,s]);const x=f.useMemo(()=>{const S=h().map(k=>k.value);p.dir==="rtl"&&S.reverse();const _=S.indexOf(p.value),E=S.indexOf(p.previousValue),C=n===p.value,A=E===S.indexOf(n);if(!C&&!A)return v.current;const P=(()=>{if(_!==E){if(C&&E!==-1)return _>E?"from-end":"from-start";if(A&&_!==-1)return _>E?"to-start":"to-end"}return null})();return v.current=P,P},[p.previousValue,p.value,p.dir,h,n]);return u.jsx(Q_,{asChild:!0,children:u.jsx(ur,{id:g,"aria-labelledby":b,"data-motion":x,"data-orientation":p.orientation,...l,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const w=new Event(ha,{bubbles:!0,cancelable:!0});(S=d.current)==null||S.dispatchEvent(w)},onFocusOutside:B(e.onFocusOutside,w=>{var _;c();const S=w.target;(_=p.rootNavigationMenu)!=null&&_.contains(S)&&w.preventDefault()}),onPointerDownOutside:B(e.onPointerDownOutside,w=>{var C;const S=w.target,_=h().some(A=>{var P;return(P=A.ref.current)==null?void 0:P.contains(S)}),E=p.isRootMenu&&((C=p.viewport)==null?void 0:C.contains(S));(_||E||!p.isRootMenu)&&w.preventDefault()}),onKeyDown:B(e.onKeyDown,w=>{var E;const S=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!S){const C=Qu(w.currentTarget),A=document.activeElement,P=C.findIndex(L=>L===A),j=w.shiftKey?C.slice(0,P).reverse():C.slice(P+1,C.length);sp(j)?w.preventDefault():(E=a.current)==null||E.focus()}}),onEscapeKeyDown:B(e.onEscapeKeyDown,w=>{i.current=!0})})})}),ip="NavigationMenuViewport",J_=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=!!Nt(ip,e.__scopeNavigationMenu).value;return u.jsx(Le,{present:r||a,children:u.jsx(jz,{...n,ref:t})})});J_.displayName=ip;var jz=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,children:n,...o}=e,a=Nt(ip,r),i=de(t,a.onViewportChange),s=Tz(pn,e.__scopeNavigationMenu),[c,l]=f.useState(null),[p,d]=f.useState(null),m=c?(c==null?void 0:c.width)+"px":void 0,b=c?(c==null?void 0:c.height)+"px":void 0,g=!!a.value,h=g?a.value:a.previousValue;return ed(p,()=>{p&&l({width:p.offsetWidth,height:p.offsetHeight})}),u.jsx(X.div,{"data-state":cp(g),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!g&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":b,...o.style},onPointerEnter:B(e.onPointerEnter,a.onContentEnter),onPointerLeave:B(e.onPointerLeave,za(a.onContentLeave)),children:Array.from(s.items).map(([y,{ref:x,forceMount:w,...S}])=>{const _=h===y;return u.jsx(Le,{present:w||_,children:u.jsx(Z_,{...S,ref:vo(x,E=>{_&&E&&d(E)})})},y)})})}),Dz="FocusGroup",Q_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Nt(Dz,r);return u.jsx(Zu.Provider,{scope:r,children:u.jsx(Zu.Slot,{scope:r,children:u.jsx(X.div,{dir:o.dir,...n,ref:t})})})}),fb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],kz="FocusGroupItem",eR=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=_z(r),a=Nt(kz,r);return u.jsx(Zu.ItemSlot,{scope:r,children:u.jsx(X.button,{...n,ref:t,onKeyDown:B(e.onKeyDown,i=>{if(["Home","End",...fb].includes(i.key)){let c=o().map(d=>d.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&c.reverse(),fb.includes(i.key)){const d=c.indexOf(i.currentTarget);c=c.slice(d+1)}setTimeout(()=>sp(c)),i.preventDefault()}})})})});function Qu(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function sp(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}function $z(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const r=t.dataset.tabindex;t.setAttribute("tabindex",r)})}}function ed(e,t){const r=Te(t);He(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function cp(e){return e?"open":"closed"}function tR(e,t){return`${e}-trigger-${t}`}function rR(e,t){return`${e}-content-${t}`}function za(e){return t=>t.pointerType==="mouse"?e(t):void 0}var nR=F_,oR=H_,Lz=W_,aR=U_,Fz=K_,iR=Y_,sR=X_,cR=J_;const lR=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(nR,{ref:n,className:M("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,u.jsx(lp,{})]}));lR.displayName=nR.displayName;const uR=f.forwardRef(({className:e,...t},r)=>u.jsx(oR,{ref:r,className:M("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));uR.displayName=oR.displayName;const Bz=Lz,dR=fr("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),fR=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(aR,{ref:n,className:M(dR(),"group",e),...r,children:[t," ",u.jsx(bo,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));fR.displayName=aR.displayName;const pR=f.forwardRef(({className:e,...t},r)=>u.jsx(sR,{ref:r,className:M("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));pR.displayName=sR.displayName;const zz=Fz,lp=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{className:M("absolute left-0 top-full flex justify-center"),children:u.jsx(cR,{className:M("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:r,...t})}));lp.displayName=cR.displayName;const mR=f.forwardRef(({className:e,...t},r)=>u.jsx(iR,{ref:r,className:M("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:u.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));mR.displayName=iR.displayName;const hR=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:M("mx-auto flex w-full justify-center",e),...t});hR.displayName="Pagination";const gR=f.forwardRef(({className:e,...t},r)=>u.jsx("ul",{ref:r,className:M("flex flex-row items-center gap-1",e),...t}));gR.displayName="PaginationContent";const vR=f.forwardRef(({className:e,...t},r)=>u.jsx("li",{ref:r,className:M("",e),...t}));vR.displayName="PaginationItem";const Ni=({className:e,isActive:t,size:r="icon",...n})=>u.jsx("a",{"aria-current":t?"page":void 0,className:M(wo({variant:t?"outline":"ghost",size:r}),e),...n});Ni.displayName="PaginationLink";const bR=({className:e,...t})=>u.jsxs(Ni,{"aria-label":"Go to previous page",size:"default",className:M("gap-1 pl-2.5",e),...t,children:[u.jsx(L1,{className:"h-4 w-4"}),u.jsx("span",{children:"Previous"})]});bR.displayName="PaginationPrevious";const yR=({className:e,...t})=>u.jsxs(Ni,{"aria-label":"Go to next page",size:"default",className:M("gap-1 pr-2.5",e),...t,children:[u.jsx("span",{children:"Next"}),u.jsx(br,{className:"h-4 w-4"})]});yR.displayName="PaginationNext";const xR=({className:e,...t})=>u.jsxs("span",{"aria-hidden":!0,className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[u.jsx(Td,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"More pages"})]});xR.displayName="PaginationEllipsis";var up="Popover",[wR,b3]=De(up,[Qt]),Lo=Qt(),[qz,_r]=wR(up),SR=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=Lo(t),c=f.useRef(null),[l,p]=f.useState(!1),[d=!1,m]=$e({prop:n,defaultProp:o,onChange:a});return u.jsx(Tn,{...s,children:u.jsx(qz,{scope:t,contentId:We(),triggerRef:c,open:d,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(b=>!b),[m]),hasCustomAnchor:l,onCustomAnchorAdd:f.useCallback(()=>p(!0),[]),onCustomAnchorRemove:f.useCallback(()=>p(!1),[]),modal:i,children:r})})};SR.displayName=up;var CR="PopoverAnchor",_R=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=_r(CR,r),a=Lo(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(i(),()=>s()),[i,s]),u.jsx(Nn,{...a,...n,ref:t})});_R.displayName=CR;var RR="PopoverTrigger",ER=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=_r(RR,r),a=Lo(r),i=de(t,o.triggerRef),s=u.jsx(X.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":MR(o.open),...n,ref:i,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:u.jsx(Nn,{asChild:!0,...a,children:s})});ER.displayName=RR;var dp="PopoverPortal",[Hz,Vz]=wR(dp,{forceMount:void 0}),PR=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=_r(dp,t);return u.jsx(Hz,{scope:t,forceMount:r,children:u.jsx(Le,{present:r||a.open,children:u.jsx(zr,{asChild:!0,container:o,children:n})})})};PR.displayName=dp;var mn="PopoverContent",TR=f.forwardRef((e,t)=>{const r=Vz(mn,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=_r(mn,e.__scopePopover);return u.jsx(Le,{present:n||a.open,children:a.modal?u.jsx(Gz,{...o,ref:t}):u.jsx(Wz,{...o,ref:t})})});TR.displayName=mn;var Gz=f.forwardRef((e,t)=>{const r=_r(mn,e.__scopePopover),n=f.useRef(null),o=de(t,n),a=f.useRef(!1);return f.useEffect(()=>{const i=n.current;if(i)return ti(i)},[]),u.jsx(xo,{as:ct,allowPinchZoom:!0,children:u.jsx(NR,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:B(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:B(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Wz=f.forwardRef((e,t)=>{const r=_r(mn,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return u.jsx(NR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),NR=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:p,...d}=e,m=_r(mn,r),b=Lo(r);return Qa(),u.jsx(yo,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ur,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>m.onOpenChange(!1),children:u.jsx(Po,{"data-state":MR(m.open),role:"dialog",id:m.contentId,...b,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),AR="PopoverClose",Uz=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=_r(AR,r);return u.jsx(X.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});Uz.displayName=AR;var Kz="PopoverArrow",Yz=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Lo(r);return u.jsx(To,{...o,...n,ref:t})});Yz.displayName=Kz;function MR(e){return e?"open":"closed"}var Xz=SR,Zz=_R,Jz=ER,Qz=PR,OR=TR;const e5=Xz,t5=Jz,r5=Zz,IR=f.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>u.jsx(Qz,{children:u.jsx(OR,{ref:o,align:t,sideOffset:r,className:M("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 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-popover-content-transform-origin]",e),...n})}));IR.displayName=OR.displayName;var fp="Progress",pp=100,[n5,y3]=De(fp),[o5,a5]=n5(fp),jR=f.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=i5,...i}=e;(o||o===0)&&!pb(o)&&console.error(s5(`${o}`,"Progress"));const s=pb(o)?o:pp;n!==null&&!mb(n,s)&&console.error(c5(`${n}`,"Progress"));const c=mb(n,s)?n:null,l=qa(c)?a(c,s):void 0;return u.jsx(o5,{scope:r,value:c,max:s,children:u.jsx(X.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":qa(c)?c:void 0,"aria-valuetext":l,role:"progressbar","data-state":$R(c,s),"data-value":c??void 0,"data-max":s,...i,ref:t})})});jR.displayName=fp;var DR="ProgressIndicator",kR=f.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=a5(DR,r);return u.jsx(X.div,{"data-state":$R(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});kR.displayName=DR;function i5(e,t){return`${Math.round(e/t*100)}%`}function $R(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function qa(e){return typeof e=="number"}function pb(e){return qa(e)&&!isNaN(e)&&e>0}function mb(e,t){return qa(e)&&!isNaN(e)&&e<=t&&e>=0}function s5(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${pp}\`.`}function c5(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
238
|
-
- a positive number
|
|
239
|
-
- less than the value passed to \`max\` (or ${pp} if no \`max\` prop is set)
|
|
240
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
241
|
-
|
|
242
|
-
Defaulting to \`null\`.`}var LR=jR,l5=kR;const FR=f.forwardRef(({className:e,value:t,...r},n)=>u.jsx(LR,{ref:n,className:M("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...r,children:u.jsx(l5,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));FR.displayName=LR.displayName;var mp="Radio",[u5,BR]=De(mp),[d5,f5]=u5(mp),zR=f.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:c,form:l,...p}=e,[d,m]=f.useState(null),b=de(t,v=>m(v)),g=f.useRef(!1),h=d?l||!!d.closest("form"):!0;return u.jsxs(d5,{scope:r,checked:o,disabled:i,children:[u.jsx(X.button,{type:"button",role:"radio","aria-checked":o,"data-state":VR(o),"data-disabled":i?"":void 0,disabled:i,value:s,...p,ref:b,onClick:B(e.onClick,v=>{o||c==null||c(),h&&(g.current=v.isPropagationStopped(),g.current||v.stopPropagation())})}),h&&u.jsx(p5,{control:d,bubbles:!g.current,name:n,value:s,checked:o,required:a,disabled:i,form:l,style:{transform:"translateX(-100%)"}})]})});zR.displayName=mp;var qR="RadioIndicator",HR=f.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=f5(qR,r);return u.jsx(Le,{present:n||a.checked,children:u.jsx(X.span,{"data-state":VR(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});HR.displayName=qR;var p5=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,a=f.useRef(null),i=Rn(r),s=Ro(t);return f.useEffect(()=>{const c=a.current,l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"checked").set;if(i!==r&&d){const m=new Event("click",{bubbles:n});d.call(c,r),c.dispatchEvent(m)}},[i,r,n]),u.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function VR(e){return e?"checked":"unchecked"}var m5=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],hp="RadioGroup",[h5,x3]=De(hp,[er,BR]),GR=er(),WR=BR(),[g5,v5]=h5(hp),UR=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:c,dir:l,loop:p=!0,onValueChange:d,...m}=e,b=GR(r),g=Bt(l),[h,v]=$e({prop:a,defaultProp:o,onChange:d});return u.jsx(g5,{scope:r,name:n,required:i,disabled:s,value:h,onValueChange:v,children:u.jsx(No,{asChild:!0,...b,orientation:c,dir:g,loop:p,children:u.jsx(X.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:g,...m,ref:t})})})});UR.displayName=hp;var KR="RadioGroupItem",YR=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=v5(KR,r),i=a.disabled||n,s=GR(r),c=WR(r),l=f.useRef(null),p=de(t,l),d=a.value===o.value,m=f.useRef(!1);return f.useEffect(()=>{const b=h=>{m5.includes(h.key)&&(m.current=!0)},g=()=>m.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",g)}},[]),u.jsx(Ao,{asChild:!0,...s,focusable:!i,active:d,children:u.jsx(zR,{disabled:i,required:a.required,checked:d,...c,...o,name:a.name,ref:p,onCheck:()=>a.onValueChange(o.value),onKeyDown:B(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:B(o.onFocus,()=>{var b;m.current&&((b=l.current)==null||b.click())})})})});YR.displayName=KR;var b5="RadioGroupIndicator",XR=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=WR(r);return u.jsx(HR,{...o,...n,ref:t})});XR.displayName=b5;var ZR=UR,JR=YR,y5=XR;const QR=f.forwardRef(({className:e,...t},r)=>u.jsx(ZR,{className:M("grid gap-2",e),...t,ref:r}));QR.displayName=ZR.displayName;const eE=f.forwardRef(({className:e,...t},r)=>u.jsx(JR,{ref:r,className:M("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:u.jsx(y5,{className:"flex items-center justify-center",children:u.jsx(Ja,{className:"h-3.5 w-3.5 fill-primary"})})}));eE.displayName=JR.displayName;const{createElement:hn,createContext:x5,forwardRef:tE,useCallback:gt,useContext:rE,useEffect:jr,useImperativeHandle:nE,useLayoutEffect:w5,useMemo:S5,useRef:yt,useState:an}=f,hb=f[`useId${Math.random()}`.slice(0,5)],C5=w5,Ai=x5(null);Ai.displayName="PanelGroupContext";const Dr=C5,_5=typeof hb=="function"?hb:()=>null;let R5=0;function gp(e=null){const t=_5(),r=yt(e||t||null);return r.current===null&&(r.current=""+R5++),e??r.current}function oE({children:e,className:t="",collapsedSize:r,collapsible:n,defaultSize:o,forwardedRef:a,id:i,maxSize:s,minSize:c,onCollapse:l,onExpand:p,onResize:d,order:m,style:b,tagName:g="div",...h}){const v=rE(Ai);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:x,getPanelSize:w,getPanelStyle:S,groupId:_,isPanelCollapsed:E,reevaluatePanelConstraints:C,registerPanel:A,resizePanel:P,unregisterPanel:k}=v,j=gp(i),L=yt({callbacks:{onCollapse:l,onExpand:p,onResize:d},constraints:{collapsedSize:r,collapsible:n,defaultSize:o,maxSize:s,minSize:c},id:j,idIsFromProps:i!==void 0,order:m});yt({didLogMissingDefaultSizeWarning:!1}),Dr(()=>{const{callbacks:D,constraints:$}=L.current,O={...$};L.current.id=j,L.current.idIsFromProps=i!==void 0,L.current.order=m,D.onCollapse=l,D.onExpand=p,D.onResize=d,$.collapsedSize=r,$.collapsible=n,$.defaultSize=o,$.maxSize=s,$.minSize=c,(O.collapsedSize!==$.collapsedSize||O.collapsible!==$.collapsible||O.maxSize!==$.maxSize||O.minSize!==$.minSize)&&C(L.current,O)}),Dr(()=>{const D=L.current;return A(D),()=>{k(D)}},[m,j,A,k]),nE(a,()=>({collapse:()=>{y(L.current)},expand:D=>{x(L.current,D)},getId(){return j},getSize(){return w(L.current)},isCollapsed(){return E(L.current)},isExpanded(){return!E(L.current)},resize:D=>{P(L.current,D)}}),[y,x,w,E,j,P]);const N=S(L.current,o);return hn(g,{...h,children:e,className:t,id:i,style:{...N,...b},"data-panel":"","data-panel-collapsible":n||void 0,"data-panel-group-id":_,"data-panel-id":j,"data-panel-size":parseFloat(""+N.flexGrow).toFixed(1)})}const aE=tE((e,t)=>hn(oE,{...e,forwardedRef:t}));oE.displayName="Panel";aE.displayName="forwardRef(Panel)";let td=null,Ir=null;function E5(e,t){if(t){const r=(t&uE)!==0,n=(t&dE)!==0,o=(t&fE)!==0,a=(t&pE)!==0;if(r)return o?"se-resize":a?"ne-resize":"e-resize";if(n)return o?"sw-resize":a?"nw-resize":"w-resize";if(o)return"s-resize";if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function P5(){Ir!==null&&(document.head.removeChild(Ir),td=null,Ir=null)}function du(e,t){const r=E5(e,t);td!==r&&(td=r,Ir===null&&(Ir=document.createElement("style"),document.head.appendChild(Ir)),Ir.innerHTML=`*{cursor: ${r}!important;}`)}function iE(e){return e.type==="keydown"}function sE(e){return e.type.startsWith("pointer")}function cE(e){return e.type.startsWith("mouse")}function Mi(e){if(sE(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(cE(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function T5(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function N5(e,t,r){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function A5(e,t){if(e===t)throw new Error("Cannot compare node with itself");const r={a:bb(e),b:bb(t)};let n;for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),n=e;ye(n,"Stacking order can only be calculated for elements with a common ancestor");const o={a:vb(gb(r.a)),b:vb(gb(r.b))};if(o.a===o.b){const a=n.childNodes,i={a:r.a.at(-1),b:r.b.at(-1)};let s=a.length;for(;s--;){const c=a[s];if(c===i.a)return 1;if(c===i.b)return-1}}return Math.sign(o.a-o.b)}const M5=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function O5(e){var t;const r=getComputedStyle((t=lE(e))!==null&&t!==void 0?t:e).display;return r==="flex"||r==="inline-flex"}function I5(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||O5(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||M5.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function gb(e){let t=e.length;for(;t--;){const r=e[t];if(ye(r,"Missing node"),I5(r))return r}return null}function vb(e){return e&&Number(getComputedStyle(e).zIndex)||0}function bb(e){const t=[];for(;e;)t.push(e),e=lE(e);return t}function lE(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const uE=1,dE=2,fE=4,pE=8,j5=T5()==="coarse";let $t=[],sn=!1,gr=new Map,Oi=new Map;const po=new Set;function D5(e,t,r,n,o){var a;const{ownerDocument:i}=t,s={direction:r,element:t,hitAreaMargins:n,setResizeHandlerState:o},c=(a=gr.get(i))!==null&&a!==void 0?a:0;return gr.set(i,c+1),po.add(s),Ha(),function(){var p;Oi.delete(e),po.delete(s);const d=(p=gr.get(i))!==null&&p!==void 0?p:1;if(gr.set(i,d-1),Ha(),d===1&&gr.delete(i),$t.includes(s)){const m=$t.indexOf(s);m>=0&&$t.splice(m,1),bp(),o("up",!0,null)}}}function yb(e){const{target:t}=e,{x:r,y:n}=Mi(e);sn=!0,vp({target:t,x:r,y:n}),Ha(),$t.length>0&&(Va("down",e),e.preventDefault(),e.stopPropagation())}function zn(e){const{x:t,y:r}=Mi(e);if(sn&&e.buttons===0&&(sn=!1,Va("up",e)),!sn){const{target:n}=e;vp({target:n,x:t,y:r})}Va("move",e),bp(),$t.length>0&&e.preventDefault()}function Jr(e){const{target:t}=e,{x:r,y:n}=Mi(e);Oi.clear(),sn=!1,$t.length>0&&e.preventDefault(),Va("up",e),vp({target:t,x:r,y:n}),bp(),Ha()}function vp({target:e,x:t,y:r}){$t.splice(0);let n=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(n=e),po.forEach(o=>{const{element:a,hitAreaMargins:i}=o,s=a.getBoundingClientRect(),{bottom:c,left:l,right:p,top:d}=s,m=j5?i.coarse:i.fine;if(t>=l-m&&t<=p+m&&r>=d-m&&r<=c+m){if(n!==null&&document.contains(n)&&a!==n&&!a.contains(n)&&!n.contains(a)&&A5(n,a)>0){let g=n,h=!1;for(;g&&!g.contains(a);){if(N5(g.getBoundingClientRect(),s)){h=!0;break}g=g.parentElement}if(h)return}$t.push(o)}})}function fu(e,t){Oi.set(e,t)}function bp(){let e=!1,t=!1;$t.forEach(n=>{const{direction:o}=n;o==="horizontal"?e=!0:t=!0});let r=0;Oi.forEach(n=>{r|=n}),e&&t?du("intersection",r):e?du("horizontal",r):t?du("vertical",r):P5()}function Ha(){gr.forEach((e,t)=>{const{body:r}=t;r.removeEventListener("contextmenu",Jr),r.removeEventListener("pointerdown",yb),r.removeEventListener("pointerleave",zn),r.removeEventListener("pointermove",zn)}),window.removeEventListener("pointerup",Jr),window.removeEventListener("pointercancel",Jr),po.size>0&&(sn?($t.length>0&&gr.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("contextmenu",Jr),r.addEventListener("pointerleave",zn),r.addEventListener("pointermove",zn))}),window.addEventListener("pointerup",Jr),window.addEventListener("pointercancel",Jr)):gr.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("pointerdown",yb,{capture:!0}),r.addEventListener("pointermove",zn))}))}function Va(e,t){po.forEach(r=>{const{setResizeHandlerState:n}=r,o=$t.includes(r);n(e,o,t)})}function k5(){const[e,t]=an(0);return gt(()=>t(r=>r+1),[])}function ye(e,t){if(!e)throw console.error(t),Error(t)}const yp=10;function Fr(e,t,r=yp){return e.toFixed(r)===t.toFixed(r)?0:e>t?1:-1}function or(e,t,r=yp){return Fr(e,t,r)===0}function xt(e,t,r){return Fr(e,t,r)===0}function $5(e,t,r){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const o=e[n],a=t[n];if(!xt(o,a,r))return!1}return!0}function tn({panelConstraints:e,panelIndex:t,size:r}){const n=e[t];ye(n!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:a,maxSize:i=100,minSize:s=0}=n;if(Fr(r,s)<0)if(a){const c=(o+s)/2;Fr(r,c)<0?r=o:r=s}else r=s;return r=Math.min(i,r),r=parseFloat(r.toFixed(yp)),r}function Wn({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:n,prevLayout:o,trigger:a}){if(xt(e,0))return t;const i=[...t],[s,c]=n;ye(s!=null,"Invalid first pivot index"),ye(c!=null,"Invalid second pivot index");let l=0;if(a==="keyboard"){{const d=e<0?c:s,m=r[d];ye(m,`Panel constraints not found for index ${d}`);const{collapsedSize:b=0,collapsible:g,minSize:h=0}=m;if(g){const v=t[d];if(ye(v!=null,`Previous layout not found for panel index ${d}`),xt(v,b)){const y=h-v;Fr(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}{const d=e<0?s:c,m=r[d];ye(m,`No panel constraints found for index ${d}`);const{collapsedSize:b=0,collapsible:g,minSize:h=0}=m;if(g){const v=t[d];if(ye(v!=null,`Previous layout not found for panel index ${d}`),xt(v,h)){const y=v-b;Fr(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}}{const d=e<0?1:-1;let m=e<0?c:s,b=0;for(;;){const h=t[m];ye(h!=null,`Previous layout not found for panel index ${m}`);const y=tn({panelConstraints:r,panelIndex:m,size:100})-h;if(b+=y,m+=d,m<0||m>=r.length)break}const g=Math.min(Math.abs(e),Math.abs(b));e=e<0?0-g:g}{let m=e<0?s:c;for(;m>=0&&m<r.length;){const b=Math.abs(e)-Math.abs(l),g=t[m];ye(g!=null,`Previous layout not found for panel index ${m}`);const h=g-b,v=tn({panelConstraints:r,panelIndex:m,size:h});if(!xt(g,v)&&(l+=g-v,i[m]=v,l.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?m--:m++}}if($5(o,i))return o;{const d=e<0?c:s,m=t[d];ye(m!=null,`Previous layout not found for panel index ${d}`);const b=m+l,g=tn({panelConstraints:r,panelIndex:d,size:b});if(i[d]=g,!xt(g,b)){let h=b-g,y=e<0?c:s;for(;y>=0&&y<r.length;){const x=i[y];ye(x!=null,`Previous layout not found for panel index ${y}`);const w=x+h,S=tn({panelConstraints:r,panelIndex:y,size:w});if(xt(x,S)||(h-=S-x,i[y]=S),xt(h,0))break;e>0?y--:y++}}}const p=i.reduce((d,m)=>m+d,0);return xt(p,100)?i:o}function L5({layout:e,panelsArray:t,pivotIndices:r}){let n=0,o=100,a=0,i=0;const s=r[0];ye(s!=null,"No pivot index found"),t.forEach((d,m)=>{const{constraints:b}=d,{maxSize:g=100,minSize:h=0}=b;m===s?(n=h,o=g):(a+=h,i+=g)});const c=Math.min(o,100-a),l=Math.max(n,100-i),p=e[s];return{valueMax:c,valueMin:l,valueNow:p}}function mo(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function mE(e,t,r=document){const o=mo(e,r).findIndex(a=>a.getAttribute("data-panel-resize-handle-id")===t);return o??null}function hE(e,t,r){const n=mE(e,t,r);return n!=null?[n,n+1]:[-1,-1]}function gE(e,t=document){var r;if(t instanceof HTMLElement&&(t==null||(r=t.dataset)===null||r===void 0?void 0:r.panelGroupId)==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function Ii(e,t=document){const r=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return r||null}function F5(e,t,r,n=document){var o,a,i,s;const c=Ii(t,n),l=mo(e,n),p=c?l.indexOf(c):-1,d=(o=(a=r[p])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null,m=(i=(s=r[p+1])===null||s===void 0?void 0:s.id)!==null&&i!==void 0?i:null;return[d,m]}function B5({committedValuesRef:e,eagerValuesRef:t,groupId:r,layout:n,panelDataArray:o,panelGroupElement:a,setLayout:i}){yt({didWarnAboutMissingResizeHandle:!1}),Dr(()=>{if(!a)return;const s=mo(r,a);for(let c=0;c<o.length-1;c++){const{valueMax:l,valueMin:p,valueNow:d}=L5({layout:n,panelsArray:o,pivotIndices:[c,c+1]}),m=s[c];if(m!=null){const b=o[c];ye(b,`No panel data found for index "${c}"`),m.setAttribute("aria-controls",b.id),m.setAttribute("aria-valuemax",""+Math.round(l)),m.setAttribute("aria-valuemin",""+Math.round(p)),m.setAttribute("aria-valuenow",d!=null?""+Math.round(d):"")}}return()=>{s.forEach((c,l)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[r,n,o,a]),jr(()=>{if(!a)return;const s=t.current;ye(s,"Eager values not found");const{panelDataArray:c}=s,l=gE(r,a);ye(l!=null,`No group found for id "${r}"`);const p=mo(r,a);ye(p,`No resize handles found for group id "${r}"`);const d=p.map(m=>{const b=m.getAttribute("data-panel-resize-handle-id");ye(b,"Resize handle element has no handle id attribute");const[g,h]=F5(r,b,c,a);if(g==null||h==null)return()=>{};const v=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const x=c.findIndex(w=>w.id===g);if(x>=0){const w=c[x];ye(w,`No panel data found for index ${x}`);const S=n[x],{collapsedSize:_=0,collapsible:E,minSize:C=0}=w.constraints;if(S!=null&&E){const A=Wn({delta:xt(S,_)?C-_:_-S,initialLayout:n,panelConstraints:c.map(P=>P.constraints),pivotIndices:hE(r,b,a),prevLayout:n,trigger:"keyboard"});n!==A&&i(A)}}break}}};return m.addEventListener("keydown",v),()=>{m.removeEventListener("keydown",v)}});return()=>{d.forEach(m=>m())}},[a,e,t,r,n,o,i])}function xb(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function vE(e,t){const r=e==="horizontal",{x:n,y:o}=Mi(t);return r?n:o}function z5(e,t,r,n,o){const a=r==="horizontal",i=Ii(t,o);ye(i,`No resize handle element found for id "${t}"`);const s=i.getAttribute("data-panel-group-id");ye(s,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=n;const l=vE(r,e),p=gE(s,o);ye(p,`No group element found for id "${s}"`);const d=p.getBoundingClientRect(),m=a?d.width:d.height;return(l-c)/m*100}function q5(e,t,r,n,o,a){if(iE(e)){const i=r==="horizontal";let s=0;e.shiftKey?s=100:o!=null?s=o:s=10;let c=0;switch(e.key){case"ArrowDown":c=i?0:s;break;case"ArrowLeft":c=i?-s:0;break;case"ArrowRight":c=i?s:0;break;case"ArrowUp":c=i?0:-s;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return n==null?0:z5(e,t,r,n,a)}function H5({panelDataArray:e}){const t=Array(e.length),r=e.map(a=>a.constraints);let n=0,o=100;for(let a=0;a<e.length;a++){const i=r[a];ye(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;s!=null&&(n++,t[a]=s,o-=s)}for(let a=0;a<e.length;a++){const i=r[a];ye(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;if(s!=null)continue;const c=e.length-n,l=o/c;n++,t[a]=l,o-=l}return t}function Qr(e,t,r){t.forEach((n,o)=>{const a=e[o];ye(a,`Panel data not found for index ${o}`);const{callbacks:i,constraints:s,id:c}=a,{collapsedSize:l=0,collapsible:p}=s,d=r[c];if(d==null||n!==d){r[c]=n;const{onCollapse:m,onExpand:b,onResize:g}=i;g&&g(n,d),p&&(m||b)&&(b&&(d==null||or(d,l))&&!or(n,l)&&b(),m&&(d==null||!or(d,l))&&or(n,l)&&m())}})}function ca(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}function V5({defaultSize:e,dragState:t,layout:r,panelData:n,panelIndex:o,precision:a=3}){const i=r[o];let s;return i==null?s=e!=null?e.toPrecision(a):"1":n.length===1?s="1":s=i.toPrecision(a),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function G5(e,t=10){let r=null;return(...o)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}function wb(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,r)=>{localStorage.setItem(t,r)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function bE(e){return`react-resizable-panels:${e}`}function yE(e){return e.map(t=>{const{constraints:r,id:n,idIsFromProps:o,order:a}=t;return o?n:a?`${a}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((t,r)=>t.localeCompare(r)).join(",")}function xE(e,t){try{const r=bE(e),n=t.getItem(r);if(n){const o=JSON.parse(n);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function W5(e,t,r){var n,o;const a=(n=xE(e,r))!==null&&n!==void 0?n:{},i=yE(t);return(o=a[i])!==null&&o!==void 0?o:null}function U5(e,t,r,n,o){var a;const i=bE(e),s=yE(t),c=(a=xE(e,o))!==null&&a!==void 0?a:{};c[s]={expandToSizes:Object.fromEntries(r.entries()),layout:n};try{o.setItem(i,JSON.stringify(c))}catch(l){console.error(l)}}function Sb({layout:e,panelConstraints:t}){const r=[...e],n=r.reduce((a,i)=>a+i,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(a=>`${a}%`).join(", ")}`);if(!xt(n,100)&&r.length>0)for(let a=0;a<t.length;a++){const i=r[a];ye(i!=null,`No layout data found for index ${a}`);const s=100/n*i;r[a]=s}let o=0;for(let a=0;a<t.length;a++){const i=r[a];ye(i!=null,`No layout data found for index ${a}`);const s=tn({panelConstraints:t,panelIndex:a,size:i});i!=s&&(o+=i-s,r[a]=s)}if(!xt(o,0))for(let a=0;a<t.length;a++){const i=r[a];ye(i!=null,`No layout data found for index ${a}`);const s=i+o,c=tn({panelConstraints:t,panelIndex:a,size:s});if(i!==c&&(o-=c-i,r[a]=c,xt(o,0)))break}return r}const K5=100,Un={getItem:e=>(wb(Un),Un.getItem(e)),setItem:(e,t)=>{wb(Un),Un.setItem(e,t)}},Cb={};function wE({autoSaveId:e=null,children:t,className:r="",direction:n,forwardedRef:o,id:a=null,onLayout:i=null,keyboardResizeBy:s=null,storage:c=Un,style:l,tagName:p="div",...d}){const m=gp(a),b=yt(null),[g,h]=an(null),[v,y]=an([]),x=k5(),w=yt({}),S=yt(new Map),_=yt(0),E=yt({autoSaveId:e,direction:n,dragState:g,id:m,keyboardResizeBy:s,onLayout:i,storage:c}),C=yt({layout:v,panelDataArray:[],panelDataArrayChanged:!1});yt({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),nE(o,()=>({getId:()=>E.current.id,getLayout:()=>{const{layout:F}=C.current;return F},setLayout:F=>{const{onLayout:W}=E.current,{layout:Q,panelDataArray:K}=C.current,q=Sb({layout:F,panelConstraints:K.map(U=>U.constraints)});xb(Q,q)||(y(q),C.current.layout=q,W&&W(q),Qr(K,q,w.current))}}),[]),Dr(()=>{E.current.autoSaveId=e,E.current.direction=n,E.current.dragState=g,E.current.id=m,E.current.onLayout=i,E.current.storage=c}),B5({committedValuesRef:E,eagerValuesRef:C,groupId:m,layout:v,panelDataArray:C.current.panelDataArray,setLayout:y,panelGroupElement:b.current}),jr(()=>{const{panelDataArray:F}=C.current;if(e){if(v.length===0||v.length!==F.length)return;let W=Cb[e];W==null&&(W=G5(U5,K5),Cb[e]=W);const Q=[...F],K=new Map(S.current);W(e,Q,K,v,c)}},[e,v,c]),jr(()=>{});const A=gt(F=>{const{onLayout:W}=E.current,{layout:Q,panelDataArray:K}=C.current;if(F.constraints.collapsible){const q=K.map(ne=>ne.constraints),{collapsedSize:U=0,panelSize:re,pivotIndices:J}=Mr(K,F,Q);if(ye(re!=null,`Panel size not found for panel "${F.id}"`),!or(re,U)){S.current.set(F.id,re);const V=en(K,F)===K.length-1?re-U:U-re,ae=Wn({delta:V,initialLayout:Q,panelConstraints:q,pivotIndices:J,prevLayout:Q,trigger:"imperative-api"});ca(Q,ae)||(y(ae),C.current.layout=ae,W&&W(ae),Qr(K,ae,w.current))}}},[]),P=gt((F,W)=>{const{onLayout:Q}=E.current,{layout:K,panelDataArray:q}=C.current;if(F.constraints.collapsible){const U=q.map(I=>I.constraints),{collapsedSize:re=0,panelSize:J=0,minSize:ne=0,pivotIndices:V}=Mr(q,F,K),ae=W??ne;if(or(J,re)){const I=S.current.get(F.id),ee=I!=null&&I>=ae?I:ae,me=en(q,F)===q.length-1?J-ee:ee-J,ge=Wn({delta:me,initialLayout:K,panelConstraints:U,pivotIndices:V,prevLayout:K,trigger:"imperative-api"});ca(K,ge)||(y(ge),C.current.layout=ge,Q&&Q(ge),Qr(q,ge,w.current))}}},[]),k=gt(F=>{const{layout:W,panelDataArray:Q}=C.current,{panelSize:K}=Mr(Q,F,W);return ye(K!=null,`Panel size not found for panel "${F.id}"`),K},[]),j=gt((F,W)=>{const{panelDataArray:Q}=C.current,K=en(Q,F);return V5({defaultSize:W,dragState:g,layout:v,panelData:Q,panelIndex:K})},[g,v]),L=gt(F=>{const{layout:W,panelDataArray:Q}=C.current,{collapsedSize:K=0,collapsible:q,panelSize:U}=Mr(Q,F,W);return ye(U!=null,`Panel size not found for panel "${F.id}"`),q===!0&&or(U,K)},[]),N=gt(F=>{const{layout:W,panelDataArray:Q}=C.current,{collapsedSize:K=0,collapsible:q,panelSize:U}=Mr(Q,F,W);return ye(U!=null,`Panel size not found for panel "${F.id}"`),!q||Fr(U,K)>0},[]),D=gt(F=>{const{panelDataArray:W}=C.current;W.push(F),W.sort((Q,K)=>{const q=Q.order,U=K.order;return q==null&&U==null?0:q==null?-1:U==null?1:q-U}),C.current.panelDataArrayChanged=!0,x()},[x]);Dr(()=>{if(C.current.panelDataArrayChanged){C.current.panelDataArrayChanged=!1;const{autoSaveId:F,onLayout:W,storage:Q}=E.current,{layout:K,panelDataArray:q}=C.current;let U=null;if(F){const J=W5(F,q,Q);J&&(S.current=new Map(Object.entries(J.expandToSizes)),U=J.layout)}U==null&&(U=H5({panelDataArray:q}));const re=Sb({layout:U,panelConstraints:q.map(J=>J.constraints)});xb(K,re)||(y(re),C.current.layout=re,W&&W(re),Qr(q,re,w.current))}}),Dr(()=>{const F=C.current;return()=>{F.layout=[]}},[]);const $=gt(F=>{let W=!1;const Q=b.current;return Q&&window.getComputedStyle(Q,null).getPropertyValue("direction")==="rtl"&&(W=!0),function(q){q.preventDefault();const U=b.current;if(!U)return()=>null;const{direction:re,dragState:J,id:ne,keyboardResizeBy:V,onLayout:ae}=E.current,{layout:I,panelDataArray:ee}=C.current,{initialLayout:pe}=J??{},me=hE(ne,F,U);let ge=q5(q,F,re,J,V,U);const fe=re==="horizontal";fe&&W&&(ge=-ge);const Ee=ee.map(Oe=>Oe.constraints),Fe=Wn({delta:ge,initialLayout:pe??I,panelConstraints:Ee,pivotIndices:me,prevLayout:I,trigger:iE(q)?"keyboard":"mouse-or-touch"}),we=!ca(I,Fe);(sE(q)||cE(q))&&_.current!=ge&&(_.current=ge,!we&&ge!==0?fe?fu(F,ge<0?uE:dE):fu(F,ge<0?fE:pE):fu(F,0)),we&&(y(Fe),C.current.layout=Fe,ae&&ae(Fe),Qr(ee,Fe,w.current))}},[]),O=gt((F,W)=>{const{onLayout:Q}=E.current,{layout:K,panelDataArray:q}=C.current,U=q.map(I=>I.constraints),{panelSize:re,pivotIndices:J}=Mr(q,F,K);ye(re!=null,`Panel size not found for panel "${F.id}"`);const V=en(q,F)===q.length-1?re-W:W-re,ae=Wn({delta:V,initialLayout:K,panelConstraints:U,pivotIndices:J,prevLayout:K,trigger:"imperative-api"});ca(K,ae)||(y(ae),C.current.layout=ae,Q&&Q(ae),Qr(q,ae,w.current))},[]),G=gt((F,W)=>{const{layout:Q,panelDataArray:K}=C.current,{collapsedSize:q=0,collapsible:U}=W,{collapsedSize:re=0,collapsible:J,maxSize:ne=100,minSize:V=0}=F.constraints,{panelSize:ae}=Mr(K,F,Q);ae!=null&&(U&&J&&or(ae,q)?or(q,re)||O(F,re):ae<V?O(F,V):ae>ne&&O(F,ne))},[O]),H=gt((F,W)=>{const{direction:Q}=E.current,{layout:K}=C.current;if(!b.current)return;const q=Ii(F,b.current);ye(q,`Drag handle element not found for id "${F}"`);const U=vE(Q,W);h({dragHandleId:F,dragHandleRect:q.getBoundingClientRect(),initialCursorPosition:U,initialLayout:K})},[]),z=gt(()=>{h(null)},[]),oe=gt(F=>{const{panelDataArray:W}=C.current,Q=en(W,F);Q>=0&&(W.splice(Q,1),delete w.current[F.id],C.current.panelDataArrayChanged=!0,x())},[x]),Z=S5(()=>({collapsePanel:A,direction:n,dragState:g,expandPanel:P,getPanelSize:k,getPanelStyle:j,groupId:m,isPanelCollapsed:L,isPanelExpanded:N,reevaluatePanelConstraints:G,registerPanel:D,registerResizeHandle:$,resizePanel:O,startDragging:H,stopDragging:z,unregisterPanel:oe,panelGroupElement:b.current}),[A,g,n,P,k,j,m,L,N,G,D,$,O,H,z,oe]),te={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return hn(Ai.Provider,{value:Z},hn(p,{...d,children:t,className:r,id:a,ref:b,style:{...te,...l},"data-panel-group":"","data-panel-group-direction":n,"data-panel-group-id":m}))}const SE=tE((e,t)=>hn(wE,{...e,forwardedRef:t}));wE.displayName="PanelGroup";SE.displayName="forwardRef(PanelGroup)";function en(e,t){return e.findIndex(r=>r===t||r.id===t.id)}function Mr(e,t,r){const n=en(e,t),a=n===e.length-1?[n-1,n]:[n,n+1],i=r[n];return{...t.constraints,panelSize:i,pivotIndices:a}}function Y5({disabled:e,handleId:t,resizeHandler:r,panelGroupElement:n}){jr(()=>{if(e||r==null||n==null)return;const o=Ii(t,n);if(o==null)return;const a=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),r(i);break}case"F6":{i.preventDefault();const s=o.getAttribute("data-panel-group-id");ye(s,`No group element found for id "${s}"`);const c=mo(s,n),l=mE(s,t,n);ye(l!==null,`No resize element found for id "${t}"`);const p=i.shiftKey?l>0?l-1:c.length-1:l+1<c.length?l+1:0;c[p].focus();break}}};return o.addEventListener("keydown",a),()=>{o.removeEventListener("keydown",a)}},[n,e,t,r])}function CE({children:e=null,className:t="",disabled:r=!1,hitAreaMargins:n,id:o,onBlur:a,onDragging:i,onFocus:s,style:c={},tabIndex:l=0,tagName:p="div",...d}){var m,b;const g=yt(null),h=yt({onDragging:i});jr(()=>{h.current.onDragging=i});const v=rE(Ai);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:y,groupId:x,registerResizeHandle:w,startDragging:S,stopDragging:_,panelGroupElement:E}=v,C=gp(o),[A,P]=an("inactive"),[k,j]=an(!1),[L,N]=an(null),D=yt({state:A});Dr(()=>{D.current.state=A}),jr(()=>{if(r)N(null);else{const H=w(C);N(()=>H)}},[r,C,w]);const $=(m=n==null?void 0:n.coarse)!==null&&m!==void 0?m:15,O=(b=n==null?void 0:n.fine)!==null&&b!==void 0?b:5;return jr(()=>{if(r||L==null)return;const H=g.current;return ye(H,"Element ref not attached"),D5(C,H,y,{coarse:$,fine:O},(oe,Z,te)=>{if(Z)switch(oe){case"down":{P("drag"),ye(te,'Expected event to be defined for "down" action'),S(C,te);const{onDragging:F}=h.current;F&&F(!0);break}case"move":{const{state:F}=D.current;F!=="drag"&&P("hover"),ye(te,'Expected event to be defined for "move" action'),L(te);break}case"up":{P("hover"),_();const{onDragging:F}=h.current;F&&F(!1);break}}else P("inactive")})},[$,y,r,O,w,C,L,S,_]),Y5({disabled:r,handleId:C,resizeHandler:L,panelGroupElement:E}),hn(p,{...d,children:e,className:t,id:o,onBlur:()=>{j(!1),a==null||a()},onFocus:()=>{j(!0),s==null||s()},ref:g,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...c},tabIndex:l,"data-panel-group-direction":y,"data-panel-group-id":x,"data-resize-handle":"","data-resize-handle-active":A==="drag"?"pointer":k?"keyboard":void 0,"data-resize-handle-state":A,"data-panel-resize-handle-enabled":!r,"data-panel-resize-handle-id":C})}CE.displayName="PanelResizeHandle";const X5=({className:e,...t})=>u.jsx(SE,{className:M("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),Z5=aE,J5=({withHandle:e,className:t,...r})=>u.jsx(CE,{className:M("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...r,children:e&&u.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:u.jsx(G1,{className:"h-2.5 w-2.5"})})});function ho(e,[t,r]){return Math.min(r,Math.max(t,e))}function Q5(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var xp="ScrollArea",[_E,w3]=De(xp),[eq,At]=_E(xp),RE=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,c]=f.useState(null),[l,p]=f.useState(null),[d,m]=f.useState(null),[b,g]=f.useState(null),[h,v]=f.useState(null),[y,x]=f.useState(0),[w,S]=f.useState(0),[_,E]=f.useState(!1),[C,A]=f.useState(!1),P=de(t,j=>c(j)),k=Bt(o);return u.jsx(eq,{scope:r,type:n,dir:k,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:p,content:d,onContentChange:m,scrollbarX:b,onScrollbarXChange:g,scrollbarXEnabled:_,onScrollbarXEnabledChange:E,scrollbarY:h,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:A,onCornerWidthChange:x,onCornerHeightChange:S,children:u.jsx(X.div,{dir:k,...i,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});RE.displayName=xp;var EE="ScrollAreaViewport",PE=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=e,i=At(EE,r),s=f.useRef(null),c=de(t,s,i.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),u.jsx(X.div,{"data-radix-scroll-area-viewport":"",...a,ref:c,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:u.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});PE.displayName=EE;var tr="ScrollAreaScrollbar",wp=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=At(tr,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=e.orientation==="horizontal";return f.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?u.jsx(tq,{...n,ref:t,forceMount:r}):o.type==="scroll"?u.jsx(rq,{...n,ref:t,forceMount:r}):o.type==="auto"?u.jsx(TE,{...n,ref:t,forceMount:r}):o.type==="always"?u.jsx(Sp,{...n,ref:t}):null});wp.displayName=tr;var tq=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=At(tr,e.__scopeScrollArea),[a,i]=f.useState(!1);return f.useEffect(()=>{const s=o.scrollArea;let c=0;if(s){const l=()=>{window.clearTimeout(c),i(!0)},p=()=>{c=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",p),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",p)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(Le,{present:r||a,children:u.jsx(TE,{"data-state":a?"visible":"hidden",...n,ref:t})})}),rq=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=At(tr,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Di(()=>c("SCROLL_END"),100),[s,c]=Q5("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return f.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,c]),f.useEffect(()=>{const l=o.viewport,p=a?"scrollLeft":"scrollTop";if(l){let d=l[p];const m=()=>{const b=l[p];d!==b&&(c("SCROLL"),i()),d=b};return l.addEventListener("scroll",m),()=>l.removeEventListener("scroll",m)}},[o.viewport,a,c,i]),u.jsx(Le,{present:r||s!=="hidden",children:u.jsx(Sp,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:B(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:B(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),TE=f.forwardRef((e,t)=>{const r=At(tr,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=f.useState(!1),s=e.orientation==="horizontal",c=Di(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,p=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?l:p)}},10);return gn(r.viewport,c),gn(r.content,c),u.jsx(Le,{present:n||a,children:u.jsx(Sp,{"data-state":a?"visible":"hidden",...o,ref:t})})}),Sp=f.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,o=At(tr,e.__scopeScrollArea),a=f.useRef(null),i=f.useRef(0),[s,c]=f.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=IE(s.viewport,s.content),p={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:m=>a.current=m,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:m=>i.current=m};function d(m,b){return cq(m,i.current,s,b)}return r==="horizontal"?u.jsx(nq,{...p,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollLeft,b=_b(m,s,o.dir);a.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=d(m,o.dir))}}):r==="vertical"?u.jsx(oq,{...p,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollTop,b=_b(m,s);a.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=d(m))}}):null}),nq=f.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=At(tr,e.__scopeScrollArea),[i,s]=f.useState(),c=f.useRef(null),l=de(t,c,a.onScrollbarXChange);return f.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),u.jsx(AE,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ji(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,d)=>{if(a.viewport){const m=a.viewport.scrollLeft+p.deltaX;e.onWheelScroll(m),DE(m,d)&&p.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Wa(i.paddingLeft),paddingEnd:Wa(i.paddingRight)}})}})}),oq=f.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=At(tr,e.__scopeScrollArea),[i,s]=f.useState(),c=f.useRef(null),l=de(t,c,a.onScrollbarYChange);return f.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),u.jsx(AE,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ji(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,d)=>{if(a.viewport){const m=a.viewport.scrollTop+p.deltaY;e.onWheelScroll(m),DE(m,d)&&p.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Wa(i.paddingTop),paddingEnd:Wa(i.paddingBottom)}})}})}),[aq,NE]=_E(tr),AE=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:p,onResize:d,...m}=e,b=At(tr,r),[g,h]=f.useState(null),v=de(t,P=>h(P)),y=f.useRef(null),x=f.useRef(""),w=b.viewport,S=n.content-n.viewport,_=Te(p),E=Te(c),C=Di(d,10);function A(P){if(y.current){const k=P.clientX-y.current.left,j=P.clientY-y.current.top;l({x:k,y:j})}}return f.useEffect(()=>{const P=k=>{const j=k.target;(g==null?void 0:g.contains(j))&&_(k,S)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[w,g,S,_]),f.useEffect(E,[n,E]),gn(g,C),gn(b.content,C),u.jsx(aq,{scope:r,scrollbar:g,hasThumb:o,onThumbChange:Te(a),onThumbPointerUp:Te(i),onThumbPositionChange:E,onThumbPointerDown:Te(s),children:u.jsx(X.div,{...m,ref:v,style:{position:"absolute",...m.style},onPointerDown:B(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),y.current=g.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),A(P))}),onPointerMove:B(e.onPointerMove,A),onPointerUp:B(e.onPointerUp,P=>{const k=P.target;k.hasPointerCapture(P.pointerId)&&k.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=x.current,b.viewport&&(b.viewport.style.scrollBehavior=""),y.current=null})})})}),Ga="ScrollAreaThumb",ME=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=NE(Ga,e.__scopeScrollArea);return u.jsx(Le,{present:r||o.hasThumb,children:u.jsx(iq,{ref:t,...n})})}),iq=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,a=At(Ga,r),i=NE(Ga,r),{onThumbPositionChange:s}=i,c=de(t,d=>i.onThumbChange(d)),l=f.useRef(void 0),p=Di(()=>{l.current&&(l.current(),l.current=void 0)},100);return f.useEffect(()=>{const d=a.viewport;if(d){const m=()=>{if(p(),!l.current){const b=lq(d,s);l.current=b,s()}};return s(),d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[a.viewport,p,s]),u.jsx(X.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:B(e.onPointerDownCapture,d=>{const b=d.target.getBoundingClientRect(),g=d.clientX-b.left,h=d.clientY-b.top;i.onThumbPointerDown({x:g,y:h})}),onPointerUp:B(e.onPointerUp,i.onThumbPointerUp)})});ME.displayName=Ga;var Cp="ScrollAreaCorner",OE=f.forwardRef((e,t)=>{const r=At(Cp,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?u.jsx(sq,{...e,ref:t}):null});OE.displayName=Cp;var sq=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=At(Cp,r),[a,i]=f.useState(0),[s,c]=f.useState(0),l=!!(a&&s);return gn(o.scrollbarX,()=>{var d;const p=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(p),c(p)}),gn(o.scrollbarY,()=>{var d;const p=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(p),i(p)}),l?u.jsx(X.div,{...n,ref:t,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Wa(e){return e?parseInt(e,10):0}function IE(e,t){const r=e/t;return isNaN(r)?0:r}function ji(e){const t=IE(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function cq(e,t,r,n="ltr"){const o=ji(r),a=o/2,i=t||a,s=o-i,c=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-s,p=r.content-r.viewport,d=n==="ltr"?[0,p]:[p*-1,0];return jE([c,l],d)(e)}function _b(e,t,r="ltr"){const n=ji(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-n,c=r==="ltr"?[0,i]:[i*-1,0],l=ho(e,c);return jE([0,i],[0,s])(l)}function jE(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function DE(e,t){return e>0&&e<t}var lq=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,s=r.top!==a.top;(i||s)&&t(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Di(e,t){const r=Te(e),n=f.useRef(0);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),f.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function gn(e,t){const r=Te(t);He(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}var kE=RE,uq=PE,dq=OE;const $E=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(kE,{ref:n,className:M("relative overflow-hidden",e),...r,children:[u.jsx(uq,{className:"h-full w-full rounded-[inherit]",children:t}),u.jsx(_p,{}),u.jsx(dq,{})]}));$E.displayName=kE.displayName;const _p=f.forwardRef(({className:e,orientation:t="vertical",...r},n)=>u.jsx(wp,{ref:n,orientation:t,className:M("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:u.jsx(ME,{className:"relative flex-1 rounded-full bg-border"})}));_p.displayName=wp.displayName;var fq=[" ","Enter","ArrowUp","ArrowDown"],pq=[" ","Enter"],Fo="Select",[ki,$i,mq]=cr(Fo),[On,S3]=De(Fo,[mq,Qt]),Li=Qt(),[hq,Rr]=On(Fo),[gq,vq]=On(Fo),LE=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:c,dir:l,name:p,autoComplete:d,disabled:m,required:b,form:g}=e,h=Li(t),[v,y]=f.useState(null),[x,w]=f.useState(null),[S,_]=f.useState(!1),E=Bt(l),[C=!1,A]=$e({prop:n,defaultProp:o,onChange:a}),[P,k]=$e({prop:i,defaultProp:s,onChange:c}),j=f.useRef(null),L=v?g||!!v.closest("form"):!0,[N,D]=f.useState(new Set),$=Array.from(N).map(O=>O.props.value).join(";");return u.jsx(Tn,{...h,children:u.jsxs(hq,{required:b,scope:t,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:_,contentId:We(),value:P,onValueChange:k,open:C,onOpenChange:A,dir:E,triggerPointerDownPosRef:j,disabled:m,children:[u.jsx(ki.Provider,{scope:t,children:u.jsx(gq,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(O=>{D(G=>new Set(G).add(O))},[]),onNativeOptionRemove:f.useCallback(O=>{D(G=>{const H=new Set(G);return H.delete(O),H})},[]),children:r})}),L?u.jsxs(uP,{"aria-hidden":!0,required:b,tabIndex:-1,name:p,autoComplete:d,value:P,onChange:O=>k(O.target.value),disabled:m,form:g,children:[P===void 0?u.jsx("option",{value:""}):null,Array.from(N)]},$):null]})})};LE.displayName=Fo;var FE="SelectTrigger",BE=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=Li(r),i=Rr(FE,r),s=i.disabled||n,c=de(t,i.onTriggerChange),l=$i(r),p=f.useRef("touch"),[d,m,b]=dP(h=>{const v=l().filter(w=>!w.disabled),y=v.find(w=>w.value===i.value),x=fP(v,h,y);x!==void 0&&i.onValueChange(x.value)}),g=h=>{s||(i.onOpenChange(!0),b()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return u.jsx(Nn,{asChild:!0,...a,children:u.jsx(X.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":lP(i.value)?"":void 0,...o,ref:c,onClick:B(o.onClick,h=>{h.currentTarget.focus(),p.current!=="mouse"&&g(h)}),onPointerDown:B(o.onPointerDown,h=>{p.current=h.pointerType;const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(g(h),h.preventDefault())}),onKeyDown:B(o.onKeyDown,h=>{const v=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&m(h.key),!(v&&h.key===" ")&&fq.includes(h.key)&&(g(),h.preventDefault())})})})});BE.displayName=FE;var zE="SelectValue",qE=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:i="",...s}=e,c=Rr(zE,r),{onValueNodeHasChildrenChange:l}=c,p=a!==void 0,d=de(t,c.onValueNodeChange);return He(()=>{l(p)},[l,p]),u.jsx(X.span,{...s,ref:d,style:{pointerEvents:"none"},children:lP(c.value)?u.jsx(u.Fragment,{children:i}):a})});qE.displayName=zE;var bq="SelectIcon",HE=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return u.jsx(X.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});HE.displayName=bq;var yq="SelectPortal",VE=e=>u.jsx(zr,{asChild:!0,...e});VE.displayName=yq;var Br="SelectContent",GE=f.forwardRef((e,t)=>{const r=Rr(Br,e.__scopeSelect),[n,o]=f.useState();if(He(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?go.createPortal(u.jsx(WE,{scope:e.__scopeSelect,children:u.jsx(ki.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(UE,{...e,ref:t})});GE.displayName=Br;var jt=10,[WE,Er]=On(Br),xq="SelectContentImpl",UE=f.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:c,align:l,alignOffset:p,arrowPadding:d,collisionBoundary:m,collisionPadding:b,sticky:g,hideWhenDetached:h,avoidCollisions:v,...y}=e,x=Rr(Br,r),[w,S]=f.useState(null),[_,E]=f.useState(null),C=de(t,q=>S(q)),[A,P]=f.useState(null),[k,j]=f.useState(null),L=$i(r),[N,D]=f.useState(!1),$=f.useRef(!1);f.useEffect(()=>{if(w)return ti(w)},[w]),Qa();const O=f.useCallback(q=>{const[U,...re]=L().map(V=>V.ref.current),[J]=re.slice(-1),ne=document.activeElement;for(const V of q)if(V===ne||(V==null||V.scrollIntoView({block:"nearest"}),V===U&&_&&(_.scrollTop=0),V===J&&_&&(_.scrollTop=_.scrollHeight),V==null||V.focus(),document.activeElement!==ne))return},[L,_]),G=f.useCallback(()=>O([A,w]),[O,A,w]);f.useEffect(()=>{N&&G()},[N,G]);const{onOpenChange:H,triggerPointerDownPosRef:z}=x;f.useEffect(()=>{if(w){let q={x:0,y:0};const U=J=>{var ne,V;q={x:Math.abs(Math.round(J.pageX)-(((ne=z.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(J.pageY)-(((V=z.current)==null?void 0:V.y)??0))}},re=J=>{q.x<=10&&q.y<=10?J.preventDefault():w.contains(J.target)||H(!1),document.removeEventListener("pointermove",U),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",re,{capture:!0})}}},[w,H,z]),f.useEffect(()=>{const q=()=>H(!1);return window.addEventListener("blur",q),window.addEventListener("resize",q),()=>{window.removeEventListener("blur",q),window.removeEventListener("resize",q)}},[H]);const[oe,Z]=dP(q=>{const U=L().filter(ne=>!ne.disabled),re=U.find(ne=>ne.ref.current===document.activeElement),J=fP(U,q,re);J&&setTimeout(()=>J.ref.current.focus())}),te=f.useCallback((q,U,re)=>{const J=!$.current&&!re;(x.value!==void 0&&x.value===U||J)&&(P(q),J&&($.current=!0))},[x.value]),F=f.useCallback(()=>w==null?void 0:w.focus(),[w]),W=f.useCallback((q,U,re)=>{const J=!$.current&&!re;(x.value!==void 0&&x.value===U||J)&&j(q)},[x.value]),Q=n==="popper"?rd:KE,K=Q===rd?{side:s,sideOffset:c,align:l,alignOffset:p,arrowPadding:d,collisionBoundary:m,collisionPadding:b,sticky:g,hideWhenDetached:h,avoidCollisions:v}:{};return u.jsx(WE,{scope:r,content:w,viewport:_,onViewportChange:E,itemRefCallback:te,selectedItem:A,onItemLeave:F,itemTextRefCallback:W,focusSelectedItem:G,selectedItemText:k,position:n,isPositioned:N,searchRef:oe,children:u.jsx(xo,{as:ct,allowPinchZoom:!0,children:u.jsx(yo,{asChild:!0,trapped:x.open,onMountAutoFocus:q=>{q.preventDefault()},onUnmountAutoFocus:B(o,q=>{var U;(U=x.trigger)==null||U.focus({preventScroll:!0}),q.preventDefault()}),children:u.jsx(ur,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:q=>q.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:u.jsx(Q,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:q=>q.preventDefault(),...y,...K,onPlaced:()=>D(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:B(y.onKeyDown,q=>{const U=q.ctrlKey||q.altKey||q.metaKey;if(q.key==="Tab"&&q.preventDefault(),!U&&q.key.length===1&&Z(q.key),["ArrowUp","ArrowDown","Home","End"].includes(q.key)){let J=L().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(q.key)&&(J=J.slice().reverse()),["ArrowUp","ArrowDown"].includes(q.key)){const ne=q.target,V=J.indexOf(ne);J=J.slice(V+1)}setTimeout(()=>O(J)),q.preventDefault()}})})})})})})});UE.displayName=xq;var wq="SelectItemAlignedPosition",KE=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=Rr(Br,r),i=Er(Br,r),[s,c]=f.useState(null),[l,p]=f.useState(null),d=de(t,C=>p(C)),m=$i(r),b=f.useRef(!1),g=f.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:y,focusSelectedItem:x}=i,w=f.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&v&&y){const C=a.trigger.getBoundingClientRect(),A=l.getBoundingClientRect(),P=a.valueNode.getBoundingClientRect(),k=y.getBoundingClientRect();if(a.dir!=="rtl"){const ne=k.left-A.left,V=P.left-ne,ae=C.left-V,I=C.width+ae,ee=Math.max(I,A.width),pe=window.innerWidth-jt,me=ho(V,[jt,Math.max(jt,pe-ee)]);s.style.minWidth=I+"px",s.style.left=me+"px"}else{const ne=A.right-k.right,V=window.innerWidth-P.right-ne,ae=window.innerWidth-C.right-V,I=C.width+ae,ee=Math.max(I,A.width),pe=window.innerWidth-jt,me=ho(V,[jt,Math.max(jt,pe-ee)]);s.style.minWidth=I+"px",s.style.right=me+"px"}const j=m(),L=window.innerHeight-jt*2,N=h.scrollHeight,D=window.getComputedStyle(l),$=parseInt(D.borderTopWidth,10),O=parseInt(D.paddingTop,10),G=parseInt(D.borderBottomWidth,10),H=parseInt(D.paddingBottom,10),z=$+O+N+H+G,oe=Math.min(v.offsetHeight*5,z),Z=window.getComputedStyle(h),te=parseInt(Z.paddingTop,10),F=parseInt(Z.paddingBottom,10),W=C.top+C.height/2-jt,Q=L-W,K=v.offsetHeight/2,q=v.offsetTop+K,U=$+O+q,re=z-U;if(U<=W){const ne=j.length>0&&v===j[j.length-1].ref.current;s.style.bottom="0px";const V=l.clientHeight-h.offsetTop-h.offsetHeight,ae=Math.max(Q,K+(ne?F:0)+V+G),I=U+ae;s.style.height=I+"px"}else{const ne=j.length>0&&v===j[0].ref.current;s.style.top="0px";const ae=Math.max(W,$+h.offsetTop+(ne?te:0)+K)+re;s.style.height=ae+"px",h.scrollTop=U-W+h.offsetTop}s.style.margin=`${jt}px 0`,s.style.minHeight=oe+"px",s.style.maxHeight=L+"px",n==null||n(),requestAnimationFrame(()=>b.current=!0)}},[m,a.trigger,a.valueNode,s,l,h,v,y,a.dir,n]);He(()=>w(),[w]);const[S,_]=f.useState();He(()=>{l&&_(window.getComputedStyle(l).zIndex)},[l]);const E=f.useCallback(C=>{C&&g.current===!0&&(w(),x==null||x(),g.current=!1)},[w,x]);return u.jsx(Cq,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:b,onScrollButtonChange:E,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:u.jsx(X.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});KE.displayName=wq;var Sq="SelectPopperPosition",rd=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=jt,...a}=e,i=Li(r);return u.jsx(Po,{...i,...a,ref:t,align:n,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)"}})});rd.displayName=Sq;var[Cq,Rp]=On(Br,{}),nd="SelectViewport",YE=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=Er(nd,r),i=Rp(nd,r),s=de(t,a.onViewportChange),c=f.useRef(0);return u.jsxs(u.Fragment,{children:[u.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:n}),u.jsx(ki.Slot,{scope:r,children:u.jsx(X.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,l=>{const p=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&d){const b=Math.abs(c.current-p.scrollTop);if(b>0){const g=window.innerHeight-jt*2,h=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),y=Math.max(h,v);if(y<g){const x=y+b,w=Math.min(g,x),S=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(p.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}c.current=p.scrollTop})})})]})});YE.displayName=nd;var XE="SelectGroup",[_q,Rq]=On(XE),ZE=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=We();return u.jsx(_q,{scope:r,id:o,children:u.jsx(X.div,{role:"group","aria-labelledby":o,...n,ref:t})})});ZE.displayName=XE;var JE="SelectLabel",QE=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Rq(JE,r);return u.jsx(X.div,{id:o.id,...n,ref:t})});QE.displayName=JE;var Ua="SelectItem",[Eq,eP]=On(Ua),tP=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...i}=e,s=Rr(Ua,r),c=Er(Ua,r),l=s.value===n,[p,d]=f.useState(a??""),[m,b]=f.useState(!1),g=de(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,n,o)}),h=We(),v=f.useRef("touch"),y=()=>{o||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")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 u.jsx(Eq,{scope:r,value:n,disabled:o,textId:h,isSelected:l,onItemTextChange:f.useCallback(x=>{d(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:u.jsx(ki.ItemSlot,{scope:r,value:n,disabled:o,textValue:p,children:u.jsx(X.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":l&&m,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:g,onFocus:B(i.onFocus,()=>b(!0)),onBlur:B(i.onBlur,()=>b(!1)),onClick:B(i.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:B(i.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:B(i.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:B(i.onPointerMove,x=>{var w;v.current=x.pointerType,o?(w=c.onItemLeave)==null||w.call(c):v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(i.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:B(i.onKeyDown,x=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&x.key===" "||(pq.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});tP.displayName=Ua;var Kn="SelectItemText",rP=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,i=Rr(Kn,r),s=Er(Kn,r),c=eP(Kn,r),l=vq(Kn,r),[p,d]=f.useState(null),m=de(t,y=>d(y),c.onItemTextChange,y=>{var x;return(x=s.itemTextRefCallback)==null?void 0:x.call(s,y,c.value,c.disabled)}),b=p==null?void 0:p.textContent,g=f.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:b},c.value),[c.disabled,c.value,b]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=l;return He(()=>(h(g),()=>v(g)),[h,v,g]),u.jsxs(u.Fragment,{children:[u.jsx(X.span,{id:c.textId,...a,ref:m}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?go.createPortal(a.children,i.valueNode):null]})});rP.displayName=Kn;var nP="SelectItemIndicator",oP=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return eP(nP,r).isSelected?u.jsx(X.span,{"aria-hidden":!0,...n,ref:t}):null});oP.displayName=nP;var od="SelectScrollUpButton",aP=f.forwardRef((e,t)=>{const r=Er(od,e.__scopeSelect),n=Rp(od,e.__scopeSelect),[o,a]=f.useState(!1),i=de(t,n.onScrollButtonChange);return He(()=>{if(r.viewport&&r.isPositioned){let s=function(){const l=c.scrollTop>0;a(l)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?u.jsx(sP,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});aP.displayName=od;var ad="SelectScrollDownButton",iP=f.forwardRef((e,t)=>{const r=Er(ad,e.__scopeSelect),n=Rp(ad,e.__scopeSelect),[o,a]=f.useState(!1),i=de(t,n.onScrollButtonChange);return He(()=>{if(r.viewport&&r.isPositioned){let s=function(){const l=c.scrollHeight-c.clientHeight,p=Math.ceil(c.scrollTop)<l;a(p)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?u.jsx(sP,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});iP.displayName=ad;var sP=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=Er("SelectScrollButton",r),i=f.useRef(null),s=$i(r),c=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>c(),[c]),He(()=>{var p;const l=s().find(d=>d.ref.current===document.activeElement);(p=l==null?void 0:l.ref.current)==null||p.scrollIntoView({block:"nearest"})},[s]),u.jsx(X.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:B(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:B(o.onPointerMove,()=>{var l;(l=a.onItemLeave)==null||l.call(a),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:B(o.onPointerLeave,()=>{c()})})}),Pq="SelectSeparator",cP=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(X.div,{"aria-hidden":!0,...n,ref:t})});cP.displayName=Pq;var id="SelectArrow",Tq=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Li(r),a=Rr(id,r),i=Er(id,r);return a.open&&i.position==="popper"?u.jsx(To,{...o,...n,ref:t}):null});Tq.displayName=id;function lP(e){return e===""||e===void 0}var uP=f.forwardRef((e,t)=>{const{value:r,...n}=e,o=f.useRef(null),a=de(t,o),i=Rn(r);return f.useEffect(()=>{const s=o.current,c=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==r&&p){const d=new Event("change",{bubbles:!0});p.call(s,r),s.dispatchEvent(d)}},[i,r]),u.jsx($o,{asChild:!0,children:u.jsx("select",{...n,ref:a,defaultValue:r})})});uP.displayName="BubbleSelect";function dP(e){const t=Te(e),r=f.useRef(""),n=f.useRef(0),o=f.useCallback(i=>{const s=r.current+i;t(s),function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),a=f.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function fP(e,t,r){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let i=Nq(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==r));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function Nq(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Aq=LE,pP=BE,Mq=qE,Oq=HE,Iq=VE,mP=GE,jq=YE,Dq=ZE,hP=QE,gP=tP,kq=rP,$q=oP,vP=aP,bP=iP,yP=cP;const Lq=Aq,Fq=Dq,Bq=Mq,xP=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(pP,{ref:n,className:M("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,u.jsx(Oq,{asChild:!0,children:u.jsx(bo,{className:"h-4 w-4 opacity-50"})})]}));xP.displayName=pP.displayName;const Ep=f.forwardRef(({className:e,...t},r)=>u.jsx(vP,{ref:r,className:M("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(z1,{className:"h-4 w-4"})}));Ep.displayName=vP.displayName;const Pp=f.forwardRef(({className:e,...t},r)=>u.jsx(bP,{ref:r,className:M("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(bo,{className:"h-4 w-4"})}));Pp.displayName=bP.displayName;const wP=f.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>u.jsx(Iq,{children:u.jsxs(mP,{ref:o,className:M("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]",r==="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:r,...n,children:[u.jsx(Ep,{}),u.jsx(jq,{className:M("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(Pp,{})]})}));wP.displayName=mP.displayName;const SP=f.forwardRef(({className:e,...t},r)=>u.jsx(hP,{ref:r,className:M("px-2 py-1.5 text-sm font-semibold",e),...t}));SP.displayName=hP.displayName;const CP=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(gP,{ref:n,className:M("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx($q,{children:u.jsx(bn,{className:"h-4 w-4"})})}),u.jsx(kq,{children:t})]}));CP.displayName=gP.displayName;const _P=f.forwardRef(({className:e,...t},r)=>u.jsx(yP,{ref:r,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));_P.displayName=yP.displayName;var zq="Separator",Rb="horizontal",qq=["horizontal","vertical"],RP=f.forwardRef((e,t)=>{const{decorative:r,orientation:n=Rb,...o}=e,a=Hq(n)?n:Rb,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(X.div,{"data-orientation":a,...s,...o,ref:t})});RP.displayName=zq;function Hq(e){return qq.includes(e)}var EP=RP;const Tp=f.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>u.jsx(EP,{ref:o,decorative:r,orientation:t,className:M("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Tp.displayName=EP.displayName;const PP=ri,Vq=ni,Gq=qr,TP=oi,Np=f.forwardRef(({className:e,...t},r)=>u.jsx(wn,{className:M("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,ref:r}));Np.displayName=wn.displayName;const Wq=fr("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ap=f.forwardRef(({side:e="right",className:t,children:r,...n},o)=>u.jsxs(TP,{children:[u.jsx(Np,{}),u.jsxs(Sn,{ref:o,className:M(Wq({side:e}),t),...n,children:[u.jsxs(qr,{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-secondary",children:[u.jsx(Nd,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));Ap.displayName=Sn.displayName;const Mp=({className:e,...t})=>u.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});Mp.displayName="SheetHeader";const NP=({className:e,...t})=>u.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});NP.displayName="SheetFooter";const Op=f.forwardRef(({className:e,...t},r)=>u.jsx(Cn,{ref:r,className:M("text-lg font-semibold text-foreground",e),...t}));Op.displayName=Cn.displayName;const Ip=f.forwardRef(({className:e,...t},r)=>u.jsx(_n,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));Ip.displayName=_n.displayName;const pu=768;function Uq(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const r=window.matchMedia(`(max-width: ${pu-1}px)`),n=()=>{t(window.innerWidth<pu)};return r.addEventListener("change",n),t(window.innerWidth<pu),()=>r.removeEventListener("change",n)},[]),!!e}function sd({className:e,...t}){return u.jsx("div",{className:M("animate-pulse rounded-md bg-primary/10",e),...t})}var[Fi,C3]=De("Tooltip",[Qt]),Bi=Qt(),AP="TooltipProvider",Kq=700,cd="tooltip.open",[Yq,jp]=Fi(AP),MP=e=>{const{__scopeTooltip:t,delayDuration:r=Kq,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=f.useState(!0),c=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),u.jsx(Yq,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),s(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(p=>{c.current=p},[]),disableHoverableContent:o,children:a})};MP.displayName=AP;var zi="Tooltip",[Xq,Bo]=Fi(zi),OP=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=jp(zi,e.__scopeTooltip),l=Bi(t),[p,d]=f.useState(null),m=We(),b=f.useRef(0),g=i??c.disableHoverableContent,h=s??c.delayDuration,v=f.useRef(!1),[y=!1,x]=$e({prop:n,defaultProp:o,onChange:C=>{C?(c.onOpen(),document.dispatchEvent(new CustomEvent(cd))):c.onClose(),a==null||a(C)}}),w=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),S=f.useCallback(()=>{window.clearTimeout(b.current),b.current=0,v.current=!1,x(!0)},[x]),_=f.useCallback(()=>{window.clearTimeout(b.current),b.current=0,x(!1)},[x]),E=f.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{v.current=!0,x(!0),b.current=0},h)},[h,x]);return f.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),u.jsx(Tn,{...l,children:u.jsx(Xq,{scope:t,contentId:m,open:y,stateAttribute:w,trigger:p,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayed?E():S()},[c.isOpenDelayed,E,S]),onTriggerLeave:f.useCallback(()=>{g?_():(window.clearTimeout(b.current),b.current=0)},[_,g]),onOpen:S,onClose:_,disableHoverableContent:g,children:r})})};OP.displayName=zi;var ld="TooltipTrigger",IP=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Bo(ld,r),a=jp(ld,r),i=Bi(r),s=f.useRef(null),c=de(t,s,o.onTriggerChange),l=f.useRef(!1),p=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),u.jsx(Nn,{asChild:!0,...i,children:u.jsx(X.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:B(e.onPointerMove,m=>{m.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:B(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:B(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});IP.displayName=ld;var Dp="TooltipPortal",[Zq,Jq]=Fi(Dp,{forceMount:void 0}),jP=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Bo(Dp,t);return u.jsx(Zq,{scope:t,forceMount:r,children:u.jsx(Le,{present:r||a.open,children:u.jsx(zr,{asChild:!0,container:o,children:n})})})};jP.displayName=Dp;var vn="TooltipContent",DP=f.forwardRef((e,t)=>{const r=Jq(vn,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=Bo(vn,e.__scopeTooltip);return u.jsx(Le,{present:n||i.open,children:i.disableHoverableContent?u.jsx(kP,{side:o,...a,ref:t}):u.jsx(Qq,{side:o,...a,ref:t})})}),Qq=f.forwardRef((e,t)=>{const r=Bo(vn,e.__scopeTooltip),n=jp(vn,e.__scopeTooltip),o=f.useRef(null),a=de(t,o),[i,s]=f.useState(null),{trigger:c,onClose:l}=r,p=o.current,{onPointerInTransitChange:d}=n,m=f.useCallback(()=>{s(null),d(!1)},[d]),b=f.useCallback((g,h)=>{const v=g.currentTarget,y={x:g.clientX,y:g.clientY},x=nH(y,v.getBoundingClientRect()),w=oH(y,x),S=aH(h.getBoundingClientRect()),_=sH([...w,...S]);s(_),d(!0)},[d]);return f.useEffect(()=>()=>m(),[m]),f.useEffect(()=>{if(c&&p){const g=v=>b(v,p),h=v=>b(v,c);return c.addEventListener("pointerleave",g),p.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",g),p.removeEventListener("pointerleave",h)}}},[c,p,b,m]),f.useEffect(()=>{if(i){const g=h=>{const v=h.target,y={x:h.clientX,y:h.clientY},x=(c==null?void 0:c.contains(v))||(p==null?void 0:p.contains(v)),w=!iH(y,i);x?m():w&&(m(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,p,i,l,m]),u.jsx(kP,{...e,ref:a})}),[eH,tH]=Fi(zi,{isInside:!1}),kP=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=Bo(vn,r),l=Bi(r),{onClose:p}=c;return f.useEffect(()=>(document.addEventListener(cd,p),()=>document.removeEventListener(cd,p)),[p]),f.useEffect(()=>{if(c.trigger){const d=m=>{const b=m.target;b!=null&&b.contains(c.trigger)&&p()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,p]),u.jsx(ur,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:p,children:u.jsxs(Po,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(bd,{children:n}),u.jsx(eH,{scope:r,isInside:!0,children:u.jsx($_,{id:c.contentId,role:"tooltip",children:o||n})})]})})});DP.displayName=vn;var $P="TooltipArrow",rH=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Bi(r);return tH($P,r).isInside?null:u.jsx(To,{...o,...n,ref:t})});rH.displayName=$P;function nH(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function oH(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function aH(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function iH(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,l=t[i].x,p=t[i].y;c>n!=p>n&&r<(l-s)*(n-c)/(p-c)+s&&(o=!o)}return o}function sH(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),cH(t)}function cH(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var lH=MP,uH=OP,dH=IP,fH=jP,LP=DP;const FP=lH,BP=uH,zP=dH,kp=f.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(fH,{children:u.jsx(LP,{ref:n,sideOffset:t,className:M("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-tooltip-content-transform-origin]",e),...r})}));kp.displayName=LP.displayName;const pH="sidebar_state",mH=60*60*24*7,hH="16rem",gH="18rem",vH="3rem",bH="b",qP=f.createContext(null);function zo(){const e=f.useContext(qP);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const HP=f.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:o,children:a,...i},s)=>{const c=Uq(),[l,p]=f.useState(!1),[d,m]=f.useState(e),b=t??d,g=f.useCallback(x=>{const w=typeof x=="function"?x(b):x;r?r(w):m(w),document.cookie=`${pH}=${w}; path=/; max-age=${mH}`},[r,b]),h=f.useCallback(()=>c?p(x=>!x):g(x=>!x),[c,g,p]);f.useEffect(()=>{const x=w=>{w.key===bH&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),h())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[h]);const v=b?"expanded":"collapsed",y=f.useMemo(()=>({state:v,open:b,setOpen:g,isMobile:c,openMobile:l,setOpenMobile:p,toggleSidebar:h}),[v,b,g,c,l,p,h]);return u.jsx(qP.Provider,{value:y,children:u.jsx(FP,{delayDuration:0,children:u.jsx("div",{style:{"--sidebar-width":hH,"--sidebar-width-icon":vH,...o},className:M("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",n),ref:s,...i,children:a})})})});HP.displayName="SidebarProvider";const VP=f.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...a},i)=>{const{isMobile:s,state:c,openMobile:l,setOpenMobile:p}=zo();return r==="none"?u.jsx("div",{className:M("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:i,...a,children:o}):s?u.jsx(PP,{open:l,onOpenChange:p,...a,children:u.jsxs(Ap,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":gH},side:e,children:[u.jsxs(Mp,{className:"sr-only",children:[u.jsx(Op,{children:"Sidebar"}),u.jsx(Ip,{children:"Displays the mobile sidebar."})]}),u.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):u.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?r:"","data-variant":t,"data-side":e,children:[u.jsx("div",{className:M("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),u.jsx("div",{className:M("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...a,children:u.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});VP.displayName="Sidebar";const GP=f.forwardRef(({className:e,onClick:t,...r},n)=>{const{toggleSidebar:o}=zo();return u.jsxs(Pt,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:M("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...r,children:[u.jsx(Z1,{}),u.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});GP.displayName="SidebarTrigger";const WP=f.forwardRef(({className:e,...t},r)=>{const{toggleSidebar:n}=zo();return u.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:M("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});WP.displayName="SidebarRail";const UP=f.forwardRef(({className:e,...t},r)=>u.jsx("main",{ref:r,className:M("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));UP.displayName="SidebarInset";const KP=f.forwardRef(({className:e,...t},r)=>u.jsx(fo,{ref:r,"data-sidebar":"input",className:M("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));KP.displayName="SidebarInput";const YP=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"header",className:M("flex flex-col gap-2 p-2",e),...t}));YP.displayName="SidebarHeader";const XP=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"footer",className:M("flex flex-col gap-2 p-2",e),...t}));XP.displayName="SidebarFooter";const ZP=f.forwardRef(({className:e,...t},r)=>u.jsx(Tp,{ref:r,"data-sidebar":"separator",className:M("mx-2 w-auto bg-sidebar-border",e),...t}));ZP.displayName="SidebarSeparator";const JP=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"content",className:M("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));JP.displayName="SidebarContent";const QP=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"group",className:M("relative flex w-full min-w-0 flex-col p-2",e),...t}));QP.displayName="SidebarGroup";const eT=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?ct:"div";return u.jsx(o,{ref:n,"data-sidebar":"group-label",className:M("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});eT.displayName="SidebarGroupLabel";const tT=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?ct:"button";return u.jsx(o,{ref:n,"data-sidebar":"group-action",className:M("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});tT.displayName="SidebarGroupAction";const rT=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"group-content",className:M("w-full text-sm",e),...t}));rT.displayName="SidebarGroupContent";const nT=f.forwardRef(({className:e,...t},r)=>u.jsx("ul",{ref:r,"data-sidebar":"menu",className:M("flex w-full min-w-0 flex-col gap-1",e),...t}));nT.displayName="SidebarMenu";const oT=f.forwardRef(({className:e,...t},r)=>u.jsx("li",{ref:r,"data-sidebar":"menu-item",className:M("group/menu-item relative",e),...t}));oT.displayName="SidebarMenuItem";const yH=fr("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),aT=f.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:a,...i},s)=>{const c=e?ct:"button",{isMobile:l,state:p}=zo(),d=u.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:M(yH({variant:r,size:n}),a),...i});return o?(typeof o=="string"&&(o={children:o}),u.jsxs(BP,{children:[u.jsx(zP,{asChild:!0,children:d}),u.jsx(kp,{side:"right",align:"center",hidden:p!=="collapsed"||l,...o})]})):d});aT.displayName="SidebarMenuButton";const iT=f.forwardRef(({className:e,asChild:t=!1,showOnHover:r=!1,...n},o)=>{const a=t?ct:"button";return u.jsx(a,{ref:o,"data-sidebar":"menu-action",className:M("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...n})});iT.displayName="SidebarMenuAction";const sT=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:M("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));sT.displayName="SidebarMenuBadge";const cT=f.forwardRef(({className:e,showIcon:t=!1,...r},n)=>{const o=f.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return u.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:M("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&u.jsx(sd,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),u.jsx(sd,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});cT.displayName="SidebarMenuSkeleton";const lT=f.forwardRef(({className:e,...t},r)=>u.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:M("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));lT.displayName="SidebarMenuSub";const uT=f.forwardRef(({...e},t)=>u.jsx("li",{ref:t,...e}));uT.displayName="SidebarMenuSubItem";const dT=f.forwardRef(({asChild:e=!1,size:t="md",isActive:r,className:n,...o},a)=>{const i=e?ct:"a";return u.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:M("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...o})});dT.displayName="SidebarMenuSubButton";var fT=["PageUp","PageDown"],pT=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mT={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},In="Slider",[ud,xH,wH]=cr(In),[hT,_3]=De(In,[wH]),[SH,qi]=hT(In),gT=f.forwardRef((e,t)=>{const{name:r,min:n=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[n],value:p,onValueChange:d=()=>{},onValueCommit:m=()=>{},inverted:b=!1,form:g,...h}=e,v=f.useRef(new Set),y=f.useRef(0),w=i==="horizontal"?CH:_H,[S=[],_]=$e({prop:p,defaultProp:l,onChange:j=>{var N;(N=[...v.current][y.current])==null||N.focus(),d(j)}}),E=f.useRef(S);function C(j){const L=NH(S,j);k(j,L)}function A(j){k(j,y.current)}function P(){const j=E.current[y.current];S[y.current]!==j&&m(S)}function k(j,L,{commit:N}={commit:!1}){const D=IH(a),$=jH(Math.round((j-n)/a)*a+n,D),O=ho($,[n,o]);_((G=[])=>{const H=PH(G,O,L);if(OH(H,c*a)){y.current=H.indexOf(O);const z=String(H)!==String(G);return z&&N&&m(H),z?H:G}else return G})}return u.jsx(SH,{scope:e.__scopeSlider,name:r,disabled:s,min:n,max:o,valueIndexToChangeRef:y,thumbs:v.current,values:S,orientation:i,form:g,children:u.jsx(ud.Provider,{scope:e.__scopeSlider,children:u.jsx(ud.Slot,{scope:e.__scopeSlider,children:u.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...h,ref:t,onPointerDown:B(h.onPointerDown,()=>{s||(E.current=S)}),min:n,max:o,inverted:b,onSlideStart:s?void 0:C,onSlideMove:s?void 0:A,onSlideEnd:s?void 0:P,onHomeKeyDown:()=>!s&&k(n,0,{commit:!0}),onEndKeyDown:()=>!s&&k(o,S.length-1,{commit:!0}),onStepKeyDown:({event:j,direction:L})=>{if(!s){const $=fT.includes(j.key)||j.shiftKey&&pT.includes(j.key)?10:1,O=y.current,G=S[O],H=a*$*L;k(G+H,O,{commit:!0})}}})})})})});gT.displayName=In;var[vT,bT]=hT(In,{startEdge:"left",endEdge:"right",size:"width",direction:1}),CH=f.forwardRef((e,t)=>{const{min:r,max:n,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...p}=e,[d,m]=f.useState(null),b=de(t,w=>m(w)),g=f.useRef(void 0),h=Bt(o),v=h==="ltr",y=v&&!a||!v&&a;function x(w){const S=g.current||d.getBoundingClientRect(),_=[0,S.width],C=$p(_,y?[r,n]:[n,r]);return g.current=S,C(w-S.left)}return u.jsx(vT,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:u.jsx(yT,{dir:h,"data-orientation":"horizontal",...p,ref:b,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=x(w.clientX);i==null||i(S)},onSlideMove:w=>{const S=x(w.clientX);s==null||s(S)},onSlideEnd:()=>{g.current=void 0,c==null||c()},onStepKeyDown:w=>{const _=mT[y?"from-left":"from-right"].includes(w.key);l==null||l({event:w,direction:_?-1:1})}})})}),_H=f.forwardRef((e,t)=>{const{min:r,max:n,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:c,...l}=e,p=f.useRef(null),d=de(t,p),m=f.useRef(void 0),b=!o;function g(h){const v=m.current||p.current.getBoundingClientRect(),y=[0,v.height],w=$p(y,b?[n,r]:[r,n]);return m.current=v,w(h-v.top)}return u.jsx(vT,{scope:e.__scopeSlider,startEdge:b?"bottom":"top",endEdge:b?"top":"bottom",size:"height",direction:b?1:-1,children:u.jsx(yT,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const v=g(h.clientY);a==null||a(v)},onSlideMove:h=>{const v=g(h.clientY);i==null||i(v)},onSlideEnd:()=>{m.current=void 0,s==null||s()},onStepKeyDown:h=>{const y=mT[b?"from-bottom":"from-top"].includes(h.key);c==null||c({event:h,direction:y?-1:1})}})})}),yT=f.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c,...l}=e,p=qi(In,r);return u.jsx(X.span,{...l,ref:t,onKeyDown:B(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):fT.concat(pT).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:B(e.onPointerDown,d=>{const m=d.target;m.setPointerCapture(d.pointerId),d.preventDefault(),p.thumbs.has(m)?m.focus():n(d)}),onPointerMove:B(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:B(e.onPointerUp,d=>{const m=d.target;m.hasPointerCapture(d.pointerId)&&(m.releasePointerCapture(d.pointerId),a(d))})})}),xT="SliderTrack",wT=f.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=qi(xT,r);return u.jsx(X.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});wT.displayName=xT;var dd="SliderRange",ST=f.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=qi(dd,r),a=bT(dd,r),i=f.useRef(null),s=de(t,i),c=o.values.length,l=o.values.map(m=>_T(m,o.min,o.max)),p=c>1?Math.min(...l):0,d=100-Math.max(...l);return u.jsx(X.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:s,style:{...e.style,[a.startEdge]:p+"%",[a.endEdge]:d+"%"}})});ST.displayName=dd;var fd="SliderThumb",CT=f.forwardRef((e,t)=>{const r=xH(e.__scopeSlider),[n,o]=f.useState(null),a=de(t,s=>o(s)),i=f.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return u.jsx(RH,{...e,ref:a,index:i})}),RH=f.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:o,...a}=e,i=qi(fd,r),s=bT(fd,r),[c,l]=f.useState(null),p=de(t,x=>l(x)),d=c?i.form||!!c.closest("form"):!0,m=Ro(c),b=i.values[n],g=b===void 0?0:_T(b,i.min,i.max),h=TH(n,i.values.length),v=m==null?void 0:m[s.size],y=v?AH(v,g,s.direction):0;return f.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),u.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${y}px)`},children:[u.jsx(ud.ItemSlot,{scope:e.__scopeSlider,children:u.jsx(X.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":i.min,"aria-valuenow":b,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:p,style:b===void 0?{display:"none"}:e.style,onFocus:B(e.onFocus,()=>{i.valueIndexToChangeRef.current=n})})}),d&&u.jsx(EH,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:b},n)]})});CT.displayName=fd;var EH=e=>{const{value:t,...r}=e,n=f.useRef(null),o=Rn(t);return f.useEffect(()=>{const a=n.current,i=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&c){const l=new Event("input",{bubbles:!0});c.call(a,t),a.dispatchEvent(l)}},[o,t]),u.jsx("input",{style:{display:"none"},...r,ref:n,defaultValue:t})};function PH(e=[],t,r){const n=[...e];return n[r]=t,n.sort((o,a)=>o-a)}function _T(e,t,r){const a=100/(r-t)*(e-t);return ho(a,[0,100])}function TH(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function NH(e,t){if(e.length===1)return 0;const r=e.map(o=>Math.abs(o-t)),n=Math.min(...r);return r.indexOf(n)}function AH(e,t,r){const n=e/2,a=$p([0,50],[0,n]);return(n-a(t)*r)*r}function MH(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function OH(e,t){if(t>0){const r=MH(e);return Math.min(...r)>=t}return!0}function $p(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function IH(e){return(String(e).split(".")[1]||"").length}function jH(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var RT=gT,DH=wT,kH=ST,$H=CT;const ET=f.forwardRef(({className:e,...t},r)=>u.jsxs(RT,{ref:r,className:M("relative flex w-full touch-none select-none items-center",e),...t,children:[u.jsx(DH,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:u.jsx(kH,{className:"absolute h-full bg-primary"})}),u.jsx($H,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));ET.displayName=RT.displayName;var LH=(e,t,r,n,o,a,i,s)=>{let c=document.documentElement,l=["light","dark"];function p(b){(Array.isArray(e)?e:[e]).forEach(g=>{let h=g==="class",v=h&&a?o.map(y=>a[y]||y):o;h?(c.classList.remove(...v),c.classList.add(a&&a[b]?a[b]:b)):c.setAttribute(g,b)}),d(b)}function d(b){s&&l.includes(b)&&(c.style.colorScheme=b)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)p(n);else try{let b=localStorage.getItem(t)||r,g=i&&b==="system"?m():b;p(g)}catch{}},FH=f.createContext(void 0),BH={setTheme:e=>{},themes:[]},zH=()=>{var e;return(e=f.useContext(FH))!=null?e:BH};f.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:i,themes:s,nonce:c,scriptProps:l})=>{let p=JSON.stringify([r,t,a,e,s,i,n,o]).slice(1,-1);return f.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${LH.toString()})(${p})`}})});function qH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const HH=e=>{switch(e){case"success":return WH;case"info":return KH;case"warning":return UH;case"error":return YH;default:return null}},VH=Array(12).fill(0),GH=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},VH.map((r,n)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),WH=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),UH=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),KH=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),YH=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),XH=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ZH=()=>{const[e,t]=R.useState(document.hidden);return R.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let pd=1;class JH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:pd++,i=this.toasts.find(c=>c.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(c=>c.id===a?(this.publish({...c,...t,id:a,title:n}),{...c,...t,id:a,dismissible:s,title:n}):c):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0}))),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,i;const s=o.then(async l=>{if(i=["resolve",l],R.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(eV(l)&&!l.ok){a=!1;const d=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,b=typeof d=="object"?d:{message:d};this.create({id:n,type:"error",description:m,...b})}else if(l instanceof Error){a=!1;const d=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,b=typeof d=="object"?d:{message:d};this.create({id:n,type:"error",description:m,...b})}else if(r.success!==void 0){a=!1;const d=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,b=typeof d=="object"?d:{message:d};this.create({id:n,type:"success",description:m,...b})}}).catch(async l=>{if(i=["reject",l],r.error!==void 0){a=!1;const p=typeof r.error=="function"?await r.error(l):r.error,d=typeof r.description=="function"?await r.description(l):r.description,m=typeof p=="object"?p:{message:p};this.create({id:n,type:"error",description:d,...m})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),c=()=>new Promise((l,p)=>s.then(()=>i[0]==="reject"?p(i[1]):l(i[1])).catch(p));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(t,r)=>{const n=(r==null?void 0:r.id)||pd++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const bt=new JH,QH=(e,t)=>{const r=(t==null?void 0:t.id)||pd++;return bt.addToast({title:e,...t,id:r}),r},eV=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",tV=QH,rV=()=>bt.toasts,nV=()=>bt.getActiveToasts();Object.assign(tV,{success:bt.success,info:bt.info,warning:bt.warning,error:bt.error,custom:bt.custom,message:bt.message,promise:bt.promise,dismiss:bt.dismiss,loading:bt.loading},{getHistory:rV,getToasts:nV});qH("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function la(e){return e.label!==void 0}const oV=3,aV="24px",iV="16px",Eb=4e3,sV=356,cV=14,lV=45,uV=200;function Wt(...e){return e.filter(Boolean).join(" ")}function dV(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}const fV=e=>{var t,r,n,o,a,i,s,c,l;const{invert:p,toast:d,unstyled:m,interacting:b,setHeights:g,visibleToasts:h,heights:v,index:y,toasts:x,expanded:w,removeToast:S,defaultRichColors:_,closeButton:E,style:C,cancelButtonStyle:A,actionButtonStyle:P,className:k="",descriptionClassName:j="",duration:L,position:N,gap:D,expandByDefault:$,classNames:O,icons:G,closeButtonAriaLabel:H="Close toast"}=e,[z,oe]=R.useState(null),[Z,te]=R.useState(null),[F,W]=R.useState(!1),[Q,K]=R.useState(!1),[q,U]=R.useState(!1),[re,J]=R.useState(!1),[ne,V]=R.useState(!1),[ae,I]=R.useState(0),[ee,pe]=R.useState(0),me=R.useRef(d.duration||L||Eb),ge=R.useRef(null),fe=R.useRef(null),Ee=y===0,Fe=y+1<=h,we=d.type,Oe=d.dismissible!==!1,rt=d.className||"",Ze=d.descriptionClassName||"",Ue=R.useMemo(()=>v.findIndex(ie=>ie.toastId===d.id)||0,[v,d.id]),ot=R.useMemo(()=>{var ie;return(ie=d.closeButton)!=null?ie:E},[d.closeButton,E]),mt=R.useMemo(()=>d.duration||L||Eb,[d.duration,L]),ft=R.useRef(0),Ve=R.useRef(0),Ct=R.useRef(0),Ke=R.useRef(null),[Je,Mt]=N.split("-"),Gt=R.useMemo(()=>v.reduce((ie,Se,xe)=>xe>=Ue?ie:ie+Se.height,0),[v,Ue]),pr=ZH(),Pr=d.invert||p,Ot=we==="loading";Ve.current=R.useMemo(()=>Ue*D+Gt,[Ue,Gt]),R.useEffect(()=>{me.current=mt},[mt]),R.useEffect(()=>{W(!0)},[]),R.useEffect(()=>{const ie=fe.current;if(ie){const Se=ie.getBoundingClientRect().height;return pe(Se),g(xe=>[{toastId:d.id,height:Se,position:d.position},...xe]),()=>g(xe=>xe.filter(ke=>ke.toastId!==d.id))}},[g,d.id]),R.useLayoutEffect(()=>{if(!F)return;const ie=fe.current,Se=ie.style.height;ie.style.height="auto";const xe=ie.getBoundingClientRect().height;ie.style.height=Se,pe(xe),g(ke=>ke.find(Ie=>Ie.toastId===d.id)?ke.map(Ie=>Ie.toastId===d.id?{...Ie,height:xe}:Ie):[{toastId:d.id,height:xe,position:d.position},...ke])},[F,d.title,d.description,g,d.id]);const ue=R.useCallback(()=>{K(!0),I(Ve.current),g(ie=>ie.filter(Se=>Se.toastId!==d.id)),setTimeout(()=>{S(d)},uV)},[d,S,g,Ve]);R.useEffect(()=>{if(d.promise&&we==="loading"||d.duration===1/0||d.type==="loading")return;let ie;return w||b||pr?(()=>{if(Ct.current<ft.current){const ke=new Date().getTime()-ft.current;me.current=me.current-ke}Ct.current=new Date().getTime()})():(()=>{me.current!==1/0&&(ft.current=new Date().getTime(),ie=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),ue()},me.current))})(),()=>clearTimeout(ie)},[w,b,d,we,pr,ue]),R.useEffect(()=>{d.delete&&ue()},[ue,d.delete]);function be(){var ie;if(G!=null&&G.loading){var Se;return R.createElement("div",{className:Wt(O==null?void 0:O.loader,d==null||(Se=d.classNames)==null?void 0:Se.loader,"sonner-loader"),"data-visible":we==="loading"},G.loading)}return R.createElement(GH,{className:Wt(O==null?void 0:O.loader,d==null||(ie=d.classNames)==null?void 0:ie.loader),visible:we==="loading"})}var Ce,ve;return R.createElement("li",{tabIndex:0,ref:fe,className:Wt(k,rt,O==null?void 0:O.toast,d==null||(t=d.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[we],d==null||(r=d.classNames)==null?void 0:r[we]),"data-sonner-toast":"","data-rich-colors":(Ce=d.richColors)!=null?Ce:_,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":F,"data-promise":!!d.promise,"data-swiped":ne,"data-removed":Q,"data-visible":Fe,"data-y-position":Je,"data-x-position":Mt,"data-index":y,"data-front":Ee,"data-swiping":q,"data-dismissible":Oe,"data-type":we,"data-invert":Pr,"data-swipe-out":re,"data-swipe-direction":Z,"data-expanded":!!(w||$&&F),style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${Q?ae:Ve.current}px`,"--initial-height":$?"auto":`${ee}px`,...C,...d.style},onDragEnd:()=>{U(!1),oe(null),Ke.current=null},onPointerDown:ie=>{Ot||!Oe||(ge.current=new Date,I(Ve.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(U(!0),Ke.current={x:ie.clientX,y:ie.clientY}))},onPointerUp:()=>{var ie,Se,xe;if(re||!Oe)return;Ke.current=null;const ke=Number(((ie=fe.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qe=Number(((Se=fe.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ie=new Date().getTime()-((xe=ge.current)==null?void 0:xe.getTime()),Be=z==="x"?ke:Qe,at=Math.abs(Be)/Ie;if(Math.abs(Be)>=lV||at>.11){I(Ve.current),d.onDismiss==null||d.onDismiss.call(d,d),te(z==="x"?ke>0?"right":"left":Qe>0?"down":"up"),ue(),J(!0);return}else{var et,it;(et=fe.current)==null||et.style.setProperty("--swipe-amount-x","0px"),(it=fe.current)==null||it.style.setProperty("--swipe-amount-y","0px")}V(!1),U(!1),oe(null)},onPointerMove:ie=>{var Se,xe,ke;if(!Ke.current||!Oe||((Se=window.getSelection())==null?void 0:Se.toString().length)>0)return;const Ie=ie.clientY-Ke.current.y,Be=ie.clientX-Ke.current.x;var at;const et=(at=e.swipeDirections)!=null?at:dV(N);!z&&(Math.abs(Be)>1||Math.abs(Ie)>1)&&oe(Math.abs(Be)>Math.abs(Ie)?"x":"y");let it={x:0,y:0};const Ho=rr=>1/(1.5+Math.abs(rr)/20);if(z==="y"){if(et.includes("top")||et.includes("bottom"))if(et.includes("top")&&Ie<0||et.includes("bottom")&&Ie>0)it.y=Ie;else{const rr=Ie*Ho(Ie);it.y=Math.abs(rr)<Math.abs(Ie)?rr:Ie}}else if(z==="x"&&(et.includes("left")||et.includes("right")))if(et.includes("left")&&Be<0||et.includes("right")&&Be>0)it.x=Be;else{const rr=Be*Ho(Be);it.x=Math.abs(rr)<Math.abs(Be)?rr:Be}(Math.abs(it.x)>0||Math.abs(it.y)>0)&&V(!0),(xe=fe.current)==null||xe.style.setProperty("--swipe-amount-x",`${it.x}px`),(ke=fe.current)==null||ke.style.setProperty("--swipe-amount-y",`${it.y}px`)}},ot&&!d.jsx&&we!=="loading"?R.createElement("button",{"aria-label":H,"data-disabled":Ot,"data-close-button":!0,onClick:Ot||!Oe?()=>{}:()=>{ue(),d.onDismiss==null||d.onDismiss.call(d,d)},className:Wt(O==null?void 0:O.closeButton,d==null||(n=d.classNames)==null?void 0:n.closeButton)},(ve=G==null?void 0:G.close)!=null?ve:XH):null,we||d.icon||d.promise?R.createElement("div",{"data-icon":"",className:Wt(O==null?void 0:O.icon,d==null||(o=d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||be():null,d.type!=="loading"?d.icon||(G==null?void 0:G[we])||HH(we):null):null,R.createElement("div",{"data-content":"",className:Wt(O==null?void 0:O.content,d==null||(a=d.classNames)==null?void 0:a.content)},R.createElement("div",{"data-title":"",className:Wt(O==null?void 0:O.title,d==null||(i=d.classNames)==null?void 0:i.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?R.createElement("div",{"data-description":"",className:Wt(j,Ze,O==null?void 0:O.description,d==null||(s=d.classNames)==null?void 0:s.description)},typeof d.description=="function"?d.description():d.description):null),R.isValidElement(d.cancel)?d.cancel:d.cancel&&la(d.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||A,onClick:ie=>{la(d.cancel)&&Oe&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,ie),ue())},className:Wt(O==null?void 0:O.cancelButton,d==null||(c=d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,R.isValidElement(d.action)?d.action:d.action&&la(d.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||P,onClick:ie=>{la(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,ie),!ie.defaultPrevented&&ue())},className:Wt(O==null?void 0:O.actionButton,d==null||(l=d.classNames)==null?void 0:l.actionButton)},d.action.label):null)};function Pb(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function pV(e,t){const r={};return[e,t].forEach((n,o)=>{const a=o===1,i=a?"--mobile-offset":"--offset",s=a?iV:aV;function c(l){["top","right","bottom","left"].forEach(p=>{r[`${i}-${p}`]=typeof l=="number"?`${l}px`:l})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(l=>{n[l]===void 0?r[`${i}-${l}`]=s:r[`${i}-${l}`]=typeof n[l]=="number"?`${n[l]}px`:n[l]}):c(s)}),r}const mV=R.forwardRef(function(t,r){const{invert:n,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:s,className:c,offset:l,mobileOffset:p,theme:d="light",richColors:m,duration:b,style:g,visibleToasts:h=oV,toastOptions:v,dir:y=Pb(),gap:x=cV,icons:w,containerAriaLabel:S="Notifications"}=t,[_,E]=R.useState([]),C=R.useMemo(()=>Array.from(new Set([o].concat(_.filter(Z=>Z.position).map(Z=>Z.position)))),[_,o]),[A,P]=R.useState([]),[k,j]=R.useState(!1),[L,N]=R.useState(!1),[D,$]=R.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),O=R.useRef(null),G=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=R.useRef(null),z=R.useRef(!1),oe=R.useCallback(Z=>{E(te=>{var F;return(F=te.find(W=>W.id===Z.id))!=null&&F.delete||bt.dismiss(Z.id),te.filter(({id:W})=>W!==Z.id)})},[]);return R.useEffect(()=>bt.subscribe(Z=>{if(Z.dismiss){const te=_.map(F=>F.id===Z.id?{...F,delete:!0}:F);requestAnimationFrame(()=>{E(te)});return}setTimeout(()=>{Ya.flushSync(()=>{E(te=>{const F=te.findIndex(W=>W.id===Z.id);return F!==-1?[...te.slice(0,F),{...te[F],...Z},...te.slice(F+1)]:[Z,...te]})})})}),[_]),R.useEffect(()=>{if(d!=="system"){$(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;const Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:te})=>{$(te?"dark":"light")})}catch{Z.addListener(({matches:F})=>{try{$(F?"dark":"light")}catch(W){console.error(W)}})}},[d]),R.useEffect(()=>{_.length<=1&&j(!1)},[_]),R.useEffect(()=>{const Z=te=>{var F;if(a.every(K=>te[K]||te.code===K)){var Q;j(!0),(Q=O.current)==null||Q.focus()}te.code==="Escape"&&(document.activeElement===O.current||(F=O.current)!=null&&F.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[a]),R.useEffect(()=>{if(O.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,z.current=!1)}},[O.current]),R.createElement("section",{ref:r,"aria-label":`${S} ${G}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((Z,te)=>{var F;const[W,Q]=Z.split("-");return _.length?R.createElement("ol",{key:Z,dir:y==="auto"?Pb():y,tabIndex:-1,ref:O,className:c,"data-sonner-toaster":!0,"data-sonner-theme":D,"data-y-position":W,"data-lifted":k&&_.length>1&&!i,"data-x-position":Q,style:{"--front-toast-height":`${((F=A[0])==null?void 0:F.height)||0}px`,"--width":`${sV}px`,"--gap":`${x}px`,...g,...pV(l,p)},onBlur:K=>{z.current&&!K.currentTarget.contains(K.relatedTarget)&&(z.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||z.current||(z.current=!0,H.current=K.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{L||j(!1)},onDragEnd:()=>j(!1),onPointerDown:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||N(!0)},onPointerUp:()=>N(!1)},_.filter(K=>!K.position&&te===0||K.position===Z).map((K,q)=>{var U,re;return R.createElement(fV,{key:K.id,icons:w,index:q,toast:K,defaultRichColors:m,duration:(U=v==null?void 0:v.duration)!=null?U:b,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:h,closeButton:(re=v==null?void 0:v.closeButton)!=null?re:s,interacting:L,position:Z,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,closeButtonAriaLabel:v==null?void 0:v.closeButtonAriaLabel,removeToast:oe,toasts:_.filter(J=>J.position==K.position),heights:A.filter(J=>J.position==K.position),setHeights:P,expandByDefault:i,gap:x,expanded:k,swipeDirections:t.swipeDirections})})):null}))}),hV=({...e})=>{const{theme:t="system"}=zH();return u.jsx(mV,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var Lp="Switch",[gV,R3]=De(Lp),[vV,bV]=gV(Lp),PT=f.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:c="on",onCheckedChange:l,form:p,...d}=e,[m,b]=f.useState(null),g=de(t,w=>b(w)),h=f.useRef(!1),v=m?p||!!m.closest("form"):!0,[y=!1,x]=$e({prop:o,defaultProp:a,onChange:l});return u.jsxs(vV,{scope:r,checked:y,disabled:s,children:[u.jsx(X.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":AT(y),"data-disabled":s?"":void 0,disabled:s,value:c,...d,ref:g,onClick:B(e.onClick,w=>{x(S=>!S),v&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})}),v&&u.jsx(yV,{control:m,bubbles:!h.current,name:n,value:c,checked:y,required:i,disabled:s,form:p,style:{transform:"translateX(-100%)"}})]})});PT.displayName=Lp;var TT="SwitchThumb",NT=f.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=bV(TT,r);return u.jsx(X.span,{"data-state":AT(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});NT.displayName=TT;var yV=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,a=f.useRef(null),i=Rn(r),s=Ro(t);return f.useEffect(()=>{const c=a.current,l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"checked").set;if(i!==r&&d){const m=new Event("click",{bubbles:n});d.call(c,r),c.dispatchEvent(m)}},[i,r,n]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function AT(e){return e?"checked":"unchecked"}var MT=PT,xV=NT;const OT=f.forwardRef(({className:e,...t},r)=>u.jsx(MT,{className:M("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:u.jsx(xV,{className:M("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));OT.displayName=MT.displayName;const IT=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{className:"relative w-full overflow-auto",children:u.jsx("table",{ref:r,className:M("w-full caption-bottom text-sm",e),...t})}));IT.displayName="Table";const jT=f.forwardRef(({className:e,...t},r)=>u.jsx("thead",{ref:r,className:M("[&_tr]:border-b",e),...t}));jT.displayName="TableHeader";const DT=f.forwardRef(({className:e,...t},r)=>u.jsx("tbody",{ref:r,className:M("[&_tr:last-child]:border-0",e),...t}));DT.displayName="TableBody";const kT=f.forwardRef(({className:e,...t},r)=>u.jsx("tfoot",{ref:r,className:M("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));kT.displayName="TableFooter";const $T=f.forwardRef(({className:e,...t},r)=>u.jsx("tr",{ref:r,className:M("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));$T.displayName="TableRow";const LT=f.forwardRef(({className:e,...t},r)=>u.jsx("th",{ref:r,className:M("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));LT.displayName="TableHead";const FT=f.forwardRef(({className:e,...t},r)=>u.jsx("td",{ref:r,className:M("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));FT.displayName="TableCell";const BT=f.forwardRef(({className:e,...t},r)=>u.jsx("caption",{ref:r,className:M("mt-4 text-sm text-muted-foreground",e),...t}));BT.displayName="TableCaption";var Fp="Tabs",[wV,E3]=De(Fp,[er]),zT=er(),[SV,Bp]=wV(Fp),qT=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:c="automatic",...l}=e,p=Bt(s),[d,m]=$e({prop:n,onChange:o,defaultProp:a});return u.jsx(SV,{scope:r,baseId:We(),value:d,onValueChange:m,orientation:i,dir:p,activationMode:c,children:u.jsx(X.div,{dir:p,"data-orientation":i,...l,ref:t})})});qT.displayName=Fp;var HT="TabsList",VT=f.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Bp(HT,r),i=zT(r);return u.jsx(No,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:u.jsx(X.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});VT.displayName=HT;var GT="TabsTrigger",WT=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,i=Bp(GT,r),s=zT(r),c=YT(i.baseId,n),l=XT(i.baseId,n),p=n===i.value;return u.jsx(Ao,{asChild:!0,...s,focusable:!o,active:p,children:u.jsx(X.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":l,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:B(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(n):d.preventDefault()}),onKeyDown:B(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(n)}),onFocus:B(e.onFocus,()=>{const d=i.activationMode!=="manual";!p&&!o&&d&&i.onValueChange(n)})})})});WT.displayName=GT;var UT="TabsContent",KT=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...i}=e,s=Bp(UT,r),c=YT(s.baseId,n),l=XT(s.baseId,n),p=n===s.value,d=f.useRef(p);return f.useEffect(()=>{const m=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(m)},[]),u.jsx(Le,{present:o||p,children:({present:m})=>u.jsx(X.div,{"data-state":p?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:m&&a})})});KT.displayName=UT;function YT(e,t){return`${e}-trigger-${t}`}function XT(e,t){return`${e}-content-${t}`}var CV=qT,ZT=VT,JT=WT,QT=KT;const _V=CV,eN=f.forwardRef(({className:e,...t},r)=>u.jsx(ZT,{ref:r,className:M("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));eN.displayName=ZT.displayName;const tN=f.forwardRef(({className:e,...t},r)=>u.jsx(JT,{ref:r,className:M("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));tN.displayName=JT.displayName;const rN=f.forwardRef(({className:e,...t},r)=>u.jsx(QT,{ref:r,className:M("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));rN.displayName=QT.displayName;const nN=f.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{className:M("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));nN.displayName="Textarea";var zp="ToastProvider",[qp,RV,EV]=cr("Toast"),[oN,P3]=De("Toast",[EV]),[PV,Hi]=oN(zp),aN=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[s,c]=f.useState(null),[l,p]=f.useState(0),d=f.useRef(!1),m=f.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${zp}\`. Expected non-empty \`string\`.`),u.jsx(qp.Provider,{scope:t,children:u.jsx(PV,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:a,toastCount:l,viewport:s,onViewportChange:c,onToastAdd:f.useCallback(()=>p(b=>b+1),[]),onToastRemove:f.useCallback(()=>p(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:m,children:i})})};aN.displayName=zp;var iN="ToastViewport",TV=["F8"],md="toast.viewportPause",hd="toast.viewportResume",sN=f.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=TV,label:o="Notifications ({hotkey})",...a}=e,i=Hi(iN,r),s=RV(r),c=f.useRef(null),l=f.useRef(null),p=f.useRef(null),d=f.useRef(null),m=de(t,d,i.onViewportChange),b=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;f.useEffect(()=>{const v=y=>{var w;n.length!==0&&n.every(S=>y[S]||y.code===S)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[n]),f.useEffect(()=>{const v=c.current,y=d.current;if(g&&v&&y){const x=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(md);y.dispatchEvent(E),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(hd);y.dispatchEvent(E),i.isClosePausedRef.current=!1}},S=E=>{!v.contains(E.relatedTarget)&&w()},_=()=>{v.contains(document.activeElement)||w()};return v.addEventListener("focusin",x),v.addEventListener("focusout",S),v.addEventListener("pointermove",x),v.addEventListener("pointerleave",_),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{v.removeEventListener("focusin",x),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",x),v.removeEventListener("pointerleave",_),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[g,i.isClosePausedRef]);const h=f.useCallback(({tabbingDirection:v})=>{const x=s().map(w=>{const S=w.ref.current,_=[S,...zV(S)];return v==="forwards"?_:_.reverse()});return(v==="forwards"?x.reverse():x).flat()},[s]);return f.useEffect(()=>{const v=d.current;if(v){const y=x=>{var _,E,C;const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const A=document.activeElement,P=x.shiftKey;if(x.target===v&&P){(_=l.current)==null||_.focus();return}const L=h({tabbingDirection:P?"backwards":"forwards"}),N=L.findIndex(D=>D===A);mu(L.slice(N+1))?x.preventDefault():P?(E=l.current)==null||E.focus():(C=p.current)==null||C.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[s,h]),u.jsxs(ZA,{ref:c,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&u.jsx(gd,{ref:l,onFocusFromOutsideViewport:()=>{const v=h({tabbingDirection:"forwards"});mu(v)}}),u.jsx(qp.Slot,{scope:r,children:u.jsx(X.ol,{tabIndex:-1,...a,ref:m})}),g&&u.jsx(gd,{ref:p,onFocusFromOutsideViewport:()=>{const v=h({tabbingDirection:"backwards"});mu(v)}})]})});sN.displayName=iN;var cN="ToastFocusProxy",gd=f.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,a=Hi(cN,r);return u.jsx($o,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var l;const s=i.relatedTarget;!((l=a.viewport)!=null&&l.contains(s))&&n()}})});gd.displayName=cN;var Vi="Toast",NV="toast.swipeStart",AV="toast.swipeMove",MV="toast.swipeCancel",OV="toast.swipeEnd",lN=f.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:a,...i}=e,[s=!0,c]=$e({prop:n,defaultProp:o,onChange:a});return u.jsx(Le,{present:r||s,children:u.jsx(DV,{open:s,...i,ref:t,onClose:()=>c(!1),onPause:Te(e.onPause),onResume:Te(e.onResume),onSwipeStart:B(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:B(e.onSwipeMove,l=>{const{x:p,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:B(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:B(e.onSwipeEnd,l=>{const{x:p,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),c(!1)})})})});lN.displayName=Vi;var[IV,jV]=oN(Vi,{onClose(){}}),DV=f.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:p,onSwipeMove:d,onSwipeCancel:m,onSwipeEnd:b,...g}=e,h=Hi(Vi,r),[v,y]=f.useState(null),x=de(t,D=>y(D)),w=f.useRef(null),S=f.useRef(null),_=o||h.duration,E=f.useRef(0),C=f.useRef(_),A=f.useRef(0),{onToastAdd:P,onToastRemove:k}=h,j=Te(()=>{var $;(v==null?void 0:v.contains(document.activeElement))&&(($=h.viewport)==null||$.focus()),i()}),L=f.useCallback(D=>{!D||D===1/0||(window.clearTimeout(A.current),E.current=new Date().getTime(),A.current=window.setTimeout(j,D))},[j]);f.useEffect(()=>{const D=h.viewport;if(D){const $=()=>{L(C.current),l==null||l()},O=()=>{const G=new Date().getTime()-E.current;C.current=C.current-G,window.clearTimeout(A.current),c==null||c()};return D.addEventListener(md,O),D.addEventListener(hd,$),()=>{D.removeEventListener(md,O),D.removeEventListener(hd,$)}}},[h.viewport,_,c,l,L]),f.useEffect(()=>{a&&!h.isClosePausedRef.current&&L(_)},[a,_,h.isClosePausedRef,L]),f.useEffect(()=>(P(),()=>k()),[P,k]);const N=f.useMemo(()=>v?gN(v):null,[v]);return h.viewport?u.jsxs(u.Fragment,{children:[N&&u.jsx(kV,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:N}),u.jsx(IV,{scope:r,onClose:j,children:go.createPortal(u.jsx(qp.ItemSlot,{scope:r,children:u.jsx(XA,{asChild:!0,onEscapeKeyDown:B(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||j(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(X.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":h.swipeDirection,...g,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:B(e.onKeyDown,D=>{D.key==="Escape"&&(s==null||s(D.nativeEvent),D.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,j()))}),onPointerDown:B(e.onPointerDown,D=>{D.button===0&&(w.current={x:D.clientX,y:D.clientY})}),onPointerMove:B(e.onPointerMove,D=>{if(!w.current)return;const $=D.clientX-w.current.x,O=D.clientY-w.current.y,G=!!S.current,H=["left","right"].includes(h.swipeDirection),z=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,oe=H?z(0,$):0,Z=H?0:z(0,O),te=D.pointerType==="touch"?10:2,F={x:oe,y:Z},W={originalEvent:D,delta:F};G?(S.current=F,ua(AV,d,W,{discrete:!1})):Tb(F,h.swipeDirection,te)?(S.current=F,ua(NV,p,W,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs($)>te||Math.abs(O)>te)&&(w.current=null)}),onPointerUp:B(e.onPointerUp,D=>{const $=S.current,O=D.target;if(O.hasPointerCapture(D.pointerId)&&O.releasePointerCapture(D.pointerId),S.current=null,w.current=null,$){const G=D.currentTarget,H={originalEvent:D,delta:$};Tb($,h.swipeDirection,h.swipeThreshold)?ua(OV,b,H,{discrete:!0}):ua(MV,m,H,{discrete:!0}),G.addEventListener("click",z=>z.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),kV=e=>{const{__scopeToast:t,children:r,...n}=e,o=Hi(Vi,t),[a,i]=f.useState(!1),[s,c]=f.useState(!1);return FV(()=>i(!0)),f.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),s?null:u.jsx(zr,{asChild:!0,children:u.jsx($o,{...n,children:a&&u.jsxs(u.Fragment,{children:[o.label," ",r]})})})},$V="ToastTitle",uN=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(X.div,{...n,ref:t})});uN.displayName=$V;var LV="ToastDescription",dN=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(X.div,{...n,ref:t})});dN.displayName=LV;var fN="ToastAction",pN=f.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?u.jsx(hN,{altText:r,asChild:!0,children:u.jsx(Hp,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${fN}\`. Expected non-empty \`string\`.`),null)});pN.displayName=fN;var mN="ToastClose",Hp=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=jV(mN,r);return u.jsx(hN,{asChild:!0,children:u.jsx(X.button,{type:"button",...n,ref:t,onClick:B(e.onClick,o.onClose)})})});Hp.displayName=mN;var hN=f.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return u.jsx(X.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function gN(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),BV(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...gN(n))}}),t}function ua(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Zn(o,a):o.dispatchEvent(a)}var Tb=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),a=n>o;return t==="left"||t==="right"?a&&n>r:!a&&o>r};function FV(e=()=>{}){const t=Te(e);He(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function BV(e){return e.nodeType===e.ELEMENT_NODE}function zV(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function mu(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var qV=aN,vN=sN,bN=lN,yN=uN,xN=dN,wN=pN,SN=Hp;const CN=qV,Vp=f.forwardRef(({className:e,...t},r)=>u.jsx(vN,{ref:r,className:M("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Vp.displayName=vN.displayName;const HV=fr("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Gp=f.forwardRef(({className:e,variant:t,...r},n)=>u.jsx(bN,{ref:n,className:M(HV({variant:t}),e),...r}));Gp.displayName=bN.displayName;const _N=f.forwardRef(({className:e,...t},r)=>u.jsx(wN,{ref:r,className:M("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));_N.displayName=wN.displayName;const Wp=f.forwardRef(({className:e,...t},r)=>u.jsx(SN,{ref:r,className:M("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(Nd,{className:"h-4 w-4"})}));Wp.displayName=SN.displayName;const Up=f.forwardRef(({className:e,...t},r)=>u.jsx(yN,{ref:r,className:M("text-sm font-semibold [&+div]:text-xs",e),...t}));Up.displayName=yN.displayName;const Kp=f.forwardRef(({className:e,...t},r)=>u.jsx(xN,{ref:r,className:M("text-sm opacity-90",e),...t}));Kp.displayName=xN.displayName;const VV=1,GV=1e6;let hu=0;function WV(){return hu=(hu+1)%Number.MAX_SAFE_INTEGER,hu.toString()}const gu=new Map,Nb=e=>{if(gu.has(e))return;const t=setTimeout(()=>{gu.delete(e),Xn({type:"REMOVE_TOAST",toastId:e})},GV);gu.set(e,t)},UV=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,VV)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Nb(r):e.toasts.forEach(n=>{Nb(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},ga=[];let va={toasts:[]};function Xn(e){va=UV(va,e),ga.forEach(t=>{t(va)})}function KV({...e}){const t=WV(),r=o=>Xn({type:"UPDATE_TOAST",toast:{...o,id:t}}),n=()=>Xn({type:"DISMISS_TOAST",toastId:t});return Xn({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||n()}}}),{id:t,dismiss:n,update:r}}function YV(){const[e,t]=f.useState(va);return f.useEffect(()=>(ga.push(t),()=>{const r=ga.indexOf(t);r>-1&&ga.splice(r,1)}),[e]),{...e,toast:KV,dismiss:r=>Xn({type:"DISMISS_TOAST",toastId:r})}}function XV(){const{toasts:e}=YV();return u.jsxs(CN,{children:[e.map(function({id:t,title:r,description:n,action:o,...a}){return u.jsxs(Gp,{...a,children:[u.jsxs("div",{className:"grid gap-1",children:[r&&u.jsx(Up,{children:r}),n&&u.jsx(Kp,{children:n})]}),o,u.jsx(Wp,{})]},t)}),u.jsx(Vp,{})]})}var ZV="Toggle",Yp=f.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n=!1,onPressedChange:o,...a}=e,[i=!1,s]=$e({prop:r,onChange:o,defaultProp:n});return u.jsx(X.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:B(e.onClick,()=>{e.disabled||s(!i)})})});Yp.displayName=ZV;var RN=Yp,jn="ToggleGroup",[EN,T3]=De(jn,[er]),PN=er(),Xp=R.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return u.jsx(JV,{...o,ref:t})}if(r==="multiple"){const o=n;return u.jsx(QV,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${jn}\``)});Xp.displayName=jn;var[TN,NN]=EN(jn),JV=R.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,s]=$e({prop:r,defaultProp:n,onChange:o});return u.jsx(TN,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:R.useCallback(()=>s(""),[s]),children:u.jsx(AN,{...a,ref:t})})}),QV=R.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=$e({prop:r,defaultProp:n,onChange:o}),c=R.useCallback(p=>s((d=[])=>[...d,p]),[s]),l=R.useCallback(p=>s((d=[])=>d.filter(m=>m!==p)),[s]);return u.jsx(TN,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:l,children:u.jsx(AN,{...a,ref:t})})});Xp.displayName=jn;var[e3,t3]=EN(jn),AN=R.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...c}=e,l=PN(r),p=Bt(i),d={role:"group",dir:p,...c};return u.jsx(e3,{scope:r,rovingFocus:o,disabled:n,children:o?u.jsx(No,{asChild:!0,...l,orientation:a,dir:p,loop:s,children:u.jsx(X.div,{...d,ref:t})}):u.jsx(X.div,{...d,ref:t})})}),Ka="ToggleGroupItem",MN=R.forwardRef((e,t)=>{const r=NN(Ka,e.__scopeToggleGroup),n=t3(Ka,e.__scopeToggleGroup),o=PN(e.__scopeToggleGroup),a=r.value.includes(e.value),i=n.disabled||e.disabled,s={...e,pressed:a,disabled:i},c=R.useRef(null);return n.rovingFocus?u.jsx(Ao,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:u.jsx(Ab,{...s,ref:t})}):u.jsx(Ab,{...s,ref:t})});MN.displayName=Ka;var Ab=R.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=NN(Ka,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return u.jsx(Yp,{...s,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(n):a.onItemDeactivate(n)}})}),ON=Xp,IN=MN;const Zp=fr("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),jN=f.forwardRef(({className:e,variant:t,size:r,...n},o)=>u.jsx(RN,{ref:o,className:M(Zp({variant:t,size:r,className:e})),...n}));jN.displayName=RN.displayName;const DN=f.createContext({size:"default",variant:"default"}),kN=f.forwardRef(({className:e,variant:t,size:r,children:n,...o},a)=>u.jsx(ON,{ref:a,className:M("flex items-center justify-center gap-1",e),...o,children:u.jsx(DN.Provider,{value:{variant:t,size:r},children:n})}));kN.displayName=ON.displayName;const $N=f.forwardRef(({className:e,children:t,variant:r,size:n,...o},a)=>{const i=f.useContext(DN);return u.jsx(IN,{ref:a,className:M(Zp({variant:i.variant||r,size:i.size||n}),e),...o,children:t})});$N.displayName=IN.displayName;function r3({title:e,description:t,chart:r,value:n,previousValue:o,change:a,changeType:i,changeLabel:s,className:c,footerContent:l,menuItems:p,chartConfig:d,isLoading:m=!1}){const b=()=>i==="increase"?u.jsx(j1,{className:"h-4 w-4 text-emerald-500"}):i==="decrease"?u.jsx(T1,{className:"h-4 w-4 text-red-500"}):null,g=()=>i==="increase"?"text-emerald-500":i==="decrease"?"text-red-500":"text-muted-foreground";return u.jsxs(ai,{className:M("overflow-hidden",c),children:[u.jsxs(ii,{className:"flex flex-row items-center justify-between pb-2",children:[u.jsxs("div",{children:[u.jsx(si,{className:"text-base font-medium",children:e}),t&&u.jsx(ci,{children:t})]}),p&&p.length>0&&u.jsxs(uC,{children:[u.jsx(dC,{asChild:!0,children:u.jsxs(Pt,{variant:"ghost",className:"h-8 w-8 p-0",children:[u.jsx("span",{className:"sr-only",children:"Open menu"}),u.jsx(Td,{className:"h-4 w-4"})]})}),u.jsx(Xf,{align:"end",children:p.map((h,v)=>u.jsx(Zf,{onClick:h.onClick,children:h.label},v))})]})]}),u.jsxs(li,{className:"pb-2",children:[n&&u.jsx("div",{className:"flex items-center justify-between",children:u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-2xl font-bold",children:n}),(a!==void 0||o)&&u.jsxs("div",{className:"flex items-center text-xs",children:[b(),u.jsxs("span",{className:M("ml-1",g()),children:[a!==void 0&&`${Math.abs(a)}%`,o&&!a&&`from ${o}`]}),s&&u.jsx("span",{className:"ml-1 text-muted-foreground",children:s})]})]})}),u.jsx("div",{className:M("mt-4",n?"h-[180px]":"h-[240px]"),children:m?u.jsx("div",{className:"flex h-full items-center justify-center",children:u.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"})}):d&&r?u.jsx(uf,{config:d,children:r}):r})]}),l&&u.jsx(zd,{children:l})]})}function n3({title:e,breadcrumbItems:t=[],showHomeLink:r=!0,className:n="",children:o}){return u.jsx("header",{className:`border-b pb-4 ${n}`,children:u.jsxs("div",{className:"container mx-auto p-4",children:[(t.length>0||r)&&u.jsx(Ld,{className:"mb-2",children:u.jsxs(Fd,{children:[r&&u.jsxs(u.Fragment,{children:[u.jsx(xa,{children:u.jsxs(wa,{href:"/",className:"flex items-center",children:[u.jsx(U1,{className:"h-3.5 w-3.5 mr-1"}),"Home"]})}),t.length>0&&u.jsx(Sa,{children:u.jsx(br,{className:"h-3.5 w-3.5"})})]}),t.map((a,i)=>u.jsxs(R.Fragment,{children:[u.jsx(xa,{children:a.isCurrentPage?u.jsx(Bd,{children:a.label}):u.jsx(wa,{href:a.href||"#",children:a.label})}),i<t.length-1&&u.jsx(Sa,{children:u.jsx(br,{className:"h-3.5 w-3.5"})})]},i))]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[e&&u.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:e}),o&&u.jsx("div",{className:"flex items-center",children:o})]})]})})}function o3({className:e,...t}){return u.jsxs("div",{className:M("flex flex-col gap-6",e),...t,children:[u.jsxs(ai,{children:[u.jsxs(ii,{className:"text-center",children:[u.jsx(si,{className:"text-xl",children:"Welcome back"}),u.jsx(ci,{children:"Login with your Apple or Google account"})]}),u.jsx(li,{children:u.jsx("form",{children:u.jsxs("div",{className:"grid gap-6",children:[u.jsxs("div",{className:"flex flex-col gap-4",children:[u.jsxs(Pt,{variant:"outline",className:"w-full",children:[u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:u.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})}),"Login with Apple"]}),u.jsxs(Pt,{variant:"outline",className:"w-full",children:[u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:u.jsx("path",{d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z",fill:"currentColor"})}),"Login with Google"]})]}),u.jsx("div",{className:"relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t after:border-border",children:u.jsx("span",{className:"relative z-10 bg-background px-2 text-muted-foreground",children:"Or continue with"})}),u.jsxs("div",{className:"grid gap-6",children:[u.jsxs("div",{className:"grid gap-2",children:[u.jsx(uo,{htmlFor:"email",children:"Email"}),u.jsx(fo,{id:"email",type:"email",placeholder:"m@example.com",required:!0})]}),u.jsxs("div",{className:"grid gap-2",children:[u.jsxs("div",{className:"flex items-center",children:[u.jsx(uo,{htmlFor:"password",children:"Password"}),u.jsx("a",{href:"#",className:"ml-auto text-sm underline-offset-4 hover:underline",children:"Forgot your password?"})]}),u.jsx(fo,{id:"password",type:"password",required:!0})]}),u.jsx(Pt,{type:"submit",className:"w-full",children:"Login"})]}),u.jsxs("div",{className:"text-center text-sm",children:["Don't have an account?"," ",u.jsx("a",{href:"#",className:"underline underline-offset-4",children:"Sign up"})]})]})})})]}),u.jsxs("div",{className:"text-balance text-center text-xs text-muted-foreground [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-primary ",children:["By clicking continue, you agree to our ",u.jsx("a",{href:"#",children:"Terms of Service"})," ","and ",u.jsx("a",{href:"#",children:"Privacy Policy"}),"."]})]})}const LN=({search:e,options:t,submit:r})=>{const n=t&&t.length>0?t[0]:"",[o,a]=R.useState(!1),[i,s]=R.useState(!1),[c,l]=R.useState(""),[p,d]=R.useState(n),m=R.useRef(null),b=R.useRef(null),g=R.useRef(null),h=c?e.filter(w=>w==null?void 0:w.toLowerCase().includes(c.toLowerCase())):[],v=()=>{r(c,p)};R.useEffect(()=>{function w(S){m.current&&!m.current.contains(S.target)&&a(!1),b.current&&!b.current.contains(S.target)&&S.target!==g.current&&s(!1)}return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);const y=w=>{const S=w.target.value;l(S),s(S.length>0)},x=w=>{var S;l(w),s(!1),(S=g.current)==null||S.focus()};return u.jsxs("div",{className:"flex max-w-xl rounded-lg border border-blue-100 bg-white",children:[u.jsxs("div",{className:"relative flex-1",ref:b,children:[u.jsx("input",{ref:g,type:"search",placeholder:"Search...",value:c,onChange:y,onFocus:()=>c&&s(!0),className:"h-9 w-full border-0 bg-transparent px-3 py-2 outline-none"}),i&&h.length>0&&u.jsx("div",{className:"absolute left-0 top-full z-10 mt-1 w-full rounded-md border border-gray-200 bg-white py-1 shadow-lg",children:h.map(w=>u.jsx("button",{className:"flex w-full px-4 py-2 text-left text-sm hover:bg-gray-50",onClick:()=>x(w),children:w},w))})]}),u.jsxs("div",{className:"flex items-center",children:[u.jsx("div",{className:"h-5 w-[1px] bg-slate-200"}),u.jsxs("div",{className:"relative",ref:m,children:[u.jsxs("button",{onClick:()=>a(!o),className:"flex h-9 items-center gap-1 px-3 text-sm font-normal text-gray-700 hover:bg-gray-50",children:[p,u.jsx(bo,{className:"h-4 w-4 opacity-50"})]}),o&&u.jsx("div",{className:"absolute right-0 top-full z-10 mt-1 w-48 rounded-md border border-gray-200 bg-white py-1 shadow-lg",children:t==null?void 0:t.map(w=>u.jsx("button",{className:"flex w-full px-4 py-2 text-left text-sm hover:bg-gray-50",onClick:()=>{d(w),a(!1)},children:w},w))})]}),u.jsx("div",{className:"h-5 w-[1px] bg-slate-200"}),u.jsx("button",{className:"flex h-9 w-9 items-center justify-center text-gray-500 hover:bg-gray-50",onClick:v,children:u.jsx(Q1,{className:"h-2 w-2"})})]})]})};LN.displayName="SearchBar";const FN=R.createContext(void 0);function qo(){const e=R.useContext(FN);if(!e)throw new Error("useWizard must be used within a WizardProvider");return e}function BN({steps:e,children:t,onComplete:r,initialStep:n=0}){const[o,a]=R.useState(n),[i,s]=R.useState(!1),c=g=>{g>=0&&g<e.length&&a(g)},l=()=>{o<e.length-1?a(o+1):d()},p=()=>{o>0&&a(o-1)},d=()=>{s(!0),r==null||r()},m=g=>i||g<o?"completed":g===o?"current":"upcoming",b={currentStepIndex:o,steps:e,goToStep:c,nextStep:l,prevStep:p,isFirstStep:o===0,isLastStep:o===e.length-1,getStepStatus:m,completeWizard:d,isComplete:i};return u.jsx(FN.Provider,{value:b,children:t})}function a3({steps:e,children:t,onComplete:r,initialStep:n=0,className:o,showStepIndicator:a=!0,navigationPosition:i="bottom"}){return u.jsx(BN,{steps:e,onComplete:r,initialStep:n,children:u.jsxs("div",{className:M("w-full",o),children:[(i==="top"||i==="both")&&u.jsx(vd,{className:"mb-6"}),a&&u.jsx(zN,{className:"mb-8"}),u.jsx("div",{className:"wizard-content",children:t}),(i==="bottom"||i==="both")&&u.jsx(vd,{className:"mt-6"})]})})}function zN({className:e}){const{steps:t,currentStepIndex:r,getStepStatus:n,goToStep:o}=qo();return u.jsx("div",{className:M("w-full",e),children:u.jsxs("div",{className:"relative flex w-full justify-between",children:[u.jsx("div",{className:"absolute top-1/2 h-0.5 w-full -translate-y-1/2 bg-muted",children:u.jsx("div",{className:"h-full bg-primary transition-all duration-300 ease-in-out",style:{width:`${r/(t.length-1)*100}%`}})}),t.map((a,i)=>{const s=n(i);return u.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[u.jsx("button",{onClick:()=>{s==="completed"&&o(i)},disabled:s==="upcoming",className:M("flex h-8 w-8 items-center justify-center rounded-full border-2 text-sm font-medium transition-colors",s==="completed"&&"border-primary bg-primary text-primary-foreground hover:bg-primary/90",s==="current"&&"border-primary bg-background text-primary",s==="upcoming"&&"border-muted bg-background text-muted-foreground"),"aria-current":s==="current"?"step":void 0,children:s==="completed"?u.jsx(bn,{className:"h-4 w-4"}):i+1}),u.jsxs("div",{className:"mt-2 text-center",children:[u.jsx("div",{className:M("text-xs font-medium",s==="completed"&&"text-primary",s==="current"&&"text-primary",s==="upcoming"&&"text-muted-foreground"),children:a.title}),a.description&&u.jsx("div",{className:"mt-0.5 text-xs text-muted-foreground",children:a.description})]})]},a.id)})]})})}function vd({className:e,showCancel:t=!1,onCancel:r,nextLabel:n="Next",backLabel:o="Back",completeLabel:a="Complete"}){const{nextStep:i,prevStep:s,isFirstStep:c,isLastStep:l,completeWizard:p}=qo();return u.jsxs("div",{className:M("flex items-center justify-between",e),children:[u.jsxs("div",{children:[!c&&u.jsx(Pt,{variant:"outline",onClick:s,children:o}),t&&c&&u.jsx(Pt,{variant:"outline",onClick:r,children:"Cancel"})]}),u.jsxs(Pt,{onClick:l?p:i,children:[l?a:n,!l&&u.jsx(br,{className:"ml-1 h-4 w-4"})]})]})}function i3({stepId:e,children:t}){const{steps:r,currentStepIndex:n,isComplete:o}=qo(),a=r[n];return o||a.id!==e?null:u.jsx(u.Fragment,{children:t})}function s3({children:e}){const{isComplete:t}=qo();return t?u.jsx(u.Fragment,{children:e}):null}exports.Accordion=qA;exports.AccordionContent=sy;exports.AccordionItem=ay;exports.AccordionTrigger=iy;exports.Alert=ux;exports.AlertDescription=fx;exports.AlertDialog=dO;exports.AlertDialogAction=cx;exports.AlertDialogCancel=lx;exports.AlertDialogContent=nx;exports.AlertDialogDescription=sx;exports.AlertDialogFooter=ax;exports.AlertDialogHeader=ox;exports.AlertDialogOverlay=kd;exports.AlertDialogPortal=rx;exports.AlertDialogTitle=ix;exports.AlertDialogTrigger=fO;exports.AlertTitle=dx;exports.AspectRatio=gO;exports.Avatar=Cx;exports.AvatarFallback=Rx;exports.AvatarImage=_x;exports.Badge=xO;exports.Breadcrumb=Ld;exports.BreadcrumbEllipsis=Px;exports.BreadcrumbItem=xa;exports.BreadcrumbLink=wa;exports.BreadcrumbList=Fd;exports.BreadcrumbPage=Bd;exports.BreadcrumbSeparator=Sa;exports.Button=Pt;exports.Card=ai;exports.CardContent=li;exports.CardDescription=ci;exports.CardFooter=zd;exports.CardHeader=ii;exports.CardTitle=si;exports.Carousel=Ox;exports.CarouselContent=Ix;exports.CarouselItem=jx;exports.CarouselNext=kx;exports.CarouselPrevious=Dx;exports.ChartContainer=uf;exports.ChartLegend=E$;exports.ChartLegendContent=Tw;exports.ChartStyle=Ew;exports.ChartTooltip=R$;exports.ChartTooltipContent=Pw;exports.Checkbox=jw;exports.Collapsible=O$;exports.CollapsibleContent=j$;exports.CollapsibleTrigger=I$;exports.ContextMenu=H2;exports.ContextMenuCheckboxItem=cS;exports.ContextMenuContent=iS;exports.ContextMenuGroup=G2;exports.ContextMenuItem=sS;exports.ContextMenuLabel=uS;exports.ContextMenuPortal=W2;exports.ContextMenuRadioGroup=K2;exports.ContextMenuRadioItem=lS;exports.ContextMenuSeparator=dS;exports.ContextMenuShortcut=fS;exports.ContextMenuSub=U2;exports.ContextMenuSubContent=aS;exports.ContextMenuSubTrigger=oS;exports.ContextMenuTrigger=V2;exports.Dialog=Y2;exports.DialogClose=Z2;exports.DialogContent=mS;exports.DialogDescription=bS;exports.DialogFooter=gS;exports.DialogHeader=hS;exports.DialogOverlay=Wf;exports.DialogPortal=pS;exports.DialogTitle=vS;exports.DialogTrigger=X2;exports.Drawer=AS;exports.DrawerClose=PF;exports.DrawerContent=OS;exports.DrawerDescription=kS;exports.DrawerFooter=jS;exports.DrawerHeader=IS;exports.DrawerOverlay=Kf;exports.DrawerPortal=MS;exports.DrawerTitle=DS;exports.DrawerTrigger=EF;exports.DropdownMenu=uC;exports.DropdownMenuCheckboxItem=mC;exports.DropdownMenuContent=Xf;exports.DropdownMenuGroup=YF;exports.DropdownMenuItem=Zf;exports.DropdownMenuLabel=gC;exports.DropdownMenuPortal=XF;exports.DropdownMenuRadioGroup=JF;exports.DropdownMenuRadioItem=hC;exports.DropdownMenuSeparator=vC;exports.DropdownMenuShortcut=bC;exports.DropdownMenuSub=ZF;exports.DropdownMenuSubContent=pC;exports.DropdownMenuSubTrigger=fC;exports.DropdownMenuTrigger=dC;exports.Form=SB;exports.FormControl=AC;exports.FormDescription=MC;exports.FormField=CB;exports.FormItem=TC;exports.FormLabel=NC;exports.FormMessage=OC;exports.GraphCard=r3;exports.Header=n3;exports.HoverCard=IB;exports.HoverCardContent=FC;exports.HoverCardTrigger=jB;exports.Input=fo;exports.InputOTP=GC;exports.InputOTPGroup=WC;exports.InputOTPSeparator=KC;exports.InputOTPSlot=UC;exports.Label=uo;exports.LoginForm=o3;exports.Menubar=E_;exports.MenubarCheckboxItem=O_;exports.MenubarContent=A_;exports.MenubarGroup=bz;exports.MenubarItem=M_;exports.MenubarLabel=j_;exports.MenubarMenu=vz;exports.MenubarPortal=yz;exports.MenubarRadioGroup=xz;exports.MenubarRadioItem=I_;exports.MenubarSeparator=D_;exports.MenubarShortcut=k_;exports.MenubarSub=wz;exports.MenubarSubContent=N_;exports.MenubarSubTrigger=T_;exports.MenubarTrigger=P_;exports.NavigationMenu=lR;exports.NavigationMenuContent=pR;exports.NavigationMenuIndicator=mR;exports.NavigationMenuItem=Bz;exports.NavigationMenuLink=zz;exports.NavigationMenuList=uR;exports.NavigationMenuTrigger=fR;exports.NavigationMenuViewport=lp;exports.Pagination=hR;exports.PaginationContent=gR;exports.PaginationEllipsis=xR;exports.PaginationItem=vR;exports.PaginationLink=Ni;exports.PaginationNext=yR;exports.PaginationPrevious=bR;exports.Popover=e5;exports.PopoverAnchor=r5;exports.PopoverContent=IR;exports.PopoverTrigger=t5;exports.Progress=FR;exports.RadioGroup=QR;exports.RadioGroupItem=eE;exports.ResizableHandle=J5;exports.ResizablePanel=Z5;exports.ResizablePanelGroup=X5;exports.ScrollArea=$E;exports.ScrollBar=_p;exports.SearchBar=LN;exports.Select=Lq;exports.SelectContent=wP;exports.SelectGroup=Fq;exports.SelectItem=CP;exports.SelectLabel=SP;exports.SelectScrollDownButton=Pp;exports.SelectScrollUpButton=Ep;exports.SelectSeparator=_P;exports.SelectTrigger=xP;exports.SelectValue=Bq;exports.Separator=Tp;exports.Sheet=PP;exports.SheetClose=Gq;exports.SheetContent=Ap;exports.SheetDescription=Ip;exports.SheetFooter=NP;exports.SheetHeader=Mp;exports.SheetOverlay=Np;exports.SheetPortal=TP;exports.SheetTitle=Op;exports.SheetTrigger=Vq;exports.Sidebar=VP;exports.SidebarContent=JP;exports.SidebarFooter=XP;exports.SidebarGroup=QP;exports.SidebarGroupAction=tT;exports.SidebarGroupContent=rT;exports.SidebarGroupLabel=eT;exports.SidebarHeader=YP;exports.SidebarInput=KP;exports.SidebarInset=UP;exports.SidebarMenu=nT;exports.SidebarMenuAction=iT;exports.SidebarMenuBadge=sT;exports.SidebarMenuButton=aT;exports.SidebarMenuItem=oT;exports.SidebarMenuSkeleton=cT;exports.SidebarMenuSub=lT;exports.SidebarMenuSubButton=dT;exports.SidebarMenuSubItem=uT;exports.SidebarProvider=HP;exports.SidebarRail=WP;exports.SidebarSeparator=ZP;exports.SidebarTrigger=GP;exports.Skeleton=sd;exports.Slider=ET;exports.SonnerToaster=hV;exports.Switch=OT;exports.Table=IT;exports.TableBody=DT;exports.TableCaption=BT;exports.TableCell=FT;exports.TableFooter=kT;exports.TableHead=LT;exports.TableHeader=jT;exports.TableRow=$T;exports.Tabs=_V;exports.TabsContent=rN;exports.TabsList=eN;exports.TabsTrigger=tN;exports.Textarea=nN;exports.Toast=Gp;exports.ToastAction=_N;exports.ToastClose=Wp;exports.ToastDescription=Kp;exports.ToastProvider=CN;exports.ToastTitle=Up;exports.ToastViewport=Vp;exports.Toaster=XV;exports.Toggle=jN;exports.ToggleGroup=kN;exports.ToggleGroupItem=$N;exports.Tooltip=BP;exports.TooltipContent=kp;exports.TooltipProvider=FP;exports.TooltipTrigger=zP;exports.Wizard=a3;exports.WizardCompletion=s3;exports.WizardNavigation=vd;exports.WizardProvider=BN;exports.WizardStepContent=i3;exports.WizardStepIndicator=zN;exports.badgeVariants=Ex;exports.buttonVariants=wo;exports.navigationMenuTriggerStyle=dR;exports.toggleVariants=Zp;exports.useFormField=ko;exports.useSidebar=zo;exports.useWizard=qo;
|