@mui-toolpad-extended-tuni/core 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -0
- package/dist/Dialogs/DialogOpener.d.ts +12 -0
- package/dist/Dialogs/Dialogs.d.ts +6 -0
- package/dist/Dialogs/ExtendedDialog.d.ts +8 -0
- package/dist/Dialogs/FormDialog.d.ts +15 -0
- package/dist/Dialogs/dialogRegistry.d.ts +5 -0
- package/dist/Events/EventBus.d.ts +34 -0
- package/dist/Events/UserBus.d.ts +110 -0
- package/dist/Events/hooks/useCurrentUser.d.ts +11 -0
- package/dist/Events/hooks/useUserActions.d.ts +15 -0
- package/dist/Events/hooks/useUserPreferences.d.ts +22 -0
- package/dist/Events/index.d.ts +10 -0
- package/dist/Events/types.d.ts +16 -0
- package/dist/Events/userTypes.d.ts +79 -0
- package/dist/Navigation/NavigationBuilder.d.ts +7 -0
- package/dist/Navigation/NavigationFilter.d.ts +1 -0
- package/dist/Navigation/NavigationRegistry.d.ts +116 -0
- package/dist/Navigation/hooks/useMicroserviceNavigation.d.ts +4 -0
- package/dist/Navigation/hooks/useMicroserviceRoutes.d.ts +6 -0
- package/dist/Navigation/hooks/useNavigationSectionManager.d.ts +23 -0
- package/dist/Navigation/hooks/useSyncNavigationFilters.d.ts +1 -0
- package/dist/Navigation/store/microserviceUtils.d.ts +9 -0
- package/dist/Navigation/store/navigationCalculator.d.ts +11 -0
- package/dist/Navigation/store/sectionManager.d.ts +9 -0
- package/dist/Navigation/store/types.d.ts +90 -0
- package/dist/Navigation/store/useNavigationFilterStore.d.ts +6 -0
- package/dist/Navigation/store/useNavigationStore.d.ts +50 -0
- package/dist/Notifications/Notifications.d.ts +3 -0
- package/dist/Notifications/store/useNotificationsStore.d.ts +22 -0
- package/dist/common/components/index.d.ts +2 -0
- package/dist/common/components/layout/GridLayout/GridItem.d.ts +17 -0
- package/dist/common/components/layout/GridLayout/GridItemContext.d.ts +26 -0
- package/dist/common/components/layout/GridLayout/ResponsiveGridLayout.d.ts +16 -0
- package/dist/common/components/layout/GridLayout/Tools/BreakpointIndicator.d.ts +8 -0
- package/dist/common/components/layout/GridLayout/Tools/EditModeToggler.d.ts +7 -0
- package/dist/common/components/layout/GridLayout/hooks/useGridLayoutManagement.d.ts +27 -0
- package/dist/common/components/layout/GridLayout/index.d.ts +12 -0
- package/dist/common/components/layout/GridLayout/layoutStorageUtils.d.ts +52 -0
- package/dist/common/components/layout/GridLayout/layoutUtils.d.ts +78 -0
- package/dist/common/components/layout/GridLayout/store/usePanelStore.d.ts +27 -0
- package/dist/common/components/layout/GridLayout/useGridLayout.d.ts +11 -0
- package/dist/common/components/layout/index.d.ts +1 -0
- package/dist/common/components/ui/CenteredHeading/CenteredHeading.d.ts +7 -0
- package/dist/common/components/ui/CollapsingButtons/CollapsingButtons.d.ts +11 -0
- package/dist/common/components/ui/CompoundPanel/CompoundPanel.d.ts +86 -0
- package/dist/common/components/ui/LoadingScreen/LoadingScreen.d.ts +2 -0
- package/dist/common/components/ui/Panel/Expandable/Expandable.d.ts +4 -0
- package/dist/common/components/ui/Panel/Expandable/context/ExpandableContextProvider.d.ts +10 -0
- package/dist/common/components/ui/Panel/Expandable/hooks/useCollapseHandler.d.ts +2 -0
- package/dist/common/components/ui/Panel/Expandable/hooks/useExpandable.d.ts +17 -0
- package/dist/common/components/ui/Panel/Expandable/hooks/useExpansionAnimation.d.ts +5 -0
- package/dist/common/components/ui/Panel/Expandable/hooks/useInitialSetup.d.ts +6 -0
- package/dist/common/components/ui/Panel/Expandable/hooks/useResizeHandler.d.ts +1 -0
- package/dist/common/components/ui/Panel/Expandable/store/useExpandablePanelStore.d.ts +7 -0
- package/dist/common/components/ui/Panel/Main/Context/PanelContextProvider.d.ts +50 -0
- package/dist/common/components/ui/Panel/Main/Panel.d.ts +3 -0
- package/dist/common/components/ui/Panel/Main/hooks/useDimensionManagement.d.ts +13 -0
- package/dist/common/components/ui/Panel/Main/hooks/usePersistentDimensions.d.ts +19 -0
- package/dist/common/components/ui/Panel/Main/tools/BlurOverlay.d.ts +6 -0
- package/dist/common/components/ui/Panel/Main/tools/ToolsContainer.d.ts +11 -0
- package/dist/common/components/ui/Panel/Movable/DraggableItem.d.ts +6 -0
- package/dist/common/components/ui/Panel/Movable/MovablePanel.d.ts +9 -0
- package/dist/common/components/ui/Panel/Movable/MoveToggler.d.ts +3 -0
- package/dist/common/components/ui/Panel/Movable/context/MovableContextProvider.d.ts +10 -0
- package/dist/common/components/ui/Panel/Movable/hooks/usePersistentOrder.d.ts +3 -0
- package/dist/common/components/ui/Panel/Resizable/Context/ResizableContextProvider.d.ts +27 -0
- package/dist/common/components/ui/Panel/Resizable/Hooks/useResizeHandlers.d.ts +26 -0
- package/dist/common/components/ui/Panel/Resizable/Hooks/useResponsiveResize.d.ts +14 -0
- package/dist/common/components/ui/Panel/Resizable/Resizable.d.ts +3 -0
- package/dist/common/components/ui/Panel/Resizable/ResizeHandlers.d.ts +7 -0
- package/dist/common/components/ui/Panel/Resizable/ResizeIndicator.d.ts +9 -0
- package/dist/common/components/ui/Panel/Scrollable/InternalScrolling.d.ts +11 -0
- package/dist/common/components/ui/Panel/Scrollable/PaginationDots.d.ts +13 -0
- package/dist/common/components/ui/Panel/Scrollable/Scrollable.d.ts +5 -0
- package/dist/common/components/ui/Panel/Scrollable/context/ScrollerContextProvider.d.ts +15 -0
- package/dist/common/components/ui/Panel/Scrollable/hooks/useScrollControls.d.ts +28 -0
- package/dist/common/components/ui/Panel/TBR/PanelContent.d.ts +24 -0
- package/dist/common/components/ui/Panel/TBR/ResizablePanel.d.ts +3 -0
- package/dist/common/components/ui/Panel/TBR/ResizeHandlers.d.ts +10 -0
- package/dist/common/components/ui/Panel/TBR/ResizeIndicator.d.ts +10 -0
- package/dist/common/components/ui/Panel/TBR/useResizablePanel.d.ts +32 -0
- package/dist/common/components/ui/Panel/types.d.ts +9 -0
- package/dist/common/components/ui/Scroller/PaginationDots.d.ts +13 -0
- package/dist/common/components/ui/Scroller/Scroller.d.ts +14 -0
- package/dist/common/components/ui/Scroller/context/ScrollerContextProvider.d.ts +15 -0
- package/dist/common/components/ui/Scroller/hooks/useScrollControls.d.ts +28 -0
- package/dist/common/components/ui/Scroller/types.d.ts +1 -0
- package/dist/common/components/ui/SpeedDialButton/SpeedDialButton.d.ts +20 -0
- package/dist/common/components/ui/index.d.ts +14 -0
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useRetry.d.ts +12 -0
- package/dist/common/index.d.ts +2 -0
- package/dist/constants.d.ts +24 -0
- package/dist/core.css +1 -0
- package/dist/index.cjs +219 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.es.js +25836 -0
- package/dist/interfaces.d.ts +1 -0
- package/dist/utils/apiPrefix.d.ts +3 -0
- package/dist/utils/caseConverter.d.ts +17 -0
- package/dist/utils/cookieUtils.d.ts +27 -0
- package/dist/utils/parseDate.d.ts +2 -0
- package/dist/utils/slugify.d.ts +1 -0
- package/package.json +61 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";var BO=Object.defineProperty;var UO=(e,t,n)=>t in e?BO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var an=(e,t,n)=>UO(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("react"),uo=require("zustand"),jO=require("react-router-dom"),me=require("@mui/material"),HO=require("@emotion/styled"),du=require("@emotion/react"),Qc=require("notistack"),ci=require("react-dom");function _g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const oe=_g(Y),qO=_g(ci),ui=class ui{constructor(){an(this,"subscribers",new Set);an(this,"events",new Map)}static getInstance(){return ui.instance||(ui.instance=new ui),ui.instance}subscribe(t){return this.subscribers.add(t),t(Array.from(this.events.values())),()=>{this.subscribers.delete(t)}}publish(t,n){Array.from(this.events.keys()).filter(s=>s.startsWith(`${t}:`)).forEach(s=>this.events.delete(s)),n.forEach(s=>{this.events.set(`${t}:${s.id}`,s)});const i=Array.from(this.events.values());this.subscribers.forEach(s=>s(i))}removeSource(t){Array.from(this.events.keys()).filter(s=>s.startsWith(`${t}:`)).forEach(s=>this.events.delete(s));const i=Array.from(this.events.values());this.subscribers.forEach(s=>s(i))}getAllEvents(){return Array.from(this.events.values())}clear(){this.events.clear(),this.subscribers.forEach(t=>t([]))}};an(ui,"instance");let qa=ui;const VO=qa.getInstance(),li=class li{constructor(){an(this,"subscribers",new Set);an(this,"currentUser",null);an(this,"lastEvent",null);an(this,"storeConfig",null)}configureStore(t){this.storeConfig=t}getStoreConfig(){if(!this.storeConfig)throw new Error("UserBus store not configured. Call configureStore() first.");return this.storeConfig}static getInstance(){return li.instance||(li.instance=new li),li.instance}subscribe(t){return this.subscribers.add(t),this.lastEvent&&t(this.lastEvent),()=>{this.subscribers.delete(t)}}publish(t){this.lastEvent=t,t.user?this.currentUser=t.user:t.type==="user:loggedOut"&&(this.currentUser=null),this.subscribers.forEach(n=>n(t))}getCurrentUser(){return this.currentUser}getCurrentUserSync(){return this.currentUser}subscribeToUser(t){return t(this.currentUser),this.subscribe(n=>{t(n.user)})}getLastEvent(){return this.lastEvent}clear(){this.currentUser=null,this.lastEvent=null,this.subscribers.forEach(t=>t({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()}))}initializeFromStore(){const t=this.getStoreConfig().getState();t.user&&!this.currentUser&&(this.currentUser=t.user,this.publish({type:"user:loggedIn",user:t.user,timestamp:new Date().toISOString()}))}async getUser(){await this.getStoreConfig().getUser()}async updateUser(t){const n=this.getStoreConfig(),s=n.getState().user,a=await n.updateUser(t);return this.publish({type:"user:updated",user:a,timestamp:new Date().toISOString(),metadata:{previousUser:s}}),a}setUserToUpdate(t){this.getStoreConfig().setUserToUpdate(t)}async fetchCourseUsers(t){await this.getStoreConfig().fetchCourseUsers(t)}getCourseUsers(){return this.getStoreConfig().getState().courseUsers}async logout(){await this.getStoreConfig().logout(),this.publish({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()})}};an(li,"instance");let Va=li;const Yt=Va.getInstance(),Rg=()=>{const[e,t]=Y.useState(()=>Yt.getCurrentUserSync()),[n,i]=Y.useState(!1);return Y.useEffect(()=>{const s=Yt.subscribeToUser(a=>{t(a),i(!1)});return e||(i(!0),Yt.initializeFromStore(),Yt.getCurrentUserSync()||Yt.getUser().finally(()=>i(!1))),s},[]),{user:e,isLoading:n}},GO=()=>{const[e,t]=Y.useState(()=>{const n=Yt.getCurrentUserSync();return(n==null?void 0:n.preferences)||null});return Y.useEffect(()=>Yt.subscribeToUser(i=>{t((i==null?void 0:i.preferences)||null)}),[]),{preferences:e}},Dg=()=>{const e=Y.useCallback(async u=>await Yt.updateUser(u),[]),t=Y.useCallback(u=>{Yt.setUserToUpdate(u)},[]),n=Y.useCallback(async u=>await Yt.fetchCourseUsers(u),[]),i=Y.useCallback(async()=>await Yt.getUser(),[]),s=Y.useCallback(async()=>await Yt.logout(),[]),a=Y.useCallback(()=>Yt.getCourseUsers(),[]);return{updateUser:e,setUserToUpdate:t,fetchCourseUsers:n,getUser:i,logout:s,getCourseUsers:a}};var va=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function YO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mg(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),n}var ba={exports:{}},No={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var fh;function ZO(){if(fh)return No;fh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,a){var u=null;if(a!==void 0&&(u=""+a),s.key!==void 0&&(u=""+s.key),"key"in s){a={};for(var c in s)c!=="key"&&(a[c]=s[c])}else a=s;return s=a.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:a}}return No.Fragment=t,No.jsx=n,No.jsxs=n,No}var Ao={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var dh;function XO(){return dh||(dh=1,process.env.NODE_ENV!=="production"&&function(){function e($){if($==null)return null;if(typeof $=="function")return $.$$typeof===Z?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case v:return"Fragment";case m:return"Profiler";case g:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList";case K:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case y:return"Portal";case E:return $.displayName||"Context";case x:return($._context.displayName||"Context")+".Consumer";case T:var ue=$.render;return $=$.displayName,$||($=ue.displayName||ue.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case A:return ue=$.displayName||null,ue!==null?ue:e($.type)||"Memo";case z:ue=$._payload,$=$._init;try{return e($(ue))}catch{}}return null}function t($){return""+$}function n($){try{t($);var ue=!1}catch{ue=!0}if(ue){ue=console;var ye=ue.error,pe=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return ye.call(ue,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",pe),t($)}}function i($){if($===v)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===z)return"<...>";try{var ue=e($);return ue?"<"+ue+">":"<...>"}catch{return"<...>"}}function s(){var $=_.A;return $===null?null:$.getOwner()}function a(){return Error("react-stack-top-frame")}function u($){if(j.call($,"key")){var ue=Object.getOwnPropertyDescriptor($,"key").get;if(ue&&ue.isReactWarning)return!1}return $.key!==void 0}function c($,ue){function ye(){H||(H=!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)",ue))}ye.isReactWarning=!0,Object.defineProperty($,"key",{get:ye,configurable:!0})}function f(){var $=e(this.type);return X[$]||(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.")),$=this.props.ref,$!==void 0?$:null}function p($,ue,ye,pe,Oe,Te){var ve=ye.ref;return $={$$typeof:C,type:$,key:ue,props:ye,_owner:pe},(ve!==void 0?ve:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:f}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Oe}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function h($,ue,ye,pe,Oe,Te){var ve=ue.children;if(ve!==void 0)if(pe)if(B(ve)){for(pe=0;pe<ve.length;pe++)S(ve[pe]);Object.freeze&&Object.freeze(ve)}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 S(ve);if(j.call(ue,"key")){ve=e($);var ee=Object.keys(ue).filter(function(Ee){return Ee!=="key"});pe=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",G[ve+pe]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,pe,ve,ee,ve),G[ve+pe]=!0)}if(ve=null,ye!==void 0&&(n(ye),ve=""+ye),u(ue)&&(n(ue.key),ve=""+ue.key),"key"in ue){ye={};for(var ce in ue)ce!=="key"&&(ye[ce]=ue[ce])}else ye=ue;return ve&&c(ye,typeof $=="function"?$.displayName||$.name||"Unknown":$),p($,ve,ye,s(),Oe,Te)}function S($){R($)?$._store&&($._store.validated=1):typeof $=="object"&&$!==null&&$.$$typeof===z&&($._payload.status==="fulfilled"?R($._payload.value)&&$._payload.value._store&&($._payload.value._store.validated=1):$._store&&($._store.validated=1))}function R($){return typeof $=="object"&&$!==null&&$.$$typeof===C}var w=Y,C=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),_=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,B=Array.isArray,J=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function($){return $()}};var H,X={},fe=w.react_stack_bottom_frame.bind(w,a)(),ae=J(i(a)),G={};Ao.Fragment=v,Ao.jsx=function($,ue,ye){var pe=1e4>_.recentlyCreatedOwnerStacks++;return h($,ue,ye,!1,pe?Error("react-stack-top-frame"):fe,pe?J(i($)):ae)},Ao.jsxs=function($,ue,ye){var pe=1e4>_.recentlyCreatedOwnerStacks++;return h($,ue,ye,!0,pe?Error("react-stack-top-frame"):fe,pe?J(i($)):ae)}}()),Ao}var ph;function KO(){return ph||(ph=1,process.env.NODE_ENV==="production"?ba.exports=ZO():ba.exports=XO()),ba.exports}var F=KO();function JO(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1;return!0}const hh=[],ef=(e,t,n)=>{let i=[];return t.forEach(s=>{if(!n[s])return;const a=e[s];a&&(i.length>0&&i.push({kind:"divider"}),i.push(a.header),a.pageOrder.forEach(u=>{const c=a.pages[u];i.push(c)}))}),hh.length>0&&(i.length>0&&i.push({kind:"divider"}),i=[...i,...hh]),i},Pg=e=>[...e.allMicroserviceNavigation,...e.externalMicroservices],QO=(e,t)=>{var c;if(!((c=e.metadata)!=null&&c.microservices))return null;const n=(e.children||[]).filter(f=>!t.some(p=>p.segment===f.segment)),i=t.filter(f=>e.metadata.microservices.includes(f.segment)),s=[...n,...i],a=e.children||[];return a.length!==s.length||!a.every((f,p)=>{var h;return f.segment===((h=s[p])==null?void 0:h.segment)})?{...e,children:s}:null},eT=(e,t)=>{var n,i;if((n=e.metadata)!=null&&n.microservices){const s=((i=e.children)==null?void 0:i.filter(p=>!t.some(h=>h.segment===p.segment)))||[],a=t.filter(p=>e.metadata.microservices.includes(p.segment)),u=[...s,...a],c=e.children||[];return JSON.stringify(c)!==JSON.stringify(u)?{...e,children:u}:null}if(e.children&&e.children.length>0){let s=!1;const a=e.children.map(u=>{const c=QO(u,t);return c?(s=!0,c):{...u}});return s?{...e,children:a}:{...e,children:[...a]}}return null},tT=(e,t)=>{const n={...e,pages:Object.keys(e.pages).reduce((s,a)=>{var c;const u=e.pages[a];return s[a]={...u,children:(c=u.children)==null?void 0:c.map(f=>({...f,children:f.children?[...f.children]:void 0}))},s},{})};let i=!1;return Object.keys(n.pages).forEach(s=>{const a=n.pages[s],u=eT(a,t);u&&(n.pages[s]=u,i=!0)}),i?n:null},Ig=e=>{try{const t=Pg(e);if(t.length===0)return null;const n={...e.sections};let i=!1;if(Object.keys(n).forEach(a=>{const u=n[a],c=tT(u,t);c&&(n[a]=c,i=!0)}),!i)return null;const s=ef(n,e.sectionOrder,e.visibleSections);return{sections:n,navigation:s}}catch(t){throw console.error("[updateMicroserviceNavigationForSections] Error:",t),t}},nT=[],gr=uo.create((e,t)=>({navigation:nT,sections:{},sectionOrder:[],allMicroserviceNavigation:[],externalMicroservices:[],visibleSections:{},collapsedSections:{},setVisibleSections:n=>{e({visibleSections:n}),t().recalculateNavigation()},setCollapsedSections:n=>{e({collapsedSections:n})},toggleSectionCollapse:n=>{e(i=>({collapsedSections:{...i.collapsedSections,[n]:!i.collapsedSections[n]}}))},addSection:({underHeader:n,pages:i,keepVisible:s})=>e(a=>{const u=n,c={...a.sections},f={...a.visibleSections};s?f[u]=!0:u in f||(f[u]=!1),c[u]||(c[u]={header:{kind:"header",title:n},pages:{},pageOrder:[]}),i.forEach(h=>{const{segment:S,title:R,Icon:w,description:C,instances:y,microservices:v,actionFC:g}=h,m=y==null?void 0:y.map(E=>({kind:"page",segment:E,title:E,metadata:{description:C,forRoles:["student","teacher"],microservices:v},children:[]})),x={kind:"page",segment:S,title:R,iconFC:w,actionFC:g,metadata:{description:C,forRoles:["student","teacher"],isRootTool:!0,underHeader:n,microservices:y?void 0:v},...m&&m.length>0?{children:m}:{}};c[u].pages[S]=x,c[u].pageOrder.includes(S)||c[u].pageOrder.push(S)});const p=a.sections[u]?a.sectionOrder:[...a.sectionOrder,u];return{sections:c,sectionOrder:p,visibleSections:f}}),recalculateNavigation:()=>{const n=t(),i=ef(n.sections,n.sectionOrder,n.visibleSections);JSON.stringify(n.navigation)!==JSON.stringify(i)&&e({navigation:i})},addMicroserviceNavigation:n=>e(i=>i.allMicroserviceNavigation.find(a=>a.segment===n.segment)?i:{allMicroserviceNavigation:[...i.allMicroserviceNavigation,n]}),updateMicroserviceNavigationForSections:()=>{const n=t(),i=Ig(n);i&&e(i)},addStandaloneNavigation:n=>e(i=>{let s=[...i.navigation];if(!s.find(u=>u.kind==="page"&&u.segment===n.segment)){const u=s.findIndex(c=>c.kind==="divider"||c.kind==="header");return u!==-1?s.splice(u,0,n):s.push(n),{navigation:s}}return i}),removeHeader:n=>e(i=>{const s={...i.sections};s[n]&&delete s[n];const a=i.sectionOrder.filter(u=>u!==n);return{sections:s,sectionOrder:a}}),setExternalMicroservices:n=>{e({externalMicroservices:n}),t().updateMicroserviceNavigationForSections()}})),rT=e=>({teacher:[],student:[],guest:[]})[e]||[],Ng="navigation-filter-preferences",mh=()=>{try{const e=localStorage.getItem(Ng);if(e)return JSON.parse(e)}catch(e){console.warn("Failed to load navigation filter preferences from localStorage:",e)}return null},gh=e=>{try{localStorage.setItem(Ng,JSON.stringify(e))}catch(t){console.warn("Failed to save navigation filter preferences to localStorage:",t),t instanceof DOMException&&t.code===22&&console.error("localStorage quota exceeded. Consider clearing old data.")}},Wr=uo.create((e,t)=>({filterOptions:mh()||{},setFilterOptions:n=>e(i=>{const s=typeof n=="function"?n(i.filterOptions):n;return gh(s),{filterOptions:s}}),initializeFilters:()=>{const{sectionOrder:n}=gr.getState(),i=t().filterOptions,s=Object.keys(i).length>0?i:mh()||{},a=n.reduce((f,p)=>(p in s||(f[p]=p==="Courses"),f),{}),u={...s,...a};Object.keys(a).length>0&&(e({filterOptions:u}),gh(u))}})),un=new Map,Fi=new Map,yh=()=>{const e=gr.getState(),{setFilterOptions:t}=Wr.getState(),n={};un.forEach((i,s)=>{var u,c;if(!((u=i.metadata)!=null&&u.showInNavigation))return;const a=i.category||"Microservices";n[a]||(n[a]=[]),n[a].push({segment:s,title:i.name,Icon:i.iconComponent,description:i.description}),(c=i.metadata)!=null&&c.keepVisible&&t(f=>({...f,[a]:!0}))}),Object.entries(n).forEach(([i,s])=>{e.addSection({underHeader:i,pages:s})}),e.recalculateNavigation()},ms=uo.create(e=>({microservices:un,routeProviders:Fi,lastUpdate:Date.now(),registerMicroservice:(t,n)=>{un.set(t,n),e({microservices:new Map(un),lastUpdate:Date.now()}),yh()},unregisterMicroservice:t=>{un.has(t)&&(un.delete(t),e({microservices:new Map(un),lastUpdate:Date.now()}),yh())},registerRouteProvider:(t,n)=>{Fi.set(t,n),e({routeProviders:new Map(Fi),lastUpdate:Date.now()})},unregisterRouteProvider:t=>{Fi.has(t)&&(Fi.delete(t),e({routeProviders:new Map(Fi),lastUpdate:Date.now()}))},getRoutes:()=>{const t=[];return un.forEach(n=>{var i;if((i=n.metadata)!=null&&i.route){const s=n.Component;t.push({path:n.metadata.route.path,element:n.metadata.route.element||F.jsx(s,{...n.props}),index:n.metadata.route.index})}}),t}})),tf=()=>ms(e=>({microservices:e.microservices,routeProviders:e.routeProviders,lastUpdate:e.lastUpdate}),JO);function iT(e,t,n){if(un.has(e))return;const i={Component:t,props:n==null?void 0:n.props,name:(n==null?void 0:n.name)||e,description:n==null?void 0:n.description,category:n==null?void 0:n.category,iconComponent:n==null?void 0:n.iconComponent,metadata:n==null?void 0:n.metadata};ms.getState().registerMicroservice(e,i)}function oT(e){ms.getState().unregisterMicroservice(e)}function sT(e){return un.get(e)}function Ag(){return new Map(un)}function aT(){return Array.from(un.keys())}function uT(e){return un.has(e)}function lT(e,t){ms.getState().registerRouteProvider(e,t)}function cT(e){ms.getState().unregisterRouteProvider(e)}const fT=()=>{const{lastUpdate:e,microservices:t,routeProviders:n}=tf();return Y.useMemo(()=>{const i=[];return t.forEach(s=>{var a;if((a=s.metadata)!=null&&a.route){const u=s.Component;i.push(F.jsx(jO.Route,{path:s.metadata.route.path,element:s.metadata.route.element||F.jsx(u,{...s.props}),index:s.metadata.route.index},s.metadata.route.path))}}),n.forEach((s,a)=>{try{const u=s();i.push(...u)}catch(u){console.error(`Error getting routes from route provider "${a}":`,u)}}),i},[t,n,e])},dT=()=>{const{addSection:e,recalculateNavigation:t,setVisibleSections:n}=gr(),{setFilterOptions:i,initializeFilters:s}=Wr(),{lastUpdate:a}=tf();return Y.useEffect(()=>{const u=Ag(),c={};u.forEach((p,h)=>{var R;const S=p.category||"Microservices";c[S]||(c[S]=[]),c[S].push({segment:h,title:p.name,Icon:p.iconComponent,description:p.description}),(R=p.metadata)!=null&&R.keepVisible&&i(w=>({...w,[S]:!0}))}),Object.entries(c).forEach(([p,h])=>{e({underHeader:p,pages:h})}),s();const f=Wr.getState().filterOptions;n(f),t()},[a,n]),null},pT=()=>{const{addSection:e,recalculateNavigation:t,sectionOrder:n,setVisibleSections:i}=gr(),{setFilterOptions:s,initializeFilters:a}=Wr();return Y.useEffect(()=>{if(n.length>0){a();const c=Wr.getState().filterOptions;i(c),t()}},[n,a,t,i]),{addDynamicSection:Y.useCallback(c=>{e({underHeader:c.header,keepVisible:c.keepVisible,pages:c.pages||[]}),c.keepVisible&&s(f=>({...f,[c.header]:!0}))},[e,s])}};var Zo={exports:{}};/**
|
|
23
|
+
* @license
|
|
24
|
+
* Lodash <https://lodash.com/>
|
|
25
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
26
|
+
* Released under MIT license <https://lodash.com/license>
|
|
27
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
28
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
29
|
+
*/var hT=Zo.exports,vh;function mT(){return vh||(vh=1,function(e,t){(function(){var n,i="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",S=1,R=2,w=4,C=1,y=2,v=1,g=2,m=4,x=8,E=16,T=32,P=64,D=128,A=256,z=512,K=30,Z="...",_=800,j=16,B=1,J=2,H=3,X=1/0,fe=9007199254740991,ae=17976931348623157e292,G=NaN,$=4294967295,ue=$-1,ye=$>>>1,pe=[["ary",D],["bind",v],["bindKey",g],["curry",x],["curryRight",E],["flip",z],["partial",T],["partialRight",P],["rearg",A]],Oe="[object Arguments]",Te="[object Array]",ve="[object AsyncFunction]",ee="[object Boolean]",ce="[object Date]",Ee="[object DOMException]",Re="[object Error]",N="[object Function]",W="[object GeneratorFunction]",V="[object Map]",le="[object Number]",be="[object Null]",ge="[object Object]",te="[object Promise]",he="[object Proxy]",we="[object RegExp]",Ne="[object Set]",_e="[object String]",Ve="[object Symbol]",_t="[object Undefined]",Et="[object WeakMap]",Kt="[object WeakSet]",Pt="[object ArrayBuffer]",Jt="[object DataView]",Rt="[object Float32Array]",qr="[object Float64Array]",It="[object Int8Array]",tr="[object Int16Array]",Pn="[object Int32Array]",zt="[object Uint8Array]",go="[object Uint8ClampedArray]",Vr="[object Uint16Array]",yo="[object Uint32Array]",Oi=/\b__p \+= '';/g,Fu=/\b(__p \+=) '' \+/g,Wu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_s=/&(?:amp|lt|gt|quot|#39);/g,Rs=/[&<>"']/g,Bu=RegExp(_s.source),Uu=RegExp(Rs.source),ju=/<%-([\s\S]+?)%>/g,Hu=/<%([\s\S]+?)%>/g,$e=/<%=([\s\S]+?)%>/g,Qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ds=/^\w*$/,y0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qu=/[\\^$.*+?()[\]{}|]/g,v0=RegExp(qu.source),Vu=/^\s+/,b0=/\s/,w0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,x0=/\{\n\/\* \[wrapped with (.+)\] \*/,S0=/,? & /,E0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,O0=/[()=,{}\[\]\/\s]/,T0=/\\(\\)?/g,C0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ff=/\w*$/,_0=/^[-+]0x[0-9a-f]+$/i,R0=/^0b[01]+$/i,D0=/^\[object .+?Constructor\]$/,M0=/^0o[0-7]+$/i,P0=/^(?:0|[1-9]\d*)$/,I0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ms=/($^)/,N0=/['\n\r\u2028\u2029\\]/g,Ps="\\ud800-\\udfff",A0="\\u0300-\\u036f",k0="\\ufe20-\\ufe2f",$0="\\u20d0-\\u20ff",Wf=A0+k0+$0,Bf="\\u2700-\\u27bf",Uf="a-z\\xdf-\\xf6\\xf8-\\xff",L0="\\xac\\xb1\\xd7\\xf7",z0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",F0="\\u2000-\\u206f",W0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",jf="A-Z\\xc0-\\xd6\\xd8-\\xde",Hf="\\ufe0e\\ufe0f",qf=L0+z0+F0+W0,Gu="['’]",B0="["+Ps+"]",Vf="["+qf+"]",Is="["+Wf+"]",Gf="\\d+",U0="["+Bf+"]",Yf="["+Uf+"]",Zf="[^"+Ps+qf+Gf+Bf+Uf+jf+"]",Yu="\\ud83c[\\udffb-\\udfff]",j0="(?:"+Is+"|"+Yu+")",Xf="[^"+Ps+"]",Zu="(?:\\ud83c[\\udde6-\\uddff]){2}",Xu="[\\ud800-\\udbff][\\udc00-\\udfff]",Ti="["+jf+"]",Kf="\\u200d",Jf="(?:"+Yf+"|"+Zf+")",H0="(?:"+Ti+"|"+Zf+")",Qf="(?:"+Gu+"(?:d|ll|m|re|s|t|ve))?",ed="(?:"+Gu+"(?:D|LL|M|RE|S|T|VE))?",td=j0+"?",nd="["+Hf+"]?",q0="(?:"+Kf+"(?:"+[Xf,Zu,Xu].join("|")+")"+nd+td+")*",V0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",G0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rd=nd+td+q0,Y0="(?:"+[U0,Zu,Xu].join("|")+")"+rd,Z0="(?:"+[Xf+Is+"?",Is,Zu,Xu,B0].join("|")+")",X0=RegExp(Gu,"g"),K0=RegExp(Is,"g"),Ku=RegExp(Yu+"(?="+Yu+")|"+Z0+rd,"g"),J0=RegExp([Ti+"?"+Yf+"+"+Qf+"(?="+[Vf,Ti,"$"].join("|")+")",H0+"+"+ed+"(?="+[Vf,Ti+Jf,"$"].join("|")+")",Ti+"?"+Jf+"+"+Qf,Ti+"+"+ed,G0,V0,Gf,Y0].join("|"),"g"),Q0=RegExp("["+Kf+Ps+Wf+Hf+"]"),eb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nb=-1,ut={};ut[Rt]=ut[qr]=ut[It]=ut[tr]=ut[Pn]=ut[zt]=ut[go]=ut[Vr]=ut[yo]=!0,ut[Oe]=ut[Te]=ut[Pt]=ut[ee]=ut[Jt]=ut[ce]=ut[Re]=ut[N]=ut[V]=ut[le]=ut[ge]=ut[we]=ut[Ne]=ut[_e]=ut[Et]=!1;var st={};st[Oe]=st[Te]=st[Pt]=st[Jt]=st[ee]=st[ce]=st[Rt]=st[qr]=st[It]=st[tr]=st[Pn]=st[V]=st[le]=st[ge]=st[we]=st[Ne]=st[_e]=st[Ve]=st[zt]=st[go]=st[Vr]=st[yo]=!0,st[Re]=st[N]=st[Et]=!1;var rb={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ib={"&":"&","<":"<",">":">",'"':""","'":"'"},ob={"&":"&","<":"<",">":">",""":'"',"'":"'"},sb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ab=parseFloat,ub=parseInt,id=typeof va=="object"&&va&&va.Object===Object&&va,lb=typeof self=="object"&&self&&self.Object===Object&&self,Dt=id||lb||Function("return this")(),Ju=t&&!t.nodeType&&t,Gr=Ju&&!0&&e&&!e.nodeType&&e,od=Gr&&Gr.exports===Ju,Qu=od&&id.process,pn=function(){try{var U=Gr&&Gr.require&&Gr.require("util").types;return U||Qu&&Qu.binding&&Qu.binding("util")}catch{}}(),sd=pn&&pn.isArrayBuffer,ad=pn&&pn.isDate,ud=pn&&pn.isMap,ld=pn&&pn.isRegExp,cd=pn&&pn.isSet,fd=pn&&pn.isTypedArray;function en(U,re,Q){switch(Q.length){case 0:return U.call(re);case 1:return U.call(re,Q[0]);case 2:return U.call(re,Q[0],Q[1]);case 3:return U.call(re,Q[0],Q[1],Q[2])}return U.apply(re,Q)}function cb(U,re,Q,Ce){for(var Le=-1,Ye=U==null?0:U.length;++Le<Ye;){var Ot=U[Le];re(Ce,Ot,Q(Ot),U)}return Ce}function hn(U,re){for(var Q=-1,Ce=U==null?0:U.length;++Q<Ce&&re(U[Q],Q,U)!==!1;);return U}function fb(U,re){for(var Q=U==null?0:U.length;Q--&&re(U[Q],Q,U)!==!1;);return U}function dd(U,re){for(var Q=-1,Ce=U==null?0:U.length;++Q<Ce;)if(!re(U[Q],Q,U))return!1;return!0}function Sr(U,re){for(var Q=-1,Ce=U==null?0:U.length,Le=0,Ye=[];++Q<Ce;){var Ot=U[Q];re(Ot,Q,U)&&(Ye[Le++]=Ot)}return Ye}function Ns(U,re){var Q=U==null?0:U.length;return!!Q&&Ci(U,re,0)>-1}function el(U,re,Q){for(var Ce=-1,Le=U==null?0:U.length;++Ce<Le;)if(Q(re,U[Ce]))return!0;return!1}function lt(U,re){for(var Q=-1,Ce=U==null?0:U.length,Le=Array(Ce);++Q<Ce;)Le[Q]=re(U[Q],Q,U);return Le}function Er(U,re){for(var Q=-1,Ce=re.length,Le=U.length;++Q<Ce;)U[Le+Q]=re[Q];return U}function tl(U,re,Q,Ce){var Le=-1,Ye=U==null?0:U.length;for(Ce&&Ye&&(Q=U[++Le]);++Le<Ye;)Q=re(Q,U[Le],Le,U);return Q}function db(U,re,Q,Ce){var Le=U==null?0:U.length;for(Ce&&Le&&(Q=U[--Le]);Le--;)Q=re(Q,U[Le],Le,U);return Q}function nl(U,re){for(var Q=-1,Ce=U==null?0:U.length;++Q<Ce;)if(re(U[Q],Q,U))return!0;return!1}var pb=rl("length");function hb(U){return U.split("")}function mb(U){return U.match(E0)||[]}function pd(U,re,Q){var Ce;return Q(U,function(Le,Ye,Ot){if(re(Le,Ye,Ot))return Ce=Ye,!1}),Ce}function As(U,re,Q,Ce){for(var Le=U.length,Ye=Q+(Ce?1:-1);Ce?Ye--:++Ye<Le;)if(re(U[Ye],Ye,U))return Ye;return-1}function Ci(U,re,Q){return re===re?_b(U,re,Q):As(U,hd,Q)}function gb(U,re,Q,Ce){for(var Le=Q-1,Ye=U.length;++Le<Ye;)if(Ce(U[Le],re))return Le;return-1}function hd(U){return U!==U}function md(U,re){var Q=U==null?0:U.length;return Q?ol(U,re)/Q:G}function rl(U){return function(re){return re==null?n:re[U]}}function il(U){return function(re){return U==null?n:U[re]}}function gd(U,re,Q,Ce,Le){return Le(U,function(Ye,Ot,ot){Q=Ce?(Ce=!1,Ye):re(Q,Ye,Ot,ot)}),Q}function yb(U,re){var Q=U.length;for(U.sort(re);Q--;)U[Q]=U[Q].value;return U}function ol(U,re){for(var Q,Ce=-1,Le=U.length;++Ce<Le;){var Ye=re(U[Ce]);Ye!==n&&(Q=Q===n?Ye:Q+Ye)}return Q}function sl(U,re){for(var Q=-1,Ce=Array(U);++Q<U;)Ce[Q]=re(Q);return Ce}function vb(U,re){return lt(re,function(Q){return[Q,U[Q]]})}function yd(U){return U&&U.slice(0,xd(U)+1).replace(Vu,"")}function tn(U){return function(re){return U(re)}}function al(U,re){return lt(re,function(Q){return U[Q]})}function vo(U,re){return U.has(re)}function vd(U,re){for(var Q=-1,Ce=U.length;++Q<Ce&&Ci(re,U[Q],0)>-1;);return Q}function bd(U,re){for(var Q=U.length;Q--&&Ci(re,U[Q],0)>-1;);return Q}function bb(U,re){for(var Q=U.length,Ce=0;Q--;)U[Q]===re&&++Ce;return Ce}var wb=il(rb),xb=il(ib);function Sb(U){return"\\"+sb[U]}function Eb(U,re){return U==null?n:U[re]}function _i(U){return Q0.test(U)}function Ob(U){return eb.test(U)}function Tb(U){for(var re,Q=[];!(re=U.next()).done;)Q.push(re.value);return Q}function ul(U){var re=-1,Q=Array(U.size);return U.forEach(function(Ce,Le){Q[++re]=[Le,Ce]}),Q}function wd(U,re){return function(Q){return U(re(Q))}}function Or(U,re){for(var Q=-1,Ce=U.length,Le=0,Ye=[];++Q<Ce;){var Ot=U[Q];(Ot===re||Ot===h)&&(U[Q]=h,Ye[Le++]=Q)}return Ye}function ks(U){var re=-1,Q=Array(U.size);return U.forEach(function(Ce){Q[++re]=Ce}),Q}function Cb(U){var re=-1,Q=Array(U.size);return U.forEach(function(Ce){Q[++re]=[Ce,Ce]}),Q}function _b(U,re,Q){for(var Ce=Q-1,Le=U.length;++Ce<Le;)if(U[Ce]===re)return Ce;return-1}function Rb(U,re,Q){for(var Ce=Q+1;Ce--;)if(U[Ce]===re)return Ce;return Ce}function Ri(U){return _i(U)?Mb(U):pb(U)}function In(U){return _i(U)?Pb(U):hb(U)}function xd(U){for(var re=U.length;re--&&b0.test(U.charAt(re)););return re}var Db=il(ob);function Mb(U){for(var re=Ku.lastIndex=0;Ku.test(U);)++re;return re}function Pb(U){return U.match(Ku)||[]}function Ib(U){return U.match(J0)||[]}var Nb=function U(re){re=re==null?Dt:Di.defaults(Dt.Object(),re,Di.pick(Dt,tb));var Q=re.Array,Ce=re.Date,Le=re.Error,Ye=re.Function,Ot=re.Math,ot=re.Object,ll=re.RegExp,Ab=re.String,mn=re.TypeError,$s=Q.prototype,kb=Ye.prototype,Mi=ot.prototype,Ls=re["__core-js_shared__"],zs=kb.toString,et=Mi.hasOwnProperty,$b=0,Sd=function(){var r=/[^.]+$/.exec(Ls&&Ls.keys&&Ls.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Fs=Mi.toString,Lb=zs.call(ot),zb=Dt._,Fb=ll("^"+zs.call(et).replace(qu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ws=od?re.Buffer:n,Tr=re.Symbol,Bs=re.Uint8Array,Ed=Ws?Ws.allocUnsafe:n,Us=wd(ot.getPrototypeOf,ot),Od=ot.create,Td=Mi.propertyIsEnumerable,js=$s.splice,Cd=Tr?Tr.isConcatSpreadable:n,bo=Tr?Tr.iterator:n,Yr=Tr?Tr.toStringTag:n,Hs=function(){try{var r=Qr(ot,"defineProperty");return r({},"",{}),r}catch{}}(),Wb=re.clearTimeout!==Dt.clearTimeout&&re.clearTimeout,Bb=Ce&&Ce.now!==Dt.Date.now&&Ce.now,Ub=re.setTimeout!==Dt.setTimeout&&re.setTimeout,qs=Ot.ceil,Vs=Ot.floor,cl=ot.getOwnPropertySymbols,jb=Ws?Ws.isBuffer:n,_d=re.isFinite,Hb=$s.join,qb=wd(ot.keys,ot),Tt=Ot.max,Nt=Ot.min,Vb=Ce.now,Gb=re.parseInt,Rd=Ot.random,Yb=$s.reverse,fl=Qr(re,"DataView"),wo=Qr(re,"Map"),dl=Qr(re,"Promise"),Pi=Qr(re,"Set"),xo=Qr(re,"WeakMap"),So=Qr(ot,"create"),Gs=xo&&new xo,Ii={},Zb=ei(fl),Xb=ei(wo),Kb=ei(dl),Jb=ei(Pi),Qb=ei(xo),Ys=Tr?Tr.prototype:n,Eo=Ys?Ys.valueOf:n,Dd=Ys?Ys.toString:n;function M(r){if(dt(r)&&!ze(r)&&!(r instanceof je)){if(r instanceof gn)return r;if(et.call(r,"__wrapped__"))return Mp(r)}return new gn(r)}var Ni=function(){function r(){}return function(o){if(!ft(o))return{};if(Od)return Od(o);r.prototype=o;var l=new r;return r.prototype=n,l}}();function Zs(){}function gn(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=n}M.templateSettings={escape:ju,evaluate:Hu,interpolate:$e,variable:"",imports:{_:M}},M.prototype=Zs.prototype,M.prototype.constructor=M,gn.prototype=Ni(Zs.prototype),gn.prototype.constructor=gn;function je(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function ew(){var r=new je(this.__wrapped__);return r.__actions__=Ht(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Ht(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Ht(this.__views__),r}function tw(){if(this.__filtered__){var r=new je(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function nw(){var r=this.__wrapped__.value(),o=this.__dir__,l=ze(r),d=o<0,O=l?r.length:0,I=hx(0,O,this.__views__),k=I.start,L=I.end,q=L-k,ie=d?L:k-1,se=this.__iteratees__,de=se.length,xe=0,De=Nt(q,this.__takeCount__);if(!l||!d&&O==q&&De==q)return Qd(r,this.__actions__);var Pe=[];e:for(;q--&&xe<De;){ie+=o;for(var We=-1,Ie=r[ie];++We<de;){var Ue=se[We],He=Ue.iteratee,on=Ue.type,Bt=He(Ie);if(on==J)Ie=Bt;else if(!Bt){if(on==B)continue e;break e}}Pe[xe++]=Ie}return Pe}je.prototype=Ni(Zs.prototype),je.prototype.constructor=je;function Zr(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var d=r[o];this.set(d[0],d[1])}}function rw(){this.__data__=So?So(null):{},this.size=0}function iw(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function ow(r){var o=this.__data__;if(So){var l=o[r];return l===f?n:l}return et.call(o,r)?o[r]:n}function sw(r){var o=this.__data__;return So?o[r]!==n:et.call(o,r)}function aw(r,o){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=So&&o===n?f:o,this}Zr.prototype.clear=rw,Zr.prototype.delete=iw,Zr.prototype.get=ow,Zr.prototype.has=sw,Zr.prototype.set=aw;function nr(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var d=r[o];this.set(d[0],d[1])}}function uw(){this.__data__=[],this.size=0}function lw(r){var o=this.__data__,l=Xs(o,r);if(l<0)return!1;var d=o.length-1;return l==d?o.pop():js.call(o,l,1),--this.size,!0}function cw(r){var o=this.__data__,l=Xs(o,r);return l<0?n:o[l][1]}function fw(r){return Xs(this.__data__,r)>-1}function dw(r,o){var l=this.__data__,d=Xs(l,r);return d<0?(++this.size,l.push([r,o])):l[d][1]=o,this}nr.prototype.clear=uw,nr.prototype.delete=lw,nr.prototype.get=cw,nr.prototype.has=fw,nr.prototype.set=dw;function rr(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var d=r[o];this.set(d[0],d[1])}}function pw(){this.size=0,this.__data__={hash:new Zr,map:new(wo||nr),string:new Zr}}function hw(r){var o=ua(this,r).delete(r);return this.size-=o?1:0,o}function mw(r){return ua(this,r).get(r)}function gw(r){return ua(this,r).has(r)}function yw(r,o){var l=ua(this,r),d=l.size;return l.set(r,o),this.size+=l.size==d?0:1,this}rr.prototype.clear=pw,rr.prototype.delete=hw,rr.prototype.get=mw,rr.prototype.has=gw,rr.prototype.set=yw;function Xr(r){var o=-1,l=r==null?0:r.length;for(this.__data__=new rr;++o<l;)this.add(r[o])}function vw(r){return this.__data__.set(r,f),this}function bw(r){return this.__data__.has(r)}Xr.prototype.add=Xr.prototype.push=vw,Xr.prototype.has=bw;function Nn(r){var o=this.__data__=new nr(r);this.size=o.size}function ww(){this.__data__=new nr,this.size=0}function xw(r){var o=this.__data__,l=o.delete(r);return this.size=o.size,l}function Sw(r){return this.__data__.get(r)}function Ew(r){return this.__data__.has(r)}function Ow(r,o){var l=this.__data__;if(l instanceof nr){var d=l.__data__;if(!wo||d.length<s-1)return d.push([r,o]),this.size=++l.size,this;l=this.__data__=new rr(d)}return l.set(r,o),this.size=l.size,this}Nn.prototype.clear=ww,Nn.prototype.delete=xw,Nn.prototype.get=Sw,Nn.prototype.has=Ew,Nn.prototype.set=Ow;function Md(r,o){var l=ze(r),d=!l&&ti(r),O=!l&&!d&&Mr(r),I=!l&&!d&&!O&&Li(r),k=l||d||O||I,L=k?sl(r.length,Ab):[],q=L.length;for(var ie in r)(o||et.call(r,ie))&&!(k&&(ie=="length"||O&&(ie=="offset"||ie=="parent")||I&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||ar(ie,q)))&&L.push(ie);return L}function Pd(r){var o=r.length;return o?r[El(0,o-1)]:n}function Tw(r,o){return la(Ht(r),Kr(o,0,r.length))}function Cw(r){return la(Ht(r))}function pl(r,o,l){(l!==n&&!An(r[o],l)||l===n&&!(o in r))&&ir(r,o,l)}function Oo(r,o,l){var d=r[o];(!(et.call(r,o)&&An(d,l))||l===n&&!(o in r))&&ir(r,o,l)}function Xs(r,o){for(var l=r.length;l--;)if(An(r[l][0],o))return l;return-1}function _w(r,o,l,d){return Cr(r,function(O,I,k){o(d,O,l(O),k)}),d}function Id(r,o){return r&&jn(o,Ct(o),r)}function Rw(r,o){return r&&jn(o,Vt(o),r)}function ir(r,o,l){o=="__proto__"&&Hs?Hs(r,o,{configurable:!0,enumerable:!0,value:l,writable:!0}):r[o]=l}function hl(r,o){for(var l=-1,d=o.length,O=Q(d),I=r==null;++l<d;)O[l]=I?n:Yl(r,o[l]);return O}function Kr(r,o,l){return r===r&&(l!==n&&(r=r<=l?r:l),o!==n&&(r=r>=o?r:o)),r}function yn(r,o,l,d,O,I){var k,L=o&S,q=o&R,ie=o&w;if(l&&(k=O?l(r,d,O,I):l(r)),k!==n)return k;if(!ft(r))return r;var se=ze(r);if(se){if(k=gx(r),!L)return Ht(r,k)}else{var de=At(r),xe=de==N||de==W;if(Mr(r))return np(r,L);if(de==ge||de==Oe||xe&&!O){if(k=q||xe?{}:xp(r),!L)return q?ox(r,Rw(k,r)):ix(r,Id(k,r))}else{if(!st[de])return O?r:{};k=yx(r,de,L)}}I||(I=new Nn);var De=I.get(r);if(De)return De;I.set(r,k),Xp(r)?r.forEach(function(Ie){k.add(yn(Ie,o,l,Ie,r,I))}):Yp(r)&&r.forEach(function(Ie,Ue){k.set(Ue,yn(Ie,o,l,Ue,r,I))});var Pe=ie?q?Al:Nl:q?Vt:Ct,We=se?n:Pe(r);return hn(We||r,function(Ie,Ue){We&&(Ue=Ie,Ie=r[Ue]),Oo(k,Ue,yn(Ie,o,l,Ue,r,I))}),k}function Dw(r){var o=Ct(r);return function(l){return Nd(l,r,o)}}function Nd(r,o,l){var d=l.length;if(r==null)return!d;for(r=ot(r);d--;){var O=l[d],I=o[O],k=r[O];if(k===n&&!(O in r)||!I(k))return!1}return!0}function Ad(r,o,l){if(typeof r!="function")throw new mn(u);return Po(function(){r.apply(n,l)},o)}function To(r,o,l,d){var O=-1,I=Ns,k=!0,L=r.length,q=[],ie=o.length;if(!L)return q;l&&(o=lt(o,tn(l))),d?(I=el,k=!1):o.length>=s&&(I=vo,k=!1,o=new Xr(o));e:for(;++O<L;){var se=r[O],de=l==null?se:l(se);if(se=d||se!==0?se:0,k&&de===de){for(var xe=ie;xe--;)if(o[xe]===de)continue e;q.push(se)}else I(o,de,d)||q.push(se)}return q}var Cr=ap(Un),kd=ap(gl,!0);function Mw(r,o){var l=!0;return Cr(r,function(d,O,I){return l=!!o(d,O,I),l}),l}function Ks(r,o,l){for(var d=-1,O=r.length;++d<O;){var I=r[d],k=o(I);if(k!=null&&(L===n?k===k&&!rn(k):l(k,L)))var L=k,q=I}return q}function Pw(r,o,l,d){var O=r.length;for(l=Fe(l),l<0&&(l=-l>O?0:O+l),d=d===n||d>O?O:Fe(d),d<0&&(d+=O),d=l>d?0:Jp(d);l<d;)r[l++]=o;return r}function $d(r,o){var l=[];return Cr(r,function(d,O,I){o(d,O,I)&&l.push(d)}),l}function Mt(r,o,l,d,O){var I=-1,k=r.length;for(l||(l=bx),O||(O=[]);++I<k;){var L=r[I];o>0&&l(L)?o>1?Mt(L,o-1,l,d,O):Er(O,L):d||(O[O.length]=L)}return O}var ml=up(),Ld=up(!0);function Un(r,o){return r&&ml(r,o,Ct)}function gl(r,o){return r&&Ld(r,o,Ct)}function Js(r,o){return Sr(o,function(l){return ur(r[l])})}function Jr(r,o){o=Rr(o,r);for(var l=0,d=o.length;r!=null&&l<d;)r=r[Hn(o[l++])];return l&&l==d?r:n}function zd(r,o,l){var d=o(r);return ze(r)?d:Er(d,l(r))}function Ft(r){return r==null?r===n?_t:be:Yr&&Yr in ot(r)?px(r):Cx(r)}function yl(r,o){return r>o}function Iw(r,o){return r!=null&&et.call(r,o)}function Nw(r,o){return r!=null&&o in ot(r)}function Aw(r,o,l){return r>=Nt(o,l)&&r<Tt(o,l)}function vl(r,o,l){for(var d=l?el:Ns,O=r[0].length,I=r.length,k=I,L=Q(I),q=1/0,ie=[];k--;){var se=r[k];k&&o&&(se=lt(se,tn(o))),q=Nt(se.length,q),L[k]=!l&&(o||O>=120&&se.length>=120)?new Xr(k&&se):n}se=r[0];var de=-1,xe=L[0];e:for(;++de<O&&ie.length<q;){var De=se[de],Pe=o?o(De):De;if(De=l||De!==0?De:0,!(xe?vo(xe,Pe):d(ie,Pe,l))){for(k=I;--k;){var We=L[k];if(!(We?vo(We,Pe):d(r[k],Pe,l)))continue e}xe&&xe.push(Pe),ie.push(De)}}return ie}function kw(r,o,l,d){return Un(r,function(O,I,k){o(d,l(O),I,k)}),d}function Co(r,o,l){o=Rr(o,r),r=Tp(r,o);var d=r==null?r:r[Hn(bn(o))];return d==null?n:en(d,r,l)}function Fd(r){return dt(r)&&Ft(r)==Oe}function $w(r){return dt(r)&&Ft(r)==Pt}function Lw(r){return dt(r)&&Ft(r)==ce}function _o(r,o,l,d,O){return r===o?!0:r==null||o==null||!dt(r)&&!dt(o)?r!==r&&o!==o:zw(r,o,l,d,_o,O)}function zw(r,o,l,d,O,I){var k=ze(r),L=ze(o),q=k?Te:At(r),ie=L?Te:At(o);q=q==Oe?ge:q,ie=ie==Oe?ge:ie;var se=q==ge,de=ie==ge,xe=q==ie;if(xe&&Mr(r)){if(!Mr(o))return!1;k=!0,se=!1}if(xe&&!se)return I||(I=new Nn),k||Li(r)?vp(r,o,l,d,O,I):fx(r,o,q,l,d,O,I);if(!(l&C)){var De=se&&et.call(r,"__wrapped__"),Pe=de&&et.call(o,"__wrapped__");if(De||Pe){var We=De?r.value():r,Ie=Pe?o.value():o;return I||(I=new Nn),O(We,Ie,l,d,I)}}return xe?(I||(I=new Nn),dx(r,o,l,d,O,I)):!1}function Fw(r){return dt(r)&&At(r)==V}function bl(r,o,l,d){var O=l.length,I=O,k=!d;if(r==null)return!I;for(r=ot(r);O--;){var L=l[O];if(k&&L[2]?L[1]!==r[L[0]]:!(L[0]in r))return!1}for(;++O<I;){L=l[O];var q=L[0],ie=r[q],se=L[1];if(k&&L[2]){if(ie===n&&!(q in r))return!1}else{var de=new Nn;if(d)var xe=d(ie,se,q,r,o,de);if(!(xe===n?_o(se,ie,C|y,d,de):xe))return!1}}return!0}function Wd(r){if(!ft(r)||xx(r))return!1;var o=ur(r)?Fb:D0;return o.test(ei(r))}function Ww(r){return dt(r)&&Ft(r)==we}function Bw(r){return dt(r)&&At(r)==Ne}function Uw(r){return dt(r)&&ma(r.length)&&!!ut[Ft(r)]}function Bd(r){return typeof r=="function"?r:r==null?Gt:typeof r=="object"?ze(r)?Hd(r[0],r[1]):jd(r):lh(r)}function wl(r){if(!Mo(r))return qb(r);var o=[];for(var l in ot(r))et.call(r,l)&&l!="constructor"&&o.push(l);return o}function jw(r){if(!ft(r))return Tx(r);var o=Mo(r),l=[];for(var d in r)d=="constructor"&&(o||!et.call(r,d))||l.push(d);return l}function xl(r,o){return r<o}function Ud(r,o){var l=-1,d=qt(r)?Q(r.length):[];return Cr(r,function(O,I,k){d[++l]=o(O,I,k)}),d}function jd(r){var o=$l(r);return o.length==1&&o[0][2]?Ep(o[0][0],o[0][1]):function(l){return l===r||bl(l,r,o)}}function Hd(r,o){return zl(r)&&Sp(o)?Ep(Hn(r),o):function(l){var d=Yl(l,r);return d===n&&d===o?Zl(l,r):_o(o,d,C|y)}}function Qs(r,o,l,d,O){r!==o&&ml(o,function(I,k){if(O||(O=new Nn),ft(I))Hw(r,o,k,l,Qs,d,O);else{var L=d?d(Wl(r,k),I,k+"",r,o,O):n;L===n&&(L=I),pl(r,k,L)}},Vt)}function Hw(r,o,l,d,O,I,k){var L=Wl(r,l),q=Wl(o,l),ie=k.get(q);if(ie){pl(r,l,ie);return}var se=I?I(L,q,l+"",r,o,k):n,de=se===n;if(de){var xe=ze(q),De=!xe&&Mr(q),Pe=!xe&&!De&&Li(q);se=q,xe||De||Pe?ze(L)?se=L:vt(L)?se=Ht(L):De?(de=!1,se=np(q,!0)):Pe?(de=!1,se=rp(q,!0)):se=[]:Io(q)||ti(q)?(se=L,ti(L)?se=Qp(L):(!ft(L)||ur(L))&&(se=xp(q))):de=!1}de&&(k.set(q,se),O(se,q,d,I,k),k.delete(q)),pl(r,l,se)}function qd(r,o){var l=r.length;if(l)return o+=o<0?l:0,ar(o,l)?r[o]:n}function Vd(r,o,l){o.length?o=lt(o,function(I){return ze(I)?function(k){return Jr(k,I.length===1?I[0]:I)}:I}):o=[Gt];var d=-1;o=lt(o,tn(Me()));var O=Ud(r,function(I,k,L){var q=lt(o,function(ie){return ie(I)});return{criteria:q,index:++d,value:I}});return yb(O,function(I,k){return rx(I,k,l)})}function qw(r,o){return Gd(r,o,function(l,d){return Zl(r,d)})}function Gd(r,o,l){for(var d=-1,O=o.length,I={};++d<O;){var k=o[d],L=Jr(r,k);l(L,k)&&Ro(I,Rr(k,r),L)}return I}function Vw(r){return function(o){return Jr(o,r)}}function Sl(r,o,l,d){var O=d?gb:Ci,I=-1,k=o.length,L=r;for(r===o&&(o=Ht(o)),l&&(L=lt(r,tn(l)));++I<k;)for(var q=0,ie=o[I],se=l?l(ie):ie;(q=O(L,se,q,d))>-1;)L!==r&&js.call(L,q,1),js.call(r,q,1);return r}function Yd(r,o){for(var l=r?o.length:0,d=l-1;l--;){var O=o[l];if(l==d||O!==I){var I=O;ar(O)?js.call(r,O,1):Cl(r,O)}}return r}function El(r,o){return r+Vs(Rd()*(o-r+1))}function Gw(r,o,l,d){for(var O=-1,I=Tt(qs((o-r)/(l||1)),0),k=Q(I);I--;)k[d?I:++O]=r,r+=l;return k}function Ol(r,o){var l="";if(!r||o<1||o>fe)return l;do o%2&&(l+=r),o=Vs(o/2),o&&(r+=r);while(o);return l}function Be(r,o){return Bl(Op(r,o,Gt),r+"")}function Yw(r){return Pd(zi(r))}function Zw(r,o){var l=zi(r);return la(l,Kr(o,0,l.length))}function Ro(r,o,l,d){if(!ft(r))return r;o=Rr(o,r);for(var O=-1,I=o.length,k=I-1,L=r;L!=null&&++O<I;){var q=Hn(o[O]),ie=l;if(q==="__proto__"||q==="constructor"||q==="prototype")return r;if(O!=k){var se=L[q];ie=d?d(se,q,L):n,ie===n&&(ie=ft(se)?se:ar(o[O+1])?[]:{})}Oo(L,q,ie),L=L[q]}return r}var Zd=Gs?function(r,o){return Gs.set(r,o),r}:Gt,Xw=Hs?function(r,o){return Hs(r,"toString",{configurable:!0,enumerable:!1,value:Kl(o),writable:!0})}:Gt;function Kw(r){return la(zi(r))}function vn(r,o,l){var d=-1,O=r.length;o<0&&(o=-o>O?0:O+o),l=l>O?O:l,l<0&&(l+=O),O=o>l?0:l-o>>>0,o>>>=0;for(var I=Q(O);++d<O;)I[d]=r[d+o];return I}function Jw(r,o){var l;return Cr(r,function(d,O,I){return l=o(d,O,I),!l}),!!l}function ea(r,o,l){var d=0,O=r==null?d:r.length;if(typeof o=="number"&&o===o&&O<=ye){for(;d<O;){var I=d+O>>>1,k=r[I];k!==null&&!rn(k)&&(l?k<=o:k<o)?d=I+1:O=I}return O}return Tl(r,o,Gt,l)}function Tl(r,o,l,d){var O=0,I=r==null?0:r.length;if(I===0)return 0;o=l(o);for(var k=o!==o,L=o===null,q=rn(o),ie=o===n;O<I;){var se=Vs((O+I)/2),de=l(r[se]),xe=de!==n,De=de===null,Pe=de===de,We=rn(de);if(k)var Ie=d||Pe;else ie?Ie=Pe&&(d||xe):L?Ie=Pe&&xe&&(d||!De):q?Ie=Pe&&xe&&!De&&(d||!We):De||We?Ie=!1:Ie=d?de<=o:de<o;Ie?O=se+1:I=se}return Nt(I,ue)}function Xd(r,o){for(var l=-1,d=r.length,O=0,I=[];++l<d;){var k=r[l],L=o?o(k):k;if(!l||!An(L,q)){var q=L;I[O++]=k===0?0:k}}return I}function Kd(r){return typeof r=="number"?r:rn(r)?G:+r}function nn(r){if(typeof r=="string")return r;if(ze(r))return lt(r,nn)+"";if(rn(r))return Dd?Dd.call(r):"";var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function _r(r,o,l){var d=-1,O=Ns,I=r.length,k=!0,L=[],q=L;if(l)k=!1,O=el;else if(I>=s){var ie=o?null:lx(r);if(ie)return ks(ie);k=!1,O=vo,q=new Xr}else q=o?[]:L;e:for(;++d<I;){var se=r[d],de=o?o(se):se;if(se=l||se!==0?se:0,k&&de===de){for(var xe=q.length;xe--;)if(q[xe]===de)continue e;o&&q.push(de),L.push(se)}else O(q,de,l)||(q!==L&&q.push(de),L.push(se))}return L}function Cl(r,o){return o=Rr(o,r),r=Tp(r,o),r==null||delete r[Hn(bn(o))]}function Jd(r,o,l,d){return Ro(r,o,l(Jr(r,o)),d)}function ta(r,o,l,d){for(var O=r.length,I=d?O:-1;(d?I--:++I<O)&&o(r[I],I,r););return l?vn(r,d?0:I,d?I+1:O):vn(r,d?I+1:0,d?O:I)}function Qd(r,o){var l=r;return l instanceof je&&(l=l.value()),tl(o,function(d,O){return O.func.apply(O.thisArg,Er([d],O.args))},l)}function _l(r,o,l){var d=r.length;if(d<2)return d?_r(r[0]):[];for(var O=-1,I=Q(d);++O<d;)for(var k=r[O],L=-1;++L<d;)L!=O&&(I[O]=To(I[O]||k,r[L],o,l));return _r(Mt(I,1),o,l)}function ep(r,o,l){for(var d=-1,O=r.length,I=o.length,k={};++d<O;){var L=d<I?o[d]:n;l(k,r[d],L)}return k}function Rl(r){return vt(r)?r:[]}function Dl(r){return typeof r=="function"?r:Gt}function Rr(r,o){return ze(r)?r:zl(r,o)?[r]:Dp(Xe(r))}var Qw=Be;function Dr(r,o,l){var d=r.length;return l=l===n?d:l,!o&&l>=d?r:vn(r,o,l)}var tp=Wb||function(r){return Dt.clearTimeout(r)};function np(r,o){if(o)return r.slice();var l=r.length,d=Ed?Ed(l):new r.constructor(l);return r.copy(d),d}function Ml(r){var o=new r.constructor(r.byteLength);return new Bs(o).set(new Bs(r)),o}function ex(r,o){var l=o?Ml(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function tx(r){var o=new r.constructor(r.source,Ff.exec(r));return o.lastIndex=r.lastIndex,o}function nx(r){return Eo?ot(Eo.call(r)):{}}function rp(r,o){var l=o?Ml(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function ip(r,o){if(r!==o){var l=r!==n,d=r===null,O=r===r,I=rn(r),k=o!==n,L=o===null,q=o===o,ie=rn(o);if(!L&&!ie&&!I&&r>o||I&&k&&q&&!L&&!ie||d&&k&&q||!l&&q||!O)return 1;if(!d&&!I&&!ie&&r<o||ie&&l&&O&&!d&&!I||L&&l&&O||!k&&O||!q)return-1}return 0}function rx(r,o,l){for(var d=-1,O=r.criteria,I=o.criteria,k=O.length,L=l.length;++d<k;){var q=ip(O[d],I[d]);if(q){if(d>=L)return q;var ie=l[d];return q*(ie=="desc"?-1:1)}}return r.index-o.index}function op(r,o,l,d){for(var O=-1,I=r.length,k=l.length,L=-1,q=o.length,ie=Tt(I-k,0),se=Q(q+ie),de=!d;++L<q;)se[L]=o[L];for(;++O<k;)(de||O<I)&&(se[l[O]]=r[O]);for(;ie--;)se[L++]=r[O++];return se}function sp(r,o,l,d){for(var O=-1,I=r.length,k=-1,L=l.length,q=-1,ie=o.length,se=Tt(I-L,0),de=Q(se+ie),xe=!d;++O<se;)de[O]=r[O];for(var De=O;++q<ie;)de[De+q]=o[q];for(;++k<L;)(xe||O<I)&&(de[De+l[k]]=r[O++]);return de}function Ht(r,o){var l=-1,d=r.length;for(o||(o=Q(d));++l<d;)o[l]=r[l];return o}function jn(r,o,l,d){var O=!l;l||(l={});for(var I=-1,k=o.length;++I<k;){var L=o[I],q=d?d(l[L],r[L],L,l,r):n;q===n&&(q=r[L]),O?ir(l,L,q):Oo(l,L,q)}return l}function ix(r,o){return jn(r,Ll(r),o)}function ox(r,o){return jn(r,bp(r),o)}function na(r,o){return function(l,d){var O=ze(l)?cb:_w,I=o?o():{};return O(l,r,Me(d,2),I)}}function Ai(r){return Be(function(o,l){var d=-1,O=l.length,I=O>1?l[O-1]:n,k=O>2?l[2]:n;for(I=r.length>3&&typeof I=="function"?(O--,I):n,k&&Wt(l[0],l[1],k)&&(I=O<3?n:I,O=1),o=ot(o);++d<O;){var L=l[d];L&&r(o,L,d,I)}return o})}function ap(r,o){return function(l,d){if(l==null)return l;if(!qt(l))return r(l,d);for(var O=l.length,I=o?O:-1,k=ot(l);(o?I--:++I<O)&&d(k[I],I,k)!==!1;);return l}}function up(r){return function(o,l,d){for(var O=-1,I=ot(o),k=d(o),L=k.length;L--;){var q=k[r?L:++O];if(l(I[q],q,I)===!1)break}return o}}function sx(r,o,l){var d=o&v,O=Do(r);function I(){var k=this&&this!==Dt&&this instanceof I?O:r;return k.apply(d?l:this,arguments)}return I}function lp(r){return function(o){o=Xe(o);var l=_i(o)?In(o):n,d=l?l[0]:o.charAt(0),O=l?Dr(l,1).join(""):o.slice(1);return d[r]()+O}}function ki(r){return function(o){return tl(ah(sh(o).replace(X0,"")),r,"")}}function Do(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var l=Ni(r.prototype),d=r.apply(l,o);return ft(d)?d:l}}function ax(r,o,l){var d=Do(r);function O(){for(var I=arguments.length,k=Q(I),L=I,q=$i(O);L--;)k[L]=arguments[L];var ie=I<3&&k[0]!==q&&k[I-1]!==q?[]:Or(k,q);if(I-=ie.length,I<l)return hp(r,o,ra,O.placeholder,n,k,ie,n,n,l-I);var se=this&&this!==Dt&&this instanceof O?d:r;return en(se,this,k)}return O}function cp(r){return function(o,l,d){var O=ot(o);if(!qt(o)){var I=Me(l,3);o=Ct(o),l=function(L){return I(O[L],L,O)}}var k=r(o,l,d);return k>-1?O[I?o[k]:k]:n}}function fp(r){return sr(function(o){var l=o.length,d=l,O=gn.prototype.thru;for(r&&o.reverse();d--;){var I=o[d];if(typeof I!="function")throw new mn(u);if(O&&!k&&aa(I)=="wrapper")var k=new gn([],!0)}for(d=k?d:l;++d<l;){I=o[d];var L=aa(I),q=L=="wrapper"?kl(I):n;q&&Fl(q[0])&&q[1]==(D|x|T|A)&&!q[4].length&&q[9]==1?k=k[aa(q[0])].apply(k,q[3]):k=I.length==1&&Fl(I)?k[L]():k.thru(I)}return function(){var ie=arguments,se=ie[0];if(k&&ie.length==1&&ze(se))return k.plant(se).value();for(var de=0,xe=l?o[de].apply(this,ie):se;++de<l;)xe=o[de].call(this,xe);return xe}})}function ra(r,o,l,d,O,I,k,L,q,ie){var se=o&D,de=o&v,xe=o&g,De=o&(x|E),Pe=o&z,We=xe?n:Do(r);function Ie(){for(var Ue=arguments.length,He=Q(Ue),on=Ue;on--;)He[on]=arguments[on];if(De)var Bt=$i(Ie),sn=bb(He,Bt);if(d&&(He=op(He,d,O,De)),I&&(He=sp(He,I,k,De)),Ue-=sn,De&&Ue<ie){var bt=Or(He,Bt);return hp(r,o,ra,Ie.placeholder,l,He,bt,L,q,ie-Ue)}var kn=de?l:this,cr=xe?kn[r]:r;return Ue=He.length,L?He=_x(He,L):Pe&&Ue>1&&He.reverse(),se&&q<Ue&&(He.length=q),this&&this!==Dt&&this instanceof Ie&&(cr=We||Do(cr)),cr.apply(kn,He)}return Ie}function dp(r,o){return function(l,d){return kw(l,r,o(d),{})}}function ia(r,o){return function(l,d){var O;if(l===n&&d===n)return o;if(l!==n&&(O=l),d!==n){if(O===n)return d;typeof l=="string"||typeof d=="string"?(l=nn(l),d=nn(d)):(l=Kd(l),d=Kd(d)),O=r(l,d)}return O}}function Pl(r){return sr(function(o){return o=lt(o,tn(Me())),Be(function(l){var d=this;return r(o,function(O){return en(O,d,l)})})})}function oa(r,o){o=o===n?" ":nn(o);var l=o.length;if(l<2)return l?Ol(o,r):o;var d=Ol(o,qs(r/Ri(o)));return _i(o)?Dr(In(d),0,r).join(""):d.slice(0,r)}function ux(r,o,l,d){var O=o&v,I=Do(r);function k(){for(var L=-1,q=arguments.length,ie=-1,se=d.length,de=Q(se+q),xe=this&&this!==Dt&&this instanceof k?I:r;++ie<se;)de[ie]=d[ie];for(;q--;)de[ie++]=arguments[++L];return en(xe,O?l:this,de)}return k}function pp(r){return function(o,l,d){return d&&typeof d!="number"&&Wt(o,l,d)&&(l=d=n),o=lr(o),l===n?(l=o,o=0):l=lr(l),d=d===n?o<l?1:-1:lr(d),Gw(o,l,d,r)}}function sa(r){return function(o,l){return typeof o=="string"&&typeof l=="string"||(o=wn(o),l=wn(l)),r(o,l)}}function hp(r,o,l,d,O,I,k,L,q,ie){var se=o&x,de=se?k:n,xe=se?n:k,De=se?I:n,Pe=se?n:I;o|=se?T:P,o&=~(se?P:T),o&m||(o&=-4);var We=[r,o,O,De,de,Pe,xe,L,q,ie],Ie=l.apply(n,We);return Fl(r)&&Cp(Ie,We),Ie.placeholder=d,_p(Ie,r,o)}function Il(r){var o=Ot[r];return function(l,d){if(l=wn(l),d=d==null?0:Nt(Fe(d),292),d&&_d(l)){var O=(Xe(l)+"e").split("e"),I=o(O[0]+"e"+(+O[1]+d));return O=(Xe(I)+"e").split("e"),+(O[0]+"e"+(+O[1]-d))}return o(l)}}var lx=Pi&&1/ks(new Pi([,-0]))[1]==X?function(r){return new Pi(r)}:ec;function mp(r){return function(o){var l=At(o);return l==V?ul(o):l==Ne?Cb(o):vb(o,r(o))}}function or(r,o,l,d,O,I,k,L){var q=o&g;if(!q&&typeof r!="function")throw new mn(u);var ie=d?d.length:0;if(ie||(o&=-97,d=O=n),k=k===n?k:Tt(Fe(k),0),L=L===n?L:Fe(L),ie-=O?O.length:0,o&P){var se=d,de=O;d=O=n}var xe=q?n:kl(r),De=[r,o,l,d,O,se,de,I,k,L];if(xe&&Ox(De,xe),r=De[0],o=De[1],l=De[2],d=De[3],O=De[4],L=De[9]=De[9]===n?q?0:r.length:Tt(De[9]-ie,0),!L&&o&(x|E)&&(o&=-25),!o||o==v)var Pe=sx(r,o,l);else o==x||o==E?Pe=ax(r,o,L):(o==T||o==(v|T))&&!O.length?Pe=ux(r,o,l,d):Pe=ra.apply(n,De);var We=xe?Zd:Cp;return _p(We(Pe,De),r,o)}function gp(r,o,l,d){return r===n||An(r,Mi[l])&&!et.call(d,l)?o:r}function yp(r,o,l,d,O,I){return ft(r)&&ft(o)&&(I.set(o,r),Qs(r,o,n,yp,I),I.delete(o)),r}function cx(r){return Io(r)?n:r}function vp(r,o,l,d,O,I){var k=l&C,L=r.length,q=o.length;if(L!=q&&!(k&&q>L))return!1;var ie=I.get(r),se=I.get(o);if(ie&&se)return ie==o&&se==r;var de=-1,xe=!0,De=l&y?new Xr:n;for(I.set(r,o),I.set(o,r);++de<L;){var Pe=r[de],We=o[de];if(d)var Ie=k?d(We,Pe,de,o,r,I):d(Pe,We,de,r,o,I);if(Ie!==n){if(Ie)continue;xe=!1;break}if(De){if(!nl(o,function(Ue,He){if(!vo(De,He)&&(Pe===Ue||O(Pe,Ue,l,d,I)))return De.push(He)})){xe=!1;break}}else if(!(Pe===We||O(Pe,We,l,d,I))){xe=!1;break}}return I.delete(r),I.delete(o),xe}function fx(r,o,l,d,O,I,k){switch(l){case Jt:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case Pt:return!(r.byteLength!=o.byteLength||!I(new Bs(r),new Bs(o)));case ee:case ce:case le:return An(+r,+o);case Re:return r.name==o.name&&r.message==o.message;case we:case _e:return r==o+"";case V:var L=ul;case Ne:var q=d&C;if(L||(L=ks),r.size!=o.size&&!q)return!1;var ie=k.get(r);if(ie)return ie==o;d|=y,k.set(r,o);var se=vp(L(r),L(o),d,O,I,k);return k.delete(r),se;case Ve:if(Eo)return Eo.call(r)==Eo.call(o)}return!1}function dx(r,o,l,d,O,I){var k=l&C,L=Nl(r),q=L.length,ie=Nl(o),se=ie.length;if(q!=se&&!k)return!1;for(var de=q;de--;){var xe=L[de];if(!(k?xe in o:et.call(o,xe)))return!1}var De=I.get(r),Pe=I.get(o);if(De&&Pe)return De==o&&Pe==r;var We=!0;I.set(r,o),I.set(o,r);for(var Ie=k;++de<q;){xe=L[de];var Ue=r[xe],He=o[xe];if(d)var on=k?d(He,Ue,xe,o,r,I):d(Ue,He,xe,r,o,I);if(!(on===n?Ue===He||O(Ue,He,l,d,I):on)){We=!1;break}Ie||(Ie=xe=="constructor")}if(We&&!Ie){var Bt=r.constructor,sn=o.constructor;Bt!=sn&&"constructor"in r&&"constructor"in o&&!(typeof Bt=="function"&&Bt instanceof Bt&&typeof sn=="function"&&sn instanceof sn)&&(We=!1)}return I.delete(r),I.delete(o),We}function sr(r){return Bl(Op(r,n,Np),r+"")}function Nl(r){return zd(r,Ct,Ll)}function Al(r){return zd(r,Vt,bp)}var kl=Gs?function(r){return Gs.get(r)}:ec;function aa(r){for(var o=r.name+"",l=Ii[o],d=et.call(Ii,o)?l.length:0;d--;){var O=l[d],I=O.func;if(I==null||I==r)return O.name}return o}function $i(r){var o=et.call(M,"placeholder")?M:r;return o.placeholder}function Me(){var r=M.iteratee||Jl;return r=r===Jl?Bd:r,arguments.length?r(arguments[0],arguments[1]):r}function ua(r,o){var l=r.__data__;return wx(o)?l[typeof o=="string"?"string":"hash"]:l.map}function $l(r){for(var o=Ct(r),l=o.length;l--;){var d=o[l],O=r[d];o[l]=[d,O,Sp(O)]}return o}function Qr(r,o){var l=Eb(r,o);return Wd(l)?l:n}function px(r){var o=et.call(r,Yr),l=r[Yr];try{r[Yr]=n;var d=!0}catch{}var O=Fs.call(r);return d&&(o?r[Yr]=l:delete r[Yr]),O}var Ll=cl?function(r){return r==null?[]:(r=ot(r),Sr(cl(r),function(o){return Td.call(r,o)}))}:tc,bp=cl?function(r){for(var o=[];r;)Er(o,Ll(r)),r=Us(r);return o}:tc,At=Ft;(fl&&At(new fl(new ArrayBuffer(1)))!=Jt||wo&&At(new wo)!=V||dl&&At(dl.resolve())!=te||Pi&&At(new Pi)!=Ne||xo&&At(new xo)!=Et)&&(At=function(r){var o=Ft(r),l=o==ge?r.constructor:n,d=l?ei(l):"";if(d)switch(d){case Zb:return Jt;case Xb:return V;case Kb:return te;case Jb:return Ne;case Qb:return Et}return o});function hx(r,o,l){for(var d=-1,O=l.length;++d<O;){var I=l[d],k=I.size;switch(I.type){case"drop":r+=k;break;case"dropRight":o-=k;break;case"take":o=Nt(o,r+k);break;case"takeRight":r=Tt(r,o-k);break}}return{start:r,end:o}}function mx(r){var o=r.match(x0);return o?o[1].split(S0):[]}function wp(r,o,l){o=Rr(o,r);for(var d=-1,O=o.length,I=!1;++d<O;){var k=Hn(o[d]);if(!(I=r!=null&&l(r,k)))break;r=r[k]}return I||++d!=O?I:(O=r==null?0:r.length,!!O&&ma(O)&&ar(k,O)&&(ze(r)||ti(r)))}function gx(r){var o=r.length,l=new r.constructor(o);return o&&typeof r[0]=="string"&&et.call(r,"index")&&(l.index=r.index,l.input=r.input),l}function xp(r){return typeof r.constructor=="function"&&!Mo(r)?Ni(Us(r)):{}}function yx(r,o,l){var d=r.constructor;switch(o){case Pt:return Ml(r);case ee:case ce:return new d(+r);case Jt:return ex(r,l);case Rt:case qr:case It:case tr:case Pn:case zt:case go:case Vr:case yo:return rp(r,l);case V:return new d;case le:case _e:return new d(r);case we:return tx(r);case Ne:return new d;case Ve:return nx(r)}}function vx(r,o){var l=o.length;if(!l)return r;var d=l-1;return o[d]=(l>1?"& ":"")+o[d],o=o.join(l>2?", ":" "),r.replace(w0,`{
|
|
30
|
+
/* [wrapped with `+o+`] */
|
|
31
|
+
`)}function bx(r){return ze(r)||ti(r)||!!(Cd&&r&&r[Cd])}function ar(r,o){var l=typeof r;return o=o??fe,!!o&&(l=="number"||l!="symbol"&&P0.test(r))&&r>-1&&r%1==0&&r<o}function Wt(r,o,l){if(!ft(l))return!1;var d=typeof o;return(d=="number"?qt(l)&&ar(o,l.length):d=="string"&&o in l)?An(l[o],r):!1}function zl(r,o){if(ze(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||rn(r)?!0:Ds.test(r)||!Qt.test(r)||o!=null&&r in ot(o)}function wx(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function Fl(r){var o=aa(r),l=M[o];if(typeof l!="function"||!(o in je.prototype))return!1;if(r===l)return!0;var d=kl(l);return!!d&&r===d[0]}function xx(r){return!!Sd&&Sd in r}var Sx=Ls?ur:nc;function Mo(r){var o=r&&r.constructor,l=typeof o=="function"&&o.prototype||Mi;return r===l}function Sp(r){return r===r&&!ft(r)}function Ep(r,o){return function(l){return l==null?!1:l[r]===o&&(o!==n||r in ot(l))}}function Ex(r){var o=pa(r,function(d){return l.size===p&&l.clear(),d}),l=o.cache;return o}function Ox(r,o){var l=r[1],d=o[1],O=l|d,I=O<(v|g|D),k=d==D&&l==x||d==D&&l==A&&r[7].length<=o[8]||d==(D|A)&&o[7].length<=o[8]&&l==x;if(!(I||k))return r;d&v&&(r[2]=o[2],O|=l&v?0:m);var L=o[3];if(L){var q=r[3];r[3]=q?op(q,L,o[4]):L,r[4]=q?Or(r[3],h):o[4]}return L=o[5],L&&(q=r[5],r[5]=q?sp(q,L,o[6]):L,r[6]=q?Or(r[5],h):o[6]),L=o[7],L&&(r[7]=L),d&D&&(r[8]=r[8]==null?o[8]:Nt(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=O,r}function Tx(r){var o=[];if(r!=null)for(var l in ot(r))o.push(l);return o}function Cx(r){return Fs.call(r)}function Op(r,o,l){return o=Tt(o===n?r.length-1:o,0),function(){for(var d=arguments,O=-1,I=Tt(d.length-o,0),k=Q(I);++O<I;)k[O]=d[o+O];O=-1;for(var L=Q(o+1);++O<o;)L[O]=d[O];return L[o]=l(k),en(r,this,L)}}function Tp(r,o){return o.length<2?r:Jr(r,vn(o,0,-1))}function _x(r,o){for(var l=r.length,d=Nt(o.length,l),O=Ht(r);d--;){var I=o[d];r[d]=ar(I,l)?O[I]:n}return r}function Wl(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var Cp=Rp(Zd),Po=Ub||function(r,o){return Dt.setTimeout(r,o)},Bl=Rp(Xw);function _p(r,o,l){var d=o+"";return Bl(r,vx(d,Rx(mx(d),l)))}function Rp(r){var o=0,l=0;return function(){var d=Vb(),O=j-(d-l);if(l=d,O>0){if(++o>=_)return arguments[0]}else o=0;return r.apply(n,arguments)}}function la(r,o){var l=-1,d=r.length,O=d-1;for(o=o===n?d:o;++l<o;){var I=El(l,O),k=r[I];r[I]=r[l],r[l]=k}return r.length=o,r}var Dp=Ex(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(y0,function(l,d,O,I){o.push(O?I.replace(T0,"$1"):d||l)}),o});function Hn(r){if(typeof r=="string"||rn(r))return r;var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function ei(r){if(r!=null){try{return zs.call(r)}catch{}try{return r+""}catch{}}return""}function Rx(r,o){return hn(pe,function(l){var d="_."+l[0];o&l[1]&&!Ns(r,d)&&r.push(d)}),r.sort()}function Mp(r){if(r instanceof je)return r.clone();var o=new gn(r.__wrapped__,r.__chain__);return o.__actions__=Ht(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function Dx(r,o,l){(l?Wt(r,o,l):o===n)?o=1:o=Tt(Fe(o),0);var d=r==null?0:r.length;if(!d||o<1)return[];for(var O=0,I=0,k=Q(qs(d/o));O<d;)k[I++]=vn(r,O,O+=o);return k}function Mx(r){for(var o=-1,l=r==null?0:r.length,d=0,O=[];++o<l;){var I=r[o];I&&(O[d++]=I)}return O}function Px(){var r=arguments.length;if(!r)return[];for(var o=Q(r-1),l=arguments[0],d=r;d--;)o[d-1]=arguments[d];return Er(ze(l)?Ht(l):[l],Mt(o,1))}var Ix=Be(function(r,o){return vt(r)?To(r,Mt(o,1,vt,!0)):[]}),Nx=Be(function(r,o){var l=bn(o);return vt(l)&&(l=n),vt(r)?To(r,Mt(o,1,vt,!0),Me(l,2)):[]}),Ax=Be(function(r,o){var l=bn(o);return vt(l)&&(l=n),vt(r)?To(r,Mt(o,1,vt,!0),n,l):[]});function kx(r,o,l){var d=r==null?0:r.length;return d?(o=l||o===n?1:Fe(o),vn(r,o<0?0:o,d)):[]}function $x(r,o,l){var d=r==null?0:r.length;return d?(o=l||o===n?1:Fe(o),o=d-o,vn(r,0,o<0?0:o)):[]}function Lx(r,o){return r&&r.length?ta(r,Me(o,3),!0,!0):[]}function zx(r,o){return r&&r.length?ta(r,Me(o,3),!0):[]}function Fx(r,o,l,d){var O=r==null?0:r.length;return O?(l&&typeof l!="number"&&Wt(r,o,l)&&(l=0,d=O),Pw(r,o,l,d)):[]}function Pp(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var O=l==null?0:Fe(l);return O<0&&(O=Tt(d+O,0)),As(r,Me(o,3),O)}function Ip(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var O=d-1;return l!==n&&(O=Fe(l),O=l<0?Tt(d+O,0):Nt(O,d-1)),As(r,Me(o,3),O,!0)}function Np(r){var o=r==null?0:r.length;return o?Mt(r,1):[]}function Wx(r){var o=r==null?0:r.length;return o?Mt(r,X):[]}function Bx(r,o){var l=r==null?0:r.length;return l?(o=o===n?1:Fe(o),Mt(r,o)):[]}function Ux(r){for(var o=-1,l=r==null?0:r.length,d={};++o<l;){var O=r[o];d[O[0]]=O[1]}return d}function Ap(r){return r&&r.length?r[0]:n}function jx(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var O=l==null?0:Fe(l);return O<0&&(O=Tt(d+O,0)),Ci(r,o,O)}function Hx(r){var o=r==null?0:r.length;return o?vn(r,0,-1):[]}var qx=Be(function(r){var o=lt(r,Rl);return o.length&&o[0]===r[0]?vl(o):[]}),Vx=Be(function(r){var o=bn(r),l=lt(r,Rl);return o===bn(l)?o=n:l.pop(),l.length&&l[0]===r[0]?vl(l,Me(o,2)):[]}),Gx=Be(function(r){var o=bn(r),l=lt(r,Rl);return o=typeof o=="function"?o:n,o&&l.pop(),l.length&&l[0]===r[0]?vl(l,n,o):[]});function Yx(r,o){return r==null?"":Hb.call(r,o)}function bn(r){var o=r==null?0:r.length;return o?r[o-1]:n}function Zx(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var O=d;return l!==n&&(O=Fe(l),O=O<0?Tt(d+O,0):Nt(O,d-1)),o===o?Rb(r,o,O):As(r,hd,O,!0)}function Xx(r,o){return r&&r.length?qd(r,Fe(o)):n}var Kx=Be(kp);function kp(r,o){return r&&r.length&&o&&o.length?Sl(r,o):r}function Jx(r,o,l){return r&&r.length&&o&&o.length?Sl(r,o,Me(l,2)):r}function Qx(r,o,l){return r&&r.length&&o&&o.length?Sl(r,o,n,l):r}var eS=sr(function(r,o){var l=r==null?0:r.length,d=hl(r,o);return Yd(r,lt(o,function(O){return ar(O,l)?+O:O}).sort(ip)),d});function tS(r,o){var l=[];if(!(r&&r.length))return l;var d=-1,O=[],I=r.length;for(o=Me(o,3);++d<I;){var k=r[d];o(k,d,r)&&(l.push(k),O.push(d))}return Yd(r,O),l}function Ul(r){return r==null?r:Yb.call(r)}function nS(r,o,l){var d=r==null?0:r.length;return d?(l&&typeof l!="number"&&Wt(r,o,l)?(o=0,l=d):(o=o==null?0:Fe(o),l=l===n?d:Fe(l)),vn(r,o,l)):[]}function rS(r,o){return ea(r,o)}function iS(r,o,l){return Tl(r,o,Me(l,2))}function oS(r,o){var l=r==null?0:r.length;if(l){var d=ea(r,o);if(d<l&&An(r[d],o))return d}return-1}function sS(r,o){return ea(r,o,!0)}function aS(r,o,l){return Tl(r,o,Me(l,2),!0)}function uS(r,o){var l=r==null?0:r.length;if(l){var d=ea(r,o,!0)-1;if(An(r[d],o))return d}return-1}function lS(r){return r&&r.length?Xd(r):[]}function cS(r,o){return r&&r.length?Xd(r,Me(o,2)):[]}function fS(r){var o=r==null?0:r.length;return o?vn(r,1,o):[]}function dS(r,o,l){return r&&r.length?(o=l||o===n?1:Fe(o),vn(r,0,o<0?0:o)):[]}function pS(r,o,l){var d=r==null?0:r.length;return d?(o=l||o===n?1:Fe(o),o=d-o,vn(r,o<0?0:o,d)):[]}function hS(r,o){return r&&r.length?ta(r,Me(o,3),!1,!0):[]}function mS(r,o){return r&&r.length?ta(r,Me(o,3)):[]}var gS=Be(function(r){return _r(Mt(r,1,vt,!0))}),yS=Be(function(r){var o=bn(r);return vt(o)&&(o=n),_r(Mt(r,1,vt,!0),Me(o,2))}),vS=Be(function(r){var o=bn(r);return o=typeof o=="function"?o:n,_r(Mt(r,1,vt,!0),n,o)});function bS(r){return r&&r.length?_r(r):[]}function wS(r,o){return r&&r.length?_r(r,Me(o,2)):[]}function xS(r,o){return o=typeof o=="function"?o:n,r&&r.length?_r(r,n,o):[]}function jl(r){if(!(r&&r.length))return[];var o=0;return r=Sr(r,function(l){if(vt(l))return o=Tt(l.length,o),!0}),sl(o,function(l){return lt(r,rl(l))})}function $p(r,o){if(!(r&&r.length))return[];var l=jl(r);return o==null?l:lt(l,function(d){return en(o,n,d)})}var SS=Be(function(r,o){return vt(r)?To(r,o):[]}),ES=Be(function(r){return _l(Sr(r,vt))}),OS=Be(function(r){var o=bn(r);return vt(o)&&(o=n),_l(Sr(r,vt),Me(o,2))}),TS=Be(function(r){var o=bn(r);return o=typeof o=="function"?o:n,_l(Sr(r,vt),n,o)}),CS=Be(jl);function _S(r,o){return ep(r||[],o||[],Oo)}function RS(r,o){return ep(r||[],o||[],Ro)}var DS=Be(function(r){var o=r.length,l=o>1?r[o-1]:n;return l=typeof l=="function"?(r.pop(),l):n,$p(r,l)});function Lp(r){var o=M(r);return o.__chain__=!0,o}function MS(r,o){return o(r),r}function ca(r,o){return o(r)}var PS=sr(function(r){var o=r.length,l=o?r[0]:0,d=this.__wrapped__,O=function(I){return hl(I,r)};return o>1||this.__actions__.length||!(d instanceof je)||!ar(l)?this.thru(O):(d=d.slice(l,+l+(o?1:0)),d.__actions__.push({func:ca,args:[O],thisArg:n}),new gn(d,this.__chain__).thru(function(I){return o&&!I.length&&I.push(n),I}))});function IS(){return Lp(this)}function NS(){return new gn(this.value(),this.__chain__)}function AS(){this.__values__===n&&(this.__values__=Kp(this.value()));var r=this.__index__>=this.__values__.length,o=r?n:this.__values__[this.__index__++];return{done:r,value:o}}function kS(){return this}function $S(r){for(var o,l=this;l instanceof Zs;){var d=Mp(l);d.__index__=0,d.__values__=n,o?O.__wrapped__=d:o=d;var O=d;l=l.__wrapped__}return O.__wrapped__=r,o}function LS(){var r=this.__wrapped__;if(r instanceof je){var o=r;return this.__actions__.length&&(o=new je(this)),o=o.reverse(),o.__actions__.push({func:ca,args:[Ul],thisArg:n}),new gn(o,this.__chain__)}return this.thru(Ul)}function zS(){return Qd(this.__wrapped__,this.__actions__)}var FS=na(function(r,o,l){et.call(r,l)?++r[l]:ir(r,l,1)});function WS(r,o,l){var d=ze(r)?dd:Mw;return l&&Wt(r,o,l)&&(o=n),d(r,Me(o,3))}function BS(r,o){var l=ze(r)?Sr:$d;return l(r,Me(o,3))}var US=cp(Pp),jS=cp(Ip);function HS(r,o){return Mt(fa(r,o),1)}function qS(r,o){return Mt(fa(r,o),X)}function VS(r,o,l){return l=l===n?1:Fe(l),Mt(fa(r,o),l)}function zp(r,o){var l=ze(r)?hn:Cr;return l(r,Me(o,3))}function Fp(r,o){var l=ze(r)?fb:kd;return l(r,Me(o,3))}var GS=na(function(r,o,l){et.call(r,l)?r[l].push(o):ir(r,l,[o])});function YS(r,o,l,d){r=qt(r)?r:zi(r),l=l&&!d?Fe(l):0;var O=r.length;return l<0&&(l=Tt(O+l,0)),ga(r)?l<=O&&r.indexOf(o,l)>-1:!!O&&Ci(r,o,l)>-1}var ZS=Be(function(r,o,l){var d=-1,O=typeof o=="function",I=qt(r)?Q(r.length):[];return Cr(r,function(k){I[++d]=O?en(o,k,l):Co(k,o,l)}),I}),XS=na(function(r,o,l){ir(r,l,o)});function fa(r,o){var l=ze(r)?lt:Ud;return l(r,Me(o,3))}function KS(r,o,l,d){return r==null?[]:(ze(o)||(o=o==null?[]:[o]),l=d?n:l,ze(l)||(l=l==null?[]:[l]),Vd(r,o,l))}var JS=na(function(r,o,l){r[l?0:1].push(o)},function(){return[[],[]]});function QS(r,o,l){var d=ze(r)?tl:gd,O=arguments.length<3;return d(r,Me(o,4),l,O,Cr)}function e1(r,o,l){var d=ze(r)?db:gd,O=arguments.length<3;return d(r,Me(o,4),l,O,kd)}function t1(r,o){var l=ze(r)?Sr:$d;return l(r,ha(Me(o,3)))}function n1(r){var o=ze(r)?Pd:Yw;return o(r)}function r1(r,o,l){(l?Wt(r,o,l):o===n)?o=1:o=Fe(o);var d=ze(r)?Tw:Zw;return d(r,o)}function i1(r){var o=ze(r)?Cw:Kw;return o(r)}function o1(r){if(r==null)return 0;if(qt(r))return ga(r)?Ri(r):r.length;var o=At(r);return o==V||o==Ne?r.size:wl(r).length}function s1(r,o,l){var d=ze(r)?nl:Jw;return l&&Wt(r,o,l)&&(o=n),d(r,Me(o,3))}var a1=Be(function(r,o){if(r==null)return[];var l=o.length;return l>1&&Wt(r,o[0],o[1])?o=[]:l>2&&Wt(o[0],o[1],o[2])&&(o=[o[0]]),Vd(r,Mt(o,1),[])}),da=Bb||function(){return Dt.Date.now()};function u1(r,o){if(typeof o!="function")throw new mn(u);return r=Fe(r),function(){if(--r<1)return o.apply(this,arguments)}}function Wp(r,o,l){return o=l?n:o,o=r&&o==null?r.length:o,or(r,D,n,n,n,n,o)}function Bp(r,o){var l;if(typeof o!="function")throw new mn(u);return r=Fe(r),function(){return--r>0&&(l=o.apply(this,arguments)),r<=1&&(o=n),l}}var Hl=Be(function(r,o,l){var d=v;if(l.length){var O=Or(l,$i(Hl));d|=T}return or(r,d,o,l,O)}),Up=Be(function(r,o,l){var d=v|g;if(l.length){var O=Or(l,$i(Up));d|=T}return or(o,d,r,l,O)});function jp(r,o,l){o=l?n:o;var d=or(r,x,n,n,n,n,n,o);return d.placeholder=jp.placeholder,d}function Hp(r,o,l){o=l?n:o;var d=or(r,E,n,n,n,n,n,o);return d.placeholder=Hp.placeholder,d}function qp(r,o,l){var d,O,I,k,L,q,ie=0,se=!1,de=!1,xe=!0;if(typeof r!="function")throw new mn(u);o=wn(o)||0,ft(l)&&(se=!!l.leading,de="maxWait"in l,I=de?Tt(wn(l.maxWait)||0,o):I,xe="trailing"in l?!!l.trailing:xe);function De(bt){var kn=d,cr=O;return d=O=n,ie=bt,k=r.apply(cr,kn),k}function Pe(bt){return ie=bt,L=Po(Ue,o),se?De(bt):k}function We(bt){var kn=bt-q,cr=bt-ie,ch=o-kn;return de?Nt(ch,I-cr):ch}function Ie(bt){var kn=bt-q,cr=bt-ie;return q===n||kn>=o||kn<0||de&&cr>=I}function Ue(){var bt=da();if(Ie(bt))return He(bt);L=Po(Ue,We(bt))}function He(bt){return L=n,xe&&d?De(bt):(d=O=n,k)}function on(){L!==n&&tp(L),ie=0,d=q=O=L=n}function Bt(){return L===n?k:He(da())}function sn(){var bt=da(),kn=Ie(bt);if(d=arguments,O=this,q=bt,kn){if(L===n)return Pe(q);if(de)return tp(L),L=Po(Ue,o),De(q)}return L===n&&(L=Po(Ue,o)),k}return sn.cancel=on,sn.flush=Bt,sn}var l1=Be(function(r,o){return Ad(r,1,o)}),c1=Be(function(r,o,l){return Ad(r,wn(o)||0,l)});function f1(r){return or(r,z)}function pa(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new mn(u);var l=function(){var d=arguments,O=o?o.apply(this,d):d[0],I=l.cache;if(I.has(O))return I.get(O);var k=r.apply(this,d);return l.cache=I.set(O,k)||I,k};return l.cache=new(pa.Cache||rr),l}pa.Cache=rr;function ha(r){if(typeof r!="function")throw new mn(u);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function d1(r){return Bp(2,r)}var p1=Qw(function(r,o){o=o.length==1&&ze(o[0])?lt(o[0],tn(Me())):lt(Mt(o,1),tn(Me()));var l=o.length;return Be(function(d){for(var O=-1,I=Nt(d.length,l);++O<I;)d[O]=o[O].call(this,d[O]);return en(r,this,d)})}),ql=Be(function(r,o){var l=Or(o,$i(ql));return or(r,T,n,o,l)}),Vp=Be(function(r,o){var l=Or(o,$i(Vp));return or(r,P,n,o,l)}),h1=sr(function(r,o){return or(r,A,n,n,n,o)});function m1(r,o){if(typeof r!="function")throw new mn(u);return o=o===n?o:Fe(o),Be(r,o)}function g1(r,o){if(typeof r!="function")throw new mn(u);return o=o==null?0:Tt(Fe(o),0),Be(function(l){var d=l[o],O=Dr(l,0,o);return d&&Er(O,d),en(r,this,O)})}function y1(r,o,l){var d=!0,O=!0;if(typeof r!="function")throw new mn(u);return ft(l)&&(d="leading"in l?!!l.leading:d,O="trailing"in l?!!l.trailing:O),qp(r,o,{leading:d,maxWait:o,trailing:O})}function v1(r){return Wp(r,1)}function b1(r,o){return ql(Dl(o),r)}function w1(){if(!arguments.length)return[];var r=arguments[0];return ze(r)?r:[r]}function x1(r){return yn(r,w)}function S1(r,o){return o=typeof o=="function"?o:n,yn(r,w,o)}function E1(r){return yn(r,S|w)}function O1(r,o){return o=typeof o=="function"?o:n,yn(r,S|w,o)}function T1(r,o){return o==null||Nd(r,o,Ct(o))}function An(r,o){return r===o||r!==r&&o!==o}var C1=sa(yl),_1=sa(function(r,o){return r>=o}),ti=Fd(function(){return arguments}())?Fd:function(r){return dt(r)&&et.call(r,"callee")&&!Td.call(r,"callee")},ze=Q.isArray,R1=sd?tn(sd):$w;function qt(r){return r!=null&&ma(r.length)&&!ur(r)}function vt(r){return dt(r)&&qt(r)}function D1(r){return r===!0||r===!1||dt(r)&&Ft(r)==ee}var Mr=jb||nc,M1=ad?tn(ad):Lw;function P1(r){return dt(r)&&r.nodeType===1&&!Io(r)}function I1(r){if(r==null)return!0;if(qt(r)&&(ze(r)||typeof r=="string"||typeof r.splice=="function"||Mr(r)||Li(r)||ti(r)))return!r.length;var o=At(r);if(o==V||o==Ne)return!r.size;if(Mo(r))return!wl(r).length;for(var l in r)if(et.call(r,l))return!1;return!0}function N1(r,o){return _o(r,o)}function A1(r,o,l){l=typeof l=="function"?l:n;var d=l?l(r,o):n;return d===n?_o(r,o,n,l):!!d}function Vl(r){if(!dt(r))return!1;var o=Ft(r);return o==Re||o==Ee||typeof r.message=="string"&&typeof r.name=="string"&&!Io(r)}function k1(r){return typeof r=="number"&&_d(r)}function ur(r){if(!ft(r))return!1;var o=Ft(r);return o==N||o==W||o==ve||o==he}function Gp(r){return typeof r=="number"&&r==Fe(r)}function ma(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=fe}function ft(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function dt(r){return r!=null&&typeof r=="object"}var Yp=ud?tn(ud):Fw;function $1(r,o){return r===o||bl(r,o,$l(o))}function L1(r,o,l){return l=typeof l=="function"?l:n,bl(r,o,$l(o),l)}function z1(r){return Zp(r)&&r!=+r}function F1(r){if(Sx(r))throw new Le(a);return Wd(r)}function W1(r){return r===null}function B1(r){return r==null}function Zp(r){return typeof r=="number"||dt(r)&&Ft(r)==le}function Io(r){if(!dt(r)||Ft(r)!=ge)return!1;var o=Us(r);if(o===null)return!0;var l=et.call(o,"constructor")&&o.constructor;return typeof l=="function"&&l instanceof l&&zs.call(l)==Lb}var Gl=ld?tn(ld):Ww;function U1(r){return Gp(r)&&r>=-9007199254740991&&r<=fe}var Xp=cd?tn(cd):Bw;function ga(r){return typeof r=="string"||!ze(r)&&dt(r)&&Ft(r)==_e}function rn(r){return typeof r=="symbol"||dt(r)&&Ft(r)==Ve}var Li=fd?tn(fd):Uw;function j1(r){return r===n}function H1(r){return dt(r)&&At(r)==Et}function q1(r){return dt(r)&&Ft(r)==Kt}var V1=sa(xl),G1=sa(function(r,o){return r<=o});function Kp(r){if(!r)return[];if(qt(r))return ga(r)?In(r):Ht(r);if(bo&&r[bo])return Tb(r[bo]());var o=At(r),l=o==V?ul:o==Ne?ks:zi;return l(r)}function lr(r){if(!r)return r===0?r:0;if(r=wn(r),r===X||r===-1/0){var o=r<0?-1:1;return o*ae}return r===r?r:0}function Fe(r){var o=lr(r),l=o%1;return o===o?l?o-l:o:0}function Jp(r){return r?Kr(Fe(r),0,$):0}function wn(r){if(typeof r=="number")return r;if(rn(r))return G;if(ft(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=ft(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=yd(r);var l=R0.test(r);return l||M0.test(r)?ub(r.slice(2),l?2:8):_0.test(r)?G:+r}function Qp(r){return jn(r,Vt(r))}function Y1(r){return r?Kr(Fe(r),-9007199254740991,fe):r===0?r:0}function Xe(r){return r==null?"":nn(r)}var Z1=Ai(function(r,o){if(Mo(o)||qt(o)){jn(o,Ct(o),r);return}for(var l in o)et.call(o,l)&&Oo(r,l,o[l])}),eh=Ai(function(r,o){jn(o,Vt(o),r)}),ya=Ai(function(r,o,l,d){jn(o,Vt(o),r,d)}),X1=Ai(function(r,o,l,d){jn(o,Ct(o),r,d)}),K1=sr(hl);function J1(r,o){var l=Ni(r);return o==null?l:Id(l,o)}var Q1=Be(function(r,o){r=ot(r);var l=-1,d=o.length,O=d>2?o[2]:n;for(O&&Wt(o[0],o[1],O)&&(d=1);++l<d;)for(var I=o[l],k=Vt(I),L=-1,q=k.length;++L<q;){var ie=k[L],se=r[ie];(se===n||An(se,Mi[ie])&&!et.call(r,ie))&&(r[ie]=I[ie])}return r}),eE=Be(function(r){return r.push(n,yp),en(th,n,r)});function tE(r,o){return pd(r,Me(o,3),Un)}function nE(r,o){return pd(r,Me(o,3),gl)}function rE(r,o){return r==null?r:ml(r,Me(o,3),Vt)}function iE(r,o){return r==null?r:Ld(r,Me(o,3),Vt)}function oE(r,o){return r&&Un(r,Me(o,3))}function sE(r,o){return r&&gl(r,Me(o,3))}function aE(r){return r==null?[]:Js(r,Ct(r))}function uE(r){return r==null?[]:Js(r,Vt(r))}function Yl(r,o,l){var d=r==null?n:Jr(r,o);return d===n?l:d}function lE(r,o){return r!=null&&wp(r,o,Iw)}function Zl(r,o){return r!=null&&wp(r,o,Nw)}var cE=dp(function(r,o,l){o!=null&&typeof o.toString!="function"&&(o=Fs.call(o)),r[o]=l},Kl(Gt)),fE=dp(function(r,o,l){o!=null&&typeof o.toString!="function"&&(o=Fs.call(o)),et.call(r,o)?r[o].push(l):r[o]=[l]},Me),dE=Be(Co);function Ct(r){return qt(r)?Md(r):wl(r)}function Vt(r){return qt(r)?Md(r,!0):jw(r)}function pE(r,o){var l={};return o=Me(o,3),Un(r,function(d,O,I){ir(l,o(d,O,I),d)}),l}function hE(r,o){var l={};return o=Me(o,3),Un(r,function(d,O,I){ir(l,O,o(d,O,I))}),l}var mE=Ai(function(r,o,l){Qs(r,o,l)}),th=Ai(function(r,o,l,d){Qs(r,o,l,d)}),gE=sr(function(r,o){var l={};if(r==null)return l;var d=!1;o=lt(o,function(I){return I=Rr(I,r),d||(d=I.length>1),I}),jn(r,Al(r),l),d&&(l=yn(l,S|R|w,cx));for(var O=o.length;O--;)Cl(l,o[O]);return l});function yE(r,o){return nh(r,ha(Me(o)))}var vE=sr(function(r,o){return r==null?{}:qw(r,o)});function nh(r,o){if(r==null)return{};var l=lt(Al(r),function(d){return[d]});return o=Me(o),Gd(r,l,function(d,O){return o(d,O[0])})}function bE(r,o,l){o=Rr(o,r);var d=-1,O=o.length;for(O||(O=1,r=n);++d<O;){var I=r==null?n:r[Hn(o[d])];I===n&&(d=O,I=l),r=ur(I)?I.call(r):I}return r}function wE(r,o,l){return r==null?r:Ro(r,o,l)}function xE(r,o,l,d){return d=typeof d=="function"?d:n,r==null?r:Ro(r,o,l,d)}var rh=mp(Ct),ih=mp(Vt);function SE(r,o,l){var d=ze(r),O=d||Mr(r)||Li(r);if(o=Me(o,4),l==null){var I=r&&r.constructor;O?l=d?new I:[]:ft(r)?l=ur(I)?Ni(Us(r)):{}:l={}}return(O?hn:Un)(r,function(k,L,q){return o(l,k,L,q)}),l}function EE(r,o){return r==null?!0:Cl(r,o)}function OE(r,o,l){return r==null?r:Jd(r,o,Dl(l))}function TE(r,o,l,d){return d=typeof d=="function"?d:n,r==null?r:Jd(r,o,Dl(l),d)}function zi(r){return r==null?[]:al(r,Ct(r))}function CE(r){return r==null?[]:al(r,Vt(r))}function _E(r,o,l){return l===n&&(l=o,o=n),l!==n&&(l=wn(l),l=l===l?l:0),o!==n&&(o=wn(o),o=o===o?o:0),Kr(wn(r),o,l)}function RE(r,o,l){return o=lr(o),l===n?(l=o,o=0):l=lr(l),r=wn(r),Aw(r,o,l)}function DE(r,o,l){if(l&&typeof l!="boolean"&&Wt(r,o,l)&&(o=l=n),l===n&&(typeof o=="boolean"?(l=o,o=n):typeof r=="boolean"&&(l=r,r=n)),r===n&&o===n?(r=0,o=1):(r=lr(r),o===n?(o=r,r=0):o=lr(o)),r>o){var d=r;r=o,o=d}if(l||r%1||o%1){var O=Rd();return Nt(r+O*(o-r+ab("1e-"+((O+"").length-1))),o)}return El(r,o)}var ME=ki(function(r,o,l){return o=o.toLowerCase(),r+(l?oh(o):o)});function oh(r){return Xl(Xe(r).toLowerCase())}function sh(r){return r=Xe(r),r&&r.replace(I0,wb).replace(K0,"")}function PE(r,o,l){r=Xe(r),o=nn(o);var d=r.length;l=l===n?d:Kr(Fe(l),0,d);var O=l;return l-=o.length,l>=0&&r.slice(l,O)==o}function IE(r){return r=Xe(r),r&&Uu.test(r)?r.replace(Rs,xb):r}function NE(r){return r=Xe(r),r&&v0.test(r)?r.replace(qu,"\\$&"):r}var AE=ki(function(r,o,l){return r+(l?"-":"")+o.toLowerCase()}),kE=ki(function(r,o,l){return r+(l?" ":"")+o.toLowerCase()}),$E=lp("toLowerCase");function LE(r,o,l){r=Xe(r),o=Fe(o);var d=o?Ri(r):0;if(!o||d>=o)return r;var O=(o-d)/2;return oa(Vs(O),l)+r+oa(qs(O),l)}function zE(r,o,l){r=Xe(r),o=Fe(o);var d=o?Ri(r):0;return o&&d<o?r+oa(o-d,l):r}function FE(r,o,l){r=Xe(r),o=Fe(o);var d=o?Ri(r):0;return o&&d<o?oa(o-d,l)+r:r}function WE(r,o,l){return l||o==null?o=0:o&&(o=+o),Gb(Xe(r).replace(Vu,""),o||0)}function BE(r,o,l){return(l?Wt(r,o,l):o===n)?o=1:o=Fe(o),Ol(Xe(r),o)}function UE(){var r=arguments,o=Xe(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var jE=ki(function(r,o,l){return r+(l?"_":"")+o.toLowerCase()});function HE(r,o,l){return l&&typeof l!="number"&&Wt(r,o,l)&&(o=l=n),l=l===n?$:l>>>0,l?(r=Xe(r),r&&(typeof o=="string"||o!=null&&!Gl(o))&&(o=nn(o),!o&&_i(r))?Dr(In(r),0,l):r.split(o,l)):[]}var qE=ki(function(r,o,l){return r+(l?" ":"")+Xl(o)});function VE(r,o,l){return r=Xe(r),l=l==null?0:Kr(Fe(l),0,r.length),o=nn(o),r.slice(l,l+o.length)==o}function GE(r,o,l){var d=M.templateSettings;l&&Wt(r,o,l)&&(o=n),r=Xe(r),o=ya({},o,d,gp);var O=ya({},o.imports,d.imports,gp),I=Ct(O),k=al(O,I),L,q,ie=0,se=o.interpolate||Ms,de="__p += '",xe=ll((o.escape||Ms).source+"|"+se.source+"|"+(se===$e?C0:Ms).source+"|"+(o.evaluate||Ms).source+"|$","g"),De="//# sourceURL="+(et.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nb+"]")+`
|
|
32
|
+
`;r.replace(xe,function(Ie,Ue,He,on,Bt,sn){return He||(He=on),de+=r.slice(ie,sn).replace(N0,Sb),Ue&&(L=!0,de+=`' +
|
|
33
|
+
__e(`+Ue+`) +
|
|
34
|
+
'`),Bt&&(q=!0,de+=`';
|
|
35
|
+
`+Bt+`;
|
|
36
|
+
__p += '`),He&&(de+=`' +
|
|
37
|
+
((__t = (`+He+`)) == null ? '' : __t) +
|
|
38
|
+
'`),ie=sn+Ie.length,Ie}),de+=`';
|
|
39
|
+
`;var Pe=et.call(o,"variable")&&o.variable;if(!Pe)de=`with (obj) {
|
|
40
|
+
`+de+`
|
|
41
|
+
}
|
|
42
|
+
`;else if(O0.test(Pe))throw new Le(c);de=(q?de.replace(Oi,""):de).replace(Fu,"$1").replace(Wu,"$1;"),de="function("+(Pe||"obj")+`) {
|
|
43
|
+
`+(Pe?"":`obj || (obj = {});
|
|
44
|
+
`)+"var __t, __p = ''"+(L?", __e = _.escape":"")+(q?`, __j = Array.prototype.join;
|
|
45
|
+
function print() { __p += __j.call(arguments, '') }
|
|
46
|
+
`:`;
|
|
47
|
+
`)+de+`return __p
|
|
48
|
+
}`;var We=uh(function(){return Ye(I,De+"return "+de).apply(n,k)});if(We.source=de,Vl(We))throw We;return We}function YE(r){return Xe(r).toLowerCase()}function ZE(r){return Xe(r).toUpperCase()}function XE(r,o,l){if(r=Xe(r),r&&(l||o===n))return yd(r);if(!r||!(o=nn(o)))return r;var d=In(r),O=In(o),I=vd(d,O),k=bd(d,O)+1;return Dr(d,I,k).join("")}function KE(r,o,l){if(r=Xe(r),r&&(l||o===n))return r.slice(0,xd(r)+1);if(!r||!(o=nn(o)))return r;var d=In(r),O=bd(d,In(o))+1;return Dr(d,0,O).join("")}function JE(r,o,l){if(r=Xe(r),r&&(l||o===n))return r.replace(Vu,"");if(!r||!(o=nn(o)))return r;var d=In(r),O=vd(d,In(o));return Dr(d,O).join("")}function QE(r,o){var l=K,d=Z;if(ft(o)){var O="separator"in o?o.separator:O;l="length"in o?Fe(o.length):l,d="omission"in o?nn(o.omission):d}r=Xe(r);var I=r.length;if(_i(r)){var k=In(r);I=k.length}if(l>=I)return r;var L=l-Ri(d);if(L<1)return d;var q=k?Dr(k,0,L).join(""):r.slice(0,L);if(O===n)return q+d;if(k&&(L+=q.length-L),Gl(O)){if(r.slice(L).search(O)){var ie,se=q;for(O.global||(O=ll(O.source,Xe(Ff.exec(O))+"g")),O.lastIndex=0;ie=O.exec(se);)var de=ie.index;q=q.slice(0,de===n?L:de)}}else if(r.indexOf(nn(O),L)!=L){var xe=q.lastIndexOf(O);xe>-1&&(q=q.slice(0,xe))}return q+d}function eO(r){return r=Xe(r),r&&Bu.test(r)?r.replace(_s,Db):r}var tO=ki(function(r,o,l){return r+(l?" ":"")+o.toUpperCase()}),Xl=lp("toUpperCase");function ah(r,o,l){return r=Xe(r),o=l?n:o,o===n?Ob(r)?Ib(r):mb(r):r.match(o)||[]}var uh=Be(function(r,o){try{return en(r,n,o)}catch(l){return Vl(l)?l:new Le(l)}}),nO=sr(function(r,o){return hn(o,function(l){l=Hn(l),ir(r,l,Hl(r[l],r))}),r});function rO(r){var o=r==null?0:r.length,l=Me();return r=o?lt(r,function(d){if(typeof d[1]!="function")throw new mn(u);return[l(d[0]),d[1]]}):[],Be(function(d){for(var O=-1;++O<o;){var I=r[O];if(en(I[0],this,d))return en(I[1],this,d)}})}function iO(r){return Dw(yn(r,S))}function Kl(r){return function(){return r}}function oO(r,o){return r==null||r!==r?o:r}var sO=fp(),aO=fp(!0);function Gt(r){return r}function Jl(r){return Bd(typeof r=="function"?r:yn(r,S))}function uO(r){return jd(yn(r,S))}function lO(r,o){return Hd(r,yn(o,S))}var cO=Be(function(r,o){return function(l){return Co(l,r,o)}}),fO=Be(function(r,o){return function(l){return Co(r,l,o)}});function Ql(r,o,l){var d=Ct(o),O=Js(o,d);l==null&&!(ft(o)&&(O.length||!d.length))&&(l=o,o=r,r=this,O=Js(o,Ct(o)));var I=!(ft(l)&&"chain"in l)||!!l.chain,k=ur(r);return hn(O,function(L){var q=o[L];r[L]=q,k&&(r.prototype[L]=function(){var ie=this.__chain__;if(I||ie){var se=r(this.__wrapped__),de=se.__actions__=Ht(this.__actions__);return de.push({func:q,args:arguments,thisArg:r}),se.__chain__=ie,se}return q.apply(r,Er([this.value()],arguments))})}),r}function dO(){return Dt._===this&&(Dt._=zb),this}function ec(){}function pO(r){return r=Fe(r),Be(function(o){return qd(o,r)})}var hO=Pl(lt),mO=Pl(dd),gO=Pl(nl);function lh(r){return zl(r)?rl(Hn(r)):Vw(r)}function yO(r){return function(o){return r==null?n:Jr(r,o)}}var vO=pp(),bO=pp(!0);function tc(){return[]}function nc(){return!1}function wO(){return{}}function xO(){return""}function SO(){return!0}function EO(r,o){if(r=Fe(r),r<1||r>fe)return[];var l=$,d=Nt(r,$);o=Me(o),r-=$;for(var O=sl(d,o);++l<r;)o(l);return O}function OO(r){return ze(r)?lt(r,Hn):rn(r)?[r]:Ht(Dp(Xe(r)))}function TO(r){var o=++$b;return Xe(r)+o}var CO=ia(function(r,o){return r+o},0),_O=Il("ceil"),RO=ia(function(r,o){return r/o},1),DO=Il("floor");function MO(r){return r&&r.length?Ks(r,Gt,yl):n}function PO(r,o){return r&&r.length?Ks(r,Me(o,2),yl):n}function IO(r){return md(r,Gt)}function NO(r,o){return md(r,Me(o,2))}function AO(r){return r&&r.length?Ks(r,Gt,xl):n}function kO(r,o){return r&&r.length?Ks(r,Me(o,2),xl):n}var $O=ia(function(r,o){return r*o},1),LO=Il("round"),zO=ia(function(r,o){return r-o},0);function FO(r){return r&&r.length?ol(r,Gt):0}function WO(r,o){return r&&r.length?ol(r,Me(o,2)):0}return M.after=u1,M.ary=Wp,M.assign=Z1,M.assignIn=eh,M.assignInWith=ya,M.assignWith=X1,M.at=K1,M.before=Bp,M.bind=Hl,M.bindAll=nO,M.bindKey=Up,M.castArray=w1,M.chain=Lp,M.chunk=Dx,M.compact=Mx,M.concat=Px,M.cond=rO,M.conforms=iO,M.constant=Kl,M.countBy=FS,M.create=J1,M.curry=jp,M.curryRight=Hp,M.debounce=qp,M.defaults=Q1,M.defaultsDeep=eE,M.defer=l1,M.delay=c1,M.difference=Ix,M.differenceBy=Nx,M.differenceWith=Ax,M.drop=kx,M.dropRight=$x,M.dropRightWhile=Lx,M.dropWhile=zx,M.fill=Fx,M.filter=BS,M.flatMap=HS,M.flatMapDeep=qS,M.flatMapDepth=VS,M.flatten=Np,M.flattenDeep=Wx,M.flattenDepth=Bx,M.flip=f1,M.flow=sO,M.flowRight=aO,M.fromPairs=Ux,M.functions=aE,M.functionsIn=uE,M.groupBy=GS,M.initial=Hx,M.intersection=qx,M.intersectionBy=Vx,M.intersectionWith=Gx,M.invert=cE,M.invertBy=fE,M.invokeMap=ZS,M.iteratee=Jl,M.keyBy=XS,M.keys=Ct,M.keysIn=Vt,M.map=fa,M.mapKeys=pE,M.mapValues=hE,M.matches=uO,M.matchesProperty=lO,M.memoize=pa,M.merge=mE,M.mergeWith=th,M.method=cO,M.methodOf=fO,M.mixin=Ql,M.negate=ha,M.nthArg=pO,M.omit=gE,M.omitBy=yE,M.once=d1,M.orderBy=KS,M.over=hO,M.overArgs=p1,M.overEvery=mO,M.overSome=gO,M.partial=ql,M.partialRight=Vp,M.partition=JS,M.pick=vE,M.pickBy=nh,M.property=lh,M.propertyOf=yO,M.pull=Kx,M.pullAll=kp,M.pullAllBy=Jx,M.pullAllWith=Qx,M.pullAt=eS,M.range=vO,M.rangeRight=bO,M.rearg=h1,M.reject=t1,M.remove=tS,M.rest=m1,M.reverse=Ul,M.sampleSize=r1,M.set=wE,M.setWith=xE,M.shuffle=i1,M.slice=nS,M.sortBy=a1,M.sortedUniq=lS,M.sortedUniqBy=cS,M.split=HE,M.spread=g1,M.tail=fS,M.take=dS,M.takeRight=pS,M.takeRightWhile=hS,M.takeWhile=mS,M.tap=MS,M.throttle=y1,M.thru=ca,M.toArray=Kp,M.toPairs=rh,M.toPairsIn=ih,M.toPath=OO,M.toPlainObject=Qp,M.transform=SE,M.unary=v1,M.union=gS,M.unionBy=yS,M.unionWith=vS,M.uniq=bS,M.uniqBy=wS,M.uniqWith=xS,M.unset=EE,M.unzip=jl,M.unzipWith=$p,M.update=OE,M.updateWith=TE,M.values=zi,M.valuesIn=CE,M.without=SS,M.words=ah,M.wrap=b1,M.xor=ES,M.xorBy=OS,M.xorWith=TS,M.zip=CS,M.zipObject=_S,M.zipObjectDeep=RS,M.zipWith=DS,M.entries=rh,M.entriesIn=ih,M.extend=eh,M.extendWith=ya,Ql(M,M),M.add=CO,M.attempt=uh,M.camelCase=ME,M.capitalize=oh,M.ceil=_O,M.clamp=_E,M.clone=x1,M.cloneDeep=E1,M.cloneDeepWith=O1,M.cloneWith=S1,M.conformsTo=T1,M.deburr=sh,M.defaultTo=oO,M.divide=RO,M.endsWith=PE,M.eq=An,M.escape=IE,M.escapeRegExp=NE,M.every=WS,M.find=US,M.findIndex=Pp,M.findKey=tE,M.findLast=jS,M.findLastIndex=Ip,M.findLastKey=nE,M.floor=DO,M.forEach=zp,M.forEachRight=Fp,M.forIn=rE,M.forInRight=iE,M.forOwn=oE,M.forOwnRight=sE,M.get=Yl,M.gt=C1,M.gte=_1,M.has=lE,M.hasIn=Zl,M.head=Ap,M.identity=Gt,M.includes=YS,M.indexOf=jx,M.inRange=RE,M.invoke=dE,M.isArguments=ti,M.isArray=ze,M.isArrayBuffer=R1,M.isArrayLike=qt,M.isArrayLikeObject=vt,M.isBoolean=D1,M.isBuffer=Mr,M.isDate=M1,M.isElement=P1,M.isEmpty=I1,M.isEqual=N1,M.isEqualWith=A1,M.isError=Vl,M.isFinite=k1,M.isFunction=ur,M.isInteger=Gp,M.isLength=ma,M.isMap=Yp,M.isMatch=$1,M.isMatchWith=L1,M.isNaN=z1,M.isNative=F1,M.isNil=B1,M.isNull=W1,M.isNumber=Zp,M.isObject=ft,M.isObjectLike=dt,M.isPlainObject=Io,M.isRegExp=Gl,M.isSafeInteger=U1,M.isSet=Xp,M.isString=ga,M.isSymbol=rn,M.isTypedArray=Li,M.isUndefined=j1,M.isWeakMap=H1,M.isWeakSet=q1,M.join=Yx,M.kebabCase=AE,M.last=bn,M.lastIndexOf=Zx,M.lowerCase=kE,M.lowerFirst=$E,M.lt=V1,M.lte=G1,M.max=MO,M.maxBy=PO,M.mean=IO,M.meanBy=NO,M.min=AO,M.minBy=kO,M.stubArray=tc,M.stubFalse=nc,M.stubObject=wO,M.stubString=xO,M.stubTrue=SO,M.multiply=$O,M.nth=Xx,M.noConflict=dO,M.noop=ec,M.now=da,M.pad=LE,M.padEnd=zE,M.padStart=FE,M.parseInt=WE,M.random=DE,M.reduce=QS,M.reduceRight=e1,M.repeat=BE,M.replace=UE,M.result=bE,M.round=LO,M.runInContext=U,M.sample=n1,M.size=o1,M.snakeCase=jE,M.some=s1,M.sortedIndex=rS,M.sortedIndexBy=iS,M.sortedIndexOf=oS,M.sortedLastIndex=sS,M.sortedLastIndexBy=aS,M.sortedLastIndexOf=uS,M.startCase=qE,M.startsWith=VE,M.subtract=zO,M.sum=FO,M.sumBy=WO,M.template=GE,M.times=EO,M.toFinite=lr,M.toInteger=Fe,M.toLength=Jp,M.toLower=YE,M.toNumber=wn,M.toSafeInteger=Y1,M.toString=Xe,M.toUpper=ZE,M.trim=XE,M.trimEnd=KE,M.trimStart=JE,M.truncate=QE,M.unescape=eO,M.uniqueId=TO,M.upperCase=tO,M.upperFirst=Xl,M.each=zp,M.eachRight=Fp,M.first=Ap,Ql(M,function(){var r={};return Un(M,function(o,l){et.call(M.prototype,l)||(r[l]=o)}),r}(),{chain:!1}),M.VERSION=i,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){M[r].placeholder=M}),hn(["drop","take"],function(r,o){je.prototype[r]=function(l){l=l===n?1:Tt(Fe(l),0);var d=this.__filtered__&&!o?new je(this):this.clone();return d.__filtered__?d.__takeCount__=Nt(l,d.__takeCount__):d.__views__.push({size:Nt(l,$),type:r+(d.__dir__<0?"Right":"")}),d},je.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),hn(["filter","map","takeWhile"],function(r,o){var l=o+1,d=l==B||l==H;je.prototype[r]=function(O){var I=this.clone();return I.__iteratees__.push({iteratee:Me(O,3),type:l}),I.__filtered__=I.__filtered__||d,I}}),hn(["head","last"],function(r,o){var l="take"+(o?"Right":"");je.prototype[r]=function(){return this[l](1).value()[0]}}),hn(["initial","tail"],function(r,o){var l="drop"+(o?"":"Right");je.prototype[r]=function(){return this.__filtered__?new je(this):this[l](1)}}),je.prototype.compact=function(){return this.filter(Gt)},je.prototype.find=function(r){return this.filter(r).head()},je.prototype.findLast=function(r){return this.reverse().find(r)},je.prototype.invokeMap=Be(function(r,o){return typeof r=="function"?new je(this):this.map(function(l){return Co(l,r,o)})}),je.prototype.reject=function(r){return this.filter(ha(Me(r)))},je.prototype.slice=function(r,o){r=Fe(r);var l=this;return l.__filtered__&&(r>0||o<0)?new je(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),o!==n&&(o=Fe(o),l=o<0?l.dropRight(-o):l.take(o-r)),l)},je.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},je.prototype.toArray=function(){return this.take($)},Un(je.prototype,function(r,o){var l=/^(?:filter|find|map|reject)|While$/.test(o),d=/^(?:head|last)$/.test(o),O=M[d?"take"+(o=="last"?"Right":""):o],I=d||/^find/.test(o);O&&(M.prototype[o]=function(){var k=this.__wrapped__,L=d?[1]:arguments,q=k instanceof je,ie=L[0],se=q||ze(k),de=function(Ue){var He=O.apply(M,Er([Ue],L));return d&&xe?He[0]:He};se&&l&&typeof ie=="function"&&ie.length!=1&&(q=se=!1);var xe=this.__chain__,De=!!this.__actions__.length,Pe=I&&!xe,We=q&&!De;if(!I&&se){k=We?k:new je(this);var Ie=r.apply(k,L);return Ie.__actions__.push({func:ca,args:[de],thisArg:n}),new gn(Ie,xe)}return Pe&&We?r.apply(this,L):(Ie=this.thru(de),Pe?d?Ie.value()[0]:Ie.value():Ie)})}),hn(["pop","push","shift","sort","splice","unshift"],function(r){var o=$s[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",d=/^(?:pop|shift)$/.test(r);M.prototype[r]=function(){var O=arguments;if(d&&!this.__chain__){var I=this.value();return o.apply(ze(I)?I:[],O)}return this[l](function(k){return o.apply(ze(k)?k:[],O)})}}),Un(je.prototype,function(r,o){var l=M[o];if(l){var d=l.name+"";et.call(Ii,d)||(Ii[d]=[]),Ii[d].push({name:o,func:l})}}),Ii[ra(n,g).name]=[{name:"wrapper",func:n}],je.prototype.clone=ew,je.prototype.reverse=tw,je.prototype.value=nw,M.prototype.at=PS,M.prototype.chain=IS,M.prototype.commit=NS,M.prototype.next=AS,M.prototype.plant=$S,M.prototype.reverse=LS,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=zS,M.prototype.first=M.prototype.head,bo&&(M.prototype[bo]=kS),M},Di=Nb();Gr?((Gr.exports=Di)._=Di,Ju._=Di):Dt._=Di}).call(hT)}(Zo,Zo.exports)),Zo.exports}var Cc=mT();const gT="navigation-filter-preferences",yT=()=>{try{const e=localStorage.getItem(gT);return e!==null&&e!=="{}"}catch{return!1}},vT=()=>{var h;const{user:e}=Rg(),{updateUser:t}=Dg(),{filterOptions:n,setFilterOptions:i}=Wr(),{sectionOrder:s,setVisibleSections:a}=gr(),u=Y.useRef(!0),c=Y.useRef(""),f=Y.useRef([]),p=Y.useRef([]);Y.useEffect(()=>{var y;if(yT()){u.current&&Object.keys(n).length>0&&(a(n),u.current=!1);return}if(!((y=e==null?void 0:e.preferences)!=null&&y.visibleNavigation))return;const S=JSON.stringify(e.preferences.visibleNavigation),R=JSON.stringify(s);if(S===JSON.stringify(p.current)&&R===JSON.stringify(f.current)&&!u.current)return;const w={};s.forEach(v=>{w[v]=e.preferences.visibleNavigation.includes(v)}),(!Cc.isEqual(w,n)||u.current)&&(i(w),a(w),u.current=!1),f.current=[...s],p.current=[...e.preferences.visibleNavigation]},[(h=e==null?void 0:e.preferences)==null?void 0:h.visibleNavigation,s,i,n,a]),Y.useEffect(()=>{if(!u.current&&e&&Object.keys(n).length>0){const S=JSON.stringify(n);if(c.current!==S){c.current=S;const R=Object.entries(n).filter(([,w])=>w).map(([w])=>w);if(!Cc.isEqual(R,e.preferences.visibleNavigation)){const w={...e,preferences:{...e.preferences,visibleNavigation:R}};t(w)}}}},[n,e,t])},bh=e=>e,bT=()=>{let e=bh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=bh}}},kg=bT();function as(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}function fn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":as(7));return e.charAt(0).toUpperCase()+e.slice(1)}var wa={exports:{}},xa={exports:{}},Ke={};/** @license React v16.13.1
|
|
49
|
+
* react-is.production.min.js
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the MIT license found in the
|
|
54
|
+
* LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/var wh;function wT(){if(wh)return Ke;wh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,R=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function x(T){if(typeof T=="object"&&T!==null){var P=T.$$typeof;switch(P){case t:switch(T=T.type,T){case f:case p:case i:case a:case s:case S:return T;default:switch(T=T&&T.$$typeof,T){case c:case h:case C:case w:case u:return T;default:return P}}case n:return P}}}function E(T){return x(T)===p}return Ke.AsyncMode=f,Ke.ConcurrentMode=p,Ke.ContextConsumer=c,Ke.ContextProvider=u,Ke.Element=t,Ke.ForwardRef=h,Ke.Fragment=i,Ke.Lazy=C,Ke.Memo=w,Ke.Portal=n,Ke.Profiler=a,Ke.StrictMode=s,Ke.Suspense=S,Ke.isAsyncMode=function(T){return E(T)||x(T)===f},Ke.isConcurrentMode=E,Ke.isContextConsumer=function(T){return x(T)===c},Ke.isContextProvider=function(T){return x(T)===u},Ke.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Ke.isForwardRef=function(T){return x(T)===h},Ke.isFragment=function(T){return x(T)===i},Ke.isLazy=function(T){return x(T)===C},Ke.isMemo=function(T){return x(T)===w},Ke.isPortal=function(T){return x(T)===n},Ke.isProfiler=function(T){return x(T)===a},Ke.isStrictMode=function(T){return x(T)===s},Ke.isSuspense=function(T){return x(T)===S},Ke.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===p||T===a||T===s||T===S||T===R||typeof T=="object"&&T!==null&&(T.$$typeof===C||T.$$typeof===w||T.$$typeof===u||T.$$typeof===c||T.$$typeof===h||T.$$typeof===v||T.$$typeof===g||T.$$typeof===m||T.$$typeof===y)},Ke.typeOf=x,Ke}var Je={};/** @license React v16.13.1
|
|
56
|
+
* react-is.development.js
|
|
57
|
+
*
|
|
58
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the MIT license found in the
|
|
61
|
+
* LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/var xh;function xT(){return xh||(xh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,R=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function x(N){return typeof N=="string"||typeof N=="function"||N===i||N===p||N===a||N===s||N===S||N===R||typeof N=="object"&&N!==null&&(N.$$typeof===C||N.$$typeof===w||N.$$typeof===u||N.$$typeof===c||N.$$typeof===h||N.$$typeof===v||N.$$typeof===g||N.$$typeof===m||N.$$typeof===y)}function E(N){if(typeof N=="object"&&N!==null){var W=N.$$typeof;switch(W){case t:var V=N.type;switch(V){case f:case p:case i:case a:case s:case S:return V;default:var le=V&&V.$$typeof;switch(le){case c:case h:case C:case w:case u:return le;default:return W}}case n:return W}}}var T=f,P=p,D=c,A=u,z=t,K=h,Z=i,_=C,j=w,B=n,J=a,H=s,X=S,fe=!1;function ae(N){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(N)||E(N)===f}function G(N){return E(N)===p}function $(N){return E(N)===c}function ue(N){return E(N)===u}function ye(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function pe(N){return E(N)===h}function Oe(N){return E(N)===i}function Te(N){return E(N)===C}function ve(N){return E(N)===w}function ee(N){return E(N)===n}function ce(N){return E(N)===a}function Ee(N){return E(N)===s}function Re(N){return E(N)===S}Je.AsyncMode=T,Je.ConcurrentMode=P,Je.ContextConsumer=D,Je.ContextProvider=A,Je.Element=z,Je.ForwardRef=K,Je.Fragment=Z,Je.Lazy=_,Je.Memo=j,Je.Portal=B,Je.Profiler=J,Je.StrictMode=H,Je.Suspense=X,Je.isAsyncMode=ae,Je.isConcurrentMode=G,Je.isContextConsumer=$,Je.isContextProvider=ue,Je.isElement=ye,Je.isForwardRef=pe,Je.isFragment=Oe,Je.isLazy=Te,Je.isMemo=ve,Je.isPortal=ee,Je.isProfiler=ce,Je.isStrictMode=Ee,Je.isSuspense=Re,Je.isValidElementType=x,Je.typeOf=E}()),Je}var Sh;function $g(){return Sh||(Sh=1,process.env.NODE_ENV==="production"?xa.exports=wT():xa.exports=xT()),xa.exports}/*
|
|
63
|
+
object-assign
|
|
64
|
+
(c) Sindre Sorhus
|
|
65
|
+
@license MIT
|
|
66
|
+
*/var rc,Eh;function ST(){if(Eh)return rc;Eh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(u).map(function(h){return u[h]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return rc=s()?Object.assign:function(a,u){for(var c,f=i(a),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var S in c)t.call(c,S)&&(f[S]=c[S]);if(e){p=e(c);for(var R=0;R<p.length;R++)n.call(c,p[R])&&(f[p[R]]=c[p[R]])}}return f},rc}var ic,Oh;function nf(){if(Oh)return ic;Oh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ic=e,ic}var oc,Th;function Lg(){return Th||(Th=1,oc=Function.call.bind(Object.prototype.hasOwnProperty)),oc}var sc,Ch;function ET(){if(Ch)return sc;Ch=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=nf(),n={},i=Lg();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,f,p){if(process.env.NODE_ENV!=="production"){for(var h in a)if(i(a,h)){var S;try{if(typeof a[h]!="function"){var R=Error((f||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}S=a[h](u,h,f,c,null,t)}catch(C){S=C}if(S&&!(S instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof S+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),S instanceof Error&&!(S.message in n)){n[S.message]=!0;var w=p?p():"";e("Failed "+c+" type: "+S.message+(w??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},sc=s,sc}var ac,_h;function OT(){if(_h)return ac;_h=1;var e=$g(),t=ST(),n=nf(),i=Lg(),s=ET(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return ac=function(c,f){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function S(G){var $=G&&(p&&G[p]||G[h]);if(typeof $=="function")return $}var R="<<anonymous>>",w={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(),arrayOf:x,element:E(),elementType:T(),instanceOf:P,node:K(),objectOf:A,oneOf:D,oneOfType:z,shape:_,exact:j};function C(G,$){return G===$?G!==0||1/G===1/$:G!==G&&$!==$}function y(G,$){this.message=G,this.data=$&&typeof $=="object"?$:{},this.stack=""}y.prototype=Error.prototype;function v(G){if(process.env.NODE_ENV!=="production")var $={},ue=0;function ye(Oe,Te,ve,ee,ce,Ee,Re){if(ee=ee||R,Ee=Ee||ve,Re!==n){if(f){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=ee+":"+ve;!$[W]&&ue<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ee+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[W]=!0,ue++)}}return Te[ve]==null?Oe?Te[ve]===null?new y("The "+ce+" `"+Ee+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new y("The "+ce+" `"+Ee+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:G(Te,ve,ee,ce,Ee)}var pe=ye.bind(null,!1);return pe.isRequired=ye.bind(null,!0),pe}function g(G){function $(ue,ye,pe,Oe,Te,ve){var ee=ue[ye],ce=H(ee);if(ce!==G){var Ee=X(ee);return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+Ee+"` supplied to `"+pe+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return v($)}function m(){return v(u)}function x(G){function $(ue,ye,pe,Oe,Te){if(typeof G!="function")return new y("Property `"+Te+"` of component `"+pe+"` has invalid PropType notation inside arrayOf.");var ve=ue[ye];if(!Array.isArray(ve)){var ee=H(ve);return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+ee+"` supplied to `"+pe+"`, expected an array."))}for(var ce=0;ce<ve.length;ce++){var Ee=G(ve,ce,pe,Oe,Te+"["+ce+"]",n);if(Ee instanceof Error)return Ee}return null}return v($)}function E(){function G($,ue,ye,pe,Oe){var Te=$[ue];if(!c(Te)){var ve=H(Te);return new y("Invalid "+pe+" `"+Oe+"` of type "+("`"+ve+"` supplied to `"+ye+"`, expected a single ReactElement."))}return null}return v(G)}function T(){function G($,ue,ye,pe,Oe){var Te=$[ue];if(!e.isValidElementType(Te)){var ve=H(Te);return new y("Invalid "+pe+" `"+Oe+"` of type "+("`"+ve+"` supplied to `"+ye+"`, expected a single ReactElement type."))}return null}return v(G)}function P(G){function $(ue,ye,pe,Oe,Te){if(!(ue[ye]instanceof G)){var ve=G.name||R,ee=ae(ue[ye]);return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+ee+"` supplied to `"+pe+"`, expected ")+("instance of `"+ve+"`."))}return null}return v($)}function D(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),u;function $(ue,ye,pe,Oe,Te){for(var ve=ue[ye],ee=0;ee<G.length;ee++)if(C(ve,G[ee]))return null;var ce=JSON.stringify(G,function(Re,N){var W=X(N);return W==="symbol"?String(N):N});return new y("Invalid "+Oe+" `"+Te+"` of value `"+String(ve)+"` "+("supplied to `"+pe+"`, expected one of "+ce+"."))}return v($)}function A(G){function $(ue,ye,pe,Oe,Te){if(typeof G!="function")return new y("Property `"+Te+"` of component `"+pe+"` has invalid PropType notation inside objectOf.");var ve=ue[ye],ee=H(ve);if(ee!=="object")return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+ee+"` supplied to `"+pe+"`, expected an object."));for(var ce in ve)if(i(ve,ce)){var Ee=G(ve,ce,pe,Oe,Te+"."+ce,n);if(Ee instanceof Error)return Ee}return null}return v($)}function z(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var $=0;$<G.length;$++){var ue=G[$];if(typeof ue!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+fe(ue)+" at index "+$+"."),u}function ye(pe,Oe,Te,ve,ee){for(var ce=[],Ee=0;Ee<G.length;Ee++){var Re=G[Ee],N=Re(pe,Oe,Te,ve,ee,n);if(N==null)return null;N.data&&i(N.data,"expectedType")&&ce.push(N.data.expectedType)}var W=ce.length>0?", expected one of type ["+ce.join(", ")+"]":"";return new y("Invalid "+ve+" `"+ee+"` supplied to "+("`"+Te+"`"+W+"."))}return v(ye)}function K(){function G($,ue,ye,pe,Oe){return B($[ue])?null:new y("Invalid "+pe+" `"+Oe+"` supplied to "+("`"+ye+"`, expected a ReactNode."))}return v(G)}function Z(G,$,ue,ye,pe){return new y((G||"React class")+": "+$+" type `"+ue+"."+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+pe+"`.")}function _(G){function $(ue,ye,pe,Oe,Te){var ve=ue[ye],ee=H(ve);if(ee!=="object")return new y("Invalid "+Oe+" `"+Te+"` of type `"+ee+"` "+("supplied to `"+pe+"`, expected `object`."));for(var ce in G){var Ee=G[ce];if(typeof Ee!="function")return Z(pe,Oe,Te,ce,X(Ee));var Re=Ee(ve,ce,pe,Oe,Te+"."+ce,n);if(Re)return Re}return null}return v($)}function j(G){function $(ue,ye,pe,Oe,Te){var ve=ue[ye],ee=H(ve);if(ee!=="object")return new y("Invalid "+Oe+" `"+Te+"` of type `"+ee+"` "+("supplied to `"+pe+"`, expected `object`."));var ce=t({},ue[ye],G);for(var Ee in ce){var Re=G[Ee];if(i(G,Ee)&&typeof Re!="function")return Z(pe,Oe,Te,Ee,X(Re));if(!Re)return new y("Invalid "+Oe+" `"+Te+"` key `"+Ee+"` supplied to `"+pe+"`.\nBad object: "+JSON.stringify(ue[ye],null," ")+`
|
|
67
|
+
Valid keys: `+JSON.stringify(Object.keys(G),null," "));var N=Re(ve,Ee,pe,Oe,Te+"."+Ee,n);if(N)return N}return null}return v($)}function B(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(B);if(G===null||c(G))return!0;var $=S(G);if($){var ue=$.call(G),ye;if($!==G.entries){for(;!(ye=ue.next()).done;)if(!B(ye.value))return!1}else for(;!(ye=ue.next()).done;){var pe=ye.value;if(pe&&!B(pe[1]))return!1}}else return!1;return!0;default:return!1}}function J(G,$){return G==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function H(G){var $=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":J($,G)?"symbol":$}function X(G){if(typeof G>"u"||G===null)return""+G;var $=H(G);if($==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return $}function fe(G){var $=X(G);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function ae(G){return!G.constructor||!G.constructor.name?R:G.constructor.name}return w.checkPropTypes=s,w.resetWarningCache=s.resetWarningCache,w.PropTypes=w,w},ac}var uc,Rh;function TT(){if(Rh)return uc;Rh=1;var e=nf();function t(){}function n(){}return n.resetWarningCache=t,uc=function(){function i(u,c,f,p,h,S){if(S!==e){var R=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw R.name="Invariant Violation",R}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},uc}var Dh;function wr(){if(Dh)return wa.exports;if(Dh=1,process.env.NODE_ENV!=="production"){var e=$g(),t=!0;wa.exports=OT()(e.isElement,t)}else wa.exports=TT()();return wa.exports}var CT=wr();const b=YO(CT);function zg(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=zg(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function at(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=zg(e))&&(i&&(i+=" "),i+=t);return i}function Ur(e,t,n=void 0){const i={};for(const s in e){const a=e[s];let u="",c=!0;for(let f=0;f<a.length;f+=1){const p=a[f];p&&(u+=(c===!0?"":" ")+t(p),c=!1,n&&n[p]&&(u+=" "+n[p]))}i[s]=u}return i}function Ga(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}function rf(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ga(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Sa={exports:{}},rt={};/**
|
|
68
|
+
* @license React
|
|
69
|
+
* react-is.production.js
|
|
70
|
+
*
|
|
71
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the MIT license found in the
|
|
74
|
+
* LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/var Mh;function _T(){if(Mh)return rt;Mh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),R=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function C(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case n:case s:case i:case f:case p:case R:return y;default:switch(y=y&&y.$$typeof,y){case u:case c:case S:case h:return y;case a:return y;default:return v}}case t:return v}}}return rt.ContextConsumer=a,rt.ContextProvider=u,rt.Element=e,rt.ForwardRef=c,rt.Fragment=n,rt.Lazy=S,rt.Memo=h,rt.Portal=t,rt.Profiler=s,rt.StrictMode=i,rt.Suspense=f,rt.SuspenseList=p,rt.isContextConsumer=function(y){return C(y)===a},rt.isContextProvider=function(y){return C(y)===u},rt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},rt.isForwardRef=function(y){return C(y)===c},rt.isFragment=function(y){return C(y)===n},rt.isLazy=function(y){return C(y)===S},rt.isMemo=function(y){return C(y)===h},rt.isPortal=function(y){return C(y)===t},rt.isProfiler=function(y){return C(y)===s},rt.isStrictMode=function(y){return C(y)===i},rt.isSuspense=function(y){return C(y)===f},rt.isSuspenseList=function(y){return C(y)===p},rt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===s||y===i||y===f||y===p||typeof y=="object"&&y!==null&&(y.$$typeof===S||y.$$typeof===h||y.$$typeof===u||y.$$typeof===a||y.$$typeof===c||y.$$typeof===w||y.getModuleId!==void 0)},rt.typeOf=C,rt}var it={};/**
|
|
76
|
+
* @license React
|
|
77
|
+
* react-is.development.js
|
|
78
|
+
*
|
|
79
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the MIT license found in the
|
|
82
|
+
* LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/var Ph;function RT(){return Ph||(Ph=1,process.env.NODE_ENV!=="production"&&function(){function e(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case t:switch(y=y.type,y){case i:case a:case s:case p:case h:case w:return y;default:switch(y=y&&y.$$typeof,y){case c:case f:case R:case S:return y;case u:return y;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),C=Symbol.for("react.client.reference");it.ContextConsumer=u,it.ContextProvider=c,it.Element=t,it.ForwardRef=f,it.Fragment=i,it.Lazy=R,it.Memo=S,it.Portal=n,it.Profiler=a,it.StrictMode=s,it.Suspense=p,it.SuspenseList=h,it.isContextConsumer=function(y){return e(y)===u},it.isContextProvider=function(y){return e(y)===c},it.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},it.isForwardRef=function(y){return e(y)===f},it.isFragment=function(y){return e(y)===i},it.isLazy=function(y){return e(y)===R},it.isMemo=function(y){return e(y)===S},it.isPortal=function(y){return e(y)===n},it.isProfiler=function(y){return e(y)===a},it.isStrictMode=function(y){return e(y)===s},it.isSuspense=function(y){return e(y)===p},it.isSuspenseList=function(y){return e(y)===h},it.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===i||y===a||y===s||y===p||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===R||y.$$typeof===S||y.$$typeof===c||y.$$typeof===u||y.$$typeof===f||y.$$typeof===C||y.getModuleId!==void 0)},it.typeOf=e}()),it}var Ih;function DT(){return Ih||(Ih=1,process.env.NODE_ENV==="production"?Sa.exports=_T():Sa.exports=RT()),Sa.exports}var wi=DT();function kr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fg(e){if(oe.isValidElement(e)||wi.isValidElementType(e)||!kr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Fg(e[n])}),t}function gi(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return kr(e)&&kr(t)&&Object.keys(t).forEach(s=>{oe.isValidElement(t[s])||wi.isValidElementType(t[s])?i[s]=t[s]:kr(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&kr(e[s])?i[s]=gi(e[s],t[s],n):n.clone?i[s]=kr(t[s])?Fg(t[s]):t[s]:i[s]=t[s]}),i}function rs(e,t){return t?gi(e,t,{clone:!1}):e}const jr=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.string,b.object,b.array]):{};function Nh(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,s)=>{var u,c;const a=/min-width:\s*([0-9.]+)/;return+(((u=i.match(a))==null?void 0:u[1])||0)-+(((c=s.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((i,s)=>{const a=t[s];return delete i[s],i[s]=a,i},{...t}):t}function MT(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function PT(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
84
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ga(18,`(${t})`));return null}const[,i,s]=n,a=Number.isNaN(+i)?i||0:+i;return e.containerQueries(s).up(a)}function IT(e){const t=(a,u)=>a.replace("@media",u?`@container ${u}`:"@container");function n(a,u){a.up=(...c)=>t(e.breakpoints.up(...c),u),a.down=(...c)=>t(e.breakpoints.down(...c),u),a.between=(...c)=>t(e.breakpoints.between(...c),u),a.only=(...c)=>t(e.breakpoints.only(...c),u),a.not=(...c)=>{const f=t(e.breakpoints.not(...c),u);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const i={},s=a=>(n(i,a),i);return n(s),{...e,containerQueries:s}}const pu={xs:0,sm:600,md:900,lg:1200,xl:1536},Ah={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pu[e]}px)`},NT={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:pu[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function yr(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const a=i.breakpoints||Ah;return t.reduce((u,c,f)=>(u[a.up(a.keys[f])]=n(t[f]),u),{})}if(typeof t=="object"){const a=i.breakpoints||Ah;return Object.keys(t).reduce((u,c)=>{if(MT(a.keys,c)){const f=PT(i.containerQueries?i:NT,c);f&&(u[f]=n(t[c],c))}else if(Object.keys(a.values||pu).includes(c)){const f=a.up(c);u[f]=n(t[c],c)}else{const f=c;u[f]=t[f]}return u},{})}return n(t)}function AT(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((i,s)=>{const a=e.up(s);return i[a]={},i},{}))||{}}function kh(e,t){return e.reduce((n,i)=>{const s=n[i];return(!s||Object.keys(s).length===0)&&delete n[i],n},t)}function hu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(i!=null)return i}return t.split(".").reduce((i,s)=>i&&i[s]!=null?i[s]:null,e)}function Ya(e,t,n,i=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||i:s=hu(e,n)||i,t&&(s=t(s,i,e)),s}function xt(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:s}=e,a=u=>{if(u[t]==null)return null;const c=u[t],f=u.theme,p=hu(f,i)||{};return yr(u,c,S=>{let R=Ya(p,s,S);return S===R&&typeof S=="string"&&(R=Ya(p,s,`${t}${S==="default"?"":rf(S)}`,S)),n===!1?R:{[n]:R}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:jr}:{},a.filterProps=[t],a}function kT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const $T={m:"margin",p:"padding"},LT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$h={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zT=kT(e=>{if(e.length>2)if($h[e])e=$h[e];else return[e];const[t,n]=e.split(""),i=$T[t],s=LT[n]||"";return Array.isArray(s)?s.map(a=>i+a):[i+s]}),mu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],FT=[...mu,...gu];function gs(e,t,n,i){const s=hu(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${a}.`),typeof s=="string"?s.startsWith("var(")&&a===0?0:s.startsWith("var(")&&a===1?s:`calc(${a} * ${s})`:s*a):Array.isArray(s)?a=>{if(typeof a=="string")return a;const u=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(u)?u>s.length-1&&console.error([`MUI: The value provided (${u}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${u} > ${s.length-1}, you need to add the missing values.`].join(`
|
|
85
|
+
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
86
|
+
`)));const c=s[u];return a>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
87
|
+
`)),()=>{})}function of(e){return gs(e,"spacing",8,"spacing")}function ys(e,t){return typeof t=="string"||t==null?t:e(t)}function WT(e,t){return n=>e.reduce((i,s)=>(i[s]=ys(t,n),i),{})}function BT(e,t,n,i){if(!t.includes(n))return null;const s=zT(n),a=WT(s,i),u=e[n];return yr(e,u,a)}function Wg(e,t){const n=of(e.theme);return Object.keys(e).map(i=>BT(e,t,i,n)).reduce(rs,{})}function pt(e){return Wg(e,mu)}pt.propTypes=process.env.NODE_ENV!=="production"?mu.reduce((e,t)=>(e[t]=jr,e),{}):{};pt.filterProps=mu;function ht(e){return Wg(e,gu)}ht.propTypes=process.env.NODE_ENV!=="production"?gu.reduce((e,t)=>(e[t]=jr,e),{}):{};ht.filterProps=gu;process.env.NODE_ENV!=="production"&&FT.reduce((e,t)=>(e[t]=jr,e),{});function yu(...e){const t=e.reduce((i,s)=>(s.filterProps.forEach(a=>{i[a]=s}),i),{}),n=i=>Object.keys(i).reduce((s,a)=>t[a]?rs(s,t[a](i)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,s)=>Object.assign(i,s.propTypes),{}):{},n.filterProps=e.reduce((i,s)=>i.concat(s.filterProps),[]),n}function En(e){return typeof e!="number"?e:`${e}px solid`}function Mn(e,t){return xt({prop:e,themeKey:"borders",transform:t})}const UT=Mn("border",En),jT=Mn("borderTop",En),HT=Mn("borderRight",En),qT=Mn("borderBottom",En),VT=Mn("borderLeft",En),GT=Mn("borderColor"),YT=Mn("borderTopColor"),ZT=Mn("borderRightColor"),XT=Mn("borderBottomColor"),KT=Mn("borderLeftColor"),JT=Mn("outline",En),QT=Mn("outlineColor"),vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=gs(e.theme,"shape.borderRadius",4,"borderRadius"),n=i=>({borderRadius:ys(t,i)});return yr(e,e.borderRadius,n)}return null};vu.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:jr}:{};vu.filterProps=["borderRadius"];yu(UT,jT,HT,qT,VT,GT,YT,ZT,XT,KT,vu,JT,QT);const bu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=gs(e.theme,"spacing",8,"gap"),n=i=>({gap:ys(t,i)});return yr(e,e.gap,n)}return null};bu.propTypes=process.env.NODE_ENV!=="production"?{gap:jr}:{};bu.filterProps=["gap"];const wu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=gs(e.theme,"spacing",8,"columnGap"),n=i=>({columnGap:ys(t,i)});return yr(e,e.columnGap,n)}return null};wu.propTypes=process.env.NODE_ENV!=="production"?{columnGap:jr}:{};wu.filterProps=["columnGap"];const xu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=gs(e.theme,"spacing",8,"rowGap"),n=i=>({rowGap:ys(t,i)});return yr(e,e.rowGap,n)}return null};xu.propTypes=process.env.NODE_ENV!=="production"?{rowGap:jr}:{};xu.filterProps=["rowGap"];const eC=xt({prop:"gridColumn"}),tC=xt({prop:"gridRow"}),nC=xt({prop:"gridAutoFlow"}),rC=xt({prop:"gridAutoColumns"}),iC=xt({prop:"gridAutoRows"}),oC=xt({prop:"gridTemplateColumns"}),sC=xt({prop:"gridTemplateRows"}),aC=xt({prop:"gridTemplateAreas"}),uC=xt({prop:"gridArea"});yu(bu,wu,xu,eC,tC,nC,rC,iC,oC,sC,aC,uC);function Ji(e,t){return t==="grey"?t:e}const lC=xt({prop:"color",themeKey:"palette",transform:Ji}),cC=xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ji}),fC=xt({prop:"backgroundColor",themeKey:"palette",transform:Ji});yu(lC,cC,fC);function ln(e){return e<=1&&e!==0?`${e*100}%`:e}const dC=xt({prop:"width",transform:ln}),sf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,u,c,f;const i=((u=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:u[n])||pu[n];return i?((f=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:ln(n)}};return yr(e,e.maxWidth,t)}return null};sf.filterProps=["maxWidth"];const pC=xt({prop:"minWidth",transform:ln}),hC=xt({prop:"height",transform:ln}),mC=xt({prop:"maxHeight",transform:ln}),gC=xt({prop:"minHeight",transform:ln});xt({prop:"size",cssProperty:"width",transform:ln});xt({prop:"size",cssProperty:"height",transform:ln});const yC=xt({prop:"boxSizing"});yu(dC,sf,pC,hC,mC,gC,yC);const vs={border:{themeKey:"borders",transform:En},borderTop:{themeKey:"borders",transform:En},borderRight:{themeKey:"borders",transform:En},borderBottom:{themeKey:"borders",transform:En},borderLeft:{themeKey:"borders",transform:En},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:En},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vu},color:{themeKey:"palette",transform:Ji},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ji},backgroundColor:{themeKey:"palette",transform:Ji},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:pt},mt:{style:pt},mr:{style:pt},mb:{style:pt},ml:{style:pt},mx:{style:pt},my:{style:pt},margin:{style:pt},marginTop:{style:pt},marginRight:{style:pt},marginBottom:{style:pt},marginLeft:{style:pt},marginX:{style:pt},marginY:{style:pt},marginInline:{style:pt},marginInlineStart:{style:pt},marginInlineEnd:{style:pt},marginBlock:{style:pt},marginBlockStart:{style:pt},marginBlockEnd:{style:pt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:bu},rowGap:{style:xu},columnGap:{style:wu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ln},maxWidth:{style:sf},minWidth:{transform:ln},height:{transform:ln},maxHeight:{transform:ln},minHeight:{transform:ln},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vC(...e){const t=e.reduce((i,s)=>i.concat(Object.keys(s)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function bC(e,t){return typeof e=="function"?e(t):e}function wC(){function e(n,i,s,a){const u={[n]:i,theme:s},c=a[n];if(!c)return{[n]:i};const{cssProperty:f=n,themeKey:p,transform:h,style:S}=c;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[n]:i};const R=hu(s,p)||{};return S?S(u):yr(u,i,C=>{let y=Ya(R,h,C);return C===y&&typeof C=="string"&&(y=Ya(R,h,`${n}${C==="default"?"":rf(C)}`,C)),f===!1?y:{[f]:y}})}function t(n){const{sx:i,theme:s={},nested:a}=n||{};if(!i)return null;const u=s.unstable_sxConfig??vs;function c(f){let p=f;if(typeof f=="function")p=f(s);else if(typeof f!="object")return f;if(!p)return null;const h=AT(s.breakpoints),S=Object.keys(h);let R=h;return Object.keys(p).forEach(w=>{const C=bC(p[w],s);if(C!=null)if(typeof C=="object")if(u[w])R=rs(R,e(w,C,s,u));else{const y=yr({theme:s},C,v=>({[w]:v}));vC(y,C)?R[w]=t({sx:C,theme:s,nested:!0}):R=rs(R,y)}else R=rs(R,e(w,C,s,u))}),!a&&s.modularCssLayers?{"@layer sx":Nh(s,kh(S,R))}:Nh(s,kh(S,R))}return Array.isArray(i)?i.map(c):c(i)}return t}const xi=wC();xi.filterProps=["sx"];const xC=e=>{var i;const t={systemProps:{},otherProps:{}},n=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??vs;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function SC(e){const{sx:t,...n}=e,{systemProps:i,otherProps:s}=xC(n);let a;return Array.isArray(t)?a=[i,...t]:typeof t=="function"?a=(...u)=>{const c=t(...u);return kr(c)?{...i,...c}:i}:a={...i,...t},{...s,sx:a}}function EC(e){for(var t=0,n,i=0,s=e.length;s>=4;++i,s-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var OC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function TC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var CC=/[A-Z]|^ms/g,_C=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Bg=function(t){return t.charCodeAt(1)===45},Lh=function(t){return t!=null&&typeof t!="boolean"},lc=TC(function(e){return Bg(e)?e:e.replace(CC,"-$&").toLowerCase()}),zh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_C,function(i,s,a){return zr={name:s,styles:a,next:zr},s})}return OC[t]!==1&&!Bg(t)&&typeof n=="number"&&n!==0?n+"px":n};function Za(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return zr={name:s.name,styles:s.styles,next:zr},s.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)zr={name:u.name,styles:u.styles,next:zr},u=u.next;var c=a.styles+";";return c}return RC(e,t,n)}}var f=n;return f}function RC(e,t,n){var i="";if(Array.isArray(n))for(var s=0;s<n.length;s++)i+=Za(e,t,n[s])+";";else for(var a in n){var u=n[a];if(typeof u!="object"){var c=u;Lh(c)&&(i+=lc(a)+":"+zh(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&t==null)for(var f=0;f<u.length;f++)Lh(u[f])&&(i+=lc(a)+":"+zh(a,u[f])+";");else{var p=Za(e,t,u);switch(a){case"animation":case"animationName":{i+=lc(a)+":"+p+";";break}default:i+=a+"{"+p+"}"}}}return i}var Fh=/label:\s*([^\s;{]+)\s*(;|$)/g,zr;function DC(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";zr=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=Za(n,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=Za(n,t,e[c]),i){var f=a;s+=f[c]}Fh.lastIndex=0;for(var p="",h;(h=Fh.exec(s))!==null;)p+="-"+h[1];var S=EC(s)+p;return{name:S,styles:s,next:zr}}/**
|
|
88
|
+
* @mui/styled-engine v7.3.3
|
|
89
|
+
*
|
|
90
|
+
* @license MIT
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/function Ug(e,t){const n=HO(e,t);return process.env.NODE_ENV!=="production"?(...i)=>{const s=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
94
|
+
`)):i.some(a=>a===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...i)}:n}function MC(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wh=[];function yi(e){return Wh[0]=e,DC(Wh)}const PC=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>({...n,[i.key]:i.val}),{})};function IC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...s}=e,a=PC(t),u=Object.keys(a);function c(R){return`@media (min-width:${typeof t[R]=="number"?t[R]:R}${n})`}function f(R){return`@media (max-width:${(typeof t[R]=="number"?t[R]:R)-i/100}${n})`}function p(R,w){const C=u.indexOf(w);return`@media (min-width:${typeof t[R]=="number"?t[R]:R}${n}) and (max-width:${(C!==-1&&typeof t[u[C]]=="number"?t[u[C]]:w)-i/100}${n})`}function h(R){return u.indexOf(R)+1<u.length?p(R,u[u.indexOf(R)+1]):c(R)}function S(R){const w=u.indexOf(R);return w===0?c(u[1]):w===u.length-1?f(u[w]):p(R,u[u.indexOf(R)+1]).replace("@media","@media not all and")}return{keys:u,values:a,up:c,down:f,between:p,only:h,not:S,unit:n,...s}}const NC={borderRadius:4};function jg(e=8,t=of({spacing:e})){if(e.mui)return e;const n=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(a=>{const u=t(a);return typeof u=="number"?`${u}px`:u}).join(" "));return n.mui=!0,n}function AC(e,t){var i;const n=this;if(n.vars){if(!((i=n.colorSchemes)!=null&&i[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function af(e={},...t){const{breakpoints:n={},palette:i={},spacing:s,shape:a={},...u}=e,c=IC(n),f=jg(s);let p=gi({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:f,shape:{...NC,...a}},u);return p=IT(p),p.applyStyles=AC,p=t.reduce((h,S)=>gi(h,S),p),p.unstable_sxConfig={...vs,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(S){return xi({sx:S,theme:this})},p}function kC(e){return Object.keys(e).length===0}function $C(e=null){const t=oe.useContext(du.ThemeContext);return!t||kC(t)?e:t}const LC=af();function Hg(e=LC){return $C(e)}function zC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:s}=e,a=Ug("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(xi);return oe.forwardRef(function(f,p){const h=Hg(n),{className:S,component:R="div",...w}=SC(f);return F.jsx(a,{as:R,ref:p,className:at(S,s?s(i):i),theme:t&&h[t]||h,...w})})}function qg(e,t=""){return e.displayName||e.name||t}function Bh(e,t,n){const i=qg(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function FC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case wi.ForwardRef:return Bh(e,e.render,"ForwardRef");case wi.Memo:return Bh(e,e.type,"memo");default:return}}}function Vg(e){const{variants:t,...n}=e,i={variants:t,style:yi(n),isProcessed:!0};return i.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=yi(s.style))}),i}const WC=af();function cc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fi(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function BC(e){return e?(t,n)=>n[e]:null}function UC(e,t,n){e.theme=VC(e.theme)?n:e.theme[t]||e.theme}function Wa(e,t,n){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(s=>Wa(e,s,n));if(Array.isArray(i==null?void 0:i.variants)){let s;if(i.isProcessed)s=n?fi(i.style,n):i.style;else{const{variants:a,...u}=i;s=n?fi(yi(u),n):u}return Gg(e,i.variants,[s],n)}return i!=null&&i.isProcessed?n?fi(yi(i.style),n):i.style:n?fi(yi(i),n):i}function Gg(e,t,n=[],i=void 0){var a;let s;e:for(let u=0;u<t.length;u+=1){const c=t[u];if(typeof c.props=="function"){if(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(s))continue}else for(const f in c.props)if(e[f]!==c.props[f]&&((a=e.ownerState)==null?void 0:a[f])!==c.props[f])continue e;typeof c.style=="function"?(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),n.push(i?fi(yi(c.style(s)),i):c.style(s))):n.push(i?fi(yi(c.style),i):c.style)}return n}function jC(e={}){const{themeId:t,defaultTheme:n=WC,rootShouldForwardProp:i=cc,slotShouldForwardProp:s=cc}=e;function a(c){UC(c,t,n)}return(c,f={})=>{MC(c,P=>P.filter(D=>D!==xi));const{name:p,slot:h,skipVariantsResolver:S,skipSx:R,overridesResolver:w=BC(Yg(h)),...C}=f,y=p&&p.startsWith("Mui")||h?"components":"custom",v=S!==void 0?S:h&&h!=="Root"&&h!=="root"||!1,g=R||!1;let m=cc;h==="Root"||h==="root"?m=i:h?m=s:GC(c)&&(m=void 0);const x=Ug(c,{shouldForwardProp:m,label:qC(p,h),...C}),E=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(A){return Wa(A,P,A.theme.modularCssLayers?y:void 0)};if(kr(P)){const D=Vg(P);return function(z){return D.variants?Wa(z,D,z.theme.modularCssLayers?y:void 0):z.theme.modularCssLayers?fi(D.style,y):D.style}}return P},T=(...P)=>{const D=[],A=P.map(E),z=[];if(D.push(a),p&&w&&z.push(function(j){var X,fe;const J=(fe=(X=j.theme.components)==null?void 0:X[p])==null?void 0:fe.styleOverrides;if(!J)return null;const H={};for(const ae in J)H[ae]=Wa(j,J[ae],j.theme.modularCssLayers?"theme":void 0);return w(j,H)}),p&&!v&&z.push(function(j){var H,X;const B=j.theme,J=(X=(H=B==null?void 0:B.components)==null?void 0:H[p])==null?void 0:X.variants;return J?Gg(j,J,[],j.theme.modularCssLayers?"theme":void 0):null}),g||z.push(xi),Array.isArray(A[0])){const _=A.shift(),j=new Array(D.length).fill(""),B=new Array(z.length).fill("");let J;J=[...j,..._,...B],J.raw=[...j,..._.raw,...B],D.unshift(J)}const K=[...D,...A,...z],Z=x(...K);return c.muiName&&(Z.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(Z.displayName=HC(p,h,c)),Z};return x.withConfig&&(T.withConfig=x.withConfig),T}}function HC(e,t,n){return e?`${e}${rf(t||"")}`:`Styled(${FC(n)})`}function qC(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Yg(t||"Root")}`),n}function VC(e){for(const t in e)return!1;return!0}function GC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yg(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function _c(e,t,n=!1){const i={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const a=s;if(a==="components"||a==="slots")i[a]={...e[a],...i[a]};else if(a==="componentsProps"||a==="slotProps"){const u=e[a],c=t[a];if(!c)i[a]=u||{};else if(!u)i[a]=c;else{i[a]={...c};for(const f in u)if(Object.prototype.hasOwnProperty.call(u,f)){const p=f;i[a][p]=_c(u[p],c[p],n)}}}else a==="className"&&n&&t.className?i.className=at(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&n&&t.style?i.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:i[a]===void 0&&(i[a]=e[a])}return i}function YC(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function uf(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),YC(e,t,n)}function ZC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((i,s)=>s<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Br(e){if(e.type)return e;if(e.charAt(0)==="#")return Br(ZC(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
95
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ga(9,e));let i=e.substring(t+1,e.length-1),s;if(n==="color"){if(i=i.split(" "),s=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
|
|
96
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ga(10,s))}else i=i.split(",");return i=i.map(a=>parseFloat(a)),{type:n,values:i,colorSpace:s}}const XC=e=>{const t=Br(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},Xo=(e,t)=>{try{return XC(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Su(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Zg(e){e=Br(e);const{values:t}=e,n=t[0],i=t[1]/100,s=t[2]/100,a=i*Math.min(s,1-s),u=(p,h=(p+n/30)%12)=>s-a*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const f=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(c+="a",f.push(t[3])),Su({type:c,values:f})}function Rc(e){e=Br(e);let t=e.type==="hsl"||e.type==="hsla"?Br(Zg(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Uh(e,t){const n=Rc(e),i=Rc(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function Xa(e,t){return e=Br(e),t=uf(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Su(e)}function ni(e,t,n){try{return Xa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Eu(e,t){if(e=Br(e),t=uf(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Su(e)}function tt(e,t,n){try{return Eu(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ou(e,t){if(e=Br(e),t=uf(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Su(e)}function nt(e,t,n){try{return Ou(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Xg(e,t=.15){return Rc(e)>.5?Eu(e,t):Ou(e,t)}function Ea(e,t,n){try{return Xg(e,t)}catch{return e}}const KC=oe.createContext();process.env.NODE_ENV!=="production"&&(b.node,b.bool);const Kg=()=>oe.useContext(KC)??!1,JC=oe.createContext(void 0);process.env.NODE_ENV!=="production"&&(b.node,b.object);function QC(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const s=t.components[n];return s.defaultProps?_c(s.defaultProps,i,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?_c(s,i,t.components.mergeClassNameAndStyle):i}function e_({props:e,name:t}){const n=oe.useContext(JC);return QC({props:e,name:t,theme:{components:n}})}const jh={theme:void 0};function t_(e){let t,n;return function(s){let a=t;return(a===void 0||s.theme!==n)&&(jh.theme=s.theme,a=Vg(e(jh)),t=a,n=s.theme),a}}function n_(e=""){function t(...i){if(!i.length)return"";const s=i[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...i.slice(1))})`:`, ${s}`}return(i,...s)=>`var(--${e?`${e}-`:""}${i}${t(...s)})`}const Hh=(e,t,n,i=[])=>{let s=e;t.forEach((a,u)=>{u===t.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=i.includes(a)?[]:{}),s=s[a])})},r_=(e,t,n)=>{function i(s,a=[],u=[]){Object.entries(s).forEach(([c,f])=>{(!n||n&&!n([...a,c]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?i(f,[...a,c],Array.isArray(f)?[...u,c]:u):t([...a,c],f,u))})}i(e)},i_=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function fc(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},s={},a={},u={};return r_(e,(c,f,p)=>{if((typeof f=="string"||typeof f=="number")&&(!i||!i(c,f))){const h=`--${n?`${n}-`:""}${c.join("-")}`,S=i_(c,f);Object.assign(s,{[h]:S}),Hh(a,c,`var(${h})`,p),Hh(u,c,`var(${h}, ${S})`,p)}},c=>c[0]==="vars"),{css:s,vars:a,varsWithDefaults:u}}function o_(e,t={}){const{getSelector:n=g,disableCssColorScheme:i,colorSchemeSelector:s,enableContrastVars:a}=t,{colorSchemes:u={},components:c,defaultColorScheme:f="light",...p}=e,{vars:h,css:S,varsWithDefaults:R}=fc(p,t);let w=R;const C={},{[f]:y,...v}=u;if(Object.entries(v||{}).forEach(([E,T])=>{const{vars:P,css:D,varsWithDefaults:A}=fc(T,t);w=gi(w,A),C[E]={css:D,vars:P}}),y){const{css:E,vars:T,varsWithDefaults:P}=fc(y,t);w=gi(w,P),C[f]={css:E,vars:T}}function g(E,T){var D,A;let P=s;if(s==="class"&&(P=".%s"),s==="data"&&(P="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(P=`[${s}="%s"]`),E){if(P==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((A=(D=u[E])==null?void 0:D.palette)==null?void 0:A.mode)||E})`]:{":root":T}};if(P)return e.defaultColorScheme===E?`:root, ${P.replace("%s",String(E))}`:P.replace("%s",String(E))}return":root"}return{vars:w,generateThemeVars:()=>{let E={...h};return Object.entries(C).forEach(([,{vars:T}])=>{E=gi(E,T)}),E},generateStyleSheets:()=>{var z,K;const E=[],T=e.defaultColorScheme||"light";function P(Z,_){Object.keys(_).length&&E.push(typeof Z=="string"?{[Z]:{..._}}:Z)}P(n(void 0,{...S}),S);const{[T]:D,...A}=C;if(D){const{css:Z}=D,_=(K=(z=u[T])==null?void 0:z.palette)==null?void 0:K.mode,j=!i&&_?{colorScheme:_,...Z}:{...Z};P(n(T,{...j}),j)}return Object.entries(A).forEach(([Z,{css:_}])=>{var J,H;const j=(H=(J=u[Z])==null?void 0:J.palette)==null?void 0:H.mode,B=!i&&j?{colorScheme:j,..._}:{..._};P(n(Z,{...B}),B)}),a&&E.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),E}}}function s_(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function $r(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jg(e){if(oe.isValidElement(e)||wi.isValidElementType(e)||!$r(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Jg(e[n])}),t}function vi(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return $r(e)&&$r(t)&&Object.keys(t).forEach(s=>{oe.isValidElement(t[s])||wi.isValidElementType(t[s])?i[s]=t[s]:$r(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&$r(e[s])?i[s]=vi(e[s],t[s],n):n.clone?i[s]=$r(t[s])?Jg(t[s]):t[s]:i[s]=t[s]}),i}const us={black:"#000",white:"#fff"},a_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Wi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Bi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ko={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ui={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ji={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Hi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Qg(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:us.white,default:us.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ey=Qg();function ty(){return{text:{primary:us.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:us.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Dc=ty();function qh(e,t,n,i){const s=i.light||i,a=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ou(e.main,s):t==="dark"&&(e.dark=Eu(e.main,a)))}function Vh(e,t,n,i,s){const a=s.light||s,u=s.dark||s*1.5;t[n]||(t.hasOwnProperty(i)?t[n]=t[i]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(u*100).toFixed(0)}%)`))}function u_(e="light"){return e==="dark"?{main:Ui[200],light:Ui[50],dark:Ui[400]}:{main:Ui[700],light:Ui[400],dark:Ui[800]}}function l_(e="light"){return e==="dark"?{main:Wi[200],light:Wi[50],dark:Wi[400]}:{main:Wi[500],light:Wi[300],dark:Wi[700]}}function c_(e="light"){return e==="dark"?{main:Bi[500],light:Bi[300],dark:Bi[700]}:{main:Bi[700],light:Bi[400],dark:Bi[800]}}function f_(e="light"){return e==="dark"?{main:ji[400],light:ji[300],dark:ji[700]}:{main:ji[700],light:ji[500],dark:ji[900]}}function d_(e="light"){return e==="dark"?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[800],light:Hi[500],dark:Hi[900]}}function p_(e="light"){return e==="dark"?{main:ko[400],light:ko[300],dark:ko[700]}:{main:"#ed6c02",light:ko[500],dark:ko[900]}}function h_(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function lf(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,colorSpace:s,...a}=e,u=e.primary||u_(t),c=e.secondary||l_(t),f=e.error||c_(t),p=e.info||f_(t),h=e.success||d_(t),S=e.warning||p_(t);function R(v){if(s)return h_(v);const g=Uh(v,Dc.text.primary)>=n?Dc.text.primary:ey.text.primary;if(process.env.NODE_ENV!=="production"){const m=Uh(v,g);m<3&&console.error([`MUI: The contrast ratio of ${m}:1 for ${g} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
97
|
+
`))}return g}const w=({color:v,name:g,mainShade:m=500,lightShade:x=300,darkShade:E=700})=>{if(v={...v},!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
98
|
+
The color object needs to have a \`main\` property or a \`${m}\` property.`:as(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
99
|
+
\`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
|
|
100
|
+
|
|
101
|
+
Did you intend to use one of the following approaches?
|
|
102
|
+
|
|
103
|
+
import { green } from "@mui/material/colors";
|
|
104
|
+
|
|
105
|
+
const theme1 = createTheme({ palette: {
|
|
106
|
+
primary: green,
|
|
107
|
+
} });
|
|
108
|
+
|
|
109
|
+
const theme2 = createTheme({ palette: {
|
|
110
|
+
primary: { main: green[500] },
|
|
111
|
+
} });`:as(12,g?` (${g})`:"",JSON.stringify(v.main)));return s?(Vh(s,v,"light",x,i),Vh(s,v,"dark",E,i)):(qh(v,"light",x,i),qh(v,"dark",E,i)),v.contrastText||(v.contrastText=R(v.main)),v};let C;return t==="light"?C=Qg():t==="dark"&&(C=ty()),process.env.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),vi({common:{...us},mode:t,primary:w({color:u,name:"primary"}),secondary:w({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:f,name:"error"}),warning:w({color:S,name:"warning"}),info:w({color:p,name:"info"}),success:w({color:h,name:"success"}),grey:a_,contrastThreshold:n,getContrastText:R,augmentColor:w,tonalOffset:i,...C},a)}function m_(e){const t={};return Object.entries(e).forEach(i=>{const[s,a]=i;typeof a=="object"&&(t[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const g_={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Jn(e,t,n="Mui"){const i=g_[t];return i?`${n}-${i}`:`${kg.generate(e)}-${t}`}function y_(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function v_(e){return Math.round(e*1e5)/1e5}const Gh={textTransform:"uppercase"},Yh='"Roboto", "Helvetica", "Arial", sans-serif';function b_(e,t){const{fontFamily:n=Yh,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h,...S}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const R=i/14,w=h||(v=>`${v/f*R}rem`),C=(v,g,m,x,E)=>({fontFamily:n,fontWeight:v,fontSize:w(g),lineHeight:m,...n===Yh?{letterSpacing:`${v_(x/g)}em`}:{},...E,...p}),y={h1:C(s,96,1.167,-1.5),h2:C(s,60,1.2,-.5),h3:C(a,48,1.167,0),h4:C(a,34,1.235,.25),h5:C(a,24,1.334,0),h6:C(u,20,1.6,.15),subtitle1:C(a,16,1.75,.15),subtitle2:C(u,14,1.57,.1),body1:C(a,16,1.5,.15),body2:C(a,14,1.43,.15),button:C(u,14,1.75,.4,Gh),caption:C(a,12,1.66,.4),overline:C(a,12,2.66,1,Gh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vi({htmlFontSize:f,pxToRem:w,fontFamily:n,fontSize:i,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c,...y},S,{clone:!1})}const w_=.2,x_=.14,S_=.12;function ct(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${w_})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${x_})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${S_})`].join(",")}const E_=["none",ct(0,2,1,-1,0,1,1,0,0,1,3,0),ct(0,3,1,-2,0,2,2,0,0,1,5,0),ct(0,3,3,-2,0,3,4,0,0,1,8,0),ct(0,2,4,-1,0,4,5,0,0,1,10,0),ct(0,3,5,-1,0,5,8,0,0,1,14,0),ct(0,3,5,-1,0,6,10,0,0,1,18,0),ct(0,4,5,-2,0,7,10,1,0,2,16,1),ct(0,5,5,-3,0,8,10,1,0,3,14,2),ct(0,5,6,-3,0,9,12,1,0,3,16,2),ct(0,6,6,-3,0,10,14,1,0,4,18,3),ct(0,6,7,-4,0,11,15,1,0,4,20,3),ct(0,7,8,-4,0,12,17,2,0,5,22,4),ct(0,7,8,-4,0,13,19,2,0,5,24,4),ct(0,7,9,-4,0,14,21,2,0,5,26,4),ct(0,8,9,-5,0,15,22,2,0,6,28,5),ct(0,8,10,-5,0,16,24,2,0,6,30,5),ct(0,8,11,-5,0,17,26,2,0,6,32,5),ct(0,9,11,-5,0,18,28,2,0,7,34,6),ct(0,9,12,-6,0,19,29,2,0,7,36,6),ct(0,10,13,-6,0,20,31,3,0,8,38,7),ct(0,10,13,-6,0,21,33,3,0,8,40,7),ct(0,10,14,-6,0,22,35,3,0,8,42,7),ct(0,11,14,-7,0,23,36,3,0,9,44,8),ct(0,11,15,-7,0,24,38,3,0,9,46,8)],O_={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},T_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zh(e){return`${Math.round(e)}ms`}function C_(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function __(e){const t={...O_,...e.easing},n={...T_,...e.duration};return{getAutoHeightDuration:C_,create:(s=["all"],a={})=>{const{duration:u=n.standard,easing:c=t.easeInOut,delay:f=0,...p}=a;if(process.env.NODE_ENV!=="production"){const h=R=>typeof R=="string",S=R=>!Number.isNaN(parseFloat(R));!h(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!S(u)&&!h(u)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${u}.`),h(c)||console.error('MUI: Argument "easing" must be a string.'),!S(f)&&!h(f)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
112
|
+
`)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(h=>`${h} ${typeof u=="string"?u:Zh(u)} ${c} ${typeof f=="string"?f:Zh(f)}`).join(",")},...e,easing:t,duration:n}}const R_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function D_(e){return $r(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ny(e={}){const t={...e};function n(i){const s=Object.entries(i);for(let a=0;a<s.length;a++){const[u,c]=s[a];!D_(c)||u.startsWith("unstable_")?delete i[u]:$r(c)&&(i[u]={...c},n(i[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
113
|
+
|
|
114
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
115
|
+
|
|
116
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
117
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
118
|
+
|
|
119
|
+
export default theme;`}function Xh(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const M_=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let i=0;i<t.length;i+=1)n+=+t[i];return n};function P_(e){Object.assign(e,{alpha(t,n){const i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Xa(t,M_(n))},lighten(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${Xh(n)})`:Ou(t,n)},darken(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${Xh(n)})`:Eu(t,n)}})}function Mc(e={},...t){const{breakpoints:n,mixins:i={},spacing:s,palette:a={},transitions:u={},typography:c={},shape:f,colorSpace:p,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":as(20));const S=lf({...a,colorSpace:p}),R=af(e);let w=vi(R,{mixins:y_(R.breakpoints,i),palette:S,shadows:E_.slice(),typography:b_(S,c),transitions:__(u),zIndex:{...R_}});if(w=vi(w,h),w=t.reduce((C,y)=>vi(C,y),w),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(v,g)=>{let m;for(m in v){const x=v[m];if(C.includes(m)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const E=Jn("",m);console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${E}' syntax:`,JSON.stringify({root:{[`&.${E}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
120
|
+
`))}v[m]={}}}};Object.keys(w.components).forEach(v=>{const g=w.components[v].styleOverrides;g&&v.startsWith("Mui")&&y(g,v)})}return w.unstable_sxConfig={...vs,...h==null?void 0:h.unstable_sxConfig},w.unstable_sx=function(y){return xi({sx:y,theme:this})},w.toRuntimeSource=ny,P_(w),w}function I_(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const N_=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=I_(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ry(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function iy(e){return e==="dark"?N_:[]}function A_(e){const{palette:t={mode:"light"},opacity:n,overlays:i,colorSpace:s,...a}=e,u=lf({...t,colorSpace:s});return{palette:u,opacity:{...ry(u.mode),...n},overlays:i||iy(u.mode),...a}}function k_(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const $_=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],L_=e=>(t,n)=>{const i=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return $_(e.cssVarPrefix).forEach(c=>{u[c]=n[c],delete n[c]}),a==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:u}}:a?{[a.replace("%s",t)]:u,[`${i}, ${a.replace("%s",t)}`]:n}:{[i]:{...n,...u}}}if(a&&a!=="media")return`${i}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:n}};if(a)return a.replace("%s",String(t))}return i};function z_(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ne(e,t,n){!e[t]&&n&&(e[t]=n)}function Ko(e){return typeof e!="string"||!e.startsWith("hsl")?e:Zg(e)}function fr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Xo(Ko(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
121
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function F_(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const qn=e=>{try{return e()}catch{}},W_=(e="mui")=>n_(e);function dc(e,t,n,i,s){if(!n)return;n=n===!0?{}:n;const a=s==="dark"?"dark":"light";if(!i){t[s]=A_({...n,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:u,...c}=Mc({...i,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return t[s]={...n,palette:u,opacity:{...ry(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||iy(a)},c}function B_(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",nativeColor:u=!1,shouldSkipGeneratingVar:c=k_,colorSchemeSelector:f=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...h}=e,S=Object.keys(n)[0],R=i||(n.light&&S!=="light"?"light":S),w=W_(a),{[R]:C,light:y,dark:v,...g}=n,m={...g};let x=C;if((R==="dark"&&!("dark"in n)||R==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${R}\` option is either missing or invalid.`:as(21,R));let E;u&&(E="oklch");const T=dc(E,m,x,h,R);y&&!m.light&&dc(E,m,y,void 0,"light"),v&&!m.dark&&dc(E,m,v,void 0,"dark");let P={defaultColorScheme:R,...T,cssVarPrefix:a,colorSchemeSelector:f,rootSelector:p,getCssVar:w,colorSchemes:m,font:{...m_(T.typography),...T.font},spacing:F_(h.spacing)};Object.keys(P.colorSchemes).forEach(Z=>{const _=P.colorSchemes[Z].palette,j=J=>{const H=J.split("-"),X=H[1],fe=H[2];return w(J,_[X][fe])};_.mode==="light"&&(ne(_.common,"background","#fff"),ne(_.common,"onBackground","#000")),_.mode==="dark"&&(ne(_.common,"background","#000"),ne(_.common,"onBackground","#fff"));function B(J,H,X){if(E){let fe;return J===ni&&(fe=`transparent ${((1-X)*100).toFixed(0)}%`),J===tt&&(fe=`#000 ${(X*100).toFixed(0)}%`),J===nt&&(fe=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${E}, ${H}, ${fe})`}return J(H,X)}if(z_(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){ne(_.Alert,"errorColor",B(tt,_.error.light,.6)),ne(_.Alert,"infoColor",B(tt,_.info.light,.6)),ne(_.Alert,"successColor",B(tt,_.success.light,.6)),ne(_.Alert,"warningColor",B(tt,_.warning.light,.6)),ne(_.Alert,"errorFilledBg",j("palette-error-main")),ne(_.Alert,"infoFilledBg",j("palette-info-main")),ne(_.Alert,"successFilledBg",j("palette-success-main")),ne(_.Alert,"warningFilledBg",j("palette-warning-main")),ne(_.Alert,"errorFilledColor",qn(()=>_.getContrastText(_.error.main))),ne(_.Alert,"infoFilledColor",qn(()=>_.getContrastText(_.info.main))),ne(_.Alert,"successFilledColor",qn(()=>_.getContrastText(_.success.main))),ne(_.Alert,"warningFilledColor",qn(()=>_.getContrastText(_.warning.main))),ne(_.Alert,"errorStandardBg",B(nt,_.error.light,.9)),ne(_.Alert,"infoStandardBg",B(nt,_.info.light,.9)),ne(_.Alert,"successStandardBg",B(nt,_.success.light,.9)),ne(_.Alert,"warningStandardBg",B(nt,_.warning.light,.9)),ne(_.Alert,"errorIconColor",j("palette-error-main")),ne(_.Alert,"infoIconColor",j("palette-info-main")),ne(_.Alert,"successIconColor",j("palette-success-main")),ne(_.Alert,"warningIconColor",j("palette-warning-main")),ne(_.AppBar,"defaultBg",j("palette-grey-100")),ne(_.Avatar,"defaultBg",j("palette-grey-400")),ne(_.Button,"inheritContainedBg",j("palette-grey-300")),ne(_.Button,"inheritContainedHoverBg",j("palette-grey-A100")),ne(_.Chip,"defaultBorder",j("palette-grey-400")),ne(_.Chip,"defaultAvatarColor",j("palette-grey-700")),ne(_.Chip,"defaultIconColor",j("palette-grey-700")),ne(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(_.LinearProgress,"primaryBg",B(nt,_.primary.main,.62)),ne(_.LinearProgress,"secondaryBg",B(nt,_.secondary.main,.62)),ne(_.LinearProgress,"errorBg",B(nt,_.error.main,.62)),ne(_.LinearProgress,"infoBg",B(nt,_.info.main,.62)),ne(_.LinearProgress,"successBg",B(nt,_.success.main,.62)),ne(_.LinearProgress,"warningBg",B(nt,_.warning.main,.62)),ne(_.Skeleton,"bg",E?B(ni,_.text.primary,.11):`rgba(${j("palette-text-primaryChannel")} / 0.11)`),ne(_.Slider,"primaryTrack",B(nt,_.primary.main,.62)),ne(_.Slider,"secondaryTrack",B(nt,_.secondary.main,.62)),ne(_.Slider,"errorTrack",B(nt,_.error.main,.62)),ne(_.Slider,"infoTrack",B(nt,_.info.main,.62)),ne(_.Slider,"successTrack",B(nt,_.success.main,.62)),ne(_.Slider,"warningTrack",B(nt,_.warning.main,.62));const J=E?B(tt,_.background.default,.6825):Ea(_.background.default,.8);ne(_.SnackbarContent,"bg",J),ne(_.SnackbarContent,"color",qn(()=>E?Dc.text.primary:_.getContrastText(J))),ne(_.SpeedDialAction,"fabHoverBg",Ea(_.background.paper,.15)),ne(_.StepConnector,"border",j("palette-grey-400")),ne(_.StepContent,"border",j("palette-grey-400")),ne(_.Switch,"defaultColor",j("palette-common-white")),ne(_.Switch,"defaultDisabledColor",j("palette-grey-100")),ne(_.Switch,"primaryDisabledColor",B(nt,_.primary.main,.62)),ne(_.Switch,"secondaryDisabledColor",B(nt,_.secondary.main,.62)),ne(_.Switch,"errorDisabledColor",B(nt,_.error.main,.62)),ne(_.Switch,"infoDisabledColor",B(nt,_.info.main,.62)),ne(_.Switch,"successDisabledColor",B(nt,_.success.main,.62)),ne(_.Switch,"warningDisabledColor",B(nt,_.warning.main,.62)),ne(_.TableCell,"border",B(nt,B(ni,_.divider,1),.88)),ne(_.Tooltip,"bg",B(ni,_.grey[700],.92))}if(_.mode==="dark"){ne(_.Alert,"errorColor",B(nt,_.error.light,.6)),ne(_.Alert,"infoColor",B(nt,_.info.light,.6)),ne(_.Alert,"successColor",B(nt,_.success.light,.6)),ne(_.Alert,"warningColor",B(nt,_.warning.light,.6)),ne(_.Alert,"errorFilledBg",j("palette-error-dark")),ne(_.Alert,"infoFilledBg",j("palette-info-dark")),ne(_.Alert,"successFilledBg",j("palette-success-dark")),ne(_.Alert,"warningFilledBg",j("palette-warning-dark")),ne(_.Alert,"errorFilledColor",qn(()=>_.getContrastText(_.error.dark))),ne(_.Alert,"infoFilledColor",qn(()=>_.getContrastText(_.info.dark))),ne(_.Alert,"successFilledColor",qn(()=>_.getContrastText(_.success.dark))),ne(_.Alert,"warningFilledColor",qn(()=>_.getContrastText(_.warning.dark))),ne(_.Alert,"errorStandardBg",B(tt,_.error.light,.9)),ne(_.Alert,"infoStandardBg",B(tt,_.info.light,.9)),ne(_.Alert,"successStandardBg",B(tt,_.success.light,.9)),ne(_.Alert,"warningStandardBg",B(tt,_.warning.light,.9)),ne(_.Alert,"errorIconColor",j("palette-error-main")),ne(_.Alert,"infoIconColor",j("palette-info-main")),ne(_.Alert,"successIconColor",j("palette-success-main")),ne(_.Alert,"warningIconColor",j("palette-warning-main")),ne(_.AppBar,"defaultBg",j("palette-grey-900")),ne(_.AppBar,"darkBg",j("palette-background-paper")),ne(_.AppBar,"darkColor",j("palette-text-primary")),ne(_.Avatar,"defaultBg",j("palette-grey-600")),ne(_.Button,"inheritContainedBg",j("palette-grey-800")),ne(_.Button,"inheritContainedHoverBg",j("palette-grey-700")),ne(_.Chip,"defaultBorder",j("palette-grey-700")),ne(_.Chip,"defaultAvatarColor",j("palette-grey-300")),ne(_.Chip,"defaultIconColor",j("palette-grey-300")),ne(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(_.LinearProgress,"primaryBg",B(tt,_.primary.main,.5)),ne(_.LinearProgress,"secondaryBg",B(tt,_.secondary.main,.5)),ne(_.LinearProgress,"errorBg",B(tt,_.error.main,.5)),ne(_.LinearProgress,"infoBg",B(tt,_.info.main,.5)),ne(_.LinearProgress,"successBg",B(tt,_.success.main,.5)),ne(_.LinearProgress,"warningBg",B(tt,_.warning.main,.5)),ne(_.Skeleton,"bg",E?B(ni,_.text.primary,.13):`rgba(${j("palette-text-primaryChannel")} / 0.13)`),ne(_.Slider,"primaryTrack",B(tt,_.primary.main,.5)),ne(_.Slider,"secondaryTrack",B(tt,_.secondary.main,.5)),ne(_.Slider,"errorTrack",B(tt,_.error.main,.5)),ne(_.Slider,"infoTrack",B(tt,_.info.main,.5)),ne(_.Slider,"successTrack",B(tt,_.success.main,.5)),ne(_.Slider,"warningTrack",B(tt,_.warning.main,.5));const J=E?B(nt,_.background.default,.985):Ea(_.background.default,.98);ne(_.SnackbarContent,"bg",J),ne(_.SnackbarContent,"color",qn(()=>E?ey.text.primary:_.getContrastText(J))),ne(_.SpeedDialAction,"fabHoverBg",Ea(_.background.paper,.15)),ne(_.StepConnector,"border",j("palette-grey-600")),ne(_.StepContent,"border",j("palette-grey-600")),ne(_.Switch,"defaultColor",j("palette-grey-300")),ne(_.Switch,"defaultDisabledColor",j("palette-grey-600")),ne(_.Switch,"primaryDisabledColor",B(tt,_.primary.main,.55)),ne(_.Switch,"secondaryDisabledColor",B(tt,_.secondary.main,.55)),ne(_.Switch,"errorDisabledColor",B(tt,_.error.main,.55)),ne(_.Switch,"infoDisabledColor",B(tt,_.info.main,.55)),ne(_.Switch,"successDisabledColor",B(tt,_.success.main,.55)),ne(_.Switch,"warningDisabledColor",B(tt,_.warning.main,.55)),ne(_.TableCell,"border",B(tt,B(ni,_.divider,1),.68)),ne(_.Tooltip,"bg",B(ni,_.grey[700],.92))}fr(_.background,"default"),fr(_.background,"paper"),fr(_.common,"background"),fr(_.common,"onBackground"),fr(_,"divider"),Object.keys(_).forEach(J=>{const H=_[J];J!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&ne(_[J],"mainChannel",Xo(Ko(H.main))),H.light&&ne(_[J],"lightChannel",Xo(Ko(H.light))),H.dark&&ne(_[J],"darkChannel",Xo(Ko(H.dark))),H.contrastText&&ne(_[J],"contrastTextChannel",Xo(Ko(H.contrastText))),J==="text"&&(fr(_[J],"primary"),fr(_[J],"secondary")),J==="action"&&(H.active&&fr(_[J],"active"),H.selected&&fr(_[J],"selected")))})}),P=t.reduce((Z,_)=>vi(Z,_),P);const D={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:c,getSelector:L_(P),enableContrastVars:u},{vars:A,generateThemeVars:z,generateStyleSheets:K}=o_(P,D);return P.vars=A,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([Z,_])=>{P[Z]=_}),P.generateThemeVars=z,P.generateStyleSheets=K,P.generateSpacing=function(){return jg(h.spacing,of(this))},P.getColorSchemeSelector=s_(f),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=c,P.unstable_sxConfig={...vs,...h==null?void 0:h.unstable_sxConfig},P.unstable_sx=function(_){return xi({sx:_,theme:this})},P.toRuntimeSource=ny,P}function Kh(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:lf({...n===!0?{}:n.palette,mode:t})})}function oy(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...u}=e,c=a||"light",f=s==null?void 0:s[c],p={...s,...n?{[c]:{...typeof f!="boolean"&&f,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Mc(e,...t);let h=n;"palette"in e||p[c]&&(p[c]!==!0?h=p[c].palette:c==="dark"&&(h={mode:"dark"}));const S=Mc({...e,palette:h},...t);return S.defaultColorScheme=c,S.colorSchemes=p,S.palette.mode==="light"&&(S.colorSchemes.light={...p.light!==!0&&p.light,palette:S.palette},Kh(S,"dark",p.dark)),S.palette.mode==="dark"&&(S.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:S.palette},Kh(S,"light",p.light)),S}return!n&&!("light"in p)&&c==="light"&&(p.light=!0),B_({...u,colorSchemes:p,defaultColorScheme:c,...typeof i!="boolean"&&i},...t)}const sy=oy(),cf="$$material";function bs(){const e=Hg(sy);return process.env.NODE_ENV!=="production"&&oe.useDebugValue(e),e[cf]||e}function U_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ay=e=>U_(e)&&e!=="classes",Lt=jC({themeId:cf,defaultTheme:sy,rootShouldForwardProp:ay}),Cn=t_;process.env.NODE_ENV!=="production"&&(b.node,b.object.isRequired);function xr(e){return e_(e)}function Qn(e,t,n="Mui"){const i={};return t.forEach(s=>{i[s]=Jn(e,s,n)}),i}function j_(e){return Jn("MuiSvgIcon",e)}Qn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const H_=e=>{const{color:t,fontSize:n,classes:i}=e,s={root:["root",t!=="inherit"&&`color${fn(t)}`,`fontSize${fn(n)}`]};return Ur(s,j_,i)},q_=Lt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${fn(n.color)}`],t[`fontSize${fn(n.fontSize)}`]]}})(Cn(({theme:e})=>{var t,n,i,s,a,u,c,f,p,h,S,R,w,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(i=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((f=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:f.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var v,g;return{props:{color:y},style:{color:(g=(v=(e.vars??e).palette)==null?void 0:v[y])==null?void 0:g.main}}}),{props:{color:"action"},style:{color:(R=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:R.active}},{props:{color:"disabled"},style:{color:(C=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ka=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:u="inherit",component:c="svg",fontSize:f="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:S,viewBox:R="0 0 24 24",...w}=i,C=oe.isValidElement(s)&&s.type==="svg",y={...i,color:u,component:c,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:R,hasSvgAsChild:C},v={};h||(v.viewBox=R);const g=H_(y);return F.jsxs(q_,{as:c,className:at(g.root,a),focusable:"false",color:p,"aria-hidden":S?void 0:!0,role:S?"img":void 0,ref:n,...v,...w,...C&&s.props,ownerState:y,children:[C?s.props.children:s,S?F.jsx("title",{children:S}):null]})});process.env.NODE_ENV!=="production"&&(Ka.propTypes={children:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),b.string]),component:b.elementType,fontSize:b.oneOfType([b.oneOf(["inherit","large","medium","small"]),b.string]),htmlColor:b.string,inheritViewBox:b.bool,shapeRendering:b.string,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),titleAccess:b.string,viewBox:b.string});Ka.muiName="SvgIcon";function jt(e,t){function n(i,s){return F.jsx(Ka,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...i,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ka.muiName,oe.memo(oe.forwardRef(n))}function V_(e,t){var n,i,s;return oe.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(i=(n=e.type)==null?void 0:n._payload)==null?void 0:i.value)==null?void 0:s.muiName))!==-1}function Jh(e){return e&&e.ownerDocument||document}function Qh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ls=typeof window<"u"?oe.useLayoutEffect:oe.useEffect;let em=0;function G_(e){const[t,n]=oe.useState(e),i=e||t;return oe.useEffect(()=>{t==null&&(em+=1,n(`mui-${em}`))},[t]),i}const Y_={...oe},tm=Y_.useId;function Z_(e){if(tm!==void 0){const t=tm();return e??t}return G_(e)}function uy(e){const{controlled:t,default:n,name:i,state:s="value"}=e,{current:a}=oe.useRef(t!==void 0),[u,c]=oe.useState(n),f=a?t:u;if(process.env.NODE_ENV!=="production"){oe.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${s} state of ${i} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${i} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
122
|
+
`))},[s,i,t]);const{current:h}=oe.useRef(n);oe.useEffect(()=>{!a&&JSON.stringify(n)!==JSON.stringify(h)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${i} after being initialized. To suppress this warning opt to use a controlled ${i}.`].join(`
|
|
123
|
+
`))},[JSON.stringify(n)])}const p=oe.useCallback(h=>{a||c(h)},[]);return[f,p]}function Qi(e){const t=oe.useRef(e);return ls(()=>{t.current=e}),oe.useRef((...n)=>(0,t.current)(...n)).current}function Fn(...e){const t=oe.useRef(void 0),n=oe.useCallback(i=>{const s=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const u=a,c=u(i);return typeof c=="function"?c:()=>{u(null)}}return a.current=i,()=>{a.current=null}});return()=>{s.forEach(a=>a==null?void 0:a())}},e);return oe.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=n(i))},e)}function X_(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function K_(e,t){if(!e)return t;function n(u,c){const f={};return Object.keys(c).forEach(p=>{X_(p,c[p])&&typeof u[p]=="function"&&(f[p]=(...h)=>{u[p](...h),c[p](...h)})}),f}if(typeof e=="function"||typeof t=="function")return u=>{const c=typeof t=="function"?t(u):t,f=typeof e=="function"?e({...u,...c}):e,p=at(u==null?void 0:u.className,c==null?void 0:c.className,f==null?void 0:f.className),h=n(f,c);return{...c,...f,...h,...!!p&&{className:p},...(c==null?void 0:c.style)&&(f==null?void 0:f.style)&&{style:{...c.style,...f.style}},...(c==null?void 0:c.sx)&&(f==null?void 0:f.sx)&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(f.sx)?f.sx:[f.sx]]}}};const i=t,s=n(e,i),a=at(i==null?void 0:i.className,e==null?void 0:e.className);return{...t,...e,...s,...!!a&&{className:a},...(i==null?void 0:i.style)&&(e==null?void 0:e.style)&&{style:{...i.style,...e.style}},...(i==null?void 0:i.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const J_=jt(F.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Q_=()=>{const e=bs(),[t,n]=Y.useState(null),{sectionOrder:i,setVisibleSections:s,recalculateNavigation:a}=gr(),{filterOptions:u,setFilterOptions:c}=Wr(),f=Y.useMemo(()=>({...u}),[u]);Y.useEffect(()=>{const R={...u};let w=!1;i.forEach(g=>{u[g]===void 0&&(R[g]=g==="Courses",w=!0)});const C=w?R:u,y=gr.getState().visibleSections,v=JSON.stringify(y)!==JSON.stringify(C);(w||v)&&(w&&c(R),s(C))},[i,u,c,s]);const p=Y.useCallback(R=>{R.preventDefault(),R.stopPropagation(),n(R.currentTarget)},[]),h=Y.useCallback(()=>{n(null)},[]),S=Y.useCallback((R,w)=>{R.preventDefault(),R.stopPropagation();const C={...u,[w]:!u[w]};c(C),s(C),a()},[u,c,s,a]);return Object.keys(f).length===0?null:F.jsxs(me.Box,{children:[F.jsx(me.Tooltip,{title:"Filter navigation sections",children:F.jsx(me.IconButton,{disabled:Object.keys(f).length===0,onClick:p,size:"small",children:F.jsx(J_,{htmlColor:Object.keys(f).length===0?e.palette.text.disabled:e.palette.text.primary})})}),F.jsx(me.Menu,{anchorEl:t,open:!!t,onClose:h,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:Object.keys(f).map(R=>F.jsxs(me.MenuItem,{onClick:w=>S(w,R),children:[F.jsx(me.Checkbox,{checked:f[R]}),F.jsx(me.ListItemText,{primary:R})]},R))})]})},eR=({sections:e})=>{const{addSection:t,recalculateNavigation:n}=gr(),i=Y.useRef([]),s=Y.useMemo(()=>e.map(a=>({underHeader:a.underHeader,pages:a.pages.map(u=>({segment:u.segment,title:u.title,Icon:u.Icon,instances:u.instances,description:u.description,microservices:u.microservices,actionFC:u.actionFC}))})),[e]);return Y.useEffect(()=>()=>{},[]),Y.useEffect(()=>{Cc.isEqual(i.current,s)||(s.forEach(a=>{t(a)}),n(),i.current=s)},[s,t,n]),null},tR=({heading:e,subheading:t})=>F.jsxs(F.Fragment,{children:[F.jsx(me.Typography,{variant:"h1",sx:{textAlign:"center",mt:5,color:"text.secondary"},children:e}),t&&F.jsx(me.Typography,{variant:"h4",sx:{textAlign:"center",mt:2,color:"text.secondary"},children:t})]});let nm=0,rm=0;const im=500,om=200,sm=5,nR=({direction:e,itemSize:t,itemsPerPage:n=1,itemCount:i})=>{const s=Y.useRef(null),[a,u]=Y.useState(!1),[c,f]=Y.useState(!1),[p,h]=Y.useState(!1),[S,R]=Y.useState(!1),[w,C]=Y.useState({pos:0,scroll:0}),[y,v]=Y.useState(0),[g,m]=Y.useState(1),x=Y.useRef(null),E=Y.useRef(null);Y.useEffect(()=>{const H=s.current;if(!H)return;let X=null;const fe=()=>{const ue=s.current;if(!ue)return;const ye=e==="horizontal",pe=ye?ue.scrollLeft:ue.scrollTop,Oe=i??ue.children.length,Te=5;if(ye){const ve=Math.max(1,Math.round((ue.clientWidth+Te)/t)),ee=Math.max(1,Oe-ve+1),ce=Math.min(Math.floor(pe/t),ee-1);m(ee),v(ce),u(ce>0),f(ce<ee-1)}else{const ve=Math.max(1,Math.round((ue.clientHeight+Te)/t)),ee=Math.max(1,Oe-ve+1),ce=Math.min(Math.floor(pe/t),ee-1);m(ee),v(ce),u(ce>0),f(ce<ee-1)}},ae=()=>{X===null&&(X=setTimeout(()=>{X=null,fe()},100))},G=new ResizeObserver(fe);G.observe(H),H.addEventListener("scroll",ae);const $=new MutationObserver(fe);return $.observe(H,{childList:!0,subtree:!0}),requestAnimationFrame(()=>{requestAnimationFrame(fe)}),()=>{H.removeEventListener("scroll",ae),G.disconnect(),$.disconnect(),X&&clearTimeout(X)}},[e,t,n,i]),Y.useEffect(()=>{const H=s.current;if(!H||!i)return;const X=e==="horizontal"?H.scrollLeft:H.scrollTop,fe=Math.max(1,Math.ceil(i/n)),ae=Math.min(Math.floor(X/t),fe-1);m(fe),v(ae),u(ae>0),f(ae<fe-1)},[i,n,t,e]);const T=Y.useCallback(()=>{const H=s.current;if(!H)return;const X=e==="horizontal",fe=X?H.scrollLeft:H.scrollTop,ae=Math.round(fe/t)*t;H.style.scrollBehavior="smooth",X?H.scrollLeft=ae:H.scrollTop=ae},[e,t]);Y.useEffect(()=>{const H=X=>{X.preventDefault(),p&&(h(!1),T()),E.current&&(clearTimeout(E.current),E.current=null)};return window.addEventListener("mouseup",H),()=>window.removeEventListener("mouseup",H)},[p,T]);const P=H=>{const X=s.current;if(!X)return;const ae=(e==="horizontal"?X.scrollLeft:X.scrollTop)+(H?t:-t);X.style.scrollBehavior="smooth",e==="horizontal"?X.scrollLeft=ae:X.scrollTop=ae},D=H=>{P(H==="end")},A=H=>{if(!s.current)return;const X=H*t;s.current.style.scrollBehavior="smooth",e==="horizontal"?s.current.scrollLeft=X:s.current.scrollTop=X},z=H=>{H.preventDefault(),R(!1);const X=e==="horizontal"?H.pageX:H.pageY,fe=e==="horizontal"?s.current.scrollLeft:s.current.scrollTop;C({pos:X,scroll:fe}),x.current=null,s.current&&(s.current.style.scrollBehavior="auto"),E.current=window.setTimeout(()=>{h(!0),E.current=null},om)},K=H=>{if(!s.current)return;if(H.buttons===0){h(!1),E.current&&(clearTimeout(E.current),E.current=null);return}const X=e==="horizontal"?H.pageX:H.pageY,fe=w.pos-X;if(Math.abs(fe)>sm){R(!0),p||(h(!0),E.current&&(clearTimeout(E.current),E.current=null));const ae=performance.now();if(e==="horizontal"){if(ae-rm<im)return;nm=ae}else{if(ae-nm<im)return;rm=ae}const G=fe>0?"end":"start";G!==x.current&&(x.current=G,D(G))}},Z=H=>{s.current&&(H.preventDefault(),h(!1),x.current=null,E.current&&(clearTimeout(E.current),E.current=null),T())},_=H=>{const X=H.touches[0],fe=e==="horizontal"?X.pageX:X.pageY,ae=e==="horizontal"?s.current.scrollLeft:s.current.scrollTop;R(!1),C({pos:fe,scroll:ae}),E.current=window.setTimeout(()=>{h(!0),E.current=null},om)},j=H=>{if(!s.current)return;const X=H.touches[0],fe=e==="horizontal"?X.pageX:X.pageY,ae=w.pos-fe;Math.abs(ae)>sm&&(R(!0),p||(h(!0),E.current&&(clearTimeout(E.current),E.current=null)),H.preventDefault(),e==="horizontal"?s.current.scrollLeft=w.scroll+ae:s.current.scrollTop=w.scroll+ae)},B=()=>{h(!1),E.current&&(clearTimeout(E.current),E.current=null),s.current&&S&&T()},J=g>1;return{containerRef:s,showStartButton:a,showEndButton:c,isDragging:p,hasDragged:S,setHasDragged:R,scroll:D,handleMouseDown:z,handleMouseMove:K,handleMouseUp:Z,currentPage:y,totalPages:g,scrollToPage:A,disableStartButton:!a,disableEndButton:!c,handleTouchStart:_,handleTouchMove:j,handleTouchEnd:B,canScroll:J}},rR=jt(F.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),iR=jt(F.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),oR=jt(F.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),sR=jt(F.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),am=({total:e,current:t,onDotClick:n,vertical:i=!1,onArrowClick:s,disableStart:a=!1,disableEnd:u=!1})=>{const c=Math.max(0,e);return c<=0?null:F.jsxs(me.Box,{"data-testid":"pagination-dots",sx:{width:"fit-content",display:"flex",alignItems:"center",borderRadius:1,...i?{flexDirection:"column"}:{flexDirection:"row"}},children:[F.jsx(me.IconButton,{size:"small",disabled:a,onClick:()=>!a&&(s==null?void 0:s("start")),sx:{p:.5,opacity:a?0:1,transition:"opacity 0.2s ease"},children:i?F.jsx(rR,{}):F.jsx(oR,{})}),F.jsx(me.Box,{sx:{display:"flex",flexDirection:i?"column":"row",gap:.5},children:Array.from({length:c}).map((f,p)=>F.jsx(me.Box,{onClick:h=>{h.stopPropagation(),n==null||n(p)},sx:{width:6,height:6,borderRadius:"50%",bgcolor:t===p?"primary.main":"action.disabled",transition:"all 0.2s ease",cursor:n?"pointer":"default","&:hover":n?{transform:"scale(1.2)",bgcolor:t===p?"primary.dark":"primary.light"}:{}}},p))}),F.jsx(me.IconButton,{size:"small",onClick:()=>!u&&(s==null?void 0:s("end")),disabled:u,sx:{p:.5,opacity:u?0:1,transition:"opacity 0.2s ease"},children:i?F.jsx(iR,{}):F.jsx(sR,{})})]})},ly=Y.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}}),cy=({children:e})=>{const[t,n]=Y.useState({horizontal:1,vertical:1});return F.jsx(ly.Provider,{value:{itemCounts:t,setItemCounts:n},children:e})},fy=()=>{const e=Y.useContext(ly);if(!e)throw new Error("useResizeContext must be used within a ResizeProvider");return e},aR=25,di=({direction:e,children:t,itemSize:n,containerSize:i="100%",hideScrollbar:s=!0,snapScroll:a=!0,title:u,priority:c})=>{const{itemCounts:f}=fy(),p=e==="vertical"?f.vertical:f.horizontal,{containerRef:h,showStartButton:S,showEndButton:R,isDragging:w,hasDragged:C,scroll:y,handleMouseDown:v,handleMouseMove:g,handleMouseUp:m,currentPage:x,totalPages:E,scrollToPage:T,disableStartButton:P,disableEndButton:D,handleTouchStart:A,handleTouchMove:z,handleTouchEnd:K,canScroll:Z,setHasDragged:_}=nR({direction:e,itemSize:n,itemsPerPage:p}),j=e==="vertical",B=()=>u?F.jsx(me.Typography,{variant:"h6",sx:{color:c==="high"?"primary.main":c==="low"?"text.secondary":"text.primary"},children:u}):null;let J={zIndex:1,padding:1,width:"100%",height:"100%",display:"flex",overflow:"hidden",position:"relative",flexDirection:j?"column":"row",cursor:w?"grabbing":"grab",touchAction:j?"pan-y":"pan-x",scrollSnapType:a?"x mandatory":"none",scrollbarWidth:s?"none":"auto",userSelect:"none",scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",msOverflowStyle:"none","&::-webkit-scrollbar":{display:s?"none":"auto"}};j&&(J={...J,"& > div":{scrollSnapAlign:a?"start":"none",minHeight:n,flex:"0 0 auto",height:n,willChange:"transform"}});const H={onMouseDown:v,onMouseMove:g,onMouseUp:m,onMouseLeave:m,onTouchStart:A,onTouchMove:z,onTouchEnd:K,onClickCapture:X=>{C&&(X.stopPropagation(),X.preventDefault(),_(!1))}};return F.jsxs(me.Box,{sx:{display:"flex",flexDirection:"column",height:i,width:"100%"},children:[B(),j?F.jsxs(me.Box,{sx:{display:"flex",flexDirection:"row",height:"100%"},children:[F.jsx(me.Box,{"data-testid":"reel-container",ref:h,sx:J,...H,children:t}),F.jsx(me.Box,{"data-testid":"pagination-dots-container",sx:{width:aR,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:F.jsx(am,{total:E,current:x,onDotClick:T,onArrowClick:y,vertical:!0,showArrows:S||R,disableStart:P,disableEnd:D})})]}):F.jsxs(me.Box,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[F.jsx(me.Box,{ref:h,sx:J,...H,children:Y.Children.map(t,X=>F.jsx(me.Box,{"data-testid":"reel-item",sx:{width:n,scrollSnapAlign:"start",display:"flex",flexShrink:0},children:X}))}),F.jsx(am,{total:E,current:x,onDotClick:T,onArrowClick:y,showArrows:Z,disableStart:P,disableEnd:D})]})]})},uR=me.keyframes`
|
|
124
|
+
0% { transform: scale(0.95); opacity: 0.5; }
|
|
125
|
+
50% { transform: scale(1.05); opacity: 0.8; }
|
|
126
|
+
100% { transform: scale(0.95); opacity: 0.5; }
|
|
127
|
+
`,lR=me.keyframes`
|
|
128
|
+
0% { content: ''; }
|
|
129
|
+
25% { content: '.'; }
|
|
130
|
+
50% { content: '..'; }
|
|
131
|
+
75% { content: '...'; }
|
|
132
|
+
100% { content: ''; }
|
|
133
|
+
`,cR=me.keyframes`
|
|
134
|
+
from { opacity: 0; }
|
|
135
|
+
to { opacity: 1; }
|
|
136
|
+
`,fR=()=>F.jsxs(me.Box,{"data-testid":"loading-screen",sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"100%",gap:3,backdropFilter:"blur(8px)",animation:`${cR} 0.5s ease-in`},children:[F.jsx(me.Box,{sx:{position:"relative",animation:`${uR} 2s ease-in-out infinite`},children:F.jsx(me.CircularProgress,{size:60,thickness:4,sx:{opacity:.8}})}),F.jsxs(me.Typography,{variant:"h6",sx:{fontWeight:300,letterSpacing:1,display:"flex",alignItems:"center",gap:"2px"},children:["Loading",F.jsx(me.Box,{sx:{display:"inline-block",width:"24px",position:"relative","&::after":{content:"''",left:0,animation:`${lR} 1.5s steps(4) infinite`}}})]})]}),dy="resizable-panel-dimensions-";function py(e,t){try{const n=localStorage.getItem(dy+e);return n?JSON.parse(n):t}catch(n){return console.warn("Failed to load panel dimensions:",n),t}}function dR(e,t){try{localStorage.setItem(dy+e,JSON.stringify(t))}catch(n){console.warn("Failed to save panel dimensions:",n)}}const hy=Y.createContext({id:"",panelRef:{current:null},panelContentRef:{current:null},defaultWidth:200,defaultHeight:200,minWidth:100,maxWidth:500,minHeight:100,maxHeight:500,extendedStyle:{},setExtendedStyle:()=>{},tools:[],setTools:()=>{},addTool:()=>{},removeTool:()=>{},dimensions:{width:200,height:200},setDimensions:()=>{},handleDimensionsChange:()=>{},dimensionsWereTemporary:!1,extendedContainerStyle:{position:"relative"},setExtendedContainerStyle:()=>{}}),my=({children:e,id:t,additionaltools:n,defaultWidth:i=200,defaultHeight:s=200,minWidth:a=100,maxWidth:u=500,minHeight:c=100,maxHeight:f=500,expandable:p,resizable:h,scrollable:S})=>{const R=Y.useRef(null),w=Y.useRef(null),[C,y]=Y.useState({}),[v,g]=Y.useState(n||[]),[m,x]=Y.useState(()=>py(t,{width:i,height:s})),[E,T]=Y.useState(!1),[P,D]=Y.useState({position:"relative"}),A=Z=>{g(_=>[..._,Z])},z=Z=>{g(_=>_.filter(j=>j!==Z))},K=(Z,_=!1)=>{x(Z),T(_),_||dR(t,Z)};return F.jsx(hy.Provider,{value:{id:t,panelRef:R,panelContentRef:w,defaultWidth:i,defaultHeight:s,minWidth:a,maxWidth:u,minHeight:c,maxHeight:f,expandable:p,resizable:h,scrollable:S,extendedStyle:C,setExtendedStyle:y,tools:v,setTools:g,addTool:A,removeTool:z,dimensions:m,setDimensions:x,handleDimensionsChange:K,dimensionsWereTemporary:E,extendedContainerStyle:P,setExtendedContainerStyle:D},children:e})},Bn=()=>{const e=Y.useContext(hy);if(!e)throw new Error("usePanelContext must be used within a PanelProvider");return e},pR={};function hR(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var a;const u=f=>f===null?null:JSON.parse(f,void 0),c=(a=n.getItem(s))!=null?a:null;return c instanceof Promise?c.then(u):u(c)},setItem:(s,a)=>n.setItem(s,JSON.stringify(a,void 0)),removeItem:s=>n.removeItem(s)}}const cs=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(i){return cs(i)(n)},catch(i){return this}}}catch(n){return{then(i){return this},catch(i){return cs(i)(n)}}}},mR=(e,t)=>(n,i,s)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,g)=>({...g,...v}),...t},u=!1;const c=new Set,f=new Set;let p;try{p=a.getStorage()}catch{}if(!p)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},i,s);const h=cs(a.serialize),S=()=>{const v=a.partialize({...i()});let g;const m=h({state:v,version:a.version}).then(x=>p.setItem(a.name,x)).catch(x=>{g=x});if(g)throw g;return m},R=s.setState;s.setState=(v,g)=>{R(v,g),S()};const w=e((...v)=>{n(...v),S()},i,s);let C;const y=()=>{var v;if(!p)return;u=!1,c.forEach(m=>m(i()));const g=((v=a.onRehydrateStorage)==null?void 0:v.call(a,i()))||void 0;return cs(p.getItem.bind(p))(a.name).then(m=>{if(m)return a.deserialize(m)}).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==a.version){if(a.migrate)return a.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var x;return C=a.merge(m,(x=i())!=null?x:w),n(C,!0),S()}).then(()=>{g==null||g(C,void 0),u=!0,f.forEach(m=>m(C))}).catch(m=>{g==null||g(void 0,m)})};return s.persist={setOptions:v=>{a={...a,...v},v.getStorage&&(p=v.getStorage())},clearStorage:()=>{p==null||p.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>y(),hasHydrated:()=>u,onHydrate:v=>(c.add(v),()=>{c.delete(v)}),onFinishHydration:v=>(f.add(v),()=>{f.delete(v)})},y(),C||w},gR=(e,t)=>(n,i,s)=>{let a={storage:hR(()=>localStorage),partialize:y=>y,version:0,merge:(y,v)=>({...v,...y}),...t},u=!1;const c=new Set,f=new Set;let p=a.storage;if(!p)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...y)},i,s);const h=()=>{const y=a.partialize({...i()});return p.setItem(a.name,{state:y,version:a.version})},S=s.setState;s.setState=(y,v)=>{S(y,v),h()};const R=e((...y)=>{n(...y),h()},i,s);s.getInitialState=()=>R;let w;const C=()=>{var y,v;if(!p)return;u=!1,c.forEach(m=>{var x;return m((x=i())!=null?x:R)});const g=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(y=i())!=null?y:R))||void 0;return cs(p.getItem.bind(p))(a.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==a.version){if(a.migrate)return[!0,a.migrate(m.state,m.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,m.state];return[!1,void 0]}).then(m=>{var x;const[E,T]=m;if(w=a.merge(T,(x=i())!=null?x:R),n(w,!0),E)return h()}).then(()=>{g==null||g(w,void 0),w=i(),u=!0,f.forEach(m=>m(w))}).catch(m=>{g==null||g(void 0,m)})};return s.persist={setOptions:y=>{a={...a,...y},y.storage&&(p=y.storage)},clearStorage:()=>{p==null||p.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>C(),hasHydrated:()=>u,onHydrate:y=>(c.add(y),()=>{c.delete(y)}),onFinishHydration:y=>(f.add(y),()=>{f.delete(y)})},a.skipHydration||C(),w||R},yR=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((pR?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),mR(e,t)):gR(e,t),vR=yR,lo=uo.create()(vR(e=>({editMode:!1,toggleEditMode:()=>e(t=>({editMode:!t.editMode})),resizeMode:!1,toggleResizeMode:()=>e(t=>({resizeMode:!t.resizeMode})),moveMode:!1,toggleMoveMode:()=>e(t=>({moveMode:!t.moveMode}))}),{name:"grid-layout-storage"})),bR=({children:e,position:t="top-right"})=>F.jsx(me.Box,{sx:{position:"absolute",...t==="top-right"?{top:8,right:8}:{bottom:8,right:8},zIndex:2,opacity:0,transition:"opacity 0.2s ease-in-out",".MuiBox-root:hover > &":{opacity:1}},children:e}),wR=({children:e,dimensions:t})=>{const n=me.useTheme();return F.jsx(me.Box,{sx:{overflowX:"hidden",overflowY:"hidden",width:t.width+25,height:t.height,pointerEvents:"auto",scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"8px",backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:n.palette.divider,borderRadius:"4px"},willChange:"width, height"},children:e})},xR=Y.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}}),SR=()=>{const e=Y.useContext(xR);if(!e)throw new Error("useResizeContext must be used within a ResizeProvider");return e},ER=({children:e})=>{const{panelContentRef:t,dimensions:n,panelRef:i}=Bn(),{setItemCounts:s}=SR();return Y.useEffect(()=>{if(!i.current||!t.current)return;(u=>{const c=u.current.offsetWidth,f=Math.max(1,Math.floor(c/n.width)),p=Math.floor(n.height/n.height);s({horizontal:f,vertical:p})})(t)},[n,i,s]),F.jsx(wR,{dimensions:n,children:e})},OR=jt(F.jsx("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen"),TR=jt(F.jsx("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull"),gy=uo.create(e=>({expandedPanelId:null,setExpandedPanelId:t=>e({expandedPanelId:t})})),yy=Y.createContext(void 0),CR=({children:e})=>{const[t,n]=Y.useState(!1);return F.jsx(yy.Provider,{value:{isExpanded:t,setIsExpanded:n},children:e})},vy=()=>{const e=Y.useContext(yy);if(!e)throw new Error("useExpandableContext must be used within an ExpandableContextProvider");return e},_R=(e,t,n,i)=>{const[s,a]=Y.useState(!1),[u,c]=Y.useState({top:0,left:0});return Y.useEffect(()=>{var h,S;const f=((h=n.current)==null?void 0:h.offsetTop)||0,p=((S=n.current)==null?void 0:S.offsetLeft)||0;e&&requestAnimationFrame(()=>{c({top:f,left:p}),e===t?a(!0):i({height:0})})},[e,t,n,i]),{readyForExpansion:s,setReadyForExpansion:a,initialPosition:u}},RR=(e,t,n,i,s,a,u)=>{const[c,f]=Y.useState(!1);return Y.useEffect(()=>{if(e&&t.current&&n.current){const p=setTimeout(()=>{f(!0),u(!1)},100);return()=>clearTimeout(p)}},[e,t,n,u]),Y.useEffect(()=>{c&&t.current&&n.current&&requestAnimationFrame(()=>{s({height:"0%"}),i({top:0,left:0,zIndex:1e3}),a(!0),f(!1)})},[c,i,a,t,n,s]),{animateExpansion:c,setAnimateExpansion:f}},DR=(e,t,n,i,s,a,u)=>{Y.useEffect(()=>{e&&t===null&&i.current?requestAnimationFrame(()=>{a({position:"relative"}),s({position:"absolute",transition:"all 0.3s ease-in-out"});const c=setTimeout(()=>{s({}),u(!1)},300);return()=>clearTimeout(c)}):!e&&t===null&&(s({}),a({position:"relative"}))},[t,n,e,s,a,u])},MR=e=>{const{setExtendedStyle:t,panelRef:n,handleDimensionsChange:i}=Bn();Y.useEffect(()=>{if(!e||!n.current||!n.current.offsetParent)return;const a=()=>{};let u;const c=()=>{clearTimeout(u),u=setTimeout(a,250)};return window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c),clearTimeout(u)}},[e,n,t,i])},PR=Y.createContext(void 0),by=()=>{const e=Y.useContext(PR);if(!e)throw new Error("Panel must be used inside Panels");return e},IR=()=>{const{expandedPanelId:e}=gy(),{parentRef:t}=by(),{setExtendedStyle:n,setExtendedContainerStyle:i,panelRef:s,addTool:a,id:u}=Bn(),{isExpanded:c,setIsExpanded:f}=vy(),{readyForExpansion:p,setReadyForExpansion:h}=_R(e,u,s,n);return RR(p,s,t,n,i,f,h),DR(c,e,u,s,n,i,f),MR(c),Y.useEffect(()=>{a(F.jsx(NR,{}))},[]),null},NR=()=>{const{id:e}=Bn(),{isExpanded:t}=vy(),{resizeMode:n}=lo(),{setExpandedPanelId:i}=gy(),s=()=>{i(t?null:e)};return F.jsx(me.IconButton,{disabled:n,onClick:s,size:"small",children:t?F.jsx(OR,{}):F.jsx(TR,{})})};function Yn(e,t){return Math.round(e/t)*t}function um(e,t,n,i,s,a){return u=>{if(!t)return;const{clientX:c,clientY:f}="touches"in u?u.touches[0]:u;i({vertical:e==="vertical"||e==="corner",horizontal:e==="horizontal"||e==="corner"}),s.current={x:c,y:f,width:Yn(n.width,a.x),height:Yn(n.height,a.y)},u.preventDefault()}}const AR=({id:e,dimensions:t,handleDimensionsChange:n})=>{const i=Y.useRef(!1),s=Y.useRef(py(e,t));return{isUserResizingRef:i,userChosenDimensionsRef:s,wrappedHandleDimensionsChange:u=>{i.current&&(s.current.width=u.width,s.current.height=u.height),n(u,!0)}}},kR=({children:e})=>F.jsx(me.Box,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.6)",backdropFilter:"blur(2px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:100},children:e}),$R=({dimensions:e})=>F.jsx(me.Box,{sx:{padding:2,backgroundColor:"background.paper",borderRadius:1,boxShadow:2},children:F.jsxs(me.Typography,{variant:"body2",component:"div",children:[Math.round(e.width)," × ",Math.round(e.height)]})}),LR=({handleMouseDown:e,handleTouchStart:t})=>{const n={position:"absolute",backgroundColor:"transparent",transition:"background-color 0.2s","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.05)"}};return F.jsxs(F.Fragment,{children:[F.jsx(me.Box,{onMouseDown:i=>e("horizontal")(i),onTouchStart:i=>t("horizontal")(i),sx:{...n,right:0,top:0,width:"10px",height:"100%",cursor:"ew-resize",zIndex:10}}),F.jsx(me.Box,{onMouseDown:e("vertical"),onTouchStart:t("vertical"),sx:{...n,bottom:0,left:0,width:"100%",height:"8px",cursor:"ns-resize",zIndex:10}}),F.jsx(me.Box,{onMouseDown:i=>e("corner")(i),onTouchStart:i=>t("corner")(i),sx:{...n,bottom:0,right:0,width:"16px",height:"16px",cursor:"nwse-resize",zIndex:10}})]})},wy=Y.createContext(void 0),zR=({children:e})=>{const{id:t,minWidth:n,maxWidth:i,minHeight:s,maxHeight:a,dimensions:u,dimensionsWereTemporary:c,handleDimensionsChange:f}=Bn(),[p,h]=Y.useState({vertical:!1,horizontal:!1}),S=Y.useRef({x:0,y:0,width:u.width,height:u.height}),R={x:n,y:s};return Y.useEffect(()=>{const w=y=>{if(!p.vertical&&!p.horizontal)return;const v={...u};if(p.horizontal){const g=y.clientX-S.current.x,m=S.current.width+g,x=Yn(m,R.x);v.width=Math.min(Math.max(x,n),i)}if(p.vertical){const g=y.clientY-S.current.y,m=S.current.height+g,x=Yn(m,R.y);v.height=Math.min(Math.max(x,s),a)}(v.width!==u.width||v.height!==u.height)&&f(v,!1)},C=()=>h({vertical:!1,horizontal:!1});return(p.vertical||p.horizontal)&&(document.addEventListener("mousemove",w),document.addEventListener("mouseup",C)),()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)}},[p,u,n,i,s,a,c,t]),Y.useEffect(()=>{if(!p.vertical&&!p.horizontal)return;const w=y=>{const v=y.touches[0],g={...u};if(p.horizontal){const m=v.clientX-S.current.x,x=S.current.width+m;g.width=Math.min(Math.max(Yn(x,R.x),Yn(n,R.x)),Yn(i,R.x))}if(p.vertical){const m=v.clientY-S.current.y,x=S.current.height+m;g.height=Math.min(Math.max(Yn(x,R.y),Yn(s,R.y)),Yn(a,R.y))}f(g,!1)},C=()=>h({vertical:!1,horizontal:!1});return document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",C),()=>{document.removeEventListener("touchmove",w),document.removeEventListener("touchend",C)}},[p,u,n,i,s,a]),Y.useEffect(()=>(p.vertical||p.horizontal?(document.body.style.overflow="hidden",document.body.style.userSelect="none"):(document.body.style.overflow="",document.body.style.userSelect=""),()=>{document.body.style.overflow="",document.body.style.userSelect=""}),[p]),F.jsx(wy.Provider,{value:{dragStart:S,isDragging:p,setIsDragging:h,leap:R},children:e})},xy=()=>{const e=Y.useContext(wy);if(!e)throw new Error("useResizableContext must be used within a ResizableContextProvider");return e},FR=e=>{const{parentRef:t}=by(),{leap:n}=xy(),{panelRef:i,panelContentRef:s,dimensions:a,minWidth:u,minHeight:c,isUserResizingRef:f,userChosenDimensionsRef:p,wrappedHandleDimensionsChange:h}=e,S=(R,w,C,y,v)=>{if(R<w)return w;const g=Math.max(Math.floor(y/v)*v,w);if(R>g)return g;const m=f.current?R:Math.min(C,g);return R<m?Math.min(R+v,m):R};Y.useEffect(()=>{if(!i.current||!t.current)return;const R=()=>{const C=s.current,y=t.current;if(!C||!y)return;const v=y.getBoundingClientRect(),g=C.getBoundingClientRect(),m=1,x=v.width-(g.left-v.left)-m,E=v.height-(g.top-v.top)-m,T=S(a.width,u,p.current.width,x,n.x),P=S(a.height,c,p.current.height,E,n.y);(T!==a.width||P!==a.height)&&h({width:T,height:P})},w=new ResizeObserver(()=>{requestAnimationFrame(R)});return w.observe(i.current),w.observe(t.current),R(),()=>{w.disconnect()}},[a.width,a.height,u,c,h,f,p,s,i,t,n])},WR=()=>{const{resizeMode:e}=lo(),{id:t,dimensions:n,handleDimensionsChange:i,minWidth:s,minHeight:a,panelRef:u,panelContentRef:c}=Bn(),{dragStart:f,isDragging:p,setIsDragging:h,leap:S}=xy(),{isUserResizingRef:R,wrappedHandleDimensionsChange:w,userChosenDimensionsRef:C}=AR({id:t,dimensions:n,handleDimensionsChange:i});FR({panelRef:u,panelContentRef:c,dimensions:n,minWidth:s,minHeight:a,isUserResizingRef:R,userChosenDimensionsRef:C,wrappedHandleDimensionsChange:w});const y=g=>(R.current=!0,um(g,e,n,h,f,S)),v=g=>um(g,e,n,h,f,S);return F.jsxs(F.Fragment,{children:[(p.vertical||p.horizontal)&&F.jsx(kR,{children:F.jsx($R,{dimensions:n})}),e&&F.jsx(LR,{handleMouseDown:y,handleTouchStart:v})]})},BR=({children:e})=>{const t=me.useTheme(),{resizeMode:n}=lo(),{id:i,tools:s,expandable:a,dimensions:u,extendedStyle:c,panelRef:f,panelContentRef:p,resizable:h,scrollable:S,extendedContainerStyle:R}=Bn();return F.jsx(me.Box,{"data-panel-id":i,ref:f,"data-testid":"panel-container",sx:{boxSizing:"border-box",maxWidth:"100%",height:u.height,width:u.width+25,outline:n?`0.1em dashed ${t.palette.primary.main}`:"none",...R},children:F.jsxs(me.Box,{"data-testid":"panel-content",ref:p,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden",backgroundColor:t.palette.background.default,borderRadius:1,transition:"all 0.3s ease-in-out",position:"absolute",...c},children:[s&&F.jsx(bR,{position:"bottom-right",children:s},"tools"),h&&F.jsx(WR,{},"resizable"),a&&F.jsx(IR,{},"expandable"),S?F.jsx(ER,{children:e},"scrollable"):Y.Children.map(e,(w,C)=>Y.isValidElement(w)?Y.cloneElement(w,{key:w.key||`panel-child-${C}`}):w)]})})},Sy=e=>F.jsx(my,{...e,children:F.jsx(zR,{children:F.jsx(CR,{children:F.jsx(BR,{children:e.children})})})}),UR=({children:e,horizontalScroll:t=!1,verticalScroll:n=!1,title:i,priority:s,sections:a=!1,...u})=>F.jsx(cy,{children:F.jsx(Sy,{...u,children:a?F.jsx(jR,{children:e}):t||n?F.jsx(qR,{horizontalScroll:t,verticalScroll:n,title:i,priority:s,children:e}):e})}),Ey=({children:e})=>F.jsx(F.Fragment,{children:e}),jR=({children:e})=>{const{minHeight:t}=Bn();return F.jsx(di,{direction:"vertical",itemSize:t,containerSize:"100%",children:Y.Children.map(e,n=>{if(!Y.isValidElement(n))return null;if(n.type===Ey){const i=n.props;return F.jsx(HR,{title:i.title,priority:i.priority,children:i.children})}return n})})},HR=({title:e,priority:t,children:n})=>{const{minWidth:i,minHeight:s}=Bn();return F.jsx(di,{direction:"horizontal",itemSize:i,containerSize:s,title:e,priority:t,children:n})},qR=({children:e,horizontalScroll:t,verticalScroll:n,title:i,priority:s})=>{const{minHeight:a,minWidth:u}=Bn();return t&&!n?F.jsx(di,{direction:"horizontal",itemSize:u,containerSize:a,title:i,priority:s,children:e}):n&&!t?F.jsx(di,{direction:"vertical",itemSize:a,containerSize:"100%",children:e}):t&&n?F.jsx(di,{direction:"vertical",itemSize:a,containerSize:"100%",children:F.jsx(di,{direction:"horizontal",itemSize:u,containerSize:a,title:i,priority:s,children:e})}):F.jsx(F.Fragment,{children:e})},VR=({collapseIcon:e,children:t,collapseWidth:n,delay:i=150,tooltipTitle:s="More actions",fullWidth:a=!1})=>{const[u,c]=Y.useState(a),f=Y.useRef(null),p=Y.useRef(null);Y.useEffect(()=>{c(a)},[a]);const h=()=>{a||(clearTimeout(p.current),p.current=setTimeout(()=>c(!0),i))},S=R=>{if(a)return;const w=R.relatedTarget;f.current&&w instanceof Node&&f.current.contains(w)||(clearTimeout(p.current),p.current=setTimeout(()=>c(!1),i))};return F.jsxs(me.Box,{ref:f,onMouseEnter:h,onMouseLeave:S,sx:{display:"flex",alignItems:"center",width:u?a?"100%":"auto":n,minWidth:n,overflow:"hidden",transition:R=>R.transitions.create("width",{duration:300,easing:R.transitions.easing.easeInOut})},children:[!u&&!a&&F.jsx(me.Tooltip,{title:s,children:F.jsx(me.IconButton,{size:"small",sx:{minWidth:n},children:e})}),F.jsx(me.Collapse,{in:u,orientation:"horizontal",timeout:300,sx:{minWidth:0},children:F.jsx(me.Box,{sx:{display:"inline-flex",whiteSpace:"nowrap"},children:t})})]})},lm={};function Oy(e,t){const n=oe.useRef(lm);return n.current===lm&&(n.current=e(t)),n}const GR=[];function YR(e){oe.useEffect(e,GR)}class Tu{constructor(){an(this,"currentId",null);an(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});an(this,"disposeEffect",()=>this.clear)}static create(){return new Tu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function pi(){const e=Oy(Tu.create).current;return YR(e.disposeEffect),e}function ZR(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Pc.apply(null,arguments)}function Ty(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Ic(e,t){return Ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ic(e,t)}function Cy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ic(e,t)}const cm={disabled:!1};var XR=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const Ja=Y.createContext(null);var KR=function(t){return t.scrollTop},Jo="unmounted",si="exited",ai="entering",Zi="entered",Nc="exiting",er=function(e){Cy(t,e);function t(i,s){var a;a=e.call(this,i,s)||this;var u=s,c=u&&!u.isMounting?i.enter:i.appear,f;return a.appearStatus=null,i.in?c?(f=si,a.appearStatus=ai):f=Zi:i.unmountOnExit||i.mountOnEnter?f=Jo:f=si,a.state={status:f},a.nextCallback=null,a}t.getDerivedStateFromProps=function(s,a){var u=s.in;return u&&a.status===Jo?{status:si}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var a=null;if(s!==this.props){var u=this.state.status;this.props.in?u!==ai&&u!==Zi&&(a=ai):(u===ai||u===Zi)&&(a=Nc)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,a,u,c;return a=u=c=s,s!=null&&typeof s!="number"&&(a=s.exit,u=s.enter,c=s.appear!==void 0?s.appear:u),{exit:a,enter:u,appear:c}},n.updateStatus=function(s,a){if(s===void 0&&(s=!1),a!==null)if(this.cancelNextCallback(),a===ai){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:ci.findDOMNode(this);u&&KR(u)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===si&&this.setState({status:Jo})},n.performEnter=function(s){var a=this,u=this.props.enter,c=this.context?this.context.isMounting:s,f=this.props.nodeRef?[c]:[ci.findDOMNode(this),c],p=f[0],h=f[1],S=this.getTimeouts(),R=c?S.appear:S.enter;if(!s&&!u||cm.disabled){this.safeSetState({status:Zi},function(){a.props.onEntered(p)});return}this.props.onEnter(p,h),this.safeSetState({status:ai},function(){a.props.onEntering(p,h),a.onTransitionEnd(R,function(){a.safeSetState({status:Zi},function(){a.props.onEntered(p,h)})})})},n.performExit=function(){var s=this,a=this.props.exit,u=this.getTimeouts(),c=this.props.nodeRef?void 0:ci.findDOMNode(this);if(!a||cm.disabled){this.safeSetState({status:si},function(){s.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Nc},function(){s.props.onExiting(c),s.onTransitionEnd(u.exit,function(){s.safeSetState({status:si},function(){s.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,a){a=this.setNextCallback(a),this.setState(s,a)},n.setNextCallback=function(s){var a=this,u=!0;return this.nextCallback=function(c){u&&(u=!1,a.nextCallback=null,s(c))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(s,a){this.setNextCallback(a);var u=this.props.nodeRef?this.props.nodeRef.current:ci.findDOMNode(this),c=s==null&&!this.props.addEndListener;if(!u||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],p=f[0],h=f[1];this.props.addEndListener(p,h)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===Jo)return null;var a=this.props,u=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=Ty(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(Ja.Provider,{value:null},typeof u=="function"?u(s,c):Y.cloneElement(Y.Children.only(u),c))},t}(Y.Component);er.contextType=Ja;er.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,t,n,i,s,a){var u=e[t];return b.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,i,s,a)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(t){var n=XR;t.addEndListener||(n=n.isRequired);for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.apply(void 0,[t].concat(s))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function qi(){}er.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qi,onEntering:qi,onEntered:qi,onExit:qi,onExiting:qi,onExited:qi};er.UNMOUNTED=Jo;er.EXITED=si;er.ENTERING=ai;er.ENTERED=Zi;er.EXITING=Nc;function JR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ff(e,t){var n=function(a){return t&&Y.isValidElement(a)?t(a):a},i=Object.create(null);return e&&Y.Children.map(e,function(s){return s}).forEach(function(s){i[s.key]=n(s)}),i}function QR(e,t){e=e||{},t=t||{};function n(h){return h in t?t[h]:e[h]}var i=Object.create(null),s=[];for(var a in e)a in t?s.length&&(i[a]=s,s=[]):s.push(a);var u,c={};for(var f in t){if(i[f])for(u=0;u<i[f].length;u++){var p=i[f][u];c[i[f][u]]=n(p)}c[f]=n(f)}for(u=0;u<s.length;u++)c[s[u]]=n(s[u]);return c}function hi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function eD(e,t){return ff(e.children,function(n){return Y.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:hi(n,"appear",e),enter:hi(n,"enter",e),exit:hi(n,"exit",e)})})}function tD(e,t,n){var i=ff(e.children),s=QR(t,i);return Object.keys(s).forEach(function(a){var u=s[a];if(Y.isValidElement(u)){var c=a in t,f=a in i,p=t[a],h=Y.isValidElement(p)&&!p.props.in;f&&(!c||h)?s[a]=Y.cloneElement(u,{onExited:n.bind(null,u),in:!0,exit:hi(u,"exit",e),enter:hi(u,"enter",e)}):!f&&c&&!h?s[a]=Y.cloneElement(u,{in:!1}):f&&c&&Y.isValidElement(p)&&(s[a]=Y.cloneElement(u,{onExited:n.bind(null,u),in:p.props.in,exit:hi(u,"exit",e),enter:hi(u,"enter",e)}))}}),s}var nD=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},rD={component:"div",childFactory:function(t){return t}},df=function(e){Cy(t,e);function t(i,s){var a;a=e.call(this,i,s)||this;var u=a.handleExited.bind(JR(a));return a.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,a){var u=a.children,c=a.handleExited,f=a.firstRender;return{children:f?eD(s,c):tD(s,u,c),firstRender:!1}},n.handleExited=function(s,a){var u=ff(this.props.children);s.key in u||(s.props.onExited&&s.props.onExited(a),this.mounted&&this.setState(function(c){var f=Pc({},c.children);return delete f[s.key],{children:f}}))},n.render=function(){var s=this.props,a=s.component,u=s.childFactory,c=Ty(s,["component","childFactory"]),f=this.state.contextValue,p=nD(this.state.children).map(u);return delete c.appear,delete c.enter,delete c.exit,a===null?Y.createElement(Ja.Provider,{value:f},p):Y.createElement(Ja.Provider,{value:f},Y.createElement(a,c,p))},t}(Y.Component);df.propTypes=process.env.NODE_ENV!=="production"?{component:b.any,children:b.node,appear:b.bool,enter:b.bool,exit:b.bool,childFactory:b.func}:{};df.defaultProps=rD;function Cu(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...i){return e(...i)||t(...i)}}function iD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function _y(e,t,n,i,s){const a=e[t],u=s||t;if(a==null||typeof window>"u")return null;let c;const f=a.type;return typeof f=="function"&&!iD(f)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${i} \`${u}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const _u=Cu(b.element,_y);_u.isRequired=Cu(b.element.isRequired,_y);function Ru(e){var t;return parseInt(oe.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Ry=e=>e.scrollTop;function Qa(e,t){const{timeout:n,easing:i,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:s.transitionDelay}}const oD={entering:{transform:"none"},entered:{transform:"none"}},Dy=oe.forwardRef(function(t,n){const i=bs(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:a,appear:u=!0,children:c,easing:f,in:p,onEnter:h,onEntered:S,onEntering:R,onExit:w,onExited:C,onExiting:y,style:v,timeout:g=s,TransitionComponent:m=er,...x}=t,E=oe.useRef(null),T=Fn(E,Ru(c),n),P=B=>J=>{if(B){const H=E.current;J===void 0?B(H):B(H,J)}},D=P(R),A=P((B,J)=>{Ry(B);const H=Qa({style:v,timeout:g,easing:f},{mode:"enter"});B.style.webkitTransition=i.transitions.create("transform",H),B.style.transition=i.transitions.create("transform",H),h&&h(B,J)}),z=P(S),K=P(y),Z=P(B=>{const J=Qa({style:v,timeout:g,easing:f},{mode:"exit"});B.style.webkitTransition=i.transitions.create("transform",J),B.style.transition=i.transitions.create("transform",J),w&&w(B)}),_=P(C),j=B=>{a&&a(E.current,B)};return F.jsx(m,{appear:u,in:p,nodeRef:E,onEnter:A,onEntered:z,onEntering:D,onExit:Z,onExited:_,onExiting:K,addEndListener:j,timeout:g,...x,children:(B,{ownerState:J,...H})=>oe.cloneElement(c,{style:{transform:"scale(0)",visibility:B==="exited"&&!p?"hidden":void 0,...oD[B],...v,...c.props.style},ref:T,...H})})});process.env.NODE_ENV!=="production"&&(Dy.propTypes={addEndListener:b.func,appear:b.bool,children:_u.isRequired,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,style:b.object,timeout:b.oneOfType([b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])});const pf=b.oneOfType([b.func,b.object]);function sD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function aD(e,t,n,i,s){const a=e[t],u=s||t;if(a==null||typeof window>"u")return null;let c;return typeof a=="function"&&!sD(a)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${i} \`${u}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const uD=Cu(b.elementType,aD);function eu(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
137
|
+
`))}return!1}class tu{constructor(){an(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new tu}static use(){const t=Oy(tu.create).current,[n,i]=oe.useState(!1);return t.shouldMount=n,t.setShouldMount=i,oe.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=cD(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function lD(){return tu.use()}function cD(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});return n.resolve=e,n.reject=t,n}function My(e){const{className:t,classes:n,pulsate:i=!1,rippleX:s,rippleY:a,rippleSize:u,in:c,onExited:f,timeout:p}=e,[h,S]=oe.useState(!1),R=at(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),w={width:u,height:u,top:-(u/2)+a,left:-(u/2)+s},C=at(n.child,h&&n.childLeaving,i&&n.childPulsate);return!c&&!h&&S(!0),oe.useEffect(()=>{if(!c&&f!=null){const y=setTimeout(f,p);return()=>{clearTimeout(y)}}},[f,c,p]),F.jsx("span",{className:R,style:w,children:F.jsx("span",{className:C})})}process.env.NODE_ENV!=="production"&&(My.propTypes={classes:b.object.isRequired,className:b.string,in:b.bool,onExited:b.func,pulsate:b.bool,rippleSize:b.number,rippleX:b.number,rippleY:b.number,timeout:b.number.isRequired});const Sn=Qn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ac=550,fD=80,dD=du.keyframes`
|
|
138
|
+
0% {
|
|
139
|
+
transform: scale(0);
|
|
140
|
+
opacity: 0.1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
100% {
|
|
144
|
+
transform: scale(1);
|
|
145
|
+
opacity: 0.3;
|
|
146
|
+
}
|
|
147
|
+
`,pD=du.keyframes`
|
|
148
|
+
0% {
|
|
149
|
+
opacity: 1;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
100% {
|
|
153
|
+
opacity: 0;
|
|
154
|
+
}
|
|
155
|
+
`,hD=du.keyframes`
|
|
156
|
+
0% {
|
|
157
|
+
transform: scale(1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
50% {
|
|
161
|
+
transform: scale(0.92);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
100% {
|
|
165
|
+
transform: scale(1);
|
|
166
|
+
}
|
|
167
|
+
`,mD=Lt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),gD=Lt(My,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
168
|
+
opacity: 0;
|
|
169
|
+
position: absolute;
|
|
170
|
+
|
|
171
|
+
&.${Sn.rippleVisible} {
|
|
172
|
+
opacity: 0.3;
|
|
173
|
+
transform: scale(1);
|
|
174
|
+
animation-name: ${dD};
|
|
175
|
+
animation-duration: ${Ac}ms;
|
|
176
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.${Sn.ripplePulsate} {
|
|
180
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
& .${Sn.child} {
|
|
184
|
+
opacity: 1;
|
|
185
|
+
display: block;
|
|
186
|
+
width: 100%;
|
|
187
|
+
height: 100%;
|
|
188
|
+
border-radius: 50%;
|
|
189
|
+
background-color: currentColor;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
& .${Sn.childLeaving} {
|
|
193
|
+
opacity: 0;
|
|
194
|
+
animation-name: ${pD};
|
|
195
|
+
animation-duration: ${Ac}ms;
|
|
196
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
& .${Sn.childPulsate} {
|
|
200
|
+
position: absolute;
|
|
201
|
+
/* @noflip */
|
|
202
|
+
left: 0px;
|
|
203
|
+
top: 0;
|
|
204
|
+
animation-name: ${hD};
|
|
205
|
+
animation-duration: 2500ms;
|
|
206
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
207
|
+
animation-iteration-count: infinite;
|
|
208
|
+
animation-delay: 200ms;
|
|
209
|
+
}
|
|
210
|
+
`,Py=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:u,...c}=i,[f,p]=oe.useState([]),h=oe.useRef(0),S=oe.useRef(null);oe.useEffect(()=>{S.current&&(S.current(),S.current=null)},[f]);const R=oe.useRef(!1),w=pi(),C=oe.useRef(null),y=oe.useRef(null),v=oe.useCallback(E=>{const{pulsate:T,rippleX:P,rippleY:D,rippleSize:A,cb:z}=E;p(K=>[...K,F.jsx(gD,{classes:{ripple:at(a.ripple,Sn.ripple),rippleVisible:at(a.rippleVisible,Sn.rippleVisible),ripplePulsate:at(a.ripplePulsate,Sn.ripplePulsate),child:at(a.child,Sn.child),childLeaving:at(a.childLeaving,Sn.childLeaving),childPulsate:at(a.childPulsate,Sn.childPulsate)},timeout:Ac,pulsate:T,rippleX:P,rippleY:D,rippleSize:A},h.current)]),h.current+=1,S.current=z},[a]),g=oe.useCallback((E={},T={},P=()=>{})=>{const{pulsate:D=!1,center:A=s||T.pulsate,fakeElement:z=!1}=T;if((E==null?void 0:E.type)==="mousedown"&&R.current){R.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(R.current=!0);const K=z?null:y.current,Z=K?K.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,j,B;if(A||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)_=Math.round(Z.width/2),j=Math.round(Z.height/2);else{const{clientX:J,clientY:H}=E.touches&&E.touches.length>0?E.touches[0]:E;_=Math.round(J-Z.left),j=Math.round(H-Z.top)}if(A)B=Math.sqrt((2*Z.width**2+Z.height**2)/3),B%2===0&&(B+=1);else{const J=Math.max(Math.abs((K?K.clientWidth:0)-_),_)*2+2,H=Math.max(Math.abs((K?K.clientHeight:0)-j),j)*2+2;B=Math.sqrt(J**2+H**2)}E!=null&&E.touches?C.current===null&&(C.current=()=>{v({pulsate:D,rippleX:_,rippleY:j,rippleSize:B,cb:P})},w.start(fD,()=>{C.current&&(C.current(),C.current=null)})):v({pulsate:D,rippleX:_,rippleY:j,rippleSize:B,cb:P})},[s,v,w]),m=oe.useCallback(()=>{g({},{pulsate:!0})},[g]),x=oe.useCallback((E,T)=>{if(w.clear(),(E==null?void 0:E.type)==="touchend"&&C.current){C.current(),C.current=null,w.start(0,()=>{x(E,T)});return}C.current=null,p(P=>P.length>0?P.slice(1):P),S.current=T},[w]);return oe.useImperativeHandle(n,()=>({pulsate:m,start:g,stop:x}),[m,g,x]),F.jsx(mD,{className:at(Sn.root,a.root,u),ref:y,...c,children:F.jsx(df,{component:null,exit:!0,children:f})})});process.env.NODE_ENV!=="production"&&(Py.propTypes={center:b.bool,classes:b.object,className:b.string});function yD(e){return Jn("MuiButtonBase",e)}const vD=Qn("MuiButtonBase",["root","disabled","focusVisible"]),bD=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:s}=e,u=Ur({root:["root",t&&"disabled",n&&"focusVisible"]},yD,s);return n&&i&&(u.root+=` ${i}`),u},wD=Lt("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${vD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Iy=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:a=!1,children:u,className:c,component:f="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:S=!1,focusRipple:R=!1,focusVisibleClassName:w,LinkComponent:C="a",onBlur:y,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:x,onFocusVisible:E,onKeyDown:T,onKeyUp:P,onMouseDown:D,onMouseLeave:A,onMouseUp:z,onTouchEnd:K,onTouchMove:Z,onTouchStart:_,tabIndex:j=0,TouchRippleProps:B,touchRippleRef:J,type:H,...X}=i,fe=oe.useRef(null),ae=lD(),G=Fn(ae.ref,J),[$,ue]=oe.useState(!1);p&&$&&ue(!1),oe.useImperativeHandle(s,()=>({focusVisible:()=>{ue(!0),fe.current.focus()}}),[]);const ye=ae.shouldMount&&!h&&!p;oe.useEffect(()=>{$&&R&&!h&&ae.pulsate()},[h,R,$,ae]);const pe=dr(ae,"start",D,S),Oe=dr(ae,"stop",g,S),Te=dr(ae,"stop",m,S),ve=dr(ae,"stop",z,S),ee=dr(ae,"stop",_e=>{$&&_e.preventDefault(),A&&A(_e)},S),ce=dr(ae,"start",_,S),Ee=dr(ae,"stop",K,S),Re=dr(ae,"stop",Z,S),N=dr(ae,"stop",_e=>{eu(_e.target)||ue(!1),y&&y(_e)},!1),W=Qi(_e=>{fe.current||(fe.current=_e.currentTarget),eu(_e.target)&&(ue(!0),E&&E(_e)),x&&x(_e)}),V=()=>{const _e=fe.current;return f&&f!=="button"&&!(_e.tagName==="A"&&_e.href)},le=Qi(_e=>{R&&!_e.repeat&&$&&_e.key===" "&&ae.stop(_e,()=>{ae.start(_e)}),_e.target===_e.currentTarget&&V()&&_e.key===" "&&_e.preventDefault(),T&&T(_e),_e.target===_e.currentTarget&&V()&&_e.key==="Enter"&&!p&&(_e.preventDefault(),v&&v(_e))}),be=Qi(_e=>{R&&_e.key===" "&&$&&!_e.defaultPrevented&&ae.stop(_e,()=>{ae.pulsate(_e)}),P&&P(_e),v&&_e.target===_e.currentTarget&&V()&&_e.key===" "&&!_e.defaultPrevented&&v(_e)});let ge=f;ge==="button"&&(X.href||X.to)&&(ge=C);const te={};ge==="button"?(te.type=H===void 0?"button":H,te.disabled=p):(!X.href&&!X.to&&(te.role="button"),p&&(te["aria-disabled"]=p));const he=Fn(n,fe),we={...i,centerRipple:a,component:f,disabled:p,disableRipple:h,disableTouchRipple:S,focusRipple:R,tabIndex:j,focusVisible:$},Ne=bD(we);return F.jsxs(wD,{as:ge,className:at(Ne.root,c),ownerState:we,onBlur:N,onClick:v,onContextMenu:Oe,onFocus:W,onKeyDown:le,onKeyUp:be,onMouseDown:pe,onMouseLeave:ee,onMouseUp:ve,onDragLeave:Te,onTouchEnd:Ee,onTouchMove:Re,onTouchStart:ce,ref:he,tabIndex:p?-1:j,type:H,...te,...X,children:[u,ye?F.jsx(Py,{ref:G,center:a,...B}):null]})});function dr(e,t,n,i=!1){return Qi(s=>(n&&n(s),i||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(Iy.propTypes={action:pf,centerRipple:b.bool,children:b.node,classes:b.object,className:b.string,component:uD,disabled:b.bool,disableRipple:b.bool,disableTouchRipple:b.bool,focusRipple:b.bool,focusVisibleClassName:b.string,href:b.any,LinkComponent:b.elementType,onBlur:b.func,onClick:b.func,onContextMenu:b.func,onDragLeave:b.func,onFocus:b.func,onFocusVisible:b.func,onKeyDown:b.func,onKeyUp:b.func,onMouseDown:b.func,onMouseLeave:b.func,onMouseUp:b.func,onTouchEnd:b.func,onTouchMove:b.func,onTouchStart:b.func,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),tabIndex:b.number,TouchRippleProps:b.object,touchRippleRef:b.oneOfType([b.func,b.shape({current:b.shape({pulsate:b.func.isRequired,start:b.func.isRequired,stop:b.func.isRequired})})]),type:b.oneOfType([b.oneOf(["button","reset","submit"]),b.string])});function xD(e){return Jn("MuiFab",e)}const fm=Qn("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);function SD(e){return typeof e.main=="string"}function ED(e,t=[]){if(!SD(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function OD(e=[]){return([,t])=>t&&ED(t,e)}const TD=e=>{const{color:t,variant:n,classes:i,size:s}=e,a={root:["root",n,`size${fn(s)}`,t==="inherit"?"colorInherit":t]},u=Ur(a,xD,i);return{...i,...u}},CD=Lt(Iy,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>ay(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${fn(n.size)}`],n.color==="inherit"&&t.colorInherit,t[fn(n.size)],t[n.color]]}})(Cn(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${fm.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),Cn(({theme:e})=>({variants:[...Object.entries(e.palette).filter(OD(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),Cn(({theme:e})=>({[`&.${fm.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),hf=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiFab"}),{children:s,className:a,color:u="default",component:c="button",disabled:f=!1,disableFocusRipple:p=!1,focusVisibleClassName:h,size:S="large",variant:R="circular",...w}=i,C={...i,color:u,component:c,disabled:f,disableFocusRipple:p,size:S,variant:R},y=TD(C);return F.jsx(CD,{className:at(y.root,a),component:c,disabled:f,focusRipple:!p,focusVisibleClassName:at(y.focusVisible,h),ownerState:C,ref:n,...w,classes:y,children:s})});process.env.NODE_ENV!=="production"&&(hf.propTypes={children:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["default","error","info","inherit","primary","secondary","success","warning"]),b.string]),component:b.elementType,disabled:b.bool,disableFocusRipple:b.bool,disableRipple:b.bool,focusVisibleClassName:b.string,href:b.string,size:b.oneOfType([b.oneOf(["small","medium","large"]),b.string]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),variant:b.oneOfType([b.oneOf(["circular","extended"]),b.string])});function _D(e){return Jn("MuiSpeedDial",e)}const Oa=Qn("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);function RD(e){return typeof e=="string"}function Ny(e,t,n){return e===void 0||RD(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ay(e,t,n){return typeof e=="function"?e(t,n):e}function DD(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function dm(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function ky(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:s,className:a}=e;if(!t){const w=at(n==null?void 0:n.className,a,s==null?void 0:s.className,i==null?void 0:i.className),C={...n==null?void 0:n.style,...s==null?void 0:s.style,...i==null?void 0:i.style},y={...n,...s,...i};return w.length>0&&(y.className=w),Object.keys(C).length>0&&(y.style=C),{props:y,internalRef:void 0}}const u=DD({...s,...i}),c=dm(i),f=dm(s),p=t(u),h=at(p==null?void 0:p.className,n==null?void 0:n.className,a,s==null?void 0:s.className,i==null?void 0:i.className),S={...p==null?void 0:p.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...i==null?void 0:i.style},R={...p,...n,...f,...c};return h.length>0&&(R.className=h),Object.keys(S).length>0&&(R.style=S),{props:R,internalRef:p.ref}}function Zn(e,t){const{className:n,elementType:i,ownerState:s,externalForwardedProps:a,internalForwardedProps:u,shouldForwardComponentProp:c=!1,...f}=t,{component:p,slots:h={[e]:void 0},slotProps:S={[e]:void 0},...R}=a,w=h[e]||i,C=Ay(S[e],s),{props:{component:y,...v},internalRef:g}=ky({className:n,...f,externalForwardedProps:e==="root"?R:void 0,externalSlotProps:C}),m=Fn(g,C==null?void 0:C.ref,t.ref),x=e==="root"?y||p:y,E=Ny(w,{...e==="root"&&!p&&!h[e]&&u,...e!=="root"&&!h[e]&&u,...v,...x&&!c&&{as:x},...x&&c&&{component:x},ref:m},s);return[w,E]}const MD=e=>{const{classes:t,open:n,direction:i}=e,s={root:["root",`direction${fn(i)}`],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return Ur(s,_D,t)};function $o(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}const Ta=32,Ca=16,PD=Lt("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`direction${fn(n.direction)}`]]}})(Cn(({theme:e})=>({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none",variants:[{props:{direction:"up"},style:{flexDirection:"column-reverse",[`& .${Oa.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:Ca+Ta}}},{props:{direction:"down"},style:{flexDirection:"column",[`& .${Oa.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:Ca+Ta}}},{props:{direction:"left"},style:{flexDirection:"row-reverse",[`& .${Oa.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:Ca+Ta}}},{props:{direction:"right"},style:{flexDirection:"row",[`& .${Oa.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:Ca+Ta}}}]}))),ID=Lt(hf,{name:"MuiSpeedDial",slot:"Fab"})({pointerEvents:"auto"}),ND=Lt("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actions,!n.open&&t.actionsClosed]}})({display:"flex",pointerEvents:"auto",variants:[{props:({ownerState:e})=>!e.open,style:{transition:"top 0s linear 0.2s",pointerEvents:"none"}}]}),$y=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiSpeedDial"}),s=bs(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{ariaLabel:u,FabProps:{ref:c,...f}={},children:p,className:h,direction:S="up",hidden:R=!1,icon:w,onBlur:C,onClose:y,onFocus:v,onKeyDown:g,onMouseEnter:m,onMouseLeave:x,onOpen:E,open:T,openIcon:P,slots:D={},slotProps:A={},TransitionComponent:z,TransitionProps:K,transitionDuration:Z=a,..._}=i,[j,B]=uy({controlled:T,default:!1,name:"SpeedDial",state:"open"}),J={...i,open:j,direction:S},H=MD(J),X=pi(),fe=oe.useRef(0),ae=oe.useRef(),G=oe.useRef([]);G.current=[G.current[0]];const $=oe.useCallback(te=>{G.current[0]=te},[]),ue=Fn(c,$),ye=(te,he,we)=>Ne=>{G.current[te+1]=Ne,he&&he(Ne),we&&we(Ne)},pe=te=>{g&&g(te);const he=te.key.replace("Arrow","").toLowerCase(),{current:we=he}=ae;if(te.key==="Escape"){B(!1),G.current[0].focus(),y&&y(te,"escapeKeyDown");return}if($o(he)===$o(we)&&$o(he)!==void 0){te.preventDefault();const Ne=he===we?1:-1,_e=ZR(fe.current+Ne,0,G.current.length-1);G.current[_e].focus(),fe.current=_e,ae.current=we}};oe.useEffect(()=>{j||(fe.current=0,ae.current=void 0)},[j]);const Oe=te=>{te.type==="mouseleave"&&x&&x(te),te.type==="blur"&&C&&C(te),X.clear(),te.type==="blur"?X.start(0,()=>{B(!1),y&&y(te,"blur")}):(B(!1),y&&y(te,"mouseLeave"))},Te=te=>{f.onClick&&f.onClick(te),X.clear(),j?(B(!1),y&&y(te,"toggle")):(B(!0),E&&E(te,"toggle"))},ve=te=>{te.type==="mouseenter"&&m&&m(te),te.type==="focus"&&v&&v(te),X.clear(),j||X.start(0,()=>{B(!0),E&&E(te,{focus:"focus",mouseenter:"mouseEnter"}[te.type])})},ee=u.replace(/^[^a-z]+|[^\w:.-]+/gi,""),ce=oe.Children.toArray(p).filter(te=>(process.env.NODE_ENV!=="production"&&wi.isFragment(te)&&console.error(["MUI: The SpeedDial component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
211
|
+
`)),oe.isValidElement(te))),Ee=ce.map((te,he)=>{const{FabProps:{ref:we}={},slotProps:Ne={},tooltipPlacement:_e}=te.props,{fab:{ref:Ve,..._t}={},...Et}=Ne,Kt=_e||($o(S)==="vertical"?"left":"top");return oe.cloneElement(te,{slotProps:{fab:{..._t,ref:ye(he,we,Ve)},...Et},delay:30*(j?he:ce.length-he),open:j,tooltipPlacement:Kt,id:`${ee}-action-${he}`})}),Re={transition:z,...D},N={transition:K,...A},W={slots:Re,slotProps:N},[V,le]=Zn("root",{elementType:PD,externalForwardedProps:{...W,..._},ownerState:J,ref:n,className:at(H.root,h),additionalProps:{role:"presentation"},getSlotProps:te=>({...te,onKeyDown:he=>{var we;(we=te.onKeyDown)==null||we.call(te,he),pe(he)},onBlur:he=>{var we;(we=te.onBlur)==null||we.call(te,he),Oe(he)},onFocus:he=>{var we;(we=te.onFocus)==null||we.call(te,he),ve(he)},onMouseEnter:he=>{var we;(we=te.onMouseEnter)==null||we.call(te,he),ve(he)},onMouseLeave:he=>{var we;(we=te.onMouseLeave)==null||we.call(te,he),Oe(he)}})}),[be,ge]=Zn("transition",{elementType:Dy,externalForwardedProps:W,ownerState:J});return F.jsxs(V,{...le,children:[F.jsx(be,{in:!R,timeout:Z,unmountOnExit:!0,...ge,children:F.jsx(ID,{color:"primary","aria-label":u,"aria-haspopup":"true","aria-expanded":j,"aria-controls":`${ee}-actions`,...f,onClick:Te,className:at(H.fab,f.className),ref:ue,ownerState:J,children:oe.isValidElement(w)&&V_(w,["SpeedDialIcon"])?oe.cloneElement(w,{open:j}):w})}),F.jsx(ND,{id:`${ee}-actions`,role:"menu","aria-orientation":$o(S),className:at(H.actions,!j&&H.actionsClosed),ownerState:J,children:Ee})]})});process.env.NODE_ENV!=="production"&&($y.propTypes={ariaLabel:b.string.isRequired,children:b.node,classes:b.object,className:b.string,direction:b.oneOf(["down","left","right","up"]),FabProps:b.object,hidden:b.bool,icon:b.node,onBlur:b.func,onClose:b.func,onFocus:b.func,onKeyDown:b.func,onMouseEnter:b.func,onMouseLeave:b.func,onOpen:b.func,open:b.bool,openIcon:b.node,slotProps:b.shape({root:b.oneOfType([b.func,b.object]),transition:b.oneOfType([b.func,b.object])}),slots:b.shape({root:b.elementType,transition:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),TransitionComponent:b.elementType,transitionDuration:b.oneOfType([b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})]),TransitionProps:b.object});const AD=jt(F.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function kD(e){return Jn("MuiSpeedDialIcon",e)}const Vn=Qn("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),$D=e=>{const{classes:t,open:n,openIcon:i}=e;return Ur({root:["root"],icon:["icon",n&&"iconOpen",i&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]},kD,t)},LD=Lt("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vn.icon}`]:t.icon},{[`& .${Vn.icon}`]:n.open&&t.iconOpen},{[`& .${Vn.icon}`]:n.open&&n.openIcon&&t.iconWithOpenIconOpen},{[`& .${Vn.openIcon}`]:t.openIcon},{[`& .${Vn.openIcon}`]:n.open&&t.openIconOpen},t.root]}})(Cn(({theme:e})=>({height:24,[`& .${Vn.icon}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},[`& .${Vn.openIcon}`]:{position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},variants:[{props:({ownerState:t})=>t.open,style:{[`& .${Vn.icon}`]:{transform:"rotate(45deg)"}}},{props:({ownerState:t})=>t.open&&t.openIcon,style:{[`& .${Vn.icon}`]:{opacity:0}}},{props:({ownerState:t})=>t.open,style:{[`& .${Vn.openIcon}`]:{transform:"rotate(0deg)",opacity:1}}}]}))),mf=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiSpeedDialIcon"}),{className:s,icon:a,open:u,openIcon:c,...f}=i,p=i,h=$D(p);function S(R,w){return oe.isValidElement(R)?oe.cloneElement(R,{className:w}):R}return F.jsxs(LD,{className:at(h.root,s),ref:n,ownerState:p,...f,children:[c?S(c,h.openIcon):null,a?S(a,h.icon):F.jsx(AD,{className:h.icon})]})});process.env.NODE_ENV!=="production"&&(mf.propTypes={classes:b.object,className:b.string,icon:b.node,open:b.bool,openIcon:b.node,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});mf.muiName="SpeedDialIcon";function kc(e){return`scale(${e}, ${e**2})`}const zD={entering:{opacity:1,transform:kc(1)},entered:{opacity:1,transform:"none"}},pc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nu=oe.forwardRef(function(t,n){const{addEndListener:i,appear:s=!0,children:a,easing:u,in:c,onEnter:f,onEntered:p,onEntering:h,onExit:S,onExited:R,onExiting:w,style:C,timeout:y="auto",TransitionComponent:v=er,...g}=t,m=pi(),x=oe.useRef(),E=bs(),T=oe.useRef(null),P=Fn(T,Ru(a),n),D=J=>H=>{if(J){const X=T.current;H===void 0?J(X):J(X,H)}},A=D(h),z=D((J,H)=>{Ry(J);const{duration:X,delay:fe,easing:ae}=Qa({style:C,timeout:y,easing:u},{mode:"enter"});let G;y==="auto"?(G=E.transitions.getAutoHeightDuration(J.clientHeight),x.current=G):G=X,J.style.transition=[E.transitions.create("opacity",{duration:G,delay:fe}),E.transitions.create("transform",{duration:pc?G:G*.666,delay:fe,easing:ae})].join(","),f&&f(J,H)}),K=D(p),Z=D(w),_=D(J=>{const{duration:H,delay:X,easing:fe}=Qa({style:C,timeout:y,easing:u},{mode:"exit"});let ae;y==="auto"?(ae=E.transitions.getAutoHeightDuration(J.clientHeight),x.current=ae):ae=H,J.style.transition=[E.transitions.create("opacity",{duration:ae,delay:X}),E.transitions.create("transform",{duration:pc?ae:ae*.666,delay:pc?X:X||ae*.333,easing:fe})].join(","),J.style.opacity=0,J.style.transform=kc(.75),S&&S(J)}),j=D(R),B=J=>{y==="auto"&&m.start(x.current||0,J),i&&i(T.current,J)};return F.jsx(v,{appear:s,in:c,nodeRef:T,onEnter:z,onEntered:K,onEntering:A,onExit:_,onExited:j,onExiting:Z,addEndListener:B,timeout:y==="auto"?null:y,...g,children:(J,{ownerState:H,...X})=>oe.cloneElement(a,{style:{opacity:0,transform:kc(.75),visibility:J==="exited"&&!c?"hidden":void 0,...zD[J],...C,...a.props.style},ref:P,...X})})});process.env.NODE_ENV!=="production"&&(nu.propTypes={addEndListener:b.func,appear:b.bool,children:_u.isRequired,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,style:b.object,timeout:b.oneOfType([b.oneOf(["auto"]),b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])});nu&&(nu.muiSupportAuto=!0);function fs(e,t,n,i,s){if(process.env.NODE_ENV==="production")return null;const a=e[t],u=s||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${i} \`${u}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Zt="top",Rn="bottom",Dn="right",Xt="left",gf="auto",ws=[Zt,Rn,Dn,Xt],no="start",ds="end",FD="clippingParents",Ly="viewport",Lo="popper",WD="reference",pm=ws.reduce(function(e,t){return e.concat([t+"-"+no,t+"-"+ds])},[]),zy=[].concat(ws,[gf]).reduce(function(e,t){return e.concat([t,t+"-"+no,t+"-"+ds])},[]),BD="beforeRead",UD="read",jD="afterRead",HD="beforeMain",qD="main",VD="afterMain",GD="beforeWrite",YD="write",ZD="afterWrite",XD=[BD,UD,jD,HD,qD,VD,GD,YD,ZD];function Kn(e){return e?(e.nodeName||"").toLowerCase():null}function dn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Si(e){var t=dn(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=dn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yf(e){if(typeof ShadowRoot>"u")return!1;var t=dn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function KD(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},s=t.attributes[n]||{},a=t.elements[n];!_n(a)||!Kn(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(u){var c=s[u];c===!1?a.removeAttribute(u):a.setAttribute(u,c===!0?"":c)}))})}function JD(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],a=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),c=u.reduce(function(f,p){return f[p]="",f},{});!_n(s)||!Kn(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const QD={name:"applyStyles",enabled:!0,phase:"write",fn:KD,effect:JD,requires:["computeStyles"]};function Xn(e){return e.split("-")[0]}var bi=Math.max,ru=Math.min,ro=Math.round;function $c(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Fy(){return!/^((?!chrome|android).)*safari/i.test($c())}function io(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&_n(e)&&(s=e.offsetWidth>0&&ro(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ro(i.height)/e.offsetHeight||1);var u=Si(e)?dn(e):window,c=u.visualViewport,f=!Fy()&&n,p=(i.left+(f&&c?c.offsetLeft:0))/s,h=(i.top+(f&&c?c.offsetTop:0))/a,S=i.width/s,R=i.height/a;return{width:S,height:R,top:h,right:p+S,bottom:h+R,left:p,x:p,y:h}}function vf(e){var t=io(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Wy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yf(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function vr(e){return dn(e).getComputedStyle(e)}function eM(e){return["table","td","th"].indexOf(Kn(e))>=0}function Hr(e){return((Si(e)?e.ownerDocument:e.document)||window.document).documentElement}function Du(e){return Kn(e)==="html"?e:e.assignedSlot||e.parentNode||(yf(e)?e.host:null)||Hr(e)}function hm(e){return!_n(e)||vr(e).position==="fixed"?null:e.offsetParent}function tM(e){var t=/firefox/i.test($c()),n=/Trident/i.test($c());if(n&&_n(e)){var i=vr(e);if(i.position==="fixed")return null}var s=Du(e);for(yf(s)&&(s=s.host);_n(s)&&["html","body"].indexOf(Kn(s))<0;){var a=vr(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function xs(e){for(var t=dn(e),n=hm(e);n&&eM(n)&&vr(n).position==="static";)n=hm(n);return n&&(Kn(n)==="html"||Kn(n)==="body"&&vr(n).position==="static")?t:n||tM(e)||t}function bf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function is(e,t,n){return bi(e,ru(t,n))}function nM(e,t,n){var i=is(e,t,n);return i>n?n:i}function By(){return{top:0,right:0,bottom:0,left:0}}function Uy(e){return Object.assign({},By(),e)}function jy(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var rM=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Uy(typeof t!="number"?t:jy(t,ws))};function iM(e){var t,n=e.state,i=e.name,s=e.options,a=n.elements.arrow,u=n.modifiersData.popperOffsets,c=Xn(n.placement),f=bf(c),p=[Xt,Dn].indexOf(c)>=0,h=p?"height":"width";if(!(!a||!u)){var S=rM(s.padding,n),R=vf(a),w=f==="y"?Zt:Xt,C=f==="y"?Rn:Dn,y=n.rects.reference[h]+n.rects.reference[f]-u[f]-n.rects.popper[h],v=u[f]-n.rects.reference[f],g=xs(a),m=g?f==="y"?g.clientHeight||0:g.clientWidth||0:0,x=y/2-v/2,E=S[w],T=m-R[h]-S[C],P=m/2-R[h]/2+x,D=is(E,P,T),A=f;n.modifiersData[i]=(t={},t[A]=D,t.centerOffset=D-P,t)}}function oM(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Wy(t.elements.popper,s)&&(t.elements.arrow=s))}const sM={name:"arrow",enabled:!0,phase:"main",fn:iM,effect:oM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oo(e){return e.split("-")[1]}var aM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uM(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:ro(n*s)/s||0,y:ro(i*s)/s||0}}function mm(e){var t,n=e.popper,i=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,c=e.position,f=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,S=e.isFixed,R=u.x,w=R===void 0?0:R,C=u.y,y=C===void 0?0:C,v=typeof h=="function"?h({x:w,y}):{x:w,y};w=v.x,y=v.y;var g=u.hasOwnProperty("x"),m=u.hasOwnProperty("y"),x=Xt,E=Zt,T=window;if(p){var P=xs(n),D="clientHeight",A="clientWidth";if(P===dn(n)&&(P=Hr(n),vr(P).position!=="static"&&c==="absolute"&&(D="scrollHeight",A="scrollWidth")),P=P,s===Zt||(s===Xt||s===Dn)&&a===ds){E=Rn;var z=S&&P===T&&T.visualViewport?T.visualViewport.height:P[D];y-=z-i.height,y*=f?1:-1}if(s===Xt||(s===Zt||s===Rn)&&a===ds){x=Dn;var K=S&&P===T&&T.visualViewport?T.visualViewport.width:P[A];w-=K-i.width,w*=f?1:-1}}var Z=Object.assign({position:c},p&&aM),_=h===!0?uM({x:w,y},dn(n)):{x:w,y};if(w=_.x,y=_.y,f){var j;return Object.assign({},Z,(j={},j[E]=m?"0":"",j[x]=g?"0":"",j.transform=(T.devicePixelRatio||1)<=1?"translate("+w+"px, "+y+"px)":"translate3d("+w+"px, "+y+"px, 0)",j))}return Object.assign({},Z,(t={},t[E]=m?y+"px":"",t[x]=g?w+"px":"",t.transform="",t))}function lM(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,a=n.adaptive,u=a===void 0?!0:a,c=n.roundOffsets,f=c===void 0?!0:c,p={placement:Xn(t.placement),variation:oo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mm(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mm(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const cM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lM,data:{}};var _a={passive:!0};function fM(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,u=i.resize,c=u===void 0?!0:u,f=dn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(h){h.addEventListener("scroll",n.update,_a)}),c&&f.addEventListener("resize",n.update,_a),function(){a&&p.forEach(function(h){h.removeEventListener("scroll",n.update,_a)}),c&&f.removeEventListener("resize",n.update,_a)}}const dM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fM,data:{}};var pM={left:"right",right:"left",bottom:"top",top:"bottom"};function Ba(e){return e.replace(/left|right|bottom|top/g,function(t){return pM[t]})}var hM={start:"end",end:"start"};function gm(e){return e.replace(/start|end/g,function(t){return hM[t]})}function wf(e){var t=dn(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function xf(e){return io(Hr(e)).left+wf(e).scrollLeft}function mM(e,t){var n=dn(e),i=Hr(e),s=n.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,f=0;if(s){a=s.width,u=s.height;var p=Fy();(p||!p&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:c+xf(e),y:f}}function gM(e){var t,n=Hr(e),i=wf(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=bi(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=bi(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+xf(e),f=-i.scrollTop;return vr(s||n).direction==="rtl"&&(c+=bi(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:c,y:f}}function Sf(e){var t=vr(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function Hy(e){return["html","body","#document"].indexOf(Kn(e))>=0?e.ownerDocument.body:_n(e)&&Sf(e)?e:Hy(Du(e))}function os(e,t){var n;t===void 0&&(t=[]);var i=Hy(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),a=dn(i),u=s?[a].concat(a.visualViewport||[],Sf(i)?i:[]):i,c=t.concat(u);return s?c:c.concat(os(Du(u)))}function Lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yM(e,t){var n=io(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ym(e,t,n){return t===Ly?Lc(mM(e,n)):Si(t)?yM(t,n):Lc(gM(Hr(e)))}function vM(e){var t=os(Du(e)),n=["absolute","fixed"].indexOf(vr(e).position)>=0,i=n&&_n(e)?xs(e):e;return Si(i)?t.filter(function(s){return Si(s)&&Wy(s,i)&&Kn(s)!=="body"}):[]}function bM(e,t,n,i){var s=t==="clippingParents"?vM(e):[].concat(t),a=[].concat(s,[n]),u=a[0],c=a.reduce(function(f,p){var h=ym(e,p,i);return f.top=bi(h.top,f.top),f.right=ru(h.right,f.right),f.bottom=ru(h.bottom,f.bottom),f.left=bi(h.left,f.left),f},ym(e,u,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function qy(e){var t=e.reference,n=e.element,i=e.placement,s=i?Xn(i):null,a=i?oo(i):null,u=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,f;switch(s){case Zt:f={x:u,y:t.y-n.height};break;case Rn:f={x:u,y:t.y+t.height};break;case Dn:f={x:t.x+t.width,y:c};break;case Xt:f={x:t.x-n.width,y:c};break;default:f={x:t.x,y:t.y}}var p=s?bf(s):null;if(p!=null){var h=p==="y"?"height":"width";switch(a){case no:f[p]=f[p]-(t[h]/2-n[h]/2);break;case ds:f[p]=f[p]+(t[h]/2-n[h]/2);break}}return f}function ps(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,a=n.strategy,u=a===void 0?e.strategy:a,c=n.boundary,f=c===void 0?FD:c,p=n.rootBoundary,h=p===void 0?Ly:p,S=n.elementContext,R=S===void 0?Lo:S,w=n.altBoundary,C=w===void 0?!1:w,y=n.padding,v=y===void 0?0:y,g=Uy(typeof v!="number"?v:jy(v,ws)),m=R===Lo?WD:Lo,x=e.rects.popper,E=e.elements[C?m:R],T=bM(Si(E)?E:E.contextElement||Hr(e.elements.popper),f,h,u),P=io(e.elements.reference),D=qy({reference:P,element:x,placement:s}),A=Lc(Object.assign({},x,D)),z=R===Lo?A:P,K={top:T.top-z.top+g.top,bottom:z.bottom-T.bottom+g.bottom,left:T.left-z.left+g.left,right:z.right-T.right+g.right},Z=e.modifiersData.offset;if(R===Lo&&Z){var _=Z[s];Object.keys(K).forEach(function(j){var B=[Dn,Rn].indexOf(j)>=0?1:-1,J=[Zt,Rn].indexOf(j)>=0?"y":"x";K[j]+=_[J]*B})}return K}function wM(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,a=n.rootBoundary,u=n.padding,c=n.flipVariations,f=n.allowedAutoPlacements,p=f===void 0?zy:f,h=oo(i),S=h?c?pm:pm.filter(function(C){return oo(C)===h}):ws,R=S.filter(function(C){return p.indexOf(C)>=0});R.length===0&&(R=S);var w=R.reduce(function(C,y){return C[y]=ps(e,{placement:y,boundary:s,rootBoundary:a,padding:u})[Xn(y)],C},{});return Object.keys(w).sort(function(C,y){return w[C]-w[y]})}function xM(e){if(Xn(e)===gf)return[];var t=Ba(e);return[gm(e),t,gm(t)]}function SM(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,u=n.altAxis,c=u===void 0?!0:u,f=n.fallbackPlacements,p=n.padding,h=n.boundary,S=n.rootBoundary,R=n.altBoundary,w=n.flipVariations,C=w===void 0?!0:w,y=n.allowedAutoPlacements,v=t.options.placement,g=Xn(v),m=g===v,x=f||(m||!C?[Ba(v)]:xM(v)),E=[v].concat(x).reduce(function(pe,Oe){return pe.concat(Xn(Oe)===gf?wM(t,{placement:Oe,boundary:h,rootBoundary:S,padding:p,flipVariations:C,allowedAutoPlacements:y}):Oe)},[]),T=t.rects.reference,P=t.rects.popper,D=new Map,A=!0,z=E[0],K=0;K<E.length;K++){var Z=E[K],_=Xn(Z),j=oo(Z)===no,B=[Zt,Rn].indexOf(_)>=0,J=B?"width":"height",H=ps(t,{placement:Z,boundary:h,rootBoundary:S,altBoundary:R,padding:p}),X=B?j?Dn:Xt:j?Rn:Zt;T[J]>P[J]&&(X=Ba(X));var fe=Ba(X),ae=[];if(a&&ae.push(H[_]<=0),c&&ae.push(H[X]<=0,H[fe]<=0),ae.every(function(pe){return pe})){z=Z,A=!1;break}D.set(Z,ae)}if(A)for(var G=C?3:1,$=function(Oe){var Te=E.find(function(ve){var ee=D.get(ve);if(ee)return ee.slice(0,Oe).every(function(ce){return ce})});if(Te)return z=Te,"break"},ue=G;ue>0;ue--){var ye=$(ue);if(ye==="break")break}t.placement!==z&&(t.modifiersData[i]._skip=!0,t.placement=z,t.reset=!0)}}const EM={name:"flip",enabled:!0,phase:"main",fn:SM,requiresIfExists:["offset"],data:{_skip:!1}};function vm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bm(e){return[Zt,Dn,Rn,Xt].some(function(t){return e[t]>=0})}function OM(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=ps(t,{elementContext:"reference"}),c=ps(t,{altBoundary:!0}),f=vm(u,i),p=vm(c,s,a),h=bm(f),S=bm(p);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:S},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":S})}const TM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:OM};function CM(e,t,n){var i=Xn(e),s=[Xt,Zt].indexOf(i)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=a[0],c=a[1];return u=u||0,c=(c||0)*s,[Xt,Dn].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}function _M(e){var t=e.state,n=e.options,i=e.name,s=n.offset,a=s===void 0?[0,0]:s,u=zy.reduce(function(h,S){return h[S]=CM(S,t.rects,a),h},{}),c=u[t.placement],f=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=u}const RM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_M};function DM(e){var t=e.state,n=e.name;t.modifiersData[n]=qy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const MM={name:"popperOffsets",enabled:!0,phase:"read",fn:DM,data:{}};function PM(e){return e==="x"?"y":"x"}function IM(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,a=s===void 0?!0:s,u=n.altAxis,c=u===void 0?!1:u,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,S=n.padding,R=n.tether,w=R===void 0?!0:R,C=n.tetherOffset,y=C===void 0?0:C,v=ps(t,{boundary:f,rootBoundary:p,padding:S,altBoundary:h}),g=Xn(t.placement),m=oo(t.placement),x=!m,E=bf(g),T=PM(E),P=t.modifiersData.popperOffsets,D=t.rects.reference,A=t.rects.popper,z=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,K=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(P){if(a){var j,B=E==="y"?Zt:Xt,J=E==="y"?Rn:Dn,H=E==="y"?"height":"width",X=P[E],fe=X+v[B],ae=X-v[J],G=w?-A[H]/2:0,$=m===no?D[H]:A[H],ue=m===no?-A[H]:-D[H],ye=t.elements.arrow,pe=w&&ye?vf(ye):{width:0,height:0},Oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:By(),Te=Oe[B],ve=Oe[J],ee=is(0,D[H],pe[H]),ce=x?D[H]/2-G-ee-Te-K.mainAxis:$-ee-Te-K.mainAxis,Ee=x?-D[H]/2+G+ee+ve+K.mainAxis:ue+ee+ve+K.mainAxis,Re=t.elements.arrow&&xs(t.elements.arrow),N=Re?E==="y"?Re.clientTop||0:Re.clientLeft||0:0,W=(j=Z==null?void 0:Z[E])!=null?j:0,V=X+ce-W-N,le=X+Ee-W,be=is(w?ru(fe,V):fe,X,w?bi(ae,le):ae);P[E]=be,_[E]=be-X}if(c){var ge,te=E==="x"?Zt:Xt,he=E==="x"?Rn:Dn,we=P[T],Ne=T==="y"?"height":"width",_e=we+v[te],Ve=we-v[he],_t=[Zt,Xt].indexOf(g)!==-1,Et=(ge=Z==null?void 0:Z[T])!=null?ge:0,Kt=_t?_e:we-D[Ne]-A[Ne]-Et+K.altAxis,Pt=_t?we+D[Ne]+A[Ne]-Et-K.altAxis:Ve,Jt=w&&_t?nM(Kt,we,Pt):is(w?Kt:_e,we,w?Pt:Ve);P[T]=Jt,_[T]=Jt-we}t.modifiersData[i]=_}}const NM={name:"preventOverflow",enabled:!0,phase:"main",fn:IM,requiresIfExists:["offset"]};function AM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kM(e){return e===dn(e)||!_n(e)?wf(e):AM(e)}function $M(e){var t=e.getBoundingClientRect(),n=ro(t.width)/e.offsetWidth||1,i=ro(t.height)/e.offsetHeight||1;return n!==1||i!==1}function LM(e,t,n){n===void 0&&(n=!1);var i=_n(t),s=_n(t)&&$M(t),a=Hr(t),u=io(e,s,n),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!n)&&((Kn(t)!=="body"||Sf(a))&&(c=kM(t)),_n(t)?(f=io(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=xf(a))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function zM(e){var t=new Map,n=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){n.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(c){if(!n.has(c)){var f=t.get(c);f&&s(f)}}),i.push(a)}return e.forEach(function(a){n.has(a.name)||s(a)}),i}function FM(e){var t=zM(e);return XD.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function WM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function BM(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var wm={placement:"bottom",modifiers:[],strategy:"absolute"};function xm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function UM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,a=s===void 0?wm:s;return function(c,f,p){p===void 0&&(p=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},wm,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},S=[],R=!1,w={state:h,setOptions:function(g){var m=typeof g=="function"?g(h.options):g;y(),h.options=Object.assign({},a,h.options,m),h.scrollParents={reference:Si(c)?os(c):c.contextElement?os(c.contextElement):[],popper:os(f)};var x=FM(BM([].concat(i,h.options.modifiers)));return h.orderedModifiers=x.filter(function(E){return E.enabled}),C(),w.update()},forceUpdate:function(){if(!R){var g=h.elements,m=g.reference,x=g.popper;if(xm(m,x)){h.rects={reference:LM(m,xs(x),h.options.strategy==="fixed"),popper:vf(x)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(K){return h.modifiersData[K.name]=Object.assign({},K.data)});for(var E=0;E<h.orderedModifiers.length;E++){if(h.reset===!0){h.reset=!1,E=-1;continue}var T=h.orderedModifiers[E],P=T.fn,D=T.options,A=D===void 0?{}:D,z=T.name;typeof P=="function"&&(h=P({state:h,options:A,name:z,instance:w})||h)}}}},update:WM(function(){return new Promise(function(v){w.forceUpdate(),v(h)})}),destroy:function(){y(),R=!0}};if(!xm(c,f))return w;w.setOptions(p).then(function(v){!R&&p.onFirstUpdate&&p.onFirstUpdate(v)});function C(){h.orderedModifiers.forEach(function(v){var g=v.name,m=v.options,x=m===void 0?{}:m,E=v.effect;if(typeof E=="function"){var T=E({state:h,name:g,instance:w,options:x}),P=function(){};S.push(T||P)}})}function y(){S.forEach(function(v){return v()}),S=[]}return w}}var jM=[dM,MM,cM,QD,RM,EM,NM,sM,TM],HM=UM({defaultModifiers:jM});function qM(e){var S;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:s=!1,...a}=e,u=s?{}:Ay(n,i),{props:c,internalRef:f}=ky({...a,externalSlotProps:u}),p=Fn(f,u==null?void 0:u.ref,(S=e.additionalProps)==null?void 0:S.ref);return Ny(t,{...c,ref:p},i)}const VM="exact-prop: ";function GM(e){return process.env.NODE_ENV==="production"?e:{...e,[VM]:t=>{const n=Object.keys(t).filter(i=>!e.hasOwnProperty(i));return n.length>0?new Error(`The following props are not supported: ${n.map(i=>`\`${i}\``).join(", ")}. Please remove them.`):null}}}function YM(e){return typeof e=="function"?e():e}const iu=oe.forwardRef(function(t,n){const{children:i,container:s,disablePortal:a=!1}=t,[u,c]=oe.useState(null),f=Fn(oe.isValidElement(i)?Ru(i):null,n);if(ls(()=>{a||c(YM(s)||document.body)},[s,a]),ls(()=>{if(u&&!a)return Qh(n,u),()=>{Qh(n,null)}},[n,u,a]),a){if(oe.isValidElement(i)){const p={ref:f};return oe.cloneElement(i,p)}return i}return u&&qO.createPortal(i,u)});process.env.NODE_ENV!=="production"&&(iu.propTypes={children:b.node,container:b.oneOfType([fs,b.func]),disablePortal:b.bool});process.env.NODE_ENV!=="production"&&(iu.propTypes=GM(iu.propTypes));function ZM(e){return Jn("MuiPopper",e)}Qn("MuiPopper",["root"]);function XM(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function ou(e){return typeof e=="function"?e():e}function Mu(e){return e.nodeType!==void 0}function KM(e){return!Mu(e)}const JM=e=>{const{classes:t}=e;return Ur({root:["root"]},ZM,t)},QM={},eP=oe.forwardRef(function(t,n){const{anchorEl:i,children:s,direction:a,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:h,popperRef:S,slotProps:R={},slots:w={},TransitionProps:C,ownerState:y,...v}=t,g=oe.useRef(null),m=Fn(g,n),x=oe.useRef(null),E=Fn(x,S),T=oe.useRef(E);ls(()=>{T.current=E},[E]),oe.useImperativeHandle(S,()=>x.current,[]);const P=XM(p,a),[D,A]=oe.useState(P),[z,K]=oe.useState(ou(i));oe.useEffect(()=>{x.current&&x.current.forceUpdate()}),oe.useEffect(()=>{i&&K(ou(i))},[i]),ls(()=>{if(!z||!f)return;const J=fe=>{A(fe.placement)};if(process.env.NODE_ENV!=="production"&&z&&Mu(z)&&z.nodeType===1){const fe=z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&fe.top===0&&fe.left===0&&fe.right===0&&fe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
212
|
+
`))}let H=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:fe})=>{J(fe)}}];c!=null&&(H=H.concat(c)),h&&h.modifiers!=null&&(H=H.concat(h.modifiers));const X=HM(z,g.current,{placement:P,...h,modifiers:H});return T.current(X),()=>{X.destroy(),T.current(null)}},[z,u,c,f,h,P]);const Z={placement:D};C!==null&&(Z.TransitionProps=C);const _=JM(t),j=w.root??"div",B=qM({elementType:j,externalSlotProps:R.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:_.root});return F.jsx(j,{...B,children:typeof s=="function"?s(Z):s})}),Vy=oe.forwardRef(function(t,n){const{anchorEl:i,children:s,container:a,direction:u="ltr",disablePortal:c=!1,keepMounted:f=!1,modifiers:p,open:h,placement:S="bottom",popperOptions:R=QM,popperRef:w,style:C,transition:y=!1,slotProps:v={},slots:g={},...m}=t,[x,E]=oe.useState(!0),T=()=>{E(!1)},P=()=>{E(!0)};if(!f&&!h&&(!y||x))return null;let D;if(a)D=a;else if(i){const K=ou(i);D=K&&Mu(K)?Jh(K).body:Jh(null).body}const A=!h&&f&&(!y||x)?"none":void 0,z=y?{in:h,onEnter:T,onExited:P}:void 0;return F.jsx(iu,{disablePortal:c,container:D,children:F.jsx(eP,{anchorEl:i,direction:u,disablePortal:c,modifiers:p,ref:n,open:y?!x:h,placement:S,popperOptions:R,popperRef:w,slotProps:v,slots:g,...m,style:{position:"fixed",top:0,left:0,display:A,...C},TransitionProps:z,children:s})})});process.env.NODE_ENV!=="production"&&(Vy.propTypes={anchorEl:Cu(b.oneOfType([fs,b.object,b.func]),e=>{if(e.open){const t=ou(e.anchorEl);if(t&&Mu(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
213
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||KM(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
214
|
+
`))}return null}),children:b.oneOfType([b.node,b.func]),container:b.oneOfType([fs,b.func]),direction:b.oneOf(["ltr","rtl"]),disablePortal:b.bool,keepMounted:b.bool,modifiers:b.arrayOf(b.shape({data:b.object,effect:b.func,enabled:b.bool,fn:b.func,name:b.any,options:b.object,phase:b.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:b.arrayOf(b.string),requiresIfExists:b.arrayOf(b.string)})),open:b.bool.isRequired,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:b.shape({modifiers:b.array,onFirstUpdate:b.func,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:b.oneOf(["absolute","fixed"])}),popperRef:pf,slotProps:b.shape({root:b.oneOfType([b.func,b.object])}),slots:b.shape({root:b.elementType}),transition:b.bool});const tP=Lt(Vy,{name:"MuiPopper",slot:"Root"})({}),Ef=oe.forwardRef(function(t,n){const i=Kg(),s=xr({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:S,modifiers:R,open:w,placement:C,popperOptions:y,popperRef:v,transition:g,slots:m,slotProps:x,...E}=s,T=(m==null?void 0:m.root)??(c==null?void 0:c.Root),P={anchorEl:a,container:p,disablePortal:h,keepMounted:S,modifiers:R,open:w,placement:C,popperOptions:y,popperRef:v,transition:g,...E};return F.jsx(tP,{as:u,direction:i?"rtl":"ltr",slots:{root:T},slotProps:x??f,...P,ref:n})});process.env.NODE_ENV!=="production"&&(Ef.propTypes={anchorEl:b.oneOfType([fs,b.object,b.func]),children:b.oneOfType([b.node,b.func]),component:b.elementType,components:b.shape({Root:b.elementType}),componentsProps:b.shape({root:b.oneOfType([b.func,b.object])}),container:b.oneOfType([fs,b.func]),disablePortal:b.bool,keepMounted:b.bool,modifiers:b.arrayOf(b.shape({data:b.object,effect:b.func,enabled:b.bool,fn:b.func,name:b.any,options:b.object,phase:b.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:b.arrayOf(b.string),requiresIfExists:b.arrayOf(b.string)})),open:b.bool.isRequired,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:b.shape({modifiers:b.array,onFirstUpdate:b.func,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:b.oneOf(["absolute","fixed"])}),popperRef:pf,slotProps:b.shape({root:b.oneOfType([b.func,b.object])}),slots:b.shape({root:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),transition:b.bool});function nP(e){return Jn("MuiTooltip",e)}const gt=Qn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function rP(e){return Math.round(e*1e5)/1e5}const iP=e=>{const{classes:t,disableInteractive:n,arrow:i,touch:s,placement:a}=e,u={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",s&&"touch",`tooltipPlacement${fn(a.split("-")[0])}`],arrow:["arrow"]};return Ur(u,nP,t)},oP=Lt(Ef,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Cn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${gt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${gt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${gt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${gt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${gt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${gt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${gt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${gt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),sP=Lt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${fn(n.placement.split("-")[0])}`]]}})(Cn(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${gt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${gt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${gt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${rP(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${gt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${gt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),aP=Lt("span",{name:"MuiTooltip",slot:"Arrow"})(Cn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ra=!1;const Sm=new Tu;let zo={x:0,y:0};function Da(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const Gy=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiTooltip"}),{arrow:s=!1,children:a,classes:u,components:c={},componentsProps:f={},describeChild:p=!1,disableFocusListener:h=!1,disableHoverListener:S=!1,disableInteractive:R=!1,disableTouchListener:w=!1,enterDelay:C=100,enterNextDelay:y=0,enterTouchDelay:v=700,followCursor:g=!1,id:m,leaveDelay:x=0,leaveTouchDelay:E=1500,onClose:T,onOpen:P,open:D,placement:A="bottom",PopperComponent:z,PopperProps:K={},slotProps:Z={},slots:_={},title:j,TransitionComponent:B,TransitionProps:J,...H}=i,X=oe.isValidElement(a)?a:F.jsx("span",{children:a}),fe=bs(),ae=Kg(),[G,$]=oe.useState(),[ue,ye]=oe.useState(null),pe=oe.useRef(!1),Oe=R||g,Te=pi(),ve=pi(),ee=pi(),ce=pi(),[Ee,Re]=uy({controlled:D,default:!1,name:"Tooltip",state:"open"});let N=Ee;if(process.env.NODE_ENV!=="production"){const{current:$e}=oe.useRef(D!==void 0);oe.useEffect(()=>{G&&G.disabled&&!$e&&j!==""&&G.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
215
|
+
`))},[j,G,$e])}const W=Z_(m),V=oe.useRef(),le=Qi(()=>{V.current!==void 0&&(document.body.style.WebkitUserSelect=V.current,V.current=void 0),ce.clear()});oe.useEffect(()=>le,[le]);const be=$e=>{Sm.clear(),Ra=!0,Re(!0),P&&!N&&P($e)},ge=Qi($e=>{Sm.start(800+x,()=>{Ra=!1}),Re(!1),T&&N&&T($e),Te.start(fe.transitions.duration.shortest,()=>{pe.current=!1})}),te=$e=>{pe.current&&$e.type!=="touchstart"||(G&&G.removeAttribute("title"),ve.clear(),ee.clear(),C||Ra&&y?ve.start(Ra?y:C,()=>{be($e)}):be($e))},he=$e=>{ve.clear(),ee.start(x,()=>{ge($e)})},[,we]=oe.useState(!1),Ne=$e=>{eu($e.target)||(we(!1),he($e))},_e=$e=>{G||$($e.currentTarget),eu($e.target)&&(we(!0),te($e))},Ve=$e=>{pe.current=!0;const Qt=X.props;Qt.onTouchStart&&Qt.onTouchStart($e)},_t=$e=>{Ve($e),ee.clear(),Te.clear(),le(),V.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(v,()=>{document.body.style.WebkitUserSelect=V.current,te($e)})},Et=$e=>{X.props.onTouchEnd&&X.props.onTouchEnd($e),le(),ee.start(E,()=>{ge($e)})};oe.useEffect(()=>{if(!N)return;function $e(Qt){Qt.key==="Escape"&&ge(Qt)}return document.addEventListener("keydown",$e),()=>{document.removeEventListener("keydown",$e)}},[ge,N]);const Kt=Fn(Ru(X),$,n);!j&&j!==0&&(N=!1);const Pt=oe.useRef(),Jt=$e=>{const Qt=X.props;Qt.onMouseMove&&Qt.onMouseMove($e),zo={x:$e.clientX,y:$e.clientY},Pt.current&&Pt.current.update()},Rt={},qr=typeof j=="string";p?(Rt.title=!N&&qr&&!S?j:null,Rt["aria-describedby"]=N?W:null):(Rt["aria-label"]=qr?j:null,Rt["aria-labelledby"]=N&&!qr?W:null);const It={...Rt,...H,...X.props,className:at(H.className,X.props.className),onTouchStart:Ve,ref:Kt,...g?{onMouseMove:Jt}:{}};process.env.NODE_ENV!=="production"&&(It["data-mui-internal-clone-element"]=!0,oe.useEffect(()=>{G&&!G.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
216
|
+
`))},[G]));const tr={};w||(It.onTouchStart=_t,It.onTouchEnd=Et),S||(It.onMouseOver=Da(te,It.onMouseOver),It.onMouseLeave=Da(he,It.onMouseLeave),Oe||(tr.onMouseOver=te,tr.onMouseLeave=he)),h||(It.onFocus=Da(_e,It.onFocus),It.onBlur=Da(Ne,It.onBlur),Oe||(tr.onFocus=_e,tr.onBlur=Ne)),process.env.NODE_ENV!=="production"&&X.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${X.props.title}\` or the Tooltip component.`].join(`
|
|
217
|
+
`));const Pn={...i,isRtl:ae,arrow:s,disableInteractive:Oe,placement:A,PopperComponentProp:z,touch:pe.current},zt=typeof Z.popper=="function"?Z.popper(Pn):Z.popper,go=oe.useMemo(()=>{var Qt,Ds;let $e=[{name:"arrow",enabled:!!ue,options:{element:ue,padding:4}}];return(Qt=K.popperOptions)!=null&&Qt.modifiers&&($e=$e.concat(K.popperOptions.modifiers)),(Ds=zt==null?void 0:zt.popperOptions)!=null&&Ds.modifiers&&($e=$e.concat(zt.popperOptions.modifiers)),{...K.popperOptions,...zt==null?void 0:zt.popperOptions,modifiers:$e}},[ue,K.popperOptions,zt==null?void 0:zt.popperOptions]),Vr=iP(Pn),yo=typeof Z.transition=="function"?Z.transition(Pn):Z.transition,Oi={slots:{popper:c.Popper,transition:c.Transition??B,tooltip:c.Tooltip,arrow:c.Arrow,..._},slotProps:{arrow:Z.arrow??f.arrow,popper:{...K,...zt??f.popper},tooltip:Z.tooltip??f.tooltip,transition:{...J,...yo??f.transition}}},[Fu,Wu]=Zn("popper",{elementType:oP,externalForwardedProps:Oi,ownerState:Pn,className:at(Vr.popper,K==null?void 0:K.className)}),[_s,Rs]=Zn("transition",{elementType:nu,externalForwardedProps:Oi,ownerState:Pn}),[Bu,Uu]=Zn("tooltip",{elementType:sP,className:Vr.tooltip,externalForwardedProps:Oi,ownerState:Pn}),[ju,Hu]=Zn("arrow",{elementType:aP,className:Vr.arrow,externalForwardedProps:Oi,ownerState:Pn,ref:ye});return F.jsxs(oe.Fragment,{children:[oe.cloneElement(X,It),F.jsx(Fu,{as:z??Ef,placement:A,anchorEl:g?{getBoundingClientRect:()=>({top:zo.y,left:zo.x,right:zo.x,bottom:zo.y,width:0,height:0})}:G,popperRef:Pt,open:G?N:!1,id:W,transition:!0,...tr,...Wu,popperOptions:go,children:({TransitionProps:$e})=>F.jsx(_s,{timeout:fe.transitions.duration.shorter,...$e,...Rs,children:F.jsxs(Bu,{...Uu,children:[j,s?F.jsx(ju,{...Hu}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Gy.propTypes={arrow:b.bool,children:_u.isRequired,classes:b.object,className:b.string,components:b.shape({Arrow:b.elementType,Popper:b.elementType,Tooltip:b.elementType,Transition:b.elementType}),componentsProps:b.shape({arrow:b.object,popper:b.object,tooltip:b.object,transition:b.object}),describeChild:b.bool,disableFocusListener:b.bool,disableHoverListener:b.bool,disableInteractive:b.bool,disableTouchListener:b.bool,enterDelay:b.number,enterNextDelay:b.number,enterTouchDelay:b.number,followCursor:b.bool,id:b.string,leaveDelay:b.number,leaveTouchDelay:b.number,onClose:b.func,onOpen:b.func,open:b.bool,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:b.elementType,PopperProps:b.object,slotProps:b.shape({arrow:b.oneOfType([b.func,b.object]),popper:b.oneOfType([b.func,b.object]),tooltip:b.oneOfType([b.func,b.object]),transition:b.oneOfType([b.func,b.object])}),slots:b.shape({arrow:b.elementType,popper:b.elementType,tooltip:b.elementType,transition:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),title:b.node,TransitionComponent:b.elementType,TransitionProps:b.object});function uP(e){return Jn("MuiSpeedDialAction",e)}const Ma=Qn("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),lP=e=>{const{open:t,tooltipPlacement:n,classes:i}=e,s={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${fn(n)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return Ur(s,uP,i)},cP=Lt(hf,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.fab,!n.open&&t.fabClosed]}})(Cn(({theme:e})=>({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:Xg(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1,variants:[{props:({ownerState:t})=>!t.open,style:{opacity:0,transform:"scale(0)"}}]}))),fP=Lt("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.staticTooltip,!n.open&&t.staticTooltipClosed,t[`tooltipPlacement${fn(n.tooltipPlacement)}`]]}})(Cn(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",[`& .${Ma.staticTooltipLabel}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},variants:[{props:({ownerState:t})=>!t.open,style:{[`& .${Ma.staticTooltipLabel}`]:{opacity:0,transform:"scale(0.5)"}}},{props:{tooltipPlacement:"left"},style:{[`& .${Ma.staticTooltipLabel}`]:{transformOrigin:"100% 50%",right:"100%",marginRight:8}}},{props:{tooltipPlacement:"right"},style:{[`& .${Ma.staticTooltipLabel}`]:{transformOrigin:"0% 50%",left:"100%",marginLeft:8}}}]}))),dP=Lt("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel"})(Cn(({theme:e})=>({position:"absolute",...e.typography.body1,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}))),Yy=oe.forwardRef(function(t,n){var fe;const i=xr({props:t,name:"MuiSpeedDialAction"}),{className:s,delay:a=0,FabProps:u={},icon:c,id:f,open:p,TooltipClasses:h,tooltipOpen:S=!1,tooltipPlacement:R="left",tooltipTitle:w,slots:C={},slotProps:y={},...v}=i,g={...i,tooltipPlacement:R},m=lP(g),x={slots:C,slotProps:{fab:u,...y,tooltip:K_(typeof y.tooltip=="function"?y.tooltip(g):y.tooltip,{title:w,open:S,placement:R,classes:h})}},[E,T]=oe.useState((fe=x.slotProps.tooltip)==null?void 0:fe.open),P=()=>{T(!1)},D=()=>{T(!0)},A={transitionDelay:`${a}ms`},[z,K]=Zn("fab",{elementType:cP,externalForwardedProps:x,ownerState:g,shouldForwardComponentProp:!0,className:at(m.fab,s),additionalProps:{style:A,tabIndex:-1,role:"menuitem",size:"small"}}),[Z,_]=Zn("tooltip",{elementType:Gy,externalForwardedProps:x,shouldForwardComponentProp:!0,ref:n,additionalProps:{id:f},ownerState:g,getSlotProps:ae=>({...ae,onClose:G=>{var $;($=ae.onClose)==null||$.call(ae,G),P()},onOpen:G=>{var $;($=ae.onOpen)==null||$.call(ae,G),D()}})}),[j,B]=Zn("staticTooltip",{elementType:fP,externalForwardedProps:x,ownerState:g,ref:n,className:m.staticTooltip,additionalProps:{id:f}}),[J,H]=Zn("staticTooltipLabel",{elementType:dP,externalForwardedProps:x,ownerState:g,className:m.staticTooltipLabel,additionalProps:{style:A,id:`${f}-label`}}),X=F.jsx(z,{...K,children:c});return _.open?F.jsxs(j,{...B,...v,children:[F.jsx(J,{...H,children:_.title}),oe.cloneElement(X,{"aria-labelledby":`${f}-label`})]}):(!p&&E&&T(!1),F.jsx(Z,{..._,title:_.title,open:p&&E,placement:_.placement,classes:_.classes,...v,children:X}))});process.env.NODE_ENV!=="production"&&(Yy.propTypes={classes:b.object,className:b.string,delay:b.number,FabProps:b.object,icon:b.node,id:b.string,open:b.bool,slotProps:b.shape({fab:b.oneOfType([b.func,b.object]),staticTooltip:b.oneOfType([b.func,b.object]),staticTooltipLabel:b.oneOfType([b.func,b.object]),tooltip:b.oneOfType([b.func,b.object])}),slots:b.shape({fab:b.elementType,staticTooltip:b.elementType,staticTooltipLabel:b.elementType,tooltip:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),TooltipClasses:b.object,tooltipOpen:b.bool,tooltipPlacement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),tooltipTitle:b.node});const pP=Qn("MuiBox",["root"]),hP=oy(),Zy=zC({themeId:cf,defaultTheme:hP,defaultClassName:pP.root,generateClassName:kg.generate});process.env.NODE_ENV!=="production"&&(Zy.propTypes={children:b.node,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});const mP=({actions:e,value:t,direction:n="down",onChange:i,icons:s,openIcon:a,size:u=40})=>{const[c,f]=Y.useState(!1),p=me.useTheme();return F.jsx(Zy,{sx:{position:"relative",width:u,height:u},children:F.jsx($y,{"data-testid":"speed-dial",ariaLabel:"Options",direction:n,onOpen:()=>f(!0),onClose:()=>f(!1),open:c,icon:F.jsx(mf,{icon:s[t],openIcon:a}),FabProps:{sx:{zIndex:10,border:"none",backgroundColor:"transparent",boxShadow:"none",color:p.palette.text.primary,width:u,height:u,"&:hover":{zIndex:100,backgroundColor:"transparent",color:"transparent"}}},sx:{zIndex:10,position:"absolute",top:0,right:0,boxShadow:"none","& .MuiSpeedDial-actions":{backgroundColor:c?p.palette.background.paper:"transparent",boxShadow:"none",borderRadius:1,padding:0},"& .MuiSpeedDial-fab":{width:u,height:u,boxShadow:"none",border:"none"}},children:e.map(h=>F.jsx(Yy,{icon:h.icon,tooltipTitle:h.name,onClick:()=>{i(h.value),f(!1)},FabProps:{sx:{backgroundColor:p.palette.background.paper,boxShadow:"none",color:p.palette.text.primary,width:u-4,height:u-4,"&:hover":{backgroundColor:p.palette.action.hover}}}},h.name))})})},Xy=Y.createContext(void 0),gP=()=>{const e=Y.useContext(Xy);if(!e)throw new Error("useGridItemContext must be used within a GridItemProvider");return e},yP=({children:e})=>{const[t,n]=Y.useState([]),i=Y.useCallback((f,p,h)=>{n(S=>{const R=S.findIndex(C=>C.id===f),w={id:f,content:p,layout:h};if(R>=0){const C=[...S];return C[R]=w,C}else return[...S,w]})},[]),s=Y.useCallback(f=>{n(p=>p.filter(h=>h.id!==f))},[]),a=Y.useCallback(f=>t.find(p=>p.id===f),[t]),u=Y.useCallback(()=>t,[t]),c={gridItems:t,registerGridItem:i,unregisterGridItem:s,getGridItem:a,getAllGridItems:u};return F.jsx(Xy.Provider,{value:c,children:e})};function vP(e){const{id:t=`grid-item-${Math.random().toString(36).substr(2,9)}`,x:n=0,y:i=0,w:s=1,h:a=1,minW:u=1,maxW:c=null,minH:f=1,maxH:p=null,static:h=!1}=e;return{i:t,x:n,y:i,w:s??12,h:a??1,minW:u,maxW:c??void 0,minH:f,maxH:p??void 0,static:h}}const Of=()=>{const{editMode:e,toggleEditMode:t}=lo();return{editMode:e,toggleEditMode:t}},bP=({children:e,id:t,isFlexContainer:n=!1})=>{const i=me.useTheme(),{editMode:s}=Of();return F.jsx(me.Box,{"data-grid-item-id":t,sx:{bgcolor:i.palette.background.paper,borderRadius:1,boxShadow:1,overflow:"hidden",p:1,height:"100%",display:n?"flex":"block",flexDirection:n?"column":"initial",outline:s?`2px dashed ${i.palette.primary.main}`:"none",transition:"outline 0.2s ease-in-out",position:"relative","&:hover":{outline:s?`2px solid ${i.palette.primary.main}`:"none"}},children:e})};var hc={exports:{}},Fo={},Qo={exports:{}},wP=Qo.exports,Em;function Tf(){return Em||(Em=1,function(e,t){(function(n,i){i(t)})(wP,function(n){function i(ee){return function(Ee,Re,N,W,V,le,be){return ee(Ee,Re,be)}}function s(ee){return function(Ee,Re,N,W){if(!Ee||!Re||typeof Ee!="object"||typeof Re!="object")return ee(Ee,Re,N,W);var V=W.get(Ee),le=W.get(Re);if(V&&le)return V===Re&&le===Ee;W.set(Ee,Re),W.set(Re,Ee);var be=ee(Ee,Re,N,W);return W.delete(Ee),W.delete(Re),be}}function a(ee,ce){var Ee={};for(var Re in ee)Ee[Re]=ee[Re];for(var Re in ce)Ee[Re]=ce[Re];return Ee}function u(ee){return ee.constructor===Object||ee.constructor==null}function c(ee){return typeof ee.then=="function"}function f(ee,ce){return ee===ce||ee!==ee&&ce!==ce}var p="[object Arguments]",h="[object Boolean]",S="[object Date]",R="[object RegExp]",w="[object Map]",C="[object Number]",y="[object Object]",v="[object Set]",g="[object String]",m=Object.prototype.toString;function x(ee){var ce=ee.areArraysEqual,Ee=ee.areDatesEqual,Re=ee.areMapsEqual,N=ee.areObjectsEqual,W=ee.areRegExpsEqual,V=ee.areSetsEqual,le=ee.createIsNestedEqual,be=le(ge);function ge(te,he,we){if(te===he)return!0;if(!te||!he||typeof te!="object"||typeof he!="object")return te!==te&&he!==he;if(u(te)&&u(he))return N(te,he,be,we);var Ne=Array.isArray(te),_e=Array.isArray(he);if(Ne||_e)return Ne===_e&&ce(te,he,be,we);var Ve=m.call(te);return Ve!==m.call(he)?!1:Ve===S?Ee(te,he,be,we):Ve===R?W(te,he,be,we):Ve===w?Re(te,he,be,we):Ve===v?V(te,he,be,we):Ve===y||Ve===p?c(te)||c(he)?!1:N(te,he,be,we):Ve===h||Ve===C||Ve===g?f(te.valueOf(),he.valueOf()):!1}return ge}function E(ee,ce,Ee,Re){var N=ee.length;if(ce.length!==N)return!1;for(;N-- >0;)if(!Ee(ee[N],ce[N],N,N,ee,ce,Re))return!1;return!0}var T=s(E);function P(ee,ce){return f(ee.valueOf(),ce.valueOf())}function D(ee,ce,Ee,Re){var N=ee.size===ce.size;if(!N)return!1;if(!ee.size)return!0;var W={},V=0;return ee.forEach(function(le,be){if(N){var ge=!1,te=0;ce.forEach(function(he,we){!ge&&!W[te]&&(ge=Ee(be,we,V,te,ee,ce,Re)&&Ee(le,he,be,we,ee,ce,Re))&&(W[te]=!0),te++}),V++,N=ge}}),N}var A=s(D),z="_owner",K=Object.prototype.hasOwnProperty;function Z(ee,ce,Ee,Re){var N=Object.keys(ee),W=N.length;if(Object.keys(ce).length!==W)return!1;for(var V;W-- >0;){if(V=N[W],V===z){var le=!!ee.$$typeof,be=!!ce.$$typeof;if((le||be)&&le!==be)return!1}if(!K.call(ce,V)||!Ee(ee[V],ce[V],V,V,ee,ce,Re))return!1}return!0}var _=s(Z);function j(ee,ce){return ee.source===ce.source&&ee.flags===ce.flags}function B(ee,ce,Ee,Re){var N=ee.size===ce.size;if(!N)return!1;if(!ee.size)return!0;var W={};return ee.forEach(function(V,le){if(N){var be=!1,ge=0;ce.forEach(function(te,he){!be&&!W[ge]&&(be=Ee(V,te,le,he,ee,ce,Re))&&(W[ge]=!0),ge++}),N=be}}),N}var J=s(B),H=Object.freeze({areArraysEqual:E,areDatesEqual:P,areMapsEqual:D,areObjectsEqual:Z,areRegExpsEqual:j,areSetsEqual:B,createIsNestedEqual:i}),X=Object.freeze({areArraysEqual:T,areDatesEqual:P,areMapsEqual:A,areObjectsEqual:_,areRegExpsEqual:j,areSetsEqual:J,createIsNestedEqual:i}),fe=x(H);function ae(ee,ce){return fe(ee,ce,void 0)}var G=x(a(H,{createIsNestedEqual:function(){return f}}));function $(ee,ce){return G(ee,ce,void 0)}var ue=x(X);function ye(ee,ce){return ue(ee,ce,new WeakMap)}var pe=x(a(X,{createIsNestedEqual:function(){return f}}));function Oe(ee,ce){return pe(ee,ce,new WeakMap)}function Te(ee){return x(a(H,ee(H)))}function ve(ee){var ce=x(a(X,ee(X)));return function(Ee,Re,N){return N===void 0&&(N=new WeakMap),ce(Ee,Re,N)}}n.circularDeepEqual=ye,n.circularShallowEqual=Oe,n.createCustomCircularEqual=ve,n.createCustomEqual=Te,n.deepEqual=ae,n.sameValueZeroEqual=f,n.shallowEqual=$,Object.defineProperty(n,"__esModule",{value:!0})})}(Qo,Qo.exports)),Qo.exports}var Pa={exports:{}},Om;function Cf(){if(Om)return Pa.exports;Om=1;function e(n){var i,s,a="";if(typeof n=="string"||typeof n=="number")a+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(i=0;i<u;i++)n[i]&&(s=e(n[i]))&&(a&&(a+=" "),a+=s)}else for(s in n)n[s]&&(a&&(a+=" "),a+=s);return a}function t(){for(var n,i,s=0,a="",u=arguments.length;s<u;s++)(n=arguments[s])&&(i=e(n))&&(a&&(a+=" "),a+=i);return a}return Pa.exports=t,Pa.exports.clsx=t,Pa.exports}var qe={},mc,Tm;function xP(){return Tm||(Tm=1,mc=function(t,n,i){return t===n?!0:t.className===n.className&&i(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&i(t.verticalCompact,n.verticalCompact)&&i(t.compactType,n.compactType)&&i(t.layout,n.layout)&&i(t.margin,n.margin)&&i(t.containerPadding,n.containerPadding)&&t.rowHeight===n.rowHeight&&t.maxRows===n.maxRows&&t.isBounded===n.isBounded&&t.isDraggable===n.isDraggable&&t.isResizable===n.isResizable&&t.allowOverlap===n.allowOverlap&&t.preventCollision===n.preventCollision&&t.useCSSTransforms===n.useCSSTransforms&&t.transformScale===n.transformScale&&t.isDroppable===n.isDroppable&&i(t.resizeHandles,n.resizeHandles)&&i(t.resizeHandle,n.resizeHandle)&&t.onLayoutChange===n.onLayoutChange&&t.onDragStart===n.onDragStart&&t.onDrag===n.onDrag&&t.onDragStop===n.onDragStop&&t.onResizeStart===n.onResizeStart&&t.onResize===n.onResize&&t.onResizeStop===n.onResizeStop&&t.onDrop===n.onDrop&&i(t.droppingItem,n.droppingItem)&&i(t.innerRef,n.innerRef)}),mc}var Cm;function co(){if(Cm)return qe;Cm=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.bottom=s,qe.childrenEqual=p,qe.cloneLayout=a,qe.cloneLayoutItem=f,qe.collides=S,qe.compact=R,qe.compactItem=y,qe.compactType=ce,qe.correctBounds=v,qe.fastPositionEqual=h,qe.fastRGLPropsEqual=void 0,qe.getAllCollisions=x,qe.getFirstCollision=m,qe.getLayoutItem=g,qe.getStatics=E,qe.modifyLayout=u,qe.moveElement=T,qe.moveElementAwayFromCollision=P,qe.noop=void 0,qe.perc=D,qe.resizeItemInDirection=$,qe.setTopLeft=ye,qe.setTransform=ue,qe.sortLayoutItems=pe,qe.sortLayoutItemsByColRow=Te,qe.sortLayoutItemsByRowCol=Oe,qe.synchronizeLayoutWithChildren=ve,qe.validateLayout=ee,qe.withLayoutItem=c;var e=Tf(),t=n(Y);function n(N){return N&&N.__esModule?N:{default:N}}const i=process.env.NODE_ENV==="production";function s(N){let W=0,V;for(let le=0,be=N.length;le<be;le++)V=N[le].y+N[le].h,V>W&&(W=V);return W}function a(N){const W=Array(N.length);for(let V=0,le=N.length;V<le;V++)W[V]=f(N[V]);return W}function u(N,W){const V=Array(N.length);for(let le=0,be=N.length;le<be;le++)W.i===N[le].i?V[le]=W:V[le]=N[le];return V}function c(N,W,V){let le=g(N,W);return le?(le=V(f(le)),N=u(N,le),[N,le]):[N,null]}function f(N){return{w:N.w,h:N.h,x:N.x,y:N.y,i:N.i,minW:N.minW,maxW:N.maxW,minH:N.minH,maxH:N.maxH,moved:!!N.moved,static:!!N.static,isDraggable:N.isDraggable,isResizable:N.isResizable,resizeHandles:N.resizeHandles,isBounded:N.isBounded}}function p(N,W){return(0,e.deepEqual)(t.default.Children.map(N,V=>V==null?void 0:V.key),t.default.Children.map(W,V=>V==null?void 0:V.key))&&(0,e.deepEqual)(t.default.Children.map(N,V=>V==null?void 0:V.props["data-grid"]),t.default.Children.map(W,V=>V==null?void 0:V.props["data-grid"]))}qe.fastRGLPropsEqual=xP();function h(N,W){return N.left===W.left&&N.top===W.top&&N.width===W.width&&N.height===W.height}function S(N,W){return!(N.i===W.i||N.x+N.w<=W.x||N.x>=W.x+W.w||N.y+N.h<=W.y||N.y>=W.y+W.h)}function R(N,W,V,le){const be=E(N),ge=pe(N,W),te=Array(N.length);for(let he=0,we=ge.length;he<we;he++){let Ne=f(ge[he]);Ne.static||(Ne=y(be,Ne,W,V,ge,le),be.push(Ne)),te[N.indexOf(ge[he])]=Ne,Ne.moved=!1}return te}const w={x:"w",y:"h"};function C(N,W,V,le){const be=w[le];W[le]+=1;const ge=N.map(te=>te.i).indexOf(W.i);for(let te=ge+1;te<N.length;te++){const he=N[te];if(!he.static){if(he.y>W.y+W.h)break;S(W,he)&&C(N,he,V+W[be],le)}}W[le]=V}function y(N,W,V,le,be,ge){const te=V==="vertical",he=V==="horizontal";if(te)for(W.y=Math.min(s(N),W.y);W.y>0&&!m(N,W);)W.y--;else if(he)for(;W.x>0&&!m(N,W);)W.x--;let we;for(;(we=m(N,W))&&!(V===null&&ge);)if(he?C(be,W,we.x+we.w,"x"):C(be,W,we.y+we.h,"y"),he&&W.x+W.w>le)for(W.x=le-W.w,W.y++;W.x>0&&!m(N,W);)W.x--;return W.y=Math.max(W.y,0),W.x=Math.max(W.x,0),W}function v(N,W){const V=E(N);for(let le=0,be=N.length;le<be;le++){const ge=N[le];if(ge.x+ge.w>W.cols&&(ge.x=W.cols-ge.w),ge.x<0&&(ge.x=0,ge.w=W.cols),!ge.static)V.push(ge);else for(;m(V,ge);)ge.y++}return N}function g(N,W){for(let V=0,le=N.length;V<le;V++)if(N[V].i===W)return N[V]}function m(N,W){for(let V=0,le=N.length;V<le;V++)if(S(N[V],W))return N[V]}function x(N,W){return N.filter(V=>S(V,W))}function E(N){return N.filter(W=>W.static)}function T(N,W,V,le,be,ge,te,he,we){if(W.static&&W.isDraggable!==!0||W.y===le&&W.x===V)return N;`${W.i}${String(V)}${String(le)}${W.x}${W.y}`;const Ne=W.x,_e=W.y;typeof V=="number"&&(W.x=V),typeof le=="number"&&(W.y=le),W.moved=!0;let Ve=pe(N,te);(te==="vertical"&&typeof le=="number"?_e>=le:te==="horizontal"&&typeof V=="number"?Ne>=V:!1)&&(Ve=Ve.reverse());const Et=x(Ve,W),Kt=Et.length>0;if(Kt&&we)return a(N);if(Kt&&ge)return`${W.i}`,W.x=Ne,W.y=_e,W.moved=!1,N;for(let Pt=0,Jt=Et.length;Pt<Jt;Pt++){const Rt=Et[Pt];`${W.i}${W.x}${W.y}${Rt.i}${Rt.x}${Rt.y}`,!Rt.moved&&(Rt.static?N=P(N,Rt,W,be,te):N=P(N,W,Rt,be,te))}return N}function P(N,W,V,le,be,ge){const te=be==="horizontal",he=be==="vertical",we=W.static;if(le){le=!1;const Ve={x:te?Math.max(W.x-V.w,0):V.x,y:he?Math.max(W.y-V.h,0):V.y,w:V.w,h:V.h,i:"-1"},_t=m(N,Ve),Et=_t&&_t.y+_t.h>W.y,Kt=_t&&W.x+W.w>_t.x;if(_t){if(Et&&he)return T(N,V,void 0,W.y+1,le,we,be);if(Et&&be==null)return W.y=V.y,V.y=V.y+V.h,N;if(Kt&&te)return T(N,W,V.x,void 0,le,we,be)}else return`${V.i}${Ve.x}${Ve.y}`,T(N,V,te?Ve.x:void 0,he?Ve.y:void 0,le,we,be)}const Ne=te?V.x+1:void 0,_e=he?V.y+1:void 0;return Ne==null&&_e==null?N:T(N,V,te?V.x+1:void 0,he?V.y+1:void 0,le,we,be)}function D(N){return N*100+"%"}const A=(N,W,V,le)=>N+V>le?W:V,z=(N,W,V)=>N<0?W:V,K=N=>Math.max(0,N),Z=N=>Math.max(0,N),_=(N,W,V)=>{let{left:le,height:be,width:ge}=W;const te=N.top-(be-N.height);return{left:le,width:ge,height:z(te,N.height,be),top:Z(te)}},j=(N,W,V)=>{let{top:le,left:be,height:ge,width:te}=W;return{top:le,height:ge,width:A(N.left,N.width,te,V),left:K(be)}},B=(N,W,V)=>{let{top:le,height:be,width:ge}=W;const te=N.left-(ge-N.width);return{height:be,width:te<0?N.width:A(N.left,N.width,ge,V),top:Z(le),left:K(te)}},J=(N,W,V)=>{let{top:le,left:be,height:ge,width:te}=W;return{width:te,left:be,height:z(le,N.height,ge),top:Z(le)}},G={n:_,ne:function(){return _(arguments.length<=0?void 0:arguments[0],j(...arguments))},e:j,se:function(){return J(arguments.length<=0?void 0:arguments[0],j(...arguments))},s:J,sw:function(){return J(arguments.length<=0?void 0:arguments[0],B(...arguments))},w:B,nw:function(){return _(arguments.length<=0?void 0:arguments[0],B(...arguments))}};function $(N,W,V,le){const be=G[N];return be?be(W,{...W,...V},le):V}function ue(N){let{top:W,left:V,width:le,height:be}=N;const ge=`translate(${V}px,${W}px)`;return{transform:ge,WebkitTransform:ge,MozTransform:ge,msTransform:ge,OTransform:ge,width:`${le}px`,height:`${be}px`,position:"absolute"}}function ye(N){let{top:W,left:V,width:le,height:be}=N;return{top:`${W}px`,left:`${V}px`,width:`${le}px`,height:`${be}px`,position:"absolute"}}function pe(N,W){return W==="horizontal"?Te(N):W==="vertical"?Oe(N):N}function Oe(N){return N.slice(0).sort(function(W,V){return W.y>V.y||W.y===V.y&&W.x>V.x?1:W.y===V.y&&W.x===V.x?0:-1})}function Te(N){return N.slice(0).sort(function(W,V){return W.x>V.x||W.x===V.x&&W.y>V.y?1:-1})}function ve(N,W,V,le,be){N=N||[];const ge=[];t.default.Children.forEach(W,he=>{if((he==null?void 0:he.key)==null)return;const we=g(N,String(he.key)),Ne=he.props["data-grid"];we&&Ne==null?ge.push(f(we)):Ne?(i||ee([Ne],"ReactGridLayout.children"),ge.push(f({...Ne,i:he.key}))):ge.push(f({w:1,h:1,x:0,y:s(ge),i:String(he.key)}))});const te=v(ge,{cols:V});return be?te:R(te,le,V)}function ee(N){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const V=["x","y","w","h"];if(!Array.isArray(N))throw new Error(W+" must be an array!");for(let le=0,be=N.length;le<be;le++){const ge=N[le];for(let te=0;te<V.length;te++){const he=V[te],we=ge[he];if(typeof we!="number"||Number.isNaN(we))throw new Error(`ReactGridLayout: ${W}[${le}].${he} must be a number! Received: ${we} (${typeof we})`)}if(typeof ge.i<"u"&&typeof ge.i!="string")throw new Error(`ReactGridLayout: ${W}[${le}].i must be a string! Received: ${ge.i} (${typeof ge.i})`)}}function ce(N){const{verticalCompact:W,compactType:V}=N||{};return W===!1?null:V}function Ee(){}const Re=()=>{};return qe.noop=Re,qe}var pr={},_m;function _f(){if(_m)return pr;_m=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.calcGridColWidth=e,pr.calcGridItemPosition=n,pr.calcGridItemWHPx=t,pr.calcWH=s,pr.calcXY=i,pr.clamp=a;function e(u){const{margin:c,containerPadding:f,containerWidth:p,cols:h}=u;return(p-c[0]*(h-1)-f[0]*2)/h}function t(u,c,f){return Number.isFinite(u)?Math.round(c*u+Math.max(0,u-1)*f):u}function n(u,c,f,p,h,S){const{margin:R,containerPadding:w,rowHeight:C}=u,y=e(u),v={};return S&&S.resizing?(v.width=Math.round(S.resizing.width),v.height=Math.round(S.resizing.height)):(v.width=t(p,y,R[0]),v.height=t(h,C,R[1])),S&&S.dragging?(v.top=Math.round(S.dragging.top),v.left=Math.round(S.dragging.left)):S&&S.resizing&&typeof S.resizing.top=="number"&&typeof S.resizing.left=="number"?(v.top=Math.round(S.resizing.top),v.left=Math.round(S.resizing.left)):(v.top=Math.round((C+R[1])*f+w[1]),v.left=Math.round((y+R[0])*c+w[0])),v}function i(u,c,f,p,h){const{margin:S,containerPadding:R,cols:w,rowHeight:C,maxRows:y}=u,v=e(u);let g=Math.round((f-R[0])/(v+S[0])),m=Math.round((c-R[1])/(C+S[1]));return g=a(g,0,w-p),m=a(m,0,y-h),{x:g,y:m}}function s(u,c,f,p,h,S){const{margin:R,maxRows:w,cols:C,rowHeight:y}=u,v=e(u);let g=Math.round((c+R[0])/(v+R[0])),m=Math.round((f+R[1])/(y+R[1])),x=a(g,0,C-p),E=a(m,0,w-h);return["sw","w","nw"].indexOf(S)!==-1&&(x=a(g,0,C)),["nw","n","ne"].indexOf(S)!==-1&&(E=a(m,0,w)),{w:x,h:E}}function a(u,c,f){return Math.max(Math.min(u,f),c)}return pr}var Wo={},Bo={exports:{}},gc={};function Ky(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ky(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function Rm(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Ky(e))&&(i&&(i+=" "),i+=t);return i}const SP=Object.freeze(Object.defineProperty({__proto__:null,clsx:Rm,default:Rm},Symbol.toStringTag,{value:"Module"})),EP=Mg(SP);var wt={},Pr={},Dm;function Pu(){if(Dm)return Pr;Dm=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.dontSetMe=s,Pr.findInArray=e,Pr.int=i,Pr.isFunction=t,Pr.isNum=n;function e(a,u){for(let c=0,f=a.length;c<f;c++)if(u.apply(u,[a[c],c,a]))return a[c]}function t(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Function]"}function n(a){return typeof a=="number"&&!isNaN(a)}function i(a){return parseInt(a,10)}function s(a,u,c){if(a[u])return new Error("Invalid prop ".concat(u," passed to ").concat(c," - do not set this, set it on the child."))}return Pr}var Ir={},Mm;function OP(){if(Mm)return Ir;Mm=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.browserPrefixToKey=n,Ir.browserPrefixToStyle=i,Ir.default=void 0,Ir.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var a;let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const c=(a=window.document)===null||a===void 0||(a=a.documentElement)===null||a===void 0?void 0:a.style;if(!c||u in c)return"";for(let f=0;f<e.length;f++)if(n(u,e[f])in c)return e[f];return""}function n(a,u){return u?"".concat(u).concat(s(a)):a}function i(a,u){return u?"-".concat(u.toLowerCase(),"-").concat(a):a}function s(a){let u="",c=!0;for(let f=0;f<a.length;f++)c?(u+=a[f].toUpperCase(),c=!1):a[f]==="-"?c=!0:u+=a[f];return u}return Ir.default=t(),Ir}var Pm;function Rf(){if(Pm)return wt;Pm=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.addClassName=T,wt.addEvent=c,wt.addUserSelectStyles=x,wt.createCSSTransform=C,wt.createSVGTransform=y,wt.getTouch=g,wt.getTouchIdentifier=m,wt.getTranslation=v,wt.innerHeight=S,wt.innerWidth=R,wt.matchesSelector=a,wt.matchesSelectorAndParentsTo=u,wt.offsetXYFromParent=w,wt.outerHeight=p,wt.outerWidth=h,wt.removeClassName=P,wt.removeEvent=f,wt.removeUserSelectStyles=E;var e=Pu(),t=i(OP());function n(D){if(typeof WeakMap!="function")return null;var A=new WeakMap,z=new WeakMap;return(n=function(K){return K?z:A})(D)}function i(D,A){if(D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var z=n(A);if(z&&z.has(D))return z.get(D);var K={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in D)if(_!=="default"&&Object.prototype.hasOwnProperty.call(D,_)){var j=Z?Object.getOwnPropertyDescriptor(D,_):null;j&&(j.get||j.set)?Object.defineProperty(K,_,j):K[_]=D[_]}return K.default=D,z&&z.set(D,K),K}let s="";function a(D,A){return s||(s=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(z){return(0,e.isFunction)(D[z])})),(0,e.isFunction)(D[s])?D[s](A):!1}function u(D,A,z){let K=D;do{if(a(K,A))return!0;if(K===z)return!1;K=K.parentNode}while(K);return!1}function c(D,A,z,K){if(!D)return;const Z={capture:!0,...K};D.addEventListener?D.addEventListener(A,z,Z):D.attachEvent?D.attachEvent("on"+A,z):D["on"+A]=z}function f(D,A,z,K){if(!D)return;const Z={capture:!0,...K};D.removeEventListener?D.removeEventListener(A,z,Z):D.detachEvent?D.detachEvent("on"+A,z):D["on"+A]=null}function p(D){let A=D.clientHeight;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A+=(0,e.int)(z.borderTopWidth),A+=(0,e.int)(z.borderBottomWidth),A}function h(D){let A=D.clientWidth;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A+=(0,e.int)(z.borderLeftWidth),A+=(0,e.int)(z.borderRightWidth),A}function S(D){let A=D.clientHeight;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A-=(0,e.int)(z.paddingTop),A-=(0,e.int)(z.paddingBottom),A}function R(D){let A=D.clientWidth;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A-=(0,e.int)(z.paddingLeft),A-=(0,e.int)(z.paddingRight),A}function w(D,A,z){const Z=A===A.ownerDocument.body?{left:0,top:0}:A.getBoundingClientRect(),_=(D.clientX+A.scrollLeft-Z.left)/z,j=(D.clientY+A.scrollTop-Z.top)/z;return{x:_,y:j}}function C(D,A){const z=v(D,A,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:z}}function y(D,A){return v(D,A,"")}function v(D,A,z){let{x:K,y:Z}=D,_="translate(".concat(K).concat(z,",").concat(Z).concat(z,")");if(A){const j="".concat(typeof A.x=="string"?A.x:A.x+z),B="".concat(typeof A.y=="string"?A.y:A.y+z);_="translate(".concat(j,", ").concat(B,")")+_}return _}function g(D,A){return D.targetTouches&&(0,e.findInArray)(D.targetTouches,z=>A===z.identifier)||D.changedTouches&&(0,e.findInArray)(D.changedTouches,z=>A===z.identifier)}function m(D){if(D.targetTouches&&D.targetTouches[0])return D.targetTouches[0].identifier;if(D.changedTouches&&D.changedTouches[0])return D.changedTouches[0].identifier}function x(D){if(!D)return;let A=D.getElementById("react-draggable-style-el");A||(A=D.createElement("style"),A.type="text/css",A.id="react-draggable-style-el",A.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
218
|
+
`,A.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
219
|
+
`,D.getElementsByTagName("head")[0].appendChild(A)),D.body&&T(D.body,"react-draggable-transparent-selection")}function E(D){if(D)try{if(D.body&&P(D.body,"react-draggable-transparent-selection"),D.selection)D.selection.empty();else{const A=(D.defaultView||window).getSelection();A&&A.type!=="Caret"&&A.removeAllRanges()}}catch{}}function T(D,A){D.classList?D.classList.add(A):D.className.match(new RegExp("(?:^|\\s)".concat(A,"(?!\\S)")))||(D.className+=" ".concat(A))}function P(D,A){D.classList?D.classList.remove(A):D.className=D.className.replace(new RegExp("(?:^|\\s)".concat(A,"(?!\\S)"),"g"),"")}return wt}var Gn={},Im;function Jy(){if(Im)return Gn;Im=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.canDragX=s,Gn.canDragY=a,Gn.createCoreData=c,Gn.createDraggableData=f,Gn.getBoundPosition=n,Gn.getControlPosition=u,Gn.snapToGrid=i;var e=Pu(),t=Rf();function n(S,R,w){if(!S.props.bounds)return[R,w];let{bounds:C}=S.props;C=typeof C=="string"?C:p(C);const y=h(S);if(typeof C=="string"){const{ownerDocument:v}=y,g=v.defaultView;let m;if(C==="parent"?m=y.parentNode:m=v.querySelector(C),!(m instanceof g.HTMLElement))throw new Error('Bounds selector "'+C+'" could not find an element.');const x=m,E=g.getComputedStyle(y),T=g.getComputedStyle(x);C={left:-y.offsetLeft+(0,e.int)(T.paddingLeft)+(0,e.int)(E.marginLeft),top:-y.offsetTop+(0,e.int)(T.paddingTop)+(0,e.int)(E.marginTop),right:(0,t.innerWidth)(x)-(0,t.outerWidth)(y)-y.offsetLeft+(0,e.int)(T.paddingRight)-(0,e.int)(E.marginRight),bottom:(0,t.innerHeight)(x)-(0,t.outerHeight)(y)-y.offsetTop+(0,e.int)(T.paddingBottom)-(0,e.int)(E.marginBottom)}}return(0,e.isNum)(C.right)&&(R=Math.min(R,C.right)),(0,e.isNum)(C.bottom)&&(w=Math.min(w,C.bottom)),(0,e.isNum)(C.left)&&(R=Math.max(R,C.left)),(0,e.isNum)(C.top)&&(w=Math.max(w,C.top)),[R,w]}function i(S,R,w){const C=Math.round(R/S[0])*S[0],y=Math.round(w/S[1])*S[1];return[C,y]}function s(S){return S.props.axis==="both"||S.props.axis==="x"}function a(S){return S.props.axis==="both"||S.props.axis==="y"}function u(S,R,w){const C=typeof R=="number"?(0,t.getTouch)(S,R):null;if(typeof R=="number"&&!C)return null;const y=h(w),v=w.props.offsetParent||y.offsetParent||y.ownerDocument.body;return(0,t.offsetXYFromParent)(C||S,v,w.props.scale)}function c(S,R,w){const C=!(0,e.isNum)(S.lastX),y=h(S);return C?{node:y,deltaX:0,deltaY:0,lastX:R,lastY:w,x:R,y:w}:{node:y,deltaX:R-S.lastX,deltaY:w-S.lastY,lastX:S.lastX,lastY:S.lastY,x:R,y:w}}function f(S,R){const w=S.props.scale;return{node:R.node,x:S.state.x+R.deltaX/w,y:S.state.y+R.deltaY/w,deltaX:R.deltaX/w,deltaY:R.deltaY/w,lastX:S.state.x,lastY:S.state.y}}function p(S){return{left:S.left,top:S.top,right:S.right,bottom:S.bottom}}function h(S){const R=S.findDOMNode();if(!R)throw new Error("<DraggableCore>: Unmounted during event!");return R}return Gn}var Uo={},Ia={},Nm;function Qy(){if(Nm)return Ia;Nm=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.default=e;function e(){}return Ia}var Am;function TP(){if(Am)return Uo;Am=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=void 0;var e=p(Y),t=c(wr()),n=c(ci),i=Rf(),s=Jy(),a=Pu(),u=c(Qy());function c(v){return v&&v.__esModule?v:{default:v}}function f(v){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(f=function(x){return x?m:g})(v)}function p(v,g){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var m=f(g);if(m&&m.has(v))return m.get(v);var x={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in v)if(T!=="default"&&Object.prototype.hasOwnProperty.call(v,T)){var P=E?Object.getOwnPropertyDescriptor(v,T):null;P&&(P.get||P.set)?Object.defineProperty(x,T,P):x[T]=v[T]}return x.default=v,m&&m.set(v,x),x}function h(v,g,m){return g=S(g),g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function S(v){var g=R(v,"string");return typeof g=="symbol"?g:String(g)}function R(v,g){if(typeof v!="object"||v===null)return v;var m=v[Symbol.toPrimitive];if(m!==void 0){var x=m.call(v,g);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(v)}const w={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let C=w.mouse,y=class extends e.Component{constructor(){super(...arguments),h(this,"dragging",!1),h(this,"lastX",NaN),h(this,"lastY",NaN),h(this,"touchIdentifier",null),h(this,"mounted",!1),h(this,"handleDragStart",g=>{if(this.props.onMouseDown(g),!this.props.allowAnyClick&&typeof g.button=="number"&&g.button!==0)return!1;const m=this.findDOMNode();if(!m||!m.ownerDocument||!m.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:x}=m;if(this.props.disabled||!(g.target instanceof x.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(g.target,this.props.handle,m)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(g.target,this.props.cancel,m))return;g.type==="touchstart"&&g.preventDefault();const E=(0,i.getTouchIdentifier)(g);this.touchIdentifier=E;const T=(0,s.getControlPosition)(g,E,this);if(T==null)return;const{x:P,y:D}=T,A=(0,s.createCoreData)(this,P,D);(0,u.default)("DraggableCore: handleDragStart: %j",A),(0,u.default)("calling",this.props.onStart),!(this.props.onStart(g,A)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(x),this.dragging=!0,this.lastX=P,this.lastY=D,(0,i.addEvent)(x,C.move,this.handleDrag),(0,i.addEvent)(x,C.stop,this.handleDragStop))}),h(this,"handleDrag",g=>{const m=(0,s.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x,y:E}=m;if(Array.isArray(this.props.grid)){let D=x-this.lastX,A=E-this.lastY;if([D,A]=(0,s.snapToGrid)(this.props.grid,D,A),!D&&!A)return;x=this.lastX+D,E=this.lastY+A}const T=(0,s.createCoreData)(this,x,E);if((0,u.default)("DraggableCore: handleDrag: %j",T),this.props.onDrag(g,T)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const A=document.createEvent("MouseEvents");A.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(A)}return}this.lastX=x,this.lastY=E}),h(this,"handleDragStop",g=>{if(!this.dragging)return;const m=(0,s.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x,y:E}=m;if(Array.isArray(this.props.grid)){let A=x-this.lastX||0,z=E-this.lastY||0;[A,z]=(0,s.snapToGrid)(this.props.grid,A,z),x=this.lastX+A,E=this.lastY+z}const T=(0,s.createCoreData)(this,x,E);if(this.props.onStop(g,T)===!1||this.mounted===!1)return!1;const D=this.findDOMNode();D&&this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(D.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",T),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,D&&((0,u.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(D.ownerDocument,C.move,this.handleDrag),(0,i.removeEvent)(D.ownerDocument,C.stop,this.handleDragStop))}),h(this,"onMouseDown",g=>(C=w.mouse,this.handleDragStart(g))),h(this,"onMouseUp",g=>(C=w.mouse,this.handleDragStop(g))),h(this,"onTouchStart",g=>(C=w.touch,this.handleDragStart(g))),h(this,"onTouchEnd",g=>(C=w.touch,this.handleDragStop(g)))}componentDidMount(){this.mounted=!0;const g=this.findDOMNode();g&&(0,i.addEvent)(g,w.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const g=this.findDOMNode();if(g){const{ownerDocument:m}=g;(0,i.removeEvent)(m,w.mouse.move,this.handleDrag),(0,i.removeEvent)(m,w.touch.move,this.handleDrag),(0,i.removeEvent)(m,w.mouse.stop,this.handleDragStop),(0,i.removeEvent)(m,w.touch.stop,this.handleDragStop),(0,i.removeEvent)(g,w.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(m)}}findDOMNode(){var g,m;return(g=this.props)!==null&&g!==void 0&&g.nodeRef?(m=this.props)===null||m===void 0||(m=m.nodeRef)===null||m===void 0?void 0:m.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Uo.default=y,h(y,"displayName","DraggableCore"),h(y,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(v,g){if(v[g]&&v[g].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(y,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Uo}var km;function CP(){return km||(km=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),e.default=void 0;var t=R(Y),n=h(wr()),i=h(ci),s=h(EP),a=Rf(),u=Jy(),c=Pu(),f=h(TP()),p=h(Qy());function h(m){return m&&m.__esModule?m:{default:m}}function S(m){if(typeof WeakMap!="function")return null;var x=new WeakMap,E=new WeakMap;return(S=function(T){return T?E:x})(m)}function R(m,x){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var E=S(x);if(E&&E.has(m))return E.get(m);var T={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in m)if(D!=="default"&&Object.prototype.hasOwnProperty.call(m,D)){var A=P?Object.getOwnPropertyDescriptor(m,D):null;A&&(A.get||A.set)?Object.defineProperty(T,D,A):T[D]=m[D]}return T.default=m,E&&E.set(m,T),T}function w(){return w=Object.assign?Object.assign.bind():function(m){for(var x=1;x<arguments.length;x++){var E=arguments[x];for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&(m[T]=E[T])}return m},w.apply(this,arguments)}function C(m,x,E){return x=y(x),x in m?Object.defineProperty(m,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[x]=E,m}function y(m){var x=v(m,"string");return typeof x=="symbol"?x:String(x)}function v(m,x){if(typeof m!="object"||m===null)return m;var E=m[Symbol.toPrimitive];if(E!==void 0){var T=E.call(m,x);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(m)}class g extends t.Component{static getDerivedStateFromProps(x,E){let{position:T}=x,{prevPropsPosition:P}=E;return T&&(!P||T.x!==P.x||T.y!==P.y)?((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:T,prevPropsPosition:P}),{x:T.x,y:T.y,prevPropsPosition:{...T}}):null}constructor(x){super(x),C(this,"onDragStart",(E,T)=>{if((0,p.default)("Draggable: onDragStart: %j",T),this.props.onStart(E,(0,u.createDraggableData)(this,T))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),C(this,"onDrag",(E,T)=>{if(!this.state.dragging)return!1;(0,p.default)("Draggable: onDrag: %j",T);const P=(0,u.createDraggableData)(this,T),D={x:P.x,y:P.y,slackX:0,slackY:0};if(this.props.bounds){const{x:z,y:K}=D;D.x+=this.state.slackX,D.y+=this.state.slackY;const[Z,_]=(0,u.getBoundPosition)(this,D.x,D.y);D.x=Z,D.y=_,D.slackX=this.state.slackX+(z-D.x),D.slackY=this.state.slackY+(K-D.y),P.x=D.x,P.y=D.y,P.deltaX=D.x-this.state.x,P.deltaY=D.y-this.state.y}if(this.props.onDrag(E,P)===!1)return!1;this.setState(D)}),C(this,"onDragStop",(E,T)=>{if(!this.state.dragging||this.props.onStop(E,(0,u.createDraggableData)(this,T))===!1)return!1;(0,p.default)("Draggable: onDragStop: %j",T);const D={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:z,y:K}=this.props.position;D.x=z,D.y=K}this.setState(D)}),this.state={dragging:!1,dragged:!1,x:x.position?x.position.x:x.defaultPosition.x,y:x.position?x.position.y:x.defaultPosition.y,prevPropsPosition:{...x.position},slackX:0,slackY:0,isElementSVG:!1},x.position&&!(x.onDrag||x.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var x,E;return(x=(E=this.props)===null||E===void 0||(E=E.nodeRef)===null||E===void 0?void 0:E.current)!==null&&x!==void 0?x:i.default.findDOMNode(this)}render(){const{axis:x,bounds:E,children:T,defaultPosition:P,defaultClassName:D,defaultClassNameDragging:A,defaultClassNameDragged:z,position:K,positionOffset:Z,scale:_,...j}=this.props;let B={},J=null;const X=!!!K||this.state.dragging,fe=K||P,ae={x:(0,u.canDragX)(this)&&X?this.state.x:fe.x,y:(0,u.canDragY)(this)&&X?this.state.y:fe.y};this.state.isElementSVG?J=(0,a.createSVGTransform)(ae,Z):B=(0,a.createCSSTransform)(ae,Z);const G=(0,s.default)(T.props.className||"",D,{[A]:this.state.dragging,[z]:this.state.dragged});return t.createElement(f.default,w({},j,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(T),{className:G,style:{...T.props.style,...B},transform:J}))}}e.default=g,C(g,"displayName","Draggable"),C(g,"propTypes",{...f.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),C(g,"defaultProps",{...f.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(gc)),gc}var $m;function Df(){if($m)return Bo.exports;$m=1;const{default:e,DraggableCore:t}=CP();return Bo.exports=e,Bo.exports.default=e,Bo.exports.DraggableCore=t,Bo.exports}var jo={exports:{}},Ho={},Na={},Lm;function _P(){if(Lm)return Na;Lm=1,Na.__esModule=!0,Na.cloneElement=c;var e=t(Y);function t(f){return f&&f.__esModule?f:{default:f}}function n(f,p){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(f);p&&(S=S.filter(function(R){return Object.getOwnPropertyDescriptor(f,R).enumerable})),h.push.apply(h,S)}return h}function i(f){for(var p=1;p<arguments.length;p++){var h=arguments[p]!=null?arguments[p]:{};p%2?n(Object(h),!0).forEach(function(S){s(f,S,h[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):n(Object(h)).forEach(function(S){Object.defineProperty(f,S,Object.getOwnPropertyDescriptor(h,S))})}return f}function s(f,p,h){return p=a(p),p in f?Object.defineProperty(f,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[p]=h,f}function a(f){var p=u(f,"string");return typeof p=="symbol"?p:String(p)}function u(f,p){if(typeof f!="object"||f===null)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var S=h.call(f,p);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(f)}function c(f,p){return p.style&&f.props.style&&(p.style=i(i({},f.props.style),p.style)),p.className&&f.props.className&&(p.className=f.props.className+" "+p.className),e.default.cloneElement(f,p)}return Na}var qo={},zm;function ev(){if(zm)return qo;zm=1,qo.__esModule=!0,qo.resizableProps=void 0;var e=t(wr());Df();function t(i){return i&&i.__esModule?i:{default:i}}var n={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];var c=a[0];if(c.axis==="both"||c.axis==="y"){var f;return(f=e.default.number).isRequired.apply(f,a)}return e.default.number.apply(e.default,a)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];var c=a[0];if(c.axis==="both"||c.axis==="x"){var f;return(f=e.default.number).isRequired.apply(f,a)}return e.default.number.apply(e.default,a)}};return qo.resizableProps=n,qo}var Fm;function tv(){if(Fm)return Ho;Fm=1,Ho.__esModule=!0,Ho.default=void 0;var e=u(Y),t=Df(),n=_P(),i=ev(),s=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(g){if(typeof WeakMap!="function")return null;var m=new WeakMap,x=new WeakMap;return(a=function(T){return T?x:m})(g)}function u(g,m){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var x=a(m);if(x&&x.has(g))return x.get(g);var E={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in g)if(P!=="default"&&Object.prototype.hasOwnProperty.call(g,P)){var D=T?Object.getOwnPropertyDescriptor(g,P):null;D&&(D.get||D.set)?Object.defineProperty(E,P,D):E[P]=g[P]}return E.default=g,x&&x.set(g,E),E}function c(){return c=Object.assign?Object.assign.bind():function(g){for(var m=1;m<arguments.length;m++){var x=arguments[m];for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(g[E]=x[E])}return g},c.apply(this,arguments)}function f(g,m){if(g==null)return{};var x={},E=Object.keys(g),T,P;for(P=0;P<E.length;P++)T=E[P],!(m.indexOf(T)>=0)&&(x[T]=g[T]);return x}function p(g,m){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(g);m&&(E=E.filter(function(T){return Object.getOwnPropertyDescriptor(g,T).enumerable})),x.push.apply(x,E)}return x}function h(g){for(var m=1;m<arguments.length;m++){var x=arguments[m]!=null?arguments[m]:{};m%2?p(Object(x),!0).forEach(function(E){S(g,E,x[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(x)):p(Object(x)).forEach(function(E){Object.defineProperty(g,E,Object.getOwnPropertyDescriptor(x,E))})}return g}function S(g,m,x){return m=R(m),m in g?Object.defineProperty(g,m,{value:x,enumerable:!0,configurable:!0,writable:!0}):g[m]=x,g}function R(g){var m=w(g,"string");return typeof m=="symbol"?m:String(m)}function w(g,m){if(typeof g!="object"||g===null)return g;var x=g[Symbol.toPrimitive];if(x!==void 0){var E=x.call(g,m);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}function C(g,m){g.prototype=Object.create(m.prototype),g.prototype.constructor=g,y(g,m)}function y(g,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,T){return E.__proto__=T,E},y(g,m)}var v=function(g){C(m,g);function m(){for(var E,T=arguments.length,P=new Array(T),D=0;D<T;D++)P[D]=arguments[D];return E=g.call.apply(g,[this].concat(P))||this,E.handleRefs={},E.lastHandleRect=null,E.slack=null,E}var x=m.prototype;return x.componentWillUnmount=function(){this.resetData()},x.resetData=function(){this.lastHandleRect=this.slack=null},x.runConstraints=function(T,P){var D=this.props,A=D.minConstraints,z=D.maxConstraints,K=D.lockAspectRatio;if(!A&&!z&&!K)return[T,P];if(K){var Z=this.props.width/this.props.height,_=T-this.props.width,j=P-this.props.height;Math.abs(_)>Math.abs(j*Z)?P=T/Z:T=P*Z}var B=T,J=P,H=this.slack||[0,0],X=H[0],fe=H[1];return T+=X,P+=fe,A&&(T=Math.max(A[0],T),P=Math.max(A[1],P)),z&&(T=Math.min(z[0],T),P=Math.min(z[1],P)),this.slack=[X+(B-T),fe+(J-P)],[T,P]},x.resizeHandler=function(T,P){var D=this;return function(A,z){var K=z.node,Z=z.deltaX,_=z.deltaY;T==="onResizeStart"&&D.resetData();var j=(D.props.axis==="both"||D.props.axis==="x")&&P!=="n"&&P!=="s",B=(D.props.axis==="both"||D.props.axis==="y")&&P!=="e"&&P!=="w";if(!(!j&&!B)){var J=P[0],H=P[P.length-1],X=K.getBoundingClientRect();if(D.lastHandleRect!=null){if(H==="w"){var fe=X.left-D.lastHandleRect.left;Z+=fe}if(J==="n"){var ae=X.top-D.lastHandleRect.top;_+=ae}}D.lastHandleRect=X,H==="w"&&(Z=-Z),J==="n"&&(_=-_);var G=D.props.width+(j?Z/D.props.transformScale:0),$=D.props.height+(B?_/D.props.transformScale:0),ue=D.runConstraints(G,$);G=ue[0],$=ue[1];var ye=G!==D.props.width||$!==D.props.height,pe=typeof D.props[T]=="function"?D.props[T]:null,Oe=T==="onResize"&&!ye;pe&&!Oe&&(A.persist==null||A.persist(),pe(A,{node:K,size:{width:G,height:$},handle:P})),T==="onResizeStop"&&D.resetData()}}},x.renderResizeHandle=function(T,P){var D=this.props.handle;if(!D)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+T,ref:P});if(typeof D=="function")return D(T,P);var A=typeof D.type=="string",z=h({ref:P},A?{}:{handleAxis:T});return e.cloneElement(D,z)},x.render=function(){var T=this,P=this.props,D=P.children,A=P.className,z=P.draggableOpts;P.width,P.height,P.handle,P.handleSize,P.lockAspectRatio,P.axis,P.minConstraints,P.maxConstraints,P.onResize,P.onResizeStop,P.onResizeStart;var K=P.resizeHandles;P.transformScale;var Z=f(P,s);return(0,n.cloneElement)(D,h(h({},Z),{},{className:(A?A+" ":"")+"react-resizable",children:[].concat(D.props.children,K.map(function(_){var j,B=(j=T.handleRefs[_])!=null?j:T.handleRefs[_]=e.createRef();return e.createElement(t.DraggableCore,c({},z,{nodeRef:B,key:"resizableHandle-"+_,onStop:T.resizeHandler("onResizeStop",_),onStart:T.resizeHandler("onResizeStart",_),onDrag:T.resizeHandler("onResize",_)}),T.renderResizeHandle(_,B))}))}))},m}(e.Component);return Ho.default=v,v.propTypes=i.resizableProps,v.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Ho}var Vo={},Wm;function RP(){if(Wm)return Vo;Wm=1,Vo.__esModule=!0,Vo.default=void 0;var e=c(Y),t=a(wr()),n=a(tv()),i=ev(),s=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function a(m){return m&&m.__esModule?m:{default:m}}function u(m){if(typeof WeakMap!="function")return null;var x=new WeakMap,E=new WeakMap;return(u=function(P){return P?E:x})(m)}function c(m,x){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var E=u(x);if(E&&E.has(m))return E.get(m);var T={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in m)if(D!=="default"&&Object.prototype.hasOwnProperty.call(m,D)){var A=P?Object.getOwnPropertyDescriptor(m,D):null;A&&(A.get||A.set)?Object.defineProperty(T,D,A):T[D]=m[D]}return T.default=m,E&&E.set(m,T),T}function f(){return f=Object.assign?Object.assign.bind():function(m){for(var x=1;x<arguments.length;x++){var E=arguments[x];for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&(m[T]=E[T])}return m},f.apply(this,arguments)}function p(m,x){var E=Object.keys(m);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(m);x&&(T=T.filter(function(P){return Object.getOwnPropertyDescriptor(m,P).enumerable})),E.push.apply(E,T)}return E}function h(m){for(var x=1;x<arguments.length;x++){var E=arguments[x]!=null?arguments[x]:{};x%2?p(Object(E),!0).forEach(function(T){S(m,T,E[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(E)):p(Object(E)).forEach(function(T){Object.defineProperty(m,T,Object.getOwnPropertyDescriptor(E,T))})}return m}function S(m,x,E){return x=R(x),x in m?Object.defineProperty(m,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[x]=E,m}function R(m){var x=w(m,"string");return typeof x=="symbol"?x:String(x)}function w(m,x){if(typeof m!="object"||m===null)return m;var E=m[Symbol.toPrimitive];if(E!==void 0){var T=E.call(m,x);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(m)}function C(m,x){if(m==null)return{};var E={},T=Object.keys(m),P,D;for(D=0;D<T.length;D++)P=T[D],!(x.indexOf(P)>=0)&&(E[P]=m[P]);return E}function y(m,x){m.prototype=Object.create(x.prototype),m.prototype.constructor=m,v(m,x)}function v(m,x){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,P){return T.__proto__=P,T},v(m,x)}var g=function(m){y(x,m);function x(){for(var T,P=arguments.length,D=new Array(P),A=0;A<P;A++)D[A]=arguments[A];return T=m.call.apply(m,[this].concat(D))||this,T.state={width:T.props.width,height:T.props.height,propsWidth:T.props.width,propsHeight:T.props.height},T.onResize=function(z,K){var Z=K.size;T.props.onResize?(z.persist==null||z.persist(),T.setState(Z,function(){return T.props.onResize&&T.props.onResize(z,K)})):T.setState(Z)},T}x.getDerivedStateFromProps=function(P,D){return D.propsWidth!==P.width||D.propsHeight!==P.height?{width:P.width,height:P.height,propsWidth:P.width,propsHeight:P.height}:null};var E=x.prototype;return E.render=function(){var P=this.props,D=P.handle,A=P.handleSize;P.onResize;var z=P.onResizeStart,K=P.onResizeStop,Z=P.draggableOpts,_=P.minConstraints,j=P.maxConstraints,B=P.lockAspectRatio,J=P.axis;P.width,P.height;var H=P.resizeHandles,X=P.style,fe=P.transformScale,ae=C(P,s);return e.createElement(n.default,{axis:J,draggableOpts:Z,handle:D,handleSize:A,height:this.state.height,lockAspectRatio:B,maxConstraints:j,minConstraints:_,onResizeStart:z,onResize:this.onResize,onResizeStop:K,resizeHandles:H,transformScale:fe,width:this.state.width},e.createElement("div",f({},ae,{style:h(h({},X),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},x}(e.Component);return Vo.default=g,g.propTypes=h(h({},i.resizableProps),{},{children:t.default.element}),Vo}var Bm;function DP(){return Bm||(Bm=1,jo.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},jo.exports.Resizable=tv().default,jo.exports.ResizableBox=RP().default),jo.exports}var hr={},Um;function nv(){if(Um)return hr;Um=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.resizeHandleType=hr.resizeHandleAxesType=hr.default=void 0;var e=n(wr()),t=n(Y);function n(a){return a&&a.__esModule?a:{default:a}}const i=hr.resizeHandleAxesType=e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),s=hr.resizeHandleType=e.default.oneOfType([e.default.node,e.default.func]);return hr.default={className:e.default.string,style:e.default.object,width:e.default.number,autoSize:e.default.bool,cols:e.default.number,draggableCancel:e.default.string,draggableHandle:e.default.string,verticalCompact:function(a){a.verticalCompact===!1&&process.env.NODE_ENV!=="production"&&console.warn('`verticalCompact` on <ReactGridLayout> is deprecated and will be removed soon. Use `compactType`: "horizontal" | "vertical" | null.')},compactType:e.default.oneOf(["vertical","horizontal"]),layout:function(a){var u=a.layout;u!==void 0&&co().validateLayout(u,"layout")},margin:e.default.arrayOf(e.default.number),containerPadding:e.default.arrayOf(e.default.number),rowHeight:e.default.number,maxRows:e.default.number,isBounded:e.default.bool,isDraggable:e.default.bool,isResizable:e.default.bool,allowOverlap:e.default.bool,preventCollision:e.default.bool,useCSSTransforms:e.default.bool,transformScale:e.default.number,isDroppable:e.default.bool,resizeHandles:i,resizeHandle:s,onLayoutChange:e.default.func,onDragStart:e.default.func,onDrag:e.default.func,onDragStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,onResizeStop:e.default.func,onDrop:e.default.func,droppingItem:e.default.shape({i:e.default.string.isRequired,w:e.default.number.isRequired,h:e.default.number.isRequired}),children:function(a,u){const c=a[u],f={};t.default.Children.forEach(c,function(p){if((p==null?void 0:p.key)!=null){if(f[p.key])throw new Error('Duplicate child key "'+p.key+'" found! This will cause problems in ReactGridLayout.');f[p.key]=!0}})},innerRef:e.default.any},hr}var jm;function MP(){if(jm)return Wo;jm=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.default=void 0;var e=f(Y),t=f(wr()),n=Df(),i=DP(),s=co(),a=_f(),u=nv(),c=f(Cf());function f(w){return w&&w.__esModule?w:{default:w}}function p(w,C,y){return C=h(C),C in w?Object.defineProperty(w,C,{value:y,enumerable:!0,configurable:!0,writable:!0}):w[C]=y,w}function h(w){var C=S(w,"string");return typeof C=="symbol"?C:String(C)}function S(w,C){if(typeof w!="object"||w===null)return w;var y=w[Symbol.toPrimitive];if(y!==void 0){var v=y.call(w,C);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(w)}let R=class extends e.default.Component{constructor(){super(...arguments),p(this,"state",{resizing:null,dragging:null,className:""}),p(this,"elementRef",e.default.createRef()),p(this,"onDragStart",(C,y)=>{let{node:v}=y;const{onDragStart:g,transformScale:m}=this.props;if(!g)return;const x={top:0,left:0},{offsetParent:E}=v;if(!E)return;const T=E.getBoundingClientRect(),P=v.getBoundingClientRect(),D=P.left/m,A=T.left/m,z=P.top/m,K=T.top/m;x.left=D-A+E.scrollLeft,x.top=z-K+E.scrollTop,this.setState({dragging:x});const{x:Z,y:_}=(0,a.calcXY)(this.getPositionParams(),x.top,x.left,this.props.w,this.props.h);return g.call(this,this.props.i,Z,_,{e:C,node:v,newPosition:x})}),p(this,"onDrag",(C,y)=>{let{node:v,deltaX:g,deltaY:m}=y;const{onDrag:x}=this.props;if(!x)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let E=this.state.dragging.top+m,T=this.state.dragging.left+g;const{isBounded:P,i:D,w:A,h:z,containerWidth:K}=this.props,Z=this.getPositionParams();if(P){const{offsetParent:J}=v;if(J){const{margin:H,rowHeight:X,containerPadding:fe}=this.props,ae=J.clientHeight-(0,a.calcGridItemWHPx)(z,X,H[1]);E=(0,a.clamp)(E-fe[1],0,ae);const G=(0,a.calcGridColWidth)(Z),$=K-(0,a.calcGridItemWHPx)(A,G,H[0]);T=(0,a.clamp)(T-fe[0],0,$)}}const _={top:E,left:T};this.setState({dragging:_});const{x:j,y:B}=(0,a.calcXY)(Z,E,T,A,z);return x.call(this,D,j,B,{e:C,node:v,newPosition:_})}),p(this,"onDragStop",(C,y)=>{let{node:v}=y;const{onDragStop:g}=this.props;if(!g)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:m,h:x,i:E}=this.props,{left:T,top:P}=this.state.dragging,D={top:P,left:T};this.setState({dragging:null});const{x:A,y:z}=(0,a.calcXY)(this.getPositionParams(),P,T,m,x);return g.call(this,E,A,z,{e:C,node:v,newPosition:D})}),p(this,"onResizeStop",(C,y,v)=>this.onResizeHandler(C,y,v,"onResizeStop")),p(this,"onResizeStart",(C,y,v)=>this.onResizeHandler(C,y,v,"onResizeStart")),p(this,"onResize",(C,y,v)=>this.onResizeHandler(C,y,v,"onResize"))}shouldComponentUpdate(C,y){if(this.props.children!==C.children||this.props.droppingPosition!==C.droppingPosition)return!0;const v=(0,a.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),g=(0,a.calcGridItemPosition)(this.getPositionParams(C),C.x,C.y,C.w,C.h,y);return!(0,s.fastPositionEqual)(v,g)||this.props.useCSSTransforms!==C.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(C){this.moveDroppingItem(C)}moveDroppingItem(C){const{droppingPosition:y}=this.props;if(!y)return;const v=this.elementRef.current;if(!v)return;const g=C.droppingPosition||{left:0,top:0},{dragging:m}=this.state,x=m&&y.left!==g.left||y.top!==g.top;if(!m)this.onDragStart(y.e,{node:v,deltaX:y.left,deltaY:y.top});else if(x){const E=y.left-m.left,T=y.top-m.top;this.onDrag(y.e,{node:v,deltaX:E,deltaY:T})}}getPositionParams(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:C.cols,containerPadding:C.containerPadding,containerWidth:C.containerWidth,margin:C.margin,maxRows:C.maxRows,rowHeight:C.rowHeight}}createStyle(C){const{usePercentages:y,containerWidth:v,useCSSTransforms:g}=this.props;let m;return g?m=(0,s.setTransform)(C):(m=(0,s.setTopLeft)(C),y&&(m.left=(0,s.perc)(C.left/v),m.width=(0,s.perc)(C.width/v))),m}mixinDraggable(C,y){return e.default.createElement(n.DraggableCore,{disabled:!y,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},C)}curryResizeHandler(C,y){return(v,g)=>y(v,g,C)}mixinResizable(C,y,v){const{cols:g,minW:m,minH:x,maxW:E,maxH:T,transformScale:P,resizeHandles:D,resizeHandle:A}=this.props,z=this.getPositionParams(),K=(0,a.calcGridItemPosition)(z,0,0,g,0).width,Z=(0,a.calcGridItemPosition)(z,0,0,m,x),_=(0,a.calcGridItemPosition)(z,0,0,E,T),j=[Z.width,Z.height],B=[Math.min(_.width,K),Math.min(_.height,1/0)];return e.default.createElement(i.Resizable,{draggableOpts:{disabled:!v},className:v?void 0:"react-resizable-hide",width:y.width,height:y.height,minConstraints:j,maxConstraints:B,onResizeStop:this.curryResizeHandler(y,this.onResizeStop),onResizeStart:this.curryResizeHandler(y,this.onResizeStart),onResize:this.curryResizeHandler(y,this.onResize),transformScale:P,resizeHandles:D,handle:A},C)}onResizeHandler(C,y,v,g){let{node:m,size:x,handle:E}=y;const T=this.props[g];if(!T)return;const{x:P,y:D,i:A,maxH:z,minH:K,containerWidth:Z}=this.props,{minW:_,maxW:j}=this.props;let B=x;m&&(B=(0,s.resizeItemInDirection)(E,v,x,Z),this.setState({resizing:g==="onResizeStop"?null:B}));let{w:J,h:H}=(0,a.calcWH)(this.getPositionParams(),B.width,B.height,P,D,E);J=(0,a.clamp)(J,Math.max(_,1),j),H=(0,a.clamp)(H,K,z),T.call(this,A,J,H,{e:C,node:m,size:B,handle:E})}render(){const{x:C,y,w:v,h:g,isDraggable:m,isResizable:x,droppingPosition:E,useCSSTransforms:T}=this.props,P=(0,a.calcGridItemPosition)(this.getPositionParams(),C,y,v,g,this.state),D=e.default.Children.only(this.props.children);let A=e.default.cloneElement(D,{ref:this.elementRef,className:(0,c.default)("react-grid-item",D.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":m,"react-draggable-dragging":!!this.state.dragging,dropping:!!E,cssTransforms:T}),style:{...this.props.style,...D.props.style,...this.createStyle(P)}});return A=this.mixinResizable(A,P,x),A=this.mixinDraggable(A,m),A}};return Wo.default=R,p(R,"propTypes",{children:t.default.element,cols:t.default.number.isRequired,containerWidth:t.default.number.isRequired,rowHeight:t.default.number.isRequired,margin:t.default.array.isRequired,maxRows:t.default.number.isRequired,containerPadding:t.default.array.isRequired,x:t.default.number.isRequired,y:t.default.number.isRequired,w:t.default.number.isRequired,h:t.default.number.isRequired,minW:function(w,C){const y=w[C];if(typeof y!="number")return new Error("minWidth not Number");if(y>w.w||y>w.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(w,C){const y=w[C];if(typeof y!="number")return new Error("maxWidth not Number");if(y<w.w||y<w.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(w,C){const y=w[C];if(typeof y!="number")return new Error("minHeight not Number");if(y>w.h||y>w.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(w,C){const y=w[C];if(typeof y!="number")return new Error("maxHeight not Number");if(y<w.h||y<w.minH)return new Error("maxHeight smaller than item height/minHeight")},i:t.default.string.isRequired,resizeHandles:u.resizeHandleAxesType,resizeHandle:u.resizeHandleType,onDragStop:t.default.func,onDragStart:t.default.func,onDrag:t.default.func,onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,isDraggable:t.default.bool.isRequired,isResizable:t.default.bool.isRequired,isBounded:t.default.bool.isRequired,static:t.default.bool,useCSSTransforms:t.default.bool.isRequired,transformScale:t.default.number,className:t.default.string,handle:t.default.string,cancel:t.default.string,droppingPosition:t.default.shape({e:t.default.object.isRequired,left:t.default.number.isRequired,top:t.default.number.isRequired})}),p(R,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),Wo}var Hm;function rv(){if(Hm)return Fo;Hm=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;var e=p(Y),t=Tf(),n=c(Cf()),i=co(),s=_f(),a=c(MP()),u=c(nv());function c(v){return v&&v.__esModule?v:{default:v}}function f(v){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(f=function(x){return x?m:g})(v)}function p(v,g){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var m=f(g);if(m&&m.has(v))return m.get(v);var x={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in v)if(T!=="default"&&Object.prototype.hasOwnProperty.call(v,T)){var P=E?Object.getOwnPropertyDescriptor(v,T):null;P&&(P.get||P.set)?Object.defineProperty(x,T,P):x[T]=v[T]}return x.default=v,m&&m.set(v,x),x}function h(v,g,m){return g=S(g),g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function S(v){var g=R(v,"string");return typeof g=="symbol"?g:String(g)}function R(v,g){if(typeof v!="object"||v===null)return v;var m=v[Symbol.toPrimitive];if(m!==void 0){var x=m.call(v,g);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(v)}const w="react-grid-layout";let C=!1;try{C=/firefox/i.test(navigator.userAgent)}catch{}class y extends e.Component{constructor(){super(...arguments),h(this,"state",{activeDrag:null,layout:(0,i.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,i.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),h(this,"dragEnterCounter",0),h(this,"onDragStart",(g,m,x,E)=>{let{e:T,node:P}=E;const{layout:D}=this.state,A=(0,i.getLayoutItem)(D,g);if(!A)return;const z={w:A.w,h:A.h,x:A.x,y:A.y,placeholder:!0,i:g};return this.setState({oldDragItem:(0,i.cloneLayoutItem)(A),oldLayout:D,activeDrag:z}),this.props.onDragStart(D,A,A,null,T,P)}),h(this,"onDrag",(g,m,x,E)=>{let{e:T,node:P}=E;const{oldDragItem:D}=this.state;let{layout:A}=this.state;const{cols:z,allowOverlap:K,preventCollision:Z}=this.props,_=(0,i.getLayoutItem)(A,g);if(!_)return;const j={w:_.w,h:_.h,x:_.x,y:_.y,placeholder:!0,i:g};A=(0,i.moveElement)(A,_,m,x,!0,Z,(0,i.compactType)(this.props),z,K),this.props.onDrag(A,D,_,j,T,P),this.setState({layout:K?A:(0,i.compact)(A,(0,i.compactType)(this.props),z),activeDrag:j})}),h(this,"onDragStop",(g,m,x,E)=>{let{e:T,node:P}=E;if(!this.state.activeDrag)return;const{oldDragItem:D}=this.state;let{layout:A}=this.state;const{cols:z,preventCollision:K,allowOverlap:Z}=this.props,_=(0,i.getLayoutItem)(A,g);if(!_)return;A=(0,i.moveElement)(A,_,m,x,!0,K,(0,i.compactType)(this.props),z,Z);const B=Z?A:(0,i.compact)(A,(0,i.compactType)(this.props),z);this.props.onDragStop(B,D,_,null,T,P);const{oldLayout:J}=this.state;this.setState({activeDrag:null,layout:B,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(B,J)}),h(this,"onResizeStart",(g,m,x,E)=>{let{e:T,node:P}=E;const{layout:D}=this.state,A=(0,i.getLayoutItem)(D,g);A&&(this.setState({oldResizeItem:(0,i.cloneLayoutItem)(A),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(D,A,A,null,T,P))}),h(this,"onResize",(g,m,x,E)=>{let{e:T,node:P,size:D,handle:A}=E;const{oldResizeItem:z}=this.state,{layout:K}=this.state,{cols:Z,preventCollision:_,allowOverlap:j}=this.props;let B=!1,J,H,X;const[fe,ae]=(0,i.withLayoutItem)(K,g,$=>{let ue;return H=$.x,X=$.y,["sw","w","nw","n","ne"].indexOf(A)!==-1&&(["sw","nw","w"].indexOf(A)!==-1&&(H=$.x+($.w-m),m=$.x!==H&&H<0?$.w:m,H=H<0?0:H),["ne","n","nw"].indexOf(A)!==-1&&(X=$.y+($.h-x),x=$.y!==X&&X<0?$.h:x,X=X<0?0:X),B=!0),_&&!j&&(ue=(0,i.getAllCollisions)(K,{...$,w:m,h:x,x:H,y:X}).filter(pe=>pe.i!==$.i).length>0,ue&&(X=$.y,x=$.h,H=$.x,m=$.w,B=!1)),$.w=m,$.h=x,$});if(!ae)return;J=fe,B&&(J=(0,i.moveElement)(fe,ae,H,X,!0,this.props.preventCollision,(0,i.compactType)(this.props),Z,j));const G={w:ae.w,h:ae.h,x:ae.x,y:ae.y,static:!0,i:g};this.props.onResize(J,z,ae,G,T,P),this.setState({layout:j?J:(0,i.compact)(J,(0,i.compactType)(this.props),Z),activeDrag:G})}),h(this,"onResizeStop",(g,m,x,E)=>{let{e:T,node:P}=E;const{layout:D,oldResizeItem:A}=this.state,{cols:z,allowOverlap:K}=this.props,Z=(0,i.getLayoutItem)(D,g),_=K?D:(0,i.compact)(D,(0,i.compactType)(this.props),z);this.props.onResizeStop(_,A,Z,null,T,P);const{oldLayout:j}=this.state;this.setState({activeDrag:null,layout:_,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(_,j)}),h(this,"onDragOver",g=>{var fe;if(g.preventDefault(),g.stopPropagation(),C&&!((fe=g.nativeEvent.target)!=null&&fe.classList.contains(w)))return!1;const{droppingItem:m,onDropDragOver:x,margin:E,cols:T,rowHeight:P,maxRows:D,width:A,containerPadding:z,transformScale:K}=this.props,Z=x==null?void 0:x(g);if(Z===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const _={...m,...Z},{layout:j}=this.state,B=g.currentTarget.getBoundingClientRect(),J=g.clientX-B.left,H=g.clientY-B.top,X={left:J/K,top:H/K,e:g};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:ae,top:G}=this.state.droppingPosition;(ae!=J||G!=H)&&this.setState({droppingPosition:X})}}else{const ae={cols:T,margin:E,maxRows:D,rowHeight:P,containerWidth:A,containerPadding:z||E},G=(0,s.calcXY)(ae,H,J,_.w,_.h);this.setState({droppingDOMNode:e.createElement("div",{key:_.i}),droppingPosition:X,layout:[...j,{..._,x:G.x,y:G.y,static:!1,isDraggable:!0}]})}}),h(this,"removeDroppingPlaceholder",()=>{const{droppingItem:g,cols:m}=this.props,{layout:x}=this.state,E=(0,i.compact)(x.filter(T=>T.i!==g.i),(0,i.compactType)(this.props),m,this.props.allowOverlap);this.setState({layout:E,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),h(this,"onDragLeave",g=>{g.preventDefault(),g.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),h(this,"onDragEnter",g=>{g.preventDefault(),g.stopPropagation(),this.dragEnterCounter++}),h(this,"onDrop",g=>{g.preventDefault(),g.stopPropagation();const{droppingItem:m}=this.props,{layout:x}=this.state,E=x.find(T=>T.i===m.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(x,E,g)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(g,m){let x;return m.activeDrag?null:(!(0,t.deepEqual)(g.layout,m.propsLayout)||g.compactType!==m.compactType?x=g.layout:(0,i.childrenEqual)(g.children,m.children)||(x=m.layout),x?{layout:(0,i.synchronizeLayoutWithChildren)(x,g.children,g.cols,(0,i.compactType)(g),g.allowOverlap),compactType:g.compactType,children:g.children,propsLayout:g.layout}:null)}shouldComponentUpdate(g,m){return this.props.children!==g.children||!(0,i.fastRGLPropsEqual)(this.props,g,t.deepEqual)||this.state.activeDrag!==m.activeDrag||this.state.mounted!==m.mounted||this.state.droppingPosition!==m.droppingPosition}componentDidUpdate(g,m){if(!this.state.activeDrag){const x=this.state.layout,E=m.layout;this.onLayoutMaybeChanged(x,E)}}containerHeight(){if(!this.props.autoSize)return;const g=(0,i.bottom)(this.state.layout),m=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return g*this.props.rowHeight+(g-1)*this.props.margin[1]+m*2+"px"}onLayoutMaybeChanged(g,m){m||(m=this.state.layout),(0,t.deepEqual)(m,g)||this.props.onLayoutChange(g)}placeholder(){const{activeDrag:g}=this.state;if(!g)return null;const{width:m,cols:x,margin:E,containerPadding:T,rowHeight:P,maxRows:D,useCSSTransforms:A,transformScale:z}=this.props;return e.createElement(a.default,{w:g.w,h:g.h,x:g.x,y:g.y,i:g.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:m,cols:x,margin:E,containerPadding:T||E,maxRows:D,rowHeight:P,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:A,transformScale:z},e.createElement("div",null))}processGridItem(g,m){if(!g||!g.key)return;const x=(0,i.getLayoutItem)(this.state.layout,String(g.key));if(!x)return null;const{width:E,cols:T,margin:P,containerPadding:D,rowHeight:A,maxRows:z,isDraggable:K,isResizable:Z,isBounded:_,useCSSTransforms:j,transformScale:B,draggableCancel:J,draggableHandle:H,resizeHandles:X,resizeHandle:fe}=this.props,{mounted:ae,droppingPosition:G}=this.state,$=typeof x.isDraggable=="boolean"?x.isDraggable:!x.static&&K,ue=typeof x.isResizable=="boolean"?x.isResizable:!x.static&&Z,ye=x.resizeHandles||X,pe=$&&_&&x.isBounded!==!1;return e.createElement(a.default,{containerWidth:E,cols:T,margin:P,containerPadding:D||P,maxRows:z,rowHeight:A,cancel:J,handle:H,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:$,isResizable:ue,isBounded:pe,useCSSTransforms:j&&ae,usePercentages:!ae,transformScale:B,w:x.w,h:x.h,x:x.x,y:x.y,i:x.i,minH:x.minH,minW:x.minW,maxH:x.maxH,maxW:x.maxW,static:x.static,droppingPosition:m?G:void 0,resizeHandles:ye,resizeHandle:fe},g)}render(){const{className:g,style:m,isDroppable:x,innerRef:E}=this.props,T=(0,n.default)(w,g),P={height:this.containerHeight(),...m};return e.createElement("div",{ref:E,className:T,style:P,onDrop:x?this.onDrop:i.noop,onDragLeave:x?this.onDragLeave:i.noop,onDragEnter:x?this.onDragEnter:i.noop,onDragOver:x?this.onDragOver:i.noop},e.Children.map(this.props.children,D=>this.processGridItem(D)),x&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}return Fo.default=y,h(y,"displayName","ReactGridLayout"),h(y,"propTypes",u.default),h(y,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:i.noop,onDragStart:i.noop,onDrag:i.noop,onDragStop:i.noop,onResizeStart:i.noop,onResize:i.noop,onResizeStop:i.noop,onDrop:i.noop,onDropDragOver:i.noop}),Fo}var Go={},ri={},qm;function iv(){if(qm)return ri;qm=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.findOrGenerateResponsiveLayout=i,ri.getBreakpointFromWidth=t,ri.getColsFromBreakpoint=n,ri.sortBreakpoints=s;var e=co();function t(a,u){const c=s(a);let f=c[0];for(let p=1,h=c.length;p<h;p++){const S=c[p];u>a[S]&&(f=S)}return f}function n(a,u){if(!u[a])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+a+" is missing!");return u[a]}function i(a,u,c,f,p,h){if(a[c])return(0,e.cloneLayout)(a[c]);let S=a[f];const R=s(u),w=R.slice(R.indexOf(c));for(let C=0,y=w.length;C<y;C++){const v=w[C];if(a[v]){S=a[v];break}}return S=(0,e.cloneLayout)(S||[]),(0,e.compact)((0,e.correctBounds)(S,{cols:p}),h,p)}function s(a){return Object.keys(a).sort(function(c,f){return a[c]-a[f]})}return ri}var Vm;function PP(){if(Vm)return Go;Vm=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=void 0;var e=f(Y),t=u(wr()),n=Tf(),i=co(),s=iv(),a=u(rv());function u(v){return v&&v.__esModule?v:{default:v}}function c(v){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(c=function(x){return x?m:g})(v)}function f(v,g){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var m=c(g);if(m&&m.has(v))return m.get(v);var x={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in v)if(T!=="default"&&Object.prototype.hasOwnProperty.call(v,T)){var P=E?Object.getOwnPropertyDescriptor(v,T):null;P&&(P.get||P.set)?Object.defineProperty(x,T,P):x[T]=v[T]}return x.default=v,m&&m.set(v,x),x}function p(){return p=Object.assign?Object.assign.bind():function(v){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])}return v},p.apply(this,arguments)}function h(v,g,m){return g=S(g),g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function S(v){var g=R(v,"string");return typeof g=="symbol"?g:String(g)}function R(v,g){if(typeof v!="object"||v===null)return v;var m=v[Symbol.toPrimitive];if(m!==void 0){var x=m.call(v,g);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(v)}const w=v=>Object.prototype.toString.call(v);function C(v,g){return v==null?null:Array.isArray(v)?v:v[g]}let y=class extends e.Component{constructor(){super(...arguments),h(this,"state",this.generateInitialState()),h(this,"onLayoutChange",g=>{this.props.onLayoutChange(g,{...this.props.layouts,[this.state.breakpoint]:g})})}generateInitialState(){const{width:g,breakpoints:m,layouts:x,cols:E}=this.props,T=(0,s.getBreakpointFromWidth)(m,g),P=(0,s.getColsFromBreakpoint)(T,E),D=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,s.findOrGenerateResponsiveLayout)(x,m,T,T,P,D),breakpoint:T,cols:P}}static getDerivedStateFromProps(g,m){if(!(0,n.deepEqual)(g.layouts,m.layouts)){const{breakpoint:x,cols:E}=m;return{layout:(0,s.findOrGenerateResponsiveLayout)(g.layouts,g.breakpoints,x,x,E,g.compactType),layouts:g.layouts}}return null}componentDidUpdate(g){(this.props.width!=g.width||this.props.breakpoint!==g.breakpoint||!(0,n.deepEqual)(this.props.breakpoints,g.breakpoints)||!(0,n.deepEqual)(this.props.cols,g.cols))&&this.onWidthChange(g)}onWidthChange(g){const{breakpoints:m,cols:x,layouts:E,compactType:T}=this.props,P=this.props.breakpoint||(0,s.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),D=this.state.breakpoint,A=(0,s.getColsFromBreakpoint)(P,x),z={...E};if(D!==P||g.breakpoints!==m||g.cols!==x){D in z||(z[D]=(0,i.cloneLayout)(this.state.layout));let _=(0,s.findOrGenerateResponsiveLayout)(z,m,P,D,A,T);_=(0,i.synchronizeLayoutWithChildren)(_,this.props.children,A,T,this.props.allowOverlap),z[P]=_,this.props.onBreakpointChange(P,A),this.props.onLayoutChange(_,z),this.setState({breakpoint:P,layout:_,cols:A})}const K=C(this.props.margin,P),Z=C(this.props.containerPadding,P);this.props.onWidthChange(this.props.width,K,A,Z)}render(){const{breakpoint:g,breakpoints:m,cols:x,layouts:E,margin:T,containerPadding:P,onBreakpointChange:D,onLayoutChange:A,onWidthChange:z,...K}=this.props;return e.createElement(a.default,p({},K,{margin:C(T,this.state.breakpoint),containerPadding:C(P,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};return Go.default=y,h(y,"propTypes",{breakpoint:t.default.string,breakpoints:t.default.object,allowOverlap:t.default.bool,cols:t.default.object,margin:t.default.oneOfType([t.default.array,t.default.object]),containerPadding:t.default.oneOfType([t.default.array,t.default.object]),layouts(v,g){if(w(v[g])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+w(v[g]));Object.keys(v[g]).forEach(m=>{if(!(m in v.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,i.validateLayout)(v.layouts[m],"layouts."+m)})},width:t.default.number.isRequired,onBreakpointChange:t.default.func,onLayoutChange:t.default.func,onWidthChange:t.default.func}),h(y,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:i.noop,onLayoutChange:i.noop,onWidthChange:i.noop}),Go}var Aa={},ov=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(s,a){return s[0]===n?(i=a,!0):!1}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var i=e(this.__entries__,n),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(n,i){var s=e(this.__entries__,n);~s?this.__entries__[s][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,s=e(i,n);~s&&i.splice(s,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var s=0,a=this.__entries__;s<a.length;s++){var u=a[s];n.call(i,u[1],u[0])}},t}()}(),zc=typeof window<"u"&&typeof document<"u"&&window.document===document,su=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),IP=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(su):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),NP=2;function AP(e,t){var n=!1,i=!1,s=0;function a(){n&&(n=!1,e()),i&&c()}function u(){IP(a)}function c(){var f=Date.now();if(n){if(f-s<NP)return;i=!0}else n=!0,i=!1,setTimeout(u,t);s=f}return c}var kP=20,$P=["top","right","bottom","left","width","height","size","weight"],LP=typeof MutationObserver<"u",zP=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=AP(this.refresh.bind(this),kP)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,i=n.indexOf(t);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!zc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),LP?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!zc||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=n===void 0?"":n,s=$P.some(function(a){return!!~i.indexOf(a)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),sv=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},so=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||su},av=Iu(0,0,0,0);function au(e){return parseFloat(e)||0}function Gm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,s){var a=e["border-"+s+"-width"];return i+au(a)},0)}function FP(e){for(var t=["top","right","bottom","left"],n={},i=0,s=t;i<s.length;i++){var a=s[i],u=e["padding-"+a];n[a]=au(u)}return n}function WP(e){var t=e.getBBox();return Iu(0,0,t.width,t.height)}function BP(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return av;var i=so(e).getComputedStyle(e),s=FP(i),a=s.left+s.right,u=s.top+s.bottom,c=au(i.width),f=au(i.height);if(i.boxSizing==="border-box"&&(Math.round(c+a)!==t&&(c-=Gm(i,"left","right")+a),Math.round(f+u)!==n&&(f-=Gm(i,"top","bottom")+u)),!jP(e)){var p=Math.round(c+a)-t,h=Math.round(f+u)-n;Math.abs(p)!==1&&(c-=p),Math.abs(h)!==1&&(f-=h)}return Iu(s.left,s.top,c,f)}var UP=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof so(e).SVGGraphicsElement}:function(e){return e instanceof so(e).SVGElement&&typeof e.getBBox=="function"}}();function jP(e){return e===so(e).document.documentElement}function HP(e){return zc?UP(e)?WP(e):BP(e):av}function qP(e){var t=e.x,n=e.y,i=e.width,s=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(a.prototype);return sv(u,{x:t,y:n,width:i,height:s,top:n,right:t+i,bottom:s+n,left:t}),u}function Iu(e,t,n,i){return{x:e,y:t,width:n,height:i}}var VP=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Iu(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=HP(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),GP=function(){function e(t,n){var i=qP(n);sv(this,{target:t,contentRect:i})}return e}(),YP=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new ov,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof so(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new VP(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof so(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(i){return new GP(i.target,i.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),uv=typeof WeakMap<"u"?new WeakMap:new ov,lv=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=zP.getInstance(),i=new YP(t,n,this);uv.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){lv.prototype[e]=function(){var t;return(t=uv.get(this))[e].apply(t,arguments)}});var ZP=function(){return typeof su.ResizeObserver<"u"?su.ResizeObserver:lv}();const XP=Object.freeze(Object.defineProperty({__proto__:null,default:ZP},Symbol.toStringTag,{value:"Module"})),KP=Mg(XP);var Ym;function JP(){if(Ym)return Aa;Ym=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.default=R;var e=u(Y),t=s(wr()),n=s(KP),i=s(Cf());function s(w){return w&&w.__esModule?w:{default:w}}function a(w){if(typeof WeakMap!="function")return null;var C=new WeakMap,y=new WeakMap;return(a=function(v){return v?y:C})(w)}function u(w,C){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var y=a(C);if(y&&y.has(w))return y.get(w);var v={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in w)if(m!=="default"&&Object.prototype.hasOwnProperty.call(w,m)){var x=g?Object.getOwnPropertyDescriptor(w,m):null;x&&(x.get||x.set)?Object.defineProperty(v,m,x):v[m]=w[m]}return v.default=w,y&&y.set(w,v),v}function c(){return c=Object.assign?Object.assign.bind():function(w){for(var C=1;C<arguments.length;C++){var y=arguments[C];for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(w[v]=y[v])}return w},c.apply(this,arguments)}function f(w,C,y){return C=p(C),C in w?Object.defineProperty(w,C,{value:y,enumerable:!0,configurable:!0,writable:!0}):w[C]=y,w}function p(w){var C=h(w,"string");return typeof C=="symbol"?C:String(C)}function h(w,C){if(typeof w!="object"||w===null)return w;var y=w[Symbol.toPrimitive];if(y!==void 0){var v=y.call(w,C);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(w)}const S="react-grid-layout";function R(w){var C;return C=class extends e.Component{constructor(){super(...arguments),f(this,"state",{width:1280}),f(this,"elementRef",e.createRef()),f(this,"mounted",!1),f(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new n.default(g=>{if(this.elementRef.current instanceof HTMLElement){const x=g[0].contentRect.width;this.setState({width:x})}});const v=this.elementRef.current;v instanceof HTMLElement&&this.resizeObserver.observe(v)}componentWillUnmount(){this.mounted=!1;const v=this.elementRef.current;v instanceof HTMLElement&&this.resizeObserver.unobserve(v),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:v,...g}=this.props;return v&&!this.mounted?e.createElement("div",{className:(0,i.default)(this.props.className,S),style:this.props.style,ref:this.elementRef}):e.createElement(w,c({innerRef:this.elementRef},g,this.state))}},f(C,"defaultProps",{measureBeforeMount:!1}),f(C,"propTypes",{measureBeforeMount:t.default.bool}),C}return Aa}var Zm;function QP(){return Zm||(Zm=1,function(e){e.exports=rv().default,e.exports.utils=co(),e.exports.calculateUtils=_f(),e.exports.Responsive=PP().default,e.exports.Responsive.utils=iv(),e.exports.WidthProvider=JP().default}(hc)),hc.exports}var Xm=QP();const eI=Xm.WidthProvider(Xm.Responsive),tI=({items:e,storageKey:t,defaultLayouts:n})=>{const i=Y.useRef(null),s=me.useTheme(),[a,u]=Y.useState(!1),[c,f]=Y.useState(n),[p,h]=Y.useState(1200),{editMode:S}=Of();Y.useEffect(()=>{try{const w=localStorage.getItem(t),C=["lg","md","sm","xs"],y={lg:[],md:[],sm:[],xs:[]};let v=n;if(w)try{v=JSON.parse(w)}catch(g){console.error("Failed to parse saved layouts:",g)}for(const g of C){const m=v[g]||[],x=new Map(m.map(E=>[E.i,E]));e.forEach(E=>{const T=x.get(E.id);T?T.w===1&&T.h===1&&E.layout?y[g].push({...E.layout}):y[g].push({...T}):E.layout?y[g].push({...E.layout}):console.warn(`Grid item "${E.id}" has no registered layout. Components should register with default sizes via registerGridItem().`)})}f(y)}catch(w){console.error("Failed to load layouts:",w)}},[t,e,n]);const R=Y.useCallback((w,C)=>{f(C);try{localStorage.setItem(t,JSON.stringify(C))}catch(y){console.error("Failed to save layouts:",y)}},[t]);return Y.useEffect(()=>{u(!0),i.current&&h(i.current.getBoundingClientRect().width)},[]),a?F.jsxs(me.Box,{sx:{width:"100%",height:"100%",position:"relative"},ref:i,children:[S&&F.jsx(me.Box,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0,pointerEvents:"none",backgroundSize:"30px 30px",backgroundImage:`linear-gradient(to right, ${Xa(s.palette.primary.main,.05)} 1px, transparent 1px), linear-gradient(to bottom, ${Xa(s.palette.primary.main,.05)} 1px, transparent 1px)`}}),F.jsx(eI,{className:"layout",layouts:c,breakpoints:{lg:1200,md:996,sm:768,xs:480},cols:{lg:15,md:15,sm:15,xs:15},rowHeight:200,width:p,containerPadding:[0,0],isResizable:S,isDraggable:S,compactType:null,preventCollision:!0,useCSSTransforms:a,onLayoutChange:R,resizeHandles:["se","sw","ne","nw"],children:e.map(w=>F.jsx(me.Box,{sx:{borderRadius:1,overflow:"hidden",position:"relative",outline:S?`2px dashed ${s.palette.primary.main}`:"none","&:hover":{outline:S?`2px solid ${s.palette.primary.main}`:"none"}},children:F.jsx(me.Box,{sx:{pointerEvents:S?"none":"auto",overflow:"hidden",position:"relative",height:"100%",width:"100%"},children:w.content})},w.id))})]}):null};function cv(e){try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(t){return console.error("Error loading from localStorage:",t),null}}function Fc(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("Error saving to localStorage:",n)}}const Ss="user-layout-presets";function Nu(){try{const e=localStorage.getItem(Ss);return e?JSON.parse(e):[]}catch(e){return console.error("Failed to load user presets:",e),[]}}function nI(e,t){try{const n=Nu(),i=`preset-${Date.now()}`,s=Date.now(),a=JSON.parse(JSON.stringify(t));return n.push({id:i,name:e,layouts:a,createdAt:s,updatedAt:s}),localStorage.setItem(Ss,JSON.stringify(n)),i}catch(n){return console.error("Failed to save user preset:",n),""}}function rI(e){try{const t=Nu();if(!t.some(s=>s.id===e))return!1;const i=t.filter(s=>s.id!==e);return localStorage.setItem(Ss,JSON.stringify(i)),!0}catch(t){return console.error("Failed to delete user preset:",t),!1}}function iI(e,t){try{const n=Nu(),i=n.findIndex(s=>s.id===e);return i===-1?!1:(n[i]={...n[i],...t,updatedAt:Date.now()},localStorage.setItem(Ss,JSON.stringify(n)),!0)}catch(n){return console.error("Failed to update user preset:",n),!1}}function oI(e,t){try{const n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length||n.join(",")!==i.join(","))return!1;for(const s of n){const a=e[s]||[],u=t[s]||[];if(a.length!==u.length)return!1;const c=new Map(a.map(p=>[p.i,p])),f=new Map(u.map(p=>[p.i,p]));if(c.size!==f.size)return!1;for(const[p,h]of c.entries()){const S=f.get(p);if(!S||h.x!==S.x||h.y!==S.y||h.w!==S.w||h.h!==S.h||h.minW!==S.minW||h.minH!==S.minH||h.maxW!==S.maxW||h.maxH!==S.maxH||h.static!==S.static)return!1}}return!0}catch(n){return console.error("Error comparing layouts:",n),!1}}function sI({storageKey:e,defaultLayouts:t,onLayoutChangeCallback:n,debounceTime:i=500}){const[s,a]=Y.useState(()=>cv(e)||JSON.parse(JSON.stringify(t))),u=Y.useRef(s),c=Y.useRef(null),f=Y.useRef(!1),p=Y.useCallback((R,w)=>{if(f.current||oI(w,u.current))return;f.current=!0,u.current=w,a(w),c.current&&clearTimeout(c.current);const C=()=>{Fc(e,w),n&&n(w),f.current=!1};c.current=window.setTimeout(C,i)},[e,n,i]),h=Y.useCallback(R=>{const w=JSON.parse(JSON.stringify(R));u.current=w,a(w),Fc(e,w),n&&n(w)},[e,n,s]),S=Y.useCallback(()=>{h(t)},[h,t]);return Y.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),{layouts:s,onLayoutChange:p,applyLayout:h,resetToDefault:S}}const aI=jt(F.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),uI=jt(F.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"DesktopWindows"),Km=jt(F.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"}),"Tablet"),lI=jt(F.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"}),"PhoneIphone"),Xi={lg:{description:"Large screens (≥1200px)",color:"primary",icon:"desktop"},md:{description:"Medium screens (≥996px)",color:"success",icon:"tablet"},sm:{description:"Small screens (≥768px)",color:"info",icon:"tabletRotated"},xs:{description:"Extra small screens (<768px)",color:"warning",icon:"phone"}},fv=({showLabel:e=!1})=>{const t=me.useTheme(),n=me.useMediaQuery(t.breakpoints.between("sm","md")),i=me.useMediaQuery(t.breakpoints.between("md","lg")),s=me.useMediaQuery(t.breakpoints.up("lg"));let a,u,c;return s?(a="lg",u=F.jsx(uI,{fontSize:"small"}),c=Xi.lg.color):i?(a="md",u=F.jsx(Km,{fontSize:"small"}),c=Xi.md.color):n?(a="sm",u=F.jsx(Km,{fontSize:"small",sx:{transform:"rotate(90deg)"}}),c=Xi.sm.color):(a="xs",u=F.jsx(lI,{fontSize:"small"}),c=Xi.xs.color),F.jsx(me.Tooltip,{title:Xi[a].description,children:F.jsx(me.Chip,{icon:u,label:e?a.toUpperCase():void 0,color:c,size:"small",variant:"outlined",sx:{height:24,minWidth:e?48:32,".MuiChip-icon":{ml:e?void 0:"0px",mr:e?void 0:"-6px"}}})})},cI=()=>{const{editMode:e,toggleEditMode:t}=lo(),n=()=>{t()};return F.jsxs(me.Box,{display:"flex",flexDirection:"row",alignItems:"center",children:[F.jsx(me.Tooltip,{title:e?"Exit Layout Edit Mode":"Edit Layout",children:F.jsx(me.IconButton,{onClick:n,size:"small",color:e?"primary":"default",sx:{border:e?"1px solid":"none","&:hover":{backgroundColor:e?"rgba(25, 118, 210, 0.08)":void 0}},children:F.jsx(aI,{})})}),e&&F.jsxs(F.Fragment,{children:[F.jsx(me.Divider,{orientation:"vertical",flexItem:!0,sx:{mx:.5}}),F.jsx(fv,{showLabel:!0})]})]})},fI=e=>{if(!e)return!0;const t=`notification_shown_${e}`;return localStorage.getItem(t)?!1:(localStorage.setItem(t,"true"),!0)},Mf=uo.create(e=>({notifications:[],addNotificationData:t=>{t.singular&&!fI(t.singularId)||e(n=>({notifications:[...n.notifications,{...t,id:`${Date.now()*Math.random()}`}]}))},removeNotificationData:t=>{e(n=>({notifications:n.notifications.filter(i=>i.id!==`${t}`)}))},clearNotificationsByType:t=>{e(n=>({notifications:n.notifications.filter(i=>i.type!==t)}))}})),dI=({action:e,maxAttempts:t=3,delay:n=1e3,successMessage:i="Operation successful",errorMessage:s="Operation failed, retrying...",condition:a=!0})=>{const[u,c]=Y.useState(0),{addNotificationData:f,clearNotificationsByType:p}=Mf(),h=Y.useCallback(()=>{if(a&&u<t){const S=setTimeout(()=>{e(),c(R=>R+1)},n);return()=>clearTimeout(S)}else u>=t?f({type:"error",message:s}):a||(p("error"),f({type:"success",message:i}))},[e,u,a,t,n,s,i,p]);return Y.useEffect(()=>h(),[h]),{attempts:u}},pI=({title:e,dialogId:t,callOnOpen:n,showTitle:i=!0,onOpenDialog:s,icon:a})=>{const u=c=>{c.stopPropagation(),c.preventDefault(),s?s(t):console.warn("DialogOpener: onOpenDialog prop not provided. Please provide a dialog store handler."),n&&n(c)};return F.jsxs(me.MenuItem,{component:me.Button,onClick:u,style:{marginLeft:"auto",zIndex:1e3,width:"100%",display:"flex",justifyContent:"left",columnGap:2},children:[a," ",i&&e]})},dv=jt(F.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),pv=({children:e,open:t,onClose:n,...i})=>{const s=me.useTheme(),a=me.useMediaQuery(s.breakpoints.down("sm"));return F.jsx(me.Dialog,{sx:{"& .MuiDialog-paper":{borderRadius:a?"0px !important":"14px",height:a?"100vh":"90vh",display:"flex",flexDirection:"column",maxHeight:a?"100vh":"90vh",margin:a?0:void 0}},open:t,onClose:n,fullScreen:a,...i,children:e})},hI=({onSubmit:e,title:t,children:n,submitText:i="Submit",disableSubmit:s=!1,showUnsavedChangesWarning:a=!1,isDirty:u=!1,onClose:c,...f})=>{const[p,h]=Y.useState(!1),S=()=>{a&&u?h(!0):c?c():console.warn("FormDialog: onClose prop not provided. Please provide a close handler.")},R=()=>{h(!1),c&&c()};return F.jsxs(F.Fragment,{children:[F.jsxs(pv,{open:!0,onClose:S,...f,children:[F.jsxs(me.DialogTitle,{sx:{m:0,p:2,pr:6},children:[t,F.jsx(me.IconButton,{"aria-label":"close",onClick:S,sx:{position:"absolute",right:8,top:8,color:w=>w.palette.grey[500]},children:F.jsx(dv,{})})]}),F.jsx(me.DialogContent,{sx:{p:"24px",overflow:"hidden",display:"flex",flexDirection:"column",minHeight:0},children:F.jsxs("form",{onSubmit:e,style:{display:"flex",flexDirection:"column",height:"100%",minHeight:0},children:[F.jsx(me.Box,{sx:{flex:1,minHeight:0,overflow:"auto"},children:n}),F.jsxs(me.DialogActions,{sx:{borderTop:1,borderColor:"divider"},children:[F.jsx(me.Button,{onClick:S,children:"Cancel"}),F.jsx(me.Button,{type:"submit",variant:"contained",disabled:!u||s,color:"primary",children:i})]})]})})]}),F.jsxs(me.Dialog,{open:p,onClose:()=>h(!1),children:[F.jsx(me.DialogTitle,{children:"Unsaved Changes"}),F.jsx(me.DialogContent,{children:F.jsx(me.DialogContentText,{children:"You have unsaved changes. Are you sure you want to close?"})}),F.jsxs(me.DialogActions,{children:[F.jsx(me.Button,{onClick:()=>h(!1),children:"Cancel"}),F.jsx(me.Button,{onClick:R,color:"warning",children:"Close Without Saving"})]})]})]})},hv=new Map;function mI(e,t){hv.set(e,t)}function gI(e){return hv.get(e)}function yI(e){console.warn("openDialog called but no dialog store is configured. Please use a dialog store from the main package.")}function vI(){console.warn("closeDialog called but no dialog store is configured. Please use a dialog store from the main package.")}const bI=({openDialog:e})=>{if(!e)return null;const t=gI(e);return t?F.jsx(t,{}):null},wI=jt(F.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),xI=jt(F.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),SI=6e3,EI=({notificationKey:e})=>{const[t,n]=Y.useState(100),[i,s]=Y.useState(!1),a=Y.useRef(null),u=Y.useRef(Date.now()),c=Y.useRef(0);return Y.useEffect(()=>{if(i){a.current&&(clearInterval(a.current),c.current+=Date.now()-u.current);return}return u.current=Date.now(),a.current=setInterval(()=>{const f=c.current+(Date.now()-u.current),p=Math.max(0,100*(1-f/SI));n(p),p<=0&&(clearInterval(a.current),Qc.closeSnackbar(e))},50),()=>{a.current&&clearInterval(a.current)}},[i,e]),F.jsxs(me.Box,{sx:{position:"relative",display:"inline-flex",mr:1},children:[F.jsx(me.CircularProgress,{variant:"determinate",value:t,size:24,sx:{color:"rgba(255, 255, 255, 0.7)"}}),F.jsx(me.IconButton,{size:"small",onClick:()=>s(!i),sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"rgba(255, 255, 255, 0.7)",padding:0,"&:hover":{color:"white"},width:16,height:16},children:i?F.jsx(wI,{sx:{fontSize:12}}):F.jsx(xI,{sx:{fontSize:12}})})]})},OI=e=>F.jsx(me.IconButton,{onClick:()=>{Qc.closeSnackbar(e)},children:F.jsx(dv,{})}),TI=e=>F.jsxs(me.Box,{sx:{display:"flex",alignItems:"center"},children:[F.jsx(EI,{notificationKey:e}),OI(e)]}),CI=()=>{const{notifications:e,removeNotificationData:t}=Mf(),{enqueueSnackbar:n}=Qc.useSnackbar();return Y.useEffect(()=>{e.length>0&&e.forEach(i=>{n(i.message,{variant:i.type,action:TI,autoHideDuration:null,persist:!0}),t(Number(i.id))})},[e,n,t]),F.jsx(F.Fragment,{})},_I=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,""),RI=e=>e.toLowerCase().replace(/_([a-z])/g,(t,n)=>n.toUpperCase()),Wc=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Wc(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,i])=>{const s=RI(n);t[s]=Wc(i)}),t},Bc=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Bc(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,i])=>{const s=_I(n);t[s]=Bc(i)}),t};class Ei extends Error{}class DI extends Ei{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class MI extends Ei{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class PI extends Ei{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Ki extends Ei{}class mv extends Ei{constructor(t){super(`Invalid unit ${t}`)}}class kt extends Ei{}class Nr extends Ei{constructor(){super("Zone is an abstract class")}}const Se="numeric",Wn="short",cn="long",uu={year:Se,month:Se,day:Se},gv={year:Se,month:Wn,day:Se},II={year:Se,month:Wn,day:Se,weekday:Wn},yv={year:Se,month:cn,day:Se},vv={year:Se,month:cn,day:Se,weekday:cn},bv={hour:Se,minute:Se},wv={hour:Se,minute:Se,second:Se},xv={hour:Se,minute:Se,second:Se,timeZoneName:Wn},Sv={hour:Se,minute:Se,second:Se,timeZoneName:cn},Ev={hour:Se,minute:Se,hourCycle:"h23"},Ov={hour:Se,minute:Se,second:Se,hourCycle:"h23"},Tv={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Wn},Cv={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:cn},_v={year:Se,month:Se,day:Se,hour:Se,minute:Se},Rv={year:Se,month:Se,day:Se,hour:Se,minute:Se,second:Se},Dv={year:Se,month:Wn,day:Se,hour:Se,minute:Se},Mv={year:Se,month:Wn,day:Se,hour:Se,minute:Se,second:Se},NI={year:Se,month:Wn,day:Se,weekday:Wn,hour:Se,minute:Se},Pv={year:Se,month:cn,day:Se,hour:Se,minute:Se,timeZoneName:Wn},Iv={year:Se,month:cn,day:Se,hour:Se,minute:Se,second:Se,timeZoneName:Wn},Nv={year:Se,month:cn,day:Se,weekday:cn,hour:Se,minute:Se,timeZoneName:cn},Av={year:Se,month:cn,day:Se,weekday:cn,hour:Se,minute:Se,second:Se,timeZoneName:cn};class Es{get type(){throw new Nr}get name(){throw new Nr}get ianaName(){return this.name}get isUniversal(){throw new Nr}offsetName(t,n){throw new Nr}formatOffset(t,n){throw new Nr}offset(t){throw new Nr}equals(t){throw new Nr}get isValid(){throw new Nr}}let yc=null;class Au extends Es{static get instance(){return yc===null&&(yc=new Au),yc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:i}){return qv(t,n,i)}formatOffset(t,n){return ss(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const Uc=new Map;function AI(e){let t=Uc.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Uc.set(e,t)),t}const kI={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function $I(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,a,u,c,f,p,h]=i;return[u,s,a,c,f,p,h]}function LI(e,t){const n=e.formatToParts(t),i=[];for(let s=0;s<n.length;s++){const{type:a,value:u}=n[s],c=kI[a];a==="era"?i[c]=u:Ae(c)||(i[c]=parseInt(u,10))}return i}const vc=new Map;class br extends Es{static create(t){let n=vc.get(t);return n===void 0&&vc.set(t,n=new br(t)),n}static resetCache(){vc.clear(),Uc.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=br.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:i}){return qv(t,n,i,this.name)}formatOffset(t,n){return ss(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const i=AI(this.name);let[s,a,u,c,f,p,h]=i.formatToParts?LI(i,n):$I(i,n);c==="BC"&&(s=-Math.abs(s)+1);const R=$u({year:s,month:a,day:u,hour:f===24?0:f,minute:p,second:h,millisecond:0});let w=+n;const C=w%1e3;return w-=C>=0?C:1e3+C,(R-w)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Jm={};function zI(e,t={}){const n=JSON.stringify([e,t]);let i=Jm[n];return i||(i=new Intl.ListFormat(e,t),Jm[n]=i),i}const jc=new Map;function Hc(e,t={}){const n=JSON.stringify([e,t]);let i=jc.get(n);return i===void 0&&(i=new Intl.DateTimeFormat(e,t),jc.set(n,i)),i}const qc=new Map;function FI(e,t={}){const n=JSON.stringify([e,t]);let i=qc.get(n);return i===void 0&&(i=new Intl.NumberFormat(e,t),qc.set(n,i)),i}const Vc=new Map;function WI(e,t={}){const{base:n,...i}=t,s=JSON.stringify([e,i]);let a=Vc.get(s);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),Vc.set(s,a)),a}let es=null;function BI(){return es||(es=new Intl.DateTimeFormat().resolvedOptions().locale,es)}const Gc=new Map;function kv(e){let t=Gc.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),Gc.set(e,t)),t}const Yc=new Map;function UI(e){let t=Yc.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...$v,...t}),Yc.set(e,t)}return t}function jI(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let i,s;try{i=Hc(e).resolvedOptions(),s=e}catch{const f=e.substring(0,n);i=Hc(f).resolvedOptions(),s=f}const{numberingSystem:a,calendar:u}=i;return[s,a,u]}}function HI(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function qI(e){const t=[];for(let n=1;n<=12;n++){const i=ke.utc(2009,n,1);t.push(e(i))}return t}function VI(e){const t=[];for(let n=1;n<=7;n++){const i=ke.utc(2016,11,13+n);t.push(e(i))}return t}function ka(e,t,n,i){const s=e.listingMode();return s==="error"?null:s==="en"?n(t):i(t)}function GI(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||kv(e.locale).numberingSystem==="latn"}class YI{constructor(t,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:a,...u}=i;if(!n||Object.keys(u).length>0){const c={useGrouping:!1,...i};i.padTo>0&&(c.minimumIntegerDigits=i.padTo),this.inf=FI(t,c)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):kf(t,3);return St(n,this.padTo)}}}class ZI{constructor(t,n,i){this.opts=i,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const u=-1*(t.offset/60),c=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;t.offset!==0&&br.create(c).valid?(s=c,this.dt=t):(s="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,s=t.zone.name):(s="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const a={...this.opts};a.timeZone=a.timeZone||s,this.dtf=Hc(n,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class XI{constructor(t,n,i){this.opts={style:"long",...i},!n&&jv()&&(this.rtf=WI(t,i))}format(t,n){return this.rtf?this.rtf.format(t,n):vN(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const $v={firstDay:1,minimalDays:4,weekend:[6,7]};class Qe{static fromOpts(t){return Qe.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,i,s,a=!1){const u=t||yt.defaultLocale,c=u||(a?"en-US":BI()),f=n||yt.defaultNumberingSystem,p=i||yt.defaultOutputCalendar,h=Xc(s)||yt.defaultWeekSettings;return new Qe(c,f,p,h,u)}static resetCache(){es=null,jc.clear(),qc.clear(),Vc.clear(),Gc.clear(),Yc.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:i,weekSettings:s}={}){return Qe.create(t,n,i,s)}constructor(t,n,i,s,a){const[u,c,f]=jI(t);this.locale=u,this.numberingSystem=n||c||null,this.outputCalendar=i||f||null,this.weekSettings=s,this.intl=HI(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=GI(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Qe.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Xc(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return ka(this,t,Yv,()=>{const i=this.intl==="ja"||this.intl.startsWith("ja-");n&=!i;const s=n?{month:t,day:"numeric"}:{month:t},a=n?"format":"standalone";if(!this.monthsCache[a][t]){const u=i?c=>this.dtFormatter(c,s).format():c=>this.extract(c,s,"month");this.monthsCache[a][t]=qI(u)}return this.monthsCache[a][t]})}weekdays(t,n=!1){return ka(this,t,Kv,()=>{const i=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},s=n?"format":"standalone";return this.weekdaysCache[s][t]||(this.weekdaysCache[s][t]=VI(a=>this.extract(a,i,"weekday"))),this.weekdaysCache[s][t]})}meridiems(){return ka(this,void 0,()=>Jv,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ke.utc(2016,11,13,9),ke.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return ka(this,t,Qv,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[ke.utc(-40,1,1),ke.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[t]})}extract(t,n,i){const s=this.dtFormatter(t,n),a=s.formatToParts(),u=a.find(c=>c.type.toLowerCase()===i);return u?u.value:null}numberFormatter(t={}){return new YI(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new ZI(t,this.intl,n)}relFormatter(t={}){return new XI(this.intl,this.isEnglish(),t)}listFormatter(t={}){return zI(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||kv(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Hv()?UI(this.locale):$v}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let bc=null;class Ut extends Es{static get utcInstance(){return bc===null&&(bc=new Ut(0)),bc}static instance(t){return t===0?Ut.utcInstance:new Ut(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Ut(Lu(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ss(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ss(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return ss(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class KI extends Es{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Lr(e,t){if(Ae(e)||e===null)return t;if(e instanceof Es)return e;if(rN(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Au.instance:n==="utc"||n==="gmt"?Ut.utcInstance:Ut.parseSpecifier(n)||br.create(e)}else return Fr(e)?Ut.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new KI(e)}const Pf={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Qm={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},JI=Pf.hanidec.replace(/[\[|\]]/g,"").split("");function QI(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(e[n].search(Pf.hanidec)!==-1)t+=JI.indexOf(e[n]);else for(const s in Qm){const[a,u]=Qm[s];i>=a&&i<=u&&(t+=i-a)}}return parseInt(t,10)}else return t}const Zc=new Map;function eN(){Zc.clear()}function $n({numberingSystem:e},t=""){const n=e||"latn";let i=Zc.get(n);i===void 0&&(i=new Map,Zc.set(n,i));let s=i.get(t);return s===void 0&&(s=new RegExp(`${Pf[n]}${t}`),i.set(t,s)),s}let eg=()=>Date.now(),tg="system",ng=null,rg=null,ig=null,og=60,sg,ag=null;class yt{static get now(){return eg}static set now(t){eg=t}static set defaultZone(t){tg=t}static get defaultZone(){return Lr(tg,Au.instance)}static get defaultLocale(){return ng}static set defaultLocale(t){ng=t}static get defaultNumberingSystem(){return rg}static set defaultNumberingSystem(t){rg=t}static get defaultOutputCalendar(){return ig}static set defaultOutputCalendar(t){ig=t}static get defaultWeekSettings(){return ag}static set defaultWeekSettings(t){ag=Xc(t)}static get twoDigitCutoffYear(){return og}static set twoDigitCutoffYear(t){og=t%100}static get throwOnInvalid(){return sg}static set throwOnInvalid(t){sg=t}static resetCaches(){Qe.resetCache(),br.resetCache(),ke.resetCache(),eN()}}class zn{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Lv=[0,31,59,90,120,151,181,212,243,273,304,334],zv=[0,31,60,91,121,152,182,213,244,274,305,335];function On(e,t){return new zn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function If(e,t,n){const i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function Fv(e,t,n){return n+(Os(e)?zv:Lv)[t-1]}function Wv(e,t){const n=Os(e)?zv:Lv,i=n.findIndex(a=>a<t),s=t-n[i];return{month:i+1,day:s}}function Nf(e,t){return(e-t+7)%7+1}function lu(e,t=4,n=1){const{year:i,month:s,day:a}=e,u=Fv(i,s,a),c=Nf(If(i,s,a),n);let f=Math.floor((u-c+14-t)/7),p;return f<1?(p=i-1,f=hs(p,t,n)):f>hs(i,t,n)?(p=i+1,f=1):p=i,{weekYear:p,weekNumber:f,weekday:c,...zu(e)}}function ug(e,t=4,n=1){const{weekYear:i,weekNumber:s,weekday:a}=e,u=Nf(If(i,1,t),n),c=eo(i);let f=s*7+a-u-7+t,p;f<1?(p=i-1,f+=eo(p)):f>c?(p=i+1,f-=eo(i)):p=i;const{month:h,day:S}=Wv(p,f);return{year:p,month:h,day:S,...zu(e)}}function wc(e){const{year:t,month:n,day:i}=e,s=Fv(t,n,i);return{year:t,ordinal:s,...zu(e)}}function lg(e){const{year:t,ordinal:n}=e,{month:i,day:s}=Wv(t,n);return{year:t,month:i,day:s,...zu(e)}}function cg(e,t){if(!Ae(e.localWeekday)||!Ae(e.localWeekNumber)||!Ae(e.localWeekYear)){if(!Ae(e.weekday)||!Ae(e.weekNumber)||!Ae(e.weekYear))throw new Ki("Cannot mix locale-based week fields with ISO-based week fields");return Ae(e.localWeekday)||(e.weekday=e.localWeekday),Ae(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ae(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function tN(e,t=4,n=1){const i=ku(e.weekYear),s=Tn(e.weekNumber,1,hs(e.weekYear,t,n)),a=Tn(e.weekday,1,7);return i?s?a?!1:On("weekday",e.weekday):On("week",e.weekNumber):On("weekYear",e.weekYear)}function nN(e){const t=ku(e.year),n=Tn(e.ordinal,1,eo(e.year));return t?n?!1:On("ordinal",e.ordinal):On("year",e.year)}function Bv(e){const t=ku(e.year),n=Tn(e.month,1,12),i=Tn(e.day,1,cu(e.year,e.month));return t?n?i?!1:On("day",e.day):On("month",e.month):On("year",e.year)}function Uv(e){const{hour:t,minute:n,second:i,millisecond:s}=e,a=Tn(t,0,23)||t===24&&n===0&&i===0&&s===0,u=Tn(n,0,59),c=Tn(i,0,59),f=Tn(s,0,999);return a?u?c?f?!1:On("millisecond",s):On("second",i):On("minute",n):On("hour",t)}function Ae(e){return typeof e>"u"}function Fr(e){return typeof e=="number"}function ku(e){return typeof e=="number"&&e%1===0}function rN(e){return typeof e=="string"}function iN(e){return Object.prototype.toString.call(e)==="[object Date]"}function jv(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Hv(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function oN(e){return Array.isArray(e)?e:[e]}function fg(e,t,n){if(e.length!==0)return e.reduce((i,s)=>{const a=[t(s),s];return i&&n(i[0],a[0])===i[0]?i:a},null)[1]}function sN(e,t){return t.reduce((n,i)=>(n[i]=e[i],n),{})}function ao(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Xc(e){if(e==null)return null;if(typeof e!="object")throw new kt("Week settings must be an object");if(!Tn(e.firstDay,1,7)||!Tn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Tn(t,1,7)))throw new kt("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Tn(e,t,n){return ku(e)&&e>=t&&e<=n}function aN(e,t){return e-t*Math.floor(e/t)}function St(e,t=2){const n=e<0;let i;return n?i="-"+(""+-e).padStart(t,"0"):i=(""+e).padStart(t,"0"),i}function Ar(e){if(!(Ae(e)||e===null||e===""))return parseInt(e,10)}function ii(e){if(!(Ae(e)||e===null||e===""))return parseFloat(e)}function Af(e){if(!(Ae(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function kf(e,t,n="round"){const i=10**t;switch(n){case"expand":return e>0?Math.ceil(e*i)/i:Math.floor(e*i)/i;case"trunc":return Math.trunc(e*i)/i;case"round":return Math.round(e*i)/i;case"floor":return Math.floor(e*i)/i;case"ceil":return Math.ceil(e*i)/i;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Os(e){return e%4===0&&(e%100!==0||e%400===0)}function eo(e){return Os(e)?366:365}function cu(e,t){const n=aN(t-1,12)+1,i=e+(t-n)/12;return n===2?Os(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function $u(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function dg(e,t,n){return-Nf(If(e,1,t),n)+t-1}function hs(e,t=4,n=1){const i=dg(e,t,n),s=dg(e+1,t,n);return(eo(e)-i+s)/7}function Kc(e){return e>99?e:e>yt.twoDigitCutoffYear?1900+e:2e3+e}function qv(e,t,n,i=null){const s=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(a.timeZone=i);const u={timeZoneName:t,...a},c=new Intl.DateTimeFormat(n,u).formatToParts(s).find(f=>f.type.toLowerCase()==="timezonename");return c?c.value:null}function Lu(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const i=parseInt(t,10)||0,s=n<0||Object.is(n,-0)?-i:i;return n*60+s}function Vv(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new kt(`Invalid unit value ${e}`);return t}function fu(e,t){const n={};for(const i in e)if(ao(e,i)){const s=e[i];if(s==null)continue;n[t(i)]=Vv(s)}return n}function ss(e,t){const n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${St(n,2)}:${St(i,2)}`;case"narrow":return`${s}${n}${i>0?`:${i}`:""}`;case"techie":return`${s}${St(n,2)}${St(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function zu(e){return sN(e,["hour","minute","second","millisecond"])}const uN=["January","February","March","April","May","June","July","August","September","October","November","December"],Gv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],lN=["J","F","M","A","M","J","J","A","S","O","N","D"];function Yv(e){switch(e){case"narrow":return[...lN];case"short":return[...Gv];case"long":return[...uN];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Zv=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Xv=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],cN=["M","T","W","T","F","S","S"];function Kv(e){switch(e){case"narrow":return[...cN];case"short":return[...Xv];case"long":return[...Zv];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Jv=["AM","PM"],fN=["Before Christ","Anno Domini"],dN=["BC","AD"],pN=["B","A"];function Qv(e){switch(e){case"narrow":return[...pN];case"short":return[...dN];case"long":return[...fN];default:return null}}function hN(e){return Jv[e.hour<12?0:1]}function mN(e,t){return Kv(t)[e.weekday-1]}function gN(e,t){return Yv(t)[e.month-1]}function yN(e,t){return Qv(t)[e.year<0?0:1]}function vN(e,t,n="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const S=e==="days";switch(t){case 1:return S?"tomorrow":`next ${s[e][0]}`;case-1:return S?"yesterday":`last ${s[e][0]}`;case 0:return S?"today":`this ${s[e][0]}`}}const u=Object.is(t,-0)||t<0,c=Math.abs(t),f=c===1,p=s[e],h=i?f?p[1]:p[2]||p[1]:f?s[e][0]:e;return u?`${c} ${h} ago`:`in ${c} ${h}`}function pg(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}const bN={D:uu,DD:gv,DDD:yv,DDDD:vv,t:bv,tt:wv,ttt:xv,tttt:Sv,T:Ev,TT:Ov,TTT:Tv,TTTT:Cv,f:_v,ff:Dv,fff:Pv,ffff:Nv,F:Rv,FF:Mv,FFF:Iv,FFFF:Av};class $t{static create(t,n={}){return new $t(t,n)}static parseFormat(t){let n=null,i="",s=!1;const a=[];for(let u=0;u<t.length;u++){const c=t.charAt(u);c==="'"?((i.length>0||s)&&a.push({literal:s||/^\s+$/.test(i),val:i===""?"'":i}),n=null,i="",s=!s):s||c===n?i+=c:(i.length>0&&a.push({literal:/^\s+$/.test(i),val:i}),i=c,n=c)}return i.length>0&&a.push({literal:s||/^\s+$/.test(i),val:i}),a}static macroTokenToFormatOpts(t){return bN[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,i=void 0){if(this.opts.forceSimple)return St(t,n);const s={...this.opts};return n>0&&(s.padTo=n),i&&(s.signDisplay=i),this.loc.numberFormatter(s).format(t)}formatDateTimeFromString(t,n){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(w,C)=>this.loc.extract(t,w,C),u=w=>t.isOffsetFixed&&t.offset===0&&w.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,w.format):"",c=()=>i?hN(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),f=(w,C)=>i?gN(t,w):a(C?{month:w}:{month:w,day:"numeric"},"month"),p=(w,C)=>i?mN(t,w):a(C?{weekday:w}:{weekday:w,month:"long",day:"numeric"},"weekday"),h=w=>{const C=$t.macroTokenToFormatOpts(w);return C?this.formatWithSystemDefault(t,C):w},S=w=>i?yN(t,w):a({era:w},"era"),R=w=>{switch(w){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return s?a({day:"numeric"},"day"):this.num(t.day);case"dd":return s?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return p("short",!0);case"cccc":return p("long",!0);case"ccccc":return p("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return p("short",!1);case"EEEE":return p("long",!1);case"EEEEE":return p("narrow",!1);case"L":return s?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return s?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return f("short",!0);case"LLLL":return f("long",!0);case"LLLLL":return f("narrow",!0);case"M":return s?a({month:"numeric"},"month"):this.num(t.month);case"MM":return s?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return f("short",!1);case"MMMM":return f("long",!1);case"MMMMM":return f("narrow",!1);case"y":return s?a({year:"numeric"},"year"):this.num(t.year);case"yy":return s?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return s?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return s?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return S("short");case"GG":return S("long");case"GGGGG":return S("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(w)}};return pg($t.parseFormat(n),R)}formatDurationFromString(t,n){const i=this.opts.signMode==="negativeLargestOnly"?-1:1,s=h=>{switch(h[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},a=(h,S)=>R=>{const w=s(R);if(w){const C=S.isNegativeDuration&&w!==S.largestUnit?i:1;let y;return this.opts.signMode==="negativeLargestOnly"&&w!==S.largestUnit?y="never":this.opts.signMode==="all"?y="always":y="auto",this.num(h.get(w)*C,R.length,y)}else return R},u=$t.parseFormat(n),c=u.reduce((h,{literal:S,val:R})=>S?h:h.concat(R),[]),f=t.shiftTo(...c.map(s).filter(h=>h)),p={isNegativeDuration:f<0,largestUnit:Object.keys(f.values)[0]};return pg(u,a(f,p))}}const e0=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function fo(...e){const t=e.reduce((n,i)=>n+i.source,"");return RegExp(`^${t}$`)}function po(...e){return t=>e.reduce(([n,i,s],a)=>{const[u,c,f]=a(t,s);return[{...n,...u},c||i,f]},[{},null,1]).slice(0,2)}function ho(e,...t){if(e==null)return[null,null];for(const[n,i]of t){const s=n.exec(e);if(s)return i(s)}return[null,null]}function t0(...e){return(t,n)=>{const i={};let s;for(s=0;s<e.length;s++)i[e[s]]=Ar(t[n+s]);return[i,null,n+s]}}const n0=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,wN=`(?:${n0.source}?(?:\\[(${e0.source})\\])?)?`,$f=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,r0=RegExp(`${$f.source}${wN}`),Lf=RegExp(`(?:[Tt]${r0.source})?`),xN=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,SN=/(\d{4})-?W(\d\d)(?:-?(\d))?/,EN=/(\d{4})-?(\d{3})/,ON=t0("weekYear","weekNumber","weekDay"),TN=t0("year","ordinal"),CN=/(\d{4})-(\d\d)-(\d\d)/,i0=RegExp(`${$f.source} ?(?:${n0.source}|(${e0.source}))?`),_N=RegExp(`(?: ${i0.source})?`);function to(e,t,n){const i=e[t];return Ae(i)?n:Ar(i)}function RN(e,t){return[{year:to(e,t),month:to(e,t+1,1),day:to(e,t+2,1)},null,t+3]}function mo(e,t){return[{hours:to(e,t,0),minutes:to(e,t+1,0),seconds:to(e,t+2,0),milliseconds:Af(e[t+3])},null,t+4]}function Ts(e,t){const n=!e[t]&&!e[t+1],i=Lu(e[t+1],e[t+2]),s=n?null:Ut.instance(i);return[{},s,t+3]}function Cs(e,t){const n=e[t]?br.create(e[t]):null;return[{},n,t+1]}const DN=RegExp(`^T?${$f.source}$`),MN=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function PN(e){const[t,n,i,s,a,u,c,f,p]=e,h=t[0]==="-",S=f&&f[0]==="-",R=(w,C=!1)=>w!==void 0&&(C||w&&h)?-w:w;return[{years:R(ii(n)),months:R(ii(i)),weeks:R(ii(s)),days:R(ii(a)),hours:R(ii(u)),minutes:R(ii(c)),seconds:R(ii(f),f==="-0"),milliseconds:R(Af(p),S)}]}const IN={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function zf(e,t,n,i,s,a,u){const c={year:t.length===2?Kc(Ar(t)):Ar(t),month:Gv.indexOf(n)+1,day:Ar(i),hour:Ar(s),minute:Ar(a)};return u&&(c.second=Ar(u)),e&&(c.weekday=e.length>3?Zv.indexOf(e)+1:Xv.indexOf(e)+1),c}const NN=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function AN(e){const[,t,n,i,s,a,u,c,f,p,h,S]=e,R=zf(t,s,i,n,a,u,c);let w;return f?w=IN[f]:p?w=0:w=Lu(h,S),[R,new Ut(w)]}function kN(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const $N=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,LN=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,zN=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function hg(e){const[,t,n,i,s,a,u,c]=e;return[zf(t,s,i,n,a,u,c),Ut.utcInstance]}function FN(e){const[,t,n,i,s,a,u,c]=e;return[zf(t,c,n,i,s,a,u),Ut.utcInstance]}const WN=fo(xN,Lf),BN=fo(SN,Lf),UN=fo(EN,Lf),jN=fo(r0),o0=po(RN,mo,Ts,Cs),HN=po(ON,mo,Ts,Cs),qN=po(TN,mo,Ts,Cs),VN=po(mo,Ts,Cs);function GN(e){return ho(e,[WN,o0],[BN,HN],[UN,qN],[jN,VN])}function YN(e){return ho(kN(e),[NN,AN])}function ZN(e){return ho(e,[$N,hg],[LN,hg],[zN,FN])}function XN(e){return ho(e,[MN,PN])}const KN=po(mo);function JN(e){return ho(e,[DN,KN])}const QN=fo(CN,_N),eA=fo(i0),tA=po(mo,Ts,Cs);function nA(e){return ho(e,[QN,o0],[eA,tA])}const mg="Invalid Duration",s0={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},rA={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...s0},xn=146097/400,Vi=146097/4800,iA={years:{quarters:4,months:12,weeks:xn/7,days:xn,hours:xn*24,minutes:xn*24*60,seconds:xn*24*60*60,milliseconds:xn*24*60*60*1e3},quarters:{months:3,weeks:xn/28,days:xn/4,hours:xn*24/4,minutes:xn*24*60/4,seconds:xn*24*60*60/4,milliseconds:xn*24*60*60*1e3/4},months:{weeks:Vi/7,days:Vi,hours:Vi*24,minutes:Vi*24*60,seconds:Vi*24*60*60,milliseconds:Vi*24*60*60*1e3},...s0},mi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],oA=mi.slice(0).reverse();function mr(e,t,n=!1){const i={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ge(i)}function a0(e,t){let n=t.milliseconds??0;for(const i of oA.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function gg(e,t){const n=a0(e,t)<0?-1:1;mi.reduceRight((i,s)=>{if(Ae(t[s]))return i;if(i){const a=t[i]*n,u=e[s][i],c=Math.floor(a/u);t[s]+=c*n,t[i]-=c*u*n}return s},null),mi.reduce((i,s)=>{if(Ae(t[s]))return i;if(i){const a=t[i]%1;t[i]-=a,t[s]+=a*e[i][s]}return s},null)}function yg(e){const t={};for(const[n,i]of Object.entries(e))i!==0&&(t[n]=i);return t}class Ge{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let i=n?iA:rA;t.matrix&&(i=t.matrix),this.values=t.values,this.loc=t.loc||Qe.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(t,n){return Ge.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new kt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Ge({values:fu(t,Ge.normalizeUnit),loc:Qe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Fr(t))return Ge.fromMillis(t);if(Ge.isDuration(t))return t;if(typeof t=="object")return Ge.fromObject(t);throw new kt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[i]=XN(t);return i?Ge.fromObject(i,n):Ge.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[i]=JN(t);return i?Ge.fromObject(i,n):Ge.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new kt("need to specify a reason the Duration is invalid");const i=t instanceof zn?t:new zn(t,n);if(yt.throwOnInvalid)throw new PI(i);return new Ge({invalid:i})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new mv(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?$t.create(this.loc,i).formatDurationFromString(this,t):mg}toHuman(t={}){if(!this.isValid)return mg;const n=t.showZeros!==!1,i=mi.map(s=>{const a=this.values[s];return Ae(a)||a===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:s.slice(0,-1)}).format(a)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=kf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},ke.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?a0(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t),i={};for(const s of mi)(ao(n.values,s)||ao(this.values,s))&&(i[s]=n.get(s)+this.get(s));return mr(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=Vv(t(this.values[i],i));return mr(this,{values:n},!0)}get(t){return this[Ge.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...fu(t,Ge.normalizeUnit)};return mr(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:i,matrix:s}={}){const u={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:s,conversionAccuracy:i};return mr(this,u)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return gg(this.matrix,t),mr(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=yg(this.normalize().shiftToAll().toObject());return mr(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(u=>Ge.normalizeUnit(u));const n={},i={},s=this.toObject();let a;for(const u of mi)if(t.indexOf(u)>=0){a=u;let c=0;for(const p in i)c+=this.matrix[p][u]*i[p],i[p]=0;Fr(s[u])&&(c+=s[u]);const f=Math.trunc(c);n[u]=f,i[u]=(c*1e3-f*1e3)/1e3}else Fr(s[u])&&(i[u]=s[u]);for(const u in i)i[u]!==0&&(n[a]+=u===a?i[u]:i[u]/this.matrix[a][u]);return gg(this.matrix,n),mr(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return mr(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=yg(this.values);return mr(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of mi)if(!n(this.values[i],t.values[i]))return!1;return!0}}const Gi="Invalid Interval";function sA(e,t){return!e||!e.isValid?mt.invalid("missing or invalid start"):!t||!t.isValid?mt.invalid("missing or invalid end"):t<e?mt.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mt{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new kt("need to specify a reason the Interval is invalid");const i=t instanceof zn?t:new zn(t,n);if(yt.throwOnInvalid)throw new MI(i);return new mt({invalid:i})}static fromDateTimes(t,n){const i=Yo(t),s=Yo(n),a=sA(i,s);return a??new mt({start:i,end:s})}static after(t,n){const i=Ge.fromDurationLike(n),s=Yo(t);return mt.fromDateTimes(s,s.plus(i))}static before(t,n){const i=Ge.fromDurationLike(n),s=Yo(t);return mt.fromDateTimes(s.minus(i),s)}static fromISO(t,n){const[i,s]=(t||"").split("/",2);if(i&&s){let a,u;try{a=ke.fromISO(i,n),u=a.isValid}catch{u=!1}let c,f;try{c=ke.fromISO(s,n),f=c.isValid}catch{f=!1}if(u&&f)return mt.fromDateTimes(a,c);if(u){const p=Ge.fromISO(s,n);if(p.isValid)return mt.after(a,p)}else if(f){const p=Ge.fromISO(i,n);if(p.isValid)return mt.before(c,p)}}return mt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const i=this.start.startOf(t,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:i.locale}):s=this.end,s=s.startOf(t,n),Math.floor(s.diff(i,t).get(t))+(s.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mt.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Yo).filter(u=>this.contains(u)).sort((u,c)=>u.toMillis()-c.toMillis()),i=[];let{s}=this,a=0;for(;s<this.e;){const u=n[a]||this.e,c=+u>+this.e?this.e:u;i.push(mt.fromDateTimes(s,c)),s=c,a+=1}return i}splitBy(t){const n=Ge.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,s=1,a;const u=[];for(;i<this.e;){const c=this.start.plus(n.mapUnits(f=>f*s));a=+c>+this.e?this.e:c,u.push(mt.fromDateTimes(i,a)),i=a,s+=1}return u}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return n>=i?null:mt.fromDateTimes(n,i)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return mt.fromDateTimes(n,i)}static merge(t){const[n,i]=t.sort((s,a)=>s.s-a.s).reduce(([s,a],u)=>a?a.overlaps(u)||a.abutsStart(u)?[s,a.union(u)]:[s.concat([a]),u]:[s,u],[[],null]);return i&&n.push(i),n}static xor(t){let n=null,i=0;const s=[],a=t.map(f=>[{time:f.s,type:"s"},{time:f.e,type:"e"}]),u=Array.prototype.concat(...a),c=u.sort((f,p)=>f.time-p.time);for(const f of c)i+=f.type==="s"?1:-1,i===1?n=f.time:(n&&+n!=+f.time&&s.push(mt.fromDateTimes(n,f.time)),n=null);return mt.merge(s)}difference(...t){return mt.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Gi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=uu,n={}){return this.isValid?$t.create(this.s.loc.clone(n),t).formatInterval(this):Gi}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Gi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Gi}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Gi}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Gi}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ge.invalid(this.invalidReason)}mapEndpoints(t){return mt.fromDateTimes(t(this.s),t(this.e))}}class $a{static hasDST(t=yt.defaultZone){const n=ke.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return br.isValidZone(t)}static normalizeZone(t){return Lr(t,yt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Qe.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Qe.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Qe.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:a="gregory"}={}){return(s||Qe.create(n,i,a)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:a="gregory"}={}){return(s||Qe.create(n,i,a)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Qe.create(n,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Qe.create(n,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Qe.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Qe.create(n,null,"gregory").eras(t)}static features(){return{relative:jv(),localeWeek:Hv()}}}function vg(e,t){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(Ge.fromMillis(i).as("days"))}function aA(e,t,n){const i=[["years",(f,p)=>p.year-f.year],["quarters",(f,p)=>p.quarter-f.quarter+(p.year-f.year)*4],["months",(f,p)=>p.month-f.month+(p.year-f.year)*12],["weeks",(f,p)=>{const h=vg(f,p);return(h-h%7)/7}],["days",vg]],s={},a=e;let u,c;for(const[f,p]of i)n.indexOf(f)>=0&&(u=f,s[f]=p(e,t),c=a.plus(s),c>t?(s[f]--,e=a.plus(s),e>t&&(c=e,s[f]--,e=a.plus(s))):e=c);return[e,s,c,u]}function uA(e,t,n,i){let[s,a,u,c]=aA(e,t,n);const f=t-s,p=n.filter(S=>["hours","minutes","seconds","milliseconds"].indexOf(S)>=0);p.length===0&&(u<t&&(u=s.plus({[c]:1})),u!==s&&(a[c]=(a[c]||0)+f/(u-s)));const h=Ge.fromObject(a,i);return p.length>0?Ge.fromMillis(f,i).shiftTo(...p).plus(h):h}const lA="missing Intl.DateTimeFormat.formatToParts support";function Ze(e,t=n=>n){return{regex:e,deser:([n])=>t(QI(n))}}const cA=" ",u0=`[ ${cA}]`,l0=new RegExp(u0,"g");function fA(e){return e.replace(/\./g,"\\.?").replace(l0,u0)}function bg(e){return e.replace(/\./g,"").replace(l0," ").toLowerCase()}function Ln(e,t){return e===null?null:{regex:RegExp(e.map(fA).join("|")),deser:([n])=>e.findIndex(i=>bg(n)===bg(i))+t}}function wg(e,t){return{regex:e,deser:([,n,i])=>Lu(n,i),groups:t}}function La(e){return{regex:e,deser:([t])=>t}}function dA(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function pA(e,t){const n=$n(t),i=$n(t,"{2}"),s=$n(t,"{3}"),a=$n(t,"{4}"),u=$n(t,"{6}"),c=$n(t,"{1,2}"),f=$n(t,"{1,3}"),p=$n(t,"{1,6}"),h=$n(t,"{1,9}"),S=$n(t,"{2,4}"),R=$n(t,"{4,6}"),w=v=>({regex:RegExp(dA(v.val)),deser:([g])=>g,literal:!0}),y=(v=>{if(e.literal)return w(v);switch(v.val){case"G":return Ln(t.eras("short"),0);case"GG":return Ln(t.eras("long"),0);case"y":return Ze(p);case"yy":return Ze(S,Kc);case"yyyy":return Ze(a);case"yyyyy":return Ze(R);case"yyyyyy":return Ze(u);case"M":return Ze(c);case"MM":return Ze(i);case"MMM":return Ln(t.months("short",!0),1);case"MMMM":return Ln(t.months("long",!0),1);case"L":return Ze(c);case"LL":return Ze(i);case"LLL":return Ln(t.months("short",!1),1);case"LLLL":return Ln(t.months("long",!1),1);case"d":return Ze(c);case"dd":return Ze(i);case"o":return Ze(f);case"ooo":return Ze(s);case"HH":return Ze(i);case"H":return Ze(c);case"hh":return Ze(i);case"h":return Ze(c);case"mm":return Ze(i);case"m":return Ze(c);case"q":return Ze(c);case"qq":return Ze(i);case"s":return Ze(c);case"ss":return Ze(i);case"S":return Ze(f);case"SSS":return Ze(s);case"u":return La(h);case"uu":return La(c);case"uuu":return Ze(n);case"a":return Ln(t.meridiems(),0);case"kkkk":return Ze(a);case"kk":return Ze(S,Kc);case"W":return Ze(c);case"WW":return Ze(i);case"E":case"c":return Ze(n);case"EEE":return Ln(t.weekdays("short",!1),1);case"EEEE":return Ln(t.weekdays("long",!1),1);case"ccc":return Ln(t.weekdays("short",!0),1);case"cccc":return Ln(t.weekdays("long",!0),1);case"Z":case"ZZ":return wg(new RegExp(`([+-]${c.source})(?::(${i.source}))?`),2);case"ZZZ":return wg(new RegExp(`([+-]${c.source})(${i.source})?`),2);case"z":return La(/[a-z_+-/]{1,256}?/i);case" ":return La(/[^\S\n\r]/);default:return w(v)}})(e)||{invalidReason:lA};return y.token=e,y}const hA={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function mA(e,t,n){const{type:i,value:s}=e;if(i==="literal"){const f=/^\s+$/.test(s);return{literal:!f,val:f?" ":s}}const a=t[i];let u=i;i==="hour"&&(t.hour12!=null?u=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?u="hour12":u="hour24":u=n.hour12?"hour12":"hour24");let c=hA[u];if(typeof c=="object"&&(c=c[a]),c)return{literal:!1,val:c}}function gA(e){return[`^${e.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,e]}function yA(e,t,n){const i=e.match(t);if(i){const s={};let a=1;for(const u in n)if(ao(n,u)){const c=n[u],f=c.groups?c.groups+1:1;!c.literal&&c.token&&(s[c.token.val[0]]=c.deser(i.slice(a,a+f))),a+=f}return[i,s]}else return[i,{}]}function vA(e){const t=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return Ae(e.z)||(n=br.create(e.z)),Ae(e.Z)||(n||(n=new Ut(e.Z)),i=e.Z),Ae(e.q)||(e.M=(e.q-1)*3+1),Ae(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ae(e.u)||(e.S=Af(e.u)),[Object.keys(e).reduce((a,u)=>{const c=t(u);return c&&(a[c]=e[u]),a},{}),n,i]}let xc=null;function bA(){return xc||(xc=ke.fromMillis(1555555555555)),xc}function wA(e,t){if(e.literal)return e;const n=$t.macroTokenToFormatOpts(e.val),i=p0(n,t);return i==null||i.includes(void 0)?e:i}function c0(e,t){return Array.prototype.concat(...e.map(n=>wA(n,t)))}class f0{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=c0($t.parseFormat(n),t),this.units=this.tokens.map(i=>pA(i,t)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){const[i,s]=gA(this.units);this.regex=RegExp(i,"i"),this.handlers=s}}explainFromTokens(t){if(this.isValid){const[n,i]=yA(t,this.regex,this.handlers),[s,a,u]=i?vA(i):[null,null,void 0];if(ao(i,"a")&&ao(i,"H"))throw new Ki("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:i,result:s,zone:a,specificOffset:u}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function d0(e,t,n){return new f0(e,n).explainFromTokens(t)}function xA(e,t,n){const{result:i,zone:s,specificOffset:a,invalidReason:u}=d0(e,t,n);return[i,s,a,u]}function p0(e,t){if(!e)return null;const i=$t.create(t,e).dtFormatter(bA()),s=i.formatToParts(),a=i.resolvedOptions();return s.map(u=>mA(u,e,a))}const Sc="Invalid DateTime",SA=864e13;function ts(e){return new zn("unsupported zone",`the zone "${e.name}" is not supported`)}function Ec(e){return e.weekData===null&&(e.weekData=lu(e.c)),e.weekData}function Oc(e){return e.localWeekData===null&&(e.localWeekData=lu(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function oi(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ke({...n,...t,old:n})}function h0(e,t,n){let i=e-t*60*1e3;const s=n.offset(i);if(t===s)return[i,t];i-=(s-t)*60*1e3;const a=n.offset(i);return s===a?[i,s]:[e-Math.min(s,a)*60*1e3,Math.max(s,a)]}function za(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Ua(e,t,n){return h0($u(e),t,n)}function xg(e,t){const n=e.o,i=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:i,month:s,day:Math.min(e.c.day,cu(i,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},u=Ge.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=$u(a);let[f,p]=h0(c,n,e.zone);return u!==0&&(f+=u,p=e.zone.offset(f)),{ts:f,o:p}}function Yi(e,t,n,i,s,a){const{setZone:u,zone:c}=n;if(e&&Object.keys(e).length!==0||t){const f=t||c,p=ke.fromObject(e,{...n,zone:f,specificOffset:a});return u?p:p.setZone(c)}else return ke.invalid(new zn("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Fa(e,t,n=!0){return e.isValid?$t.create(Qe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Tc(e,t,n){const i=e.c.year>9999||e.c.year<0;let s="";if(i&&e.c.year>=0&&(s+="+"),s+=St(e.c.year,i?6:4),n==="year")return s;if(t){if(s+="-",s+=St(e.c.month),n==="month")return s;s+="-"}else if(s+=St(e.c.month),n==="month")return s;return s+=St(e.c.day),s}function Sg(e,t,n,i,s,a,u){let c=!n||e.c.millisecond!==0||e.c.second!==0,f="";switch(u){case"day":case"month":case"year":break;default:if(f+=St(e.c.hour),u==="hour")break;if(t){if(f+=":",f+=St(e.c.minute),u==="minute")break;c&&(f+=":",f+=St(e.c.second))}else{if(f+=St(e.c.minute),u==="minute")break;c&&(f+=St(e.c.second))}if(u==="second")break;c&&(!i||e.c.millisecond!==0)&&(f+=".",f+=St(e.c.millisecond,3))}return s&&(e.isOffsetFixed&&e.offset===0&&!a?f+="Z":e.o<0?(f+="-",f+=St(Math.trunc(-e.o/60)),f+=":",f+=St(Math.trunc(-e.o%60))):(f+="+",f+=St(Math.trunc(e.o/60)),f+=":",f+=St(Math.trunc(e.o%60)))),a&&(f+="["+e.zone.ianaName+"]"),f}const m0={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},EA={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},OA={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ja=["year","month","day","hour","minute","second","millisecond"],TA=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],CA=["year","ordinal","hour","minute","second","millisecond"];function Ha(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new mv(e);return t}function Eg(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ha(e)}}function _A(e){if(ns===void 0&&(ns=yt.now()),e.type!=="iana")return e.offset(ns);const t=e.name;let n=Jc.get(t);return n===void 0&&(n=e.offset(ns),Jc.set(t,n)),n}function Og(e,t){const n=Lr(t.zone,yt.defaultZone);if(!n.isValid)return ke.invalid(ts(n));const i=Qe.fromObject(t);let s,a;if(Ae(e.year))s=yt.now();else{for(const f of ja)Ae(e[f])&&(e[f]=m0[f]);const u=Bv(e)||Uv(e);if(u)return ke.invalid(u);const c=_A(n);[s,a]=Ua(e,c,n)}return new ke({ts:s,zone:n,loc:i,o:a})}function Tg(e,t,n){const i=Ae(n.round)?!0:n.round,s=Ae(n.rounding)?"trunc":n.rounding,a=(c,f)=>(c=kf(c,i||n.calendary?0:2,n.calendary?"round":s),t.loc.clone(n).relFormatter(n).format(c,f)),u=c=>n.calendary?t.hasSame(e,c)?0:t.startOf(c).diff(e.startOf(c),c).get(c):t.diff(e,c).get(c);if(n.unit)return a(u(n.unit),n.unit);for(const c of n.units){const f=u(c);if(Math.abs(f)>=1)return a(f,c)}return a(e>t?-0:0,n.units[n.units.length-1])}function Cg(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let ns;const Jc=new Map;class ke{constructor(t){const n=t.zone||yt.defaultZone;let i=t.invalid||(Number.isNaN(t.ts)?new zn("invalid input"):null)||(n.isValid?null:ts(n));this.ts=Ae(t.ts)?yt.now():t.ts;let s=null,a=null;if(!i)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[s,a]=[t.old.c,t.old.o];else{const c=Fr(t.o)&&!t.old?t.o:n.offset(this.ts);s=za(this.ts,c),i=Number.isNaN(s.year)?new zn("invalid input"):null,s=i?null:s,a=i?null:c}this._zone=n,this.loc=t.loc||Qe.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=s,this.o=a,this.isLuxonDateTime=!0}static now(){return new ke({})}static local(){const[t,n]=Cg(arguments),[i,s,a,u,c,f,p]=n;return Og({year:i,month:s,day:a,hour:u,minute:c,second:f,millisecond:p},t)}static utc(){const[t,n]=Cg(arguments),[i,s,a,u,c,f,p]=n;return t.zone=Ut.utcInstance,Og({year:i,month:s,day:a,hour:u,minute:c,second:f,millisecond:p},t)}static fromJSDate(t,n={}){const i=iN(t)?t.valueOf():NaN;if(Number.isNaN(i))return ke.invalid("invalid input");const s=Lr(n.zone,yt.defaultZone);return s.isValid?new ke({ts:i,zone:s,loc:Qe.fromObject(n)}):ke.invalid(ts(s))}static fromMillis(t,n={}){if(Fr(t))return t<-864e13||t>SA?ke.invalid("Timestamp out of range"):new ke({ts:t,zone:Lr(n.zone,yt.defaultZone),loc:Qe.fromObject(n)});throw new kt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Fr(t))return new ke({ts:t*1e3,zone:Lr(n.zone,yt.defaultZone),loc:Qe.fromObject(n)});throw new kt("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const i=Lr(n.zone,yt.defaultZone);if(!i.isValid)return ke.invalid(ts(i));const s=Qe.fromObject(n),a=fu(t,Eg),{minDaysInFirstWeek:u,startOfWeek:c}=cg(a,s),f=yt.now(),p=Ae(n.specificOffset)?i.offset(f):n.specificOffset,h=!Ae(a.ordinal),S=!Ae(a.year),R=!Ae(a.month)||!Ae(a.day),w=S||R,C=a.weekYear||a.weekNumber;if((w||h)&&C)throw new Ki("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(R&&h)throw new Ki("Can't mix ordinal dates with month/day");const y=C||a.weekday&&!w;let v,g,m=za(f,p);y?(v=TA,g=EA,m=lu(m,u,c)):h?(v=CA,g=OA,m=wc(m)):(v=ja,g=m0);let x=!1;for(const K of v){const Z=a[K];Ae(Z)?x?a[K]=g[K]:a[K]=m[K]:x=!0}const E=y?tN(a,u,c):h?nN(a):Bv(a),T=E||Uv(a);if(T)return ke.invalid(T);const P=y?ug(a,u,c):h?lg(a):a,[D,A]=Ua(P,p,i),z=new ke({ts:D,zone:i,o:A,loc:s});return a.weekday&&w&&t.weekday!==z.weekday?ke.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${z.toISO()}`):z.isValid?z:ke.invalid(z.invalid)}static fromISO(t,n={}){const[i,s]=GN(t);return Yi(i,s,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[i,s]=YN(t);return Yi(i,s,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[i,s]=ZN(t);return Yi(i,s,n,"HTTP",n)}static fromFormat(t,n,i={}){if(Ae(t)||Ae(n))throw new kt("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:a=null}=i,u=Qe.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0}),[c,f,p,h]=xA(u,t,n);return h?ke.invalid(h):Yi(c,f,i,`format ${n}`,t,p)}static fromString(t,n,i={}){return ke.fromFormat(t,n,i)}static fromSQL(t,n={}){const[i,s]=nA(t);return Yi(i,s,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new kt("need to specify a reason the DateTime is invalid");const i=t instanceof zn?t:new zn(t,n);if(yt.throwOnInvalid)throw new DI(i);return new ke({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const i=p0(t,Qe.fromObject(n));return i?i.map(s=>s?s.val:null).join(""):null}static expandFormat(t,n={}){return c0($t.parseFormat(t),Qe.fromObject(n)).map(s=>s.val).join("")}static resetCache(){ns=void 0,Jc.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ec(this).weekYear:NaN}get weekNumber(){return this.isValid?Ec(this).weekNumber:NaN}get weekday(){return this.isValid?Ec(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Oc(this).weekday:NaN}get localWeekNumber(){return this.isValid?Oc(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Oc(this).weekYear:NaN}get ordinal(){return this.isValid?wc(this.c).ordinal:NaN}get monthShort(){return this.isValid?$a.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?$a.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?$a.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?$a.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,i=$u(this.c),s=this.zone.offset(i-t),a=this.zone.offset(i+t),u=this.zone.offset(i-s*n),c=this.zone.offset(i-a*n);if(u===c)return[this];const f=i-u*n,p=i-c*n,h=za(f,u),S=za(p,c);return h.hour===S.hour&&h.minute===S.minute&&h.second===S.second&&h.millisecond===S.millisecond?[oi(this,{ts:f}),oi(this,{ts:p})]:[this]}get isInLeapYear(){return Os(this.year)}get daysInMonth(){return cu(this.year,this.month)}get daysInYear(){return this.isValid?eo(this.year):NaN}get weeksInWeekYear(){return this.isValid?hs(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?hs(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:i,calendar:s}=$t.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:s}}toUTC(t=0,n={}){return this.setZone(Ut.instance(t),n)}toLocal(){return this.setZone(yt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(t=Lr(t,yt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let s=this.ts;if(n||i){const a=t.offset(this.ts),u=this.toObject();[s]=Ua(u,a,t)}return oi(this,{ts:s,zone:t})}else return ke.invalid(ts(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:i}={}){const s=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:i});return oi(this,{loc:s})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=fu(t,Eg),{minDaysInFirstWeek:i,startOfWeek:s}=cg(n,this.loc),a=!Ae(n.weekYear)||!Ae(n.weekNumber)||!Ae(n.weekday),u=!Ae(n.ordinal),c=!Ae(n.year),f=!Ae(n.month)||!Ae(n.day),p=c||f,h=n.weekYear||n.weekNumber;if((p||u)&&h)throw new Ki("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Ki("Can't mix ordinal dates with month/day");let S;a?S=ug({...lu(this.c,i,s),...n},i,s):Ae(n.ordinal)?(S={...this.toObject(),...n},Ae(n.day)&&(S.day=Math.min(cu(S.year,S.month),S.day))):S=lg({...wc(this.c),...n});const[R,w]=Ua(S,this.o,this.zone);return oi(this,{ts:R,o:w})}plus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t);return oi(this,xg(this,n))}minus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t).negate();return oi(this,xg(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},s=Ge.normalizeUnit(t);switch(s){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(s==="weeks")if(n){const a=this.loc.getStartOfWeek(),{weekday:u}=this;u<a&&(i.weekNumber=this.weekNumber-1),i.weekday=a}else i.weekday=1;if(s==="quarters"){const a=Math.ceil(this.month/3);i.month=(a-1)*3+1}return this.set(i)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?$t.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Sc}toLocaleString(t=uu,n={}){return this.isValid?$t.create(this.loc.clone(n),t).formatDateTime(this):Sc}toLocaleParts(t={}){return this.isValid?$t.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:a=!1,precision:u="milliseconds"}={}){if(!this.isValid)return null;u=Ha(u);const c=t==="extended";let f=Tc(this,c,u);return ja.indexOf(u)>=3&&(f+="T"),f+=Sg(this,c,n,i,s,a,u),f}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Tc(this,t==="extended",Ha(n)):null}toISOWeekDate(){return Fa(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:a=!1,format:u="extended",precision:c="milliseconds"}={}){return this.isValid?(c=Ha(c),(s&&ja.indexOf(c)>=3?"T":"")+Sg(this,u==="extended",n,t,i,a,c)):null}toRFC2822(){return Fa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Fa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Tc(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(n||t)&&(i&&(s+=" "),n?s+="z":t&&(s+="ZZ")),Fa(this,s,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Sc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",i={}){if(!this.isValid||!t.isValid)return Ge.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},a=oN(n).map(Ge.normalizeUnit),u=t.valueOf()>this.valueOf(),c=u?this:t,f=u?t:this,p=uA(c,f,a,s);return u?p.negate():p}diffNow(t="milliseconds",n={}){return this.diff(ke.now(),t,n)}until(t){return this.isValid?mt.fromDateTimes(this,t):this}hasSame(t,n,i){if(!this.isValid)return!1;const s=t.valueOf(),a=this.setZone(t.zone,{keepLocalTime:!0});return a.startOf(n,i)<=s&&s<=a.endOf(n,i)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||ke.fromObject({},{zone:this.zone}),i=t.padding?this<n?-t.padding:t.padding:0;let s=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(s=t.unit,a=void 0),Tg(n,this.plus(i),{...t,numeric:"always",units:s,unit:a})}toRelativeCalendar(t={}){return this.isValid?Tg(t.base||ke.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(ke.isDateTime))throw new kt("min requires all arguments be DateTimes");return fg(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(ke.isDateTime))throw new kt("max requires all arguments be DateTimes");return fg(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,i={}){const{locale:s=null,numberingSystem:a=null}=i,u=Qe.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0});return d0(u,t,n)}static fromStringExplain(t,n,i={}){return ke.fromFormatExplain(t,n,i)}static buildFormatParser(t,n={}){const{locale:i=null,numberingSystem:s=null}=n,a=Qe.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});return new f0(a,t)}static fromFormatParser(t,n,i={}){if(Ae(t)||Ae(n))throw new kt("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:a=null}=i,u=Qe.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0});if(!u.equals(n.locale))throw new kt(`fromFormatParser called with a locale of ${u}, but the format parser was created for ${n.locale}`);const{result:c,zone:f,specificOffset:p,invalidReason:h}=n.explainFromTokens(t);return h?ke.invalid(h):Yi(c,f,i,`format ${n.format}`,t,p)}static get DATE_SHORT(){return uu}static get DATE_MED(){return gv}static get DATE_MED_WITH_WEEKDAY(){return II}static get DATE_FULL(){return yv}static get DATE_HUGE(){return vv}static get TIME_SIMPLE(){return bv}static get TIME_WITH_SECONDS(){return wv}static get TIME_WITH_SHORT_OFFSET(){return xv}static get TIME_WITH_LONG_OFFSET(){return Sv}static get TIME_24_SIMPLE(){return Ev}static get TIME_24_WITH_SECONDS(){return Ov}static get TIME_24_WITH_SHORT_OFFSET(){return Tv}static get TIME_24_WITH_LONG_OFFSET(){return Cv}static get DATETIME_SHORT(){return _v}static get DATETIME_SHORT_WITH_SECONDS(){return Rv}static get DATETIME_MED(){return Dv}static get DATETIME_MED_WITH_SECONDS(){return Mv}static get DATETIME_MED_WITH_WEEKDAY(){return NI}static get DATETIME_FULL(){return Pv}static get DATETIME_FULL_WITH_SECONDS(){return Iv}static get DATETIME_HUGE(){return Nv}static get DATETIME_HUGE_WITH_SECONDS(){return Av}}function Yo(e){if(ke.isDateTime(e))return e;if(e&&e.valueOf&&Fr(e.valueOf()))return ke.fromJSDate(e);if(e&&typeof e=="object")return ke.fromObject(e);throw new kt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const RA=e=>e?ke.fromISO(e):null,DA=e=>e.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,""),g0=()=>"";function MA(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.substring(0,e.length+1)===e+"=")return decodeURIComponent(i.substring(e.length+1))}return null}function PA(e,t,n=365){if(typeof document>"u")return;const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),document.cookie=`${e}=${encodeURIComponent(t)};expires=${i.toUTCString()};path=/;SameSite=Lax`}function IA(e){typeof document>"u"||(document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;SameSite=Lax`)}exports.BREAKPOINT_INFO=Xi;exports.BreakpointIndicator=fv;exports.CenteredHeading=tR;exports.CollapsingButtons=VR;exports.CompoundPanel=UR;exports.DialogOpener=pI;exports.Dialogs=bI;exports.EditModeToggler=cI;exports.EventBus=qa;exports.ExtendedDialog=pv;exports.FormDialog=hI;exports.GridItem=bP;exports.GridItemProvider=yP;exports.LoadingScreen=fR;exports.NavigationFilter=Q_;exports.NavigationSectionBuilder=eR;exports.Notifications=CI;exports.Panel=Sy;exports.PanelProvider=my;exports.ResponsiveGridLayout=tI;exports.Scroller=di;exports.ScrollerProvider=cy;exports.Section=Ey;exports.SpeedDialButton=mP;exports.USER_PRESETS_KEY=Ss;exports.UserBus=Va;exports.apiPrefix=g0;exports.calculateNavigationFromSections=ef;exports.closeDialog=vI;exports.convertObjectKeysToCamelCase=Wc;exports.convertObjectKeysToUnderscore=Bc;exports.createGridItem=vP;exports.deleteCookie=IA;exports.deleteUserPreset=rI;exports.eventBus=VO;exports.filterNavigationByRole=rT;exports.getAllMicroservices=Ag;exports.getAllRegisteredMicroservices=Pg;exports.getApiPrefix=g0;exports.getCookie=MA;exports.getFromLS=cv;exports.getMicroservice=sT;exports.getMicroserviceIds=aT;exports.getUserPresets=Nu;exports.isMicroserviceRegistered=uT;exports.openDialog=yI;exports.parseDate=RA;exports.registerDialog=mI;exports.registerMicroservice=iT;exports.registerRouteProvider=lT;exports.saveToLS=Fc;exports.saveUserPreset=nI;exports.setCookie=PA;exports.slugify=DA;exports.unregisterMicroservice=oT;exports.unregisterRouteProvider=cT;exports.updateMicroserviceNavigationForSections=Ig;exports.updateUserPreset=iI;exports.useCurrentUser=Rg;exports.useGridItemContext=gP;exports.useGridLayout=Of;exports.useGridLayoutManagement=sI;exports.useMicroserviceNavigation=dT;exports.useMicroserviceRegistryStore=tf;exports.useMicroserviceRoutes=fT;exports.useNavigationFilterStore=Wr;exports.useNavigationSectionManager=pT;exports.useNavigationStore=gr;exports.useNotificationStore=Mf;exports.usePanelContext=Bn;exports.usePanelStore=lo;exports.useRetry=dI;exports.useScrollContext=fy;exports.useSyncNavigationFilters=vT;exports.useUserActions=Dg;exports.useUserPreferences=GO;exports.userBus=Yt;
|