arkenstone-ui 0.0.17 → 0.0.18
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/dist/arkenstone-ui.es.js +11677 -188
- package/dist/arkenstone-ui.umd.js +112 -4
- package/dist/style.css +1 -1
- package/dist/types/components/access-gate.d.ts +11 -0
- package/dist/types/components/arkestone.d.ts +25 -0
- package/dist/types/components/custom/breadcrumb.d.ts +7 -0
- package/dist/types/components/custom/button.d.ts +4 -0
- package/dist/types/components/custom/index.d.ts +8 -0
- package/dist/types/components/custom/input.d.ts +3 -0
- package/dist/types/components/custom/mode-toggle.d.ts +1 -0
- package/dist/types/components/custom/search.d.ts +23 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/sidebar/app-sidebar.d.ts +3 -0
- package/dist/types/components/sidebar/nav-main.d.ts +14 -0
- package/dist/types/components/sidebar/nav-secondary.d.ts +10 -0
- package/dist/types/components/sidebar/nav-slot2.d.ts +15 -0
- package/dist/types/components/sidebar/nav-user.d.ts +21 -0
- package/dist/types/components/tables/default-table.d.ts +17 -0
- package/dist/types/components/ui/accordion.d.ts +7 -0
- package/dist/types/components/ui/alert.d.ts +9 -0
- package/dist/types/components/ui/avatar.d.ts +6 -0
- package/dist/types/components/ui/badge.d.ts +9 -0
- package/dist/types/components/ui/breadcrumb.d.ts +11 -0
- package/dist/types/components/ui/button.d.ts +10 -0
- package/dist/types/components/ui/calendar.d.ts +8 -0
- package/dist/types/components/ui/card.d.ts +8 -0
- package/dist/types/components/ui/chart.d.ts +40 -0
- package/dist/types/components/ui/checkbox.d.ts +4 -0
- package/dist/types/components/ui/collapsible.d.ts +5 -0
- package/dist/types/components/ui/dialog.d.ts +13 -0
- package/dist/types/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/types/components/ui/form.d.ts +24 -0
- package/dist/types/components/ui/hover-card.d.ts +6 -0
- package/dist/types/components/ui/icon.d.ts +7 -0
- package/dist/types/components/ui/input.d.ts +3 -0
- package/dist/types/components/ui/label.d.ts +4 -0
- package/dist/types/components/ui/navigation-menu.d.ts +14 -0
- package/dist/types/components/ui/placeholder-pattern.d.ts +5 -0
- package/dist/types/components/ui/popover.d.ts +6 -0
- package/dist/types/components/ui/scroll-area.d.ts +5 -0
- package/dist/types/components/ui/select.d.ts +15 -0
- package/dist/types/components/ui/separator.d.ts +4 -0
- package/dist/types/components/ui/sheet.d.ts +13 -0
- package/dist/types/components/ui/sidebar.d.ts +70 -0
- package/dist/types/components/ui/skeleton.d.ts +2 -0
- package/dist/types/components/ui/sonner.d.ts +3 -0
- package/dist/types/components/ui/table.d.ts +10 -0
- package/dist/types/components/ui/tabs.d.ts +7 -0
- package/dist/types/components/ui/toggle-group.d.ts +7 -0
- package/dist/types/components/ui/toggle.d.ts +9 -0
- package/dist/types/components/ui/tooltip.d.ts +7 -0
- package/dist/types/components/workspace/workspace.d.ts +1 -0
- package/dist/types/config/config.d.ts +41 -0
- package/dist/types/e-commerce/index.d.ts +1 -0
- package/dist/types/e-commerce/product/components/catelog/components/category-filter.d.ts +14 -0
- package/dist/types/e-commerce/product/components/catelog/components/filter.d.ts +60 -0
- package/dist/types/e-commerce/product/components/catelog/components/index.d.ts +6 -0
- package/dist/types/e-commerce/product/components/catelog/components/listing-controls.d.ts +12 -0
- package/dist/types/e-commerce/product/components/catelog/components/pagination.d.ts +37 -0
- package/dist/types/e-commerce/product/components/catelog/components/sort-bar.d.ts +33 -0
- package/dist/types/e-commerce/product/components/catelog/components/view-mode.d.ts +22 -0
- package/dist/types/e-commerce/product/components/catelog/index.d.ts +3 -0
- package/dist/types/e-commerce/product/components/catelog/layouts/catelog-content-layout.d.ts +9 -0
- package/dist/types/e-commerce/product/components/catelog/layouts/index.d.ts +2 -0
- package/dist/types/e-commerce/product/components/catelog/layouts/listings-layout.d.ts +13 -0
- package/dist/types/e-commerce/product/components/catelog/pages/default-catelog.d.ts +1 -0
- package/dist/types/e-commerce/product/components/catelog/pages/index.d.ts +1 -0
- package/dist/types/e-commerce/product/components/index.d.ts +2 -0
- package/dist/types/e-commerce/product/components/product-card/components/add-to-cart-button.d.ts +19 -0
- package/dist/types/e-commerce/product/components/product-card/components/brand-title.d.ts +16 -0
- package/dist/types/e-commerce/product/components/product-card/components/categories.d.ts +19 -0
- package/dist/types/e-commerce/product/components/product-card/components/discount-badge.d.ts +13 -0
- package/dist/types/e-commerce/product/components/product-card/components/index.d.ts +8 -0
- package/dist/types/e-commerce/product/components/product-card/components/price-card.d.ts +21 -0
- package/dist/types/e-commerce/product/components/product-card/components/product-image.d.ts +15 -0
- package/dist/types/e-commerce/product/components/product-card/components/view-details-button.d.ts +8 -0
- package/dist/types/e-commerce/product/components/product-card/components/wishlist-button.d.ts +15 -0
- package/dist/types/e-commerce/product/components/product-card/index.d.ts +4 -0
- package/dist/types/e-commerce/product/components/product-card/layouts/index.d.ts +2 -0
- package/dist/types/e-commerce/product/components/product-card/layouts/product-card-image-layout.d.ts +35 -0
- package/dist/types/e-commerce/product/components/product-card/layouts/product-card-layout.d.ts +16 -0
- package/dist/types/e-commerce/product/components/product-card/page/index.d.ts +1 -0
- package/dist/types/e-commerce/product/components/product-card/page/product-card-listing.d.ts +2 -0
- package/dist/types/e-commerce/product/components/product-card/product-card.d.ts +16 -0
- package/dist/types/e-commerce/product/index.d.ts +3 -0
- package/dist/types/e-commerce/product/service/brand-service.d.ts +67 -0
- package/dist/types/e-commerce/product/service/category-service.d.ts +68 -0
- package/dist/types/e-commerce/product/service/index.d.ts +7 -0
- package/dist/types/e-commerce/product/service/product-image-service.d.ts +44 -0
- package/dist/types/e-commerce/product/service/product-service.d.ts +67 -0
- package/dist/types/e-commerce/product/service/product-taxonomy-service.d.ts +49 -0
- package/dist/types/e-commerce/product/service/taxonomy-service.d.ts +69 -0
- package/dist/types/e-commerce/product/service/taxonomy-type-service.d.ts +68 -0
- package/dist/types/e-commerce/product/types/index.d.ts +87 -0
- package/dist/types/generics/generic-service.d.ts +0 -0
- package/dist/types/hooks/api.d.ts +15 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/use-access.d.ts +7 -0
- package/dist/types/hooks/use-mobile.d.ts +1 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/layouts/index.d.ts +0 -0
- package/dist/types/layouts/panels/default-panel-layout.d.ts +5 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/types/provider/index.d.ts +1 -0
- package/dist/types/provider/theme-provider.d.ts +13 -0
- package/dist/types/stores/acl.store.d.ts +8 -0
- package/dist/types/stores/config.store.d.ts +10 -0
- package/dist/types/stores/index.d.ts +4 -0
- package/dist/types/stores/store-factory.d.ts +17 -0
- package/dist/types/stores/useStore.d.ts +43 -0
- package/dist/types/types/acl.d.ts +31 -0
- package/dist/types/types/config.d.ts +12 -0
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/util/currency-code/currency-symbols.json.d.ts +17 -0
- package/dist/types/util/currency-code/index.d.ts +6 -0
- package/dist/types/util/index.d.ts +2 -0
- package/dist/types/util/text-filter.d.ts +6 -0
- package/package.json +38 -2
- package/dist/types/components/button.d.ts +0 -5
- package/dist/types/components/janith-nirmal.d.ts +0 -3
- package/dist/types/pages/home.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(D,V){typeof exports=="object"&&typeof module<"u"?V(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],V):(D=typeof globalThis<"u"?globalThis:D||self,V(D["arkenstone-ui"]={},D.React,D.ReactDOM))})(this,function(D,V,lo){"use strict";function uo(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 p=uo(V),fo=uo(lo);var Gr={exports:{}},vt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var po;function uc(){if(po)return vt;po=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:s}}return vt.Fragment=t,vt.jsx=r,vt.jsxs=r,vt}var wt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,9 +14,117 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var mo;function dc(){return mo||(mo=1,process.env.NODE_ENV!=="production"&&function(){function e(x){if(x==null)return null;if(typeof x=="function")return x.$$typeof===X?null:x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case b:return"Fragment";case S:return"Profiler";case v:return"StrictMode";case A:return"Suspense";case P:return"SuspenseList";case W:return"Activity"}if(typeof x=="object")switch(typeof x.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case h:return"Portal";case E:return x.displayName||"Context";case _:return(x._context.displayName||"Context")+".Consumer";case T:var j=x.render;return x=x.displayName,x||(x=j.displayName||j.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case R:return j=x.displayName||null,j!==null?j:e(x.type)||"Memo";case N:j=x._payload,x=x._init;try{return e(x(j))}catch{}}return null}function t(x){return""+x}function r(x){try{t(x);var j=!1}catch{j=!0}if(j){j=console;var F=j.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return F.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),t(x)}}function n(x){if(x===b)return"<>";if(typeof x=="object"&&x!==null&&x.$$typeof===N)return"<...>";try{var j=e(x);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function o(){var x=G.A;return x===null?null:x.getOwner()}function s(){return Error("react-stack-top-frame")}function i(x){if(H.call(x,"key")){var j=Object.getOwnPropertyDescriptor(x,"key").get;if(j&&j.isReactWarning)return!1}return x.key!==void 0}function a(x,j){function F(){I||(I=!0,console.error("%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://react.dev/link/special-props)",j))}F.isReactWarning=!0,Object.defineProperty(x,"key",{get:F,configurable:!0})}function l(){var x=e(this.type);return Z[x]||(Z[x]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),x=this.props.ref,x!==void 0?x:null}function c(x,j,F,$,te,ue){var L=F.ref;return x={$$typeof:g,type:x,key:j,props:F,_owner:$},(L!==void 0?L:null)!==null?Object.defineProperty(x,"ref",{enumerable:!1,get:l}):Object.defineProperty(x,"ref",{enumerable:!1,value:null}),x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(x,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(x,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:te}),Object.defineProperty(x,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x}function u(x,j,F,$,te,ue){var L=j.children;if(L!==void 0)if($)if(z(L)){for($=0;$<L.length;$++)d(L[$]);Object.freeze&&Object.freeze(L)}else console.error("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 d(L);if(H.call(j,"key")){L=e(x);var ie=Object.keys(j).filter(function(ye){return ye!=="key"});$=0<ie.length?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}",K[L+$]||(ie=0<ie.length?"{"+ie.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,n,a,d,a),M[a+n]=!0)}if(a=null,t!==void 0&&(i(t),a=""+t),p(r)&&(i(r.key),a=""+r.key),"key"in r){t={};for(var S in r)S!=="key"&&(t[S]=r[S])}else t=r;return a&&v(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),z(e,a,t,s(),T,O)}function w(e){N(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===h&&(e._payload.status==="fulfilled"?N(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function N(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}var R=m,C=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),H=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),te=Symbol.for("react.client.reference"),j=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,ne=Array.isArray,y=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(e){return e()}};var F,I={},$=R.react_stack_bottom_frame.bind(R,l)(),D=y(b(l)),M={};E.Fragment=x,E.jsx=function(e,r,t){var n=1e4>j.recentlyCreatedOwnerStacks++;return P(e,r,t,!1,n?Error("react-stack-top-frame"):$,n?y(b(e)):D)},E.jsxs=function(e,r,t){var n=1e4>j.recentlyCreatedOwnerStacks++;return P(e,r,t,!0,n?Error("react-stack-top-frame"):$,n?y(b(e)):D)}}()),E}process.env.NODE_ENV==="production"?k.exports=L():k.exports=W();var c=k.exports;function U({children:o,className:f,active:i}){return c.jsxs("div",{className:"px-10 py-5 rounded-full w-full bg-green-500",children:[c.jsx("h3",{className:"c-text",children:"Button Field"}),c.jsx("button",{className:f,children:o}),i&&c.jsx("p",{children:"description"})]})}function J({name:o}){return c.jsxs("div",{className:"w-full bg-green-500 px-30 py-5",children:[c.jsx("h1",{className:"c-text text-blue-500 text-sm",children:o}),c.jsx("p",{className:"bg-blue-500 my-40",children:"test"})]})}u.Button=U,u.JanithNirmal=J,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
|
22
|
+
<%s key={someKey} {...props} />`,$,L,ie,L),K[L+$]=!0)}if(L=null,F!==void 0&&(r(F),L=""+F),i(j)&&(r(j.key),L=""+j.key),"key"in j){F={};for(var Q in j)Q!=="key"&&(F[Q]=j[Q])}else F=j;return L&&a(F,typeof x=="function"?x.displayName||x.name||"Unknown":x),c(x,L,F,o(),te,ue)}function d(x){f(x)?x._store&&(x._store.validated=1):typeof x=="object"&&x!==null&&x.$$typeof===N&&(x._payload.status==="fulfilled"?f(x._payload.value)&&x._payload.value._store&&(x._payload.value._store.validated=1):x._store&&(x._store.validated=1))}function f(x){return typeof x=="object"&&x!==null&&x.$$typeof===g}var y=V,g=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),G=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,z=Array.isArray,Y=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(x){return x()}};var I,Z={},C=y.react_stack_bottom_frame.bind(y,s)(),k=Y(n(s)),K={};wt.Fragment=b,wt.jsx=function(x,j,F){var $=1e4>G.recentlyCreatedOwnerStacks++;return u(x,j,F,!1,$?Error("react-stack-top-frame"):C,$?Y(n(x)):k)},wt.jsxs=function(x,j,F){var $=1e4>G.recentlyCreatedOwnerStacks++;return u(x,j,F,!0,$?Error("react-stack-top-frame"):C,$?Y(n(x)):k)}}()),wt}process.env.NODE_ENV==="production"?Gr.exports=uc():Gr.exports=dc();var m=Gr.exports;const ho=e=>{let t;const r=new Set,n=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),r.forEach(y=>y(t,f))}},o=()=>t,a={setState:n,getState:o,getInitialState:()=>l,subscribe:c=>(r.add(c),()=>r.delete(c))},l=t=e(n,o,a);return a},fc=e=>e?ho(e):ho,pc=e=>e;function mc(e,t=pc){const r=V.useSyncExternalStore(e.subscribe,V.useCallback(()=>t(e.getState()),[e,t]),V.useCallback(()=>t(e.getInitialState()),[e,t]));return V.useDebugValue(r),r}const go=e=>{const t=fc(e),r=n=>mc(t,n);return Object.assign(r,t),r},tt=e=>e?go(e):go;function yo(e,t){let r;try{r=e()}catch{return}return{getItem:o=>{var s;const i=l=>l===null?null:JSON.parse(l,void 0),a=(s=r.getItem(o))!=null?s:null;return a instanceof Promise?a.then(i):i(a)},setItem:(o,s)=>r.setItem(o,JSON.stringify(s,void 0)),removeItem:o=>r.removeItem(o)}}const Zr=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return Zr(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return Zr(n)(r)}}}},hc=(e,t)=>(r,n,o)=>{let s={storage:yo(()=>localStorage),partialize:h=>h,version:0,merge:(h,b)=>({...b,...h}),...t},i=!1;const a=new Set,l=new Set;let c=s.storage;if(!c)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...h)},n,o);const u=()=>{const h=s.partialize({...n()});return c.setItem(s.name,{state:h,version:s.version})},d=o.setState;o.setState=(h,b)=>(d(h,b),u());const f=e((...h)=>(r(...h),u()),n,o);o.getInitialState=()=>f;let y;const g=()=>{var h,b;if(!c)return;i=!1,a.forEach(S=>{var _;return S((_=n())!=null?_:f)});const v=((b=s.onRehydrateStorage)==null?void 0:b.call(s,(h=n())!=null?h:f))||void 0;return Zr(c.getItem.bind(c))(s.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==s.version){if(s.migrate){const _=s.migrate(S.state,S.version);return _ instanceof Promise?_.then(E=>[!0,E]):[!0,_]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var _;const[E,T]=S;if(y=s.merge(T,(_=n())!=null?_:f),r(y,!0),E)return u()}).then(()=>{v==null||v(y,void 0),y=n(),i=!0,l.forEach(S=>S(y))}).catch(S=>{v==null||v(void 0,S)})};return o.persist={setOptions:h=>{s={...s,...h},h.storage&&(c=h.storage)},clearStorage:()=>{c==null||c.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>g(),hasHydrated:()=>i,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(l.add(h),()=>{l.delete(h)})},s.skipHydration||g(),y||f};var bo=Symbol.for("immer-nothing"),vo=Symbol.for("immer-draftable"),ne=Symbol.for("immer-state"),gc=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function de(e,...t){if(process.env.NODE_ENV!=="production"){const r=gc[e],n=Ve(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fe=Object,rt=fe.getPrototypeOf,Ht="constructor",Gt="prototype",qr="configurable",Zt="enumerable",qt="writable",xt="value",je=e=>!!e&&!!e[ne];function Ie(e){var t;return e?xo(e)||Kt(e)||!!e[vo]||!!((t=e[Ht])!=null&&t[vo])||Xt(e)||Jt(e):!1}var yc=fe[Gt][Ht].toString(),wo=new WeakMap;function xo(e){if(!e||!Kr(e))return!1;const t=rt(e);if(t===null||t===fe[Gt])return!0;const r=fe.hasOwnProperty.call(t,Ht)&&t[Ht];if(r===Object)return!0;if(!Ve(r))return!1;let n=wo.get(r);return n===void 0&&(n=Function.toString.call(r),wo.set(r,n)),n===yc}function _t(e,t,r=!0){St(e)===0?(r?Reflect.ownKeys(e):fe.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function St(e){const t=e[ne];return t?t.type_:Kt(e)?1:Xt(e)?2:Jt(e)?3:0}var _o=(e,t,r=St(e))=>r===2?e.has(t):fe[Gt].hasOwnProperty.call(e,t),Yr=(e,t,r=St(e))=>r===2?e.get(t):e[t],Yt=(e,t,r,n=St(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function bc(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Kt=Array.isArray,Xt=e=>e instanceof Map,Jt=e=>e instanceof Set,Kr=e=>typeof e=="object",Ve=e=>typeof e=="function",Xr=e=>typeof e=="boolean",Ae=e=>e.copy_||e.base_,Jr=e=>e.modified_?e.copy_:e.base_;function Qr(e,t){if(Xt(e))return new Map(e);if(Jt(e))return new Set(e);if(Kt(e))return Array[Gt].slice.call(e);const r=xo(e);if(t===!0||t==="class_only"&&!r){const n=fe.getOwnPropertyDescriptors(e);delete n[ne];let o=Reflect.ownKeys(n);for(let s=0;s<o.length;s++){const i=o[s],a=n[i];a[qt]===!1&&(a[qt]=!0,a[qr]=!0),(a.get||a.set)&&(n[i]={[qr]:!0,[qt]:!0,[Zt]:a[Zt],[xt]:e[i]})}return fe.create(rt(e),n)}else{const n=rt(e);if(n!==null&&r)return{...e};const o=fe.create(n);return fe.assign(o,e)}}function en(e,t=!1){return er(e)||je(e)||(St(e)>1&&fe.defineProperties(e,{set:Qt,add:Qt,clear:Qt,delete:Qt}),fe.freeze(e),t&&_t(e,(r,n)=>{en(n,!0)},!1)),e}function vc(){de(2)}var Qt={[xt]:vc};function er(e){return e===null||!Kr(e)?!0:fe.isFrozen(e)}var tr="MapSet",tn="Patches",So={};function nt(e){const t=So[e];return t||de(0,e),t}var wc=e=>!!So[e],Et,Eo=()=>Et,xc=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:wc(tr)?nt(tr):void 0});function Co(e,t){t&&(e.patchPlugin_=nt(tn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function rn(e){nn(e),e.drafts_.forEach(_c),e.drafts_=null}function nn(e){e===Et&&(Et=e.parent_)}var Ro=e=>Et=xc(Et,e);function _c(e){const t=e[ne];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function To(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[ne].modified_&&(rn(t),de(4)),Ie(e)&&(e=Po(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[ne].base_,e,t)}else e=Po(t,r);return Sc(t,e,!0),rn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==bo?e:void 0}function Po(e,t){if(er(t))return t;const r=t[ne];if(!r)return on(t,e.handledSet_,e);if(!rr(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Oo(r,e)}return r.copy_}function Sc(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&en(t,r)}function Ao(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var rr=(e,t)=>e.scope_===t,Ec=[];function ko(e,t,r,n){const o=Ae(e),s=e.type_;if(n!==void 0&&Yr(o,n,s)===t){Yt(o,n,r,s);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;_t(o,(l,c)=>{if(je(c)){const u=a.get(c)||[];u.push(l),a.set(c,u)}})}const i=e.draftLocations_.get(t)??Ec;for(const a of i)Yt(o,a,r,s)}function Cc(e,t,r){e.callbacks_.push(function(o){var a;const s=t;if(!s||!rr(s,o))return;(a=o.mapSetPlugin_)==null||a.fixSetContents(s);const i=Jr(s);ko(e,s.draft_??s,i,r),Oo(s,o)})}function Oo(e,t){var n;if(e.modified_&&!e.finalized_&&(e.type_===3||(((n=e.assigned_)==null?void 0:n.size)??0)>0)){const{patchPlugin_:o}=t;if(o){const s=o.getPath(e);s&&o.generatePatches_(e,s,t)}Ao(e)}}function Rc(e,t,r){const{scope_:n}=e;if(je(r)){const o=r[ne];rr(o,n)&&o.callbacks_.push(function(){nr(e);const i=Jr(o);ko(e,r,i,t)})}else Ie(r)&&e.callbacks_.push(function(){const s=Ae(e);Yr(s,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&on(Yr(e.copy_,t,e.type_),n.handledSet_,n)})}function on(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||je(e)||t.has(e)||!Ie(e)||er(e)||(t.add(e),_t(e,(n,o)=>{if(je(o)){const s=o[ne];if(rr(s,r)){const i=Jr(s);Yt(e,n,i,e.type_),Ao(s)}}else Ie(o)&&on(o,t,r)})),e}function Tc(e,t){const r=Kt(e),n={type_:r?1:0,scope_:t?t.scope_:Eo(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,s=sn;r&&(o=[n],s=Ct);const{revoke:i,proxy:a}=Proxy.revocable(o,s);return n.draft_=a,n.revoke_=i,[a,n]}var sn={get(e,t){if(t===ne)return e;const r=Ae(e);if(!_o(r,t,e.type_))return Pc(e,r,t);const n=r[t];if(e.finalized_||!Ie(n))return n;if(n===an(e.base_,t)){nr(e);const o=e.type_===1?+t:t,s=ln(e.scope_,n,e,o);return e.copy_[o]=s}return n},has(e,t){return t in Ae(e)},ownKeys(e){return Reflect.ownKeys(Ae(e))},set(e,t,r){const n=Mo(Ae(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=an(Ae(e),t),s=o==null?void 0:o[ne];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(bc(r,o)&&(r!==void 0||_o(e.base_,t,e.type_)))return!0;nr(e),cn(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Rc(e,t,r)),!0},deleteProperty(e,t){return nr(e),an(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),cn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ae(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[qt]:!0,[qr]:e.type_!==1||t!=="length",[Zt]:n[Zt],[xt]:r[t]}},defineProperty(){de(11)},getPrototypeOf(e){return rt(e.base_)},setPrototypeOf(){de(12)}},Ct={};_t(sn,(e,t)=>{Ct[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}),Ct.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&de(13),Ct.set.call(this,e,t,void 0)},Ct.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&de(14),sn.set.call(this,e[0],t,r,e[0])};function an(e,t){const r=e[ne];return(r?Ae(r):e)[t]}function Pc(e,t,r){var o;const n=Mo(t,r);return n?xt in n?n[xt]:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function Mo(e,t){if(!(t in e))return;let r=rt(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=rt(r)}}function cn(e){e.modified_||(e.modified_=!0,e.parent_&&cn(e.parent_))}function nr(e){e.copy_||(e.assigned_=new Map,e.copy_=Qr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ac=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Ve(t)&&!Ve(r)){const s=r;r=t;const i=this;return function(l=s,...c){return i.produce(l,u=>r.call(this,u,...c))}}Ve(r)||de(6),n!==void 0&&!Ve(n)&&de(7);let o;if(Ie(t)){const s=Ro(this),i=ln(s,t,void 0);let a=!0;try{o=r(i),a=!1}finally{a?rn(s):nn(s)}return Co(s,n),To(o,s)}else if(!t||!Kr(t)){if(o=r(t),o===void 0&&(o=t),o===bo&&(o=void 0),this.autoFreeze_&&en(o,!0),n){const s=[],i=[];nt(tn).generateReplacementPatches_(t,o,{patches_:s,inversePatches_:i}),n(s,i)}return o}else de(1,t)},this.produceWithPatches=(t,r)=>{if(Ve(t))return(i,...a)=>this.produceWithPatches(i,l=>t(l,...a));let n,o;return[this.produce(t,r,(i,a)=>{n=i,o=a}),n,o]},Xr(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Xr(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Xr(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ie(e)||de(8),je(e)&&(e=kc(e));const t=Ro(this),r=ln(t,e,void 0);return r[ne].isManual_=!0,nn(t),r}finishDraft(e,t){const r=e&&e[ne];(!r||!r.isManual_)&&de(9);const{scope_:n}=r;return Co(n,t),To(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=nt(tn).applyPatches_;return je(e)?n(e,t):this.produce(e,o=>n(o,t))}};function ln(e,t,r,n){const[o,s]=Xt(t)?nt(tr).proxyMap_(t,r):Jt(t)?nt(tr).proxySet_(t,r):Tc(t,r);return((r==null?void 0:r.scope_)??Eo()).drafts_.push(o),s.callbacks_=(r==null?void 0:r.callbacks_)??[],s.key_=n,r&&n!==void 0?Cc(r,s,n):s.callbacks_.push(function(l){var u;(u=l.mapSetPlugin_)==null||u.fixSetContents(s);const{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),o}function kc(e){return je(e)||de(10,e),No(e)}function No(e){if(!Ie(e)||er(e))return e;const t=e[ne];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Qr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Qr(e,!0);return _t(r,(o,s)=>{Yt(r,o,No(s))},n),t&&(t.finalized_=!1),r}var Oc=new Ac,Mc=Oc.produce;const jo=e=>(t,r,n)=>(n.setState=(o,s,...i)=>{const a=typeof o=="function"?Mc(o):o;return t(a,s,...i)},e(n.setState,r,n)),un=(e,t={})=>{const{name:r,methods:n}=t,o=(s,i)=>({...e,update:a=>s(l=>{a(l)}),reset:()=>s(()=>({...e})),...n?n(s,i):{}});return r?tt()(hc(jo(o),{name:r,storage:yo(()=>localStorage),merge:(s,i)=>({...i,...s}),version:0,migrate:(s,i)=>s})):tt()(jo(o))},Io=un({config:{mode:"local",groups:{},permissions:{}},isReady:!1},{name:"acl-system",methods:(e,t)=>({configure:async r=>{let n={...r};if(r.mode==="remote"&&r.fetchRemoteConfig)try{const o=await r.fetchRemoteConfig();n.groups={...n.groups,...o.groups},n.permissions={...n.permissions,...o.permissions}}catch(o){console.error("ACL: Remote fetch failed",o)}e(o=>{o.config=n,o.isReady=!0})},check:(r,n,o=!1)=>{const s=t(),i=Array.isArray(n)?n:[n];if(console.log("ACL: Checking access for",r,n,o),!s.isReady)return!1;const a=l=>{var u,d;if(r.includes(l))return!0;const c=(u=s.config.groups)==null?void 0:u[l];if(c&&r.some(f=>c.includes(f)))return!0;for(const f of r){const y=((d=s.config.permissions)==null?void 0:d[f])||[];if(y.includes(l)||y.some(g=>g.endsWith("*")&&l.startsWith(g.replace("*",""))))return!0}return!1};return o?i.every(l=>a(l)):i.some(l=>a(l))}})});function Nc({children:e,config:t}){const{configure:r}=Io();return V.useEffect(()=>{r((t==null?void 0:t.aclConfig)??{mode:"local",groups:{staff:["admin","manager","editor"],financial_approvers:["admin","cfo"]},permissions:{admin:["*"],manager:["product.create","product.edit","order.view"],editor:["product.edit"],guest:["product.view"]}})},[]),m.jsx(m.Fragment,{children:e})}function Do(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function He(...e){return t=>{let r=!1;const n=e.map(o=>{const s=Do(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():Do(e[o],null)}}}}function ae(...e){return p.useCallback(He(...e),e)}var jc=Symbol.for("react.lazy"),or=p[" use ".trim().toString()];function Ic(e){return typeof e=="object"&&e!==null&&"then"in e}function Fo(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===jc&&"_payload"in e&&Ic(e._payload)}function Dc(e){const t=Fc(e),r=p.forwardRef((n,o)=>{let{children:s,...i}=n;Fo(s)&&typeof or=="function"&&(s=or(s._payload));const a=p.Children.toArray(s),l=a.find($c);if(l){const c=l.props.children,u=a.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return m.jsx(t,{...i,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return m.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var Lo=Dc("Slot");function Fc(e){const t=p.forwardRef((r,n)=>{let{children:o,...s}=r;if(Fo(o)&&typeof or=="function"&&(o=or(o._payload)),p.isValidElement(o)){const i=zc(o),a=Bc(s,o.props);return o.type!==p.Fragment&&(a.ref=n?He(n,i):i),p.cloneElement(o,a)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lc=Symbol("radix.slottable");function $c(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lc}function Bc(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function zc(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 $o(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=$o(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Bo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=$o(e))&&(n&&(n+=" "),n+=t);return n}const zo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Uo=Bo,Uc=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Uo(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(c=>{const u=r==null?void 0:r[c],d=s==null?void 0:s[c];if(u===null)return null;const f=zo(u)||zo(d);return o[c][f]}),a=r&&Object.entries(r).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:f,...y}=u;return Object.entries(y).every(g=>{let[h,b]=g;return Array.isArray(b)?b.includes({...s,...a}[h]):{...s,...a}[h]===b})?[...c,d,f]:c},[]);return Uo(e,i,l,r==null?void 0:r.class,r==null?void 0:r.className)},Wc=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Vc=(e,t)=>({classGroupId:e,validator:t}),Wo=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),sr="-",Vo=[],Hc="arbitrary..",Gc=e=>{const t=qc(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Zc(i);const a=i.split(sr),l=a[0]===""&&a.length>1?1:0;return Ho(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=n[i],c=r[i];return l?c?Wc(c,l):l:c||Vo}return r[i]||Vo}}},Ho=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],s=r.nextPart.get(o);if(s){const c=Ho(e,t+1,s);if(c)return c}const i=r.validators;if(i===null)return;const a=t===0?e.join(sr):e.slice(t).join(sr),l=i.length;for(let c=0;c<l;c++){const u=i[c];if(u.validator(a))return u.classGroupId}},Zc=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Hc+n:void 0})(),qc=e=>{const{theme:t,classGroups:r}=e;return Yc(r,t)},Yc=(e,t)=>{const r=Wo();for(const n in e){const o=e[n];dn(o,r,n,t)}return r},dn=(e,t,r,n)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];Kc(i,t,r,n)}},Kc=(e,t,r,n)=>{if(typeof e=="string"){Xc(e,t,r);return}if(typeof e=="function"){Jc(e,t,r,n);return}Qc(e,t,r,n)},Xc=(e,t,r)=>{const n=e===""?t:Go(t,e);n.classGroupId=r},Jc=(e,t,r,n)=>{if(el(e)){dn(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Vc(r,e))},Qc=(e,t,r,n)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[a,l]=o[i];dn(l,Go(t,a),r,n)}},Go=(e,t)=>{let r=e;const n=t.split(sr),o=n.length;for(let s=0;s<o;s++){const i=n[s];let a=r.nextPart.get(i);a||(a=Wo(),r.nextPart.set(i,a)),r=a}return r},el=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,tl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(s,i)=>{r[s]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(s){let i=r[s];if(i!==void 0)return i;if((i=n[s])!==void 0)return o(s,i),i},set(s,i){s in r?r[s]=i:o(s,i)}}},fn="!",Zo=":",rl=[],qo=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),nl=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,a=0,l=0,c;const u=o.length;for(let h=0;h<u;h++){const b=o[h];if(i===0&&a===0){if(b===Zo){s.push(o.slice(l,h)),l=h+1;continue}if(b==="/"){c=h;continue}}b==="["?i++:b==="]"?i--:b==="("?a++:b===")"&&a--}const d=s.length===0?o:o.slice(l);let f=d,y=!1;d.endsWith(fn)?(f=d.slice(0,-1),y=!0):d.startsWith(fn)&&(f=d.slice(1),y=!0);const g=c&&c>l?c-l:void 0;return qo(s,y,f,g)};if(t){const o=t+Zo,s=n;n=i=>i.startsWith(o)?s(i.slice(o.length)):qo(rl,!1,i,void 0,!0)}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},ol=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let s=0;s<r.length;s++){const i=r[s],a=i[0]==="[",l=t.has(i);a||l?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(i)):o.push(i)}return o.length>0&&(o.sort(),n.push(...o)),n}},sl=e=>({cache:tl(e.cacheSize),parseClassName:nl(e),sortModifiers:ol(e),...Gc(e)}),il=/\s+/,al=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(il);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:f,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:h}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let b=!!h,v=n(b?g.substring(0,h):g);if(!v){if(!b){l=u+(l.length>0?" "+l:l);continue}if(v=n(g),!v){l=u+(l.length>0?" "+l:l);continue}b=!1}const S=f.length===0?"":f.length===1?f[0]:s(f).join(":"),_=y?S+fn:S,E=_+v;if(i.indexOf(E)>-1)continue;i.push(E);const T=o(v,b);for(let A=0;A<T.length;++A){const P=T[A];i.push(_+P)}l=u+(l.length>0?" "+l:l)}return l},cl=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=Yo(r))&&(o&&(o+=" "),o+=n);return o},Yo=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Yo(e[n]))&&(r&&(r+=" "),r+=t);return r},ll=(e,...t)=>{let r,n,o,s;const i=l=>{const c=t.reduce((u,d)=>d(u),e());return r=sl(c),n=r.cache.get,o=r.cache.set,s=a,a(l)},a=l=>{const c=n(l);if(c)return c;const u=al(l,r);return o(l,u),u};return s=i,(...l)=>s(cl(...l))},ul=[],ee=e=>{const t=r=>r[e]||ul;return t.isThemeGetter=!0,t},Ko=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dl=/^\d+\/\d+$/,fl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pl=/\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$/,ml=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ot=e=>dl.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),De=e=>!!e&&Number.isInteger(Number(e)),pn=e=>e.endsWith("%")&&U(e.slice(0,-1)),ke=e=>fl.test(e),yl=()=>!0,bl=e=>pl.test(e)&&!ml.test(e),Jo=()=>!1,vl=e=>hl.test(e),wl=e=>gl.test(e),xl=e=>!O(e)&&!M(e),_l=e=>st(e,ns,Jo),O=e=>Ko.test(e),Ge=e=>st(e,os,bl),mn=e=>st(e,Tl,U),Qo=e=>st(e,ts,Jo),Sl=e=>st(e,rs,wl),ir=e=>st(e,ss,vl),M=e=>Xo.test(e),Rt=e=>it(e,os),El=e=>it(e,Pl),es=e=>it(e,ts),Cl=e=>it(e,ns),Rl=e=>it(e,rs),ar=e=>it(e,ss,!0),st=(e,t,r)=>{const n=Ko.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},it=(e,t,r=!1)=>{const n=Xo.exec(e);return n?n[1]?t(n[1]):r:!1},ts=e=>e==="position"||e==="percentage",rs=e=>e==="image"||e==="url",ns=e=>e==="length"||e==="size"||e==="bg-size",os=e=>e==="length",Tl=e=>e==="number",Pl=e=>e==="family-name",ss=e=>e==="shadow",Al=ll(()=>{const e=ee("color"),t=ee("font"),r=ee("text"),n=ee("font-weight"),o=ee("tracking"),s=ee("leading"),i=ee("breakpoint"),a=ee("container"),l=ee("spacing"),c=ee("radius"),u=ee("shadow"),d=ee("inset-shadow"),f=ee("text-shadow"),y=ee("drop-shadow"),g=ee("blur"),h=ee("perspective"),b=ee("aspect"),v=ee("ease"),S=ee("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...E(),M,O],A=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],R=()=>[M,O,l],N=()=>[ot,"full","auto",...R()],W=()=>[De,"none","subgrid",M,O],X=()=>["auto",{span:["full",De,M,O]},De,M,O],G=()=>[De,"auto",M,O],H=()=>["auto","min","max","fr",M,O],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...R()],Z=()=>[ot,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],C=()=>[e,M,O],k=()=>[...E(),es,Qo,{position:[M,O]}],K=()=>["no-repeat",{repeat:["","x","y","space","round"]}],x=()=>["auto","cover","contain",Cl,_l,{size:[M,O]}],j=()=>[pn,Rt,Ge],F=()=>["","none","full",c,M,O],$=()=>["",U,Rt,Ge],te=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[U,pn,es,Qo],ie=()=>["","none",g,M,O],Q=()=>["none",U,M,O],ye=()=>["none",U,M,O],bt=()=>[U,M,O],et=()=>[ot,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[yl],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[xl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",U],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ot,O,M,b]}],container:["container"],columns:[{columns:[U,O,M,a]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:T()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[De,"auto",M,O]}],basis:[{basis:[ot,"full","auto",a,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,ot,"auto","initial","none",O]}],grow:[{grow:["",U,M,O]}],shrink:[{shrink:["",U,M,O]}],order:[{order:[De,"first","last","none",M,O]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[a,"screen",...Z()]}],"min-w":[{"min-w":[a,"screen","none",...Z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",r,Rt,Ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,M,mn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pn,O]}],"font-family":[{font:[El,O,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,M,O]}],"line-clamp":[{"line-clamp":[U,"none",M,mn]}],leading:[{leading:[s,...R()]}],"list-image":[{"list-image":["none",M,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",M,Ge]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[U,"auto",M,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:K()}],"bg-size":[{bg:x()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},De,M,O],radial:["",M,O],conic:[De,M,O]},Rl,Sl]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,M,O]}],"outline-w":[{outline:["",U,Rt,Ge]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",u,ar,ir]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",d,ar,ir]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[U,Ge]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",f,ar,ir]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[U,M,O]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[M,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:K()}],"mask-size":[{mask:x()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,O]}],filter:[{filter:["","none",M,O]}],blur:[{blur:ie()}],brightness:[{brightness:[U,M,O]}],contrast:[{contrast:[U,M,O]}],"drop-shadow":[{"drop-shadow":["","none",y,ar,ir]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",U,M,O]}],"hue-rotate":[{"hue-rotate":[U,M,O]}],invert:[{invert:["",U,M,O]}],saturate:[{saturate:[U,M,O]}],sepia:[{sepia:["",U,M,O]}],"backdrop-filter":[{"backdrop-filter":["","none",M,O]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[U,M,O]}],"backdrop-contrast":[{"backdrop-contrast":[U,M,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,M,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,M,O]}],"backdrop-invert":[{"backdrop-invert":["",U,M,O]}],"backdrop-opacity":[{"backdrop-opacity":[U,M,O]}],"backdrop-saturate":[{"backdrop-saturate":[U,M,O]}],"backdrop-sepia":[{"backdrop-sepia":["",U,M,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",M,O]}],ease:[{ease:["linear","initial",v,M,O]}],delay:[{delay:[U,M,O]}],animate:[{animate:["none",S,M,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,M,O]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":["scale-3d"],skew:[{skew:bt()}],"skew-x":[{"skew-x":bt()}],"skew-y":[{"skew-y":bt()}],transform:[{transform:[M,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,O]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",M,O]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[U,Rt,Ge,mn]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function _e(...e){return Al(Bo(e))}const kl=Uc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-xs 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 has-[>svg]:px-3",sm:"h-8 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ol({className:e,variant:t,size:r,asChild:n=!1,...o}){const s=n?Lo:"button";return m.jsx(s,{"data-slot":"button",className:_e(kl({variant:t,size:r,className:e})),...o})}/**
|
|
23
|
+
* @license lucide-react v0.553.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/const Ml=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Nl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),is=e=>{const t=Nl(e);return t.charAt(0).toUpperCase()+t.slice(1)},as=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),jl=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
28
|
+
* @license lucide-react v0.553.0 - ISC
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the ISC license.
|
|
31
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/var Il={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"};/**
|
|
33
|
+
* @license lucide-react v0.553.0 - ISC
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the ISC license.
|
|
36
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/const Dl=V.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:i,...a},l)=>V.createElement("svg",{ref:l,...Il,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:as("lucide",o),...!s&&!jl(a)&&{"aria-hidden":"true"},...a},[...i.map(([c,u])=>V.createElement(c,u)),...Array.isArray(s)?s:[s]]));/**
|
|
38
|
+
* @license lucide-react v0.553.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/const Fe=(e,t)=>{const r=V.forwardRef(({className:n,...o},s)=>V.createElement(Dl,{ref:s,iconNode:t,className:as(`lucide-${Ml(is(e))}`,`lucide-${e}`,n),...o}));return r.displayName=is(e),r};/**
|
|
43
|
+
* @license lucide-react v0.553.0 - ISC
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the ISC license.
|
|
46
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/const Fl=Fe("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
48
|
+
* @license lucide-react v0.553.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/const cs=Fe("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);/**
|
|
53
|
+
* @license lucide-react v0.553.0 - ISC
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the ISC license.
|
|
56
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/const Ll=Fe("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
|
|
58
|
+
* @license lucide-react v0.553.0 - ISC
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the ISC license.
|
|
61
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/const $l=Fe("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);/**
|
|
63
|
+
* @license lucide-react v0.553.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/const Bl=Fe("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
|
|
68
|
+
* @license lucide-react v0.553.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/const zl=Fe("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
|
|
73
|
+
* @license lucide-react v0.553.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/const Ul=Fe("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
78
|
+
* @license lucide-react v0.553.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const Wl=Fe("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);function Vl({...e}){return m.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Hl({className:e,...t}){return m.jsx("ol",{"data-slot":"breadcrumb-list",className:_e("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function Tt({className:e,...t}){return m.jsx("li",{"data-slot":"breadcrumb-item",className:_e("inline-flex items-center gap-1.5",e),...t})}function hn({asChild:e,className:t,...r}){const n=e?Lo:"a";return m.jsx(n,{"data-slot":"breadcrumb-link",className:_e("hover:text-foreground transition-colors",t),...r})}function Gl({className:e,...t}){return m.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:_e("text-foreground font-normal",e),...t})}function cr({children:e,className:t,...r}){return m.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:_e("[&>svg]:size-3.5",t),...r,children:e??m.jsx(Fl,{})})}function q(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 Pt(e,t=[]){let r=[];function n(s,i){const a=p.createContext(i),l=r.length;r=[...r,i];const c=d=>{var v;const{scope:f,children:y,...g}=d,h=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,b=p.useMemo(()=>g,Object.values(g));return m.jsx(h.Provider,{value:b,children:y})};c.displayName=s+"Provider";function u(d,f){var h;const y=((h=f==null?void 0:f[e])==null?void 0:h[l])||a,g=p.useContext(y);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=r.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,Zl(o,...t)]}function Zl(...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(s){const i=n.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Le=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},ql=p[" useInsertionEffect ".trim().toString()]||Le;function ls({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,i]=Yl({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:o;{const u=p.useRef(e!==void 0);p.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,n])}const c=p.useCallback(u=>{var d;if(a){const f=Kl(u)?u(e):u;f!==e&&((d=i.current)==null||d.call(i,f))}else s(u)},[a,e,s,i]);return[l,c]}function Yl({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),o=p.useRef(r),s=p.useRef(t);return ql(()=>{s.current=t},[t]),p.useEffect(()=>{var i;o.current!==r&&((i=s.current)==null||i.call(s,r),o.current=r)},[r,o]),[r,n,s]}function Kl(e){return typeof e=="function"}function Xl(e){const t=Jl(e),r=p.forwardRef((n,o)=>{const{children:s,...i}=n,a=p.Children.toArray(s),l=a.find(eu);if(l){const c=l.props.children,u=a.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return m.jsx(t,{...i,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return m.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}function Jl(e){const t=p.forwardRef((r,n)=>{const{children:o,...s}=r;if(p.isValidElement(o)){const i=ru(o),a=tu(s,o.props);return o.type!==p.Fragment&&(a.ref=n?He(n,i):i),p.cloneElement(o,a)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ql=Symbol("radix.slottable");function eu(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ql}function tu(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function ru(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 nu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=nu.reduce((e,t)=>{const r=Xl(`Primitive.${t}`),n=p.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...a,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function us(e,t){e&&fo.flushSync(()=>e.dispatchEvent(t))}function ds(e){const t=ou(e),r=p.forwardRef((n,o)=>{const{children:s,...i}=n,a=p.Children.toArray(s),l=a.find(iu);if(l){const c=l.props.children,u=a.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return m.jsx(t,{...i,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return m.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}function ou(e){const t=p.forwardRef((r,n)=>{const{children:o,...s}=r;if(p.isValidElement(o)){const i=cu(o),a=au(s,o.props);return o.type!==p.Fragment&&(a.ref=n?He(n,i):i),p.cloneElement(o,a)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var su=Symbol("radix.slottable");function iu(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===su}function au(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function cu(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 fs(e){const t=e+"CollectionProvider",[r,n]=Pt(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:b,children:v}=h,S=V.useRef(null),_=V.useRef(new Map).current;return m.jsx(o,{scope:b,itemMap:_,collectionRef:S,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=ds(a),c=V.forwardRef((h,b)=>{const{scope:v,children:S}=h,_=s(a,v),E=ae(b,_.collectionRef);return m.jsx(l,{ref:E,children:S})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=ds(u),y=V.forwardRef((h,b)=>{const{scope:v,children:S,..._}=h,E=V.useRef(null),T=ae(b,E),A=s(u,v);return V.useEffect(()=>(A.itemMap.set(E,{ref:E,..._}),()=>void A.itemMap.delete(E))),m.jsx(f,{[d]:"",ref:T,children:S})});y.displayName=u;function g(h){const b=s(e+"CollectionConsumer",h);return V.useCallback(()=>{const S=b.collectionRef.current;if(!S)return[];const _=Array.from(S.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((A,P)=>_.indexOf(A.ref.current)-_.indexOf(P.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:c,ItemSlot:y},g,n]}var lu=p.createContext(void 0);function ps(e){const t=p.useContext(lu);return e||t||"ltr"}function Oe(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function uu(e,t=globalThis==null?void 0:globalThis.document){const r=Oe(e);p.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 du="DismissableLayer",gn="dismissableLayer.update",fu="dismissableLayer.pointerDownOutside",pu="dismissableLayer.focusOutside",ms,hs=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gs=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=p.useContext(hs),[u,d]=p.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=p.useState({}),g=ae(t,P=>d(P)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(b),S=u?h.indexOf(u):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,E=S>=v,T=gu(P=>{const R=P.target,N=[...c.branches].some(W=>W.contains(R));!E||N||(o==null||o(P),i==null||i(P),P.defaultPrevented||a==null||a())},f),A=yu(P=>{const R=P.target;[...c.branches].some(W=>W.contains(R))||(s==null||s(P),i==null||i(P),P.defaultPrevented||a==null||a())},f);return uu(P=>{S===c.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},f),p.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ms=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),ys(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ms)}},[u,f,r,c]),p.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),ys())},[u,c]),p.useEffect(()=>{const P=()=>y({});return document.addEventListener(gn,P),()=>document.removeEventListener(gn,P)},[]),m.jsx(oe.div,{...l,ref:g,style:{pointerEvents:_?E?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,A.onFocusCapture),onBlurCapture:q(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,T.onPointerDownCapture)})});gs.displayName=du;var mu="DismissableLayerBranch",hu=p.forwardRef((e,t)=>{const r=p.useContext(hs),n=p.useRef(null),o=ae(t,n);return p.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),m.jsx(oe.div,{...e,ref:o})});hu.displayName=mu;function gu(e,t=globalThis==null?void 0:globalThis.document){const r=Oe(e),n=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){bs(fu,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function yu(e,t=globalThis==null?void 0:globalThis.document){const r=Oe(e),n=p.useRef(!1);return p.useEffect(()=>{const o=s=>{s.target&&!n.current&&bs(pu,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ys(){const e=new CustomEvent(gn);document.dispatchEvent(e)}function bs(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?us(o,s):o.dispatchEvent(s)}var yn=0;function bu(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vs()),document.body.insertAdjacentElement("beforeend",e[1]??vs()),yn++,()=>{yn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yn--}},[])}function vs(){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 bn="focusScope.autoFocusOnMount",vn="focusScope.autoFocusOnUnmount",ws={bubbles:!1,cancelable:!0},vu="FocusScope",xs=p.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=p.useState(null),c=Oe(o),u=Oe(s),d=p.useRef(null),f=ae(t,h=>l(h)),y=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let h=function(_){if(y.paused||!a)return;const E=_.target;a.contains(E)?d.current=E:$e(d.current,{select:!0})},b=function(_){if(y.paused||!a)return;const E=_.relatedTarget;E!==null&&(a.contains(E)||$e(d.current,{select:!0}))},v=function(_){if(document.activeElement===document.body)for(const T of _)T.removedNodes.length>0&&$e(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const S=new MutationObserver(v);return a&&S.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),S.disconnect()}}},[n,a,y.paused]),p.useEffect(()=>{if(a){Es.add(y);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(bn,ws);a.addEventListener(bn,c),a.dispatchEvent(v),v.defaultPrevented||(wu(Cu(_s(a)),{select:!0}),document.activeElement===h&&$e(a))}return()=>{a.removeEventListener(bn,c),setTimeout(()=>{const v=new CustomEvent(vn,ws);a.addEventListener(vn,u),a.dispatchEvent(v),v.defaultPrevented||$e(h??document.body,{select:!0}),a.removeEventListener(vn,u),Es.remove(y)},0)}}},[a,c,u,y]);const g=p.useCallback(h=>{if(!r&&!n||y.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(b&&v){const S=h.currentTarget,[_,E]=xu(S);_&&E?!h.shiftKey&&v===E?(h.preventDefault(),r&&$e(_,{select:!0})):h.shiftKey&&v===_&&(h.preventDefault(),r&&$e(E,{select:!0})):v===S&&h.preventDefault()}},[r,n,y.paused]);return m.jsx(oe.div,{tabIndex:-1,...i,ref:f,onKeyDown:g})});xs.displayName=vu;function wu(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if($e(n,{select:t}),document.activeElement!==r)return}function xu(e){const t=_s(e),r=Ss(t,e),n=Ss(t.reverse(),e);return[r,n]}function _s(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 Ss(e,t){for(const r of e)if(!_u(r,{upTo:t}))return r}function _u(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 Su(e){return e instanceof HTMLInputElement&&"select"in e}function $e(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Su(e)&&t&&e.select()}}var Es=Eu();function Eu(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Cs(e,t),e.unshift(t)},remove(t){var r;e=Cs(e,t),(r=e[0])==null||r.resume()}}}function Cs(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Cu(e){return e.filter(t=>t.tagName!=="A")}var Ru=p[" useId ".trim().toString()]||(()=>{}),Tu=0;function wn(e){const[t,r]=p.useState(Ru());return Le(()=>{r(n=>n??String(Tu++))},[e]),e||(t?`radix-${t}`:"")}const Pu=["top","right","bottom","left"],Be=Math.min,pe=Math.max,lr=Math.round,ur=Math.floor,Se=e=>({x:e,y:e}),Au={left:"right",right:"left",bottom:"top",top:"bottom"},ku={start:"end",end:"start"};function xn(e,t,r){return pe(e,Be(t,r))}function Me(e,t){return typeof e=="function"?e(t):e}function Ne(e){return e.split("-")[0]}function at(e){return e.split("-")[1]}function _n(e){return e==="x"?"y":"x"}function Sn(e){return e==="y"?"height":"width"}const Ou=new Set(["top","bottom"]);function Ee(e){return Ou.has(Ne(e))?"y":"x"}function En(e){return _n(Ee(e))}function Mu(e,t,r){r===void 0&&(r=!1);const n=at(e),o=En(e),s=Sn(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=dr(i)),[i,dr(i)]}function Nu(e){const t=dr(e);return[Cn(e),t,Cn(t)]}function Cn(e){return e.replace(/start|end/g,t=>ku[t])}const Rs=["left","right"],Ts=["right","left"],ju=["top","bottom"],Iu=["bottom","top"];function Du(e,t,r){switch(e){case"top":case"bottom":return r?t?Ts:Rs:t?Rs:Ts;case"left":case"right":return t?ju:Iu;default:return[]}}function Fu(e,t,r,n){const o=at(e);let s=Du(Ne(e),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Cn)))),s}function dr(e){return e.replace(/left|right|bottom|top/g,t=>Au[t])}function Lu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ps(e){return typeof e!="number"?Lu(e):{top:e,right:e,bottom:e,left:e}}function fr(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 As(e,t,r){let{reference:n,floating:o}=e;const s=Ee(t),i=En(t),a=Sn(i),l=Ne(t),c=s==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[a]/2-o[a]/2;let y;switch(l){case"top":y={x:u,y:n.y-o.height};break;case"bottom":y={x:u,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:d};break;case"left":y={x:n.x-o.width,y:d};break;default:y={x:n.x,y:n.y}}switch(at(t)){case"start":y[i]-=f*(r&&c?-1:1);break;case"end":y[i]+=f*(r&&c?-1:1);break}return y}const $u=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=As(c,n,l),f=n,y={},g=0;for(let h=0;h<a.length;h++){const{name:b,fn:v}=a[h],{x:S,y:_,data:E,reset:T}=await v({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:y,rects:c,platform:i,elements:{reference:e,floating:t}});u=S??u,d=_??d,y={...y,[b]:{...y[b],...E}},T&&g<=50&&(g++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(c=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:u,y:d}=As(c,f,l)),h=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:y}};async function At(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:y=0}=Me(t,e),g=Ps(y),b=a[f?d==="floating"?"reference":"floating":d],v=fr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),S=d==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},T=fr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:_,strategy:l}):S);return{top:(v.top-T.top+g.top)/E.y,bottom:(T.bottom-v.bottom+g.bottom)/E.y,left:(v.left-T.left+g.left)/E.x,right:(T.right-v.right+g.right)/E.x}}const Bu=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Me(e,t)||{};if(c==null)return{};const d=Ps(u),f={x:r,y:n},y=En(o),g=Sn(y),h=await i.getDimensions(c),b=y==="y",v=b?"top":"left",S=b?"bottom":"right",_=b?"clientHeight":"clientWidth",E=s.reference[g]+s.reference[y]-f[y]-s.floating[g],T=f[y]-s.reference[y],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let P=A?A[_]:0;(!P||!await(i.isElement==null?void 0:i.isElement(A)))&&(P=a.floating[_]||s.floating[g]);const R=E/2-T/2,N=P/2-h[g]/2-1,W=Be(d[v],N),X=Be(d[S],N),G=W,H=P-h[g]-X,z=P/2-h[g]/2+R,Y=xn(G,z,H),I=!l.arrow&&at(o)!=null&&z!==Y&&s.reference[g]/2-(z<G?W:X)-h[g]/2<0,Z=I?z<G?z-G:z-H:0;return{[y]:f[y]+Z,data:{[y]:Y,centerOffset:z-Y-Z,...I&&{alignmentOffset:Z}},reset:I}}}),zu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...b}=Me(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const v=Ne(o),S=Ee(a),_=Ne(a)===a,E=await(l.isRTL==null?void 0:l.isRTL(c.floating)),T=f||(_||!h?[dr(a)]:Nu(a)),A=g!=="none";!f&&A&&T.push(...Fu(a,h,g,E));const P=[a,...T],R=await At(t,b),N=[];let W=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&N.push(R[v]),d){const z=Mu(o,i,E);N.push(R[z[0]],R[z[1]])}if(W=[...W,{placement:o,overflows:N}],!N.every(z=>z<=0)){var X,G;const z=(((X=s.flip)==null?void 0:X.index)||0)+1,Y=P[z];if(Y&&(!(d==="alignment"?S!==Ee(Y):!1)||W.every(C=>Ee(C.placement)===S?C.overflows[0]>0:!0)))return{data:{index:z,overflows:W},reset:{placement:Y}};let I=(G=W.filter(Z=>Z.overflows[0]<=0).sort((Z,C)=>Z.overflows[1]-C.overflows[1])[0])==null?void 0:G.placement;if(!I)switch(y){case"bestFit":{var H;const Z=(H=W.filter(C=>{if(A){const k=Ee(C.placement);return k===S||k==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(k=>k>0).reduce((k,K)=>k+K,0)]).sort((C,k)=>C[1]-k[1])[0])==null?void 0:H[0];Z&&(I=Z);break}case"initialPlacement":I=a;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function ks(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Os(e){return Pu.some(t=>e[t]>=0)}const Uu=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Me(e,t);switch(n){case"referenceHidden":{const s=await At(t,{...o,elementContext:"reference"}),i=ks(s,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Os(i)}}}case"escaped":{const s=await At(t,{...o,altBoundary:!0}),i=ks(s,r.floating);return{data:{escapedOffsets:i,escaped:Os(i)}}}default:return{}}}}},Ms=new Set(["left","top"]);async function Wu(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Ne(r),a=at(r),l=Ee(r)==="y",c=Ms.has(i)?-1:1,u=s&&l?-1:1,d=Me(t,e);let{mainAxis:f,crossAxis:y,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(y=a==="end"?g*-1:g),l?{x:y*u,y:f*c}:{x:f*c,y:y*u}}const Vu=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Wu(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Hu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:v,y:S}=b;return{x:v,y:S}}},...l}=Me(e,t),c={x:r,y:n},u=await At(t,l),d=Ee(Ne(o)),f=_n(d);let y=c[f],g=c[d];if(s){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",S=y+u[b],_=y-u[v];y=xn(S,y,_)}if(i){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",S=g+u[b],_=g-u[v];g=xn(S,g,_)}const h=a.fn({...t,[f]:y,[d]:g});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[f]:s,[d]:i}}}}}},Gu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Me(e,t),u={x:r,y:n},d=Ee(o),f=_n(d);let y=u[f],g=u[d];const h=Me(a,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const _=f==="y"?"height":"width",E=s.reference[f]-s.floating[_]+b.mainAxis,T=s.reference[f]+s.reference[_]-b.mainAxis;y<E?y=E:y>T&&(y=T)}if(c){var v,S;const _=f==="y"?"width":"height",E=Ms.has(Ne(o)),T=s.reference[d]-s.floating[_]+(E&&((v=i.offset)==null?void 0:v[d])||0)+(E?0:b.crossAxis),A=s.reference[d]+s.reference[_]+(E?0:((S=i.offset)==null?void 0:S[d])||0)-(E?b.crossAxis:0);g<T?g=T:g>A&&(g=A)}return{[f]:y,[d]:g}}}},Zu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=Me(e,t),u=await At(t,c),d=Ne(o),f=at(o),y=Ee(o)==="y",{width:g,height:h}=s.floating;let b,v;d==="top"||d==="bottom"?(b=d,v=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,b=f==="end"?"top":"bottom");const S=h-u.top-u.bottom,_=g-u.left-u.right,E=Be(h-u[b],S),T=Be(g-u[v],_),A=!t.middlewareData.shift;let P=E,R=T;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=_),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=S),A&&!f){const W=pe(u.left,0),X=pe(u.right,0),G=pe(u.top,0),H=pe(u.bottom,0);y?R=g-2*(W!==0||X!==0?W+X:pe(u.left,u.right)):P=h-2*(G!==0||H!==0?G+H:pe(u.top,u.bottom))}await l({...t,availableWidth:R,availableHeight:P});const N=await i.getDimensions(a.floating);return g!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function pr(){return typeof window<"u"}function ct(e){return Ns(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=(Ns(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ns(e){return pr()?e instanceof Node||e instanceof me(e).Node:!1}function be(e){return pr()?e instanceof Element||e instanceof me(e).Element:!1}function Re(e){return pr()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function js(e){return!pr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}const qu=new Set(["inline","contents"]);function kt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!qu.has(o)}const Yu=new Set(["table","td","th"]);function Ku(e){return Yu.has(ct(e))}const Xu=[":popover-open",":modal"];function mr(e){return Xu.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ju=["transform","translate","scale","rotate","perspective"],Qu=["transform","translate","scale","rotate","perspective","filter"],ed=["paint","layout","strict","content"];function Rn(e){const t=Tn(),r=be(e)?ve(e):e;return Ju.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)||Qu.some(n=>(r.willChange||"").includes(n))||ed.some(n=>(r.contain||"").includes(n))}function td(e){let t=ze(e);for(;Re(t)&&!lt(t);){if(Rn(t))return t;if(mr(t))return null;t=ze(t)}return null}function Tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rd=new Set(["html","body","#document"]);function lt(e){return rd.has(ct(e))}function ve(e){return me(e).getComputedStyle(e)}function hr(e){return be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ze(e){if(ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||js(e)&&e.host||Ce(e);return js(t)?t.host:t}function Is(e){const t=ze(e);return lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Re(t)&&kt(t)?t:Is(t)}function Ot(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Is(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=me(o);if(s){const a=Pn(i);return t.concat(i,i.visualViewport||[],kt(o)?o:[],a&&r?Ot(a):[])}return t.concat(o,Ot(o,[],r))}function Pn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ds(e){const t=ve(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Re(e),s=o?e.offsetWidth:r,i=o?e.offsetHeight:n,a=lr(r)!==s||lr(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function An(e){return be(e)?e:e.contextElement}function ut(e){const t=An(e);if(!Re(t))return Se(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=Ds(t);let i=(s?lr(r.width):r.width)/n,a=(s?lr(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const nd=Se(0);function Fs(e){const t=me(e);return!Tn()||!t.visualViewport?nd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function od(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==me(e)?!1:t}function Ze(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=An(e);let i=Se(1);t&&(n?be(n)&&(i=ut(n)):i=ut(e));const a=od(s,r,n)?Fs(s):Se(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const f=me(s),y=n&&be(n)?me(n):n;let g=f,h=Pn(g);for(;h&&n&&y!==g;){const b=ut(h),v=h.getBoundingClientRect(),S=ve(h),_=v.left+(h.clientLeft+parseFloat(S.paddingLeft))*b.x,E=v.top+(h.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=_,c+=E,g=me(h),h=Pn(g)}}return fr({width:u,height:d,x:l,y:c})}function gr(e,t){const r=hr(e).scrollLeft;return t?t.left+r:Ze(Ce(e)).left+r}function Ls(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-gr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function sd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",i=Ce(n),a=t?mr(t.floating):!1;if(n===i||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=Se(1);const u=Se(0),d=Re(n);if((d||!d&&!s)&&((ct(n)!=="body"||kt(i))&&(l=hr(n)),Re(n))){const y=Ze(n);c=ut(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}const f=i&&!d&&!s?Ls(i,l):Se(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function id(e){return Array.from(e.getClientRects())}function ad(e){const t=Ce(e),r=hr(e),n=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=pe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+gr(e);const a=-r.scrollTop;return ve(n).direction==="rtl"&&(i+=pe(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:i,y:a}}const $s=25;function cd(e,t){const r=me(e),n=Ce(e),o=r.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=Tn();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=gr(n);if(c<=0){const u=n.ownerDocument,d=u.body,f=getComputedStyle(d),y=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(n.clientWidth-d.clientWidth-y);g<=$s&&(s-=g)}else c<=$s&&(s+=c);return{width:s,height:i,x:a,y:l}}const ld=new Set(["absolute","fixed"]);function ud(e,t){const r=Ze(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=Re(e)?ut(e):Se(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=n*s.y;return{width:i,height:a,x:l,y:c}}function Bs(e,t,r){let n;if(t==="viewport")n=cd(e,r);else if(t==="document")n=ad(Ce(e));else if(be(t))n=ud(t,r);else{const o=Fs(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return fr(n)}function zs(e,t){const r=ze(e);return r===t||!be(r)||lt(r)?!1:ve(r).position==="fixed"||zs(r,t)}function dd(e,t){const r=t.get(e);if(r)return r;let n=Ot(e,[],!1).filter(a=>be(a)&&ct(a)!=="body"),o=null;const s=ve(e).position==="fixed";let i=s?ze(e):e;for(;be(i)&&!lt(i);){const a=ve(i),l=Rn(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&ld.has(o.position)||kt(i)&&!l&&zs(e,i))?n=n.filter(u=>u!==i):o=a,i=ze(i)}return t.set(e,n),n}function fd(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?mr(t)?[]:dd(t,this._c):[].concat(r),n],a=i[0],l=i.reduce((c,u)=>{const d=Bs(t,u,o);return c.top=pe(d.top,c.top),c.right=Be(d.right,c.right),c.bottom=Be(d.bottom,c.bottom),c.left=pe(d.left,c.left),c},Bs(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function pd(e){const{width:t,height:r}=Ds(e);return{width:t,height:r}}function md(e,t,r){const n=Re(t),o=Ce(t),s=r==="fixed",i=Ze(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Se(0);function c(){l.x=gr(o)}if(n||!n&&!s)if((ct(t)!=="body"||kt(o))&&(a=hr(t)),n){const y=Ze(t,!0,s,t);l.x=y.x+t.clientLeft,l.y=y.y+t.clientTop}else o&&c();s&&!n&&o&&c();const u=o&&!n&&!s?Ls(o,a):Se(0),d=i.left+a.scrollLeft-l.x-u.x,f=i.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function kn(e){return ve(e).position==="static"}function Us(e,t){if(!Re(e)||ve(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ce(e)===r&&(r=r.ownerDocument.body),r}function Ws(e,t){const r=me(e);if(mr(e))return r;if(!Re(e)){let o=ze(e);for(;o&&!lt(o);){if(be(o)&&!kn(o))return o;o=ze(o)}return r}let n=Us(e,t);for(;n&&Ku(n)&&kn(n);)n=Us(n,t);return n&<(n)&&kn(n)&&!Rn(n)?r:n||td(e)||r}const hd=async function(e){const t=this.getOffsetParent||Ws,r=this.getDimensions,n=await r(e.floating);return{reference:md(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function gd(e){return ve(e).direction==="rtl"}const yd={convertOffsetParentRelativeRectToViewportRelativeRect:sd,getDocumentElement:Ce,getClippingRect:fd,getOffsetParent:Ws,getElementRects:hd,getClientRects:id,getDimensions:pd,getScale:ut,isElement:be,isRTL:gd};function Vs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bd(e,t){let r=null,n;const o=Ce(e);function s(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:y}=c;if(a||t(),!f||!y)return;const g=ur(d),h=ur(o.clientWidth-(u+f)),b=ur(o.clientHeight-(d+y)),v=ur(u),_={rootMargin:-g+"px "+-h+"px "+-b+"px "+-v+"px",threshold:pe(0,Be(1,l))||1};let E=!0;function T(A){const P=A[0].intersectionRatio;if(P!==l){if(!E)return i();P?i(!1,P):n=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!Vs(c,e.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(T,{..._,root:o.ownerDocument})}catch{r=new IntersectionObserver(T,_)}r.observe(e)}return i(!0),s}function vd(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=An(e),u=o||s?[...c?Ot(c):[],...Ot(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),s&&v.addEventListener("resize",r)});const d=c&&a?bd(c,r):null;let f=-1,y=null;i&&(y=new ResizeObserver(v=>{let[S]=v;S&&S.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=y)==null||_.observe(t)})),r()}),c&&!l&&y.observe(c),y.observe(t));let g,h=l?Ze(e):null;l&&b();function b(){const v=Ze(e);h&&!Vs(h,v)&&r(),h=v,g=requestAnimationFrame(b)}return r(),()=>{var v;u.forEach(S=>{o&&S.removeEventListener("scroll",r),s&&S.removeEventListener("resize",r)}),d==null||d(),(v=y)==null||v.disconnect(),y=null,l&&cancelAnimationFrame(g)}}const wd=Vu,xd=Hu,_d=zu,Sd=Zu,Ed=Uu,Hs=Bu,Cd=Gu,Rd=(e,t,r)=>{const n=new Map,o={platform:yd,...r},s={...o.platform,_c:n};return $u(e,t,{...o,platform:s})};var Td=typeof document<"u",Pd=function(){},yr=Td?V.useLayoutEffect:Pd;function br(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(!br(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 s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!br(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Gs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zs(e,t){const r=Gs(e);return Math.round(t*r)/r}function On(e){const t=p.useRef(e);return yr(()=>{t.current=e}),t}function Ad(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,y]=p.useState(n);br(f,n)||y(n);const[g,h]=p.useState(null),[b,v]=p.useState(null),S=p.useCallback(C=>{C!==A.current&&(A.current=C,h(C))},[]),_=p.useCallback(C=>{C!==P.current&&(P.current=C,v(C))},[]),E=s||g,T=i||b,A=p.useRef(null),P=p.useRef(null),R=p.useRef(u),N=l!=null,W=On(l),X=On(o),G=On(c),H=p.useCallback(()=>{if(!A.current||!P.current)return;const C={placement:t,strategy:r,middleware:f};X.current&&(C.platform=X.current),Rd(A.current,P.current,C).then(k=>{const K={...k,isPositioned:G.current!==!1};z.current&&!br(R.current,K)&&(R.current=K,fo.flushSync(()=>{d(K)}))})},[f,t,r,X,G]);yr(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[c]);const z=p.useRef(!1);yr(()=>(z.current=!0,()=>{z.current=!1}),[]),yr(()=>{if(E&&(A.current=E),T&&(P.current=T),E&&T){if(W.current)return W.current(E,T,H);H()}},[E,T,H,W,N]);const Y=p.useMemo(()=>({reference:A,floating:P,setReference:S,setFloating:_}),[S,_]),I=p.useMemo(()=>({reference:E,floating:T}),[E,T]),Z=p.useMemo(()=>{const C={position:r,left:0,top:0};if(!I.floating)return C;const k=Zs(I.floating,u.x),K=Zs(I.floating,u.y);return a?{...C,transform:"translate("+k+"px, "+K+"px)",...Gs(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:k,top:K}},[r,a,I.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:H,refs:Y,elements:I,floatingStyles:Z}),[u,H,Y,I,Z])}const kd=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?Hs({element:n.current,padding:o}).fn(r):{}:n?Hs({element:n,padding:o}).fn(r):{}}}},Od=(e,t)=>({...wd(e),options:[e,t]}),Md=(e,t)=>({...xd(e),options:[e,t]}),Nd=(e,t)=>({...Cd(e),options:[e,t]}),jd=(e,t)=>({..._d(e),options:[e,t]}),Id=(e,t)=>({...Sd(e),options:[e,t]}),Dd=(e,t)=>({...Ed(e),options:[e,t]}),Fd=(e,t)=>({...kd(e),options:[e,t]});var Ld="Arrow",qs=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return m.jsx(oe.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});qs.displayName=Ld;var $d=qs;function Bd(e){const[t,r]=p.useState(void 0);return Le(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;r({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Mn="Popper",[Ys,Ks]=Pt(Mn),[zd,Xs]=Ys(Mn),Js=e=>{const{__scopePopper:t,children:r}=e,[n,o]=p.useState(null);return m.jsx(zd,{scope:t,anchor:n,onAnchorChange:o,children:r})};Js.displayName=Mn;var Qs="PopperAnchor",ei=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=Xs(Qs,r),i=p.useRef(null),a=ae(t,i),l=p.useRef(null);return p.useEffect(()=>{const c=l.current;l.current=(n==null?void 0:n.current)||i.current,c!==l.current&&s.onAnchorChange(l.current)}),n?null:m.jsx(oe.div,{...o,ref:a})});ei.displayName=Qs;var Nn="PopperContent",[Ud,Wd]=Ys(Nn),ti=p.forwardRef((e,t)=>{var L,ie,Q,ye,bt,et;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:y="optimized",onPlaced:g,...h}=e,b=Xs(Nn,r),[v,S]=p.useState(null),_=ae(t,Vt=>S(Vt)),[E,T]=p.useState(null),A=Bd(E),P=(A==null?void 0:A.width)??0,R=(A==null?void 0:A.height)??0,N=n+(s!=="center"?"-"+s:""),W=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},X=Array.isArray(c)?c:[c],G=X.length>0,H={padding:W,boundary:X.filter(Hd),altBoundary:G},{refs:z,floatingStyles:Y,placement:I,isPositioned:Z,middlewareData:C}=Ad({strategy:"fixed",placement:N,whileElementsMounted:(...Vt)=>vd(...Vt,{animationFrame:y==="always"}),elements:{reference:b.anchor},middleware:[Od({mainAxis:o+R,alignmentAxis:i}),l&&Md({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Nd():void 0,...H}),l&&jd({...H}),Id({...H,apply:({elements:Vt,rects:cc,availableWidth:Eg,availableHeight:Cg})=>{const{width:Rg,height:Tg}=cc.reference,Hr=Vt.floating.style;Hr.setProperty("--radix-popper-available-width",`${Eg}px`),Hr.setProperty("--radix-popper-available-height",`${Cg}px`),Hr.setProperty("--radix-popper-anchor-width",`${Rg}px`),Hr.setProperty("--radix-popper-anchor-height",`${Tg}px`)}}),E&&Fd({element:E,padding:a}),Gd({arrowWidth:P,arrowHeight:R}),f&&Dd({strategy:"referenceHidden",...H})]}),[k,K]=oi(I),x=Oe(g);Le(()=>{Z&&(x==null||x())},[Z,x]);const j=(L=C.arrow)==null?void 0:L.x,F=(ie=C.arrow)==null?void 0:ie.y,$=((Q=C.arrow)==null?void 0:Q.centerOffset)!==0,[te,ue]=p.useState();return Le(()=>{v&&ue(window.getComputedStyle(v).zIndex)},[v]),m.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:Z?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(ye=C.transformOrigin)==null?void 0:ye.x,(bt=C.transformOrigin)==null?void 0:bt.y].join(" "),...((et=C.hide)==null?void 0:et.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Ud,{scope:r,placedSide:k,onArrowChange:T,arrowX:j,arrowY:F,shouldHideArrow:$,children:m.jsx(oe.div,{"data-side":k,"data-align":K,...h,ref:_,style:{...h.style,animation:Z?void 0:"none"}})})})});ti.displayName=Nn;var ri="PopperArrow",Vd={top:"bottom",right:"left",bottom:"top",left:"right"},ni=p.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=Wd(ri,n),i=Vd[s.placedSide];return m.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:m.jsx($d,{...o,ref:r,style:{...o.style,display:"block"}})})});ni.displayName=ri;function Hd(e){return e!==null}var Gd=e=>({name:"transformOrigin",options:e,fn(t){var b,v,S;const{placement:r,rects:n,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=oi(r),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,y=(((S=o.arrow)==null?void 0:S.y)??0)+l/2;let g="",h="";return c==="bottom"?(g=i?d:`${f}px`,h=`${-l}px`):c==="top"?(g=i?d:`${f}px`,h=`${n.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=i?d:`${y}px`):c==="left"&&(g=`${n.floating.width+l}px`,h=i?d:`${y}px`),{data:{x:g,y:h}}}});function oi(e){const[t,r="center"]=e.split("-");return[t,r]}var Zd=Js,qd=ei,Yd=ti,Kd=ni,Xd="Portal",si=p.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,s]=p.useState(!1);Le(()=>s(!0),[]);const i=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?lo.createPortal(m.jsx(oe.div,{...n,ref:t}),i):null});si.displayName=Xd;function Jd(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var Mt=e=>{const{present:t,children:r}=e,n=Qd(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),s=ae(n.ref,ef(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:s}):null};Mt.displayName="Presence";function Qd(e){const[t,r]=p.useState(),n=p.useRef(null),o=p.useRef(e),s=p.useRef("none"),i=e?"mounted":"unmounted",[a,l]=Jd(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=vr(n.current);s.current=a==="mounted"?c:"none"},[a]),Le(()=>{const c=n.current,u=o.current;if(u!==e){const f=s.current,y=vr(c);e?l("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Le(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=y=>{const h=vr(n.current).includes(CSS.escape(y.animationName));if(y.target===t&&h&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=y=>{y.target===t&&(s.current=vr(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function vr(e){return(e==null?void 0:e.animationName)||"none"}function ef(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 jn="rovingFocusGroup.onEntryFocus",tf={bubbles:!1,cancelable:!0},Nt="RovingFocusGroup",[In,ii,rf]=fs(Nt),[nf,ai]=Pt(Nt,[rf]),[of,sf]=nf(Nt),ci=p.forwardRef((e,t)=>m.jsx(In.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(In.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(af,{...e,ref:t})})}));ci.displayName=Nt;var af=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,f=p.useRef(null),y=ae(t,f),g=ps(s),[h,b]=ls({prop:i,defaultProp:a??null,onChange:l,caller:Nt}),[v,S]=p.useState(!1),_=Oe(c),E=ii(r),T=p.useRef(!1),[A,P]=p.useState(0);return p.useEffect(()=>{const R=f.current;if(R)return R.addEventListener(jn,_),()=>R.removeEventListener(jn,_)},[_]),m.jsx(of,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:h,onItemFocus:p.useCallback(R=>b(R),[b]),onItemShiftTab:p.useCallback(()=>S(!0),[]),onFocusableItemAdd:p.useCallback(()=>P(R=>R+1),[]),onFocusableItemRemove:p.useCallback(()=>P(R=>R-1),[]),children:m.jsx(oe.div,{tabIndex:v||A===0?-1:0,"data-orientation":n,...d,ref:y,style:{outline:"none",...e.style},onMouseDown:q(e.onMouseDown,()=>{T.current=!0}),onFocus:q(e.onFocus,R=>{const N=!T.current;if(R.target===R.currentTarget&&N&&!v){const W=new CustomEvent(jn,tf);if(R.currentTarget.dispatchEvent(W),!W.defaultPrevented){const X=E().filter(I=>I.focusable),G=X.find(I=>I.active),H=X.find(I=>I.id===h),Y=[G,H,...X].filter(Boolean).map(I=>I.ref.current);di(Y,u)}}T.current=!1}),onBlur:q(e.onBlur,()=>S(!1))})})}),li="RovingFocusGroupItem",ui=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:s,children:i,...a}=e,l=wn(),c=s||l,u=sf(li,r),d=u.currentTabStopId===c,f=ii(r),{onFocusableItemAdd:y,onFocusableItemRemove:g,currentTabStopId:h}=u;return p.useEffect(()=>{if(n)return y(),()=>g()},[n,y,g]),m.jsx(In.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:m.jsx(oe.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:q(e.onMouseDown,b=>{n?u.onItemFocus(c):b.preventDefault()}),onFocus:q(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:q(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=uf(b,u.orientation,u.dir);if(v!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let _=f().filter(E=>E.focusable).map(E=>E.ref.current);if(v==="last")_.reverse();else if(v==="prev"||v==="next"){v==="prev"&&_.reverse();const E=_.indexOf(b.currentTarget);_=u.loop?df(_,E+1):_.slice(E+1)}setTimeout(()=>di(_))}}),children:typeof i=="function"?i({isCurrentTabStop:d,hasTabStop:h!=null}):i})})});ui.displayName=li;var cf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function lf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function uf(e,t,r){const n=lf(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return cf[n]}function di(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function df(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var ff=ci,pf=ui;function mf(e){const t=hf(e),r=p.forwardRef((n,o)=>{const{children:s,...i}=n,a=p.Children.toArray(s),l=a.find(yf);if(l){const c=l.props.children,u=a.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return m.jsx(t,{...i,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return m.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}function hf(e){const t=p.forwardRef((r,n)=>{const{children:o,...s}=r;if(p.isValidElement(o)){const i=vf(o),a=bf(s,o.props);return o.type!==p.Fragment&&(a.ref=n?He(n,i):i),p.cloneElement(o,a)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gf=Symbol("radix.slottable");function yf(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gf}function bf(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function vf(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 wf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dt=new WeakMap,wr=new WeakMap,xr={},Dn=0,fi=function(e){return e&&(e.host||fi(e.parentNode))},xf=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=fi(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})},_f=function(e,t,r,n){var o=xf(t,Array.isArray(e)?e:[e]);xr[r]||(xr[r]=new WeakMap);var s=xr[r],i=[],a=new Set,l=new Set(o),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var y=f.getAttribute(n),g=y!==null&&y!=="false",h=(dt.get(f)||0)+1,b=(s.get(f)||0)+1;dt.set(f,h),s.set(f,b),i.push(f),h===1&&g&&wr.set(f,!0),b===1&&f.setAttribute(r,"true"),g||f.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),Dn++,function(){i.forEach(function(d){var f=dt.get(d)-1,y=s.get(d)-1;dt.set(d,f),s.set(d,y),f||(wr.has(d)||d.removeAttribute(n),wr.delete(d)),y||d.removeAttribute(r)}),Dn--,Dn||(dt=new WeakMap,dt=new WeakMap,wr=new WeakMap,xr={})}},Sf=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=wf(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),_f(n,o,r,"aria-hidden")):function(){return null}},Te=function(){return Te=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Te.apply(this,arguments)};function pi(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 Ef(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var _r="right-scroll-bar-position",Sr="width-before-scroll-bar",Cf="with-scroll-bars-hidden",Rf="--removed-body-scroll-bar-size";function Fn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Tf(e,t){var r=V.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 Pf=typeof window<"u"?p.useLayoutEffect:p.useEffect,mi=new WeakMap;function Af(e,t){var r=Tf(null,function(n){return e.forEach(function(o){return Fn(o,n)})});return Pf(function(){var n=mi.get(r);if(n){var o=new Set(n),s=new Set(e),i=r.current;o.forEach(function(a){s.has(a)||Fn(a,null)}),s.forEach(function(a){o.has(a)||Fn(a,i)})}mi.set(r,e)},[e]),r}function kf(e){return e}function Of(e,t){t===void 0&&(t=kf);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(s){var i=t(s,n);return r.push(i),function(){r=r.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(n=!0;r.length;){var i=r;r=[],i.forEach(s)}r={push:function(a){return s(a)},filter:function(){return r}}},assignMedium:function(s){n=!0;var i=[];if(r.length){var a=r;r=[],a.forEach(s),i=r}var l=function(){var u=i;i=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){i.push(u),c()},filter:function(u){return i=i.filter(u),r}}}};return o}function Mf(e){e===void 0&&(e={});var t=Of(null);return t.options=Te({async:!0,ssr:!1},e),t}var hi=function(e){var t=e.sideCar,r=pi(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 p.createElement(n,Te({},r))};hi.isSideCarExport=!0;function Nf(e,t){return e.useMedium(t),hi}var gi=Mf(),Ln=function(){},Er=p.forwardRef(function(e,t){var r=p.useRef(null),n=p.useState({onScrollCapture:Ln,onWheelCapture:Ln,onTouchMoveCapture:Ln}),o=n[0],s=n[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,y=e.noRelative,g=e.noIsolation,h=e.inert,b=e.allowPinchZoom,v=e.as,S=v===void 0?"div":v,_=e.gapMode,E=pi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=f,A=Af([r,t]),P=Te(Te({},E),o);return p.createElement(p.Fragment,null,u&&p.createElement(T,{sideCar:gi,removeScrollBar:c,shards:d,noRelative:y,noIsolation:g,inert:h,setCallbacks:s,allowPinchZoom:!!b,lockRef:r,gapMode:_}),i?p.cloneElement(p.Children.only(a),Te(Te({},P),{ref:A})):p.createElement(S,Te({},P,{className:l,ref:A}),a))});Er.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Er.classNames={fullWidth:Sr,zeroRight:_r};var jf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function If(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jf();return t&&e.setAttribute("nonce",t),e}function Df(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ff(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Lf=function(){var e=0,t=null;return{add:function(r){e==0&&(t=If())&&(Df(t,r),Ff(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$f=function(){var e=Lf();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},yi=function(){var e=$f(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Bf={left:0,top:0,right:0,gap:0},$n=function(e){return parseInt(e||"",10)||0},zf=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[$n(r),$n(n),$n(o)]},Uf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Bf;var t=zf(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])}},Wf=yi(),ft="data-scroll-locked",Vf=function(e,t,r,n){var o=e.left,s=e.top,i=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
83
|
+
.`.concat(Cf,` {
|
|
84
|
+
overflow: hidden `).concat(n,`;
|
|
85
|
+
padding-right: `).concat(a,"px ").concat(n,`;
|
|
86
|
+
}
|
|
87
|
+
body[`).concat(ft,`] {
|
|
88
|
+
overflow: hidden `).concat(n,`;
|
|
89
|
+
overscroll-behavior: contain;
|
|
90
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
91
|
+
padding-left: `.concat(o,`px;
|
|
92
|
+
padding-top: `).concat(s,`px;
|
|
93
|
+
padding-right: `).concat(i,`px;
|
|
94
|
+
margin-left:0;
|
|
95
|
+
margin-top:0;
|
|
96
|
+
margin-right: `).concat(a,"px ").concat(n,`;
|
|
97
|
+
`),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.`).concat(_r,` {
|
|
101
|
+
right: `).concat(a,"px ").concat(n,`;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.`).concat(Sr,` {
|
|
105
|
+
margin-right: `).concat(a,"px ").concat(n,`;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.`).concat(_r," .").concat(_r,` {
|
|
109
|
+
right: 0 `).concat(n,`;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.`).concat(Sr," .").concat(Sr,` {
|
|
113
|
+
margin-right: 0 `).concat(n,`;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
body[`).concat(ft,`] {
|
|
117
|
+
`).concat(Rf,": ").concat(a,`px;
|
|
118
|
+
}
|
|
119
|
+
`)},bi=function(){var e=parseInt(document.body.getAttribute(ft)||"0",10);return isFinite(e)?e:0},Hf=function(){p.useEffect(function(){return document.body.setAttribute(ft,(bi()+1).toString()),function(){var e=bi()-1;e<=0?document.body.removeAttribute(ft):document.body.setAttribute(ft,e.toString())}},[])},Gf=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Hf();var s=p.useMemo(function(){return Uf(o)},[o]);return p.createElement(Wf,{styles:Vf(s,!t,o,r?"":"!important")})},Bn=!1;if(typeof window<"u")try{var Cr=Object.defineProperty({},"passive",{get:function(){return Bn=!0,!0}});window.addEventListener("test",Cr,Cr),window.removeEventListener("test",Cr,Cr)}catch{Bn=!1}var pt=Bn?{passive:!1}:!1,Zf=function(e){return e.tagName==="TEXTAREA"},vi=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Zf(e)&&r[t]==="visible")},qf=function(e){return vi(e,"overflowY")},Yf=function(e){return vi(e,"overflowX")},wi=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=xi(e,n);if(o){var s=_i(e,n),i=s[1],a=s[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Kf=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Xf=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},xi=function(e,t){return e==="v"?qf(t):Yf(t)},_i=function(e,t){return e==="v"?Kf(t):Xf(t)},Jf=function(e,t){return e==="h"&&t==="rtl"?-1:1},Qf=function(e,t,r,n,o){var s=Jf(e,window.getComputedStyle(t).direction),i=s*n,a=r.target,l=t.contains(a),c=!1,u=i>0,d=0,f=0;do{if(!a)break;var y=_i(e,a),g=y[0],h=y[1],b=y[2],v=h-b-s*g;(g||v)&&xi(e,a)&&(d+=v,f+=g);var S=a.parentNode;a=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},Rr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Si=function(e){return[e.deltaX,e.deltaY]},Ei=function(e){return e&&"current"in e?e.current:e},ep=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tp=function(e){return`
|
|
120
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
121
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
122
|
+
`)},rp=0,mt=[];function np(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),o=p.useState(rp++)[0],s=p.useState(yi)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Ef([e.lockRef.current],(e.shards||[]).map(Ei),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var v=Rr(h),S=r.current,_="deltaX"in h?h.deltaX:S[0]-v[0],E="deltaY"in h?h.deltaY:S[1]-v[1],T,A=h.target,P=Math.abs(_)>Math.abs(E)?"h":"v";if("touches"in h&&P==="h"&&A.type==="range")return!1;var R=wi(P,A);if(!R)return!0;if(R?T=P:(T=P==="v"?"h":"v",R=wi(P,A)),!R)return!1;if(!n.current&&"changedTouches"in h&&(_||E)&&(n.current=T),!T)return!0;var N=n.current||T;return Qf(N,b,h,N==="h"?_:E)},[]),l=p.useCallback(function(h){var b=h;if(!(!mt.length||mt[mt.length-1]!==s)){var v="deltaY"in b?Si(b):Rr(b),S=t.current.filter(function(T){return T.name===b.type&&(T.target===b.target||b.target===T.shadowParent)&&ep(T.delta,v)})[0];if(S&&S.should){b.cancelable&&b.preventDefault();return}if(!S){var _=(i.current.shards||[]).map(Ei).filter(Boolean).filter(function(T){return T.contains(b.target)}),E=_.length>0?a(b,_[0]):!i.current.noIsolation;E&&b.cancelable&&b.preventDefault()}}},[]),c=p.useCallback(function(h,b,v,S){var _={name:h,delta:b,target:v,should:S,shadowParent:op(v)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(E){return E!==_})},1)},[]),u=p.useCallback(function(h){r.current=Rr(h),n.current=void 0},[]),d=p.useCallback(function(h){c(h.type,Si(h),h.target,a(h,e.lockRef.current))},[]),f=p.useCallback(function(h){c(h.type,Rr(h),h.target,a(h,e.lockRef.current))},[]);p.useEffect(function(){return mt.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,pt),document.addEventListener("touchmove",l,pt),document.addEventListener("touchstart",u,pt),function(){mt=mt.filter(function(h){return h!==s}),document.removeEventListener("wheel",l,pt),document.removeEventListener("touchmove",l,pt),document.removeEventListener("touchstart",u,pt)}},[]);var y=e.removeScrollBar,g=e.inert;return p.createElement(p.Fragment,null,g?p.createElement(s,{styles:tp(o)}):null,y?p.createElement(Gf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function op(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sp=Nf(gi,np);var Ci=p.forwardRef(function(e,t){return p.createElement(Er,Te({},e,{ref:t,sideCar:sp}))});Ci.classNames=Er.classNames;var zn=["Enter"," "],ip=["ArrowDown","PageUp","Home"],Ri=["ArrowUp","PageDown","End"],ap=[...ip,...Ri],cp={ltr:[...zn,"ArrowRight"],rtl:[...zn,"ArrowLeft"]},lp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},jt="Menu",[It,up,dp]=fs(jt),[qe,Ti]=Pt(jt,[dp,Ks,ai]),Tr=Ks(),Pi=ai(),[fp,Ye]=qe(jt),[pp,Dt]=qe(jt),Ai=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:s,modal:i=!0}=e,a=Tr(t),[l,c]=p.useState(null),u=p.useRef(!1),d=Oe(s),f=ps(o);return p.useEffect(()=>{const y=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),m.jsx(Zd,{...a,children:m.jsx(fp,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:m.jsx(pp,{scope:t,onClose:p.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:i,children:n})})})};Ai.displayName=jt;var mp="MenuAnchor",Un=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Tr(r);return m.jsx(qd,{...o,...n,ref:t})});Un.displayName=mp;var Wn="MenuPortal",[hp,ki]=qe(Wn,{forceMount:void 0}),Oi=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,s=Ye(Wn,t);return m.jsx(hp,{scope:t,forceMount:r,children:m.jsx(Mt,{present:r||s.open,children:m.jsx(si,{asChild:!0,container:o,children:n})})})};Oi.displayName=Wn;var he="MenuContent",[gp,Vn]=qe(he),Mi=p.forwardRef((e,t)=>{const r=ki(he,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,s=Ye(he,e.__scopeMenu),i=Dt(he,e.__scopeMenu);return m.jsx(It.Provider,{scope:e.__scopeMenu,children:m.jsx(Mt,{present:n||s.open,children:m.jsx(It.Slot,{scope:e.__scopeMenu,children:i.modal?m.jsx(yp,{...o,ref:t}):m.jsx(bp,{...o,ref:t})})})})}),yp=p.forwardRef((e,t)=>{const r=Ye(he,e.__scopeMenu),n=p.useRef(null),o=ae(t,n);return p.useEffect(()=>{const s=n.current;if(s)return Sf(s)},[]),m.jsx(Hn,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:q(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),bp=p.forwardRef((e,t)=>{const r=Ye(he,e.__scopeMenu);return m.jsx(Hn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),vp=mf("MenuContent.ScrollLock"),Hn=p.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:y,disableOutsideScroll:g,...h}=e,b=Ye(he,r),v=Dt(he,r),S=Tr(r),_=Pi(r),E=up(r),[T,A]=p.useState(null),P=p.useRef(null),R=ae(t,P,b.onContentChange),N=p.useRef(0),W=p.useRef(""),X=p.useRef(0),G=p.useRef(null),H=p.useRef("right"),z=p.useRef(0),Y=g?Ci:p.Fragment,I=g?{as:vp,allowPinchZoom:!0}:void 0,Z=k=>{var L,ie;const K=W.current+k,x=E().filter(Q=>!Q.disabled),j=document.activeElement,F=(L=x.find(Q=>Q.ref.current===j))==null?void 0:L.textValue,$=x.map(Q=>Q.textValue),te=Op($,K,F),ue=(ie=x.find(Q=>Q.textValue===te))==null?void 0:ie.ref.current;(function Q(ye){W.current=ye,window.clearTimeout(N.current),ye!==""&&(N.current=window.setTimeout(()=>Q(""),1e3))})(K),ue&&setTimeout(()=>ue.focus())};p.useEffect(()=>()=>window.clearTimeout(N.current),[]),bu();const C=p.useCallback(k=>{var x,j;return H.current===((x=G.current)==null?void 0:x.side)&&Np(k,(j=G.current)==null?void 0:j.area)},[]);return m.jsx(gp,{scope:r,searchRef:W,onItemEnter:p.useCallback(k=>{C(k)&&k.preventDefault()},[C]),onItemLeave:p.useCallback(k=>{var K;C(k)||((K=P.current)==null||K.focus(),A(null))},[C]),onTriggerLeave:p.useCallback(k=>{C(k)&&k.preventDefault()},[C]),pointerGraceTimerRef:X,onPointerGraceIntentChange:p.useCallback(k=>{G.current=k},[]),children:m.jsx(Y,{...I,children:m.jsx(xs,{asChild:!0,trapped:o,onMountAutoFocus:q(s,k=>{var K;k.preventDefault(),(K=P.current)==null||K.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:m.jsx(gs,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:y,children:m.jsx(ff,{asChild:!0,..._,dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:T,onCurrentTabStopIdChange:A,onEntryFocus:q(l,k=>{v.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(Yd,{role:"menu","aria-orientation":"vertical","data-state":Yi(b.open),"data-radix-menu-content":"",dir:v.dir,...S,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:q(h.onKeyDown,k=>{const x=k.target.closest("[data-radix-menu-content]")===k.currentTarget,j=k.ctrlKey||k.altKey||k.metaKey,F=k.key.length===1;x&&(k.key==="Tab"&&k.preventDefault(),!j&&F&&Z(k.key));const $=P.current;if(k.target!==$||!ap.includes(k.key))return;k.preventDefault();const ue=E().filter(L=>!L.disabled).map(L=>L.ref.current);Ri.includes(k.key)&&ue.reverse(),Ap(ue)}),onBlur:q(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(N.current),W.current="")}),onPointerMove:q(e.onPointerMove,Lt(k=>{const K=k.target,x=z.current!==k.clientX;if(k.currentTarget.contains(K)&&x){const j=k.clientX>z.current?"right":"left";H.current=j,z.current=k.clientX}}))})})})})})})});Mi.displayName=he;var wp="MenuGroup",Gn=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return m.jsx(oe.div,{role:"group",...n,ref:t})});Gn.displayName=wp;var xp="MenuLabel",Ni=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return m.jsx(oe.div,{...n,ref:t})});Ni.displayName=xp;var Pr="MenuItem",ji="menu.itemSelect",Ar=p.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,s=p.useRef(null),i=Dt(Pr,e.__scopeMenu),a=Vn(Pr,e.__scopeMenu),l=ae(t,s),c=p.useRef(!1),u=()=>{const d=s.current;if(!r&&d){const f=new CustomEvent(ji,{bubbles:!0,cancelable:!0});d.addEventListener(ji,y=>n==null?void 0:n(y),{once:!0}),us(d,f),f.defaultPrevented?c.current=!1:i.onClose()}};return m.jsx(Ii,{...o,ref:l,disabled:r,onClick:q(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),c.current=!0},onPointerUp:q(e.onPointerUp,d=>{var f;c.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:q(e.onKeyDown,d=>{const f=a.searchRef.current!=="";r||f&&d.key===" "||zn.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Ar.displayName=Pr;var Ii=p.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...s}=e,i=Vn(Pr,r),a=Pi(r),l=p.useRef(null),c=ae(t,l),[u,d]=p.useState(!1),[f,y]=p.useState("");return p.useEffect(()=>{const g=l.current;g&&y((g.textContent??"").trim())},[s.children]),m.jsx(It.ItemSlot,{scope:r,disabled:n,textValue:o??f,children:m.jsx(pf,{asChild:!0,...a,focusable:!n,children:m.jsx(oe.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...s,ref:c,onPointerMove:q(e.onPointerMove,Lt(g=>{n?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:q(e.onPointerLeave,Lt(g=>i.onItemLeave(g))),onFocus:q(e.onFocus,()=>d(!0)),onBlur:q(e.onBlur,()=>d(!1))})})})}),_p="MenuCheckboxItem",Di=p.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return m.jsx(zi,{scope:e.__scopeMenu,checked:r,children:m.jsx(Ar,{role:"menuitemcheckbox","aria-checked":kr(r)?"mixed":r,...o,ref:t,"data-state":qn(r),onSelect:q(o.onSelect,()=>n==null?void 0:n(kr(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Di.displayName=_p;var Fi="MenuRadioGroup",[Sp,Ep]=qe(Fi,{value:void 0,onValueChange:()=>{}}),Li=p.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,s=Oe(n);return m.jsx(Sp,{scope:e.__scopeMenu,value:r,onValueChange:s,children:m.jsx(Gn,{...o,ref:t})})});Li.displayName=Fi;var $i="MenuRadioItem",Bi=p.forwardRef((e,t)=>{const{value:r,...n}=e,o=Ep($i,e.__scopeMenu),s=r===o.value;return m.jsx(zi,{scope:e.__scopeMenu,checked:s,children:m.jsx(Ar,{role:"menuitemradio","aria-checked":s,...n,ref:t,"data-state":qn(s),onSelect:q(n.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,r)},{checkForDefaultPrevented:!1})})})});Bi.displayName=$i;var Zn="MenuItemIndicator",[zi,Cp]=qe(Zn,{checked:!1}),Ui=p.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,s=Cp(Zn,r);return m.jsx(Mt,{present:n||kr(s.checked)||s.checked===!0,children:m.jsx(oe.span,{...o,ref:t,"data-state":qn(s.checked)})})});Ui.displayName=Zn;var Rp="MenuSeparator",Wi=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return m.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});Wi.displayName=Rp;var Tp="MenuArrow",Vi=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Tr(r);return m.jsx(Kd,{...o,...n,ref:t})});Vi.displayName=Tp;var Pp="MenuSub",[Bg,Hi]=qe(Pp),Ft="MenuSubTrigger",Gi=p.forwardRef((e,t)=>{const r=Ye(Ft,e.__scopeMenu),n=Dt(Ft,e.__scopeMenu),o=Hi(Ft,e.__scopeMenu),s=Vn(Ft,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=s,c={__scopeMenu:e.__scopeMenu},u=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return p.useEffect(()=>u,[u]),p.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),l(null)}},[a,l]),m.jsx(Un,{asChild:!0,...c,children:m.jsx(Ii,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Yi(r.open),...e,ref:He(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:q(e.onPointerMove,Lt(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:q(e.onPointerLeave,Lt(d=>{var y,g;u();const f=(y=r.content)==null?void 0:y.getBoundingClientRect();if(f){const h=(g=r.content)==null?void 0:g.dataset.side,b=h==="right",v=b?-5:5,S=f[b?"left":"right"],_=f[b?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:S,y:f.top},{x:_,y:f.top},{x:_,y:f.bottom},{x:S,y:f.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:q(e.onKeyDown,d=>{var y;const f=s.searchRef.current!=="";e.disabled||f&&d.key===" "||cp[n.dir].includes(d.key)&&(r.onOpenChange(!0),(y=r.content)==null||y.focus(),d.preventDefault())})})})});Gi.displayName=Ft;var Zi="MenuSubContent",qi=p.forwardRef((e,t)=>{const r=ki(he,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,s=Ye(he,e.__scopeMenu),i=Dt(he,e.__scopeMenu),a=Hi(Zi,e.__scopeMenu),l=p.useRef(null),c=ae(t,l);return m.jsx(It.Provider,{scope:e.__scopeMenu,children:m.jsx(Mt,{present:n||s.open,children:m.jsx(It.Slot,{scope:e.__scopeMenu,children:m.jsx(Hn,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;i.isUsingKeyboardRef.current&&((d=l.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:q(e.onFocusOutside,u=>{u.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:q(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:q(e.onKeyDown,u=>{var y;const d=u.currentTarget.contains(u.target),f=lp[i.dir].includes(u.key);d&&f&&(s.onOpenChange(!1),(y=a.trigger)==null||y.focus(),u.preventDefault())})})})})})});qi.displayName=Zi;function Yi(e){return e?"open":"closed"}function kr(e){return e==="indeterminate"}function qn(e){return kr(e)?"indeterminate":e?"checked":"unchecked"}function Ap(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function kp(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Op(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let i=kp(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==r));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function Mp(e,t){const{x:r,y:n}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],c=a.x,u=a.y,d=l.x,f=l.y;u>n!=f>n&&r<(d-c)*(n-u)/(f-u)+c&&(o=!o)}return o}function Np(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return Mp(r,t)}function Lt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var jp=Ai,Ip=Un,Dp=Oi,Fp=Mi,Lp=Gn,$p=Ni,Bp=Ar,zp=Di,Up=Li,Wp=Bi,Vp=Ui,Hp=Wi,Gp=Vi,Zp=Gi,qp=qi,Or="DropdownMenu",[Yp]=Pt(Or,[Ti]),se=Ti(),[Kp,Ki]=Yp(Or),Xi=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=se(t),c=p.useRef(null),[u,d]=ls({prop:o,defaultProp:s??!1,onChange:i,caller:Or});return m.jsx(Kp,{scope:t,triggerId:wn(),triggerRef:c,contentId:wn(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:a,children:m.jsx(jp,{...l,open:u,onOpenChange:d,dir:n,modal:a,children:r})})};Xi.displayName=Or;var Ji="DropdownMenuTrigger",Qi=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,s=Ki(Ji,r),i=se(r);return m.jsx(Ip,{asChild:!0,...i,children:m.jsx(oe.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:He(t,s.triggerRef),onPointerDown:q(e.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:q(e.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Qi.displayName=Ji;var Xp="DropdownMenuPortal",ea=e=>{const{__scopeDropdownMenu:t,...r}=e,n=se(t);return m.jsx(Dp,{...n,...r})};ea.displayName=Xp;var ta="DropdownMenuContent",ra=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ki(ta,r),s=se(r),i=p.useRef(!1);return m.jsx(Fp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...n,ref:t,onCloseAutoFocus:q(e.onCloseAutoFocus,a=>{var l;i.current||(l=o.triggerRef.current)==null||l.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:q(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(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)"}})});ra.displayName=ta;var Jp="DropdownMenuGroup",Qp=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx(Lp,{...o,...n,ref:t})});Qp.displayName=Jp;var em="DropdownMenuLabel",tm=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx($p,{...o,...n,ref:t})});tm.displayName=em;var rm="DropdownMenuItem",na=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx(Bp,{...o,...n,ref:t})});na.displayName=rm;var nm="DropdownMenuCheckboxItem",om=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx(zp,{...o,...n,ref:t})});om.displayName=nm;var sm="DropdownMenuRadioGroup",im=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx(Up,{...o,...n,ref:t})});im.displayName=sm;var am="DropdownMenuRadioItem",cm=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx(Wp,{...o,...n,ref:t})});cm.displayName=am;var lm="DropdownMenuItemIndicator",um=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx(Vp,{...o,...n,ref:t})});um.displayName=lm;var dm="DropdownMenuSeparator",fm=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx(Hp,{...o,...n,ref:t})});fm.displayName=dm;var pm="DropdownMenuArrow",mm=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx(Gp,{...o,...n,ref:t})});mm.displayName=pm;var hm="DropdownMenuSubTrigger",gm=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx(Zp,{...o,...n,ref:t})});gm.displayName=hm;var ym="DropdownMenuSubContent",bm=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=se(r);return m.jsx(qp,{...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)"}})});bm.displayName=ym;var vm=Xi,wm=Qi,xm=ea,_m=ra,Sm=na;function oa({...e}){return m.jsx(vm,{"data-slot":"dropdown-menu",...e})}function sa({...e}){return m.jsx(wm,{"data-slot":"dropdown-menu-trigger",...e})}function ia({className:e,sideOffset:t=4,...r}){return m.jsx(xm,{children:m.jsx(_m,{"data-slot":"dropdown-menu-content",sideOffset:t,className:_e("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),...r})})}function Mr({className:e,inset:t,variant:r="default",...n}){return m.jsx(Sm,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:_e("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function Em({breadcrumbs:e}){if(e.length===0)return null;const t=e.length>=4,r=e[0],n=e[1]??null,o=e[e.length-1],s=e.slice(2,-2);return m.jsx(Vl,{children:m.jsxs(Hl,{children:[m.jsx(Tt,{children:m.jsx(hn,{asChild:!0,children:m.jsx("a",{href:r.href,children:r.title})})}),t&&n&&m.jsxs(m.Fragment,{children:[m.jsx(cr,{}),m.jsx(Tt,{children:m.jsx(hn,{asChild:!0,children:m.jsx("a",{href:n.href,children:n.title})})})]}),m.jsx(cr,{}),t?m.jsxs(m.Fragment,{children:[m.jsx(Tt,{children:m.jsxs(oa,{children:[m.jsx(sa,{className:"cursor-pointer",children:"•••"}),m.jsx(ia,{children:s.map((i,a)=>m.jsx(Mr,{children:m.jsx("a",{href:i.href,children:i.title})},a))})]})}),m.jsx(cr,{})]}):m.jsx(m.Fragment,{children:s.map((i,a)=>m.jsxs(V.Fragment,{children:[m.jsx(Tt,{children:m.jsx(hn,{asChild:!0,children:m.jsx("a",{href:i.href,children:i.title})})}),m.jsx(cr,{})]},a))}),m.jsx(Tt,{children:m.jsx(Gl,{children:o.title})})]})})}function Cm({className:e,type:t,...r}){return m.jsx("input",{type:t,"data-slot":"input",className:_e("border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-[100px] border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}const Rm={theme:"system",setTheme:()=>null},aa=V.createContext(Rm);function Tm({children:e,defaultTheme:t="system",storageKey:r="vite-ui-theme",...n}){const[o,s]=V.useState(()=>localStorage.getItem(r)||t);V.useEffect(()=>{const a=window.document.documentElement;if(a.classList.remove("light","dark"),o==="system"){const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(l);return}a.classList.add(o)},[o]);const i={theme:o,setTheme:a=>{localStorage.setItem(r,a),s(a)}};return m.jsx(aa.Provider,{...n,value:i,children:e})}const ca=()=>{const e=V.useContext(aa);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function Pm(){const{setTheme:e}=ca();return m.jsxs(oa,{children:[m.jsx(sa,{asChild:!0,children:m.jsxs(Ol,{variant:"outline",size:"icon",children:[m.jsx(Ul,{className:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"}),m.jsx(Bl,{className:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),m.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),m.jsxs(ia,{align:"end",children:[m.jsx(Mr,{onClick:()=>e("light"),children:"Light"}),m.jsx(Mr,{onClick:()=>e("dark"),children:"Dark"}),m.jsx(Mr,{onClick:()=>e("system"),children:"System"})]})]})}function la(e,t){return function(){return e.apply(t,arguments)}}const{toString:Am}=Object.prototype,{getPrototypeOf:Yn}=Object,{iterator:Nr,toStringTag:ua}=Symbol,jr=(e=>t=>{const r=Am.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),we=e=>(e=e.toLowerCase(),t=>jr(t)===e),Ir=e=>t=>typeof t===e,{isArray:ht}=Array,gt=Ir("undefined");function $t(e){return e!==null&&!gt(e)&&e.constructor!==null&&!gt(e.constructor)&&ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const da=we("ArrayBuffer");function km(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&da(e.buffer),t}const Om=Ir("string"),ce=Ir("function"),fa=Ir("number"),Bt=e=>e!==null&&typeof e=="object",Mm=e=>e===!0||e===!1,Dr=e=>{if(jr(e)!=="object")return!1;const t=Yn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ua in e)&&!(Nr in e)},Nm=e=>{if(!Bt(e)||$t(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},jm=we("Date"),Im=we("File"),Dm=we("Blob"),Fm=we("FileList"),Lm=e=>Bt(e)&&ce(e.pipe),$m=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ce(e.append)&&((t=jr(e))==="formdata"||t==="object"&&ce(e.toString)&&e.toString()==="[object FormData]"))},Bm=we("URLSearchParams"),[zm,Um,Wm,Vm]=["ReadableStream","Request","Response","Headers"].map(we),Hm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),ht(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if($t(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(n=0;n<i;n++)a=s[n],t.call(null,e[a],a,e)}}function pa(e,t){if($t(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ma=e=>!gt(e)&&e!==Ke;function Kn(){const{caseless:e,skipUndefined:t}=ma(this)&&this||{},r={},n=(o,s)=>{const i=e&&pa(r,s)||s;Dr(r[i])&&Dr(o)?r[i]=Kn(r[i],o):Dr(o)?r[i]=Kn({},o):ht(o)?r[i]=o.slice():(!t||!gt(o))&&(r[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&zt(arguments[o],n);return r}const Gm=(e,t,r,{allOwnKeys:n}={})=>(zt(t,(o,s)=>{r&&ce(o)?e[s]=la(o,r):e[s]=o},{allOwnKeys:n}),e),Zm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qm=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ym=(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=r!==!1&&Yn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Km=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Xm=e=>{if(!e)return null;if(ht(e))return e;let t=e.length;if(!fa(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Jm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yn(Uint8Array)),Qm=(e,t)=>{const n=(e&&e[Nr]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},eh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},th=we("HTMLFormElement"),rh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ha=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),nh=we("RegExp"),ga=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};zt(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},oh=e=>{ga(e,(t,r)=>{if(ce(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ce(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},sh=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return ht(e)?n(e):n(String(e).split(t)),r},ih=()=>{},ah=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ch(e){return!!(e&&ce(e.append)&&e[ua]==="FormData"&&e[Nr])}const lh=e=>{const t=new Array(10),r=(n,o)=>{if(Bt(n)){if(t.indexOf(n)>=0)return;if($t(n))return n;if(!("toJSON"in n)){t[o]=n;const s=ht(n)?[]:{};return zt(n,(i,a)=>{const l=r(i,o+1);!gt(l)&&(s[a]=l)}),t[o]=void 0,s}}return n};return r(e,0)},uh=we("AsyncFunction"),dh=e=>e&&(Bt(e)||ce(e))&&ce(e.then)&&ce(e.catch),ya=((e,t)=>e?setImmediate:t?((r,n)=>(Ke.addEventListener("message",({source:o,data:s})=>{o===Ke&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ke.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ce(Ke.postMessage)),fh=typeof queueMicrotask<"u"?queueMicrotask.bind(Ke):typeof process<"u"&&process.nextTick||ya,w={isArray:ht,isArrayBuffer:da,isBuffer:$t,isFormData:$m,isArrayBufferView:km,isString:Om,isNumber:fa,isBoolean:Mm,isObject:Bt,isPlainObject:Dr,isEmptyObject:Nm,isReadableStream:zm,isRequest:Um,isResponse:Wm,isHeaders:Vm,isUndefined:gt,isDate:jm,isFile:Im,isBlob:Dm,isRegExp:nh,isFunction:ce,isStream:Lm,isURLSearchParams:Bm,isTypedArray:Jm,isFileList:Fm,forEach:zt,merge:Kn,extend:Gm,trim:Hm,stripBOM:Zm,inherits:qm,toFlatObject:Ym,kindOf:jr,kindOfTest:we,endsWith:Km,toArray:Xm,forEachEntry:Qm,matchAll:eh,isHTMLForm:th,hasOwnProperty:ha,hasOwnProp:ha,reduceDescriptors:ga,freezeMethods:oh,toObjectSet:sh,toCamelCase:rh,noop:ih,toFiniteNumber:ah,findKey:pa,global:Ke,isContextDefined:ma,isSpecCompliantForm:ch,toJSONObject:lh,isAsyncFn:uh,isThenable:dh,setImmediate:ya,asap:fh,isIterable:e=>e!=null&&ce(e[Nr])};function B(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(B,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const ba=B.prototype,va={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{va[e]={value:e}}),Object.defineProperties(B,va),Object.defineProperty(ba,"isAxiosError",{value:!0}),B.from=(e,t,r,n,o,s)=>{const i=Object.create(ba);w.toFlatObject(e,i,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return B.call(i,a,l,r,n,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};const ph=null;function Xn(e){return w.isPlainObject(e)||w.isArray(e)}function wa(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function xa(e,t,r){return e?e.concat(t).map(function(o,s){return o=wa(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function mh(e){return w.isArray(e)&&!e.some(Xn)}const hh=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Fr(e,t,r){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=w.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!w.isUndefined(b[h])});const n=r.metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(w.isDate(g))return g.toISOString();if(w.isBoolean(g))return g.toString();if(!l&&w.isBlob(g))throw new B("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(g)||w.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,h,b){let v=g;if(g&&!b&&typeof g=="object"){if(w.endsWith(h,"{}"))h=n?h:h.slice(0,-2),g=JSON.stringify(g);else if(w.isArray(g)&&mh(g)||(w.isFileList(g)||w.endsWith(h,"[]"))&&(v=w.toArray(g)))return h=wa(h),v.forEach(function(_,E){!(w.isUndefined(_)||_===null)&&t.append(i===!0?xa([h],E,s):i===null?h:h+"[]",c(_))}),!1}return Xn(g)?!0:(t.append(xa(b,h,s),c(g)),!1)}const d=[],f=Object.assign(hh,{defaultVisitor:u,convertValue:c,isVisitable:Xn});function y(g,h){if(!w.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(g),w.forEach(g,function(v,S){(!(w.isUndefined(v)||v===null)&&o.call(t,v,w.isString(S)?S.trim():S,h,f))===!0&&y(v,h?h.concat(S):[S])}),d.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return y(e),t}function _a(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Jn(e,t){this._pairs=[],e&&Fr(e,this,t)}const Sa=Jn.prototype;Sa.append=function(t,r){this._pairs.push([t,r])},Sa.toString=function(t){const r=t?function(n){return t.call(this,n,_a)}:_a;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function gh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ea(e,t,r){if(!t)return e;const n=r&&r.encode||gh;w.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=w.isURLSearchParams(t)?t.toString():new Jn(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Ca{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ra={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yh={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Jn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Qn=typeof window<"u"&&typeof document<"u",eo=typeof navigator=="object"&&navigator||void 0,bh=Qn&&(!eo||["ReactNative","NativeScript","NS"].indexOf(eo.product)<0),vh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wh=Qn&&window.location.href||"http://localhost",re={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qn,hasStandardBrowserEnv:bh,hasStandardBrowserWebWorkerEnv:vh,navigator:eo,origin:wh},Symbol.toStringTag,{value:"Module"})),...yh};function xh(e,t){return Fr(e,new re.classes.URLSearchParams,{visitor:function(r,n,o,s){return re.isNode&&w.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function _h(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sh(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function Ta(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=s>=r.length;return i=!i&&w.isArray(o)?o.length:i,l?(w.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!a):((!o[i]||!w.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&w.isArray(o[i])&&(o[i]=Sh(o[i])),!a)}if(w.isFormData(e)&&w.isFunction(e.entries)){const r={};return w.forEachEntry(e,(n,o)=>{t(_h(n),o,r,0)}),r}return null}function Eh(e,t,r){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ut={transitional:Ra,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=w.isObject(t);if(s&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(Ta(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return xh(t,this.formSerializer).toString();if((a=w.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Fr(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Eh(t)):t}],transformResponse:[function(t){const r=this.transitional||Ut.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?B.from(a,B.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:re.classes.FormData,Blob:re.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Ut.headers[e]={}});const Ch=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Rh=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
123
|
+
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&Ch[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Pa=Symbol("internals");function Wt(e){return e&&String(e).trim().toLowerCase()}function Lr(e){return e===!1||e==null?e:w.isArray(e)?e.map(Lr):String(e)}function Th(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Ph=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function to(e,t,r,n,o){if(w.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!w.isString(t)){if(w.isString(n))return t.indexOf(n)!==-1;if(w.isRegExp(n))return n.test(t)}}function Ah(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function kh(e,t){const r=w.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}let le=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function s(a,l,c){const u=Wt(l);if(!u)throw new Error("header name must be a non-empty string");const d=w.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=Lr(a))}const i=(a,l)=>w.forEach(a,(c,u)=>s(c,u,l));if(w.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(w.isString(t)&&(t=t.trim())&&!Ph(t))i(Rh(t),r);else if(w.isObject(t)&&w.isIterable(t)){let a={},l,c;for(const u of t){if(!w.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?w.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}i(a,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=Wt(t),t){const n=w.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Th(o);if(w.isFunction(r))return r.call(this,o,n);if(w.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Wt(t),t){const n=w.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||to(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function s(i){if(i=Wt(i),i){const a=w.findKey(n,i);a&&(!r||to(n,n[a],a,r))&&(delete n[a],o=!0)}}return w.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!t||to(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,n={};return w.forEach(this,(o,s)=>{const i=w.findKey(n,s);if(i){r[i]=Lr(o),delete r[s];return}const a=t?Ah(s):String(s).trim();a!==s&&delete r[s],r[a]=Lr(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return w.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&w.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
124
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Pa]=this[Pa]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Wt(i);n[a]||(kh(o,i),n[a]=!0)}return w.isArray(t)?t.forEach(s):s(t),this}};le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(le.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),w.freezeMethods(le);function ro(e,t){const r=this||Ut,n=t||r,o=le.from(n.headers);let s=n.data;return w.forEach(e,function(a){s=a.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Aa(e){return!!(e&&e.__CANCEL__)}function yt(e,t,r){B.call(this,e??"canceled",B.ERR_CANCELED,t,r),this.name="CanceledError"}w.inherits(yt,B,{__CANCEL__:!0});function ka(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new B("Request failed with status code "+r.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Oh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Mh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[s];i||(i=c),r[o]=l,n[o]=c;let d=s,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const y=u&&c-u;return y?Math.round(f*1e3/y):void 0}}function Nh(e,t){let r=0,n=1e3/t,o,s;const i=(c,u=Date.now())=>{r=u,o=null,s&&(clearTimeout(s),s=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?i(c,u):(o=c,s||(s=setTimeout(()=>{s=null,i(o)},n-d)))},()=>o&&i(o)]}const $r=(e,t,r=3)=>{let n=0;const o=Mh(50,250);return Nh(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=i-n,c=o(l),u=i<=a;n=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},Oa=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ma=e=>(...t)=>w.asap(()=>e(...t)),jh=re.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,re.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(re.origin),re.navigator&&/(msie|trident)/i.test(re.navigator.userAgent)):()=>!0,Ih=re.hasStandardBrowserEnv?{write(e,t,r,n,o,s,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];w.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),w.isString(n)&&a.push(`path=${n}`),w.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),w.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Dh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Na(e,t,r){let n=!Dh(t);return e&&(n||r==!1)?Fh(e,t):t}const ja=e=>e instanceof le?{...e}:e;function Xe(e,t){t=t||{};const r={};function n(c,u,d,f){return w.isPlainObject(c)&&w.isPlainObject(u)?w.merge.call({caseless:f},c,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(c,u,d,f){if(w.isUndefined(u)){if(!w.isUndefined(c))return n(void 0,c,d,f)}else return n(c,u,d,f)}function s(c,u){if(!w.isUndefined(u))return n(void 0,u)}function i(c,u){if(w.isUndefined(u)){if(!w.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u,d)=>o(ja(c),ja(u),d,!0)};return w.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||o,f=d(e[u],t[u],u);w.isUndefined(f)&&d!==a||(r[u]=f)}),r}const Ia=e=>{const t=Xe({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=le.from(i),t.url=Ea(Na(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),w.isFormData(r)){if(re.hasStandardBrowserEnv||re.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(w.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&i.set(u,d)})}}if(re.hasStandardBrowserEnv&&(n&&w.isFunction(n)&&(n=n(t)),n||n!==!1&&jh(t.url))){const l=o&&s&&Ih.read(s);l&&i.set(o,l)}return t},Lh=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Ia(e);let s=o.data;const i=le.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,y,g;function h(){y&&y(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function v(){if(!b)return;const _=le.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),T={data:!a||a==="text"||a==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:_,config:e,request:b};ka(function(P){r(P),h()},function(P){n(P),h()},T),b=null}"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(v)},b.onabort=function(){b&&(n(new B("Request aborted",B.ECONNABORTED,e,b)),b=null)},b.onerror=function(E){const T=E&&E.message?E.message:"Network Error",A=new B(T,B.ERR_NETWORK,e,b);A.event=E||null,n(A),b=null},b.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||Ra;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new B(E,T.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,e,b)),b=null},s===void 0&&i.setContentType(null),"setRequestHeader"in b&&w.forEach(i.toJSON(),function(E,T){b.setRequestHeader(T,E)}),w.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),a&&a!=="json"&&(b.responseType=o.responseType),c&&([f,g]=$r(c,!0),b.addEventListener("progress",f)),l&&b.upload&&([d,y]=$r(l),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(u=_=>{b&&(n(!_||_.type?new yt(null,e,b):_),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const S=Oh(o.url);if(S&&re.protocols.indexOf(S)===-1){n(new B("Unsupported protocol "+S+":",B.ERR_BAD_REQUEST,e));return}b.send(s||null)})},$h=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const s=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof B?u:new yt(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new B(`timeout ${t} of ms exceeded`,B.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>w.asap(a),l}},Bh=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},zh=async function*(e,t){for await(const r of Uh(e))yield*Bh(r,t)},Uh=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Da=(e,t,r,n)=>{const o=zh(e,t);let s=0,i,a=l=>{i||(i=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(r){let f=s+=d;r(f)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Fa=64*1024,{isFunction:Br}=w,Wh=(({Request:e,Response:t})=>({Request:e,Response:t}))(w.global),{ReadableStream:La,TextEncoder:$a}=w.global,Ba=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Vh=e=>{e=w.merge.call({skipUndefined:!0},Wh,e);const{fetch:t,Request:r,Response:n}=e,o=t?Br(t):typeof fetch=="function",s=Br(r),i=Br(n);if(!o)return!1;const a=o&&Br(La),l=o&&(typeof $a=="function"?(g=>h=>g.encode(h))(new $a):async g=>new Uint8Array(await new r(g).arrayBuffer())),c=s&&a&&Ba(()=>{let g=!1;const h=new r(re.origin,{body:new La,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!h}),u=i&&a&&Ba(()=>w.isReadableStream(new n("").body)),d={stream:u&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!d[g]&&(d[g]=(h,b)=>{let v=h&&h[g];if(v)return v.call(h);throw new B(`Response type '${g}' is not supported`,B.ERR_NOT_SUPPORT,b)})});const f=async g=>{if(g==null)return 0;if(w.isBlob(g))return g.size;if(w.isSpecCompliantForm(g))return(await new r(re.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(w.isArrayBufferView(g)||w.isArrayBuffer(g))return g.byteLength;if(w.isURLSearchParams(g)&&(g=g+""),w.isString(g))return(await l(g)).byteLength},y=async(g,h)=>{const b=w.toFiniteNumber(g.getContentLength());return b??f(h)};return async g=>{let{url:h,method:b,data:v,signal:S,cancelToken:_,timeout:E,onDownloadProgress:T,onUploadProgress:A,responseType:P,headers:R,withCredentials:N="same-origin",fetchOptions:W}=Ia(g),X=t||fetch;P=P?(P+"").toLowerCase():"text";let G=$h([S,_&&_.toAbortSignal()],E),H=null;const z=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Y;try{if(A&&c&&b!=="get"&&b!=="head"&&(Y=await y(R,v))!==0){let x=new r(h,{method:"POST",body:v,duplex:"half"}),j;if(w.isFormData(v)&&(j=x.headers.get("content-type"))&&R.setContentType(j),x.body){const[F,$]=Oa(Y,$r(Ma(A)));v=Da(x.body,Fa,F,$)}}w.isString(N)||(N=N?"include":"omit");const I=s&&"credentials"in r.prototype,Z={...W,signal:G,method:b.toUpperCase(),headers:R.normalize().toJSON(),body:v,duplex:"half",credentials:I?N:void 0};H=s&&new r(h,Z);let C=await(s?X(H,W):X(h,Z));const k=u&&(P==="stream"||P==="response");if(u&&(T||k&&z)){const x={};["status","statusText","headers"].forEach(te=>{x[te]=C[te]});const j=w.toFiniteNumber(C.headers.get("content-length")),[F,$]=T&&Oa(j,$r(Ma(T),!0))||[];C=new n(Da(C.body,Fa,F,()=>{$&&$(),z&&z()}),x)}P=P||"text";let K=await d[w.findKey(d,P)||"text"](C,g);return!k&&z&&z(),await new Promise((x,j)=>{ka(x,j,{data:K,headers:le.from(C.headers),status:C.status,statusText:C.statusText,config:g,request:H})})}catch(I){throw z&&z(),I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)?Object.assign(new B("Network Error",B.ERR_NETWORK,g,H),{cause:I.cause||I}):B.from(I,I&&I.code,g,H)}}},Hh=new Map,za=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,s=[n,o,r];let i=s.length,a=i,l,c,u=Hh;for(;a--;)l=s[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:Vh(t)),u=c;return c};za();const no={http:ph,xhr:Lh,fetch:{get:za}};w.forEach(no,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ua=e=>`- ${e}`,Gh=e=>w.isFunction(e)||e===null||e===!1;function Zh(e,t){e=w.isArray(e)?e:[e];const{length:r}=e;let n,o;const s={};for(let i=0;i<r;i++){n=e[i];let a;if(o=n,!Gh(n)&&(o=no[(a=String(n)).toLowerCase()],o===void 0))throw new B(`Unknown adapter '${a}'`);if(o&&(w.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
|
|
125
|
+
`+i.map(Ua).join(`
|
|
126
|
+
`):" "+Ua(i[0]):"as no adapter specified";throw new B("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const Wa={getAdapter:Zh,adapters:no};function oo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function Va(e){return oo(e),e.headers=le.from(e.headers),e.data=ro.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wa.getAdapter(e.adapter||Ut.adapter,e)(e).then(function(n){return oo(e),n.data=ro.call(e,e.transformResponse,n),n.headers=le.from(n.headers),n},function(n){return Aa(n)||(oo(e),n&&n.response&&(n.response.data=ro.call(e,e.transformResponse,n.response),n.response.headers=le.from(n.response.headers))),Promise.reject(n)})}const Ha="1.13.2",zr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ga={};zr.transitional=function(t,r,n){function o(s,i){return"[Axios v"+Ha+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,a)=>{if(t===!1)throw new B(o(i," has been removed"+(r?" in "+r:"")),B.ERR_DEPRECATED);return r&&!Ga[i]&&(Ga[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,a):!0}},zr.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function qh(e,t,r){if(typeof e!="object")throw new B("options must be an object",B.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new B("option "+s+" must be "+l,B.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new B("Unknown option "+s,B.ERR_BAD_OPTION)}}const Ur={assertOptions:qh,validators:zr},Pe=Ur.validators;let Je=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ca,response:new Ca}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
127
|
+
`+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Xe(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&Ur.assertOptions(n,{silentJSONParsing:Pe.transitional(Pe.boolean),forcedJSONParsing:Pe.transitional(Pe.boolean),clarifyTimeoutError:Pe.transitional(Pe.boolean)},!1),o!=null&&(w.isFunction(o)?r.paramsSerializer={serialize:o}:Ur.assertOptions(o,{encode:Pe.function,serialize:Pe.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ur.assertOptions(r,{baseUrl:Pe.spelling("baseURL"),withXsrfToken:Pe.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&w.merge(s.common,s[r.method]);s&&w.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),r.headers=le.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,d=0,f;if(!l){const g=[Va.bind(this),void 0];for(g.unshift(...a),g.push(...c),f=g.length,u=Promise.resolve(r);d<f;)u=u.then(g[d++],g[d++]);return u}f=a.length;let y=r;for(;d<f;){const g=a[d++],h=a[d++];try{y=g(y)}catch(b){h.call(this,b);break}}try{u=Va.call(this,y)}catch(g){return Promise.reject(g)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Xe(this.defaults,t);const r=Na(t.baseURL,t.url,t.allowAbsoluteUrls);return Ea(r,t.params,t.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(t){Je.prototype[t]=function(r,n){return this.request(Xe(n||{},{method:t,url:r,data:(n||{}).data}))}}),w.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,a){return this.request(Xe(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Je.prototype[t]=r(),Je.prototype[t+"Form"]=r(!0)});let Yh=class lc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{n.subscribe(a),s=a}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,a){n.reason||(n.reason=new yt(s,i,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new lc(function(o){t=o}),cancel:t}}};function Kh(e){return function(r){return e.apply(null,r)}}function Xh(e){return w.isObject(e)&&e.isAxiosError===!0}const so={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(so).forEach(([e,t])=>{so[t]=e});function Za(e){const t=new Je(e),r=la(Je.prototype.request,t);return w.extend(r,Je.prototype,t,{allOwnKeys:!0}),w.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Za(Xe(e,o))},r}const J=Za(Ut);J.Axios=Je,J.CanceledError=yt,J.CancelToken=Yh,J.isCancel=Aa,J.VERSION=Ha,J.toFormData=Fr,J.AxiosError=B,J.Cancel=J.CanceledError,J.all=function(t){return Promise.all(t)},J.spread=Kh,J.isAxiosError=Xh,J.mergeConfig=Xe,J.AxiosHeaders=le,J.formToJSON=e=>Ta(w.isHTMLForm(e)?new FormData(e):e),J.getAdapter=Wa.getAdapter,J.HttpStatusCode=so,J.default=J;const{Axios:Zg,AxiosError:qg,CanceledError:Yg,isCancel:Kg,CancelToken:Xg,VERSION:Jg,all:Qg,Cancel:e0,isAxiosError:t0,spread:r0,toFormData:n0,AxiosHeaders:o0,HttpStatusCode:s0,formToJSON:i0,getAdapter:a0,mergeConfig:c0}=J;function Jh(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))}Array(12).fill(0);let io=1;class Qh{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,s=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:io++,i=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:n}),{...l,...t,id:s,dismissible:a,title:n}):l):this.addToast({title:n,...o,dismissible:a,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,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 s=n!==void 0,i;const a=o.then(async c=>{if(i=["resolve",c],V.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(tg(c)&&!c.ok){s=!1;const d=typeof r.error=="function"?await r.error(`HTTP error! status: ${c.status}`):r.error,f=typeof r.description=="function"?await r.description(`HTTP error! status: ${c.status}`):r.description,g=typeof d=="object"&&!V.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:f,...g})}else if(c instanceof Error){s=!1;const d=typeof r.error=="function"?await r.error(c):r.error,f=typeof r.description=="function"?await r.description(c):r.description,g=typeof d=="object"&&!V.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:f,...g})}else if(r.success!==void 0){s=!1;const d=typeof r.success=="function"?await r.success(c):r.success,f=typeof r.description=="function"?await r.description(c):r.description,g=typeof d=="object"&&!V.isValidElement(d)?d:{message:d};this.create({id:n,type:"success",description:f,...g})}}).catch(async c=>{if(i=["reject",c],r.error!==void 0){s=!1;const u=typeof r.error=="function"?await r.error(c):r.error,d=typeof r.description=="function"?await r.description(c):r.description,y=typeof u=="object"&&!V.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:d,...y})}}).finally(()=>{s&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),l=()=>new Promise((c,u)=>a.then(()=>i[0]==="reject"?u(i[1]):c(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(t,r)=>{const n=(r==null?void 0:r.id)||io++;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 ge=new Qh,eg=(e,t)=>{const r=(t==null?void 0:t.id)||io++;return ge.addToast({title:e,...t,id:r}),r},tg=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",rg=eg,ng=()=>ge.toasts,og=()=>ge.getActiveToasts(),qa=Object.assign(rg,{success:ge.success,info:ge.info,warning:ge.warning,error:ge.error,custom:ge.custom,message:ge.message,promise:ge.promise,dismiss:ge.dismiss,loading:ge.loading},{getHistory:ng,getToasts:og});Jh("[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}@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-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[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][data-expanded=true]::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%)}");const sg=J.create({baseURL:"/api/v1",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json","Content-Type":"application/json"},withCredentials:!0}),ig=(e,t)=>{if(e)return e;if(!t)return"Something went wrong";let r="",n=0;if(Array.isArray(t)){if(t.length===0)return"Request failed";r=String(t[0]),n=t.length-1}else if(typeof t=="object"){const o=Object.keys(t);if(o.length===0)return"Request failed";const s=o[0],i=t[s];r=Array.isArray(i)?i[0]:String(i),n=o.length-1}else r=String(t);return n>0?`${r} (and ${n} other error${n>1?"s":""})`:r},Wr=async(e,t,r={})=>{const{data:n={},params:o={},headers:s={},displayError:i=!0,displaySuccess:a=!1,isMultipart:l=!1,onSuccess:c,onError:u}=r;try{const d={method:e,url:t,params:o,data:n,headers:{...s,...l?{"Content-Type":"multipart/form-data"}:{}}};e==="get"&&(d.params={...o,...n});const f=await sg(d),{status:y,message:g,errors:h,data:b}=f.data||{};if(y&&y!=="success")throw{response:{data:{status:y,message:g,errors:h}}};return a&&g&&qa.success(g),c==null||c(b??null),b??null}catch(d){const f=d.response,y=(f==null?void 0:f.data)||{},g=y.message||null,h=y.errors||null,b=ig(g,h)||d.message||"Request failed";throw i&&qa.error(b),u==null||u(h),{message:b,errors:h,status:f==null?void 0:f.status}}},xe=(e,t)=>Wr("get",e,t),Ue=(e,t)=>Wr("post",e,t),Qe=(e,t)=>Wr("put",e,t),We=(e,t)=>Wr("delete",e,t),ag=un({theme:"light",currency:"USD",features:{reviewsEnabled:!0,wishlistEnabled:!0,productZoom:!1}},{name:"app-config",methods:e=>({toggleTheme:t=>e(r=>{r.theme=t??(r.theme==="light"?"dark":"light")}),toggleFeature:t=>e(r=>{r.features[t]=!r.features[t]})})}),Ya=[{id:1,name:"Wireless Bluetooth Headphones",slug:"wireless-bluetooth-headphones",description:"Premium over-ear headphones with active noise cancellation and 30-hour battery life",price:149.99,discount_type:"percentage",discount_value:15,sale_price:127.49,has_discount:!0,sku:"WBH-001",quantity:45,is_active:!0,brand:{id:1,name:"SoundWave",slug:"soundwave",description:null,logo:"https://picsum.photos/seed/brand1/200/100",is_active:!0,product_count:24,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-11-10T14:20:00.000Z"},categories:[{id:1,parent_id:null,name:"Electronics",slug:"electronics",description:null,children:[],products_count:120,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},{id:5,parent_id:null,name:"Audio",slug:"audio",description:null,children:[],products_count:42,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"}],taxonomies:[{id:1,taxonomy_type_id:1,parent_id:null,name:"Electronics",slug:"electronics",description:"Electronic products and devices",sort_order:0,meta:{featured:!0},is_active:!0,type:{id:1,name:"Categories",slug:"categories",description:"Product categories",is_active:!0,taxonomies_count:0,taxonomies:[],created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},parent:null,children:[],products_count:120,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},{id:10,taxonomy_type_id:2,parent_id:null,name:"Premium",slug:"premium",description:"Premium quality products",sort_order:1,meta:{color:"gold"},is_active:!0,type:{id:2,name:"Tags",slug:"tags",description:"Product tags",is_active:!0,taxonomies_count:0,taxonomies:[],created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},parent:null,children:[],products_count:10,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"}],images:[{id:101,product_id:1,image_url:"https://picsum.photos/seed/product1/400/400",alt_text:"Wireless headphones front view",is_primary:!0,sort_order:0},{id:102,product_id:1,image_url:"https://picsum.photos/seed/product1b/400/400",alt_text:"Wireless headphones side view",is_primary:!1,sort_order:1}],primary_image:{id:101,product_id:1,image_url:"https://picsum.photos/seed/product1/400/400",alt_text:"Wireless headphones front view",is_primary:!0,sort_order:0},created_at:"2024-01-15T10:30:00.000Z",updated_at:"2024-11-10T14:20:00.000Z"},{id:2,name:"Organic Green Tea - 100 Bags",slug:"organic-green-tea-100-bags",description:"Premium organic green tea sourced from high-altitude tea gardens. Rich in antioxidants.",price:24.99,discount_type:null,discount_value:null,sale_price:24.99,has_discount:!1,sku:"TEA-GT-100",quantity:120,is_active:!0,brand:{id:2,name:"Nature's Leaf",slug:"natures-leaf",description:null,logo:"https://picsum.photos/seed/brand2/200/100",is_active:!0,product_count:8,created_at:"2024-02-01T00:00:00.000Z",updated_at:"2024-11-12T11:45:00.000Z"},categories:[{id:10,parent_id:null,name:"Food & Beverages",slug:"food-beverages",description:null,children:[],products_count:50,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},{id:15,parent_id:null,name:"Tea",slug:"tea",description:null,children:[],products_count:12,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"}],taxonomies:[{id:2,taxonomy_type_id:1,parent_id:null,name:"Food & Beverages",slug:"food-beverages",description:"Food and beverage products",sort_order:1,meta:{icon:"utensils"},is_active:!0,type:{id:1,name:"Categories",slug:"categories",description:"Product categories",is_active:!0,taxonomies_count:0,taxonomies:[],created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},parent:null,children:[],products_count:50,created_at:"2024-02-20T09:15:00.000Z",updated_at:"2024-11-12T11:45:00.000Z"}],images:[{id:201,product_id:2,image_url:"https://picsum.photos/seed/product2/400/400",alt_text:"Organic green tea box",is_primary:!0,sort_order:0}],primary_image:{id:201,product_id:2,image_url:"https://picsum.photos/seed/product2/400/400",alt_text:"Organic green tea box",is_primary:!0,sort_order:0},created_at:"2024-02-20T09:15:00.000Z",updated_at:"2024-11-12T11:45:00.000Z"},{id:3,name:"Smart Fitness Watch Pro",slug:"smart-fitness-watch-pro",description:"Track your fitness goals with heart rate monitoring, GPS, and 50+ sport modes",price:299.99,discount_type:"fixed",discount_value:50,sale_price:249.99,has_discount:!0,sku:"SFW-PRO-001",quantity:28,is_active:!0,brand:{id:3,name:"FitTech",slug:"fittech",description:null,logo:"https://picsum.photos/seed/brand3/200/100",is_active:!0,product_count:14,created_at:"2024-03-01T00:00:00.000Z",updated_at:"2024-11-13T16:30:00.000Z"},categories:[{id:1,parent_id:null,name:"Electronics",slug:"electronics",description:null,children:[],products_count:120,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},{id:20,parent_id:null,name:"Wearables",slug:"wearables",description:null,children:[],products_count:30,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"}],taxonomies:[{id:1,taxonomy_type_id:1,parent_id:null,name:"Electronics",slug:"electronics",description:"Electronic products and devices",sort_order:0,meta:{featured:!0},is_active:!0,type:{id:1,name:"Categories",slug:"categories",description:"Product categories",is_active:!0,taxonomies_count:0,taxonomies:[],created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},parent:null,children:[],products_count:120,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"}],images:[{id:301,product_id:3,image_url:"https://picsum.photos/seed/product3/400/400",alt_text:"Smart fitness watch on wrist",is_primary:!0,sort_order:0},{id:302,product_id:3,image_url:"https://picsum.photos/seed/product3b/400/400",alt_text:"Smart fitness watch display",is_primary:!1,sort_order:1}],primary_image:{id:301,product_id:3,image_url:"https://picsum.photos/seed/product3/400/400",alt_text:"Smart fitness watch on wrist",is_primary:!0,sort_order:0},created_at:"2024-03-10T14:00:00.000Z",updated_at:"2024-11-13T16:30:00.000Z"},{id:4,name:"Leather Messenger Bag",slug:"leather-messenger-bag",description:"Handcrafted genuine leather messenger bag with laptop compartment. Perfect for professionals.",price:189.99,discount_type:"percentage",discount_value:20,sale_price:151.99,has_discount:!0,sku:"LMB-BRN-001",quantity:15,is_active:!0,brand:{id:4,name:"Heritage Leather Co.",slug:"heritage-leather-co",description:null,logo:"https://picsum.photos/seed/brand4/200/100",is_active:!0,product_count:6,created_at:"2024-04-01T00:00:00.000Z",updated_at:"2024-11-11T09:10:00.000Z"},categories:[{id:25,parent_id:null,name:"Fashion",slug:"fashion",description:null,children:[],products_count:80,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},{id:30,parent_id:null,name:"Bags",slug:"bags",description:null,children:[],products_count:40,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"}],taxonomies:[],images:[{id:401,product_id:4,image_url:"https://picsum.photos/seed/product4/400/400",alt_text:"Brown leather messenger bag",is_primary:!0,sort_order:0}],primary_image:{id:401,product_id:4,image_url:"https://picsum.photos/seed/product4/400/400",alt_text:"Brown leather messenger bag",is_primary:!0,sort_order:0},created_at:"2024-04-05T11:20:00.000Z",updated_at:"2024-11-11T09:10:00.000Z"},{id:5,name:"Stainless Steel Water Bottle 1L",slug:"stainless-steel-water-bottle-1l",description:"Double-walled insulated water bottle keeps drinks cold for 24hrs, hot for 12hrs",price:34.99,discount_type:null,discount_value:null,sale_price:34.99,has_discount:!1,sku:"WSB-1L-BLK",quantity:200,is_active:!0,brand:{id:5,name:"HydroLife",slug:"hydrolife",description:null,logo:"https://picsum.photos/seed/brand5/200/100",is_active:!0,product_count:18,created_at:"2024-05-01T00:00:00.000Z",updated_at:"2024-11-14T07:30:00.000Z"},categories:[{id:35,parent_id:null,name:"Home & Kitchen",slug:"home-kitchen",description:null,children:[],products_count:200,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},{id:40,parent_id:null,name:"Drinkware",slug:"drinkware",description:null,children:[],products_count:60,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"}],taxonomies:[],images:[{id:501,product_id:5,image_url:"https://picsum.photos/seed/product5/400/400",alt_text:"Black stainless steel water bottle",is_primary:!0,sort_order:0}],primary_image:{id:501,product_id:5,image_url:"https://picsum.photos/seed/product5/400/400",alt_text:"Black stainless steel water bottle",is_primary:!0,sort_order:0},created_at:"2024-05-12T08:45:00.000Z",updated_at:"2024-11-14T07:30:00.000Z"},{id:6,name:"Yoga Mat Premium Plus",slug:"yoga-mat-premium-plus",description:"Extra thick 8mm yoga mat with carrying strap. Non-slip surface for all yoga styles.",price:49.99,discount_type:"percentage",discount_value:25,sale_price:37.49,has_discount:!0,sku:"YM-PP-PRP",quantity:75,is_active:!0,brand:{id:6,name:"ZenFit",slug:"zenfit",description:null,logo:"https://picsum.photos/seed/brand6/200/100",is_active:!0,product_count:9,created_at:"2024-06-01T00:00:00.000Z",updated_at:"2024-11-09T15:20:00.000Z"},categories:[{id:45,parent_id:null,name:"Sports & Fitness",slug:"sports-fitness",description:null,children:[],products_count:70,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"},{id:50,parent_id:null,name:"Yoga",slug:"yoga",description:null,children:[],products_count:18,created_at:"2024-01-01T00:00:00.000Z",updated_at:"2024-01-01T00:00:00.000Z"}],taxonomies:[],images:[{id:601,product_id:6,image_url:"https://picsum.photos/seed/product6/400/400",alt_text:"Purple yoga mat rolled",is_primary:!0,sort_order:0}],primary_image:{id:601,product_id:6,image_url:"https://picsum.photos/seed/product6/400/400",alt_text:"Purple yoga mat rolled",is_primary:!0,sort_order:0},created_at:"2024-06-18T13:00:00.000Z",updated_at:"2024-11-09T15:20:00.000Z"}],cg=tt((e,t)=>({products:[],total:0,loading:!1,searchQuery:"",filters:{},sortOrder:"asc",sortBy:"price",viewMode:"card",page:1,pageSize:8,setSearchQuery:r=>{e({searchQuery:r,page:1}),t().fetchProducts()},setFilters:r=>{e({filters:r,page:1}),t().fetchProducts()},setSortOrder:r=>{e({sortOrder:r}),t().fetchProducts()},setSortBy:r=>{e({sortBy:r}),t().fetchProducts()},setViewMode:r=>e({viewMode:r}),setPage:r=>{e({page:r}),t().fetchProducts()},fetchProducts:async()=>{e({loading:!0});const{searchQuery:r,filters:n,sortOrder:o,sortBy:s,page:i,pageSize:a}=t();setTimeout(()=>{let l=Ya.slice();if(r&&typeof r=="string"){const u=r.toLowerCase();l=l.filter(d=>String(d.name??"").toLowerCase().includes(u))}if(n!=null&&n.category&&Array.isArray(n.category)&&n.category.length>0&&(l=l.filter(u=>Array.isArray(u.categories)&&u.categories.some(d=>n.category.includes(d.slug)))),n!=null&&n.price_custom&&typeof n.price_custom=="object"){const{min:u=-1/0,max:d=1/0}=n.price_custom;l=l.filter(f=>{const y=typeof f.sale_price=="number"?f.sale_price:typeof f.price=="number"?f.price:0;return y>=u&&y<=d})}const c=(u,d)=>{if(!d)return;if(d==="price")return typeof u.sale_price=="number"?u.sale_price:typeof u.price=="number"?u.price:0;const f=d.split(".");let y=u;for(const g of f){if(y==null)return;y=y[g]}return y};s?l.sort((u,d)=>{const f=c(u,s),y=c(d,s);if(f==null&&y==null)return 0;if(f==null)return o==="asc"?1:-1;if(y==null)return o==="asc"?-1:1;if(typeof f=="number"&&typeof y=="number")return o==="asc"?f-y:y-f;if(f instanceof Date||y instanceof Date){const b=f instanceof Date?f.getTime():Date.parse(String(f)),v=y instanceof Date?y.getTime():Date.parse(String(y));return o==="asc"?b-v:v-b}if(typeof f=="boolean"&&typeof y=="boolean"){const b=f?1:0,v=y?1:0;return o==="asc"?b-v:v-b}const g=String(f).toLowerCase(),h=String(y).toLowerCase();return o==="asc"?g.localeCompare(h):h.localeCompare(g)}):l.sort((u,d)=>{const f=typeof u.sale_price=="number"?u.sale_price:typeof u.price=="number"?u.price:0,y=typeof d.sale_price=="number"?d.sale_price:typeof d.price=="number"?d.price:0;return o==="asc"?f-y:y-f}),e({products:l,total:l.length,loading:!1})},500)}})),Vr=tt((e,t)=>({wishlist:[],activeProductId:null,toggleWishlist:r=>e(n=>({wishlist:n.wishlist.includes(r)?n.wishlist.filter(s=>s!==r):[...n.wishlist,r]})),isWishlisted:r=>t().wishlist.includes(r),viewDetails:r=>e({activeProductId:r}),closeDetails:()=>e({activeProductId:null})})),ao=tt((e,t)=>({cart:{},addToCart:(r,n=1)=>e(o=>{const s=o.cart[r]??0;return{cart:{...o.cart,[r]:s+n}}}),removeFromCart:r=>e(n=>{const o={...n.cart};return delete o[r],{cart:o}}),getCartQuantity:r=>t().cart[r]??0})),Ka=tt(e=>({selectedCategory:null,setSelectedCategory:t=>e({selectedCategory:t??null})})),co={$:"USD","€":"EUR","£":"GBP","¥":"JPY","₹":"INR","₽":"RUB","₩":"KRW","₪":"ILS","฿":"THB","₫":"VND","₺":"TRY","₱":"PHP",Fr:"CHF"};function lg(e){if(!e)return"USD";if(/^[A-Z]{3}$/.test(e))return e;if(co&&co[e])return co[e];const t=String(e).replace(/[^A-Za-z]/g,"").toUpperCase();return/^[A-Z]{3}$/.test(t)?t:"USD"}function ug(e){const t=e.split(" ");return t.length===1?t[0].charAt(0).toUpperCase()+t[0].charAt(1).toUpperCase():t[0].charAt(0).toUpperCase()+t[1].charAt(0).toUpperCase()}function Xa({sortOrder:e,sortBy:t,sortOptions:r=[{label:"Name",value:"name"},{label:"Price",value:"price"}],onSortChange:n,onSortByChange:o,labels:s={orderTitle:"Order",orderButtonLabel:void 0,sortByTitle:"Sort By"},className:i={order:"w-full flex items-center justify-between bg-white rounded-lg shadow-sm p-3 mb-4",orderDropdown:"relative",orderButton:"px-3 py-2 border rounded-lg flex items-center gap-2 hover:bg-gray-100 transition",dropdownContainer:"absolute left-0 top-full mt-2 bg-white shadow-lg rounded-lg border p-2 w-40 z-50",sortByHeader:"text-xs mb-1 font-semibold text-gray-500",option:"p-2 rounded cursor-pointer hover:bg-gray-100",optionSelected:"bg-gray-100",orderHeader:"mt-2 text-xs mb-1 font-semibold text-gray-500",orderOption:"p-2 rounded cursor-pointer hover:bg-gray-100"}}){var u;const[a,l]=V.useState(!1),c=((u=r.find(d=>d.value===t))==null?void 0:u.label)??"Default";return m.jsx("div",{className:i.order,children:m.jsxs("div",{className:i.orderDropdown,children:[m.jsx("button",{className:i.orderButton,onClick:()=>l(!a),children:s.orderButtonLabel??`Sort: ${c} · ${e==="asc"?"Asc":"Desc"}`}),a&&m.jsxs("div",{className:i.dropdownContainer,children:[m.jsx("div",{className:i.sortByHeader,children:s.sortByTitle}),r.map(d=>{const f=t===d.value;return m.jsx("div",{className:`${i.option} ${f?i.optionSelected:""}`,onClick:()=>{o(d.value),l(!1)},children:d.label},d.value)}),m.jsx("div",{className:i.orderHeader,children:s.orderTitle}),m.jsx("div",{className:`${i.orderOption} ${e==="asc"?i.optionSelected:""}`,onClick:()=>n("asc"),children:"Ascending"}),m.jsx("div",{className:`${i.orderOption} ${e==="desc"?i.optionSelected:""}`,onClick:()=>n("desc"),children:"Descending"})]})]})})}function Ja({mode:e,onChange:t,availableModes:r=["card","list","table"],className:n={container:"flex items-center gap-2 bg-white p-2 rounded-lg shadow-sm",button:"p-2 rounded-md border transition",selectedButton:"bg-gray-200 border-gray-400",unselectedButton:"border-gray-300",cardButton:"",listButton:"",tableButton:"",iconSize:16}}){const o=(s,i="")=>`${n.button} ${s?n.selectedButton:n.unselectedButton} ${i}`.trim();return m.jsxs("div",{className:n.container,children:[r.includes("card")&&m.jsx("button",{className:o(e==="card",n.cardButton),onClick:()=>t("card"),children:m.jsx(Ll,{size:n.iconSize})}),r.includes("list")&&m.jsx("button",{className:o(e==="list",n.listButton),onClick:()=>t("list"),children:m.jsx($l,{size:n.iconSize})}),r.includes("table")&&m.jsx("button",{className:o(e==="table",n.tableButton),onClick:()=>t("table"),children:m.jsx(Wl,{size:n.iconSize})})]})}function dg({sortProps:e,viewModeProps:t,sortComponent:r,viewModeComponent:n,extra:o=[],direction:s="row"}){return m.jsxs("div",{className:`
|
|
128
|
+
flex gap-3 w-full
|
|
129
|
+
${s==="row"?"flex-row items-center":"flex-col"}
|
|
130
|
+
`,children:[r||(e?m.jsx(Xa,{...e}):null),n||(t?m.jsx(Ja,{...t}):null),o.map((i,a)=>m.jsx("div",{children:i},a))]})}function fg({page:e,total:t,pageSize:r,onChange:n,show:o={arrows:!0,pages:!0,summary:!0,pageSize:!1},customRender:s={renderPrev:void 0,renderNext:void 0,renderPage:void 0,renderPageSize:void 0},className:i={container:"flex items-center justify-center gap-2 p-3",summary:"text-sm text-gray-600 mr-3",page:"px-3 py-1 border rounded",activePage:"bg-gray-200 font-semibold",prevNext:"px-3 py-1 border rounded disabled:opacity-40",pageSizeSelect:"border rounded px-2 py-1 text-sm mr-3",pageButton:"",disabled:"opacity-40"}}){const a=Math.max(0,Math.ceil(t/r)),l=(c,u)=>m.jsx("button",{onClick:()=>n(c),className:`${i.page} ${u?i.activePage:""} ${i.pageButton}`.trim(),"aria-current":u?"page":void 0,children:c},c);return m.jsxs("div",{className:i.container,children:[(o==null?void 0:o.summary)&&m.jsxs("span",{className:i.summary,children:["Showing ",(e-1)*r+1,"–",Math.min(e*r,t)," of ",t]}),(o==null?void 0:o.pageSize)&&(s.renderPageSize||m.jsxs("select",{className:i.pageSizeSelect,"aria-label":"Select page size",onChange:()=>{},children:[m.jsx("option",{children:"10"}),m.jsx("option",{children:"25"}),m.jsx("option",{children:"50"}),m.jsx("option",{children:"100"})]})),(o==null?void 0:o.arrows)&&(s.renderPrev||m.jsx("button",{className:`${i.prevNext} ${e===1?i.disabled:""}`.trim(),disabled:e===1,onClick:()=>n(Math.max(1,e-1)),"aria-label":"Previous page",children:"Prev"})),(o==null?void 0:o.pages)&&Array.from({length:a},(c,u)=>{const d=u+1,f=d===e;return s.renderPage?s.renderPage(d,f):l(d,f)}),(o==null?void 0:o.arrows)&&(s.renderNext||m.jsx("button",{className:`${i.prevNext} ${e===a?i.disabled:""}`.trim(),disabled:e===a,onClick:()=>n(Math.min(a||1,e+1)),"aria-label":"Next page",children:"Next"}))]})}function pg({controls:e,list:t,pagination:r,className:n}){return m.jsxs("div",{className:`listing-container flex flex-col gap-4 ${n||""}`,children:[e&&m.jsx("div",{className:"listing-controls",children:e}),m.jsx("div",{className:"listing-items",children:t}),r&&m.jsx("div",{className:"listing-pagination",children:r})]})}function Qa({layout:e="compact",ImageComponent:t,DetailsComponent:r,className:n={container:"",compactWrapper:"",detailedWrapper:"",imageContainer:"",detailsContainer:""}}){const o=n.container??"product-card-layout rounded-xl border border-gray-200 bg-white shadow-sm overflow-hidden",s=n.compactWrapper??"flex flex-col",i=n.detailedWrapper??"flex",a=n.imageContainer??(e==="compact"?"image-container w-full":"image-container w-1/3"),l=n.detailsContainer??(e==="compact"?"details-container p-3":"details-container w-2/3 p-4");return m.jsx("div",{className:o,children:e==="compact"?m.jsxs("div",{className:s,children:[m.jsx("div",{className:a,children:t}),m.jsx("div",{className:l,children:r})]}):m.jsxs("div",{className:i,children:[m.jsx("div",{className:a,children:t}),m.jsx("div",{className:l,children:r})]})})}function ec({imageUrl:e,imageAlt:t="Product image",width:r="100%",height:n=280,background:o,className:s={container:"relative rounded-lg overflow-hidden bg-gray-100",image:"absolute inset-0 bg-center bg-cover z-0",overlay:"absolute inset-0 pointer-events-none z-10",corner:"p-2 pointer-events-auto",center:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 pointer-events-auto",background:"absolute inset-0 z-0",backgroundWrapper:"absolute inset-0 overflow-hidden z-0"},topLeft:i,topRight:a,bottomLeft:l,bottomRight:c,center:u,topPlaceholder:d,bottomPlaceholder:f,placeholderClassName:y={top:"absolute left-0 right-0 top-2 px-2 flex items-center",bottom:"absolute left-0 right-0 bottom-2 px-2 flex items-center"}}){const g="linear-gradient(135deg,#f3f4f6 0%, #e5e7eb 50%, #f8fafc 100%)",h={width:typeof r=="number"?`${r}px`:String(r),height:typeof n=="number"?`${n}px`:String(n)},b=()=>!(!!i||!!a)&&d?m.jsx("div",{className:"w-full flex justify-center",children:d}):m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"flex-1 flex items-start",children:i?m.jsx("div",{className:s.corner,children:i}):null}),m.jsx("div",{className:"flex-1 flex items-end justify-end",children:a?m.jsx("div",{className:s.corner,children:a}):null})]}),v=()=>!(!!l||!!c)&&f?m.jsx("div",{className:"w-full flex justify-center",children:f}):m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"flex-1 flex items-start",children:l?m.jsx("div",{className:s.corner,children:l}):null}),m.jsx("div",{className:"flex-1 flex items-end justify-end",children:c?m.jsx("div",{className:s.corner,children:c}):null})]});return m.jsxs("div",{className:s.container,style:h,children:[m.jsx("div",{className:s.backgroundWrapper,"aria-hidden":!0,children:o?m.jsx("div",{className:s.background,children:o}):m.jsx("div",{className:s.image,style:{backgroundImage:e?`url(${e})`:g},role:"img","aria-label":t})}),m.jsxs("div",{className:s.overlay,children:[m.jsx("div",{className:y.top,children:b()}),m.jsx("div",{className:y.bottom,children:v()}),u&&m.jsx("div",{className:s.center,children:u})]})]})}function tc({isWishlisted:e=!1,onToggle:t,icon:r,activeIcon:n,ariaLabel:o="Add to wishlist",size:s=22,className:i={button:"",icon:""},animationDuration:a=200}){const l=()=>{t==null||t(!e)},c=m.jsx(cs,{size:s,className:`transition-all ${i==null?void 0:i.icon}`}),u=m.jsx(cs,{size:s,className:`transition-all ${i==null?void 0:i.icon}`,fill:"currentColor"});return m.jsx("button",{"aria-label":o,onClick:l,className:`group transition-all duration-${a} ${i==null?void 0:i.button}`,children:e?n||u:r||c})}function rc({discount:e=25,discountType:t="fixed",currency:r="$",fractionDigits:n=2,renderLabel:o,className:s="bg-black text-white inline-flex items-center px-2 py-1 text-xs font-semibold rounded-md"}){if(!isFinite(Number(e))||e<=0)return null;const i=c=>{const u=lg(r);return new Intl.NumberFormat(void 0,{style:"currency",currency:u,maximumFractionDigits:n}).format(c)},l=o?o(e,t):t==="fixed"?`${i(e)} OFF`:`${e}% OFF`;return m.jsx("span",{className:` ${s}`.trim(),role:"status","aria-label":typeof l=="string"?l:"discount",children:l})}function mg({onClick:e,label:t="View Details",disabled:r=!1,className:n="inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium border border-gray-300 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-200 transition"}){return m.jsx("button",{onClick:e,disabled:r,className:`${r?"opacity-50 cursor-not-allowed":""} ${n}`,children:t})}function nc({brand:e="test brand",title:t="test title",show:r={brand:!0,title:!0},brandPlacement:n="before",className:o={separator:"px-2 opacity-60"}}){const s=r.brand&&e?m.jsx("span",{className:o.brand,children:e}):null,i=r.title&&t?m.jsx("span",{className:o.title,children:t}):null,a=()=>n==="before"?m.jsxs("div",{className:_e("flex items-center flex-wrap",o.wrapper),children:[s,s&&i&&m.jsx("span",{className:o.separator,children:"-"}),i]}):n==="after"?m.jsxs("div",{className:`flex items-center flex-wrap ${o.wrapper}`,children:[i,s&&i&&m.jsx("span",{className:o.separator,children:"-"}),s]}):n==="top"?m.jsxs("div",{className:`${o.wrapper} flex flex-col`,children:[s,i]}):n==="bottom"?m.jsxs("div",{className:`${o.wrapper} flex flex-col`,children:[i,s]}):m.jsx("div",{className:`${o.wrapper}`,children:i});return m.jsx(m.Fragment,{children:a()})}const hg=e=>e||"USD",oc=({price:e=null,salePrice:t=null,discountType:r=null,discountValue:n=null,showOriginalPrice:o=!0,showDiscountPercentage:s=!0,currency:i="USD",fractionDigits:a=2,className:l={wrapper:"flex items-center gap-2 flex-wrap",price:"text-lg font-semibold",originalPrice:"line-through text-gray-500",discount:"text-red-600 font-semibold"}})=>{const c=typeof e=="number"?e:null,u=typeof t=="number"?t:c,d=c!==null&&u!==null&&c>u;let f=0;r==="percentage"&&n?f=n:r==="fixed"&&n&&c?f=Math.round(n/c*100):d&&c&&(f=Math.round((c-u)/c*100));const y=g=>{const h=hg(i);return new Intl.NumberFormat(void 0,{style:"currency",currency:h,maximumFractionDigits:a}).format(g)};return m.jsxs("div",{className:l.wrapper,children:[m.jsx("span",{className:l.price,children:u!==null?y(u):"---"}),o&&d&&c!==null&&m.jsx("span",{className:l.originalPrice,children:y(c)}),s&&d&&f>0&&m.jsxs("span",{className:l.discount,children:[f,"% OFF"]})]})};function sc({onAddToCart:e,iconOnly:t=!1,showIconWithText:r=!0,icon:n=m.jsx(zl,{size:20}),className:o="flex-1 bg-black hover:bg-gray-800 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200 disabled:bg-gray-300 disabled:cursor-not-allowed disabled:opacity-50 flex items-center justify-center gap-2",labels:s={addToCartText:"Add to Cart",inCartText:"In Cart"},state:i={isOutOfStock:!1,isInCart:!1}}){const a=i.isOutOfStock,l=()=>{!a&&e&&e()};return m.jsx("button",{className:o,onClick:l,disabled:a,"aria-label":t?i.isInCart?s.inCartText:s.addToCartText:void 0,title:a?"Out of stock":i.isInCart?s.inCartText:s.addToCartText,children:t?n:r?m.jsxs(m.Fragment,{children:[n,m.jsx("span",{children:i.isInCart?s.inCartText:s.addToCartText})]}):m.jsx("span",{children:i.isInCart?s.inCartText:s.addToCartText})})}function ic({categories:e=[{id:1,name:"test1"},{id:2,name:"test2"},{id:3,name:"test3"}],maxCategories:t=1,showRemainingCount:r=!0,className:n={position:"",category:"bg-black text-white px-2 py-1 text-xs font-semibold rounded-full shadow",remaining:"bg-black text-white px-2 py-1 text-xs font-semibold rounded-full",wrapper:"flex flex-wrap gap-2"},onCategoryClick:o=()=>console.log("clicked")}){if(!e||e.length===0)return null;const s=e.slice(0,t),i=e.length-t;return m.jsx("div",{className:`absolute z-10 ${n.position}`,children:m.jsxs("div",{className:n.wrapper,children:[s.map(a=>{const l=!!o;return m.jsx("span",{className:`inline-block cursor-${l?"pointer":"default"} ${n.category}`,onClick:()=>l&&(o==null?void 0:o(a)),children:a.name},a.id)}),r&&i>0&&m.jsxs("span",{className:`inline-block ${n.remaining}`,children:["+",i]})]})})}function ac({product:e,layout:t="compact",showWishlist:r=!0,showDiscount:n=!0,showViewDetails:o=!0,showBrand:s=!0,showPrice:i=!0,containerClassName:a}){var P,R;const l=e.primary_image||((P=e.images)==null?void 0:P[0]),c=l==null?void 0:l.image_url,u=(l==null?void 0:l.alt_text)??e.name,d=Vr(N=>N.wishlist.includes(e.id)),f=Vr(N=>N.toggleWishlist),y=ao(N=>N.addToCart),g=ao(N=>N.getCartQuantity);Vr(N=>N.viewDetails);const h=Ka(N=>N.setSelectedCategory),b=(g(e.id)??0)>0,v=r?m.jsx(tc,{isWishlisted:d,onToggle:()=>{f(e.id),console.log("Wishlist changed globally!")},size:20,ariaLabel:"Wishlist"}):null,S=n&&e.has_discount?m.jsx(rc,{discount:e.discount_value??void 0,discountType:e.discount_type==="fixed"?"fixed":e.discount_type==="percentage"?"percentage":void 0}):null,_=s&&e.brand?m.jsx(nc,{brand:(R=e.brand)==null?void 0:R.name,title:e.name,show:{brand:!0}}):null,E=i?m.jsx(oc,{salePrice:e.sale_price??e.price??0,price:e.price??0,discountType:e.discount_type,discountValue:e.discount_value??null,currency:"USD",showOriginalPrice:!1,showDiscountPercentage:!1}):null,T=m.jsx(ec,{imageUrl:c,imageAlt:u,topLeft:v,topRight:S,bottomPlaceholder:m.jsx(ic,{categories:e.categories||[],onCategoryClick:N=>h(N),className:{position:"bottom-3 left-3"}})}),A=m.jsxs("div",{className:"p-3",children:[_,E,m.jsx(sc,{onAddToCart:()=>y(e.id),labels:{inCartText:"In Cart"},state:{isInCart:b}})]});return m.jsx(Qa,{layout:t,ImageComponent:T,DetailsComponent:A,className:{container:a}})}function gg(){return m.jsx("div",{className:"p-4",children:m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:Ya.map(e=>m.jsx(ac,{product:e,layout:"compact",showWishlist:!0,showDiscount:!0,showViewDetails:!0,showBrand:!0,showPrice:!0,imageHeight:320},e.id))})})}const yg={getBrands(e={},t={}){return xe("/brands",{params:e,...t})},getBrandById(e,t={}){if(!e)throw new Error("Brand ID must be provided.");return xe(`/brands/${e}`,t)},createBrand(e,t={}){return Ue("/brands",{data:e,displaySuccess:!0,...t})},updateBrand(e,t,r={}){if(!e)throw new Error("Brand ID must be provided for an update operation.");return Qe(`/brands/${e}`,{data:t,displaySuccess:!0,...r})},deleteBrand(e,t={}){if(!e)throw new Error("Brand ID must be provided for a delete operation.");return We(`/brands/${e}`,{displaySuccess:!0,...t})}},bg={getCategories(e={},t={}){return xe("/categories",{params:e,...t})},getCategoryById(e,t={}){if(!e)throw new Error("Category ID must be provided.");return xe(`/categories/${e}`,t)},createCategory(e,t={}){return Ue("/categories",{data:e,displaySuccess:!0,...t})},updateCategory(e,t,r={}){if(!e)throw new Error("Category ID must be provided for an update operation.");return Qe(`/categories/${e}`,{data:t,displaySuccess:!0,...r})},deleteCategory(e,t={}){if(!e)throw new Error("Category ID must be provided for a delete operation.");return We(`/categories/${e}`,{displaySuccess:!0,...t})}},vg={uploadImage(e,t={}){const r=new FormData;return r.append("image",e),Ue("/products/images",{data:r,displaySuccess:!0,headers:{"Content-Type":"multipart/form-data"},...t})},deleteImage(e,t={}){if(!e)throw new Error("Image ID must be provided for a delete operation.");return We("/products/images",{data:{image_id:e},displaySuccess:!0,...t})}},wg={getProducts(e={},t={}){return xe("/products",{params:e,...t})},getProductById(e,t={}){if(!e)throw new Error("Product ID must be provided.");return xe(`/products/${e}`,t)},createProduct(e,t={}){return Ue("/products",{data:e,displaySuccess:!0,...t})},updateProduct(e,t,r={}){if(!e)throw new Error("Product ID must be provided for an update operation.");return Qe(`/products/${e}`,{data:t,displaySuccess:!0,...r})},deleteProduct(e,t={}){if(!e)throw new Error("Product ID must be provided for a delete operation.");return We(`/products/${e}`,{displaySuccess:!0,...t})}},xg={attachTaxonomies(e,t,r={}){if(!e)throw new Error("Product ID must be provided for attaching taxonomies.");if(!t.taxonomy_ids||t.taxonomy_ids.length===0)throw new Error("At least one taxonomy ID must be provided.");return Ue(`/products/${e}/taxonomies/attach`,{data:t,displaySuccess:!0,...r})},syncTaxonomies(e,t,r={}){if(!e)throw new Error("Product ID must be provided for syncing taxonomies.");if(!Array.isArray(t.taxonomy_ids))throw new Error("Taxonomy IDs must be provided as an array.");return Qe(`/products/${e}/taxonomies/sync`,{data:t,displaySuccess:!0,...r})},detachTaxonomy(e,t,r={}){if(!e)throw new Error("Product ID must be provided for detaching a taxonomy.");if(!t)throw new Error("Taxonomy ID must be provided for detaching.");return We(`/products/${e}/taxonomies/${t}`,{displaySuccess:!0,...r})}},_g={getTaxonomies(e={},t={}){return xe("/taxonomies",{params:e,...t})},getTaxonomyById(e,t={}){if(!e)throw new Error("Taxonomy ID must be provided.");return xe(`/taxonomies/${e}`,t)},createTaxonomy(e,t={}){return Ue("/taxonomies",{data:e,displaySuccess:!0,...t})},updateTaxonomy(e,t,r={}){if(!e)throw new Error("Taxonomy ID must be provided for an update operation.");return Qe(`/taxonomies/${e}`,{data:t,displaySuccess:!0,...r})},deleteTaxonomy(e,t={}){if(!e)throw new Error("Taxonomy ID must be provided for a delete operation.");return We(`/taxonomies/${e}`,{displaySuccess:!0,...t})}},Sg={getTaxonomyTypes(e={},t={}){return xe("/taxonomy-types",{params:e,...t})},getTaxonomyTypeById(e,t={}){if(!e)throw new Error("Taxonomy type ID must be provided.");return xe(`/taxonomy-types/${e}`,t)},createTaxonomyType(e,t={}){return Ue("/taxonomy-types",{data:e,displaySuccess:!0,...t})},updateTaxonomyType(e,t,r={}){if(!e)throw new Error("Taxonomy type ID must be provided for an update operation.");return Qe(`/taxonomy-types/${e}`,{data:t,displaySuccess:!0,...r})},deleteTaxonomyType(e,t={}){if(!e)throw new Error("Taxonomy type ID must be provided for a delete operation.");return We(`/taxonomy-types/${e}`,{displaySuccess:!0,...t})}};D.AddToCart=sc,D.Arkenstone=Nc,D.AvatarFallbackLetter=ug,D.BrandTitle=nc,D.Breadcrumbs=Em,D.CategoriesBadgeList=ic,D.DiscountBadge=rc,D.Input=Cm,D.Listing=pg,D.ListingControl=dg,D.ModeToggle=Pm,D.Pagination=fg,D.PriceCard=oc,D.ProductCard=ac,D.ProductCardLayout=Qa,D.ProductCardListing=gg,D.ProductImageLayout=ec,D.SortBar=Xa,D.ThemeProvider=Tm,D.ViewDetailsButton=mg,D.ViewModeSwitcher=Ja,D.WishlistButton=tc,D.apiDelete=We,D.apiGet=xe,D.apiPost=Ue,D.apiPut=Qe,D.brandService=yg,D.categoryService=bg,D.createGenericStore=un,D.productImageService=vg,D.productService=wg,D.productTaxonomyService=xg,D.taxonomyService=_g,D.taxonomyTypeService=Sg,D.useACLStore=Io,D.useCartStore=ao,D.useCatalogStore=cg,D.useCategoryStore=Ka,D.useConfigStore=ag,D.useProductCardStore=Vr,D.useTheme=ca,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|