react-luminus-components 2.0.3-table-e1072f3ac7ab089b3730d01d4f27df97ece501c0 → 2.0.5-beta.r19-1
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 +349 -349
- package/dist/.vite/manifest.json +52 -46
- package/dist/FormDisabledProvider-BGEKOIzq.cjs +1 -0
- package/dist/FormDisabledProvider-DLOuFqTN.js +51 -0
- package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +6 -3
- package/dist/components/Documents/components/DocumentsModals/components/CreateFolderModal/hooks/useDocCreateFolderForm.d.ts +4 -1
- package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/hooks/useEditFileForm.d.ts +6 -1
- package/dist/components/Documents/hooks/useDocumentsReducer.d.ts +1 -1
- package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +6 -3
- package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +3 -1
- package/dist/components/Flexmonster/Flexmonster.d.ts +1 -1
- package/dist/components/Flexmonster/hooks/useReportVersionApi.d.ts +1 -1
- package/dist/components/Flexmonster/utils/flexMonsterUtils.d.ts +1 -1
- package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +1 -1
- package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +1 -1
- package/dist/components/HookForm/MiniDetailWrapper/MiniDetailWrapper.d.ts +1 -1
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +4 -17
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +7 -38
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +8 -38
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +8 -38
- package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +7 -7
- package/dist/components/NotifCenter/Actions/components/HistoryTable/NotificationHistoryTable.d.ts +1 -1
- package/dist/components/NotifCenter/Actions/types/NotificationKindFullModel.d.ts +5 -0
- package/dist/components/ResponsiveContextDropdown/components/ResponsiveContextDropdownItem/ResponsiveContextDropdownItem.d.ts +1 -1
- package/dist/components/ResponsiveContextDropdown/hooks/useReponsiveContextDropdownHelpers.d.ts +2 -2
- package/dist/components/ResponsiveContextDropdown/utils/responsiveContextDropdownUtils.d.ts +1 -1
- package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +2 -2
- package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -1
- package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +1 -1
- package/dist/components/common/ColumnResizer/ColumnResizer.d.ts +1 -1
- package/dist/components/common/DisabledRowLabelLink/DisabledRowLabelLink.d.ts +1 -1
- package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +7 -3
- package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +3 -1
- package/dist/components/common/HomeDashboard/comps/HomeDashboardWidget/HomeDashboardWidget.d.ts +15 -0
- package/dist/components/common/LineChart/comps/LineChartTooltip/LineChartTooltip.d.ts +2 -2
- package/dist/components/common/PermissionsSubstitute/Detail/hooks/useSubstDetailForm.d.ts +8 -1
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/PhotoPreviews.d.ts +15 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/PhotoPreview.d.ts +14 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/PreviewShadow/PreviewShadow.d.ts +5 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/index.d.ts +1 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/index.d.ts +1 -0
- package/dist/components/common/PhotoLightbox/comps/index.d.ts +1 -0
- package/dist/components/common/QrCode/QrCode.d.ts +1 -1
- package/dist/components/common/RouteLink/RouteLink.d.ts +1 -1
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +7 -2
- package/dist/components/common/index.d.ts +0 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +542 -941
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useAxios/useAxios.d.ts +5 -2
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -1
- package/dist/hooks/useGetApiDataBound/useGetApiDataBound.d.ts +3 -0
- package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +4 -2
- package/dist/hooks/useIsFormDirty/useIsFormDirty.d.ts +7 -0
- package/dist/hooks/usePersistentState/usePersistentState.d.ts +2 -0
- package/dist/hooks/useScrollSave/useScrollSave.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +204 -125
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +278 -142
- package/dist/{localStorageUtils-NrZA2Syo.js → localStorageUtils-CZ4HDRzi.js} +19 -9
- package/dist/localStorageUtils-CkZslzIU.cjs +1 -0
- package/dist/main.cjs.js +22 -184
- package/dist/main.es.js +11326 -11435
- package/dist/models/bntTable/IBnfTableDefColumn.d.ts +40 -0
- package/dist/models/prop-types/InputContainerProps.d.ts +4 -12
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +6 -1
- package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +4 -2
- package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +1 -1
- package/dist/models/prop-types/InputProps/TextInputProps.d.ts +1 -1
- package/dist/models/ui/notifications/NotificationHistoryTableModel.d.ts +6 -0
- package/dist/nivo-bar-BuQvk7Aq.cjs +326 -0
- package/dist/nivo-bar-W-IB9CF6.js +41891 -0
- package/dist/style.css +1 -1
- package/dist/useIsFormDirty-B4keXaXH.js +123 -0
- package/dist/useIsFormDirty-CNKHbm_I.cjs +1 -0
- package/dist/useLocalStorageState-CMAthsbd.js +95 -0
- package/dist/useLocalStorageState-f6nawg6B.cjs +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/route/apiPathUtils.d.ts +1 -1
- package/dist/utils/storages/queryStorage.d.ts +3 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +128 -127
- package/dist/variables.scss +165 -165
- package/package.json +128 -123
- package/dist/FormDisabledProvider-BENIIq5o.cjs +0 -1
- package/dist/FormDisabledProvider-DN0NV09N.js +0 -40
- package/dist/ShortcutLinksContext-CVP_4yAx.js +0 -39866
- package/dist/ShortcutLinksContext-D_psima9.cjs +0 -334
- package/dist/components/common/StrictModeDroppable/StrictModeDroppable.d.ts +0 -5
- package/dist/localStorageUtils-CFey67IX.cjs +0 -1
- package/dist/useLocalStorageState-87deuPpL.js +0 -78
- package/dist/useLocalStorageState-BtFEXGD_.cjs +0 -1
- package/dist/useRenderDraggableInPortal-D0OLp7Qb.js +0 -78
- package/dist/useRenderDraggableInPortal-QPCaw-E_.cjs +0 -1
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
"use strict";const h=require("react"),is=require("react-router-dom"),qM=require("@azure/msal-browser"),Wy=require("@azure/msal-react"),un=require("react-dom"),kn=require("react-hook-form");require("react-flexmonster");function YM(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ie=YM(h);var lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lm={exports:{}},As={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Uy;function GM(){if(Uy)return As;Uy=1;var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,l){var u,d={},f=null,p=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(p=c.ref);for(u in c)r.call(c,u)&&!o.hasOwnProperty(u)&&(d[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:s,key:f,ref:p,props:d,_owner:i.current}}return As.Fragment=n,As.jsx=a,As.jsxs=a,As}var js={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Vy;function KM(){return Vy||(Vy=1,process.env.NODE_ENV!=="production"&&function(){var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function v(q){if(q===null||typeof q!="object")return null;var he=g&&q[g]||q[m];return typeof he=="function"?he:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(q){{for(var he=arguments.length,le=new Array(he>1?he-1:0),fe=1;fe<he;fe++)le[fe-1]=arguments[fe];_("error",q,le)}}function _(q,he,le){{var fe=x.ReactDebugCurrentFrame,$e=fe.getStackAddendum();$e!==""&&(he+="%s",le=le.concat([$e]));var Ie=le.map(function(Te){return String(Te)});Ie.unshift("Warning: "+he),Function.prototype.apply.call(console[q],console,Ie)}}var C=!1,y=!1,$=!1,E=!1,T=!1,k;k=Symbol.for("react.module.reference");function O(q){return!!(typeof q=="string"||typeof q=="function"||q===r||q===o||T||q===i||q===l||q===u||E||q===p||C||y||$||typeof q=="object"&&q!==null&&(q.$$typeof===f||q.$$typeof===d||q.$$typeof===a||q.$$typeof===s||q.$$typeof===c||q.$$typeof===k||q.getModuleId!==void 0))}function S(q,he,le){var fe=q.displayName;if(fe)return fe;var $e=he.displayName||he.name||"";return $e!==""?le+"("+$e+")":le}function M(q){return q.displayName||"Context"}function A(q){if(q==null)return null;if(typeof q.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof q=="function")return q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof q=="object")switch(q.$$typeof){case s:var he=q;return M(he)+".Consumer";case a:var le=q;return M(le._context)+".Provider";case c:return S(q,q.render,"ForwardRef");case d:var fe=q.displayName||null;return fe!==null?fe:A(q.type)||"Memo";case f:{var $e=q,Ie=$e._payload,Te=$e._init;try{return A(Te(Ie))}catch{return null}}}return null}var j=Object.assign,L=0,N,F,U,z,I,W,Y;function J(){}J.__reactDisabledLog=!0;function X(){{if(L===0){N=console.log,F=console.info,U=console.warn,z=console.error,I=console.group,W=console.groupCollapsed,Y=console.groupEnd;var q={configurable:!0,enumerable:!0,value:J,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}L++}}function Z(){{if(L--,L===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},q,{value:N}),info:j({},q,{value:F}),warn:j({},q,{value:U}),error:j({},q,{value:z}),group:j({},q,{value:I}),groupCollapsed:j({},q,{value:W}),groupEnd:j({},q,{value:Y})})}L<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=x.ReactCurrentDispatcher,te;function P(q,he,le){{if(te===void 0)try{throw Error()}catch($e){var fe=$e.stack.trim().match(/\n( *(at )?)/);te=fe&&fe[1]||""}return`
|
|
18
|
-
`+te+q}}var D=!1,B;{var H=typeof WeakMap=="function"?WeakMap:Map;B=new H}function R(q,he){if(!q||D)return"";{var le=B.get(q);if(le!==void 0)return le}var fe;D=!0;var $e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ie;Ie=Q.current,Q.current=null,X();try{if(he){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(Ce){fe=Ce}Reflect.construct(q,[],Te)}else{try{Te.call()}catch(Ce){fe=Ce}q.call(Te.prototype)}}else{try{throw Error()}catch(Ce){fe=Ce}q()}}catch(Ce){if(Ce&&fe&&typeof Ce.stack=="string"){for(var Ne=Ce.stack.split(`
|
|
19
|
-
`),He=fe.stack.split(`
|
|
20
|
-
`),ze=Ne.length-1,st=He.length-1;ze>=1&&st>=0&&Ne[ze]!==He[st];)st--;for(;ze>=1&&st>=0;ze--,st--)if(Ne[ze]!==He[st]){if(ze!==1||st!==1)do if(ze--,st--,st<0||Ne[ze]!==He[st]){var nn=`
|
|
21
|
-
`+Ne[ze].replace(" at new "," at ");return q.displayName&&nn.includes("<anonymous>")&&(nn=nn.replace("<anonymous>",q.displayName)),typeof q=="function"&&B.set(q,nn),nn}while(ze>=1&&st>=0);break}}}finally{D=!1,Q.current=Ie,Z(),Error.prepareStackTrace=$e}var Ut=q?q.displayName||q.name:"",cn=Ut?P(Ut):"";return typeof q=="function"&&B.set(q,cn),cn}function G(q,he,le){return R(q,!1)}function ee(q){var he=q.prototype;return!!(he&&he.isReactComponent)}function ne(q,he,le){if(q==null)return"";if(typeof q=="function")return R(q,ee(q));if(typeof q=="string")return P(q);switch(q){case l:return P("Suspense");case u:return P("SuspenseList")}if(typeof q=="object")switch(q.$$typeof){case c:return G(q.render);case d:return ne(q.type,he,le);case f:{var fe=q,$e=fe._payload,Ie=fe._init;try{return ne(Ie($e),he,le)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,oe={},ae=x.ReactDebugCurrentFrame;function me(q){if(q){var he=q._owner,le=ne(q.type,q._source,he?he.type:null);ae.setExtraStackFrame(le)}else ae.setExtraStackFrame(null)}function ve(q,he,le,fe,$e){{var Ie=Function.call.bind(de);for(var Te in q)if(Ie(q,Te)){var Ne=void 0;try{if(typeof q[Te]!="function"){var He=Error((fe||"React class")+": "+le+" type `"+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[Te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw He.name="Invariant Violation",He}Ne=q[Te](he,Te,fe,le,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ze){Ne=ze}Ne&&!(Ne instanceof Error)&&(me($e),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",fe||"React class",le,Te,typeof Ne),me(null)),Ne instanceof Error&&!(Ne.message in oe)&&(oe[Ne.message]=!0,me($e),w("Failed %s type: %s",le,Ne.message),me(null))}}}var Ee=Array.isArray;function Se(q){return Ee(q)}function Me(q){{var he=typeof Symbol=="function"&&Symbol.toStringTag,le=he&&q[Symbol.toStringTag]||q.constructor.name||"Object";return le}}function ge(q){try{return _e(q),!1}catch{return!0}}function _e(q){return""+q}function ce(q){if(ge(q))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Me(q)),_e(q)}var Oe=x.ReactCurrentOwner,Ue={key:!0,ref:!0,__self:!0,__source:!0},Ot,qe,ht;ht={};function _t(q){if(de.call(q,"ref")){var he=Object.getOwnPropertyDescriptor(q,"ref").get;if(he&&he.isReactWarning)return!1}return q.ref!==void 0}function Vt(q){if(de.call(q,"key")){var he=Object.getOwnPropertyDescriptor(q,"key").get;if(he&&he.isReactWarning)return!1}return q.key!==void 0}function gt(q,he){if(typeof q.ref=="string"&&Oe.current&&he&&Oe.current.stateNode!==he){var le=A(Oe.current.type);ht[le]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(Oe.current.type),q.ref),ht[le]=!0)}}function bt(q,he){{var le=function(){Ot||(Ot=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",he))};le.isReactWarning=!0,Object.defineProperty(q,"key",{get:le,configurable:!0})}}function Ct(q,he){{var le=function(){qe||(qe=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",he))};le.isReactWarning=!0,Object.defineProperty(q,"ref",{get:le,configurable:!0})}}var Ht=function(q,he,le,fe,$e,Ie,Te){var Ne={$$typeof:t,type:q,key:he,ref:le,props:Te,_owner:Ie};return Ne._store={},Object.defineProperty(Ne._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ne,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.defineProperty(Ne,"_source",{configurable:!1,enumerable:!1,writable:!1,value:$e}),Object.freeze&&(Object.freeze(Ne.props),Object.freeze(Ne)),Ne};function Be(q,he,le,fe,$e){{var Ie,Te={},Ne=null,He=null;le!==void 0&&(ce(le),Ne=""+le),Vt(he)&&(ce(he.key),Ne=""+he.key),_t(he)&&(He=he.ref,gt(he,$e));for(Ie in he)de.call(he,Ie)&&!Ue.hasOwnProperty(Ie)&&(Te[Ie]=he[Ie]);if(q&&q.defaultProps){var ze=q.defaultProps;for(Ie in ze)Te[Ie]===void 0&&(Te[Ie]=ze[Ie])}if(Ne||He){var st=typeof q=="function"?q.displayName||q.name||"Unknown":q;Ne&&bt(Te,st),He&&Ct(Te,st)}return Ht(q,Ne,He,$e,fe,Oe.current,Te)}}var Pe=x.ReactCurrentOwner,et=x.ReactDebugCurrentFrame;function Ve(q){if(q){var he=q._owner,le=ne(q.type,q._source,he?he.type:null);et.setExtraStackFrame(le)}else et.setExtraStackFrame(null)}var tt;tt=!1;function nt(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function $t(){{if(Pe.current){var q=A(Pe.current.type);if(q)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+q+"`."}return""}}function pt(q){return""}var ut={};function xt(q){{var he=$t();if(!he){var le=typeof q=="string"?q:q.displayName||q.name;le&&(he=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+le+">.")}return he}}function yt(q,he){{if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var le=xt(he);if(ut[le])return;ut[le]=!0;var fe="";q&&q._owner&&q._owner!==Pe.current&&(fe=" It was passed a child from "+A(q._owner.type)+"."),Ve(q),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',le,fe),Ve(null)}}function at(q,he){{if(typeof q!="object")return;if(Se(q))for(var le=0;le<q.length;le++){var fe=q[le];nt(fe)&&yt(fe,he)}else if(nt(q))q._store&&(q._store.validated=!0);else if(q){var $e=v(q);if(typeof $e=="function"&&$e!==q.entries)for(var Ie=$e.call(q),Te;!(Te=Ie.next()).done;)nt(Te.value)&&yt(Te.value,he)}}}function St(q){{var he=q.type;if(he==null||typeof he=="string")return;var le;if(typeof he=="function")le=he.propTypes;else if(typeof he=="object"&&(he.$$typeof===c||he.$$typeof===d))le=he.propTypes;else return;if(le){var fe=A(he);ve(le,q.props,"prop",fe,q)}else if(he.PropTypes!==void 0&&!tt){tt=!0;var $e=A(he);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$e||"Unknown")}typeof he.getDefaultProps=="function"&&!he.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mt(q){{for(var he=Object.keys(q.props),le=0;le<he.length;le++){var fe=he[le];if(fe!=="children"&&fe!=="key"){Ve(q),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),Ve(null);break}}q.ref!==null&&(Ve(q),w("Invalid attribute `ref` supplied to `React.Fragment`."),Ve(null))}}var we={};function Re(q,he,le,fe,$e,Ie){{var Te=O(q);if(!Te){var Ne="";(q===void 0||typeof q=="object"&&q!==null&&Object.keys(q).length===0)&&(Ne+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var He=pt();He?Ne+=He:Ne+=$t();var ze;q===null?ze="null":Se(q)?ze="array":q!==void 0&&q.$$typeof===t?(ze="<"+(A(q.type)||"Unknown")+" />",Ne=" Did you accidentally export a JSX literal instead of a component?"):ze=typeof q,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ze,Ne)}var st=Be(q,he,le,$e,Ie);if(st==null)return st;if(Te){var nn=he.children;if(nn!==void 0)if(fe)if(Se(nn)){for(var Ut=0;Ut<nn.length;Ut++)at(nn[Ut],q);Object.freeze&&Object.freeze(nn)}else w("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 at(nn,q)}if(de.call(he,"key")){var cn=A(q),Ce=Object.keys(he).filter(function(xr){return xr!=="key"}),xn=Ce.length>0?"{key: someKey, "+Ce.join(": ..., ")+": ...}":"{key: someKey}";if(!we[cn+xn]){var qt=Ce.length>0?"{"+Ce.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,xn,cn,qt,cn),we[cn+xn]=!0}}return q===r?Mt(st):St(st),st}}function De(q,he,le){return Re(q,he,le,!0)}function Ke(q,he,le){return Re(q,he,le,!1)}var Ye=Ke,Et=De;js.Fragment=r,js.jsx=Ye,js.jsxs=Et}()),js}process.env.NODE_ENV==="production"?Lm.exports=GM():Lm.exports=KM();var b=Lm.exports,aC={exports:{}};/*!
|
|
31
|
-
Copyright (c) 2018 Jed Watson.
|
|
32
|
-
Licensed under the MIT License (MIT), see
|
|
33
|
-
http://jedwatson.github.io/classnames
|
|
34
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(aC);var ZM=aC.exports;const ue=rn(ZM);function Ln(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function mi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function XM(e,t){const n=+Ln(e);return mi(e,n+t)}const QM=365.2425,xv=6048e5,JM=864e5,wv=6e4,ff=36e5,sC=3600,e6=60,_v=sC*24,t6=_v*7,cC=_v*QM,lC=cC/12,n6=lC*3;function uC(e,t){return XM(e,t*ff)}let r6={};function hf(){return r6}function Ia(e,t){var s,c,l,u;const n=hf(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,i=Ln(e),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function nd(e){return Ia(e,{weekStartsOn:1})}function dC(e){const t=Ln(e),n=t.getFullYear(),r=mi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=nd(r),o=mi(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=nd(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Fm(e){const t=Ln(e);return t.setHours(0,0,0,0),t}function Bm(e){const t=Ln(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function fC(e,t){const n=Fm(e),r=Fm(t),i=+n-Bm(n),o=+r-Bm(r);return Math.round((i-o)/JM)}function i6(e){const t=dC(e),n=mi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),nd(n)}function o6(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function a6(e){if(!o6(e)&&typeof e!="number")return!1;const t=Ln(e);return!isNaN(Number(t))}function s6(e){const t=Ln(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function c6(e){const t=Ln(e),n=mi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const l6={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},u6=(e,t,n)=>{let r;const i=l6[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function gp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const d6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},f6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},h6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},p6={date:gp({formats:d6,defaultWidth:"full"}),time:gp({formats:f6,defaultWidth:"full"}),dateTime:gp({formats:h6,defaultWidth:"full"})},m6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},g6=(e,t,n,r)=>m6[e];function Ns(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const v6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},b6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},y6={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},x6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},w6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},C6=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},$6={ordinalNumber:C6,era:Ns({values:v6,defaultWidth:"wide"}),quarter:Ns({values:b6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ns({values:y6,defaultWidth:"wide"}),day:Ns({values:x6,defaultWidth:"wide"}),dayPeriod:Ns({values:w6,defaultWidth:"wide",formattingValues:_6,defaultFormattingWidth:"wide"})};function Ds(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?E6(s,d=>d.test(a)):S6(s,d=>d.test(a));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(a.length);return{value:l,rest:u}}}function S6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function E6(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function T6(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const k6=/^(\d+)(th|st|nd|rd)?/i,O6=/\d+/i,M6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},R6={any:[/^b/i,/^(a|c)/i]},A6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},j6={any:[/1/i,/2/i,/3/i,/4/i]},N6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},D6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},I6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},P6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},L6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},F6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},B6={ordinalNumber:T6({matchPattern:k6,parsePattern:O6,valueCallback:e=>parseInt(e,10)}),era:Ds({matchPatterns:M6,defaultMatchWidth:"wide",parsePatterns:R6,defaultParseWidth:"any"}),quarter:Ds({matchPatterns:A6,defaultMatchWidth:"wide",parsePatterns:j6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ds({matchPatterns:N6,defaultMatchWidth:"wide",parsePatterns:D6,defaultParseWidth:"any"}),day:Ds({matchPatterns:I6,defaultMatchWidth:"wide",parsePatterns:P6,defaultParseWidth:"any"}),dayPeriod:Ds({matchPatterns:L6,defaultMatchWidth:"any",parsePatterns:F6,defaultParseWidth:"any"})},z6={code:"en-US",formatDistance:u6,formatLong:p6,formatRelative:g6,localize:$6,match:B6,options:{weekStartsOn:0,firstWeekContainsDate:1}};function W6(e){const t=Ln(e);return fC(t,c6(t))+1}function U6(e){const t=Ln(e),n=+nd(t)-+i6(t);return Math.round(n/xv)+1}function hC(e,t){var u,d,f,p;const n=Ln(e),r=n.getFullYear(),i=hf(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=mi(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Ia(a,t),c=mi(e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const l=Ia(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function V6(e,t){var s,c,l,u;const n=hf(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,i=hC(e,t),o=mi(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ia(o,t)}function H6(e,t){const n=Ln(e),r=+Ia(n,t)-+V6(n,t);return Math.round(r/xv)+1}function Pt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Oi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Pt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Pt(n+1,2)},d(e,t){return Pt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Pt(e.getHours()%12||12,t.length)},H(e,t){return Pt(e.getHours(),t.length)},m(e,t){return Pt(e.getMinutes(),t.length)},s(e,t){return Pt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Pt(i,t.length)}},ca={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hy={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Oi.y(e,t)},Y:function(e,t,n,r){const i=hC(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Pt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Pt(o,t.length)},R:function(e,t){const n=dC(e);return Pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Pt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Pt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Pt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Oi.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Pt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=H6(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Pt(i,t.length)},I:function(e,t,n){const r=U6(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Pt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Oi.d(e,t)},D:function(e,t,n){const r=W6(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Pt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Pt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Pt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Pt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ca.noon:r===0?i=ca.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ca.evening:r>=12?i=ca.afternoon:r>=4?i=ca.morning:i=ca.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Oi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Oi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Oi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Oi.s(e,t)},S:function(e,t){return Oi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Yy(r);case"XXXX":case"XX":return bo(r);case"XXXXX":case"XXX":default:return bo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Yy(r);case"xxxx":case"xx":return bo(r);case"xxxxx":case"xxx":default:return bo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+qy(r,":");case"OOOO":default:return"GMT"+bo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+qy(r,":");case"zzzz":default:return"GMT"+bo(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Pt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Pt(r,t.length)}};function qy(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Pt(o,2)}function Yy(e,t){return e%60===0?(e>0?"-":"+")+Pt(Math.abs(e)/60,2):bo(e,t)}function bo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Pt(Math.trunc(r/60),2),o=Pt(r%60,2);return n+i+t+o}const Gy=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},pC=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},q6=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Gy(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Gy(r,t)).replace("{{time}}",pC(i,t))},Y6={p:pC,P:q6},G6=/^D+$/,K6=/^Y+$/,Z6=["D","DD","YY","YYYY"];function X6(e){return G6.test(e)}function Q6(e){return K6.test(e)}function J6(e,t,n){const r=e5(e,t,n);if(console.warn(r),Z6.includes(e))throw new RangeError(r)}function e5(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const t5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,n5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,r5=/^'([^]*?)'?$/,i5=/''/g,o5=/[a-zA-Z]/;function Cv(e,t,n){var u,d,f,p,g,m,v,x;const r=hf(),i=(n==null?void 0:n.locale)??r.locale??z6,o=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((x=(v=r.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,s=Ln(e);if(!a6(s))throw new RangeError("Invalid time value");let c=t.match(n5).map(w=>{const _=w[0];if(_==="p"||_==="P"){const C=Y6[_];return C(w,i.formatLong)}return w}).join("").match(t5).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const _=w[0];if(_==="'")return{isToken:!1,value:a5(w)};if(Hy[_])return{isToken:!0,value:w};if(_.match(o5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(w=>{if(!w.isToken)return w.value;const _=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Q6(_)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&X6(_))&&J6(_,t,String(e));const C=Hy[_[0]];return C(s,_,i.localize,l)}).join("")}function a5(e){const t=e.match(r5);return t?t[1].replace(i5,"'"):e}function mC(e){return+Ln(e)<Date.now()}function pf(e,t){const r=u5(e);let i;if(r.date){const c=d5(r.date,2);i=f5(c.restDateString,c.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=h5(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=p5(r.timezone),isNaN(s))return new Date(NaN)}else{const c=new Date(o+a),l=new Date(0);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}return new Date(o+a+s)}const su={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s5=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c5=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l5=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u5(e){const t={},n=e.split(su.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],su.timeZoneDelimiter.test(t.date)&&(t.date=e.split(su.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=su.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function d5(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function f5(e,t){if(t===null)return new Date(NaN);const n=e.match(s5);if(!n)return new Date(NaN);const r=!!n[4],i=Is(n[1]),o=Is(n[2])-1,a=Is(n[3]),s=Is(n[4]),c=Is(n[5])-1;if(r)return y5(t,s,c)?m5(t,s,c):new Date(NaN);{const l=new Date(0);return!v5(t,o,a)||!b5(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}}function Is(e){return e?parseInt(e):1}function h5(e){const t=e.match(c5);if(!t)return NaN;const n=vp(t[1]),r=vp(t[2]),i=vp(t[3]);return x5(n,r,i)?n*ff+r*wv+i*1e3:NaN}function vp(e){return e&&parseFloat(e.replace(",","."))||0}function p5(e){if(e==="Z")return 0;const t=e.match(l5);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return w5(r,i)?n*(r*ff+i*wv):NaN}function m5(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const g5=[31,null,31,30,31,30,31,31,30,31,30,31];function gC(e){return e%400===0||e%4===0&&e%100!==0}function v5(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(g5[t]||(gC(e)?29:28))}function b5(e,t){return t>=1&&t<=(gC(e)?366:365)}function y5(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function x5(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function w5(e,t){return t>=0&&t<=59}function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rd.apply(null,arguments)}function $v(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var _5=function(e,t,n,r,i,o,a,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],u=0;c=new Error(t.replace(/%s/g,function(){return l[u++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},C5=_5;const zm=rn(C5);function Ky(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function $5(e){var t=S5(e,"string");return typeof t=="symbol"?t:String(t)}function S5(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vC(e,t,n){var r=h.useRef(e!==void 0),i=h.useState(t),o=i[0],a=i[1],s=e!==void 0,c=r.current;return r.current=s,!s&&c&&o!==t&&a(t),[s?e:o,h.useCallback(function(l){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[l].concat(d)),a(l)},[n])]}function Sv(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[Ky(r)],s=o[r],c=$v(o,[Ky(r),r].map($5)),l=t[r],u=vC(s,a,e[l]),d=u[0],f=u[1];return rd({},c,(i={},i[r]=d,i[l]=f,i))},e)}function Wm(e,t){return Wm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Wm(e,t)}function bC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wm(e,t)}const E5=["xxl","xl","lg","md","sm","xs"],T5="xs",mf=ie.createContext({prefixes:{},breakpoints:E5,minBreakpoint:T5});function mt(e,t){const{prefixes:n}=h.useContext(mf);return e||n[t]||t}function yC(){const{breakpoints:e}=h.useContext(mf);return e}function xC(){const{minBreakpoint:e}=h.useContext(mf);return e}function gf(){const{dir:e}=h.useContext(mf);return e==="rtl"}function os(e){return e&&e.ownerDocument||document}function k5(e){var t=os(e);return t&&t.defaultView||window}function O5(e,t){return k5(e).getComputedStyle(e,t)}var M5=/([A-Z])/g;function R5(e){return e.replace(M5,"-$1").toLowerCase()}var A5=/^ms-/;function cu(e){return R5(e).replace(A5,"-ms-")}var j5=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function N5(e){return!!(e&&j5.test(e))}function Yi(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(cu(t))||O5(e).getPropertyValue(cu(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(cu(i)):N5(i)?r+=i+"("+o+") ":n+=cu(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Um={exports:{}},lu={exports:{}},At={};/** @license React v16.13.1
|
|
35
|
-
* react-is.production.min.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Zy;function D5(){if(Zy)return At;Zy=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function _(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case c:case l:case r:case o:case i:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case u:case g:case p:case a:return y;default:return $}}case n:return $}}}function C(y){return _(y)===l}return At.AsyncMode=c,At.ConcurrentMode=l,At.ContextConsumer=s,At.ContextProvider=a,At.Element=t,At.ForwardRef=u,At.Fragment=r,At.Lazy=g,At.Memo=p,At.Portal=n,At.Profiler=o,At.StrictMode=i,At.Suspense=d,At.isAsyncMode=function(y){return C(y)||_(y)===c},At.isConcurrentMode=C,At.isContextConsumer=function(y){return _(y)===s},At.isContextProvider=function(y){return _(y)===a},At.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},At.isForwardRef=function(y){return _(y)===u},At.isFragment=function(y){return _(y)===r},At.isLazy=function(y){return _(y)===g},At.isMemo=function(y){return _(y)===p},At.isPortal=function(y){return _(y)===n},At.isProfiler=function(y){return _(y)===o},At.isStrictMode=function(y){return _(y)===i},At.isSuspense=function(y){return _(y)===d},At.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===l||y===o||y===i||y===d||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===a||y.$$typeof===s||y.$$typeof===u||y.$$typeof===v||y.$$typeof===x||y.$$typeof===w||y.$$typeof===m)},At.typeOf=_,At}var jt={};/** @license React v16.13.1
|
|
42
|
-
* react-is.development.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var Xy;function I5(){return Xy||(Xy=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,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function _(R){return typeof R=="string"||typeof R=="function"||R===r||R===l||R===o||R===i||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===p||R.$$typeof===a||R.$$typeof===s||R.$$typeof===u||R.$$typeof===v||R.$$typeof===x||R.$$typeof===w||R.$$typeof===m)}function C(R){if(typeof R=="object"&&R!==null){var G=R.$$typeof;switch(G){case t:var ee=R.type;switch(ee){case c:case l:case r:case o:case i:case d:return ee;default:var ne=ee&&ee.$$typeof;switch(ne){case s:case u:case g:case p:case a:return ne;default:return G}}case n:return G}}}var y=c,$=l,E=s,T=a,k=t,O=u,S=r,M=g,A=p,j=n,L=o,N=i,F=d,U=!1;function z(R){return U||(U=!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.")),I(R)||C(R)===c}function I(R){return C(R)===l}function W(R){return C(R)===s}function Y(R){return C(R)===a}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function X(R){return C(R)===u}function Z(R){return C(R)===r}function Q(R){return C(R)===g}function te(R){return C(R)===p}function P(R){return C(R)===n}function D(R){return C(R)===o}function B(R){return C(R)===i}function H(R){return C(R)===d}jt.AsyncMode=y,jt.ConcurrentMode=$,jt.ContextConsumer=E,jt.ContextProvider=T,jt.Element=k,jt.ForwardRef=O,jt.Fragment=S,jt.Lazy=M,jt.Memo=A,jt.Portal=j,jt.Profiler=L,jt.StrictMode=N,jt.Suspense=F,jt.isAsyncMode=z,jt.isConcurrentMode=I,jt.isContextConsumer=W,jt.isContextProvider=Y,jt.isElement=J,jt.isForwardRef=X,jt.isFragment=Z,jt.isLazy=Q,jt.isMemo=te,jt.isPortal=P,jt.isProfiler=D,jt.isStrictMode=B,jt.isSuspense=H,jt.isValidElementType=_,jt.typeOf=C}()),jt}var Qy;function Ev(){return Qy||(Qy=1,process.env.NODE_ENV==="production"?lu.exports=D5():lu.exports=I5()),lu.exports}/*
|
|
49
|
-
object-assign
|
|
50
|
-
(c) Sindre Sorhus
|
|
51
|
-
@license MIT
|
|
52
|
-
*/var bp,Jy;function P5(){if(Jy)return bp;Jy=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return bp=i()?Object.assign:function(o,a){for(var s,c=r(o),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},bp}var yp,e1;function Tv(){if(e1)return yp;e1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return yp=e,yp}var xp,t1;function wC(){return t1||(t1=1,xp=Function.call.bind(Object.prototype.hasOwnProperty)),xp}var wp,n1;function L5(){if(n1)return wp;n1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Tv(),n={},r=wC();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in o)if(r(o,u)){var d;try{if(typeof o[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[u](a,u,c,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+d.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},wp=i,wp}var _p,r1;function F5(){if(r1)return _p;r1=1;var e=Ev(),t=P5(),n=Tv(),r=wC(),i=L5(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return _p=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(I){var W=I&&(l&&I[l]||I[u]);if(typeof W=="function")return W}var f="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:_,element:C(),elementType:y(),instanceOf:$,node:O(),objectOf:T,oneOf:E,oneOfType:k,shape:M,exact:A};function g(I,W){return I===W?I!==0||1/I===1/W:I!==I&&W!==W}function m(I,W){this.message=I,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function v(I){if(process.env.NODE_ENV!=="production")var W={},Y=0;function J(Z,Q,te,P,D,B,H){if(P=P||f,B=B||te,H!==n){if(c){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}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var G=P+":"+te;!W[G]&&Y<3&&(o("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+P+"`. 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[G]=!0,Y++)}}return Q[te]==null?Z?Q[te]===null?new m("The "+D+" `"+B+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new m("The "+D+" `"+B+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:I(Q,te,P,D,B)}var X=J.bind(null,!1);return X.isRequired=J.bind(null,!0),X}function x(I){function W(Y,J,X,Z,Q,te){var P=Y[J],D=N(P);if(D!==I){var B=F(P);return new m("Invalid "+Z+" `"+Q+"` of type "+("`"+B+"` supplied to `"+X+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return v(W)}function w(){return v(a)}function _(I){function W(Y,J,X,Z,Q){if(typeof I!="function")return new m("Property `"+Q+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var te=Y[J];if(!Array.isArray(te)){var P=N(te);return new m("Invalid "+Z+" `"+Q+"` of type "+("`"+P+"` supplied to `"+X+"`, expected an array."))}for(var D=0;D<te.length;D++){var B=I(te,D,X,Z,Q+"["+D+"]",n);if(B instanceof Error)return B}return null}return v(W)}function C(){function I(W,Y,J,X,Z){var Q=W[Y];if(!s(Q)){var te=N(Q);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+te+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return v(I)}function y(){function I(W,Y,J,X,Z){var Q=W[Y];if(!e.isValidElementType(Q)){var te=N(Q);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+te+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return v(I)}function $(I){function W(Y,J,X,Z,Q){if(!(Y[J]instanceof I)){var te=I.name||f,P=z(Y[J]);return new m("Invalid "+Z+" `"+Q+"` of type "+("`"+P+"` supplied to `"+X+"`, expected ")+("instance of `"+te+"`."))}return null}return v(W)}function E(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function W(Y,J,X,Z,Q){for(var te=Y[J],P=0;P<I.length;P++)if(g(te,I[P]))return null;var D=JSON.stringify(I,function(H,R){var G=F(R);return G==="symbol"?String(R):R});return new m("Invalid "+Z+" `"+Q+"` of value `"+String(te)+"` "+("supplied to `"+X+"`, expected one of "+D+"."))}return v(W)}function T(I){function W(Y,J,X,Z,Q){if(typeof I!="function")return new m("Property `"+Q+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var te=Y[J],P=N(te);if(P!=="object")return new m("Invalid "+Z+" `"+Q+"` of type "+("`"+P+"` supplied to `"+X+"`, expected an object."));for(var D in te)if(r(te,D)){var B=I(te,D,X,Z,Q+"."+D,n);if(B instanceof Error)return B}return null}return v(W)}function k(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<I.length;W++){var Y=I[W];if(typeof Y!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(Y)+" at index "+W+"."),a}function J(X,Z,Q,te,P){for(var D=[],B=0;B<I.length;B++){var H=I[B],R=H(X,Z,Q,te,P,n);if(R==null)return null;R.data&&r(R.data,"expectedType")&&D.push(R.data.expectedType)}var G=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new m("Invalid "+te+" `"+P+"` supplied to "+("`"+Q+"`"+G+"."))}return v(J)}function O(){function I(W,Y,J,X,Z){return j(W[Y])?null:new m("Invalid "+X+" `"+Z+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return v(I)}function S(I,W,Y,J,X){return new m((I||"React class")+": "+W+" type `"+Y+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function M(I){function W(Y,J,X,Z,Q){var te=Y[J],P=N(te);if(P!=="object")return new m("Invalid "+Z+" `"+Q+"` of type `"+P+"` "+("supplied to `"+X+"`, expected `object`."));for(var D in I){var B=I[D];if(typeof B!="function")return S(X,Z,Q,D,F(B));var H=B(te,D,X,Z,Q+"."+D,n);if(H)return H}return null}return v(W)}function A(I){function W(Y,J,X,Z,Q){var te=Y[J],P=N(te);if(P!=="object")return new m("Invalid "+Z+" `"+Q+"` of type `"+P+"` "+("supplied to `"+X+"`, expected `object`."));var D=t({},Y[J],I);for(var B in D){var H=I[B];if(r(I,B)&&typeof H!="function")return S(X,Z,Q,B,F(H));if(!H)return new m("Invalid "+Z+" `"+Q+"` key `"+B+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(Y[J],null," ")+`
|
|
53
|
-
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var R=H(te,B,X,Z,Q+"."+B,n);if(R)return R}return null}return v(W)}function j(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(j);if(I===null||s(I))return!0;var W=d(I);if(W){var Y=W.call(I),J;if(W!==I.entries){for(;!(J=Y.next()).done;)if(!j(J.value))return!1}else for(;!(J=Y.next()).done;){var X=J.value;if(X&&!j(X[1]))return!1}}else return!1;return!0;default:return!1}}function L(I,W){return I==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function N(I){var W=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":L(W,I)?"symbol":W}function F(I){if(typeof I>"u"||I===null)return""+I;var W=N(I);if(W==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return W}function U(I){var W=F(I);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function z(I){return!I.constructor||!I.constructor.name?f:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},_p}var Cp,i1;function B5(){if(i1)return Cp;i1=1;var e=Tv();function t(){}function n(){}return n.resetWarningCache=t,Cp=function(){function r(a,s,c,l,u,d){if(d!==e){var f=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 f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Cp}if(process.env.NODE_ENV!=="production"){var z5=Ev(),W5=!0;Um.exports=F5()(z5.isElement,W5)}else Um.exports=B5()();var U5=Um.exports;const K=rn(U5),o1={disabled:!1};var V5=process.env.NODE_ENV!=="production"?K.oneOfType([K.number,K.shape({enter:K.number,exit:K.number,appear:K.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&K.oneOfType([K.string,K.shape({enter:K.string,exit:K.string,active:K.string}),K.shape({enter:K.string,enterDone:K.string,enterActive:K.string,exit:K.string,exitDone:K.string,exitActive:K.string})]);const _C=h.createContext(null);var H5=function(t){return t.scrollTop},oc="unmounted",Di="exited",si="entering",Fi="entered",id="exiting",$i=function(e){bC(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?s?(c=Di,o.appearStatus=si):c=Fi:r.unmountOnExit||r.mountOnEnter?c=oc:c=Di,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===oc?{status:Di}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==si&&a!==Fi&&(o=si):(a===si||a===Fi)&&(o=id)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===si){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this);a&&H5(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Di&&this.setState({status:oc})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[un.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!a||o1.disabled){this.safeSetState({status:Fi},function(){o.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:si},function(){o.props.onEntering(l,u),o.onTransitionEnd(f,function(){o.safeSetState({status:Fi},function(){o.props.onEntered(l,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:un.findDOMNode(this);if(!o||o1.disabled){this.safeSetState({status:Di},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:id},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Di},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===oc)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=$v(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(_C.Provider,{value:null},typeof a=="function"?a(i,s):h.cloneElement(h.Children.only(a),s))},t}(h.Component);$i.contextType=_C;$i.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:K.shape({current:typeof Element>"u"?K.any:function(e,t,n,r,i,o){var a=e[t];return K.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:K.oneOfType([K.func.isRequired,K.element.isRequired]).isRequired,in:K.bool,mountOnEnter:K.bool,unmountOnExit:K.bool,appear:K.bool,enter:K.bool,exit:K.bool,timeout:function(t){var n=V5;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:K.func,onEnter:K.func,onEntering:K.func,onEntered:K.func,onExit:K.func,onExiting:K.func,onExited:K.func}:{};function la(){}$i.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:la,onEntering:la,onEntered:la,onExit:la,onExiting:la,onExited:la};$i.UNMOUNTED=oc;$i.EXITED=Di;$i.ENTERING=si;$i.ENTERED=Fi;$i.EXITING=id;const as=!!(typeof window<"u"&&window.document&&window.document.createElement);var Vm=!1,Hm=!1;try{var $p={get passive(){return Vm=!0},get once(){return Hm=Vm=!0}};as&&(window.addEventListener("test",$p,$p),window.removeEventListener("test",$p,!0))}catch{}function kv(e,t,n,r){if(r&&typeof r!="boolean"&&!Hm){var i=r.once,o=r.capture,a=n;!Hm&&i&&(a=n.__once||function s(c){this.removeEventListener(t,s,o),n.call(this,c)},n.__once=a),e.addEventListener(t,a,Vm?r:o)}e.addEventListener(t,n,r)}function qm(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function ui(e,t,n,r){return kv(e,t,n,r),function(){qm(e,t,n,r)}}function q5(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function Y5(e){var t=Yi(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function G5(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||q5(e,"transitionend",!0)},t+n),o=ui(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function CC(e,t,n,r){n==null&&(n=Y5(e)||0);var i=G5(e,n,r),o=ui(e,"transitionend",t);return function(){i(),o()}}function a1(e,t){const n=Yi(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function $C(e,t){const n=a1(e,"transitionDuration"),r=a1(e,"transitionDelay"),i=CC(e,o=>{o.target===e&&(i(),t(o))},n+r)}function SC(e){e.offsetHeight}const s1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function K5(e,t){const n=s1(e),r=s1(t);return i=>{n&&n(i),r&&r(i)}}function br(e,t){return h.useMemo(()=>K5(e,t),[e,t])}function od(e){return e&&"setState"in e?un.findDOMNode(e):e??null}const EC=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:c,...l},u)=>{const d=h.useRef(null),f=br(d,c),p=$=>{f(od($))},g=$=>E=>{$&&d.current&&$(d.current,E)},m=h.useCallback(g(e),[e]),v=h.useCallback(g(t),[t]),x=h.useCallback(g(n),[n]),w=h.useCallback(g(r),[r]),_=h.useCallback(g(i),[i]),C=h.useCallback(g(o),[o]),y=h.useCallback(g(a),[a]);return b.jsx($i,{ref:u,...l,onEnter:m,onEntered:x,onEntering:v,onExit:w,onExited:C,onExiting:_,addEndListener:y,nodeRef:d,children:typeof s=="function"?($,E)=>s($,{...E,ref:p}):h.cloneElement(s,{ref:p})})});function Z5(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function en(e){const t=Z5(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Ov=e=>ie.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:ue(t.className,e)})),TC=Ov("h4");TC.displayName="DivStyledAsH4";const kC=ie.forwardRef(({className:e,bsPrefix:t,as:n=TC,...r},i)=>(t=mt(t,"alert-heading"),b.jsx(n,{ref:i,className:ue(e,t),...r})));kC.displayName="AlertHeading";function ad(){return h.useState(null)}function X5(e,t,n,r=!1){const i=en(n);h.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,i,r),()=>o.removeEventListener(t,i,r)},[e])}function Mv(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function OC(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const Q5=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",J5=typeof document<"u",Sc=J5||Q5?h.useLayoutEffect:h.useEffect,eR=["as","disabled"];function tR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nR(e){return!e||e.trim()==="#"}function Rv({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:a,tabIndex:s=0,type:c}){e||(n!=null||r!=null||i!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},l];const u=f=>{if((t||e==="a"&&nR(n))&&f.preventDefault(),t){f.stopPropagation();return}a==null||a(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:d},l]}const Av=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=tR(e,eR);const[o,{tagName:a}]=Rv(Object.assign({tagName:n,disabled:r},i));return b.jsx(a,Object.assign({},i,o,{ref:t}))});Av.displayName="Button";const rR=["onKeyDown"];function iR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function oR(e){return!e||e.trim()==="#"}const jv=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=iR(e,rR);const[i]=Rv(Object.assign({tagName:"a"},r)),o=en(a=>{i.onKeyDown(a),n==null||n(a)});return oR(r.href)||r.role==="button"?b.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:o})):b.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});jv.displayName="Anchor";const MC=ie.forwardRef(({className:e,bsPrefix:t,as:n=jv,...r},i)=>(t=mt(t,"alert-link"),b.jsx(n,{ref:i,className:ue(e,t),...r})));MC.displayName="AlertLink";function RC(e){return e.code==="Escape"||e.keyCode===27}function AC(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const aR={[si]:"show",[Fi]:"show"},Ki=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=h.useCallback((u,d)=>{SC(u),r==null||r(u,d)},[r]),{major:c}=AC(),l=c>=19?t.props.ref:t.ref;return b.jsx(EC,{ref:o,addEndListener:$C,...a,onEnter:s,childRef:l,children:(u,d)=>ie.cloneElement(t,{...d,className:ue("fade",e,t.props.className,aR[u],n[u])})})});Ki.displayName="Fade";const sR={"aria-label":K.string,onClick:K.func,variant:K.oneOf(["white"])},vf=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:ue("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));vf.displayName="CloseButton";vf.propTypes=sR;const jC=ie.forwardRef((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:o,className:a,children:s,variant:c="primary",onClose:l,dismissible:u,transition:d=Ki,...f}=Sv(e,{show:"onClose"}),p=mt(n,"alert"),g=en(x=>{l&&l(!1,x)}),m=d===!0?Ki:d,v=b.jsxs("div",{role:"alert",...m?void 0:f,ref:t,className:ue(a,p,c&&`${p}-${c}`,u&&`${p}-dismissible`),children:[u&&b.jsx(vf,{onClick:g,"aria-label":i,variant:o}),s]});return m?b.jsx(m,{unmountOnExit:!0,...f,ref:void 0,in:r,children:v}):r?v:null});jC.displayName="Alert";const cR=Object.assign(jC,{Link:MC,Heading:kC}),Nv=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:a,...s},c)=>{const l=mt(t,"btn"),[u,{tagName:d}]=Rv({tagName:e,disabled:o,...s}),f=d;return b.jsx(f,{...u,...s,ref:c,disabled:o,className:ue(a,l,i&&"active",n&&`${l}-${n}`,r&&`${l}-${r}`,s.href&&o&&"disabled")})});Nv.displayName="Button";function lR(e){const t=h.useRef(e);return t.current=e,t}function Dv(e){const t=lR(e);h.useEffect(()=>()=>t.current(),[])}const Ym=2**31-1;function NC(e,t,n){const r=n-Date.now();e.current=r<=Ym?setTimeout(t,r):setTimeout(()=>NC(e,t,n),Ym)}function uR(){const e=Mv(),t=h.useRef();return Dv(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=Ym?t.current=setTimeout(i,o):NC(t,i,Date.now()+o))}return{set:r,clear:n,handleRef:t}},[])}function dR(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function DC({as:e,bsPrefix:t,className:n,...r}){t=mt(t,"col");const i=yC(),o=xC(),a=[],s=[];return i.forEach(c=>{const l=r[c];delete r[c];let u,d,f;typeof l=="object"&&l!=null?{span:u,offset:d,order:f}=l:u=l;const p=c!==o?`-${c}`:"";u&&a.push(u===!0?`${t}${p}`:`${t}${p}-${u}`),f!=null&&s.push(`order${p}-${f}`),d!=null&&s.push(`offset${p}-${d}`)}),[{...r,className:ue(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const Iv=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=DC(e);return b.jsx(i,{...r,ref:t,className:ue(n,!a.length&&o)})});Iv.displayName="Col";var fR=Function.prototype.bind.call(Function.prototype.call,[].slice);function ci(e,t){return fR(e.querySelectorAll(t))}function hR(e,t,n){const r=h.useRef(e!==void 0),[i,o]=h.useState(t),a=e!==void 0,s=r.current;return r.current=a,!a&&s&&i!==t&&o(t),[a?e:i,h.useCallback((...c)=>{const[l,...u]=c;let d=n==null?void 0:n(l,...u);return o(l),d},[n])]}function IC(){const[,e]=h.useReducer(t=>!t,!1);return e}const bf=ie.createContext(null);var c1=Object.prototype.hasOwnProperty;function l1(e,t,n){for(n of e.keys())if(dc(n,t))return n}function dc(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&dc(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=l1(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=l1(t,i),!i)||!dc(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(c1.call(e,n)&&++r&&!c1.call(t,n)||!(n in t)||!dc(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function pR(e){const t=Mv();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Un="top",pr="bottom",mr="right",Vn="left",Pv="auto",xl=[Un,pr,mr,Vn],Pa="start",Ec="end",mR="clippingParents",PC="viewport",Ps="popper",gR="reference",u1=xl.reduce(function(e,t){return e.concat([t+"-"+Pa,t+"-"+Ec])},[]),LC=[].concat(xl,[Pv]).reduce(function(e,t){return e.concat([t,t+"-"+Pa,t+"-"+Ec])},[]),vR="beforeRead",bR="read",yR="afterRead",xR="beforeMain",wR="main",_R="afterMain",CR="beforeWrite",$R="write",SR="afterWrite",ER=[vR,bR,yR,xR,wR,_R,CR,$R,SR];function Dr(e){return e.split("-")[0]}function tr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fo(e){var t=tr(e).Element;return e instanceof t||e instanceof Element}function Ir(e){var t=tr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lv(e){if(typeof ShadowRoot>"u")return!1;var t=tr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ro=Math.max,sd=Math.min,La=Math.round;function Gm(){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 FC(){return!/^((?!chrome|android).)*safari/i.test(Gm())}function Fa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ir(e)&&(i=e.offsetWidth>0&&La(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&La(r.height)/e.offsetHeight||1);var a=Fo(e)?tr(e):window,s=a.visualViewport,c=!FC()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/i,u=(r.top+(c&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function Fv(e){var t=Fa(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function BC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Lv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zi(e){return e?(e.nodeName||"").toLowerCase():null}function gi(e){return tr(e).getComputedStyle(e)}function TR(e){return["table","td","th"].indexOf(Zi(e))>=0}function so(e){return((Fo(e)?e.ownerDocument:e.document)||window.document).documentElement}function yf(e){return Zi(e)==="html"?e:e.assignedSlot||e.parentNode||(Lv(e)?e.host:null)||so(e)}function d1(e){return!Ir(e)||gi(e).position==="fixed"?null:e.offsetParent}function kR(e){var t=/firefox/i.test(Gm()),n=/Trident/i.test(Gm());if(n&&Ir(e)){var r=gi(e);if(r.position==="fixed")return null}var i=yf(e);for(Lv(i)&&(i=i.host);Ir(i)&&["html","body"].indexOf(Zi(i))<0;){var o=gi(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function wl(e){for(var t=tr(e),n=d1(e);n&&TR(n)&&gi(n).position==="static";)n=d1(n);return n&&(Zi(n)==="html"||Zi(n)==="body"&&gi(n).position==="static")?t:n||kR(e)||t}function Bv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fc(e,t,n){return Ro(e,sd(t,n))}function OR(e,t,n){var r=fc(e,t,n);return r>n?n:r}function zC(){return{top:0,right:0,bottom:0,left:0}}function WC(e){return Object.assign({},zC(),e)}function UC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var MR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,WC(typeof t!="number"?t:UC(t,xl))};function RR(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Dr(n.placement),c=Bv(s),l=[Vn,mr].indexOf(s)>=0,u=l?"height":"width";if(!(!o||!a)){var d=MR(i.padding,n),f=Fv(o),p=c==="y"?Un:Vn,g=c==="y"?pr:mr,m=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],v=a[c]-n.rects.reference[c],x=wl(o),w=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,_=m/2-v/2,C=d[p],y=w-f[u]-d[g],$=w/2-f[u]/2+_,E=fc(C,$,y),T=c;n.modifiersData[r]=(t={},t[T]=E,t.centerOffset=E-$,t)}}function AR(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||BC(t.elements.popper,i)&&(t.elements.arrow=i))}const jR={name:"arrow",enabled:!0,phase:"main",fn:RR,effect:AR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ba(e){return e.split("-")[1]}var NR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DR(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:La(n*i)/i||0,y:La(r*i)/i||0}}function f1(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,g=a.y,m=g===void 0?0:g,v=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),_=Vn,C=Un,y=window;if(l){var $=wl(n),E="clientHeight",T="clientWidth";if($===tr(n)&&($=so(n),gi($).position!=="static"&&s==="absolute"&&(E="scrollHeight",T="scrollWidth")),$=$,i===Un||(i===Vn||i===mr)&&o===Ec){C=pr;var k=d&&$===y&&y.visualViewport?y.visualViewport.height:$[E];m-=k-r.height,m*=c?1:-1}if(i===Vn||(i===Un||i===pr)&&o===Ec){_=mr;var O=d&&$===y&&y.visualViewport?y.visualViewport.width:$[T];p-=O-r.width,p*=c?1:-1}}var S=Object.assign({position:s},l&&NR),M=u===!0?DR({x:p,y:m},tr(n)):{x:p,y:m};if(p=M.x,m=M.y,c){var A;return Object.assign({},S,(A={},A[C]=w?"0":"",A[_]=x?"0":"",A.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",A))}return Object.assign({},S,(t={},t[C]=w?m+"px":"",t[_]=x?p+"px":"",t.transform="",t))}function IR(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:Dr(t.placement),variation:Ba(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,f1(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,f1(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const PR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:IR,data:{}};var uu={passive:!0};function LR(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,c=tr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(u){u.addEventListener("scroll",n.update,uu)}),s&&c.addEventListener("resize",n.update,uu),function(){o&&l.forEach(function(u){u.removeEventListener("scroll",n.update,uu)}),s&&c.removeEventListener("resize",n.update,uu)}}const FR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LR,data:{}};var BR={left:"right",right:"left",bottom:"top",top:"bottom"};function Bu(e){return e.replace(/left|right|bottom|top/g,function(t){return BR[t]})}var zR={start:"end",end:"start"};function h1(e){return e.replace(/start|end/g,function(t){return zR[t]})}function zv(e){var t=tr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wv(e){return Fa(so(e)).left+zv(e).scrollLeft}function WR(e,t){var n=tr(e),r=so(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var l=FC();(l||!l&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+Wv(e),y:c}}function UR(e){var t,n=so(e),r=zv(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ro(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ro(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Wv(e),c=-r.scrollTop;return gi(i||n).direction==="rtl"&&(s+=Ro(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function Uv(e){var t=gi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function VC(e){return["html","body","#document"].indexOf(Zi(e))>=0?e.ownerDocument.body:Ir(e)&&Uv(e)?e:VC(yf(e))}function hc(e,t){var n;t===void 0&&(t=[]);var r=VC(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=tr(r),a=i?[o].concat(o.visualViewport||[],Uv(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(hc(yf(a)))}function Km(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function VR(e,t){var n=Fa(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 p1(e,t,n){return t===PC?Km(WR(e,n)):Fo(t)?VR(t,n):Km(UR(so(e)))}function HR(e){var t=hc(yf(e)),n=["absolute","fixed"].indexOf(gi(e).position)>=0,r=n&&Ir(e)?wl(e):e;return Fo(r)?t.filter(function(i){return Fo(i)&&BC(i,r)&&Zi(i)!=="body"}):[]}function qR(e,t,n,r){var i=t==="clippingParents"?HR(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(c,l){var u=p1(e,l,r);return c.top=Ro(u.top,c.top),c.right=sd(u.right,c.right),c.bottom=sd(u.bottom,c.bottom),c.left=Ro(u.left,c.left),c},p1(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function HC(e){var t=e.reference,n=e.element,r=e.placement,i=r?Dr(r):null,o=r?Ba(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case Un:c={x:a,y:t.y-n.height};break;case pr:c={x:a,y:t.y+t.height};break;case mr:c={x:t.x+t.width,y:s};break;case Vn:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Bv(i):null;if(l!=null){var u=l==="y"?"height":"width";switch(o){case Pa:c[l]=c[l]-(t[u]/2-n[u]/2);break;case Ec:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function Tc(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,c=s===void 0?mR:s,l=n.rootBoundary,u=l===void 0?PC:l,d=n.elementContext,f=d===void 0?Ps:d,p=n.altBoundary,g=p===void 0?!1:p,m=n.padding,v=m===void 0?0:m,x=WC(typeof v!="number"?v:UC(v,xl)),w=f===Ps?gR:Ps,_=e.rects.popper,C=e.elements[g?w:f],y=qR(Fo(C)?C:C.contextElement||so(e.elements.popper),c,u,a),$=Fa(e.elements.reference),E=HC({reference:$,element:_,strategy:"absolute",placement:i}),T=Km(Object.assign({},_,E)),k=f===Ps?T:$,O={top:y.top-k.top+x.top,bottom:k.bottom-y.bottom+x.bottom,left:y.left-k.left+x.left,right:k.right-y.right+x.right},S=e.modifiersData.offset;if(f===Ps&&S){var M=S[i];Object.keys(O).forEach(function(A){var j=[mr,pr].indexOf(A)>=0?1:-1,L=[Un,pr].indexOf(A)>=0?"y":"x";O[A]+=M[L]*j})}return O}function YR(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?LC:c,u=Ba(r),d=u?s?u1:u1.filter(function(g){return Ba(g)===u}):xl,f=d.filter(function(g){return l.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,m){return g[m]=Tc(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[Dr(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function GR(e){if(Dr(e)===Pv)return[];var t=Bu(e);return[h1(e),t,h1(t)]}function KR(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,v=t.options.placement,x=Dr(v),w=x===v,_=c||(w||!g?[Bu(v)]:GR(v)),C=[v].concat(_).reduce(function(X,Z){return X.concat(Dr(Z)===Pv?YR(t,{placement:Z,boundary:u,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:m}):Z)},[]),y=t.rects.reference,$=t.rects.popper,E=new Map,T=!0,k=C[0],O=0;O<C.length;O++){var S=C[O],M=Dr(S),A=Ba(S)===Pa,j=[Un,pr].indexOf(M)>=0,L=j?"width":"height",N=Tc(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),F=j?A?mr:Vn:A?pr:Un;y[L]>$[L]&&(F=Bu(F));var U=Bu(F),z=[];if(o&&z.push(N[M]<=0),s&&z.push(N[F]<=0,N[U]<=0),z.every(function(X){return X})){k=S,T=!1;break}E.set(S,z)}if(T)for(var I=g?3:1,W=function(Z){var Q=C.find(function(te){var P=E.get(te);if(P)return P.slice(0,Z).every(function(D){return D})});if(Q)return k=Q,"break"},Y=I;Y>0;Y--){var J=W(Y);if(J==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const ZR={name:"flip",enabled:!0,phase:"main",fn:KR,requiresIfExists:["offset"],data:{_skip:!1}};function m1(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 g1(e){return[Un,mr,pr,Vn].some(function(t){return e[t]>=0})}function XR(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Tc(t,{elementContext:"reference"}),s=Tc(t,{altBoundary:!0}),c=m1(a,r),l=m1(s,i,o),u=g1(c),d=g1(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const QR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XR};function JR(e,t,n){var r=Dr(e),i=[Vn,Un].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Vn,mr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function eA(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=LC.reduce(function(u,d){return u[d]=JR(d,t.rects,o),u},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const tA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eA};function nA(e){var t=e.state,n=e.name;t.modifiersData[n]=HC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const rA={name:"popperOffsets",enabled:!0,phase:"read",fn:nA,data:{}};function iA(e){return e==="x"?"y":"x"}function oA(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,v=Tc(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),x=Dr(t.placement),w=Ba(t.placement),_=!w,C=Bv(x),y=iA(C),$=t.modifiersData.popperOffsets,E=t.rects.reference,T=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,O=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if($){if(o){var A,j=C==="y"?Un:Vn,L=C==="y"?pr:mr,N=C==="y"?"height":"width",F=$[C],U=F+v[j],z=F-v[L],I=p?-T[N]/2:0,W=w===Pa?E[N]:T[N],Y=w===Pa?-T[N]:-E[N],J=t.elements.arrow,X=p&&J?Fv(J):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zC(),Q=Z[j],te=Z[L],P=fc(0,E[N],X[N]),D=_?E[N]/2-I-P-Q-O.mainAxis:W-P-Q-O.mainAxis,B=_?-E[N]/2+I+P+te+O.mainAxis:Y+P+te+O.mainAxis,H=t.elements.arrow&&wl(t.elements.arrow),R=H?C==="y"?H.clientTop||0:H.clientLeft||0:0,G=(A=S==null?void 0:S[C])!=null?A:0,ee=F+D-G-R,ne=F+B-G,de=fc(p?sd(U,ee):U,F,p?Ro(z,ne):z);$[C]=de,M[C]=de-F}if(s){var oe,ae=C==="x"?Un:Vn,me=C==="x"?pr:mr,ve=$[y],Ee=y==="y"?"height":"width",Se=ve+v[ae],Me=ve-v[me],ge=[Un,Vn].indexOf(x)!==-1,_e=(oe=S==null?void 0:S[y])!=null?oe:0,ce=ge?Se:ve-E[Ee]-T[Ee]-_e+O.altAxis,Oe=ge?ve+E[Ee]+T[Ee]-_e-O.altAxis:Me,Ue=p&&ge?OR(ce,ve,Oe):fc(p?ce:Se,ve,p?Oe:Me);$[y]=Ue,M[y]=Ue-ve}t.modifiersData[r]=M}}const aA={name:"preventOverflow",enabled:!0,phase:"main",fn:oA,requiresIfExists:["offset"]};function sA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function cA(e){return e===tr(e)||!Ir(e)?zv(e):sA(e)}function lA(e){var t=e.getBoundingClientRect(),n=La(t.width)/e.offsetWidth||1,r=La(t.height)/e.offsetHeight||1;return n!==1||r!==1}function uA(e,t,n){n===void 0&&(n=!1);var r=Ir(t),i=Ir(t)&&lA(t),o=so(t),a=Fa(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Zi(t)!=="body"||Uv(o))&&(s=cA(t)),Ir(t)?(c=Fa(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Wv(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function dA(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function fA(e){var t=dA(e);return ER.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function hA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pA(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var v1={placement:"bottom",modifiers:[],strategy:"absolute"};function b1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function mA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?v1:i;return function(s,c,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},v1,o),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(x){var w=typeof x=="function"?x(u.options):x;m(),u.options=Object.assign({},o,u.options,w),u.scrollParents={reference:Fo(s)?hc(s):s.contextElement?hc(s.contextElement):[],popper:hc(c)};var _=fA(pA([].concat(r,u.options.modifiers)));return u.orderedModifiers=_.filter(function(C){return C.enabled}),g(),p.update()},forceUpdate:function(){if(!f){var x=u.elements,w=x.reference,_=x.popper;if(b1(w,_)){u.rects={reference:uA(w,wl(_),u.options.strategy==="fixed"),popper:Fv(_)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var y=u.orderedModifiers[C],$=y.fn,E=y.options,T=E===void 0?{}:E,k=y.name;typeof $=="function"&&(u=$({state:u,options:T,name:k,instance:p})||u)}}}},update:hA(function(){return new Promise(function(v){p.forceUpdate(),v(u)})}),destroy:function(){m(),f=!0}};if(!b1(s,c))return p;p.setOptions(l).then(function(v){!f&&l.onFirstUpdate&&l.onFirstUpdate(v)});function g(){u.orderedModifiers.forEach(function(v){var x=v.name,w=v.options,_=w===void 0?{}:w,C=v.effect;if(typeof C=="function"){var y=C({state:u,name:x,instance:p,options:_}),$=function(){};d.push(y||$)}})}function m(){d.forEach(function(v){return v()}),d=[]}return p}}const gA=mA({defaultModifiers:[QR,rA,PR,FR,tA,ZR,aA,jR]}),vA=["enabled","placement","strategy","modifiers"];function bA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const yA={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},xA={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const o=r.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},wA=[];function qC(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=wA}=n,s=bA(n,vA);const c=h.useRef(a),l=h.useRef(),u=h.useCallback(()=>{var v;(v=l.current)==null||v.update()},[]),d=h.useCallback(()=>{var v;(v=l.current)==null||v.forceUpdate()},[]),[f,p]=pR(h.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const x={},w={};Object.keys(v.elements).forEach(_=>{x[_]=v.styles[_],w[_]=v.attributes[_]}),p({state:v,styles:x,attributes:w,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,p]),m=h.useMemo(()=>(dc(c.current,a)||(c.current=a),c.current),[a]);return h.useEffect(()=>{!l.current||!r||l.current.setOptions({placement:i,strategy:o,modifiers:[...m,g,yA]})},[o,i,g,r,m]),h.useEffect(()=>{if(!(!r||e==null||t==null))return l.current=gA(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...m,xA,g]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,p(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function kc(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var _A=process.env.NODE_ENV!=="production",YC=function(){};if(_A){var CA=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var i=1;i<r;i++)n[i-1]=arguments[i];var o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};YC=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||CA.apply(null,[t].concat(n))}}var $A=YC;const Xo=rn($A),y1=()=>{};function SA(e){return e.button===0}function EA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const zu=e=>e&&("current"in e?e.current:e),x1={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function GC(e,t=y1,{disabled:n,clickTrigger:r="click"}={}){const i=h.useRef(!1),o=h.useRef(!1),a=h.useCallback(l=>{const u=zu(e);Xo(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||EA(l)||!SA(l)||!!kc(u,l.target)||o.current,o.current=!1},[e]),s=en(l=>{const u=zu(e);u&&kc(u,l.target)&&(o.current=!0)}),c=en(l=>{i.current||t(l)});h.useEffect(()=>{var l,u;if(n||e==null)return;const d=os(zu(e)),f=d.defaultView||window;let p=(l=f.event)!=null?l:(u=f.parent)==null?void 0:u.event,g=null;x1[r]&&(g=ui(d,x1[r],s,!0));const m=ui(d,r,a,!0),v=ui(d,r,w=>{if(w===p){p=void 0;return}c(w)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(w=>ui(w,"mousemove",y1))),()=>{g==null||g(),m(),v(),x.forEach(w=>w())}},[e,n,r,a,s,c])}function TA(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function kA(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function KC({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:c={}}){var l,u,d,f,p;const g=TA(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:o?"fixed":c.strategy,modifiers:kA(Object.assign({},g,{eventListeners:{enabled:t,options:(l=g.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},g.preventOverflow,{options:a?Object.assign({padding:a},(u=g.preventOverflow)==null?void 0:u.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(p=g.arrow)==null?void 0:p.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const OA=["children","usePopper"];function MA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const RA=()=>{};function ZC(e={}){const t=h.useContext(bf),[n,r]=ad(),i=h.useRef(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:c=!1,placement:l,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,p=(t==null?void 0:t.show)==null?!!e.show:t.show;p&&!i.current&&(i.current=!0);const g=$=>{t==null||t.toggle(!1,$)},{placement:m,setMenu:v,menuElement:x,toggleElement:w}=t||{},_=qC(w,x,KC({placement:l||m||"bottom-start",enabled:f,enableEvents:d??p,offset:a,flip:o,fixed:c,arrowElement:n,popperConfig:u})),C=Object.assign({ref:v||RA,"aria-labelledby":w==null?void 0:w.id},_.attributes.popper,{style:_.styles.popper}),y={show:p,placement:m,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?_:null,arrowProps:f?Object.assign({ref:r},_.attributes.arrow,{style:_.styles.arrow}):{}};return GC(x,g,{clickTrigger:s,disabled:!p}),[C,y]}function XC(e){let{children:t,usePopper:n=!0}=e,r=MA(e,OA);const[i,o]=ZC(Object.assign({},r,{usePopper:n}));return b.jsx(b.Fragment,{children:t(i,o)})}XC.displayName="DropdownMenu";const cd={prefix:String(Math.round(Math.random()*1e10)),current:0},QC=h.createContext(cd),AA=h.createContext(!1);let jA=!!(typeof window<"u"&&window.document&&window.document.createElement),Sp=new WeakMap;function NA(e=!1){let t=h.useContext(QC),n=h.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Sp.get(o);a==null?Sp.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Sp.delete(o))}n.current=++t.current}return n.current}function DA(e){let t=h.useContext(QC);t===cd&&!jA&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=NA(!!e),r=t===cd&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function IA(e){let t=h.useId(),[n]=h.useState(zA()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${cd.prefix}`;return e||`${r}-${t}`}const PA=typeof h.useId=="function"?IA:DA;function LA(){return!1}function FA(){return!0}function BA(e){return()=>{}}function zA(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(BA,LA,FA):h.useContext(AA)}const JC=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},w1=()=>{};function e$(){const e=PA(),{show:t=!1,toggle:n=w1,setToggle:r,menuElement:i}=h.useContext(bf)||{},o=h.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||w1,onClick:o,"aria-expanded":!!t};return i&&JC(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function t$({children:e}){const[t,n]=e$();return b.jsx(b.Fragment,{children:e(t,n)})}t$.displayName="DropdownToggle";const za=ie.createContext(null),Oc=(e,t=null)=>e!=null?String(e):t||null,xf=ie.createContext(null);xf.displayName="NavContext";const WA="data-rr-ui-",UA="rrUi";function ss(e){return`${WA}${e}`}function VA(e){return`${UA}${e}`}const HA=["eventKey","disabled","onClick","active","as"];function qA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function n$({key:e,href:t,active:n,disabled:r,onClick:i}){const o=h.useContext(za),a=h.useContext(xf),{activeKey:s}=a||{},c=Oc(e,t),l=n==null&&e!=null?Oc(s)===c:n;return[{onClick:en(d=>{r||(i==null||i(d),o&&!d.isPropagationStopped()&&o(c,d))}),"aria-disabled":r||void 0,"aria-selected":l,[ss("dropdown-item")]:""},{isActive:l}]}const r$=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=Av}=e,s=qA(e,HA);const[c]=n$({key:n,href:s.href,disabled:r,onClick:i,active:o});return b.jsx(a,Object.assign({},s,{ref:t},c))});r$.displayName="DropdownItem";const i$=h.createContext(as?window:void 0);i$.Provider;function wf(){return h.useContext(i$)}function _1(){const e=IC(),t=h.useRef(null),n=h.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function _l({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${ss("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const c=wf(),[l,u]=hR(t,e,r),[d,f]=_1(),p=d.current,[g,m]=_1(),v=g.current,x=OC(l),w=h.useRef(null),_=h.useRef(!1),C=h.useContext(za),y=h.useCallback((S,M,A=M==null?void 0:M.type)=>{u(S,{originalEvent:M,source:A})},[u]),$=en((S,M)=>{n==null||n(S,M),y(!1,M,"select"),M.isPropagationStopped()||C==null||C(S,M)}),E=h.useMemo(()=>({toggle:y,placement:a,show:l,menuElement:p,toggleElement:v,setMenu:f,setToggle:m}),[y,a,l,p,v,f,m]);p&&x&&!l&&(_.current=p.contains(p.ownerDocument.activeElement));const T=en(()=>{v&&v.focus&&v.focus()}),k=en(()=>{const S=w.current;let M=o;if(M==null&&(M=d.current&&JC(d.current)?"keyboard":!1),M===!1||M==="keyboard"&&!/^key.+$/.test(S))return;const A=ci(d.current,i)[0];A&&A.focus&&A.focus()});h.useEffect(()=>{l?k():_.current&&(_.current=!1,T())},[l,_,T,k]),h.useEffect(()=>{w.current=null});const O=(S,M)=>{if(!d.current)return null;const A=ci(d.current,i);let j=A.indexOf(S)+M;return j=Math.max(0,Math.min(j,A.length)),A[j]};return X5(h.useCallback(()=>c.document,[c]),"keydown",S=>{var M,A;const{key:j}=S,L=S.target,N=(M=d.current)==null?void 0:M.contains(L),F=(A=g.current)==null?void 0:A.contains(L);if(/input|textarea/i.test(L.tagName)&&(j===" "||j!=="Escape"&&N||j==="Escape"&&L.type==="search")||!N&&!F||j==="Tab"&&(!d.current||!l))return;w.current=S.type;const z={originalEvent:S,source:S.type};switch(j){case"ArrowUp":{const I=O(L,-1);I&&I.focus&&I.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!l)u(!0,z);else{const I=O(L,1);I&&I.focus&&I.focus()}return;case"Tab":kv(L.ownerDocument,"keyup",I=>{var W;(I.key==="Tab"&&!I.target||!((W=d.current)!=null&&W.contains(I.target)))&&u(!1,z)},{once:!0});break;case"Escape":j==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,z);break}}),b.jsx(za.Provider,{value:$,children:b.jsx(bf.Provider,{value:E,children:s})})}_l.displayName="Dropdown";_l.Menu=XC;_l.Toggle=t$;_l.Item=r$;const Vv=ie.createContext({});Vv.displayName="DropdownContext";const o$=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=mt(t,"dropdown-divider"),b.jsx(n,{ref:o,className:ue(e,t),role:r,...i})));o$.displayName="DropdownDivider";const a$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=mt(t,"dropdown-header"),b.jsx(n,{ref:o,className:ue(e,t),role:r,...i})));a$.displayName="DropdownHeader";const s$=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=jv,...s},c)=>{const l=mt(e,"dropdown-item"),[u,d]=n$({key:n,href:s.href,disabled:r,onClick:i,active:o});return b.jsx(a,{...s,...u,ref:c,className:ue(t,l,d.isActive&&"active",r&&"disabled")})});s$.displayName="DropdownItem";const c$=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=mt(t,"dropdown-item-text"),b.jsx(n,{ref:i,className:ue(e,t),...r})));c$.displayName="DropdownItemText";const _f=ie.createContext(null);_f.displayName="InputGroupContext";const l$=ie.createContext(null);l$.displayName="NavbarContext";function u$(e,t){if(process.env.NODE_ENV==="production")return e;const n=h.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?zm(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):zm(!1))},[t]);return br(n,e)}function d$(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",a=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",c=n?"right-end":"left-end",l=n?"left-start":"right-start",u=n?"left-end":"right-end";let d=e?a:o;return t==="up"?d=e?i:r:t==="end"?d=e?u:l:t==="start"?d=e?c:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const f$=ie.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:o,renderOnMount:a,as:s="div",popperConfig:c,variant:l,...u},d)=>{let f=!1;const p=h.useContext(l$),g=mt(e,"dropdown-menu"),{align:m,drop:v,isRTL:x}=h.useContext(Vv);n=n||m;const w=h.useContext(_f),_=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&Xo(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const M=S[0],A=n[M];f=A==="start",_.push(`${g}-${M}-${A}`)}}else n==="end"&&(f=!0);const C=d$(f,v,x),[y,{hasShown:$,popper:E,show:T,toggle:k}]=ZC({flip:i,rootCloseEvent:r,show:o,usePopper:!p&&_.length===0,offset:[0,2],popperConfig:c,placement:C});if(y.ref=br(u$(d,"DropdownMenu"),y.ref),Sc(()=>{T&&(E==null||E.update())},[T]),!$&&!a&&!w)return null;typeof s!="string"&&(y.show=T,y.close=()=>k==null?void 0:k(!1),y.align=n);let O=u.style;return E!=null&&E.placement&&(O={...u.style,...y.style},u["x-placement"]=E.placement),b.jsx(s,{...u,...y,style:O,...(_.length||p)&&{"data-bs-popper":"static"},className:ue(t,g,T&&"show",f&&`${g}-end`,l&&`${g}-${l}`,..._)})});f$.displayName="DropdownMenu";const h$=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=Nv,...o},a)=>{const s=mt(e,"dropdown-toggle"),c=h.useContext(bf);r!==void 0&&(o.bsPrefix=r);const[l]=e$();return l.ref=br(l.ref,u$(a,"DropdownToggle")),b.jsx(i,{className:ue(n,s,t&&`${s}-split`,(c==null?void 0:c.show)&&"show"),...l,...o})});h$.displayName="DropdownToggle";const p$=ie.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:o,align:a="start",onSelect:s,onToggle:c,focusFirstItemOnShow:l,as:u="div",navbar:d,autoClose:f=!0,...p}=Sv(e,{show:"onToggle"}),g=h.useContext(_f),m=mt(n,"dropdown"),v=gf(),x=E=>f===!1?E==="click":f==="inside"?E!=="rootClose":f==="outside"?E!=="select":!0,w=en((E,T)=>{var k;!((k=T.originalEvent)==null||(k=k.target)==null)&&k.classList.contains("dropdown-toggle")&&T.source==="mousedown"||(T.originalEvent.currentTarget===document&&(T.source!=="keydown"||T.originalEvent.key==="Escape")&&(T.source="rootClose"),x(T.source)&&(c==null||c(E,T)))}),C=d$(a==="end",r,v),y=h.useMemo(()=>({align:a,drop:r,isRTL:v}),[a,r,v]),$={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(Vv.Provider,{value:y,children:b.jsx(_l,{placement:C,show:i,onSelect:s,onToggle:w,focusFirstItemOnShow:l,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?p.children:b.jsx(u,{...p,ref:t,className:ue(o,i&&"show",$[r])})})})});p$.displayName="Dropdown";const Wa=Object.assign(p$,{Toggle:h$,Menu:f$,Item:s$,ItemText:c$,Divider:o$,Header:a$}),YA={type:K.string,tooltip:K.bool,as:K.elementType},Cf=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>b.jsx(e,{...i,ref:o,className:ue(t,`${n}-${r?"tooltip":"feedback"}`)}));Cf.displayName="Feedback";Cf.propTypes=YA;const vi=ie.createContext({}),$f=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...s},c)=>{const{controlId:l}=h.useContext(vi);return t=mt(t,"form-check-input"),b.jsx(a,{...s,ref:c,type:r,id:e||l,className:ue(n,t,i&&"is-valid",o&&"is-invalid")})});$f.displayName="FormCheckInput";const ld=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=h.useContext(vi);return e=mt(e,"form-check-label"),b.jsx("label",{...r,ref:i,htmlFor:n||o,className:ue(t,e)})});ld.displayName="FormCheckLabel";const m$=ie.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:o=!1,isValid:a=!1,isInvalid:s=!1,feedbackTooltip:c=!1,feedback:l,feedbackType:u,className:d,style:f,title:p="",type:g="checkbox",label:m,children:v,as:x="input",...w},_)=>{t=mt(t,"form-check"),n=mt(n,"form-switch");const{controlId:C}=h.useContext(vi),y=h.useMemo(()=>({controlId:e||C}),[C,e]),$=!v&&m!=null&&m!==!1||dR(v,ld),E=b.jsx($f,{...w,type:g==="switch"?"checkbox":g,ref:_,isValid:a,isInvalid:s,disabled:o,as:x});return b.jsx(vi.Provider,{value:y,children:b.jsx("div",{style:f,className:ue(d,$&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:v||b.jsxs(b.Fragment,{children:[E,$&&b.jsx(ld,{title:p,children:m}),l&&b.jsx(Cf,{type:u,tooltip:c,children:l})]})})})});m$.displayName="FormCheck";const ud=Object.assign(m$,{Input:$f,Label:ld}),g$=ie.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:o,isValid:a=!1,isInvalid:s=!1,plaintext:c,readOnly:l,as:u="input",...d},f)=>{const{controlId:p}=h.useContext(vi);return e=mt(e,"form-control"),process.env.NODE_ENV!=="production"&&Xo(p==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),b.jsx(u,{...d,type:t,size:r,ref:f,readOnly:l,id:i||p,className:ue(o,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",s&&"is-invalid")})});g$.displayName="FormControl";const v$=Object.assign(g$,{Feedback:Cf}),b$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=mt(t,"form-floating"),b.jsx(n,{ref:i,className:ue(e,t),...r})));b$.displayName="FormFloating";const Hv=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=h.useMemo(()=>({controlId:e}),[e]);return b.jsx(vi.Provider,{value:i,children:b.jsx(t,{...n,ref:r})})});Hv.displayName="FormGroup";const y$=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...a},s)=>{const{controlId:c}=h.useContext(vi);t=mt(t,"form-label");let l="col-form-label";typeof n=="string"&&(l=`${l} ${l}-${n}`);const u=ue(i,t,r&&"visually-hidden",n&&l);return process.env.NODE_ENV!=="production"&&Xo(c==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||c,n?b.jsx(Iv,{ref:s,as:"label",className:u,htmlFor:o,...a}):b.jsx(e,{ref:s,className:u,htmlFor:o,...a})});y$.displayName="FormLabel";const x$=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=h.useContext(vi);return e=mt(e,"form-range"),b.jsx("input",{...r,type:"range",ref:i,className:ue(t,e),id:n||o})});x$.displayName="FormRange";const qv=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:a,...s},c)=>{const{controlId:l}=h.useContext(vi);return e=mt(e,"form-select"),b.jsx("select",{...s,size:n,ref:c,className:ue(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||l})});qv.displayName="FormSelect";const w$=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=mt(e,"form-text"),b.jsx(n,{...i,ref:o,className:ue(t,e,r&&"text-muted")})));w$.displayName="FormText";const _$=ie.forwardRef((e,t)=>b.jsx(ud,{...e,ref:t,type:"switch"}));_$.displayName="Switch";const GA=Object.assign(_$,{Input:ud.Input,Label:ud.Label}),Yv=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=mt(e,"form-floating"),b.jsxs(Hv,{ref:a,className:ue(t,e),controlId:r,...o,children:[n,b.jsx("label",{htmlFor:r,children:i})]})));Yv.displayName="FloatingLabel";const KA={_ref:K.any,validated:K.bool,as:K.elementType},Gv=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>b.jsx(n,{...r,ref:i,className:ue(e,t&&"was-validated")}));Gv.displayName="Form";Gv.propTypes=KA;const Kr=Object.assign(Gv,{Group:Hv,Control:v$,Floating:b$,Check:ud,Switch:GA,Label:y$,Text:w$,Range:x$,Select:qv,FloatingLabel:Yv}),C$=ie.createContext(null),ZA=["as","active","eventKey"];function XA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $$({key:e,onClick:t,active:n,id:r,role:i,disabled:o}){const a=h.useContext(za),s=h.useContext(xf),c=h.useContext(C$);let l=n;const u={role:i};if(s){!i&&s.role==="tablist"&&(u.role="tab");const d=s.getControllerId(e??null),f=s.getControlledId(e??null);u[ss("event-key")]=e,u.id=d||r,l=n==null&&e!=null?s.activeKey===e:n,(l||!(c!=null&&c.unmountOnExit)&&!(c!=null&&c.mountOnEnter))&&(u["aria-controls"]=f)}return u.role==="tab"&&(u["aria-selected"]=l,l||(u.tabIndex=-1),o&&(u.tabIndex=-1,u["aria-disabled"]=!0)),u.onClick=en(d=>{o||(t==null||t(d),e!=null&&a&&!d.isPropagationStopped()&&a(e,d))}),[u,{isActive:l}]}const S$=ie.forwardRef((e,t)=>{let{as:n=Av,active:r,eventKey:i}=e,o=XA(e,ZA);const[a,s]=$$(Object.assign({key:Oc(i,o.href),active:r},o));return a[ss("active")]=s.isActive,b.jsx(n,Object.assign({},o,a,{ref:t}))});S$.displayName="NavItem";const QA=["as","onSelect","activeKey","role","onKeyDown"];function JA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const C1=()=>{},$1=ss("event-key"),E$=ie.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:o,onKeyDown:a}=e,s=JA(e,QA);const c=IC(),l=h.useRef(!1),u=h.useContext(za),d=h.useContext(C$);let f,p;d&&(o=o||"tablist",i=d.activeKey,f=d.getControlledId,p=d.getControllerId);const g=h.useRef(null),m=_=>{const C=g.current;if(!C)return null;const y=ci(C,`[${$1}]:not([aria-disabled=true])`),$=C.querySelector("[aria-selected=true]");if(!$||$!==document.activeElement)return null;const E=y.indexOf($);if(E===-1)return null;let T=E+_;return T>=y.length&&(T=0),T<0&&(T=y.length-1),y[T]},v=(_,C)=>{_!=null&&(r==null||r(_,C),u==null||u(_,C))},x=_=>{if(a==null||a(_),!d)return;let C;switch(_.key){case"ArrowLeft":case"ArrowUp":C=m(-1);break;case"ArrowRight":case"ArrowDown":C=m(1);break;default:return}C&&(_.preventDefault(),v(C.dataset[VA("EventKey")]||null,_),l.current=!0,c())};h.useEffect(()=>{if(g.current&&l.current){const _=g.current.querySelector(`[${$1}][aria-selected=true]`);_==null||_.focus()}l.current=!1});const w=br(t,g);return b.jsx(za.Provider,{value:v,children:b.jsx(xf.Provider,{value:{role:o,activeKey:Oc(i),getControlledId:f||C1,getControllerId:p||C1},children:b.jsx(n,Object.assign({},s,{onKeyDown:x,ref:w,role:o}))})})});E$.displayName="Nav";const ej=Object.assign(E$,{Item:S$}),Sf=ie.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:o,action:a,as:s,...c},l)=>{e=mt(e,"list-group-item");const[u,d]=$$({key:Oc(r,c.href),active:t,...c}),f=en(g=>{if(n){g.preventDefault(),g.stopPropagation();return}u.onClick(g)});n&&c.tabIndex===void 0&&(c.tabIndex=-1,c["aria-disabled"]=!0);const p=s||(a?c.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&Xo(s||!(!a&&c.href),"`action=false` and `href` should not be used together."),b.jsx(p,{ref:l,...c,...u,onClick:f,className:ue(i,e,d.isActive&&"active",n&&"disabled",o&&`${e}-${o}`,a&&`${e}-action`)})});Sf.displayName="ListGroupItem";const T$=ie.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:o,numbered:a,as:s="div",...c}=Sv(e,{activeKey:"onSelect"}),l=mt(r,"list-group");let u;return o&&(u=o===!0?"horizontal":`horizontal-${o}`),process.env.NODE_ENV!=="production"&&Xo(!(o&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),b.jsx(ej,{ref:t,...c,as:s,className:ue(n,l,i&&`${l}-${i}`,u&&`${l}-${u}`,a&&`${l}-numbered`)})});T$.displayName="ListGroup";const k$=Object.assign(T$,{Item:Sf});var du;function S1(e){if((!du&&du!==0||e)&&as){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),du=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return du}function Ep(e){e===void 0&&(e=os());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function tj(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const E1=ss("modal-open");class Kv{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return tj(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Yi(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(E1,""),Yi(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(E1),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Tp=(e,t)=>as?e==null?(t||os()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Zm(e,t){const n=wf(),[r,i]=h.useState(()=>Tp(e,n==null?void 0:n.document));if(!r){const o=Tp(e);o&&i(o)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const o=Tp(e);o!==r&&i(o)},[e,r]),r}function nj({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=h.useRef(null),a=h.useRef(t),s=en(n);h.useEffect(()=>{t?a.current=!0:s(o.current)},[t,s]);const c=br(o,e.ref),l=h.cloneElement(e,{ref:c});return t?l:i||!a.current&&r?null:l}const rj=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function ij(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function oj(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:c}=e,l=ij(e,rj);const{major:u}=AC(),d=u>=19?c.props.ref:c.ref,f=h.useRef(null),p=br(f,typeof c=="function"?null:d),g=$=>E=>{$&&f.current&&$(f.current,E)},m=h.useCallback(g(t),[t]),v=h.useCallback(g(n),[n]),x=h.useCallback(g(r),[r]),w=h.useCallback(g(i),[i]),_=h.useCallback(g(o),[o]),C=h.useCallback(g(a),[a]),y=h.useCallback(g(s),[s]);return Object.assign({},l,{nodeRef:f},t&&{onEnter:m},n&&{onEntering:v},r&&{onEntered:x},i&&{onExit:w},o&&{onExiting:_},a&&{onExited:C},s&&{addEndListener:y},{children:typeof c=="function"?($,E)=>c($,Object.assign({},E,{ref:p})):h.cloneElement(c,{ref:p})})}const aj=["component"];function sj(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const cj=ie.forwardRef((e,t)=>{let{component:n}=e,r=sj(e,aj);const i=oj(r);return b.jsx(n,Object.assign({ref:t},i))});function lj({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),i=en(t);return Sc(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),Sc(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function uj({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=h.useState(!t);t&&o&&a(!1);const s=lj({in:!!t,onTransition:l=>{const u=()=>{l.isStale()||(l.in?r==null||r(l.element,l.initial):(a(!0),n==null||n(l.element)))};Promise.resolve(i(l)).then(u,d=>{throw l.in||a(!0),d})}}),c=br(s,e.ref);return o&&!t?null:h.cloneElement(e,{ref:c})}function Xm(e,t,n){return e?b.jsx(cj,Object.assign({},n,{component:e})):t?b.jsx(uj,Object.assign({},n,{transition:t})):b.jsx(nj,Object.assign({},n))}const dj=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function fj(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let kp;function hj(e){return kp||(kp=new Kv({ownerDocument:e==null?void 0:e.document})),kp}function pj(e){const t=wf(),n=e||hj(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:h.useCallback(i=>{r.current.backdrop=i},[])})}const O$=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:s=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:p,runBackdropTransition:g,autoFocus:m=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:w,renderDialog:_,renderBackdrop:C=ne=>b.jsx("div",Object.assign({},ne)),manager:y,container:$,onShow:E,onHide:T=()=>{},onExit:k,onExited:O,onExiting:S,onEnter:M,onEntering:A,onEntered:j}=e,L=fj(e,dj);const N=wf(),F=Zm($),U=pj(y),z=Mv(),I=OC(n),[W,Y]=h.useState(!n),J=h.useRef(null);h.useImperativeHandle(t,()=>U,[U]),as&&!I&&n&&(J.current=Ep(N==null?void 0:N.document)),n&&W&&Y(!1);const X=en(()=>{if(U.add(),B.current=ui(document,"keydown",P),D.current=ui(document,"focus",()=>setTimeout(Q),!0),E&&E(),m){var ne,de;const oe=Ep((ne=(de=U.dialog)==null?void 0:de.ownerDocument)!=null?ne:N==null?void 0:N.document);U.dialog&&oe&&!kc(U.dialog,oe)&&(J.current=oe,U.dialog.focus())}}),Z=en(()=>{if(U.remove(),B.current==null||B.current(),D.current==null||D.current(),x){var ne;(ne=J.current)==null||ne.focus==null||ne.focus(w),J.current=null}});h.useEffect(()=>{!n||!F||X()},[n,F,X]),h.useEffect(()=>{W&&Z()},[W,Z]),Dv(()=>{Z()});const Q=en(()=>{if(!v||!z()||!U.isTopModal())return;const ne=Ep(N==null?void 0:N.document);U.dialog&&ne&&!kc(U.dialog,ne)&&U.dialog.focus()}),te=en(ne=>{ne.target===ne.currentTarget&&(l==null||l(ne),s===!0&&T())}),P=en(ne=>{c&&RC(ne)&&U.isTopModal()&&(u==null||u(ne),ne.defaultPrevented||T())}),D=h.useRef(),B=h.useRef(),H=(...ne)=>{Y(!0),O==null||O(...ne)};if(!F)return null;const R=Object.assign({role:r,ref:U.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},L,{style:o,className:i,tabIndex:-1});let G=_?_(R):b.jsx("div",Object.assign({},R,{children:ie.cloneElement(a,{role:"document"})}));G=Xm(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:k,onExiting:S,onExited:H,onEnter:M,onEntering:A,onEntered:j,children:G});let ee=null;return s&&(ee=C({ref:U.setBackdropRef,onClick:te}),ee=Xm(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ee})),b.jsx(b.Fragment,{children:un.createPortal(b.jsxs(b.Fragment,{children:[ee,G]}),F)})});O$.displayName="Modal";const M$=Object.assign(O$,{Manager:Kv});function Qm(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function mj(e,t){e.classList?e.classList.add(t):Qm(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function T1(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function gj(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=T1(e.className,t):e.setAttribute("class",T1(e.className&&e.className.baseVal||"",t))}const ua={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class R$ extends Kv{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,Yi(n,{[t]:`${parseFloat(Yi(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Yi(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(mj(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ci(n,ua.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),ci(n,ua.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),ci(n,ua.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();gj(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ci(n,ua.FIXED_CONTENT).forEach(o=>this.restore(r,o)),ci(n,ua.STICKY_CONTENT).forEach(o=>this.restore(i,o)),ci(n,ua.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Op;function A$(e){return Op||(Op=new R$(e)),Op}const j$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=mt(t,"modal-body"),b.jsx(n,{ref:i,className:ue(e,t),...r})));j$.displayName="ModalBody";const Zv=ie.createContext({onHide(){}}),Xv=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:s,...c},l)=>{e=mt(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return b.jsx("div",{...c,ref:l,className:ue(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:b.jsx("div",{className:ue(`${e}-content`,n),children:a})})});Xv.displayName="ModalDialog";const N$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=mt(t,"modal-footer"),b.jsx(n,{ref:i,className:ue(e,t),...r})));N$.displayName="ModalFooter";const D$=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=h.useContext(Zv),c=en(()=>{s==null||s.onHide(),r==null||r()});return b.jsxs("div",{ref:a,...o,children:[i,n&&b.jsx(vf,{"aria-label":e,variant:t,onClick:c})]})}),I$=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=mt(e,"modal-header"),b.jsx(D$,{ref:o,...i,className:ue(t,e),closeLabel:n,closeButton:r})));I$.displayName="ModalHeader";const vj=Ov("h4"),P$=ie.forwardRef(({className:e,bsPrefix:t,as:n=vj,...r},i)=>(t=mt(t,"modal-title"),b.jsx(n,{ref:i,className:ue(e,t),...r})));P$.displayName="ModalTitle";function bj(e){return b.jsx(Ki,{...e,timeout:null})}function yj(e){return b.jsx(Ki,{...e,timeout:null})}const L$=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=Xv,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":l,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:g=!0,onEscapeKeyDown:m,onShow:v,onHide:x,container:w,autoFocus:_=!0,enforceFocus:C=!0,restoreFocus:y=!0,restoreFocusOptions:$,onEntered:E,onExit:T,onExiting:k,onEnter:O,onEntering:S,onExited:M,backdropClassName:A,manager:j,...L},N)=>{const[F,U]=h.useState({}),[z,I]=h.useState(!1),W=h.useRef(!1),Y=h.useRef(!1),J=h.useRef(null),[X,Z]=ad(),Q=br(N,Z),te=en(x),P=gf();e=mt(e,"modal");const D=h.useMemo(()=>({onHide:te}),[te]);function B(){return j||A$({isRTL:P})}function H(ce){if(!as)return;const Oe=B().getScrollbarWidth()>0,Ue=ce.scrollHeight>os(ce).documentElement.clientHeight;U({paddingRight:Oe&&!Ue?S1():void 0,paddingLeft:!Oe&&Ue?S1():void 0})}const R=en(()=>{X&&H(X.dialog)});Dv(()=>{qm(window,"resize",R),J.current==null||J.current()});const G=()=>{W.current=!0},ee=ce=>{W.current&&X&&ce.target===X.dialog&&(Y.current=!0),W.current=!1},ne=()=>{I(!0),J.current=CC(X.dialog,()=>{I(!1)})},de=ce=>{ce.target===ce.currentTarget&&ne()},oe=ce=>{if(p==="static"){de(ce);return}if(Y.current||ce.target!==ce.currentTarget){Y.current=!1;return}x==null||x()},ae=ce=>{g?m==null||m(ce):(ce.preventDefault(),p==="static"&&ne())},me=(ce,Oe)=>{ce&&H(ce),O==null||O(ce,Oe)},ve=ce=>{J.current==null||J.current(),T==null||T(ce)},Ee=(ce,Oe)=>{S==null||S(ce,Oe),kv(window,"resize",R)},Se=ce=>{ce&&(ce.style.display=""),M==null||M(ce),qm(window,"resize",R)},Me=h.useCallback(ce=>b.jsx("div",{...ce,className:ue(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),ge={...n,...F};ge.display="block";const _e=ce=>b.jsx("div",{role:"dialog",...ce,style:ge,className:ue(t,e,z&&`${e}-static`,!f&&"show"),onClick:p?oe:void 0,onMouseUp:ee,"data-bs-theme":s,"aria-label":u,"aria-labelledby":c,"aria-describedby":l,children:b.jsx(a,{...L,onMouseDown:G,className:r,contentClassName:i,children:o})});return b.jsx(Zv.Provider,{value:D,children:b.jsx(M$,{show:d,ref:Q,backdrop:p,container:w,keyboard:!0,autoFocus:_,enforceFocus:C,restoreFocus:y,restoreFocusOptions:$,onEscapeKeyDown:ae,onShow:v,onHide:x,onEnter:me,onEntering:Ee,onEntered:E,onExit:ve,onExiting:k,onExited:Se,manager:B(),transition:f?bj:void 0,backdropTransition:f?yj:void 0,renderBackdrop:Me,renderDialog:_e})})});L$.displayName="Modal";const Wn=Object.assign(L$,{Body:j$,Header:I$,Title:P$,Footer:N$,Dialog:Xv,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),xj=()=>{};function wj(e,t,{disabled:n,clickTrigger:r}={}){const i=t||xj;GC(e,i,{disabled:n,clickTrigger:r});const o=en(a=>{RC(a)&&i(a)});h.useEffect(()=>{if(n||e==null)return;const a=os(zu(e));let s=(a.defaultView||window).event;const c=ui(a,"keyup",l=>{if(l===s){s=void 0;return}o(l)});return()=>{c()}},[e,n,o])}const F$=ie.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:a={},transition:s,runTransition:c}=e,[l,u]=ad(),[d,f]=ad(),p=br(u,t),g=Zm(e.container),m=Zm(e.target),[v,x]=h.useState(!e.show),w=qC(m,l,KC({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:r,arrowElement:d,popperConfig:a}));e.show&&v&&x(!1);const _=(...S)=>{x(!0),e.onExited&&e.onExited(...S)},C=e.show||!v;if(wj(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:y,onExiting:$,onEnter:E,onEntering:T,onEntered:k}=e;let O=e.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:p}),{popper:w,placement:i,show:!!e.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:f})});return O=Xm(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O,onExit:y,onExiting:$,onExited:_,onEnter:E,onEntering:T,onEntered:k}),g?un.createPortal(O,g):null});F$.displayName="Overlay";const B$=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=mt(t,"popover-header"),b.jsx(n,{ref:i,className:ue(e,t),...r})));B$.displayName="PopoverHeader";const Qv=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=mt(t,"popover-body"),b.jsx(n,{ref:i,className:ue(e,t),...r})));Qv.displayName="PopoverBody";function z$(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function W$(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const _j=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:o,arrowProps:a,hasDoneInitialMeasure:s,popper:c,show:l,...u},d)=>{const f=mt(e,"popover"),p=gf(),[g]=(t==null?void 0:t.split("-"))||[],m=z$(g,p);let v=r;return l&&!s&&(v={...r,...W$(c==null?void 0:c.strategy)}),b.jsxs("div",{ref:d,role:"tooltip",style:v,"x-placement":g,className:ue(n,f,g&&`bs-popover-${m}`),...u,children:[b.jsx("div",{className:"popover-arrow",...a}),o?b.jsx(Qv,{children:i}):i]})}),Wu=Object.assign(_j,{Header:B$,Body:Qv,POPPER_OFFSET:[0,8]}),U$=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:o,hasDoneInitialMeasure:a,popper:s,show:c,...l},u)=>{e=mt(e,"tooltip");const d=gf(),[f]=(t==null?void 0:t.split("-"))||[],p=z$(f,d);let g=r;return c&&!a&&(g={...r,...W$(s==null?void 0:s.strategy)}),b.jsxs("div",{ref:u,style:g,role:"tooltip","x-placement":f,className:ue(n,e,`bs-tooltip-${p}`),...l,children:[b.jsx("div",{className:"tooltip-arrow",...o}),b.jsx("div",{className:`${e}-inner`,children:i})]})});U$.displayName="Tooltip";const V$=Object.assign(U$,{TOOLTIP_OFFSET:[0,6]});function Cj(e){const t=h.useRef(null),n=mt(void 0,"popover"),r=mt(void 0,"tooltip"),i=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Qm(t.current,n))return Wu.POPPER_OFFSET;if(Qm(t.current,r))return V$.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function $j(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(od(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(od(i)))}const H$=ie.forwardRef(({children:e,transition:t=Ki,popperConfig:n={},rootClose:r=!1,placement:i="top",show:o=!1,...a},s)=>{const c=h.useRef({}),[l,u]=h.useState(null),[d,f]=Cj(a.offset),p=br(s,d),g=t===!0?Ki:t||void 0,m=en(v=>{u(v),n==null||n.onFirstUpdate==null||n.onFirstUpdate(v)});return Sc(()=>{l&&a.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[l,a.target]),h.useEffect(()=>{o||u(null)},[o]),b.jsx(F$,{...a,ref:p,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:m},transition:g,rootClose:r,placement:i,show:o,children:(v,{arrowProps:x,popper:w,show:_})=>{var C;$j(v,x);const y=w==null?void 0:w.placement,$=Object.assign(c.current,{state:w==null?void 0:w.state,scheduleUpdate:w==null?void 0:w.update,placement:y,outOfBoundaries:(w==null||(C=w.state)==null||(C=C.modifiersData.hide)==null?void 0:C.isReferenceHidden)||!1,strategy:n.strategy}),E=!!l;return typeof e=="function"?e({...v,placement:y,show:_,...!t&&_&&{className:"show"},popper:$,arrowProps:x,hasDoneInitialMeasure:E}):ie.cloneElement(e,{...v,placement:y,arrowProps:x,popper:$,hasDoneInitialMeasure:E,className:ue(e.props.className,!t&&_&&"show"),style:{...e.props.style,...v.style}})}})});H$.displayName="Overlay";function Sj(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function k1(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!kc(i,o)&&e(...t)}K.oneOf(["click","hover","focus"]);const q$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:o=!1,onToggle:a,delay:s,placement:c,flip:l=c&&c.indexOf("auto")!==-1,...u})=>{const d=h.useRef(null),f=br(d,n.ref),p=uR(),g=h.useRef(""),[m,v]=vC(i,o,a),x=Sj(s),{onFocus:w,onBlur:_,onClick:C}=typeof n!="function"?ie.Children.only(n).props:{},y=L=>{f(od(L))},$=h.useCallback(()=>{if(p.clear(),g.current="show",!x.show){v(!0);return}p.set(()=>{g.current==="show"&&v(!0)},x.show)},[x.show,v,p]),E=h.useCallback(()=>{if(p.clear(),g.current="hide",!x.hide){v(!1);return}p.set(()=>{g.current==="hide"&&v(!1)},x.hide)},[x.hide,v,p]),T=h.useCallback((...L)=>{$(),w==null||w(...L)},[$,w]),k=h.useCallback((...L)=>{E(),_==null||_(...L)},[E,_]),O=h.useCallback((...L)=>{v(!m),C==null||C(...L)},[C,v,m]),S=h.useCallback((...L)=>{k1($,L,"fromElement")},[$]),M=h.useCallback((...L)=>{k1(E,L,"toElement")},[E]),A=e==null?[]:[].concat(e),j={ref:y};return A.indexOf("click")!==-1&&(j.onClick=O),A.indexOf("focus")!==-1&&(j.onFocus=T,j.onBlur=k),A.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Xo(A.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),j.onMouseOver=S,j.onMouseOut=M),b.jsxs(b.Fragment,{children:[typeof n=="function"?n(j):h.cloneElement(n,j),b.jsx(H$,{...u,show:m,onHide:E,flip:l,placement:c,popperConfig:r,target:d.current,children:t})]})},Jv=ie.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:o,...a},s)=>{e=mt(e,"spinner");const c=`${e}-${n}`;return b.jsx(i,{ref:s,...a,className:ue(o,c,r&&`${c}-${r}`,t&&`text-${t}`)})});Jv.displayName="Spinner";var Y$={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},O1=h.createContext&&h.createContext(Y$),Ej=["attr","size","title"];function Tj(e,t){if(e==null)return{};var n=kj(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kj(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dd.apply(this,arguments)}function M1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M1(Object(n),!0).forEach(function(r){Oj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oj(e,t,n){return t=Mj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mj(e){var t=Rj(e,"string");return typeof t=="symbol"?t:t+""}function Rj(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G$(e){return e&&e.map((t,n)=>h.createElement(t.tag,fd({key:n},t.attr),G$(t.child)))}function ft(e){return t=>h.createElement(Aj,dd({attr:fd({},e.attr)},t),G$(e.child))}function Aj(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=Tj(e,Ej),s=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),h.createElement("svg",dd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:c,style:fd(fd({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&h.createElement("title",null,o),e.children)};return O1!==void 0?h.createElement(O1.Consumer,null,n=>t(n)):t(Y$)}function jj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function Cl(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{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"},child:[]}]})(e)}function Nj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 12.4V7l-4-4H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.4l8.6-8.6zM15 15c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zM6 6h9v4H6V6zm13.99 10.25 1.77 1.77L16.77 23H15v-1.77l4.99-4.98zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"},child:[]}]})(e)}function Dj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(e)}function Ij(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"},child:[]}]})(e)}function Pj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 17 5-5-5-5v10z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0h24v24H0z"},child:[]}]})(e)}function Lj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function Fj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function Bj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function K$(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function zj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function Wj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function Uj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function Vj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function Hj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function qj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function Yj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(e)}function Z$(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function Gj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function Kj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function Zj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},child:[]},{tag:"path",attr:{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},child:[]}]})(e)}function Xj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function Qj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function Jj(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67 1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"},child:[]}]})(e)}function e8(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function t8(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function X$(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{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 12 19 6.41z"},child:[]}]})(e)}function n8(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(e)}function Q$(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function r8(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function i8(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 24H0V0h24v24z",opacity:".87"},child:[]},{tag:"path",attr:{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"},child:[]}]})(e)}function o8(e){return ft({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const sn=h.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),J$=h.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),eS=h.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),tS=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:i,setOptions:o}=h.useContext(eS),a=h.useCallback(c=>{r(),i.current(c)},[r,i]),s=h.useCallback(async(c,l)=>(o(u=>({...u,...l})),n(c),new Promise(u=>{i.current=u})),[i,o,n]);return{isShown:e,text:t,prompt:s,onFinish:a}};let a8={data:""},s8=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||a8,c8=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,l8=/\/\*[^]*?\*\/| +/g,R1=/\n+/g,Bi=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+a+";":r+=o[1]=="f"?Bi(a,o):o+"{"+Bi(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=Bi(a,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Bi.p?Bi.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},ni={},nS=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+nS(e[n]);return t}return e},u8=(e,t,n,r,i)=>{let o=nS(e),a=ni[o]||(ni[o]=(c=>{let l=0,u=11;for(;l<c.length;)u=101*u+c.charCodeAt(l++)>>>0;return"go"+u})(o));if(!ni[a]){let c=o!==e?e:(l=>{let u,d,f=[{}];for(;u=c8.exec(l.replace(l8,""));)u[4]?f.shift():u[3]?(d=u[3].replace(R1," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(R1," ").trim();return f[0]})(e);ni[a]=Bi(i?{["@keyframes "+a]:c}:c,n?"":"."+a)}let s=n&&ni.g?ni.g:null;return n&&(ni.g=ni[a]),((c,l,u,d)=>{d?l.data=l.data.replace(d,c):l.data.indexOf(c)===-1&&(l.data=u?c+l.data:l.data+c)})(ni[a],t,r,s),a},d8=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=c?"."+c:s&&typeof s=="object"?s.props?"":Bi(s,""):s===!1?"":s}return r+i+(a??"")},"");function Ef(e){let t=this||{},n=e.call?e(t.p):e;return u8(n.unshift?n.raw?d8(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,s8(t.target),t.g,t.o,t.k)}let rS,Jm,eg;Ef.bind({g:1});let bi=Ef.bind({k:1});function f8(e,t,n,r){Bi.p=t,rS=e,Jm=n,eg=r}function co(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),c=s.className||i.className;n.p=Object.assign({theme:Jm&&Jm()},s),n.o=/ *go\d+/.test(c),s.className=Ef.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=s.as||e,delete s.as),eg&&l[0]&&eg(s),rS(l,s)}return i}}var h8=e=>typeof e=="function",hd=(e,t)=>h8(e)?e(t):e,p8=(()=>{let e=0;return()=>(++e).toString()})(),iS=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),m8=20,Uu=new Map,g8=1e3,A1=e=>{if(Uu.has(e))return;let t=setTimeout(()=>{Uu.delete(e),Qo({type:4,toastId:e})},g8);Uu.set(e,t)},v8=e=>{let t=Uu.get(e);t&&clearTimeout(t)},tg=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,m8)};case 1:return t.toast.id&&v8(t.toast.id),{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:n}=t;return e.toasts.find(o=>o.id===n.id)?tg(e,{type:1,toast:n}):tg(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?A1(r):e.toasts.forEach(o=>{A1(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},Vu=[],Hu={toasts:[],pausedAt:void 0},Qo=e=>{Hu=tg(Hu,e),Vu.forEach(t=>{t(Hu)})},b8={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},y8=(e={})=>{let[t,n]=h.useState(Hu);h.useEffect(()=>(Vu.push(n),()=>{let i=Vu.indexOf(n);i>-1&&Vu.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var o,a;return{...e,...e[i.type],...i,duration:i.duration||((o=e[i.type])==null?void 0:o.duration)||(e==null?void 0:e.duration)||b8[i.type],style:{...e.style,...(a=e[i.type])==null?void 0:a.style,...i.style}}});return{...t,toasts:r}},x8=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||p8()}),$l=e=>(t,n)=>{let r=x8(t,e,n);return Qo({type:2,toast:r}),r.id},Qn=(e,t)=>$l("blank")(e,t);Qn.error=$l("error");Qn.success=$l("success");Qn.loading=$l("loading");Qn.custom=$l("custom");Qn.dismiss=e=>{Qo({type:3,toastId:e})};Qn.remove=e=>Qo({type:4,toastId:e});Qn.promise=(e,t,n)=>{let r=Qn.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Qn.success(hd(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Qn.error(hd(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var w8=(e,t)=>{Qo({type:1,toast:{id:e,height:t}})},_8=()=>{Qo({type:5,time:Date.now()})},C8=e=>{let{toasts:t,pausedAt:n}=y8(e);h.useEffect(()=>{if(n)return;let o=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(o-s.createdAt);if(c<0){s.visible&&Qn.dismiss(s.id);return}return setTimeout(()=>Qn.dismiss(s.id),c)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=h.useCallback(()=>{n&&Qo({type:6,time:Date.now()})},[n]),i=h.useCallback((o,a)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:l}=a||{},u=t.filter(p=>(p.position||l)===(o.position||l)&&p.height),d=u.findIndex(p=>p.id===o.id),f=u.filter((p,g)=>g<d&&p.visible).length;return u.filter(p=>p.visible).slice(...s?[f+1]:[0,f]).reduce((p,g)=>p+(g.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:w8,startPause:_8,endPause:r,calculateOffset:i}}},$8=bi`
|
|
54
|
-
from {
|
|
55
|
-
transform: scale(0) rotate(45deg);
|
|
56
|
-
opacity: 0;
|
|
57
|
-
}
|
|
58
|
-
to {
|
|
59
|
-
transform: scale(1) rotate(45deg);
|
|
60
|
-
opacity: 1;
|
|
61
|
-
}`,S8=bi`
|
|
62
|
-
from {
|
|
63
|
-
transform: scale(0);
|
|
64
|
-
opacity: 0;
|
|
65
|
-
}
|
|
66
|
-
to {
|
|
67
|
-
transform: scale(1);
|
|
68
|
-
opacity: 1;
|
|
69
|
-
}`,E8=bi`
|
|
70
|
-
from {
|
|
71
|
-
transform: scale(0) rotate(90deg);
|
|
72
|
-
opacity: 0;
|
|
73
|
-
}
|
|
74
|
-
to {
|
|
75
|
-
transform: scale(1) rotate(90deg);
|
|
76
|
-
opacity: 1;
|
|
77
|
-
}`,T8=co("div")`
|
|
78
|
-
width: 20px;
|
|
79
|
-
opacity: 0;
|
|
80
|
-
height: 20px;
|
|
81
|
-
border-radius: 10px;
|
|
82
|
-
background: ${e=>e.primary||"#ff4b4b"};
|
|
83
|
-
position: relative;
|
|
84
|
-
transform: rotate(45deg);
|
|
85
|
-
|
|
86
|
-
animation: ${$8} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
87
|
-
forwards;
|
|
88
|
-
animation-delay: 100ms;
|
|
89
|
-
|
|
90
|
-
&:after,
|
|
91
|
-
&:before {
|
|
92
|
-
content: '';
|
|
93
|
-
animation: ${S8} 0.15s ease-out forwards;
|
|
94
|
-
animation-delay: 150ms;
|
|
95
|
-
position: absolute;
|
|
96
|
-
border-radius: 3px;
|
|
97
|
-
opacity: 0;
|
|
98
|
-
background: ${e=>e.secondary||"#fff"};
|
|
99
|
-
bottom: 9px;
|
|
100
|
-
left: 4px;
|
|
101
|
-
height: 2px;
|
|
102
|
-
width: 12px;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&:before {
|
|
106
|
-
animation: ${E8} 0.15s ease-out forwards;
|
|
107
|
-
animation-delay: 180ms;
|
|
108
|
-
transform: rotate(90deg);
|
|
109
|
-
}
|
|
110
|
-
`,k8=bi`
|
|
111
|
-
from {
|
|
112
|
-
transform: rotate(0deg);
|
|
113
|
-
}
|
|
114
|
-
to {
|
|
115
|
-
transform: rotate(360deg);
|
|
116
|
-
}
|
|
117
|
-
`,O8=co("div")`
|
|
118
|
-
width: 12px;
|
|
119
|
-
height: 12px;
|
|
120
|
-
box-sizing: border-box;
|
|
121
|
-
border: 2px solid;
|
|
122
|
-
border-radius: 100%;
|
|
123
|
-
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
124
|
-
border-right-color: ${e=>e.primary||"#616161"};
|
|
125
|
-
animation: ${k8} 1s linear infinite;
|
|
126
|
-
`,M8=bi`
|
|
127
|
-
from {
|
|
128
|
-
transform: scale(0) rotate(45deg);
|
|
129
|
-
opacity: 0;
|
|
130
|
-
}
|
|
131
|
-
to {
|
|
132
|
-
transform: scale(1) rotate(45deg);
|
|
133
|
-
opacity: 1;
|
|
134
|
-
}`,R8=bi`
|
|
135
|
-
0% {
|
|
136
|
-
height: 0;
|
|
137
|
-
width: 0;
|
|
138
|
-
opacity: 0;
|
|
139
|
-
}
|
|
140
|
-
40% {
|
|
141
|
-
height: 0;
|
|
142
|
-
width: 6px;
|
|
143
|
-
opacity: 1;
|
|
144
|
-
}
|
|
145
|
-
100% {
|
|
146
|
-
opacity: 1;
|
|
147
|
-
height: 10px;
|
|
148
|
-
}`,A8=co("div")`
|
|
149
|
-
width: 20px;
|
|
150
|
-
opacity: 0;
|
|
151
|
-
height: 20px;
|
|
152
|
-
border-radius: 10px;
|
|
153
|
-
background: ${e=>e.primary||"#61d345"};
|
|
154
|
-
position: relative;
|
|
155
|
-
transform: rotate(45deg);
|
|
156
|
-
|
|
157
|
-
animation: ${M8} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
158
|
-
forwards;
|
|
159
|
-
animation-delay: 100ms;
|
|
160
|
-
&:after {
|
|
161
|
-
content: '';
|
|
162
|
-
box-sizing: border-box;
|
|
163
|
-
animation: ${R8} 0.2s ease-out forwards;
|
|
164
|
-
opacity: 0;
|
|
165
|
-
animation-delay: 200ms;
|
|
166
|
-
position: absolute;
|
|
167
|
-
border-right: 2px solid;
|
|
168
|
-
border-bottom: 2px solid;
|
|
169
|
-
border-color: ${e=>e.secondary||"#fff"};
|
|
170
|
-
bottom: 6px;
|
|
171
|
-
left: 6px;
|
|
172
|
-
height: 10px;
|
|
173
|
-
width: 6px;
|
|
174
|
-
}
|
|
175
|
-
`,j8=co("div")`
|
|
176
|
-
position: absolute;
|
|
177
|
-
`,N8=co("div")`
|
|
178
|
-
position: relative;
|
|
179
|
-
display: flex;
|
|
180
|
-
justify-content: center;
|
|
181
|
-
align-items: center;
|
|
182
|
-
min-width: 20px;
|
|
183
|
-
min-height: 20px;
|
|
184
|
-
`,D8=bi`
|
|
185
|
-
from {
|
|
186
|
-
transform: scale(0.6);
|
|
187
|
-
opacity: 0.4;
|
|
188
|
-
}
|
|
189
|
-
to {
|
|
190
|
-
transform: scale(1);
|
|
191
|
-
opacity: 1;
|
|
192
|
-
}`,I8=co("div")`
|
|
193
|
-
position: relative;
|
|
194
|
-
transform: scale(0.6);
|
|
195
|
-
opacity: 0.4;
|
|
196
|
-
min-width: 20px;
|
|
197
|
-
animation: ${D8} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
198
|
-
forwards;
|
|
199
|
-
`,P8=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?ie.createElement(I8,null,t):t:n==="blank"?null:ie.createElement(N8,null,ie.createElement(O8,{...r}),n!=="loading"&&ie.createElement(j8,null,n==="error"?ie.createElement(T8,{...r}):ie.createElement(A8,{...r})))},L8=e=>`
|
|
200
|
-
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
201
|
-
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
202
|
-
`,F8=e=>`
|
|
203
|
-
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
204
|
-
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
205
|
-
`,B8="0%{opacity:0;} 100%{opacity:1;}",z8="0%{opacity:1;} 100%{opacity:0;}",W8=co("div")`
|
|
206
|
-
display: flex;
|
|
207
|
-
align-items: center;
|
|
208
|
-
background: #fff;
|
|
209
|
-
color: #363636;
|
|
210
|
-
line-height: 1.3;
|
|
211
|
-
will-change: transform;
|
|
212
|
-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
213
|
-
max-width: 350px;
|
|
214
|
-
pointer-events: auto;
|
|
215
|
-
padding: 8px 10px;
|
|
216
|
-
border-radius: 8px;
|
|
217
|
-
`,U8=co("div")`
|
|
218
|
-
display: flex;
|
|
219
|
-
justify-content: center;
|
|
220
|
-
margin: 4px 10px;
|
|
221
|
-
color: inherit;
|
|
222
|
-
flex: 1 1 auto;
|
|
223
|
-
white-space: pre-line;
|
|
224
|
-
`,V8=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=iS()?[B8,z8]:[L8(n),F8(n)];return{animation:t?`${bi(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${bi(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},H8=ie.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?V8(e.position||t||"top-center",e.visible):{opacity:0},o=ie.createElement(P8,{toast:e}),a=ie.createElement(U8,{...e.ariaProps},hd(e.message,e));return ie.createElement(W8,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):ie.createElement(ie.Fragment,null,o,a))});f8(ie.createElement);var q8=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=ie.useCallback(a=>{if(a){let s=()=>{let c=a.getBoundingClientRect().height;r(e,c)};s(),new MutationObserver(s).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return ie.createElement("div",{ref:o,className:t,style:n},i)},Y8=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:iS()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},G8=Ef`
|
|
225
|
-
z-index: 9999;
|
|
226
|
-
> * {
|
|
227
|
-
pointer-events: auto;
|
|
228
|
-
}
|
|
229
|
-
`,fu=16,K8=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:a})=>{let{toasts:s,handlers:c}=C8(n);return ie.createElement("div",{style:{position:"fixed",zIndex:9999,top:fu,left:fu,right:fu,bottom:fu,pointerEvents:"none",...o},className:a,onMouseEnter:c.startPause,onMouseLeave:c.endPause},s.map(l=>{let u=l.position||t,d=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),f=Y8(u,d);return ie.createElement(q8,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?G8:"",style:f},l.type==="custom"?hd(l.message,l):i?i(l):ie.createElement(H8,{toast:l,position:u}))}))},da=Qn;const Tf=h.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var ng;(function(e){e[e.LOGGING_IN=0]="LOGGING_IN",e[e.LOGGED_IN=1]="LOGGED_IN",e[e.LOGGED_OUT=2]="LOGGED_OUT",e[e.LOGIN_FAILED=3]="LOGIN_FAILED"})(ng||(ng={}));const oS=ng;var rg;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(rg||(rg={}));const Z8=rg,aS=h.createContext({user:null,userLoginState:{state:oS.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),kf=h.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null}),sS=h.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),pd=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),cS=e=>{pd(e)||Object.keys(e).forEach(t=>{const n=e[t];if(pd(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:cS(n)})},lS=e=>Object.values(e).every(t=>t===null),X8=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&lS(r)?t[n]=null:t[n]=r}),t},e0=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t&&t.errorFields&&t.errorFields.length>0?t.errorFields.map(r=>({name:r.name.split(".").map(o=>`${o.charAt(0).toLowerCase()}${o.slice(1)}`).join("."),errors:r.errors})):[]},Q8=(e,t)=>{e0(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),pd(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},uS=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t!=null&&t.permissions&&t.permissions.length>0?t.permissions:null},dS=({heading:e,content:t,placement:n,children:r,trigger:i=["hover"],popoverClassName:o,small:a,delay:s,...c})=>{const l=i.includes("hover")&&!i.includes("focus")?[...i,"focus"]:i;return b.jsx(q$,{placement:n,overlay:b.jsxs(Wu,{className:ue("luminus-popover",{"luminus-popover-sm":a},o),onClick:u=>u.stopPropagation(),children:[e&&b.jsx(Wu.Header,{children:typeof e=="string"?b.jsx(jn,{variant:"h6",className:"text-primary",children:e}):e}),b.jsx(Wu.Body,{children:t})]}),trigger:l,rootClose:!0,show:c.controlled?c.isOpen:void 0,onToggle:c.controlled?u=>c.setIsOpen(u):void 0,delay:s,children:r})},J8="_h1_14r4v_1",e7="_h3_14r4v_8",t7="_h6_14r4v_15",n7="_subtitle_14r4v_22",r7="_body_14r4v_29",i7="_body2_14r4v_36",o7="_caption_14r4v_43",a7="_form-label_14r4v_50",Mi={h1:J8,h3:e7,h6:t7,subtitle:n7,body:r7,body2:i7,caption:o7,"form-label":"_form-label_14r4v_50",formLabel:a7},s7=({variant:e,className:t,children:n})=>{switch(e){case"h1":return b.jsx("h1",{className:ue("luminus-text-primary luminus-h1",Mi.h1,t),children:n});case"h3":return b.jsx("h3",{className:ue("luminus-text luminus-h3",Mi.h3,t),children:n});case"h6":return b.jsx("h6",{className:ue("luminus-text luminus-h6",Mi.h6,t),children:n});case"subtitle":return b.jsx("div",{className:ue("luminus-text luminus-subtitle",Mi.subtitle,t),children:n});case"body":return b.jsx("div",{className:ue("luminus-text luminus-body",Mi.body,t),children:n});case"body2":return b.jsx("div",{className:ue("luminus-text luminus-body2",Mi.body2,t),children:n});case"caption":return b.jsx("div",{className:ue("luminus-text-muted luminus-caption",Mi.caption,t),children:n});case"form-label":return b.jsx("div",{className:ue("luminus-text luminus-form-label",Mi.formLabel,t),children:n});default:return b.jsx(b.Fragment,{children:n})}},jn=({variant:e,className:t,children:n})=>b.jsx(s7,{variant:e,className:t,children:n}),t0=({text:e,placement:t,children:n,delay:r})=>b.jsx(dS,{content:b.jsx(jn,{variant:"body2",className:"text-center",children:e}),placement:t,delay:r,small:!0,children:n}),fS=e=>e.length<300?e:e.substring(0,300)+"...",Ua=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function Mc(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const ig=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),c7=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function l7(e){return e==null?"":Cv(pf(e),"dd.MM.yyyy")}function Of(e){return(e==null?void 0:e.toString().split("T")[0])??""}function u7(e){return e==null?"":Cv(pf(e),"dd.MM.yyyy HH:mm")}function d7(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const f7=(e,t)=>Mc(" ",e?`${e},`:void 0,t),h7=(e,t)=>`${t}${e!=null?` (${e})`:""}`,p7=(e,t)=>`[${e??""}] ${t??""}`,hS=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),pS=e=>{const t=pf(e);return!Number.isNaN(t.getTime())};function m7(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function g7(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function v7(e,t){const n=new Date(e),r=new Date(t);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()-r.getTime()}function b7(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function y7(e=Date.now(),t=Date.now()){const n=new Date(e),r=new Date(t);n.setHours(10,0,0,0),r.setHours(0,0,0,0);const i=n.getTime()-r.getTime();return Math.floor(i/(1e3*3600*24))}function mS(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function gS(e=new Date){return s6(e)}function x7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),mS(t)}function w7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),gS(t)}function _7(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function C7(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function $7(e){return Of(e.toISOString())}function vS(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const i=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,o=r.match(i);if(o){const a=o[2].toUpperCase(),s=o[3];try{return a==="B"?r=hS(s):a==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(c,l)=>String.fromCharCode(parseInt(l,16)))),decodeURIComponent(r)}catch(c){return console.error("Error decoding MIME encoded filename:",c),r}}try{return decodeURIComponent(r)}catch(a){return console.error("Error decoding filename:",a),r}}return null}function md(e,t,n=!0){const r=URL.createObjectURL(e),i=document.createElement("a");i.href=r,i.setAttribute("style","display: none"),n?(window.open(r,"_blank","noopener,noreferrer"),setTimeout(()=>URL.revokeObjectURL(r),6e4)):(i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r))}const S7=["application/pdf","text/plain","text/html","application/xml","text/xml","image/jpeg","image/png","image/gif","image/webp","image/svg+xml","image/bmp","image/x-icon","audio/mpeg","audio/wav","audio/ogg","audio/mp4","video/mp4","video/webm","video/ogg"],E7=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],bS=e=>S7.includes(e.type),yS=e=>E7.includes(e.toLowerCase());function T7(e,t){let n=(t==null?void 0:t.forcedName)??(t==null?void 0:t.fallbackName)??"file";if((t==null?void 0:t.forcedName)===void 0&&typeof e.headers.get=="function"){const o=e.headers.get("Content-disposition");typeof o=="string"&&o.length>0&&(n=vS(e.headers.get("Content-disposition"))??n)}const r=bS(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;md(e.data,n,r?i:!1)}function Va(e,t=Va.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}Va.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I",І:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",Lj:"L",Ł:"L",LJ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",Nj:"N",Ñ:"N",NJ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",ß:"ss",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ї:"YI",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Þ:"TH",IJ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ð:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",dz:"dz",dž:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i",і:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",lj:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};const og=(e,t)=>t?e?Va(e).toLowerCase().includes(Va(t.toLowerCase())):!1:!0,xS=(e,t)=>t?e?Va(e).toLowerCase().startsWith(Va(t.toLowerCase())):!1:!0,n0=(e,t,n)=>{const r=localStorage.getItem("search-use-asterisk")!=="false",i=n!=null&&n.trimSpaces?t==null?void 0:t.replaceAll(" ",""):t,o=n!=null&&n.trimSpaces?e==null?void 0:e.replaceAll(" ",""):e;return i?r?i.startsWith("*")?og(o,i.substring(1)):xS(o,i):og(o,i):!0};function wS(e,t){return function(){return e.apply(t,arguments)}}const{toString:k7}=Object.prototype,{getPrototypeOf:r0}=Object,Mf=(e=>t=>{const n=k7.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rr=e=>(e=e.toLowerCase(),t=>Mf(t)===e),Rf=e=>t=>typeof t===e,{isArray:cs}=Array,Rc=Rf("undefined");function O7(e){return e!==null&&!Rc(e)&&e.constructor!==null&&!Rc(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _S=Rr("ArrayBuffer");function M7(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_S(e.buffer),t}const R7=Rf("string"),Jn=Rf("function"),CS=Rf("number"),Af=e=>e!==null&&typeof e=="object",A7=e=>e===!0||e===!1,qu=e=>{if(Mf(e)!=="object")return!1;const t=r0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},j7=Rr("Date"),N7=Rr("File"),D7=Rr("Blob"),I7=Rr("FileList"),P7=e=>Af(e)&&Jn(e.pipe),L7=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=Mf(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},F7=Rr("URLSearchParams"),[B7,z7,W7,U7]=["ReadableStream","Request","Response","Headers"].map(Rr),V7=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),cs(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function $S(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const $o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,SS=e=>!Rc(e)&&e!==$o;function ag(){const{caseless:e}=SS(this)&&this||{},t={},n=(r,i)=>{const o=e&&$S(t,i)||i;qu(t[o])&&qu(r)?t[o]=ag(t[o],r):qu(r)?t[o]=ag({},r):cs(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Sl(arguments[r],n);return t}const H7=(e,t,n,{allOwnKeys:r}={})=>(Sl(t,(i,o)=>{n&&Jn(i)?e[o]=wS(i,n):e[o]=i},{allOwnKeys:r}),e),q7=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Y7=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},G7=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&r0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},K7=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Z7=e=>{if(!e)return null;if(cs(e))return e;let t=e.length;if(!CS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},X7=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&r0(Uint8Array)),Q7=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},J7=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},eN=Rr("HTMLFormElement"),tN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),j1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nN=Rr("RegExp"),ES=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sl(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},rN=e=>{ES(e,(t,n)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Jn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},iN=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return cs(e)?r(e):r(String(e).split(t)),n},oN=()=>{},aN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mp="abcdefghijklmnopqrstuvwxyz",N1="0123456789",TS={DIGIT:N1,ALPHA:Mp,ALPHA_DIGIT:Mp+Mp.toUpperCase()+N1},sN=(e=16,t=TS.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function cN(e){return!!(e&&Jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lN=e=>{const t=new Array(10),n=(r,i)=>{if(Af(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=cs(r)?[]:{};return Sl(r,(a,s)=>{const c=n(a,i+1);!Rc(c)&&(o[s]=c)}),t[i]=void 0,o}}return r};return n(e,0)},uN=Rr("AsyncFunction"),dN=e=>e&&(Af(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),kS=((e,t)=>e?setImmediate:t?((n,r)=>($o.addEventListener("message",({source:i,data:o})=>{i===$o&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),$o.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jn($o.postMessage)),fN=typeof queueMicrotask<"u"?queueMicrotask.bind($o):typeof process<"u"&&process.nextTick||kS,se={isArray:cs,isArrayBuffer:_S,isBuffer:O7,isFormData:L7,isArrayBufferView:M7,isString:R7,isNumber:CS,isBoolean:A7,isObject:Af,isPlainObject:qu,isReadableStream:B7,isRequest:z7,isResponse:W7,isHeaders:U7,isUndefined:Rc,isDate:j7,isFile:N7,isBlob:D7,isRegExp:nN,isFunction:Jn,isStream:P7,isURLSearchParams:F7,isTypedArray:X7,isFileList:I7,forEach:Sl,merge:ag,extend:H7,trim:V7,stripBOM:q7,inherits:Y7,toFlatObject:G7,kindOf:Mf,kindOfTest:Rr,endsWith:K7,toArray:Z7,forEachEntry:Q7,matchAll:J7,isHTMLForm:eN,hasOwnProperty:j1,hasOwnProp:j1,reduceDescriptors:ES,freezeMethods:rN,toObjectSet:iN,toCamelCase:tN,noop:oN,toFiniteNumber:aN,findKey:$S,global:$o,isContextDefined:SS,ALPHABET:TS,generateString:sN,isSpecCompliantForm:cN,toJSONObject:lN,isAsyncFn:uN,isThenable:dN,setImmediate:kS,asap:fN};function it(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}se.inherits(it,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:se.toJSONObject(this.config),code:this.code,status:this.status}}});const OS=it.prototype,MS={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{MS[e]={value:e}});Object.defineProperties(it,MS);Object.defineProperty(OS,"isAxiosError",{value:!0});it.from=(e,t,n,r,i,o)=>{const a=Object.create(OS);return se.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),it.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const hN=null;function sg(e){return se.isPlainObject(e)||se.isArray(e)}function RS(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function D1(e,t,n){return e?e.concat(t).map(function(i,o){return i=RS(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function pN(e){return se.isArray(e)&&!e.some(sg)}const mN=se.toFlatObject(se,{},null,function(t){return/^is[A-Z]/.test(t)});function jf(e,t,n){if(!se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!se.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(t);if(!se.isFunction(i))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(se.isDate(g))return g.toISOString();if(!c&&se.isBlob(g))throw new it("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(g)||se.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,m,v){let x=g;if(g&&!v&&typeof g=="object"){if(se.endsWith(m,"{}"))m=r?m:m.slice(0,-2),g=JSON.stringify(g);else if(se.isArray(g)&&pN(g)||(se.isFileList(g)||se.endsWith(m,"[]"))&&(x=se.toArray(g)))return m=RS(m),x.forEach(function(_,C){!(se.isUndefined(_)||_===null)&&t.append(a===!0?D1([m],C,o):a===null?m:m+"[]",l(_))}),!1}return sg(g)?!0:(t.append(D1(v,m,o),l(g)),!1)}const d=[],f=Object.assign(mN,{defaultVisitor:u,convertValue:l,isVisitable:sg});function p(g,m){if(!se.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(g),se.forEach(g,function(x,w){(!(se.isUndefined(x)||x===null)&&i.call(t,x,se.isString(w)?w.trim():w,m,f))===!0&&p(x,m?m.concat(w):[w])}),d.pop()}}if(!se.isObject(e))throw new TypeError("data must be an object");return p(e),t}function I1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function i0(e,t){this._pairs=[],e&&jf(e,this,t)}const AS=i0.prototype;AS.append=function(t,n){this._pairs.push([t,n])};AS.toString=function(t){const n=t?function(r){return t.call(this,r,I1)}:I1;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function gN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jS(e,t,n){if(!t)return e;const r=n&&n.encode||gN,i=n&&n.serialize;let o;if(i?o=i(t,n):o=se.isURLSearchParams(t)?t.toString():new i0(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class P1{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){se.forEach(this.handlers,function(r){r!==null&&t(r)})}}const NS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vN=typeof URLSearchParams<"u"?URLSearchParams:i0,bN=typeof FormData<"u"?FormData:null,yN=typeof Blob<"u"?Blob:null,xN={isBrowser:!0,classes:{URLSearchParams:vN,FormData:bN,Blob:yN},protocols:["http","https","file","blob","url","data"]},o0=typeof window<"u"&&typeof document<"u",cg=typeof navigator=="object"&&navigator||void 0,wN=o0&&(!cg||["ReactNative","NativeScript","NS"].indexOf(cg.product)<0),_N=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",CN=o0&&window.location.href||"http://localhost",$N=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:o0,hasStandardBrowserEnv:wN,hasStandardBrowserWebWorkerEnv:_N,navigator:cg,origin:CN},Symbol.toStringTag,{value:"Module"})),Hn={...$N,...xN};function SN(e,t){return jf(e,new Hn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Hn.isNode&&se.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function EN(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function TN(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function DS(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=o>=n.length;return a=!a&&se.isArray(i)?i.length:a,c?(se.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!se.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&se.isArray(i[a])&&(i[a]=TN(i[a])),!s)}if(se.isFormData(e)&&se.isFunction(e.entries)){const n={};return se.forEachEntry(e,(r,i)=>{t(EN(r),i,n,0)}),n}return null}function kN(e,t,n){if(se.isString(e))try{return(t||JSON.parse)(e),se.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const El={transitional:NS,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=se.isObject(t);if(o&&se.isHTMLForm(t)&&(t=new FormData(t)),se.isFormData(t))return i?JSON.stringify(DS(t)):t;if(se.isArrayBuffer(t)||se.isBuffer(t)||se.isStream(t)||se.isFile(t)||se.isBlob(t)||se.isReadableStream(t))return t;if(se.isArrayBufferView(t))return t.buffer;if(se.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return SN(t,this.formSerializer).toString();if((s=se.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return jf(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),kN(t)):t}],transformResponse:[function(t){const n=this.transitional||El.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(se.isResponse(t)||se.isReadableStream(t))return t;if(t&&se.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?it.from(s,it.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hn.classes.FormData,Blob:Hn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],e=>{El.headers[e]={}});const ON=se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),MN=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
230
|
-
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&ON[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},L1=Symbol("internals");function Ls(e){return e&&String(e).trim().toLowerCase()}function Yu(e){return e===!1||e==null?e:se.isArray(e)?e.map(Yu):String(e)}function RN(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const AN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rp(e,t,n,r,i){if(se.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!se.isString(t)){if(se.isString(r))return t.indexOf(r)!==-1;if(se.isRegExp(r))return r.test(t)}}function jN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function NN(e,t){const n=se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class qn{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,c,l){const u=Ls(c);if(!u)throw new Error("header name must be a non-empty string");const d=se.findKey(i,u);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=Yu(s))}const a=(s,c)=>se.forEach(s,(l,u)=>o(l,u,c));if(se.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(se.isString(t)&&(t=t.trim())&&!AN(t))a(MN(t),n);else if(se.isHeaders(t))for(const[s,c]of t.entries())o(c,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ls(t),t){const r=se.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return RN(i);if(se.isFunction(n))return n.call(this,i,r);if(se.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ls(t),t){const r=se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Rp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Ls(a),a){const s=se.findKey(r,a);s&&(!n||Rp(r,r[s],s,n))&&(delete r[s],i=!0)}}return se.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Rp(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return se.forEach(this,(i,o)=>{const a=se.findKey(r,o);if(a){n[a]=Yu(i),delete n[o];return}const s=t?jN(o):String(o).trim();s!==o&&delete n[o],n[s]=Yu(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return se.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
231
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[L1]=this[L1]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Ls(a);r[s]||(NN(i,a),r[s]=!0)}return se.isArray(t)?t.forEach(o):o(t),this}}qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);se.reduceDescriptors(qn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});se.freezeMethods(qn);function Ap(e,t){const n=this||El,r=t||n,i=qn.from(r.headers);let o=r.data;return se.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function IS(e){return!!(e&&e.__CANCEL__)}function ls(e,t,n){it.call(this,e??"canceled",it.ERR_CANCELED,t,n),this.name="CanceledError"}se.inherits(ls,it,{__CANCEL__:!0});function PS(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new it("Request failed with status code "+n.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function DN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function IN(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[o];a||(a=l),n[i]=c,r[i]=l;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const p=u&&l-u;return p?Math.round(f*1e3/p):void 0}}function PN(e,t){let n=0,r=1e3/t,i,o;const a=(l,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?a(l,u):(i=l,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const gd=(e,t,n=3)=>{let r=0;const i=IN(50,250);return PN(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,c=a-r,l=i(c),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},F1=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},B1=e=>(...t)=>se.asap(()=>e(...t)),LN=Hn.hasStandardBrowserEnv?function(){const t=Hn.navigator&&/(msie|trident)/i.test(Hn.navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=se.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),FN=Hn.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];se.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),se.isString(r)&&a.push("path="+r),se.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function BN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function LS(e,t){return e&&!BN(t)?zN(e,t):t}const z1=e=>e instanceof qn?{...e}:e;function Bo(e,t){t=t||{};const n={};function r(l,u,d){return se.isPlainObject(l)&&se.isPlainObject(u)?se.merge.call({caseless:d},l,u):se.isPlainObject(u)?se.merge({},u):se.isArray(u)?u.slice():u}function i(l,u,d){if(se.isUndefined(u)){if(!se.isUndefined(l))return r(void 0,l,d)}else return r(l,u,d)}function o(l,u){if(!se.isUndefined(u))return r(void 0,u)}function a(l,u){if(se.isUndefined(u)){if(!se.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function s(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u)=>i(z1(l),z1(u),!0)};return se.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||i,f=d(e[u],t[u],u);se.isUndefined(f)&&d!==s||(n[u]=f)}),n}const FS=e=>{const t=Bo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=qn.from(a),t.url=jS(LS(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(se.isFormData(n)){if(Hn.hasStandardBrowserEnv||Hn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Hn.hasStandardBrowserEnv&&(r&&se.isFunction(r)&&(r=r(t)),r||r!==!1&&LN(t.url))){const l=i&&o&&FN.read(o);l&&a.set(i,l)}return t},WN=typeof XMLHttpRequest<"u",UN=WN&&function(e){return new Promise(function(n,r){const i=FS(e);let o=i.data;const a=qn.from(i.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=i,u,d,f,p,g;function m(){p&&p(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function x(){if(!v)return;const _=qn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:_,config:e,request:v};PS(function(E){n(E),m()},function(E){r(E),m()},y),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(r(new it("Request aborted",it.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new it("Network Error",it.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const y=i.transitional||NS;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new it(C,y.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,e,v)),v=null},o===void 0&&a.setContentType(null),"setRequestHeader"in v&&se.forEach(a.toJSON(),function(C,y){v.setRequestHeader(y,C)}),se.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),l&&([f,g]=gd(l,!0),v.addEventListener("progress",f)),c&&v.upload&&([d,p]=gd(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=_=>{v&&(r(!_||_.type?new ls(null,e,v):_),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=DN(i.url);if(w&&Hn.protocols.indexOf(w)===-1){r(new it("Unsupported protocol "+w+":",it.ERR_BAD_REQUEST,e));return}v.send(o||null)})},VN=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(l){if(!i){i=!0,s();const u=l instanceof Error?l:this.reason;r.abort(u instanceof it?u:new ls(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new it(`timeout ${t} of ms exceeded`,it.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>se.asap(s),c}},HN=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},qN=async function*(e,t){for await(const n of YN(e))yield*HN(n,t)},YN=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},W1=(e,t,n,r)=>{const i=qN(e,t);let o=0,a,s=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await i.next();if(l){s(),c.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),i.return()}},{highWaterMark:2})},Nf=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",BS=Nf&&typeof ReadableStream=="function",GN=Nf&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},KN=BS&&zS(()=>{let e=!1;const t=new Request(Hn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),U1=64*1024,lg=BS&&zS(()=>se.isReadableStream(new Response("").body)),vd={stream:lg&&(e=>e.body)};Nf&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vd[t]&&(vd[t]=se.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new it(`Response type '${t}' is not supported`,it.ERR_NOT_SUPPORT,r)})})})(new Response);const ZN=async e=>{if(e==null)return 0;if(se.isBlob(e))return e.size;if(se.isSpecCompliantForm(e))return(await new Request(Hn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(se.isArrayBufferView(e)||se.isArrayBuffer(e))return e.byteLength;if(se.isURLSearchParams(e)&&(e=e+""),se.isString(e))return(await GN(e)).byteLength},XN=async(e,t)=>{const n=se.toFiniteNumber(e.getContentLength());return n??ZN(t)},QN=Nf&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=FS(e);l=l?(l+"").toLowerCase():"text";let p=VN([i,o&&o.toAbortSignal()],a),g;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(c&&KN&&n!=="get"&&n!=="head"&&(v=await XN(u,r))!==0){let y=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(se.isFormData(r)&&($=y.headers.get("content-type"))&&u.setContentType($),y.body){const[E,T]=F1(v,gd(B1(c)));r=W1(y.body,U1,E,T)}}se.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;g=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:x?d:void 0});let w=await fetch(g);const _=lg&&(l==="stream"||l==="response");if(lg&&(s||_&&m)){const y={};["status","statusText","headers"].forEach(k=>{y[k]=w[k]});const $=se.toFiniteNumber(w.headers.get("content-length")),[E,T]=s&&F1($,gd(B1(s),!0))||[];w=new Response(W1(w.body,U1,E,()=>{T&&T(),m&&m()}),y)}l=l||"text";let C=await vd[se.findKey(vd,l)||"text"](w,e);return!_&&m&&m(),await new Promise((y,$)=>{PS(y,$,{data:C,headers:qn.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:g})})}catch(x){throw m&&m(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,e,g),{cause:x.cause||x}):it.from(x,x&&x.code,e,g)}}),ug={http:hN,xhr:UN,fetch:QN};se.forEach(ug,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const V1=e=>`- ${e}`,JN=e=>se.isFunction(e)||e===null||e===!1,WS={getAdapter:e=>{e=se.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!JN(n)&&(r=ug[(a=String(n)).toLowerCase()],r===void 0))throw new it(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
|
232
|
-
`+o.map(V1).join(`
|
|
233
|
-
`):" "+V1(o[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:ug};function jp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ls(null,e)}function H1(e){return jp(e),e.headers=qn.from(e.headers),e.data=Ap.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),WS.getAdapter(e.adapter||El.adapter)(e).then(function(r){return jp(e),r.data=Ap.call(e,e.transformResponse,r),r.headers=qn.from(r.headers),r},function(r){return IS(r)||(jp(e),r&&r.response&&(r.response.data=Ap.call(e,e.transformResponse,r.response),r.response.headers=qn.from(r.response.headers))),Promise.reject(r)})}const US="1.7.7",a0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{a0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const q1={};a0.transitional=function(t,n,r){function i(o,a){return"[Axios v"+US+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new it(i(a," has been removed"+(n?" in "+n:"")),it.ERR_DEPRECATED);return n&&!q1[a]&&(q1[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function eD(e,t,n){if(typeof e!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],c=s===void 0||a(s,o,e);if(c!==!0)throw new it("option "+o+" must be "+c,it.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new it("Unknown option "+o,it.ERR_BAD_OPTION)}}const dg={assertOptions:eD,validators:a0},Ri=dg.validators;class Ao{constructor(t){this.defaults=t,this.interceptors={request:new P1,response:new P1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
234
|
-
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&dg.assertOptions(r,{silentJSONParsing:Ri.transitional(Ri.boolean),forcedJSONParsing:Ri.transitional(Ri.boolean),clarifyTimeoutError:Ri.transitional(Ri.boolean)},!1),i!=null&&(se.isFunction(i)?n.paramsSerializer={serialize:i}:dg.assertOptions(i,{encode:Ri.function,serialize:Ri.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&se.merge(o.common,o[n.method]);o&&se.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=qn.concat(a,o);const s=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!c){const g=[H1.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,l),f=g.length,u=Promise.resolve(n);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let p=n;for(d=0;d<f;){const g=s[d++],m=s[d++];try{p=g(p)}catch(v){m.call(this,v);break}}try{u=H1.call(this,p)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=Bo(this.defaults,t);const n=LS(t.baseURL,t.url);return jS(n,t.params,t.paramsSerializer)}}se.forEach(["delete","get","head","options"],function(t){Ao.prototype[t]=function(n,r){return this.request(Bo(r||{},{method:t,url:n,data:(r||{}).data}))}});se.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Bo(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Ao.prototype[t]=n(),Ao.prototype[t+"Form"]=n(!0)});class s0{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new ls(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new s0(function(i){t=i}),cancel:t}}}function tD(e){return function(n){return e.apply(null,n)}}function nD(e){return se.isObject(e)&&e.isAxiosError===!0}const fg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fg).forEach(([e,t])=>{fg[t]=e});function VS(e){const t=new Ao(e),n=wS(Ao.prototype.request,t);return se.extend(n,Ao.prototype,t,{allOwnKeys:!0}),se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return VS(Bo(e,i))},n}const tn=VS(El);tn.Axios=Ao;tn.CanceledError=ls;tn.CancelToken=s0;tn.isCancel=IS;tn.VERSION=US;tn.toFormData=jf;tn.AxiosError=it;tn.Cancel=tn.CanceledError;tn.all=function(t){return Promise.all(t)};tn.spread=tD;tn.isAxiosError=nD;tn.mergeConfig=Bo;tn.AxiosHeaders=qn;tn.formToJSON=e=>DS(se.isHTMLForm(e)?new FormData(e):e);tn.getAdapter=WS.getAdapter;tn.HttpStatusCode=fg;tn.default=tn;var hu={};/*!
|
|
235
|
-
* cookie
|
|
236
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
237
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
238
|
-
* MIT Licensed
|
|
239
|
-
*/var Y1;function rD(){if(Y1)return hu;Y1=1,hu.parse=a,hu.serialize=l;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function a(p,g){if(typeof p!="string")throw new TypeError("argument str must be a string");var m={},v=p.length;if(v<2)return m;var x=g&&g.decode||u,w=0,_=0,C=0;do{if(_=p.indexOf("=",w),_===-1)break;if(C=p.indexOf(";",w),C===-1)C=v;else if(_>C){w=p.lastIndexOf(";",_-1)+1;continue}var y=s(p,w,_),$=c(p,_,y),E=p.slice(y,$);if(!t.call(m,E)){var T=s(p,_+1,C),k=c(p,C,T);p.charCodeAt(T)===34&&p.charCodeAt(k-1)===34&&(T++,k--);var O=p.slice(T,k);m[E]=f(O,x)}w=C+1}while(w<v);return m}function s(p,g,m){do{var v=p.charCodeAt(g);if(v!==32&&v!==9)return g}while(++g<m);return m}function c(p,g,m){for(;g>m;){var v=p.charCodeAt(--g);if(v!==32&&v!==9)return g+1}return m}function l(p,g,m){var v=m&&m.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!n.test(p))throw new TypeError("argument name is invalid");var x=v(g);if(!r.test(x))throw new TypeError("argument val is invalid");var w=p+"="+x;if(!m)return w;if(m.maxAge!=null){var _=Math.floor(m.maxAge);if(!isFinite(_))throw new TypeError("option maxAge is invalid");w+="; Max-Age="+_}if(m.domain){if(!i.test(m.domain))throw new TypeError("option domain is invalid");w+="; Domain="+m.domain}if(m.path){if(!o.test(m.path))throw new TypeError("option path is invalid");w+="; Path="+m.path}if(m.expires){var C=m.expires;if(!d(C)||isNaN(C.valueOf()))throw new TypeError("option expires is invalid");w+="; Expires="+C.toUTCString()}if(m.httpOnly&&(w+="; HttpOnly"),m.secure&&(w+="; Secure"),m.partitioned&&(w+="; Partitioned"),m.priority){var y=typeof m.priority=="string"?m.priority.toLowerCase():m.priority;switch(y){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(m.sameSite){var $=typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.sameSite;switch($){case!0:w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"strict":w+="; SameSite=Strict";break;case"none":w+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return w}function u(p){return p.indexOf("%")!==-1?decodeURIComponent(p):p}function d(p){return e.call(p)==="[object Date]"}function f(p,g){try{return g(p)}catch{return p}}return hu}var Gu=rD();function iD(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function oD(e){return typeof e=="string"?Gu.parse(e):typeof e=="object"&&e!==null?e:{}}function Np(e,t={}){const n=aD(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function aD(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class sD{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=Gu.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=oD(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=iD()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Np(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Np(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Np(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Gu.serialize(t,i,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Gu.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const cD=ie.createContext(new sD);var pu={exports:{}},Nt={};/** @license React v16.13.1
|
|
240
|
-
* react-is.production.min.js
|
|
241
|
-
*
|
|
242
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
243
|
-
*
|
|
244
|
-
* This source code is licensed under the MIT license found in the
|
|
245
|
-
* LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/var G1;function lD(){if(G1)return Nt;G1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function _(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case c:case l:case r:case o:case i:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case u:case g:case p:case a:return y;default:return $}}case n:return $}}}function C(y){return _(y)===l}return Nt.AsyncMode=c,Nt.ConcurrentMode=l,Nt.ContextConsumer=s,Nt.ContextProvider=a,Nt.Element=t,Nt.ForwardRef=u,Nt.Fragment=r,Nt.Lazy=g,Nt.Memo=p,Nt.Portal=n,Nt.Profiler=o,Nt.StrictMode=i,Nt.Suspense=d,Nt.isAsyncMode=function(y){return C(y)||_(y)===c},Nt.isConcurrentMode=C,Nt.isContextConsumer=function(y){return _(y)===s},Nt.isContextProvider=function(y){return _(y)===a},Nt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},Nt.isForwardRef=function(y){return _(y)===u},Nt.isFragment=function(y){return _(y)===r},Nt.isLazy=function(y){return _(y)===g},Nt.isMemo=function(y){return _(y)===p},Nt.isPortal=function(y){return _(y)===n},Nt.isProfiler=function(y){return _(y)===o},Nt.isStrictMode=function(y){return _(y)===i},Nt.isSuspense=function(y){return _(y)===d},Nt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===l||y===o||y===i||y===d||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===a||y.$$typeof===s||y.$$typeof===u||y.$$typeof===v||y.$$typeof===x||y.$$typeof===w||y.$$typeof===m)},Nt.typeOf=_,Nt}var Dt={};/** @license React v16.13.1
|
|
247
|
-
* react-is.development.js
|
|
248
|
-
*
|
|
249
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
250
|
-
*
|
|
251
|
-
* This source code is licensed under the MIT license found in the
|
|
252
|
-
* LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/var K1;function uD(){return K1||(K1=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,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function _(R){return typeof R=="string"||typeof R=="function"||R===r||R===l||R===o||R===i||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===p||R.$$typeof===a||R.$$typeof===s||R.$$typeof===u||R.$$typeof===v||R.$$typeof===x||R.$$typeof===w||R.$$typeof===m)}function C(R){if(typeof R=="object"&&R!==null){var G=R.$$typeof;switch(G){case t:var ee=R.type;switch(ee){case c:case l:case r:case o:case i:case d:return ee;default:var ne=ee&&ee.$$typeof;switch(ne){case s:case u:case g:case p:case a:return ne;default:return G}}case n:return G}}}var y=c,$=l,E=s,T=a,k=t,O=u,S=r,M=g,A=p,j=n,L=o,N=i,F=d,U=!1;function z(R){return U||(U=!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.")),I(R)||C(R)===c}function I(R){return C(R)===l}function W(R){return C(R)===s}function Y(R){return C(R)===a}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function X(R){return C(R)===u}function Z(R){return C(R)===r}function Q(R){return C(R)===g}function te(R){return C(R)===p}function P(R){return C(R)===n}function D(R){return C(R)===o}function B(R){return C(R)===i}function H(R){return C(R)===d}Dt.AsyncMode=y,Dt.ConcurrentMode=$,Dt.ContextConsumer=E,Dt.ContextProvider=T,Dt.Element=k,Dt.ForwardRef=O,Dt.Fragment=S,Dt.Lazy=M,Dt.Memo=A,Dt.Portal=j,Dt.Profiler=L,Dt.StrictMode=N,Dt.Suspense=F,Dt.isAsyncMode=z,Dt.isConcurrentMode=I,Dt.isContextConsumer=W,Dt.isContextProvider=Y,Dt.isElement=J,Dt.isForwardRef=X,Dt.isFragment=Z,Dt.isLazy=Q,Dt.isMemo=te,Dt.isPortal=P,Dt.isProfiler=D,Dt.isStrictMode=B,Dt.isSuspense=H,Dt.isValidElementType=_,Dt.typeOf=C}()),Dt}var Z1;function dD(){return Z1||(Z1=1,process.env.NODE_ENV==="production"?pu.exports=lD():pu.exports=uD()),pu.exports}var Dp,X1;function fD(){if(X1)return Dp;X1=1;var e=dD(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(g,m,v){if(typeof m!="string"){if(f){var x=d(m);x&&x!==f&&p(g,x,v)}var w=c(m);l&&(w=w.concat(l(m)));for(var _=a(g),C=a(m),y=0;y<w.length;++y){var $=w[y];if(!n[$]&&!(v&&v[$])&&!(C&&C[$])&&!(_&&_[$])){var E=u(m,$);try{s(g,$,E)}catch{}}}}return g}return Dp=p,Dp}fD();function hD(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function c0(e,t){const n=h.useContext(cD);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[o,a]=h.useState(()=>n.getAll(i));hD()&&h.useLayoutEffect(()=>{function u(){const d=n.getAll(i);pD(e||null,d,o)&&a(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,o]);const s=h.useMemo(()=>n.set.bind(n),[n]),c=h.useMemo(()=>n.remove.bind(n),[n]),l=h.useMemo(()=>n.update.bind(n),[n]);return[o,s,c,l]}function pD(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const mD=()=>{const{axiosOptions:e,cookieDomain:t}=h.useContext(sn),[,n,r]=c0(["Authorization"]),i=tn.create(e),o=h.useCallback(()=>{const c=localStorage.getItem("token");return c!==null&&c.length>0},[]),a=h.useCallback(async(c,l)=>i.post("/user/login",{kid:c,password:l}).then(u=>(localStorage.setItem("token",u.data),n("Authorization",u.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:uC(new Date(Date.now()),24)}),u.data)).catch(u=>(console.log(u),null)),[i,n,t]),s=h.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:a,logout:s}},gD=()=>{const[,,e]=c0(["Authorization"]),{msalScopes:t,msalExtraScopes:n}=h.useContext(kf),{instance:r,inProgress:i}=Wy.useMsal(),o=Wy.useIsAuthenticated(),a=h.useCallback(()=>o,[o]),s=h.useCallback(()=>!a()&&i!==qM.InteractionStatus.None,[a,i]),c=h.useCallback(async()=>r.loginRedirect({scopes:t,extraScopesToConsent:n}).then(()=>"").catch(()=>null),[r,t,n]),l=h.useCallback(()=>{r.logout(),localStorage.removeItem("user"),e("Authorization")},[e,r]);return{isAuthenticated:a,isAuthenticating:s,login:c,logout:l}},HS=()=>{const{useMsal:e}=h.useContext(kf),t=mD(),n=gD();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,login:e?n.login:t.login,logout:e?n.logout:t.logout}},vD="_toast_1s57i_1",Fs={toast:vD},bD=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},Df=()=>({addNotification:h.useCallback((t,n)=>{const r=fS(t),i=bD(n),o=b.jsxs(b.Fragment,{children:[r,b.jsx(X$,{onClick:()=>da.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{da(o,{id:r,duration:i,position:"top-center",icon:b.jsx(e8,{size:12}),className:ue("luminus-toast-success rounded shadow bg-success",Fs.toast)});break}case"danger":{da(o,{id:r,duration:i,position:"top-center",icon:b.jsx(Vj,{size:12}),className:ue("luminus-toast-danger rounded shadow bg-danger",Fs.toast)});break}case"warning":{da(o,{id:r,duration:i,position:"top-center",icon:b.jsx(Bj,{size:12}),className:ue("luminus-toast-warning rounded shadow bg-warning",Fs.toast)});break}case"info":{da(o,{id:r,duration:i,position:"top-center",icon:b.jsx(Wj,{size:12}),className:ue("luminus-toast-info rounded shadow bg-info",Fs.toast)});break}case"prompt":{da(o,{id:r,duration:i,position:"top-center",icon:b.jsx(Uj,{size:12}),className:ue("luminus-toast-prompt rounded shadow bg-light",Fs.toast)});break}}},[])}),yD=tn.CancelToken,If=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:o,noToastOnStatus:a}={...e},{language:s,axiosOptions:c,texts:{axios:l}}=h.useContext(sn),{delegation:u}=h.useContext(sS),{getToken:d}=h.useContext(kf),f=h.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:p}=Df(),{isAuthenticating:g}=HS(),m=h.useMemo(()=>tn.create(c),[c]),v=h.useCallback(async w=>{var C,y,$;if(t&&!w.headers.Authorization){if(g())return console.log("Authentication in progress, waiting for token..."),Promise.reject(new Error("Authentication in progress"));const E=i?{token:i,expiresOn:uC(new Date(Date.now()),1)}:await d();if(!E)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(mC(E.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));w.headers.Authorization=`Bearer ${E.token}`}f!==null&&!o&&(w.headers.DelegationId=f.toString());const _=localStorage.getItem("search-use-asterisk")!=="false";return w.headers["Search-Use-Asterisk"]=_?"true":"false",(C=w.url)!=null&&C.includes("culture=")?w.url=(y=w.url)==null?void 0:y.replace(/culture=[a-z]{2}/,`culture=${s}`):w.url=`${w.url}${($=w.url)!=null&&$.includes("?")?"&":"?"}culture=${s}`,w},[t,d,s,i,f,o,g]),x=h.useCallback(w=>{var y,$;if(console.log(w),tn.isCancel(w)||w.message==="Authentication in progress"||w.message==="No bearer token"||w.message==="Token expired")return Promise.reject(w);const _=e0(w);if(_.length>0){const E=_.find(T=>T.name.toLowerCase()==="others");return E?(!r&&p(E.errors,"danger"),Promise.reject(w)):(!r&&p(l.validationError,"warning"),Promise.reject(w))}const C=uS(w);return C!==null?(!r&&p(`${l.permissionError}: ${Mc(", ",...C)}`,"danger"),Promise.reject(w)):(a??[]).includes((y=w.response)==null?void 0:y.status)?Promise.reject(w):(($=w.response)==null?void 0:$.status)===403?(!r&&p(l.forbiddenError,"danger"),Promise.reject(w)):w.message&&w.message==="Network Error"?(!r&&p(l.networkError,"danger"),Promise.reject(w)):(tn.isCancel(w)||(!r&&p(l.unexpectedError,"danger"),(w.response||w.request)&&!r&&p(l.unexpectedError,"danger")),Promise.reject(w))},[p,l.forbiddenError,l.networkError,l.permissionError,l.unexpectedError,l.validationError,r,a]);return h.useEffect(()=>{n&&(m.defaults.baseURL=n),m.interceptors.request.clear(),m.interceptors.response.clear();const w=m.interceptors.request.use(v,C=>Promise.reject(C)),_=m.interceptors.response.use(C=>C,x);return()=>{m.interceptors.request.eject(w),m.interceptors.response.eject(_)}},[m.defaults,m.interceptors.request,m.interceptors.response,n,v,x]),m};let Bs;const l0=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r,textSm:i}=h.useContext(J$),o=()=>{r()};return{confirm:async(l,u)=>(n(l,u),new Promise(d=>{Bs=d})),onConfirm:()=>{o(),Bs&&Bs(!0)},onCancel:()=>{o(),Bs&&Bs(!1)},show:e,text:t,textSm:i}};var wt;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},e.find=(i,o)=>{for(const a of i)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(wt||(wt={}));var hg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(hg||(hg={}));const Ae=wt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),zi=e=>{switch(typeof e){case"undefined":return Ae.undefined;case"string":return Ae.string;case"number":return isNaN(e)?Ae.nan:Ae.number;case"boolean":return Ae.boolean;case"function":return Ae.function;case"bigint":return Ae.bigint;case"symbol":return Ae.symbol;case"object":return Array.isArray(e)?Ae.array:e===null?Ae.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ae.promise:typeof Map<"u"&&e instanceof Map?Ae.map:typeof Set<"u"&&e instanceof Set?Ae.set:typeof Date<"u"&&e instanceof Date?Ae.date:Ae.object;default:return Ae.unknown}},ye=wt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),xD=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class er extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let s=r,c=0;for(;c<a.path.length;){const l=a.path[c];c===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(a))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return i(this),r}static assert(t){if(!(t instanceof er))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,wt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}er.create=e=>new er(e);const Ha=(e,t)=>{let n;switch(e.code){case ye.invalid_type:e.received===Ae.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ye.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,wt.jsonStringifyReplacer)}`;break;case ye.unrecognized_keys:n=`Unrecognized key(s) in object: ${wt.joinValues(e.keys,", ")}`;break;case ye.invalid_union:n="Invalid input";break;case ye.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${wt.joinValues(e.options)}`;break;case ye.invalid_enum_value:n=`Invalid enum value. Expected ${wt.joinValues(e.options)}, received '${e.received}'`;break;case ye.invalid_arguments:n="Invalid function arguments";break;case ye.invalid_return_type:n="Invalid function return type";break;case ye.invalid_date:n="Invalid date";break;case ye.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:wt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ye.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ye.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ye.custom:n="Invalid input";break;case ye.invalid_intersection_types:n="Intersection results could not be merged";break;case ye.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ye.not_finite:n="Number must be finite";break;default:n=t.defaultError,wt.assertNever(e)}return{message:n}};let qS=Ha;function wD(e){qS=e}function bd(){return qS}const yd=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let s="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)s=l(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}},_D=[];function ke(e,t){const n=bd(),r=yd({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ha?void 0:Ha].filter(i=>!!i)});e.common.issues.push(r)}class Mn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return Ze;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,a=await i.value;r.push({key:o,value:a})}return Mn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return Ze;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[o.value]=a.value)}return{status:t.value,value:r}}}const Ze=Object.freeze({status:"aborted"}),Ca=e=>({status:"dirty",value:e}),Pn=e=>({status:"valid",value:e}),pg=e=>e.status==="aborted",mg=e=>e.status==="dirty",Ac=e=>e.status==="valid",jc=e=>typeof Promise<"u"&&e instanceof Promise;function xd(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function YS(e,t,n,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Fe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Fe||(Fe={}));var ac,sc;class zr{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Q1=(e,t)=>{if(Ac(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new er(e.common.issues);return this._error=n,this._error}}};function ot(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,s)=>{var c,l;const{message:u}=e;return a.code==="invalid_enum_value"?{message:u??s.defaultError}:typeof s.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:s.defaultError}},description:i}}class dt{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return zi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:zi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Mn,ctx:{common:t.parent.common,data:t.data,parsedType:zi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(jc(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:zi(t)},o=this._parseSync({data:t,path:i.path,parent:i});return Q1(i,o)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:zi(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(jc(i)?i:Promise.resolve(i));return Q1(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const a=t(i),s=()=>o.addIssue({code:ye.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new kr({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Pr.create(this,this._def)}nullable(){return eo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tr.create(this,this._def)}promise(){return Ya.create(this,this._def)}or(t){return Pc.create([this,t],this._def)}and(t){return Lc.create(this,t,this._def)}transform(t){return new kr({...ot(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Uc({...ot(this._def),innerType:this,defaultValue:n,typeName:Ge.ZodDefault})}brand(){return new u0({typeName:Ge.ZodBranded,type:this,...ot(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Vc({...ot(this._def),innerType:this,catchValue:n,typeName:Ge.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Tl.create(this,t)}readonly(){return Hc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const CD=/^c[^\s-]{8,}$/i,$D=/^[0-9a-z]+$/,SD=/^[0-9A-HJKMNP-TV-Z]{26}$/,ED=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,TD=/^[a-z0-9_-]{21}$/i,kD=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,OD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,MD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ip;const RD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,AD=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,jD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,GS="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ND=new RegExp(`^${GS}$`);function KS(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function DD(e){return new RegExp(`^${KS(e)}$`)}function ZS(e){let t=`${GS}T${KS(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function ID(e,t){return!!((t==="v4"||!t)&&RD.test(e)||(t==="v6"||!t)&&AD.test(e))}class Sr extends dt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ae.string){const o=this._getOrReturnCtx(t);return ke(o,{code:ye.invalid_type,expected:Ae.string,received:o.parsedType}),Ze}const r=new Mn;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(i=this._getOrReturnCtx(t,i),a?ke(i,{code:ye.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&ke(i,{code:ye.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")OD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"email",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Ip||(Ip=new RegExp(MD,"u")),Ip.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"emoji",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")ED.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"uuid",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")TD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"nanoid",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")CD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"cuid",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")$D.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"cuid2",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")SD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"ulid",code:ye.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),ke(i,{validation:"url",code:ye.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"regex",code:ye.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?ZS(o).test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?ND.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?DD(o).test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?kD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"duration",code:ye.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?ID(t.data,o.version)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"ip",code:ye.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?jD.test(t.data)||(i=this._getOrReturnCtx(t,i),ke(i,{validation:"base64",code:ye.invalid_string,message:o.message}),r.dirty()):wt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:ye.invalid_string,...Fe.errToObj(r)})}_addCheck(t){return new Sr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Fe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Fe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Fe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Fe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Fe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Fe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Fe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Fe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Fe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Fe.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...Fe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Fe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Fe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Fe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Fe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Fe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Fe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Fe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Fe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Fe.errToObj(n)})}nonempty(t){return this.min(1,Fe.errToObj(t))}trim(){return new Sr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Sr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Sr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Sr.create=e=>{var t;return new Sr({checks:[],typeName:Ge.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ot(e)})};function PD(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),a=parseInt(t.toFixed(i).replace(".",""));return o%a/Math.pow(10,i)}class Xi extends dt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ae.number){const o=this._getOrReturnCtx(t);return ke(o,{code:ye.invalid_type,expected:Ae.number,received:o.parsedType}),Ze}let r;const i=new Mn;for(const o of this._def.checks)o.kind==="int"?wt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?PD(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.not_finite,message:o.message}),i.dirty()):wt.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Fe.toString(n))}setLimit(t,n,r,i){return new Xi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Fe.toString(i)}]})}_addCheck(t){return new Xi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Fe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Fe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Fe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Fe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Fe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&wt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Xi.create=e=>new Xi({checks:[],typeName:Ge.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class Qi extends dt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Ae.bigint){const o=this._getOrReturnCtx(t);return ke(o,{code:ye.invalid_type,expected:Ae.bigint,received:o.parsedType}),Ze}let r;const i=new Mn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ke(r,{code:ye.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):wt.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Fe.toString(n))}setLimit(t,n,r,i){return new Qi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Fe.toString(i)}]})}_addCheck(t){return new Qi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Fe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Qi.create=e=>{var t;return new Qi({checks:[],typeName:Ge.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ot(e)})};class Nc extends dt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ae.boolean){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Ae.boolean,received:r.parsedType}),Ze}return Pn(t.data)}}Nc.create=e=>new Nc({typeName:Ge.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class zo extends dt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ae.date){const o=this._getOrReturnCtx(t);return ke(o,{code:ye.invalid_type,expected:Ae.date,received:o.parsedType}),Ze}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return ke(o,{code:ye.invalid_date}),Ze}const r=new Mn;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),ke(i,{code:ye.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):wt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new zo({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Fe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Fe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}zo.create=e=>new zo({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...ot(e)});class wd extends dt{_parse(t){if(this._getType(t)!==Ae.symbol){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Ae.symbol,received:r.parsedType}),Ze}return Pn(t.data)}}wd.create=e=>new wd({typeName:Ge.ZodSymbol,...ot(e)});class Dc extends dt{_parse(t){if(this._getType(t)!==Ae.undefined){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Ae.undefined,received:r.parsedType}),Ze}return Pn(t.data)}}Dc.create=e=>new Dc({typeName:Ge.ZodUndefined,...ot(e)});class Ic extends dt{_parse(t){if(this._getType(t)!==Ae.null){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Ae.null,received:r.parsedType}),Ze}return Pn(t.data)}}Ic.create=e=>new Ic({typeName:Ge.ZodNull,...ot(e)});class qa extends dt{constructor(){super(...arguments),this._any=!0}_parse(t){return Pn(t.data)}}qa.create=e=>new qa({typeName:Ge.ZodAny,...ot(e)});class jo extends dt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Pn(t.data)}}jo.create=e=>new jo({typeName:Ge.ZodUnknown,...ot(e)});class yi extends dt{_parse(t){const n=this._getOrReturnCtx(t);return ke(n,{code:ye.invalid_type,expected:Ae.never,received:n.parsedType}),Ze}}yi.create=e=>new yi({typeName:Ge.ZodNever,...ot(e)});class _d extends dt{_parse(t){if(this._getType(t)!==Ae.undefined){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Ae.void,received:r.parsedType}),Ze}return Pn(t.data)}}_d.create=e=>new _d({typeName:Ge.ZodVoid,...ot(e)});class Tr extends dt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ae.array)return ke(n,{code:ye.invalid_type,expected:Ae.array,received:n.parsedType}),Ze;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(a||s)&&(ke(n,{code:a?ye.too_big:ye.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(ke(n,{code:ye.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(ke(n,{code:ye.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>i.type._parseAsync(new zr(n,a,n.path,s)))).then(a=>Mn.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new zr(n,a,n.path,s)));return Mn.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Tr({...this._def,minLength:{value:t,message:Fe.toString(n)}})}max(t,n){return new Tr({...this._def,maxLength:{value:t,message:Fe.toString(n)}})}length(t,n){return new Tr({...this._def,exactLength:{value:t,message:Fe.toString(n)}})}nonempty(t){return this.min(1,t)}}Tr.create=(e,t)=>new Tr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...ot(t)});function _a(e){if(e instanceof an){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Pr.create(_a(r))}return new an({...e._def,shape:()=>t})}else return e instanceof Tr?new Tr({...e._def,type:_a(e.element)}):e instanceof Pr?Pr.create(_a(e.unwrap())):e instanceof eo?eo.create(_a(e.unwrap())):e instanceof Wr?Wr.create(e.items.map(t=>_a(t))):e}class an extends dt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=wt.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Ae.object){const l=this._getOrReturnCtx(t);return ke(l,{code:ye.invalid_type,expected:Ae.object,received:l.parsedType}),Ze}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof yi&&this._def.unknownKeys==="strip"))for(const l in i.data)a.includes(l)||s.push(l);const c=[];for(const l of a){const u=o[l],d=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new zr(i,d,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof yi){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of s)c.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(l==="strict")s.length>0&&(ke(i,{code:ye.unrecognized_keys,keys:s}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of s){const d=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new zr(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>Mn.mergeObjectSync(r,l)):Mn.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return Fe.errToObj,new an({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o,a,s;const c=(a=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,n,r).message)!==null&&a!==void 0?a:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=Fe.errToObj(t).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new an({...this._def,unknownKeys:"strip"})}passthrough(){return new an({...this._def,unknownKeys:"passthrough"})}extend(t){return new an({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new an({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ge.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new an({...this._def,catchall:t})}pick(t){const n={};return wt.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new an({...this._def,shape:()=>n})}omit(t){const n={};return wt.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new an({...this._def,shape:()=>n})}deepPartial(){return _a(this)}partial(t){const n={};return wt.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new an({...this._def,shape:()=>n})}required(t){const n={};return wt.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Pr;)o=o._def.innerType;n[r]=o}}),new an({...this._def,shape:()=>n})}keyof(){return XS(wt.objectKeys(this.shape))}}an.create=(e,t)=>new an({shape:()=>e,unknownKeys:"strip",catchall:yi.create(),typeName:Ge.ZodObject,...ot(t)});an.strictCreate=(e,t)=>new an({shape:()=>e,unknownKeys:"strict",catchall:yi.create(),typeName:Ge.ZodObject,...ot(t)});an.lazycreate=(e,t)=>new an({shape:e,unknownKeys:"strip",catchall:yi.create(),typeName:Ge.ZodObject,...ot(t)});class Pc extends dt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new er(s.ctx.common.issues));return ke(n,{code:ye.invalid_union,unionErrors:a}),Ze}if(n.common.async)return Promise.all(r.map(async o=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(c=>new er(c));return ke(n,{code:ye.invalid_union,unionErrors:s}),Ze}}get options(){return this._def.options}}Pc.create=(e,t)=>new Pc({options:e,typeName:Ge.ZodUnion,...ot(t)});const ii=e=>e instanceof Bc?ii(e.schema):e instanceof kr?ii(e.innerType()):e instanceof zc?[e.value]:e instanceof Ji?e.options:e instanceof Wc?wt.objectValues(e.enum):e instanceof Uc?ii(e._def.innerType):e instanceof Dc?[void 0]:e instanceof Ic?[null]:e instanceof Pr?[void 0,...ii(e.unwrap())]:e instanceof eo?[null,...ii(e.unwrap())]:e instanceof u0||e instanceof Hc?ii(e.unwrap()):e instanceof Vc?ii(e._def.innerType):[];class Pf extends dt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ae.object)return ke(n,{code:ye.invalid_type,expected:Ae.object,received:n.parsedType}),Ze;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ke(n,{code:ye.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ze)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const o of n){const a=ii(o.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of a){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,o)}}return new Pf({typeName:Ge.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ot(r)})}}function gg(e,t){const n=zi(e),r=zi(t);if(e===t)return{valid:!0,data:e};if(n===Ae.object&&r===Ae.object){const i=wt.objectKeys(t),o=wt.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const c=gg(e[s],t[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(n===Ae.array&&r===Ae.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const a=e[o],s=t[o],c=gg(a,s);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return n===Ae.date&&r===Ae.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Lc extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(pg(o)||pg(a))return Ze;const s=gg(o.value,a.value);return s.valid?((mg(o)||mg(a))&&n.dirty(),{status:n.value,value:s.data}):(ke(r,{code:ye.invalid_intersection_types}),Ze)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,a])=>i(o,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Lc.create=(e,t,n)=>new Lc({left:e,right:t,typeName:Ge.ZodIntersection,...ot(n)});class Wr extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ae.array)return ke(r,{code:ye.invalid_type,expected:Ae.array,received:r.parsedType}),Ze;if(r.data.length<this._def.items.length)return ke(r,{code:ye.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ze;!this._def.rest&&r.data.length>this._def.items.length&&(ke(r,{code:ye.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((a,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new zr(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(o).then(a=>Mn.mergeArray(n,a)):Mn.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Wr({...this._def,rest:t})}}Wr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Wr({items:e,typeName:Ge.ZodTuple,rest:null,...ot(t)})};class Fc extends dt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ae.object)return ke(r,{code:ye.invalid_type,expected:Ae.object,received:r.parsedType}),Ze;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in r.data)i.push({key:o._parse(new zr(r,s,r.path,s)),value:a._parse(new zr(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Mn.mergeObjectAsync(n,i):Mn.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof dt?new Fc({keyType:t,valueType:n,typeName:Ge.ZodRecord,...ot(r)}):new Fc({keyType:Sr.create(),valueType:t,typeName:Ge.ZodRecord,...ot(n)})}}class Cd extends dt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ae.map)return ke(r,{code:ye.invalid_type,expected:Ae.map,received:r.parsedType}),Ze;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,c],l)=>({key:i._parse(new zr(r,s,r.path,[l,"key"])),value:o._parse(new zr(r,c,r.path,[l,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of a){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return Ze;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(l.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of a){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return Ze;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(l.value,u.value)}return{status:n.value,value:s}}}}Cd.create=(e,t,n)=>new Cd({valueType:t,keyType:e,typeName:Ge.ZodMap,...ot(n)});class Wo extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ae.set)return ke(r,{code:ye.invalid_type,expected:Ae.set,received:r.parsedType}),Ze;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(ke(r,{code:ye.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(ke(r,{code:ye.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function a(c){const l=new Set;for(const u of c){if(u.status==="aborted")return Ze;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const s=[...r.data.values()].map((c,l)=>o._parse(new zr(r,c,r.path,l)));return r.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(t,n){return new Wo({...this._def,minSize:{value:t,message:Fe.toString(n)}})}max(t,n){return new Wo({...this._def,maxSize:{value:t,message:Fe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Wo.create=(e,t)=>new Wo({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...ot(t)});class ka extends dt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ae.function)return ke(n,{code:ye.invalid_type,expected:Ae.function,received:n.parsedType}),Ze;function r(s,c){return yd({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,bd(),Ha].filter(l=>!!l),issueData:{code:ye.invalid_arguments,argumentsError:c}})}function i(s,c){return yd({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,bd(),Ha].filter(l=>!!l),issueData:{code:ye.invalid_return_type,returnTypeError:c}})}const o={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof Ya){const s=this;return Pn(async function(...c){const l=new er([]),u=await s._def.args.parseAsync(c,o).catch(p=>{throw l.addIssue(r(c,p)),l}),d=await Reflect.apply(a,this,u);return await s._def.returns._def.type.parseAsync(d,o).catch(p=>{throw l.addIssue(i(d,p)),l})})}else{const s=this;return Pn(function(...c){const l=s._def.args.safeParse(c,o);if(!l.success)throw new er([r(c,l.error)]);const u=Reflect.apply(a,this,l.data),d=s._def.returns.safeParse(u,o);if(!d.success)throw new er([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ka({...this._def,args:Wr.create(t).rest(jo.create())})}returns(t){return new ka({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ka({args:t||Wr.create([]).rest(jo.create()),returns:n||jo.create(),typeName:Ge.ZodFunction,...ot(r)})}}class Bc extends dt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Bc.create=(e,t)=>new Bc({getter:e,typeName:Ge.ZodLazy,...ot(t)});class zc extends dt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ke(n,{received:n.data,code:ye.invalid_literal,expected:this._def.value}),Ze}return{status:"valid",value:t.data}}get value(){return this._def.value}}zc.create=(e,t)=>new zc({value:e,typeName:Ge.ZodLiteral,...ot(t)});function XS(e,t){return new Ji({values:e,typeName:Ge.ZodEnum,...ot(t)})}class Ji extends dt{constructor(){super(...arguments),ac.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ke(n,{expected:wt.joinValues(r),received:n.parsedType,code:ye.invalid_type}),Ze}if(xd(this,ac)||YS(this,ac,new Set(this._def.values)),!xd(this,ac).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ke(n,{received:n.data,code:ye.invalid_enum_value,options:r}),Ze}return Pn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ji.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ji.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ac=new WeakMap;Ji.create=XS;class Wc extends dt{constructor(){super(...arguments),sc.set(this,void 0)}_parse(t){const n=wt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ae.string&&r.parsedType!==Ae.number){const i=wt.objectValues(n);return ke(r,{expected:wt.joinValues(i),received:r.parsedType,code:ye.invalid_type}),Ze}if(xd(this,sc)||YS(this,sc,new Set(wt.getValidEnumValues(this._def.values))),!xd(this,sc).has(t.data)){const i=wt.objectValues(n);return ke(r,{received:r.data,code:ye.invalid_enum_value,options:i}),Ze}return Pn(t.data)}get enum(){return this._def.values}}sc=new WeakMap;Wc.create=(e,t)=>new Wc({values:e,typeName:Ge.ZodNativeEnum,...ot(t)});class Ya extends dt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ae.promise&&n.common.async===!1)return ke(n,{code:ye.invalid_type,expected:Ae.promise,received:n.parsedType}),Ze;const r=n.parsedType===Ae.promise?n.data:Promise.resolve(n.data);return Pn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ya.create=(e,t)=>new Ya({type:e,typeName:Ge.ZodPromise,...ot(t)});class kr extends dt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:a=>{ke(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(r.data,o);if(r.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return Ze;const c=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return c.status==="aborted"?Ze:c.status==="dirty"||n.value==="dirty"?Ca(c.value):c});{if(n.value==="aborted")return Ze;const s=this._def.schema._parseSync({data:a,path:r.path,parent:r});return s.status==="aborted"?Ze:s.status==="dirty"||n.value==="dirty"?Ca(s.value):s}}if(i.type==="refinement"){const a=s=>{const c=i.refinement(s,o);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Ze:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?Ze:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ac(a))return a;const s=i.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Ac(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):a);wt.assertNever(i)}}kr.create=(e,t,n)=>new kr({schema:e,typeName:Ge.ZodEffects,effect:t,...ot(n)});kr.createWithPreprocess=(e,t,n)=>new kr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...ot(n)});class Pr extends dt{_parse(t){return this._getType(t)===Ae.undefined?Pn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Pr.create=(e,t)=>new Pr({innerType:e,typeName:Ge.ZodOptional,...ot(t)});class eo extends dt{_parse(t){return this._getType(t)===Ae.null?Pn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}eo.create=(e,t)=>new eo({innerType:e,typeName:Ge.ZodNullable,...ot(t)});class Uc extends dt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ae.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Uc.create=(e,t)=>new Uc({innerType:e,typeName:Ge.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ot(t)});class Vc extends dt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return jc(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new er(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new er(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Vc.create=(e,t)=>new Vc({innerType:e,typeName:Ge.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ot(t)});class $d extends dt{_parse(t){if(this._getType(t)!==Ae.nan){const r=this._getOrReturnCtx(t);return ke(r,{code:ye.invalid_type,expected:Ae.nan,received:r.parsedType}),Ze}return{status:"valid",value:t.data}}}$d.create=e=>new $d({typeName:Ge.ZodNaN,...ot(e)});const LD=Symbol("zod_brand");class u0 extends dt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Tl extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ze:o.status==="dirty"?(n.dirty(),Ca(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Ze:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Tl({in:t,out:n,typeName:Ge.ZodPipeline})}}class Hc extends dt{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Ac(i)&&(i.value=Object.freeze(i.value)),i);return jc(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Hc.create=(e,t)=>new Hc({innerType:e,typeName:Ge.ZodReadonly,...ot(t)});function QS(e,t={},n){return e?qa.create().superRefine((r,i)=>{var o,a;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(a=(o=s.fatal)!==null&&o!==void 0?o:n)!==null&&a!==void 0?a:!0,l=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...l,fatal:c})}}):qa.create()}const FD={object:an.lazycreate};var Ge;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ge||(Ge={}));const BD=(e,t={message:`Input not instance of ${e.name}`})=>QS(n=>n instanceof e,t),JS=Sr.create,eE=Xi.create,zD=$d.create,WD=Qi.create,tE=Nc.create,UD=zo.create,VD=wd.create,HD=Dc.create,qD=Ic.create,YD=qa.create,GD=jo.create,KD=yi.create,ZD=_d.create,XD=Tr.create,QD=an.create,JD=an.strictCreate,eI=Pc.create,tI=Pf.create,nI=Lc.create,rI=Wr.create,iI=Fc.create,oI=Cd.create,aI=Wo.create,sI=ka.create,cI=Bc.create,lI=zc.create,uI=Ji.create,dI=Wc.create,fI=Ya.create,J1=kr.create,hI=Pr.create,pI=eo.create,mI=kr.createWithPreprocess,gI=Tl.create,vI=()=>JS().optional(),bI=()=>eE().optional(),yI=()=>tE().optional(),xI={string:e=>Sr.create({...e,coerce:!0}),number:e=>Xi.create({...e,coerce:!0}),boolean:e=>Nc.create({...e,coerce:!0}),bigint:e=>Qi.create({...e,coerce:!0}),date:e=>zo.create({...e,coerce:!0})},wI=Ze;var vn=Object.freeze({__proto__:null,defaultErrorMap:Ha,setErrorMap:wD,getErrorMap:bd,makeIssue:yd,EMPTY_PATH:_D,addIssueToContext:ke,ParseStatus:Mn,INVALID:Ze,DIRTY:Ca,OK:Pn,isAborted:pg,isDirty:mg,isValid:Ac,isAsync:jc,get util(){return wt},get objectUtil(){return hg},ZodParsedType:Ae,getParsedType:zi,ZodType:dt,datetimeRegex:ZS,ZodString:Sr,ZodNumber:Xi,ZodBigInt:Qi,ZodBoolean:Nc,ZodDate:zo,ZodSymbol:wd,ZodUndefined:Dc,ZodNull:Ic,ZodAny:qa,ZodUnknown:jo,ZodNever:yi,ZodVoid:_d,ZodArray:Tr,ZodObject:an,ZodUnion:Pc,ZodDiscriminatedUnion:Pf,ZodIntersection:Lc,ZodTuple:Wr,ZodRecord:Fc,ZodMap:Cd,ZodSet:Wo,ZodFunction:ka,ZodLazy:Bc,ZodLiteral:zc,ZodEnum:Ji,ZodNativeEnum:Wc,ZodPromise:Ya,ZodEffects:kr,ZodTransformer:kr,ZodOptional:Pr,ZodNullable:eo,ZodDefault:Uc,ZodCatch:Vc,ZodNaN:$d,BRAND:LD,ZodBranded:u0,ZodPipeline:Tl,ZodReadonly:Hc,custom:QS,Schema:dt,ZodSchema:dt,late:FD,get ZodFirstPartyTypeKind(){return Ge},coerce:xI,any:YD,array:XD,bigint:WD,boolean:tE,date:UD,discriminatedUnion:tI,effect:J1,enum:uI,function:sI,instanceof:BD,intersection:nI,lazy:cI,literal:lI,map:oI,nan:zD,nativeEnum:dI,never:KD,null:qD,nullable:pI,number:eE,object:QD,oboolean:yI,onumber:bI,optional:hI,ostring:vI,pipeline:gI,preprocess:mI,promise:fI,record:iI,set:aI,strictObject:JD,string:JS,symbol:VD,transformer:J1,tuple:rI,undefined:HD,union:eI,unknown:GD,void:ZD,NEVER:wI,ZodIssueCode:ye,quotelessJson:xD,ZodError:er});const Lf=()=>{const{texts:{formValidation:e}}=h.useContext(sn),t=h.useCallback(m=>{let v=(m!=null&&m.useCoerce?vn.coerce:vn).string({invalid_type_error:e.required,required_error:e.required});return m!=null&&m.email&&(v=v.email(e.invalidEmail)),m!=null&&m.length&&(v=v.min(m.length,e.length(m.length))),m!=null&&m.minLength&&(v=v.min(m.minLength,e.minLength(m.minLength))),m!=null&&m.maxLength&&(v=v.max(m.maxLength,e.maxLength(m.maxLength))),m!=null&&m.numeric&&(v=v.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),m!=null&&m.regex&&(v=v.regex(m.regex,e.invalidFormat)),v.transform(x=>x??null)},[e]),n=h.useCallback(m=>t(m).nullable().optional().transform(v=>v??null),[t]),r=h.useCallback(m=>{const v=(m==null?void 0:m.min)??Number.MIN_SAFE_INTEGER,x=(m==null?void 0:m.max)??Number.MAX_SAFE_INTEGER,w=(m!=null&&m.useCoerce?vn.coerce:vn).number({invalid_type_error:e.required,required_error:e.required}).min(v,e.lessThanMin(v)).max(x,e.moreThanMax(x));return w.transform(_=>_??null),w},[e]),i=h.useCallback(m=>r(m).nullable().optional().transform(v=>v??null),[r]),o=h.useCallback(m=>(m!=null&&m.useCoerce?vn.coerce:vn).boolean({invalid_type_error:e.required,required_error:e.required}).transform(v=>v??null),[e.required]),a=h.useCallback(m=>(m!=null&&m.useCoerce?vn.coerce:vn).string({invalid_type_error:e.required,required_error:e.required}).refine(pS,{message:e.invalidDate}).transform(x=>x??null),[e.invalidDate,e.required]),s=h.useCallback(m=>a(m).nullable().transform(v=>v??null),[a]),c=h.useCallback((m,v)=>vn.enum(m,{invalid_type_error:e.required,required_error:e.required}).transform(w=>w??null),[e.required]),l=h.useCallback((m,v)=>c(m,v).nullable().transform(x=>x??null),[c]),u=h.useCallback(m=>vn.object({id:i({useCoerce:!0})}).nullable().transform(x=>x??null),[i]),d=h.useCallback(m=>vn.object({id:r()}).transform(x=>x??null),[r]),f=h.useCallback(m=>vn.object({id:n({useCoerce:!0})}).nullable().transform(x=>x??null),[n]),p=h.useCallback(m=>vn.object({id:t()}).transform(x=>x??null),[t]),g=h.useCallback(({required:m,multiple:v,maxFileSize:x})=>vn.any().transform(_=>Array.from(_??[])).refine(_=>!m||(_==null?void 0:_.length)>0,"File is required.").refine(_=>v||(_==null?void 0:_.length)<=1,"Multiple files not allowed.").refine(_=>_.every(C=>C.size<=x),`Maximum file size is ${Ua(x)}.`).transform(_=>(v?_:_==null?void 0:_[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:i,zNumberRequired:r,zBool:o,zDate:s,zDateRequired:a,zEnum:l,zEnumRequired:c,zObjectIdInt:u,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:p,zFile:g}},nE=(e,t)=>{h.useEffect(()=>{const n=r=>{e.some(i=>i.current&&i.current.contains(r.target))||t()};return document.addEventListener("mouseup",n),()=>{document.removeEventListener("mouseup",n)}},[e,t])},rE=()=>{const{user:e}=h.useContext(aS);return{checkUserHasPermissions:h.useCallback((n,r="any")=>n.length===0?!0:r==="any"?n.some(i=>{var o;return(o=e==null?void 0:e.permissions)==null?void 0:o.includes(i)}):n.every(i=>{var o;return(o=e==null?void 0:e.permissions)==null?void 0:o.includes(i)}),[e])}},iE=(e,t)=>{h.useEffect(()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),[e]),h.useEffect(()=>t===void 0?()=>{}:(document.addEventListener("keyup",t),()=>{document.removeEventListener("keyup",t)}),[t])},d0=(e,t,n)=>h.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),oE=()=>{const{addNotification:e}=Df(),{texts:{clipboard:t}}=h.useContext(sn);return{copyToClipboard:h.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(o){console.error(o),e(t.copyError,"danger")}},[e,t])}},kl=()=>{const[e,t]=h.useState(window.innerWidth),[n,r]=h.useState(window.innerHeight),i=()=>{t(window.innerWidth),r(window.innerHeight)};return h.useEffect(()=>(window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),{width:e,height:n,isMobile:e<992}},aE=h.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),sE=h.createContext(void 0),ex={falseIfNotInit:!1},Ff=({falseIfNotInit:e=ex.falseIfNotInit}=ex)=>{const t=h.useContext(sE);if(!e&&t===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return t??!1},_I="_button_1wjon_1",CI="_filled_1wjon_7",$I="_sm_1wjon_13",SI="_md_1wjon_18",EI="_lg_1wjon_23",fa={button:_I,filled:CI,sm:$I,md:SI,lg:EI},Uo=({variant:e="filled",color:t="primary",size:n="md",className:r,children:i,...o})=>o.as==="link"?b.jsx(is.Link,{to:o.href??"/",className:ue(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,fa.button,fa[e],fa[n]),...o,children:i}):o.as==="button"||o.as===void 0?b.jsx("button",{type:"button",className:ue(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,fa.button,fa[e],fa[n]),...o,children:i}):null,TI="_button_1r3i0_1",vg={button:TI},Bf=({color:e="primary",icon:t,className:n,children:r,...i})=>i.as==="link"?b.jsxs(is.Link,{to:i.href??"/",className:ue(`luminus-context-button btn text-${e} ${n??""}`,vg.button),...i,children:[t,r]}):i.as==="button"||i.as===void 0?b.jsxs("button",{type:"button",className:ue(`luminus-context-button btn text-${e} ${n??""}`,vg.button),...i,children:[t,r]}):null,kI=h.forwardRef(({color:e="primary",icon:t=b.jsx(Z$,{size:12}),inputId:n="context-file-input",accept:r="*",onUpload:i,className:o,children:a,multiple:s,...c},l)=>{const u=d=>{d.target.files&&(i(d.target.files),d.target.value="")};return b.jsxs(b.Fragment,{children:[b.jsxs("label",{ref:l,htmlFor:n,className:ue(`luminus-context-button btn text-${e} ${o??""}`,vg.button),...c,children:[t,a]}),b.jsx("input",{id:n,type:"file",accept:r,onChange:u,hidden:!0,multiple:s})]})}),OI="_icon-button_15e26_1",MI="_sm_15e26_14",RI="_md_15e26_23",AI="_lg_15e26_32",mu={"icon-button":"_icon-button_15e26_1",iconButton:OI,sm:MI,md:RI,lg:AI},Ol=({type:e="button",color:t="primary",size:n="md",children:r,className:i,...o})=>o.as==="link"?b.jsx(is.Link,{to:o.href??"/",className:ue(`luminus-icon-button btn text-${t} ${i??""}`,mu.iconButton,mu[n]),...o,children:r}):o.as==="button"||o.as===void 0?b.jsx("button",{type:e,className:ue(`luminus-icon-button btn text-${t} ${i??""}`,mu.iconButton,mu[n]),...o,children:r}):null,jI="_feedback_esh1j_1",NI="_feedback-spacer_esh1j_8",tx={feedback:jI,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:NI},zf=({message:e})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:ue("invalid-feedback luminus-invalid-feedback",tx.feedback),children:e}),b.jsx("div",{className:ue("invalid-feedback-spacer",tx.feedbackSpacer),children:e})]}),DI="_item_1dy8x_1",cE={item:DI},Oa=({color:e="primary",icon:t,className:n,children:r,to:i,as:o,...a})=>b.jsxs(Wa.Item,{className:ue(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,cE.item),as:o==="link"?is.Link:void 0,to:i??"",...a,children:[t,r]}),II="_button_qhwih_1",PI={button:II},f0=h.forwardRef(({color:e="primary",icon:t=b.jsx(Q$,{size:21}),text:n,onClick:r,className:i,children:o,...a},s)=>b.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:ue(`btn luminus-context-button text-${e} ${i??""}`,PI.button),...a,children:[t,n]})),LI="_avatar-icon_1axl6_1",FI={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:LI},lE=({name:e,fontSize:t,size:n})=>{const r=h.useMemo(()=>{const a=e.split(" ");return a.length<2?e:Mc(" ",a.at(a.length-2),a.at(a.length-1))},[e]),i=h.useMemo(()=>{const a=r.split(" ");return Mc("",...a.map(s=>s.at(0)??void 0))},[r]),o=a=>{let s=0,c;for(c=0;c<a.length;c+=1)s=a.charCodeAt(c)+((s<<5)-s);let l="#";for(c=0;c<3;c+=1){const u=s>>c*8&255;l+=`00${u.toString(16)}`.slice(-2)}return l};return b.jsx(q$,{placement:"bottom",overlay:b.jsx(V$,{children:e}),children:b.jsx("div",{className:ue("luminus-avatar-icon",FI.avatarIcon),style:{backgroundColor:o(r),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:b.jsx("div",{children:i})})})},BI=h.forwardRef(({userName:e,onClick:t,children:n},r)=>b.jsxs("button",{type:"button",ref:r,onClick:i=>{i.preventDefault(),t(i)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[b.jsx(lE,{name:e}),n]})),h0=e=>b.jsx(Wa.Toggle,{...e}),zI="_divider_1e6rk_1",WI={divider:zI},uE=({className:e})=>b.jsx(Wa.Divider,{className:ue("luminus-dropdown-divider",e,WI.divider)}),UI="_dropdown_1lk66_1",VI={dropdown:UI},p0=({toggle:e,children:t,align:n,...r})=>b.jsxs(Wa,{...r,align:n,children:[e,b.jsx(Wa.Menu,{className:ue("luminus-dropdown rounded shadow",VI.dropdown),align:n,children:t})]});function HI(e,t,n){var r=this,i=h.useRef(null),o=h.useRef(0),a=h.useRef(null),s=h.useRef([]),c=h.useRef(),l=h.useRef(),u=h.useRef(e),d=h.useRef(!0);u.current=e;var f=typeof window<"u",p=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x="debounceOnServer"in n&&!!n.debounceOnServer,w=v?Math.max(+n.maxWait||0,t):null;h.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var _=h.useMemo(function(){var C=function(O){var S=s.current,M=c.current;return s.current=c.current=null,o.current=O,l.current=u.current.apply(M,S)},y=function(O,S){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(O):setTimeout(O,S)},$=function(O){if(!d.current)return!1;var S=O-i.current;return!i.current||S>=t||S<0||v&&O-o.current>=w},E=function(O){return a.current=null,m&&s.current?C(O):(s.current=c.current=null,l.current)},T=function O(){var S=Date.now();if($(S))return E(S);if(d.current){var M=t-(S-i.current),A=v?Math.min(M,w-(S-o.current)):M;y(O,A)}},k=function(){if(f||x){var O=Date.now(),S=$(O);if(s.current=[].slice.call(arguments),c.current=r,i.current=O,S){if(!a.current&&d.current)return o.current=i.current,y(T,t),g?C(i.current):l.current;if(v)return y(T,t),C(i.current)}return a.current||y(T,t),l.current}};return k.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),o.current=0,s.current=i.current=c.current=a.current=null},k.isPending=function(){return!!a.current},k.flush=function(){return a.current?E(Date.now()):l.current},k},[g,v,t,w,m,p,f,x]);return _}function qI(e,t){return e===t}function dE(e,t,n){var r=qI,i=h.useRef(e),o=h.useState({})[1],a=HI(h.useCallback(function(c){i.current=c,o({})},[o]),t,n),s=h.useRef(e);return r(s.current,e)||(a(e),s.current=e),[i.current,a]}const YI="_wrapper_1mvyk_1",GI="_open_1mvyk_9",KI="_dropdown_1mvyk_13",ZI="_search-input-container_1mvyk_19",XI="_search-input_1mvyk_19",QI="_loading-container_1mvyk_25",JI="_items-container_1mvyk_32",eP="_header-row_1mvyk_38",tP="_name_1mvyk_49",nP="_item_1mvyk_32",rP="_column-item_1mvyk_65",iP="_icon_1mvyk_69",oP="_action-buttons-container_1mvyk_89",aP="_reverse_1mvyk_97",sP="_action-button_1mvyk_89",cP="_actions-dropdown_1mvyk_110",gn={wrapper:YI,open:GI,dropdown:KI,"search-input-container":"_search-input-container_1mvyk_19",searchInputContainer:ZI,"search-input":"_search-input_1mvyk_19",searchInput:XI,"loading-container":"_loading-container_1mvyk_25",loadingContainer:QI,"items-container":"_items-container_1mvyk_32",itemsContainer:JI,"header-row":"_header-row_1mvyk_38",headerRow:eP,name:tP,item:nP,"column-item":"_column-item_1mvyk_65",columnItem:rP,icon:iP,"action-buttons-container":"_action-buttons-container_1mvyk_89",actionButtonsContainer:oP,reverse:aP,"action-button":"_action-button_1mvyk_89",actionButton:sP,"actions-dropdown":"_actions-dropdown_1mvyk_110",actionsDropdown:cP},fE=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:o,onSelectionChange:a,onSearchQueryChange:s,texts:c,itemsNameWidth:l,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:p,disabled:g,isLoading:m=!1,inputRef:v,archiveColumn:x="archive",addNewOptionPath:w,refreshOptions:_,noRemoveButton:C=!1})=>{var Me;const{texts:{customSelect:y}}=h.useContext(sn),$=h.useRef(null),E=h.useRef(null),T=h.useRef(null),k=h.useRef(null),O=h.useRef(null),[S,M]=h.useState(""),[A]=dE(S,500),[,j]=h.useState(!1),{copyToClipboard:L}=oE(),N=(Me=v.current)==null?void 0:Me.getBoundingClientRect(),F=(N==null?void 0:N.x)??0,U=((N==null?void 0:N.x)??0)+((N==null?void 0:N.width)??0),z=(N==null?void 0:N.y)??0,I=((N==null?void 0:N.y)??0)+((N==null?void 0:N.height)??0),W=(N==null?void 0:N.width)??0,Y=(N==null?void 0:N.height)??0,J=5,{isMobile:X}=kl(),Z=8,Q=h.useMemo(()=>F?F>window.innerWidth/2-Z:!1,[F]),te=h.useMemo(()=>z?z>window.innerHeight/2-Z:!1,[z]);h.useEffect(()=>{var ge;e&&((ge=T.current)==null||ge.focus())},[T,e]),h.useEffect(()=>{e||M("")},[e]),h.useEffect(()=>{s&&s(A)},[A,s]);const[P,D]=h.useState(null);h.useEffect(()=>{e&&n.length>0?D(0):D(null)},[n,e]);const B=h.useMemo(()=>P!==null?n.at(P)??null:null,[P,n]),H=h.useCallback((ge,_e)=>{var Oe,Ue;const ce=document.getElementById(`item-${ge}`);if(ce){const Ot=ce.clientHeight??0;_e==="down"?(Oe=k.current)==null||Oe.scrollBy({left:0,top:Ot,behavior:"smooth"}):(Ue=k.current)==null||Ue.scrollBy({left:0,top:-Ot,behavior:"smooth"})}},[]),R=h.useCallback(ge=>{if(P===null||g)return;const _e=P+ge;_e<0||_e>=n.length||D(ce=>(ce!==null&&H(ce,ge>0?"down":"up"),_e))},[P,n,g,H]),G=h.useCallback(ge=>{if(e)switch(ge.key){case"Escape":ge.stopPropagation(),ge.preventDefault(),t();break;case"Enter":ge.stopPropagation(),ge.preventDefault(),g||a(B);break;case"ArrowUp":ge.stopPropagation(),ge.preventDefault(),R(-1);break;case"ArrowDown":ge.stopPropagation(),ge.preventDefault(),R(1);break}},[t,e,R,B,g,a]),ee=h.useCallback(()=>{j(ge=>!ge)},[]);h.useEffect(()=>(window.addEventListener("scroll",ee),()=>{window.removeEventListener("scroll",ee)}),[ee]),h.useEffect(()=>(window.addEventListener("resize",ee),()=>{window.removeEventListener("resize",ee)}),[ee]),iE(G),nE([$,E,O],t);const ne=l??(u&&u.length>0?250:0),de=(u==null?void 0:u.reduce((ge,_e)=>ge+(_e.width??100),0))??0,oe=h.useMemo(()=>(o&&e&&!g&&!C)??!1,[o,e,g,C]),ae=h.useMemo(()=>(o&&e)??!1,[o,e]),me=h.useMemo(()=>e&&(ae||w!==void 0||_!==void 0),[e,ae,w,_]),ve=32,Ee=X?`calc(100vw - ${ve}px)`:`calc(max(${W}px, calc(${ne}px + ${de}px)))`,Se=h.useMemo(()=>(S.length<1&&r&&r.length>0?r:n).map(ge=>{var _e,ce;return d?((_e=ge.id)==null?void 0:_e.toString())??"":((ce=ge.name)==null?void 0:ce.toString())??""}).reduce((ge,_e)=>ge.length>_e.length?ge:_e,""),[S,r,n,d]);return b.jsxs(b.Fragment,{children:[b.jsx(wE,{show:e,onClick:t}),b.jsxs("div",{className:ue("luminus-dropdown-picker-actions",gn.actionButtonsContainer,{[gn.reverse]:Q}),style:{top:`calc(${z}px + ${Y/2}px - 12px)`,left:Q?oe&&ae?`calc(${F}px - 24px - 8px - 24px - 4px)`:`calc(${F}px - 24px - 8px)`:`calc(${U}px + 8px)`},children:[oe&&b.jsx("button",{ref:E,type:"button",className:ue("luminus-dropdown-picker-clear-button",gn.actionButton),onClick:()=>!g&&a(null),children:b.jsx(jn,{variant:"caption",className:"text-danger",children:b.jsx(K$,{size:16})})}),me?b.jsx("div",{ref:O,children:b.jsxs(p0,{toggle:b.jsx(h0,{as:f0,className:ue("luminus-dropdown-picker-actions-dropdown",gn.actionsDropdown),icon:b.jsx(jn,{variant:"caption",className:"text-primary",children:b.jsx(Q$,{size:16})})}),children:[ae?b.jsx(Oa,{icon:b.jsx(Yj,{}),onClick:()=>{var ge,_e;L(d?((ge=o==null?void 0:o.id)==null?void 0:ge.toString())??"":((_e=o==null?void 0:o.name)==null?void 0:_e.toString())??"")},children:y.copySelection}):null,ae&&(w||_)?b.jsx(uE,{}):null,w?b.jsx(Oa,{icon:b.jsx(qj,{}),onClick:()=>{window.open(w,"_blank")},children:y.addNewOption}):null,_?b.jsx(Oa,{icon:b.jsx(r8,{}),onClick:()=>{_()},children:y.refreshOptions}):null]})}):null]}),b.jsx("div",{className:ue("luminus-dropdown-picker",gn.wrapper,{[gn.open]:e}),style:{top:te?`calc(${z}px - 50vh - 8px)`:`calc(${I}px + 8px)`,left:X?`${ve/2}px`:Q?`calc(${U}px - ${Ee})`:F,right:X?`${ve/2}px`:Q?`${U}px`:`calc(${F}px + ${Ee})`,width:Ee,justifyContent:te?"flex-end":"flex-start"},children:b.jsx("div",{ref:$,className:ue("shadow rounded",gn.dropdown),children:!g&&b.jsxs(b.Fragment,{children:[!s||f&&(p??n.length)<=J?null:b.jsx("div",{className:ue("search-input-container border-bottom",gn.searchInputContainer),children:b.jsx(Kr.Control,{ref:T,type:"search",size:"sm",className:gn.searchInput,placeholder:c.searchPlaceholder,value:S,onChange:ge=>{var _e;return M(((_e=ge.target)==null?void 0:_e.value)??"")}})}),S.length<1&&r&&r.length>0?b.jsx(y0,{variant:"info",size:"sm",children:i??y.suggestedItemsTitle}):null,m?b.jsx("div",{className:gn.loadingContainer,children:b.jsx(Jv,{animation:"border",variant:"primary"})}):(S.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&b.jsxs("div",{ref:k,className:ue("items",gn.itemsContainer),children:[u&&u.length>0&&b.jsxs("div",{className:ue("header-row border-bottom",gn.headerRow),children:[b.jsx("div",{className:gn.name,children:b.jsx(jn,{variant:"body2",children:Se})}),u==null?void 0:u.filter(ge=>ge.key!==x).map(ge=>b.jsx("div",{className:gn.columnItem,style:{width:`${ge.width??100}px`,minWidth:`${ge.width??100}px`,maxWidth:`${ge.width??100}px`},children:b.jsx(jn,{variant:"caption",children:ge.name})},ge.key))]}),(S.length<1&&r&&r.length>0?r:n).map((ge,_e)=>b.jsxs("button",{id:`item-${_e}`,type:"button",className:ue("item cursor-pointer",gn.item,{[gn.focused]:P===_e},{focused:P===_e},{archive:ge.additionalColumns?ge.additionalColumns[x]:!1}),onClick:()=>!g&&a(ge),onMouseEnter:()=>D(_e),children:[b.jsx("div",{className:gn.name,children:b.jsx(jn,{variant:"body2",children:d?ge.id:ge.name})}),u==null?void 0:u.filter(ce=>ce.key!==x).map(ce=>b.jsx("div",{className:gn.columnItem,style:{width:`${ce.width??100}px`,minWidth:`${ce.width??100}px`,maxWidth:`${ce.width??100}px`},children:b.jsx(jn,{variant:"caption",className:ue("text-muted"),children:ge.additionalColumns&&ge.additionalColumns[ce.key]})},ce.key))]},ge.id))]})]})})})]})};var m0={};m0.match=pP;m0.parse=hE;var lP=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,uP=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,dP=/^(?:(min|max)-)?(.+)/,fP=/(em|rem|px|cm|mm|in|pt|pc)?$/,hP=/(dpi|dpcm|dppx)?$/;function pP(e,t){return hE(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var o=n.expressions.every(function(a){var s=a.feature,c=a.modifier,l=a.value,u=t[s];if(!u)return!1;switch(s){case"orientation":case"scan":return u.toLowerCase()===l.toLowerCase();case"width":case"height":case"device-width":case"device-height":l=ix(l),u=ix(u);break;case"resolution":l=rx(l),u=rx(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":l=nx(l),u=nx(u);break;case"grid":case"color":case"color-index":case"monochrome":l=parseInt(l,10)||1,u=parseInt(u,10)||0;break}switch(c){case"min":return u>=l;case"max":return u<=l;default:return u===l}});return o&&!r||!o&&r})}function hE(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(lP),r=n[1],i=n[2],o=n[3]||"",a={};return a.inverse=!!r&&r.toLowerCase()==="not",a.type=i?i.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],a.expressions=o.map(function(s){var c=s.match(uP),l=c[1].toLowerCase().match(dP);return{modifier:l[1],feature:l[2],value:c[2]}}),a})}function nx(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function rx(e){var t=parseFloat(e),n=String(e).match(hP)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function ix(e){var t=parseFloat(e),n=String(e).match(fP)[1];switch(n){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var mP=m0.match,ox=typeof window<"u"?window.matchMedia:null;function gP(e,t,n){var r=this,i;ox&&!n&&(i=ox.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=mP(e,t),this.media=e),this.addListener=o,this.removeListener=a,this.dispose=c;function o(l){i&&i.addListener(l)}function a(l){i&&i.removeListener(l)}function s(l){r.matches=l.matches,r.media=l.media}function c(){i&&i.removeListener(s)}}function vP(e,t,n){return new gP(e,t,n)}var bP=vP;const yP=rn(bP);var xP=/[A-Z]/g,wP=/^ms-/,Pp={};function _P(e){return"-"+e.toLowerCase()}function pE(e){if(Pp.hasOwnProperty(e))return Pp[e];var t=e.replace(xP,_P);return Pp[e]=wP.test(t)?"-"+t:t}function CP(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let o=0;o<i;o++){const a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}const An=K.oneOfType([K.string,K.number]),g0={all:K.bool,grid:K.bool,aural:K.bool,braille:K.bool,handheld:K.bool,print:K.bool,projection:K.bool,screen:K.bool,tty:K.bool,tv:K.bool,embossed:K.bool},mE={orientation:K.oneOf(["portrait","landscape"]),scan:K.oneOf(["progressive","interlace"]),aspectRatio:K.string,deviceAspectRatio:K.string,height:An,deviceHeight:An,width:An,deviceWidth:An,color:K.bool,colorIndex:K.bool,monochrome:K.bool,resolution:An,type:Object.keys(g0)},{type:m0e,...$P}=mE,gE={minAspectRatio:K.string,maxAspectRatio:K.string,minDeviceAspectRatio:K.string,maxDeviceAspectRatio:K.string,minHeight:An,maxHeight:An,minDeviceHeight:An,maxDeviceHeight:An,minWidth:An,maxWidth:An,minDeviceWidth:An,maxDeviceWidth:An,minColor:K.number,maxColor:K.number,minColorIndex:K.number,maxColorIndex:K.number,minMonochrome:K.number,maxMonochrome:K.number,minResolution:An,maxResolution:An,...$P},SP={...g0,...gE};var EP={all:SP,types:g0,matchers:mE,features:gE};const TP=e=>`not ${e}`,kP=(e,t)=>{const n=pE(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?TP(n):`(${n}: ${t})`},OP=e=>e.join(" and "),MP=e=>{const t=[];return Object.keys(EP.all).forEach(n=>{const r=e[n];r!=null&&t.push(kP(n,r))}),OP(t)},RP=h.createContext(void 0),AP=e=>e.query||MP(e),ax=e=>e?Object.keys(e).reduce((n,r)=>(n[pE(r)]=e[r],n),{}):void 0,vE=()=>{const e=h.useRef(!1);return h.useEffect(()=>{e.current=!0},[]),e.current},jP=e=>{const t=h.useContext(RP),n=()=>ax(e)||ax(t),[r,i]=h.useState(n);return h.useEffect(()=>{const o=n();CP(r,o)||i(o)},[e,t]),r},NP=e=>{const t=()=>AP(e),[n,r]=h.useState(t);return h.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},DP=(e,t)=>{const n=()=>yP(e,t||{},!!t),[r,i]=h.useState(n),o=vE();return h.useEffect(()=>{if(o){const a=n();return i(a),()=>{a&&a.dispose()}}},[e,t]),r},IP=e=>{const[t,n]=h.useState(e.matches);return h.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},Lp=(e,t,n)=>{const r=jP(t),i=NP(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const o=DP(i,r),a=IP(o),s=vE();return h.useEffect(()=>{s&&n&&n(a)},[a]),h.useEffect(()=>()=>{o&&o.dispose()},[]),a},PP=["sm","md","lg","always"],bE="ResponsiveContextDropdownItem",LP=e=>e.type.displayName===bE,v0=e=>({});v0.displayName=bE;function FP(e){return e.type&&e.type===h.Fragment}const yE=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(FP(r)){n.push(...yE(r.props.children));return}n.push(r)}}),n},BP=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return is.generatePath(e,r)+"?"+n},zP="_disabled_9mp5v_1",WP={disabled:zP},UP=()=>{const{ProjectIconComponent:e}=h.useContext(sn),{checkUserHasPermissions:t}=rE();return{getProcessedChildren:h.useCallback((r,i)=>{const o=[],a=[];let s=null;const c=u=>{const{hideOn:d,children:f,cKey:p,to:g,toRoute:m,disabled:v,icon:x,pathParams:w,..._}=u.props,C=(m==null?void 0:m.permissions)!=null,y=(m==null?void 0:m.permissions)!=null&&t(m==null?void 0:m.permissions),$=(v??!1)||C&&!y,E=g??(m==null?void 0:BP(m==null?void 0:m.route,w)),T=f??(m==null?void 0:m.name),k=x??(m!=null?b.jsx(e,{icon:"link"}):void 0);if(d==="always"||PP.indexOf(d)>=i){s&&a.length>0&&a.push(s),s=null;const O=ue(_.className,{[WP.disabled]:$});E!=null?a.push(b.jsx(Oa,{..._,as:"link",to:E,disabled:$,icon:k,className:O,children:T},p)):a.push(b.jsx(Oa,{..._,icon:k,className:O,children:T},p))}else{const O=E!=null?{as:"link",href:E}:{};o.push(b.jsx(Bf,{..._,...O,icon:k,className:ue($?"disabled":void 0,_.className),children:T},p))}};return yE(r).forEach(u=>{u&&h.isValidElement(u)&&(LP(u)?c(u):s=u)}),{buttons:o,dropdownItems:a}},[e,t])}},xE=({children:e})=>{const{getProcessedChildren:t}=UP(),n=Lp({maxWidth:768}),r=Lp({minWidth:769,maxWidth:1200}),i=Lp({minWidth:1201}),o=[n,r,i].indexOf(!0),{buttons:a,dropdownItems:s}=t(e,o);return b.jsxs("div",{className:"d-flex gap-1",children:[b.jsx(b.Fragment,{children:a}),s.length>0?b.jsx(p0,{toggle:b.jsx(h0,{as:f0}),children:s}):null]})};xE.Item=v0;const VP="Left",HP="Right",qP="Up",YP="Down",$a={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},bg={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},sx="mousemove",cx="mouseup",GP="touchend",KP="touchmove",ZP="touchstart";function XP(e,t,n,r){return e>t?n>0?HP:VP:r>0?YP:qP}function lx(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function QP(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,p)=>{p.trackMouse&&!d&&(document.addEventListener(sx,r),document.addEventListener(cx,a));const{clientX:g,clientY:m}=d?u.touches[0]:u,v=lx([g,m],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),bg),{initial:v.slice(),xy:v,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const p="touches"in u;if(p&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:g,clientY:m}=p?u.touches[0]:u,[v,x]=lx([g,m],f.rotationAngle),w=v-d.xy[0],_=x-d.xy[1],C=Math.abs(w),y=Math.abs(_),$=(u.timeStamp||0)-d.start,E=Math.sqrt(C*C+y*y)/($||1),T=[w/($||1),_/($||1)],k=XP(C,y,w,_),O=typeof f.delta=="number"?f.delta:f.delta[k.toLowerCase()]||$a.delta;if(C<O&&y<O&&!d.swiping)return d;const S={absX:C,absY:y,deltaX:w,deltaY:_,dir:k,event:u,first:d.first,initial:d.initial,velocity:E,vxvy:T};S.first&&f.onSwipeStart&&f.onSwipeStart(S),f.onSwiping&&f.onSwiping(S);let M=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${k}`])&&(M=!0),M&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:S,swiping:!0})})},i=u=>{e((d,f)=>{let p;if(d.swiping&&d.eventData){if(u.timeStamp-d.start<f.swipeDuration){p=Object.assign(Object.assign({},d.eventData),{event:u}),f.onSwiped&&f.onSwiped(p);const g=f[`onSwiped${p.dir}`];g&&g(p)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),bg),{eventData:p})})},o=()=>{document.removeEventListener(sx,r),document.removeEventListener(cx,a)},a=u=>{o(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const p=Object.assign(Object.assign({},$a.touchEventOptions),d.touchEventOptions),g=[[ZP,n,p],[KP,r,Object.assign(Object.assign({},p),d.preventScrollOnSwipe?{passive:!1}:{})],[GP,i,p]];g.forEach(([m,v,x])=>u.addEventListener(m,v,x)),f=()=>g.forEach(([m,v])=>u.removeEventListener(m,v))}return f},l={ref:u=>{u!==null&&e((d,f)=>{if(d.el===u)return d;const p={};return d.el&&d.el!==u&&d.cleanUpTouch&&(d.cleanUpTouch(),p.cleanUpTouch=void 0),f.trackTouch&&u&&(p.cleanUpTouch=s(u,f)),Object.assign(Object.assign(Object.assign({},d),{el:u}),p)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function JP(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function b0(e){const{trackMouse:t}=e,n=ie.useRef(Object.assign({},bg)),r=ie.useRef(Object.assign({},$a)),i=ie.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},$a),e);let o;for(o in $a)r.current[o]===void 0&&(r.current[o]=$a[o]);const[a,s]=ie.useMemo(()=>QP(c=>n.current=c(n.current,r.current),{trackMouse:t}),[t]);return n.current=JP(n.current,r.current,i.current,s),a}const e9="_backdrop_3huvf_1",t9="_show_3huvf_11",ux={backdrop:e9,show:t9},wE=({show:e,onClick:t})=>b.jsx("div",{className:ue("luminus-backdrop",ux.backdrop,{[ux.show]:e}),onClick:()=>t&&t()}),y0=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:o=i==="sm"?"body2":"body",...a}={...e};return b.jsx(cR,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...a,children:b.jsx(jn,{variant:o,children:n})})},n9="_floating-label_3xm9u_1",r9="_without-label_3xm9u_21",i9="_floating-label-check_3xm9u_184",Fp={"floating-label":"_floating-label_3xm9u_1",floatingLabel:n9,"without-label":"_without-label_3xm9u_21",withoutLabel:r9,"floating-label-check":"_floating-label-check_3xm9u_184",floatingLabelCheck:i9},o9=({hint:e,children:t})=>e?b.jsx(t0,{text:e,placement:"top",children:t}):t,Wf=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:i,inputContainerClassName:o,isForCheckInput:a,hint:s,required:c,disabled:l,...u},d)=>{const{ProjectIconComponent:f}=h.useContext(sn),p=u.withoutLabel?"":b.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[u.label,c?b.jsx("span",{className:ue("fw-bold",{"text-danger":!l}),style:{fontSize:"16px"},children:"*"}):null,s?b.jsx("div",{className:"d-flex align-items-center",children:b.jsx(f,{icon:"info"})}):null]});return a?b.jsx("div",{className:ue("luminus-floating-label-check",Fp.floatingLabelCheck),children:t}):b.jsx(o9,{hint:s,children:b.jsx(Yv,{ref:d,label:b.jsx("div",{className:"d-flex gap-1 align-items-center",children:p}),hidden:e??!1,className:ue(`luminus-floating-label ${n??""}`,Fp.floatingLabel,{[o??""]:o},{[Fp.withoutLabel]:u.withoutLabel}),children:t})})});Wf.displayName="FloatingLabelInput";const a9="_row-label-input_mqkkx_1",s9="_label_mqkkx_4",c9="_input-container_mqkkx_9",l9="_invalid-feedback_mqkkx_104",u9="_keep-check-label_mqkkx_132",d9="_is-invalid_mqkkx_160",zs={"row-label-input":"_row-label-input_mqkkx_1",rowLabelInput:a9,label:s9,"input-container":"_input-container_mqkkx_9",inputContainer:c9,"invalid-feedback":"_invalid-feedback_mqkkx_104",invalidFeedback:l9,"keep-check-label":"_keep-check-label_mqkkx_132",keepCheckLabel:u9,"is-invalid":"_is-invalid_mqkkx_160",isInvalid:d9},Ml=h.forwardRef(({hidden:e,children:t,required:n,disabled:r,className:i,isInvalid:o,isForRadioInput:a,isForTextAreaInput:s,inputContainerClassName:c,hint:l,...u},d)=>{const{ProjectIconComponent:f}=h.useContext(sn),p=u.withoutLabel?b.jsx(b.Fragment,{}):b.jsx("label",{className:ue("label col-6",{"col-12":s},zs.label),children:b.jsxs(jn,{variant:"form-label",className:ue("d-flex gap-1 align-items-center",o?"text-danger":""),children:[u.label,n?b.jsx("span",{className:ue("fw-bold",{"text-danger":!r}),style:{fontSize:"16px"},children:"*"}):null,l?b.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:b.jsx(f,{icon:"info"})}):null]})});return b.jsxs("div",{ref:d,className:ue("luminus-row-label row gx-0 gy-0",{"is-invalid":o},{[zs.isInvalid]:o},{[i??""]:i},{"d-none":e},zs.rowLabelInput),children:[l?b.jsx(t0,{text:l,placement:"top",children:p}):p,b.jsx("div",{className:ue("input-container",zs.inputContainer,{"col-6":!u.withoutLabel&&!s},{"col-12":u.withoutLabel||s},{[zs.keepCheckLabel]:a},{[c??""]:c}),children:t})]})});Ml.displayName="RowLabelInput";const _E=h.forwardRef(({children:e,className:t,hidden:n},r)=>b.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));_E.displayName="NoInputContainer";const CE=({currentSelection:e,selectedItemNavigateTo:t,children:n})=>{if(!e||!e.id||!t)return b.jsx("div",{className:"luminus-input-container position-relative w-100",children:n});const r=t(e);return b.jsx(is.Link,{to:r,className:"luminus-input-container position-relative w-100 text-decoration-none",children:n})},$E=({InputContainer:e=Wf,type:t,value:n,onChange:r,debounceMs:i,label:o,withoutLabel:a,placeholder:s,size:c,hidden:l,disabled:u,showClearIcon:d,clearValue:f,list:p,className:g,step:m,minLength:v,maxLength:x,noSelectOnFocus:w,hint:_,onConfirm:C,autoComplete:y})=>{const $=t==="number",E=h.useCallback(()=>{if(!r)return;const F=f??null;r($?F?Number(F):null:(F==null?void 0:F.toString())??"")},[f,$,r]),T=h.useRef(null),[k,O]=h.useState((n==null?void 0:n.toString())??""),S=h.useCallback(F=>{const U=F;r&&r($?U==null||U===""?null:Number(U):U||null)},[$,r]),M=h.useCallback(F=>{var z;const U=(z=F.target)==null?void 0:z.value;if(!i){S(U);return}O(U),T.current!==null&&window.clearTimeout(T.current),T.current=window.setTimeout(()=>{S(U)},i)},[i,S]),A=h.useMemo(()=>{if(C!==void 0)return F=>{F.key==="Enter"&&C&&C()}},[C]);h.useEffect(()=>{O(n===null?"":n.toString())},[n]);const[j,L]=h.useState(!1),N=d0(t,n?n.toString()??null:null,j);return b.jsxs(e,{withoutLabel:a,label:o??"",hidden:l,className:g,hint:_,disabled:u,children:[b.jsx(Kr.Control,{type:N,placeholder:s??o,size:c,value:i?k:(n==null?void 0:n.toString())??"",onChange:M,className:g??"",hidden:l,disabled:u??!1,list:p,onFocus:F=>{L(!0),!w&&F.target.select()},onBlur:()=>L(!1),onKeyDown:A,step:m,minLength:v,maxLength:x,autoComplete:y}),d&&n!==null&&r&&!u&&b.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:b.jsx(Ol,{color:"secondary",size:"sm",onClick:E,children:b.jsx(Cl,{})})})]})};var x0={},Sd={exports:{}};Sd.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",v="[object Number]",x="[object Null]",w="[object Object]",_="[object Promise]",C="[object Proxy]",y="[object RegExp]",$="[object Set]",E="[object String]",T="[object Symbol]",k="[object Undefined]",O="[object WeakMap]",S="[object ArrayBuffer]",M="[object DataView]",A="[object Float32Array]",j="[object Float64Array]",L="[object Int8Array]",N="[object Int16Array]",F="[object Int32Array]",U="[object Uint8Array]",z="[object Uint8ClampedArray]",I="[object Uint16Array]",W="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,J=/^\[object .+?Constructor\]$/,X=/^(?:0|[1-9]\d*)$/,Z={};Z[A]=Z[j]=Z[L]=Z[N]=Z[F]=Z[U]=Z[z]=Z[I]=Z[W]=!0,Z[s]=Z[c]=Z[S]=Z[u]=Z[M]=Z[d]=Z[f]=Z[p]=Z[m]=Z[v]=Z[w]=Z[y]=Z[$]=Z[E]=Z[O]=!1;var Q=typeof lr=="object"&&lr&&lr.Object===Object&&lr,te=typeof self=="object"&&self&&self.Object===Object&&self,P=Q||te||Function("return this")(),D=t&&!t.nodeType&&t,B=D&&!0&&e&&!e.nodeType&&e,H=B&&B.exports===D,R=H&&Q.process,G=function(){try{return R&&R.binding&&R.binding("util")}catch{}}(),ee=G&&G.isTypedArray;function ne(V,re){for(var pe=-1,je=V==null?0:V.length,Xt=0,ct=[];++pe<je;){var ln=V[pe];re(ln,pe,V)&&(ct[Xt++]=ln)}return ct}function de(V,re){for(var pe=-1,je=re.length,Xt=V.length;++pe<je;)V[Xt+pe]=re[pe];return V}function oe(V,re){for(var pe=-1,je=V==null?0:V.length;++pe<je;)if(re(V[pe],pe,V))return!0;return!1}function ae(V,re){for(var pe=-1,je=Array(V);++pe<V;)je[pe]=re(pe);return je}function me(V){return function(re){return V(re)}}function ve(V,re){return V.has(re)}function Ee(V,re){return V==null?void 0:V[re]}function Se(V){var re=-1,pe=Array(V.size);return V.forEach(function(je,Xt){pe[++re]=[Xt,je]}),pe}function Me(V,re){return function(pe){return V(re(pe))}}function ge(V){var re=-1,pe=Array(V.size);return V.forEach(function(je){pe[++re]=je}),pe}var _e=Array.prototype,ce=Function.prototype,Oe=Object.prototype,Ue=P["__core-js_shared__"],Ot=ce.toString,qe=Oe.hasOwnProperty,ht=function(){var V=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||"");return V?"Symbol(src)_1."+V:""}(),_t=Oe.toString,Vt=RegExp("^"+Ot.call(qe).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=H?P.Buffer:void 0,bt=P.Symbol,Ct=P.Uint8Array,Ht=Oe.propertyIsEnumerable,Be=_e.splice,Pe=bt?bt.toStringTag:void 0,et=Object.getOwnPropertySymbols,Ve=gt?gt.isBuffer:void 0,tt=Me(Object.keys,Object),nt=sa(P,"DataView"),$t=sa(P,"Map"),pt=sa(P,"Promise"),ut=sa(P,"Set"),xt=sa(P,"WeakMap"),yt=sa(Object,"create"),at=fo(nt),St=fo($t),Mt=fo(pt),we=fo(ut),Re=fo(xt),De=bt?bt.prototype:void 0,Ke=De?De.valueOf:void 0;function Ye(V){var re=-1,pe=V==null?0:V.length;for(this.clear();++re<pe;){var je=V[re];this.set(je[0],je[1])}}function Et(){this.__data__=yt?yt(null):{},this.size=0}function q(V){var re=this.has(V)&&delete this.__data__[V];return this.size-=re?1:0,re}function he(V){var re=this.__data__;if(yt){var pe=re[V];return pe===r?void 0:pe}return qe.call(re,V)?re[V]:void 0}function le(V){var re=this.__data__;return yt?re[V]!==void 0:qe.call(re,V)}function fe(V,re){var pe=this.__data__;return this.size+=this.has(V)?0:1,pe[V]=yt&&re===void 0?r:re,this}Ye.prototype.clear=Et,Ye.prototype.delete=q,Ye.prototype.get=he,Ye.prototype.has=le,Ye.prototype.set=fe;function $e(V){var re=-1,pe=V==null?0:V.length;for(this.clear();++re<pe;){var je=V[re];this.set(je[0],je[1])}}function Ie(){this.__data__=[],this.size=0}function Te(V){var re=this.__data__,pe=nu(re,V);if(pe<0)return!1;var je=re.length-1;return pe==je?re.pop():Be.call(re,pe,1),--this.size,!0}function Ne(V){var re=this.__data__,pe=nu(re,V);return pe<0?void 0:re[pe][1]}function He(V){return nu(this.__data__,V)>-1}function ze(V,re){var pe=this.__data__,je=nu(pe,V);return je<0?(++this.size,pe.push([V,re])):pe[je][1]=re,this}$e.prototype.clear=Ie,$e.prototype.delete=Te,$e.prototype.get=Ne,$e.prototype.has=He,$e.prototype.set=ze;function st(V){var re=-1,pe=V==null?0:V.length;for(this.clear();++re<pe;){var je=V[re];this.set(je[0],je[1])}}function nn(){this.size=0,this.__data__={hash:new Ye,map:new($t||$e),string:new Ye}}function Ut(V){var re=ru(this,V).delete(V);return this.size-=re?1:0,re}function cn(V){return ru(this,V).get(V)}function Ce(V){return ru(this,V).has(V)}function xn(V,re){var pe=ru(this,V),je=pe.size;return pe.set(V,re),this.size+=pe.size==je?0:1,this}st.prototype.clear=nn,st.prototype.delete=Ut,st.prototype.get=cn,st.prototype.has=Ce,st.prototype.set=xn;function qt(V){var re=-1,pe=V==null?0:V.length;for(this.__data__=new st;++re<pe;)this.add(V[re])}function xr(V){return this.__data__.set(V,r),this}function eu(V){return this.__data__.has(V)}qt.prototype.add=qt.prototype.push=xr,qt.prototype.has=eu;function wr(V){var re=this.__data__=new $e(V);this.size=re.size}function uo(){this.__data__=new $e,this.size=0}function tu(V){var re=this.__data__,pe=re.delete(V);return this.size=re.size,pe}function Jr(V){return this.__data__.get(V)}function pp(V){return this.__data__.has(V)}function ei(V,re){var pe=this.__data__;if(pe instanceof $e){var je=pe.__data__;if(!$t||je.length<n-1)return je.push([V,re]),this.size=++pe.size,this;pe=this.__data__=new st(je)}return pe.set(V,re),this.size=pe.size,this}wr.prototype.clear=uo,wr.prototype.delete=tu,wr.prototype.get=Jr,wr.prototype.has=pp,wr.prototype.set=ei;function Os(V,re){var pe=iu(V),je=!pe&&BM(V),Xt=!pe&&!je&&mp(V),ct=!pe&&!je&&!Xt&&By(V),ln=pe||je||Xt||ct,mn=ln?ae(V.length,String):[],wn=mn.length;for(var on in V)qe.call(V,on)&&!(ln&&(on=="length"||Xt&&(on=="offset"||on=="parent")||ct&&(on=="buffer"||on=="byteLength"||on=="byteOffset")||DM(on,wn)))&&mn.push(on);return mn}function nu(V,re){for(var pe=V.length;pe--;)if(Iy(V[pe][0],re))return pe;return-1}function EM(V,re,pe){var je=re(V);return iu(V)?je:de(je,pe(V))}function Ms(V){return V==null?V===void 0?k:x:Pe&&Pe in Object(V)?jM(V):FM(V)}function Ay(V){return Rs(V)&&Ms(V)==s}function jy(V,re,pe,je,Xt){return V===re?!0:V==null||re==null||!Rs(V)&&!Rs(re)?V!==V&&re!==re:TM(V,re,pe,je,jy,Xt)}function TM(V,re,pe,je,Xt,ct){var ln=iu(V),mn=iu(re),wn=ln?c:Ti(V),on=mn?c:Ti(re);wn=wn==s?w:wn,on=on==s?w:on;var Xn=wn==w,_r=on==w,Cn=wn==on;if(Cn&&mp(V)){if(!mp(re))return!1;ln=!0,Xn=!1}if(Cn&&!Xn)return ct||(ct=new wr),ln||By(V)?Ny(V,re,pe,je,Xt,ct):RM(V,re,wn,pe,je,Xt,ct);if(!(pe&i)){var ir=Xn&&qe.call(V,"__wrapped__"),or=_r&&qe.call(re,"__wrapped__");if(ir||or){var ki=ir?V.value():V,ti=or?re.value():re;return ct||(ct=new wr),Xt(ki,ti,pe,je,ct)}}return Cn?(ct||(ct=new wr),AM(V,re,pe,je,Xt,ct)):!1}function kM(V){if(!Fy(V)||PM(V))return!1;var re=Py(V)?Vt:J;return re.test(fo(V))}function OM(V){return Rs(V)&&Ly(V.length)&&!!Z[Ms(V)]}function MM(V){if(!LM(V))return tt(V);var re=[];for(var pe in Object(V))qe.call(V,pe)&&pe!="constructor"&&re.push(pe);return re}function Ny(V,re,pe,je,Xt,ct){var ln=pe&i,mn=V.length,wn=re.length;if(mn!=wn&&!(ln&&wn>mn))return!1;var on=ct.get(V);if(on&&ct.get(re))return on==re;var Xn=-1,_r=!0,Cn=pe&o?new qt:void 0;for(ct.set(V,re),ct.set(re,V);++Xn<mn;){var ir=V[Xn],or=re[Xn];if(je)var ki=ln?je(or,ir,Xn,re,V,ct):je(ir,or,Xn,V,re,ct);if(ki!==void 0){if(ki)continue;_r=!1;break}if(Cn){if(!oe(re,function(ti,ho){if(!ve(Cn,ho)&&(ir===ti||Xt(ir,ti,pe,je,ct)))return Cn.push(ho)})){_r=!1;break}}else if(!(ir===or||Xt(ir,or,pe,je,ct))){_r=!1;break}}return ct.delete(V),ct.delete(re),_r}function RM(V,re,pe,je,Xt,ct,ln){switch(pe){case M:if(V.byteLength!=re.byteLength||V.byteOffset!=re.byteOffset)return!1;V=V.buffer,re=re.buffer;case S:return!(V.byteLength!=re.byteLength||!ct(new Ct(V),new Ct(re)));case u:case d:case v:return Iy(+V,+re);case f:return V.name==re.name&&V.message==re.message;case y:case E:return V==re+"";case m:var mn=Se;case $:var wn=je&i;if(mn||(mn=ge),V.size!=re.size&&!wn)return!1;var on=ln.get(V);if(on)return on==re;je|=o,ln.set(V,re);var Xn=Ny(mn(V),mn(re),je,Xt,ct,ln);return ln.delete(V),Xn;case T:if(Ke)return Ke.call(V)==Ke.call(re)}return!1}function AM(V,re,pe,je,Xt,ct){var ln=pe&i,mn=Dy(V),wn=mn.length,on=Dy(re),Xn=on.length;if(wn!=Xn&&!ln)return!1;for(var _r=wn;_r--;){var Cn=mn[_r];if(!(ln?Cn in re:qe.call(re,Cn)))return!1}var ir=ct.get(V);if(ir&&ct.get(re))return ir==re;var or=!0;ct.set(V,re),ct.set(re,V);for(var ki=ln;++_r<wn;){Cn=mn[_r];var ti=V[Cn],ho=re[Cn];if(je)var zy=ln?je(ho,ti,Cn,re,V,ct):je(ti,ho,Cn,V,re,ct);if(!(zy===void 0?ti===ho||Xt(ti,ho,pe,je,ct):zy)){or=!1;break}ki||(ki=Cn=="constructor")}if(or&&!ki){var ou=V.constructor,au=re.constructor;ou!=au&&"constructor"in V&&"constructor"in re&&!(typeof ou=="function"&&ou instanceof ou&&typeof au=="function"&&au instanceof au)&&(or=!1)}return ct.delete(V),ct.delete(re),or}function Dy(V){return EM(V,UM,NM)}function ru(V,re){var pe=V.__data__;return IM(re)?pe[typeof re=="string"?"string":"hash"]:pe.map}function sa(V,re){var pe=Ee(V,re);return kM(pe)?pe:void 0}function jM(V){var re=qe.call(V,Pe),pe=V[Pe];try{V[Pe]=void 0;var je=!0}catch{}var Xt=_t.call(V);return je&&(re?V[Pe]=pe:delete V[Pe]),Xt}var NM=et?function(V){return V==null?[]:(V=Object(V),ne(et(V),function(re){return Ht.call(V,re)}))}:VM,Ti=Ms;(nt&&Ti(new nt(new ArrayBuffer(1)))!=M||$t&&Ti(new $t)!=m||pt&&Ti(pt.resolve())!=_||ut&&Ti(new ut)!=$||xt&&Ti(new xt)!=O)&&(Ti=function(V){var re=Ms(V),pe=re==w?V.constructor:void 0,je=pe?fo(pe):"";if(je)switch(je){case at:return M;case St:return m;case Mt:return _;case we:return $;case Re:return O}return re});function DM(V,re){return re=re??a,!!re&&(typeof V=="number"||X.test(V))&&V>-1&&V%1==0&&V<re}function IM(V){var re=typeof V;return re=="string"||re=="number"||re=="symbol"||re=="boolean"?V!=="__proto__":V===null}function PM(V){return!!ht&&ht in V}function LM(V){var re=V&&V.constructor,pe=typeof re=="function"&&re.prototype||Oe;return V===pe}function FM(V){return _t.call(V)}function fo(V){if(V!=null){try{return Ot.call(V)}catch{}try{return V+""}catch{}}return""}function Iy(V,re){return V===re||V!==V&&re!==re}var BM=Ay(function(){return arguments}())?Ay:function(V){return Rs(V)&&qe.call(V,"callee")&&!Ht.call(V,"callee")},iu=Array.isArray;function zM(V){return V!=null&&Ly(V.length)&&!Py(V)}var mp=Ve||HM;function WM(V,re){return jy(V,re)}function Py(V){if(!Fy(V))return!1;var re=Ms(V);return re==p||re==g||re==l||re==C}function Ly(V){return typeof V=="number"&&V>-1&&V%1==0&&V<=a}function Fy(V){var re=typeof V;return V!=null&&(re=="object"||re=="function")}function Rs(V){return V!=null&&typeof V=="object"}var By=ee?me(ee):OM;function UM(V){return zM(V)?Os(V):MM(V)}function VM(){return[]}function HM(){return!1}e.exports=WM})(Sd,Sd.exports);var f9=Sd.exports,SE={exports:{}};(function(e,t){var n=function(){var r=function(y,$){var E=236,T=17,k=y,O=o[$],S=null,M=0,A=null,j=[],L={},N=function(P,D){M=k*4+17,S=function(B){for(var H=new Array(B),R=0;R<B;R+=1){H[R]=new Array(B);for(var G=0;G<B;G+=1)H[R][G]=null}return H}(M),F(0,0),F(M-7,0),F(0,M-7),I(),z(),Y(P,D),k>=7&&W(P),A==null&&(A=Z(k,O,j)),J(A,D)},F=function(P,D){for(var B=-1;B<=7;B+=1)if(!(P+B<=-1||M<=P+B))for(var H=-1;H<=7;H+=1)D+H<=-1||M<=D+H||(0<=B&&B<=6&&(H==0||H==6)||0<=H&&H<=6&&(B==0||B==6)||2<=B&&B<=4&&2<=H&&H<=4?S[P+B][D+H]=!0:S[P+B][D+H]=!1)},U=function(){for(var P=0,D=0,B=0;B<8;B+=1){N(!0,B);var H=s.getLostPoint(L);(B==0||P>H)&&(P=H,D=B)}return D},z=function(){for(var P=8;P<M-8;P+=1)S[P][6]==null&&(S[P][6]=P%2==0);for(var D=8;D<M-8;D+=1)S[6][D]==null&&(S[6][D]=D%2==0)},I=function(){for(var P=s.getPatternPosition(k),D=0;D<P.length;D+=1)for(var B=0;B<P.length;B+=1){var H=P[D],R=P[B];if(S[H][R]==null)for(var G=-2;G<=2;G+=1)for(var ee=-2;ee<=2;ee+=1)G==-2||G==2||ee==-2||ee==2||G==0&&ee==0?S[H+G][R+ee]=!0:S[H+G][R+ee]=!1}},W=function(P){for(var D=s.getBCHTypeNumber(k),B=0;B<18;B+=1){var H=!P&&(D>>B&1)==1;S[Math.floor(B/3)][B%3+M-8-3]=H}for(var B=0;B<18;B+=1){var H=!P&&(D>>B&1)==1;S[B%3+M-8-3][Math.floor(B/3)]=H}},Y=function(P,D){for(var B=O<<3|D,H=s.getBCHTypeInfo(B),R=0;R<15;R+=1){var G=!P&&(H>>R&1)==1;R<6?S[R][8]=G:R<8?S[R+1][8]=G:S[M-15+R][8]=G}for(var R=0;R<15;R+=1){var G=!P&&(H>>R&1)==1;R<8?S[8][M-R-1]=G:R<9?S[8][15-R-1+1]=G:S[8][15-R-1]=G}S[M-8][8]=!P},J=function(P,D){for(var B=-1,H=M-1,R=7,G=0,ee=s.getMaskFunction(D),ne=M-1;ne>0;ne-=2)for(ne==6&&(ne-=1);;){for(var de=0;de<2;de+=1)if(S[H][ne-de]==null){var oe=!1;G<P.length&&(oe=(P[G]>>>R&1)==1);var ae=ee(H,ne-de);ae&&(oe=!oe),S[H][ne-de]=oe,R-=1,R==-1&&(G+=1,R=7)}if(H+=B,H<0||M<=H){H-=B,B=-B;break}}},X=function(P,D){for(var B=0,H=0,R=0,G=new Array(D.length),ee=new Array(D.length),ne=0;ne<D.length;ne+=1){var de=D[ne].dataCount,oe=D[ne].totalCount-de;H=Math.max(H,de),R=Math.max(R,oe),G[ne]=new Array(de);for(var ae=0;ae<G[ne].length;ae+=1)G[ne][ae]=255&P.getBuffer()[ae+B];B+=de;var me=s.getErrorCorrectPolynomial(oe),ve=l(G[ne],me.getLength()-1),Ee=ve.mod(me);ee[ne]=new Array(me.getLength()-1);for(var ae=0;ae<ee[ne].length;ae+=1){var Se=ae+Ee.getLength()-ee[ne].length;ee[ne][ae]=Se>=0?Ee.getAt(Se):0}}for(var Me=0,ae=0;ae<D.length;ae+=1)Me+=D[ae].totalCount;for(var ge=new Array(Me),_e=0,ae=0;ae<H;ae+=1)for(var ne=0;ne<D.length;ne+=1)ae<G[ne].length&&(ge[_e]=G[ne][ae],_e+=1);for(var ae=0;ae<R;ae+=1)for(var ne=0;ne<D.length;ne+=1)ae<ee[ne].length&&(ge[_e]=ee[ne][ae],_e+=1);return ge},Z=function(P,D,B){for(var H=u.getRSBlocks(P,D),R=d(),G=0;G<B.length;G+=1){var ee=B[G];R.put(ee.getMode(),4),R.put(ee.getLength(),s.getLengthInBits(ee.getMode(),P)),ee.write(R)}for(var ne=0,G=0;G<H.length;G+=1)ne+=H[G].dataCount;if(R.getLengthInBits()>ne*8)throw"code length overflow. ("+R.getLengthInBits()+">"+ne*8+")";for(R.getLengthInBits()+4<=ne*8&&R.put(0,4);R.getLengthInBits()%8!=0;)R.putBit(!1);for(;!(R.getLengthInBits()>=ne*8||(R.put(E,8),R.getLengthInBits()>=ne*8));)R.put(T,8);return X(R,H)};L.addData=function(P,D){D=D||"Byte";var B=null;switch(D){case"Numeric":B=f(P);break;case"Alphanumeric":B=p(P);break;case"Byte":B=g(P);break;case"Kanji":B=m(P);break;default:throw"mode:"+D}j.push(B),A=null},L.isDark=function(P,D){if(P<0||M<=P||D<0||M<=D)throw P+","+D;return S[P][D]},L.getModuleCount=function(){return M},L.make=function(){if(k<1){for(var P=1;P<40;P++){for(var D=u.getRSBlocks(P,O),B=d(),H=0;H<j.length;H++){var R=j[H];B.put(R.getMode(),4),B.put(R.getLength(),s.getLengthInBits(R.getMode(),P)),R.write(B)}for(var G=0,H=0;H<D.length;H++)G+=D[H].dataCount;if(B.getLengthInBits()<=G*8)break}k=P}N(!1,U())},L.createTableTag=function(P,D){P=P||2,D=typeof D>"u"?P*4:D;var B="";B+='<table style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: "+D+"px;",B+='">',B+="<tbody>";for(var H=0;H<L.getModuleCount();H+=1){B+="<tr>";for(var R=0;R<L.getModuleCount();R+=1)B+='<td style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: 0px;",B+=" width: "+P+"px;",B+=" height: "+P+"px;",B+=" background-color: ",B+=L.isDark(H,R)?"#000000":"#ffffff",B+=";",B+='"/>';B+="</tr>"}return B+="</tbody>",B+="</table>",B},L.createSvgTag=function(P,D,B,H){var R={};typeof arguments[0]=="object"&&(R=arguments[0],P=R.cellSize,D=R.margin,B=R.alt,H=R.title),P=P||2,D=typeof D>"u"?P*4:D,B=typeof B=="string"?{text:B}:B||{},B.text=B.text||null,B.id=B.text?B.id||"qrcode-description":null,H=typeof H=="string"?{text:H}:H||{},H.text=H.text||null,H.id=H.text?H.id||"qrcode-title":null;var G=L.getModuleCount()*P+D*2,ee,ne,de,oe,ae="",me;for(me="l"+P+",0 0,"+P+" -"+P+",0 0,-"+P+"z ",ae+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',ae+=R.scalable?"":' width="'+G+'px" height="'+G+'px"',ae+=' viewBox="0 0 '+G+" "+G+'" ',ae+=' preserveAspectRatio="xMinYMin meet"',ae+=H.text||B.text?' role="img" aria-labelledby="'+Q([H.id,B.id].join(" ").trim())+'"':"",ae+=">",ae+=H.text?'<title id="'+Q(H.id)+'">'+Q(H.text)+"</title>":"",ae+=B.text?'<description id="'+Q(B.id)+'">'+Q(B.text)+"</description>":"",ae+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',ae+='<path d="',de=0;de<L.getModuleCount();de+=1)for(oe=de*P+D,ee=0;ee<L.getModuleCount();ee+=1)L.isDark(de,ee)&&(ne=ee*P+D,ae+="M"+ne+","+oe+me);return ae+='" stroke="transparent" fill="black"/>',ae+="</svg>",ae},L.createDataURL=function(P,D){P=P||2,D=typeof D>"u"?P*4:D;var B=L.getModuleCount()*P+D*2,H=D,R=B-D;return C(B,B,function(G,ee){if(H<=G&&G<R&&H<=ee&&ee<R){var ne=Math.floor((G-H)/P),de=Math.floor((ee-H)/P);return L.isDark(de,ne)?0:1}else return 1})},L.createImgTag=function(P,D,B){P=P||2,D=typeof D>"u"?P*4:D;var H=L.getModuleCount()*P+D*2,R="";return R+="<img",R+=' src="',R+=L.createDataURL(P,D),R+='"',R+=' width="',R+=H,R+='"',R+=' height="',R+=H,R+='"',B&&(R+=' alt="',R+=Q(B),R+='"'),R+="/>",R};var Q=function(P){for(var D="",B=0;B<P.length;B+=1){var H=P.charAt(B);switch(H){case"<":D+="<";break;case">":D+=">";break;case"&":D+="&";break;case'"':D+=""";break;default:D+=H;break}}return D},te=function(P){var D=1;P=typeof P>"u"?D*2:P;var B=L.getModuleCount()*D+P*2,H=P,R=B-P,G,ee,ne,de,oe,ae={"██":"█","█ ":"▀"," █":"▄"," ":" "},me={"██":"▀","█ ":"▀"," █":" "," ":" "},ve="";for(G=0;G<B;G+=2){for(ne=Math.floor((G-H)/D),de=Math.floor((G+1-H)/D),ee=0;ee<B;ee+=1)oe="█",H<=ee&&ee<R&&H<=G&&G<R&&L.isDark(ne,Math.floor((ee-H)/D))&&(oe=" "),H<=ee&&ee<R&&H<=G+1&&G+1<R&&L.isDark(de,Math.floor((ee-H)/D))?oe+=" ":oe+="█",ve+=P<1&&G+1>=R?me[oe]:ae[oe];ve+=`
|
|
254
|
-
`}return B%2&&P>0?ve.substring(0,ve.length-B-1)+Array(B+1).join("▀"):ve.substring(0,ve.length-1)};return L.createASCII=function(P,D){if(P=P||1,P<2)return te(D);P-=1,D=typeof D>"u"?P*2:D;var B=L.getModuleCount()*P+D*2,H=D,R=B-D,G,ee,ne,de,oe=Array(P+1).join("██"),ae=Array(P+1).join(" "),me="",ve="";for(G=0;G<B;G+=1){for(ne=Math.floor((G-H)/P),ve="",ee=0;ee<B;ee+=1)de=1,H<=ee&&ee<R&&H<=G&&G<R&&L.isDark(ne,Math.floor((ee-H)/P))&&(de=0),ve+=de?oe:ae;for(ne=0;ne<P;ne+=1)me+=ve+`
|
|
255
|
-
`}return me.substring(0,me.length-1)},L.renderTo2dContext=function(P,D){D=D||2;for(var B=L.getModuleCount(),H=0;H<B;H++)for(var R=0;R<B;R++)P.fillStyle=L.isDark(H,R)?"black":"white",P.fillRect(H*D,R*D,D,D)},L};r.stringToBytesFuncs={default:function(y){for(var $=[],E=0;E<y.length;E+=1){var T=y.charCodeAt(E);$.push(T&255)}return $}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(y,$){var E=function(){for(var k=w(y),O=function(){var z=k.read();if(z==-1)throw"eof";return z},S=0,M={};;){var A=k.read();if(A==-1)break;var j=O(),L=O(),N=O(),F=String.fromCharCode(A<<8|j),U=L<<8|N;M[F]=U,S+=1}if(S!=$)throw S+" != "+$;return M}(),T=63;return function(k){for(var O=[],S=0;S<k.length;S+=1){var M=k.charCodeAt(S);if(M<128)O.push(M);else{var A=E[k.charAt(S)];typeof A=="number"?(A&255)==A?O.push(A):(O.push(A>>>8),O.push(A&255)):O.push(T)}}return O}};var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},o={L:1,M:0,Q:3,H:2},a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var y=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],$=1335,E=7973,T=21522,k={},O=function(S){for(var M=0;S!=0;)M+=1,S>>>=1;return M};return k.getBCHTypeInfo=function(S){for(var M=S<<10;O(M)-O($)>=0;)M^=$<<O(M)-O($);return(S<<10|M)^T},k.getBCHTypeNumber=function(S){for(var M=S<<12;O(M)-O(E)>=0;)M^=E<<O(M)-O(E);return S<<12|M},k.getPatternPosition=function(S){return y[S-1]},k.getMaskFunction=function(S){switch(S){case a.PATTERN000:return function(M,A){return(M+A)%2==0};case a.PATTERN001:return function(M,A){return M%2==0};case a.PATTERN010:return function(M,A){return A%3==0};case a.PATTERN011:return function(M,A){return(M+A)%3==0};case a.PATTERN100:return function(M,A){return(Math.floor(M/2)+Math.floor(A/3))%2==0};case a.PATTERN101:return function(M,A){return M*A%2+M*A%3==0};case a.PATTERN110:return function(M,A){return(M*A%2+M*A%3)%2==0};case a.PATTERN111:return function(M,A){return(M*A%3+(M+A)%2)%2==0};default:throw"bad maskPattern:"+S}},k.getErrorCorrectPolynomial=function(S){for(var M=l([1],0),A=0;A<S;A+=1)M=M.multiply(l([1,c.gexp(A)],0));return M},k.getLengthInBits=function(S,M){if(1<=M&&M<10)switch(S){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw"mode:"+S}else if(M<27)switch(S){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw"mode:"+S}else if(M<41)switch(S){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw"mode:"+S}else throw"type:"+M},k.getLostPoint=function(S){for(var M=S.getModuleCount(),A=0,j=0;j<M;j+=1)for(var L=0;L<M;L+=1){for(var N=0,F=S.isDark(j,L),U=-1;U<=1;U+=1)if(!(j+U<0||M<=j+U))for(var z=-1;z<=1;z+=1)L+z<0||M<=L+z||U==0&&z==0||F==S.isDark(j+U,L+z)&&(N+=1);N>5&&(A+=3+N-5)}for(var j=0;j<M-1;j+=1)for(var L=0;L<M-1;L+=1){var I=0;S.isDark(j,L)&&(I+=1),S.isDark(j+1,L)&&(I+=1),S.isDark(j,L+1)&&(I+=1),S.isDark(j+1,L+1)&&(I+=1),(I==0||I==4)&&(A+=3)}for(var j=0;j<M;j+=1)for(var L=0;L<M-6;L+=1)S.isDark(j,L)&&!S.isDark(j,L+1)&&S.isDark(j,L+2)&&S.isDark(j,L+3)&&S.isDark(j,L+4)&&!S.isDark(j,L+5)&&S.isDark(j,L+6)&&(A+=40);for(var L=0;L<M;L+=1)for(var j=0;j<M-6;j+=1)S.isDark(j,L)&&!S.isDark(j+1,L)&&S.isDark(j+2,L)&&S.isDark(j+3,L)&&S.isDark(j+4,L)&&!S.isDark(j+5,L)&&S.isDark(j+6,L)&&(A+=40);for(var W=0,L=0;L<M;L+=1)for(var j=0;j<M;j+=1)S.isDark(j,L)&&(W+=1);var Y=Math.abs(100*W/M/M-50)/5;return A+=Y*10,A},k}(),c=function(){for(var y=new Array(256),$=new Array(256),E=0;E<8;E+=1)y[E]=1<<E;for(var E=8;E<256;E+=1)y[E]=y[E-4]^y[E-5]^y[E-6]^y[E-8];for(var E=0;E<255;E+=1)$[y[E]]=E;var T={};return T.glog=function(k){if(k<1)throw"glog("+k+")";return $[k]},T.gexp=function(k){for(;k<0;)k+=255;for(;k>=256;)k-=255;return y[k]},T}();function l(y,$){if(typeof y.length>"u")throw y.length+"/"+$;var E=function(){for(var k=0;k<y.length&&y[k]==0;)k+=1;for(var O=new Array(y.length-k+$),S=0;S<y.length-k;S+=1)O[S]=y[S+k];return O}(),T={};return T.getAt=function(k){return E[k]},T.getLength=function(){return E.length},T.multiply=function(k){for(var O=new Array(T.getLength()+k.getLength()-1),S=0;S<T.getLength();S+=1)for(var M=0;M<k.getLength();M+=1)O[S+M]^=c.gexp(c.glog(T.getAt(S))+c.glog(k.getAt(M)));return l(O,0)},T.mod=function(k){if(T.getLength()-k.getLength()<0)return T;for(var O=c.glog(T.getAt(0))-c.glog(k.getAt(0)),S=new Array(T.getLength()),M=0;M<T.getLength();M+=1)S[M]=T.getAt(M);for(var M=0;M<k.getLength();M+=1)S[M]^=c.gexp(c.glog(k.getAt(M))+O);return l(S,0).mod(k)},T}var u=function(){var y=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],$=function(k,O){var S={};return S.totalCount=k,S.dataCount=O,S},E={},T=function(k,O){switch(O){case o.L:return y[(k-1)*4+0];case o.M:return y[(k-1)*4+1];case o.Q:return y[(k-1)*4+2];case o.H:return y[(k-1)*4+3];default:return}};return E.getRSBlocks=function(k,O){var S=T(k,O);if(typeof S>"u")throw"bad rs block @ typeNumber:"+k+"/errorCorrectionLevel:"+O;for(var M=S.length/3,A=[],j=0;j<M;j+=1)for(var L=S[j*3+0],N=S[j*3+1],F=S[j*3+2],U=0;U<L;U+=1)A.push($(N,F));return A},E}(),d=function(){var y=[],$=0,E={};return E.getBuffer=function(){return y},E.getAt=function(T){var k=Math.floor(T/8);return(y[k]>>>7-T%8&1)==1},E.put=function(T,k){for(var O=0;O<k;O+=1)E.putBit((T>>>k-O-1&1)==1)},E.getLengthInBits=function(){return $},E.putBit=function(T){var k=Math.floor($/8);y.length<=k&&y.push(0),T&&(y[k]|=128>>>$%8),$+=1},E},f=function(y){var $=i.MODE_NUMBER,E=y,T={};T.getMode=function(){return $},T.getLength=function(S){return E.length},T.write=function(S){for(var M=E,A=0;A+2<M.length;)S.put(k(M.substring(A,A+3)),10),A+=3;A<M.length&&(M.length-A==1?S.put(k(M.substring(A,A+1)),4):M.length-A==2&&S.put(k(M.substring(A,A+2)),7))};var k=function(S){for(var M=0,A=0;A<S.length;A+=1)M=M*10+O(S.charAt(A));return M},O=function(S){if("0"<=S&&S<="9")return S.charCodeAt(0)-48;throw"illegal char :"+S};return T},p=function(y){var $=i.MODE_ALPHA_NUM,E=y,T={};T.getMode=function(){return $},T.getLength=function(O){return E.length},T.write=function(O){for(var S=E,M=0;M+1<S.length;)O.put(k(S.charAt(M))*45+k(S.charAt(M+1)),11),M+=2;M<S.length&&O.put(k(S.charAt(M)),6)};var k=function(O){if("0"<=O&&O<="9")return O.charCodeAt(0)-48;if("A"<=O&&O<="Z")return O.charCodeAt(0)-65+10;switch(O){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+O}};return T},g=function(y){var $=i.MODE_8BIT_BYTE,E=r.stringToBytes(y),T={};return T.getMode=function(){return $},T.getLength=function(k){return E.length},T.write=function(k){for(var O=0;O<E.length;O+=1)k.put(E[O],8)},T},m=function(y){var $=i.MODE_KANJI,E=r.stringToBytesFuncs.SJIS;if(!E)throw"sjis not supported.";(function(O,S){var M=E(O);if(M.length!=2||(M[0]<<8|M[1])!=S)throw"sjis not supported."})("友",38726);var T=E(y),k={};return k.getMode=function(){return $},k.getLength=function(O){return~~(T.length/2)},k.write=function(O){for(var S=T,M=0;M+1<S.length;){var A=(255&S[M])<<8|255&S[M+1];if(33088<=A&&A<=40956)A-=33088;else if(57408<=A&&A<=60351)A-=49472;else throw"illegal char at "+(M+1)+"/"+A;A=(A>>>8&255)*192+(A&255),O.put(A,13),M+=2}if(M<S.length)throw"illegal char at "+(M+1)},k},v=function(){var y=[],$={};return $.writeByte=function(E){y.push(E&255)},$.writeShort=function(E){$.writeByte(E),$.writeByte(E>>>8)},$.writeBytes=function(E,T,k){T=T||0,k=k||E.length;for(var O=0;O<k;O+=1)$.writeByte(E[O+T])},$.writeString=function(E){for(var T=0;T<E.length;T+=1)$.writeByte(E.charCodeAt(T))},$.toByteArray=function(){return y},$.toString=function(){var E="";E+="[";for(var T=0;T<y.length;T+=1)T>0&&(E+=","),E+=y[T];return E+="]",E},$},x=function(){var y=0,$=0,E=0,T="",k={},O=function(M){T+=String.fromCharCode(S(M&63))},S=function(M){if(!(M<0)){if(M<26)return 65+M;if(M<52)return 97+(M-26);if(M<62)return 48+(M-52);if(M==62)return 43;if(M==63)return 47}throw"n:"+M};return k.writeByte=function(M){for(y=y<<8|M&255,$+=8,E+=1;$>=6;)O(y>>>$-6),$-=6},k.flush=function(){if($>0&&(O(y<<6-$),y=0,$=0),E%3!=0)for(var M=3-E%3,A=0;A<M;A+=1)T+="="},k.toString=function(){return T},k},w=function(y){var $=y,E=0,T=0,k=0,O={};O.read=function(){for(;k<8;){if(E>=$.length){if(k==0)return-1;throw"unexpected end of file./"+k}var M=$.charAt(E);if(E+=1,M=="=")return k=0,-1;if(M.match(/^\s$/))continue;T=T<<6|S(M.charCodeAt(0)),k+=6}var A=T>>>k-8&255;return k-=8,A};var S=function(M){if(65<=M&&M<=90)return M-65;if(97<=M&&M<=122)return M-97+26;if(48<=M&&M<=57)return M-48+52;if(M==43)return 62;if(M==47)return 63;throw"c:"+M};return O},_=function(y,$){var E=y,T=$,k=new Array(y*$),O={};O.setPixel=function(j,L,N){k[L*E+j]=N},O.write=function(j){j.writeString("GIF87a"),j.writeShort(E),j.writeShort(T),j.writeByte(128),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(255),j.writeByte(255),j.writeByte(255),j.writeString(","),j.writeShort(0),j.writeShort(0),j.writeShort(E),j.writeShort(T),j.writeByte(0);var L=2,N=M(L);j.writeByte(L);for(var F=0;N.length-F>255;)j.writeByte(255),j.writeBytes(N,F,255),F+=255;j.writeByte(N.length-F),j.writeBytes(N,F,N.length-F),j.writeByte(0),j.writeString(";")};var S=function(j){var L=j,N=0,F=0,U={};return U.write=function(z,I){if(z>>>I)throw"length over";for(;N+I>=8;)L.writeByte(255&(z<<N|F)),I-=8-N,z>>>=8-N,F=0,N=0;F=z<<N|F,N=N+I},U.flush=function(){N>0&&L.writeByte(F)},U},M=function(j){for(var L=1<<j,N=(1<<j)+1,F=j+1,U=A(),z=0;z<L;z+=1)U.add(String.fromCharCode(z));U.add(String.fromCharCode(L)),U.add(String.fromCharCode(N));var I=v(),W=S(I);W.write(L,F);var Y=0,J=String.fromCharCode(k[Y]);for(Y+=1;Y<k.length;){var X=String.fromCharCode(k[Y]);Y+=1,U.contains(J+X)?J=J+X:(W.write(U.indexOf(J),F),U.size()<4095&&(U.size()==1<<F&&(F+=1),U.add(J+X)),J=X)}return W.write(U.indexOf(J),F),W.write(N,F),W.flush(),I.toByteArray()},A=function(){var j={},L=0,N={};return N.add=function(F){if(N.contains(F))throw"dup key:"+F;j[F]=L,L+=1},N.size=function(){return L},N.indexOf=function(F){return j[F]},N.contains=function(F){return typeof j[F]<"u"},N};return O},C=function(y,$,E){for(var T=_(y,$),k=0;k<$;k+=1)for(var O=0;O<y;O+=1)T.setPixel(O,k,E(O,k));var S=v();T.write(S);for(var M=x(),A=S.toByteArray(),j=0;j<A.length;j+=1)M.writeByte(A[j]);return M.flush(),"data:image/gif;base64,"+M};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function i(o){for(var a=[],s=0;s<o.length;s++){var c=o.charCodeAt(s);c<128?a.push(c):c<2048?a.push(192|c>>6,128|c&63):c<55296||c>=57344?a.push(224|c>>12,128|c>>6&63,128|c&63):(s++,c=65536+((c&1023)<<10|o.charCodeAt(s)&1023),a.push(240|c>>18,128|c>>12&63,128|c>>6&63,128|c&63))}return a}return i(r)}})(),function(r){e.exports=r()}(function(){return n})})(SE);var h9=SE.exports,p9=lr&&lr.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yg=lr&&lr.__assign||function(){return yg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},yg.apply(this,arguments)};Object.defineProperty(x0,"__esModule",{value:!0});exports.QRCode_1=x0.QRCode=void 0;var m9=f9,g9=h9,Bp=h,v9=function(e){p9(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=Bp.createRef(),r}return t.prototype.download=function(n,r){if(this.canvasRef.current){var i=void 0;switch(n){case"jpg":i="image/jpeg";break;case"webp":i="image/webp";break;case"png":default:i="image/png";break}var o=this.canvasRef.current.toDataURL(i,1),a=document.createElement("a");a.download=r??"react-qrcode-logo",a.href=o,a.click()}},t.prototype.utf16to8=function(n){var r="",i,o,a=n.length;for(i=0;i<a;i++)o=n.charCodeAt(i),o>=1&&o<=127?r+=n.charAt(i):o>2047?(r+=String.fromCharCode(224|o>>12&15),r+=String.fromCharCode(128|o>>6&63),r+=String.fromCharCode(128|o>>0&63)):(r+=String.fromCharCode(192|o>>6&31),r+=String.fromCharCode(128|o>>0&63));return r},t.prototype.drawRoundedSquare=function(n,r,i,o,a,s,c,l){l.lineWidth=n,l.fillStyle=a,l.strokeStyle=a,i+=n/2,r+=n/2,o-=n,Array.isArray(s)||(s=[s,s,s,s]),s=s.map(function(g){return g=Math.min(g,o/2),g<0?0:g});var u=s[0]||0,d=s[1]||0,f=s[2]||0,p=s[3]||0;l.beginPath(),l.moveTo(r+u,i),l.lineTo(r+o-d,i),d&&l.quadraticCurveTo(r+o,i,r+o,i+d),l.lineTo(r+o,i+o-f),f&&l.quadraticCurveTo(r+o,i+o,r+o-f,i+o),l.lineTo(r+p,i+o),p&&l.quadraticCurveTo(r,i+o,r,i+o-p),l.lineTo(r,i+u),u&&l.quadraticCurveTo(r,i,r+u,i),l.closePath(),l.stroke(),c&&l.fill()},t.prototype.drawPositioningPattern=function(n,r,i,o,a,s,c){c===void 0&&(c=[0,0,0,0]);var l=Math.ceil(r),u,d;typeof c!="number"&&!Array.isArray(c)?(u=c.outer||0,d=c.inner||0):(u=c,d=u);var f,p;typeof s!="string"?(f=s.outer,p=s.inner):(f=s,p=s);var g=o*r+i,m=a*r+i,v=r*7;this.drawRoundedSquare(l,m,g,v,f,u,!1,n),v=r*3,g+=r*2,m+=r*2,this.drawRoundedSquare(l,m,g,v,p,d,!0,n)},t.prototype.isInPositioninZone=function(n,r,i){return i.some(function(o){return r>=o.row&&r<=o.row+7&&n>=o.col&&n<=o.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(n,r){return n/r},t.prototype.isCoordinateInImage=function(n,r,i,o,a,s,c,l){if(l){var u=2,d=this.transformPixelLengthIntoNumberOfCells(a,c),f=this.transformPixelLengthIntoNumberOfCells(s,c),p=this.transformPixelLengthIntoNumberOfCells(i,c)-1,g=this.transformPixelLengthIntoNumberOfCells(o,c)-1;return r>=d-u&&r<=d+p+u&&n>=f-u&&n<=f+g+u}else return!1},t.prototype.shouldComponentUpdate=function(n){return!m9(this.props,n)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var n,r=this.props,i=r.value,o=r.ecLevel,a=r.enableCORS,s=r.bgColor,c=r.fgColor,l=r.logoImage,u=r.logoOpacity,d=r.logoOnLoad,f=r.removeQrCodeBehindLogo,p=r.qrStyle,g=r.eyeRadius,m=r.eyeColor,v=r.logoPaddingStyle,x=+this.props.size,w=+this.props.quietZone,_=this.props.logoWidth?+this.props.logoWidth:0,C=this.props.logoHeight?+this.props.logoHeight:0,y=this.props.logoPadding?+this.props.logoPadding:0,$=g9(0,o);$.addData(this.utf16to8(i)),$.make();var E=(n=this.canvasRef)===null||n===void 0?void 0:n.current,T=E.getContext("2d"),k=x+2*w,O=$.getModuleCount(),S=x/O,M=window.devicePixelRatio||1;E.height=E.width=k*M,T.scale(M,M),T.fillStyle=s,T.fillRect(0,0,k,k);var A=w,j=[{row:0,col:0},{row:0,col:O-7},{row:O-7,col:0}];if(T.strokeStyle=c,p==="dots"){T.fillStyle=c;for(var L=S/2,N=0;N<O;N++)for(var F=0;F<O;F++)$.isDark(N,F)&&!this.isInPositioninZone(N,F,j)&&(T.beginPath(),T.arc(Math.round(F*S)+L+A,Math.round(N*S)+L+A,L/100*75,0,2*Math.PI,!1),T.closePath(),T.fill())}else if(p==="fluid"){for(var L=Math.ceil(S/2),N=0;N<O;N++)for(var F=0;F<O;F++)if($.isDark(N,F)&&!this.isInPositioninZone(N,F,j)){var U=[!1,!1,!1,!1];N>0&&!$.isDark(N-1,F)&&F>0&&!$.isDark(N,F-1)&&(U[0]=!0),N>0&&!$.isDark(N-1,F)&&F<O-1&&!$.isDark(N,F+1)&&(U[1]=!0),N<O-1&&!$.isDark(N+1,F)&&F<O-1&&!$.isDark(N,F+1)&&(U[2]=!0),N<O-1&&!$.isDark(N+1,F)&&F>0&&!$.isDark(N,F-1)&&(U[3]=!0);var z=Math.ceil((F+1)*S)-Math.floor(F*S),I=Math.ceil((N+1)*S)-Math.floor(N*S);T.fillStyle=c,T.beginPath(),T.arc(Math.round(F*S)+L+A,Math.round(N*S)+L+A,L,0,2*Math.PI,!1),T.closePath(),T.fill(),U[0]||T.fillRect(Math.round(F*S)+A,Math.round(N*S)+A,z/2,I/2),U[1]||T.fillRect(Math.round(F*S)+A+Math.floor(z/2),Math.round(N*S)+A,z/2,I/2),U[2]||T.fillRect(Math.round(F*S)+A+Math.floor(z/2),Math.round(N*S)+A+Math.floor(I/2),z/2,I/2),U[3]||T.fillRect(Math.round(F*S)+A,Math.round(N*S)+A+Math.floor(I/2),z/2,I/2)}}else for(var N=0;N<O;N++)for(var F=0;F<O;F++)if($.isDark(N,F)&&!this.isInPositioninZone(N,F,j)){T.fillStyle=c;var z=Math.ceil((F+1)*S)-Math.floor(F*S),I=Math.ceil((N+1)*S)-Math.floor(N*S);T.fillRect(Math.round(F*S)+A,Math.round(N*S)+A,z,I)}for(var W=0;W<3;W++){var Y=j[W],N=Y.row,F=Y.col,J=g,X=void 0;Array.isArray(J)&&(J=J[W]),typeof J=="number"&&(J=[J,J,J,J]),m?Array.isArray(m)?X=m[W]:X=m:X=c,this.drawPositioningPattern(T,S,A,N,F,X,J)}if(l){var Z=new Image;a&&(Z.crossOrigin="Anonymous"),Z.onload=function(Q){T.save();var te=_||x*.2,P=C||te,D=(x-te)/2,B=(x-P)/2;if(f||y){T.beginPath(),T.strokeStyle=s,T.fillStyle=s;var H=te+2*y,R=P+2*y,G=D+A-y,ee=B+A-y;if(v==="circle"){var ne=G+H/2,de=ee+R/2;T.ellipse(ne,de,H/2,R/2,0,0,2*Math.PI),T.stroke(),T.fill()}else T.fillRect(G,ee,H,R)}T.globalAlpha=u,T.drawImage(Z,D+A,B+A,te,P),T.restore(),d&&d(Q)},Z.src=l}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return Bp.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:yg({height:r+"px",width:r+"px"},this.props.style),ref:this.canvasRef})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(Bp.Component);exports.QRCode_1=x0.QRCode=v9;const EE=({value:e,MiniDetailComponent:t,children:n,miniDetailPlacement:r})=>!e||!t?n:b.jsx(t,{id:e.toString(),placement:r,children:n}),TE=({InputContainer:e=Wf,value:t,options:n,onChange:r,label:i,withoutLabel:o,isNumber:a,size:s,hidden:c,disabled:l,noSortOptions:u,className:d,suffixIdToName:f,noEmptyOption:p,appendCurrentSelectionWithName:g,dropdownWidth:m,hint:v,addNewOptionPath:x,refreshOptions:w,MiniDetailComponent:_,miniDetailPlacement:C,selectedItemNavigateTo:y,noRemoveButton:$})=>{const{texts:{customSelect:E}}=h.useContext(sn),[T,k]=h.useState(!1),[O,S]=h.useState(""),M=h.useCallback(z=>{S(z)},[]),A=h.useMemo(()=>n.find(z=>z.id===t)??null,[n,t]),j=h.useCallback(z=>{var I;return z===null?"":!z.name||z.name.length===0?((I=z.id)==null?void 0:I.toString())??"":f?`${z.name} (${z.id})`:z.name},[f]),L=h.useMemo(()=>{const z=n?[...n]:[];return g!==void 0&&t!==void 0&&t!==null&&(z.some(I=>I.id===t)||z.push({id:t,name:g})),z.map(I=>({id:I.id,name:j(I)})).filter(I=>n0(I.name,O)).sort((I,W)=>u?0:(I.name??"").localeCompare(W.name??""))},[n,u,O,j,g,t]),N=h.useCallback(z=>{var I;r&&r((z==null?void 0:z.id)===void 0||(z==null?void 0:z.id)===null?null:a?Number(z.id):(I=z.id)==null?void 0:I.toString())},[r,a]),F=h.useCallback(z=>{k(!1),N(z)},[N]),U=h.useRef(null);return b.jsx(b.Fragment,{children:b.jsxs(e,{withoutLabel:o,label:i??"",hidden:c,inputContainerClassName:ue({"luminus-dropdown-select-open":T}),className:d,hint:v,disabled:l,children:[b.jsx(CE,{currentSelection:A,selectedItemNavigateTo:y,children:b.jsx(EE,{value:t,MiniDetailComponent:_,miniDetailPlacement:C,children:b.jsxs(Kr.Select,{ref:U,size:s,value:t??"",onMouseDown:z=>{z.currentTarget.focus(),z.preventDefault()},onClick:()=>{!l&&k(!0)},onChange:()=>{},className:ue("w-100",{"luminus-dropdown-picker-disabled":l}),hidden:c,children:[p&&!(t==null||t==="")?void 0:b.jsx("option",{value:""}),t!=null&&b.jsx("option",{value:t,children:j(A)})]})})}),U.current&&b.jsx(fE,{show:T,onCancel:()=>k(!1),items:L,currentSelection:A??null,onSelectionChange:F,onSearchQueryChange:M,texts:E,disabled:l,inputRef:U,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:m,addNewOptionPath:x,refreshOptions:w,noRemoveButton:$})]})})};function b9(e){return ft({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function y9(e){return ft({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function x9(e){return ft({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function w9(e){return ft({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const _9=h.forwardRef(({onClick:e,text:t},n)=>b.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:b.jsxs("div",{className:"d-flex flex-column align-items-center",children:[b.jsx("div",{className:"mt-",children:"…"}),b.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var w0=Al(),rt=e=>Rl(e,w0),_0=Al();rt.write=e=>Rl(e,_0);var Uf=Al();rt.onStart=e=>Rl(e,Uf);var C0=Al();rt.onFrame=e=>Rl(e,C0);var $0=Al();rt.onFinish=e=>Rl(e,$0);var Ma=[];rt.setTimeout=(e,t)=>{const n=rt.now()+t,r=()=>{const o=Ma.findIndex(a=>a.cancel==r);~o&&Ma.splice(o,1),Hi-=~o?1:0},i={time:n,handler:e,cancel:r};return Ma.splice(kE(n),0,i),Hi+=1,OE(),i};var kE=e=>~(~Ma.findIndex(t=>t.time>e)||~Ma.length);rt.cancel=e=>{Uf.delete(e),C0.delete(e),$0.delete(e),w0.delete(e),_0.delete(e)};rt.sync=e=>{xg=!0,rt.batchedUpdates(e),xg=!1};rt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,rt.onStart(n)}return r.handler=e,r.cancel=()=>{Uf.delete(n),t=null},r};var S0=typeof window<"u"?window.requestAnimationFrame:()=>{};rt.use=e=>S0=e;rt.now=typeof performance<"u"?()=>performance.now():Date.now;rt.batchedUpdates=e=>e();rt.catch=console.error;rt.frameLoop="always";rt.advance=()=>{rt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):RE()};var Vi=-1,Hi=0,xg=!1;function Rl(e,t){xg?(t.delete(e),e(0)):(t.add(e),OE())}function OE(){Vi<0&&(Vi=0,rt.frameLoop!=="demand"&&S0(ME))}function C9(){Vi=-1}function ME(){~Vi&&(S0(ME),rt.batchedUpdates(RE))}function RE(){const e=Vi;Vi=rt.now();const t=kE(Vi);if(t&&(AE(Ma.splice(0,t),n=>n.handler()),Hi-=t),!Hi){C9();return}Uf.flush(),w0.flush(e?Math.min(64,Vi-e):16.667),C0.flush(),_0.flush(),$0.flush()}function Al(){let e=new Set,t=e;return{add(n){Hi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Hi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Hi-=t.size,AE(t,r=>r(n)&&e.add(r)),Hi+=e.size,t=e)}}}function AE(e,t){e.forEach(n=>{try{t(n)}catch(r){rt.catch(r)}})}var $9=Object.defineProperty,S9=(e,t)=>{for(var n in t)$9(e,n,{get:t[n],enumerable:!0})},Or={};S9(Or,{assign:()=>T9,colors:()=>Gi,createStringInterpolator:()=>T0,skipAnimation:()=>NE,to:()=>jE,willAdvance:()=>k0});function wg(){}var E9=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),be={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function oi(e,t){if(be.arr(e)){if(!be.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Je=(e,t)=>e.forEach(t);function Ur(e,t,n){if(be.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Dn=e=>be.und(e)?[]:be.arr(e)?e:[e];function pc(e,t){if(e.size){const n=Array.from(e);e.clear(),Je(n,t)}}var cc=(e,...t)=>pc(e,n=>n(...t)),E0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),T0,jE,Gi=null,NE=!1,k0=wg,T9=e=>{e.to&&(jE=e.to),e.now&&(rt.now=e.now),e.colors!==void 0&&(Gi=e.colors),e.skipAnimation!=null&&(NE=e.skipAnimation),e.createStringInterpolator&&(T0=e.createStringInterpolator),e.requestAnimationFrame&&rt.use(e.requestAnimationFrame),e.batchedUpdates&&(rt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(k0=e.willAdvance),e.frameLoop&&(rt.frameLoop=e.frameLoop)},mc=new Set,cr=[],zp=[],Ed=0,Vf={get idle(){return!mc.size&&!cr.length},start(e){Ed>e.priority?(mc.add(e),rt.onStart(k9)):(DE(e),rt(_g))},advance:_g,sort(e){if(Ed)rt.onFrame(()=>Vf.sort(e));else{const t=cr.indexOf(e);~t&&(cr.splice(t,1),IE(e))}},clear(){cr=[],mc.clear()}};function k9(){mc.forEach(DE),mc.clear(),rt(_g)}function DE(e){cr.includes(e)||IE(e)}function IE(e){cr.splice(O9(cr,t=>t.priority>e.priority),0,e)}function _g(e){const t=zp;for(let n=0;n<cr.length;n++){const r=cr[n];Ed=r.priority,r.idle||(k0(r),r.advance(e),r.idle||t.push(r))}return Ed=0,zp=cr,zp.length=0,cr=t,cr.length>0}function O9(e,t){const n=e.findIndex(t);return n<0?e.length:n}var M9=(e,t,n)=>Math.min(Math.max(n,e),t),R9={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Er="[-+]?\\d*\\.?\\d+",Td=Er+"%";function Hf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var A9=new RegExp("rgb"+Hf(Er,Er,Er)),j9=new RegExp("rgba"+Hf(Er,Er,Er,Er)),N9=new RegExp("hsl"+Hf(Er,Td,Td)),D9=new RegExp("hsla"+Hf(Er,Td,Td,Er)),I9=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,P9=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,L9=/^#([0-9a-fA-F]{6})$/,F9=/^#([0-9a-fA-F]{8})$/;function B9(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=L9.exec(e))?parseInt(t[1]+"ff",16)>>>0:Gi&&Gi[e]!==void 0?Gi[e]:(t=A9.exec(e))?(ha(t[1])<<24|ha(t[2])<<16|ha(t[3])<<8|255)>>>0:(t=j9.exec(e))?(ha(t[1])<<24|ha(t[2])<<16|ha(t[3])<<8|hx(t[4]))>>>0:(t=I9.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=F9.exec(e))?parseInt(t[1],16)>>>0:(t=P9.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=N9.exec(e))?(dx(fx(t[1]),gu(t[2]),gu(t[3]))|255)>>>0:(t=D9.exec(e))?(dx(fx(t[1]),gu(t[2]),gu(t[3]))|hx(t[4]))>>>0:null}function Wp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dx(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Wp(i,r,e+1/3),a=Wp(i,r,e),s=Wp(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function ha(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function fx(e){return(parseFloat(e)%360+360)%360/360}function hx(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function gu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function px(e){let t=B9(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var qc=(e,t,n)=>{if(be.fun(e))return e;if(be.arr(e))return qc({range:e,output:t,extrapolate:n});if(be.str(e.output[0]))return T0(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(l=>l);return l=>{const u=W9(l,o);return z9(l,o[u],o[u+1],i[u],i[u+1],c,a,s,r.map)}};function z9(e,t,n,r,i,o,a,s,c){let l=c?c(e):e;if(l<t){if(a==="identity")return l;a==="clamp"&&(l=t)}if(l>n){if(s==="identity")return l;s==="clamp"&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l=l-t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l=l+r:l=l*(i-r)+r,l)}function W9(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var U9=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return M9(0,1,i/e)},kd=1.70158,vu=kd*1.525,mx=kd+1,gx=2*Math.PI/3,vx=2*Math.PI/4.5,bu=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,V9={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>mx*e*e*e-kd*e*e,easeOutBack:e=>1+mx*Math.pow(e-1,3)+kd*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vu+1)*2*e-vu)/2:(Math.pow(2*e-2,2)*((vu+1)*(e*2-2)+vu)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*gx),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*gx)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*vx))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*vx)/2+1,easeInBounce:e=>1-bu(1-e),easeOutBounce:bu,easeInOutBounce:e=>e<.5?(1-bu(1-2*e))/2:(1+bu(2*e-1))/2,steps:U9},Yc=Symbol.for("FluidValue.get"),Ga=Symbol.for("FluidValue.observers"),sr=e=>!!(e&&e[Yc]),Bn=e=>e&&e[Yc]?e[Yc]():e,bx=e=>e[Ga]||null;function H9(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Gc(e,t){const n=e[Ga];n&&n.forEach(r=>{H9(r,t)})}var PE=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");q9(this,e)}},q9=(e,t)=>LE(e,Yc,t);function us(e,t){if(e[Yc]){let n=e[Ga];n||LE(e,Ga,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Kc(e,t){const n=e[Ga];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ga]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var LE=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ku=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Y9=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yx=new RegExp(`(${Ku.source})(%|[a-z]+)`,"i"),G9=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,qf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,FE=e=>{const[t,n]=K9(e);if(!t||E0())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&qf.test(n))return FE(n);if(n)return n}return e},K9=e=>{const t=qf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Up,Z9=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,BE=e=>{Up||(Up=Gi?new RegExp(`(${Object.keys(Gi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Bn(o).replace(qf,FE).replace(Y9,px).replace(Up,px)),n=t.map(o=>o.match(Ku).map(Number)),i=n[0].map((o,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(o=>qc({...e,output:o}));return o=>{var c;const a=!yx.test(t[0])&&((c=t.find(l=>yx.test(l)))==null?void 0:c.replace(Ku,""));let s=0;return t[0].replace(Ku,()=>`${i[s++](o)}${a||""}`).replace(G9,Z9)}},O0="react-spring: ",zE=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${O0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},X9=zE(console.warn);function Q9(){X9(`${O0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var J9=zE(console.warn);function eL(){J9(`${O0}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Yf(e){return be.str(e)&&(e[0]=="#"||/\d/.test(e)||!E0()&&qf.test(e)||e in(Gi||{}))}var So=E0()?h.useEffect:h.useLayoutEffect,tL=()=>{const e=h.useRef(!1);return So(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function M0(){const e=h.useState()[1],t=tL();return()=>{t.current&&e(Math.random())}}function nL(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&rL(t,o.inputs)||(o={inputs:t,result:e()}):o=n,h.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function rL(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var R0=e=>h.useEffect(e,iL),iL=[];function Cg(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}var Zc=Symbol.for("Animated:node"),oL=e=>!!e&&e[Zc]===e,Nr=e=>e&&e[Zc],A0=(e,t)=>E9(e,Zc,t),Gf=e=>e&&e[Zc]&&e[Zc].getPayload(),WE=class{constructor(){A0(this,this)}getPayload(){return this.payload||[]}},jl=class extends WE{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,be.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new jl(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return be.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,be.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Xc=class extends jl{constructor(e){super(0),this._string=null,this._toString=qc({output:[e,e]})}static create(e){return new Xc(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(be.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=qc({output:[this.getValue(),e]})),this._value=0,super.reset()}},Od={dependencies:null},Kf=class extends WE{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ur(this.source,(n,r)=>{oL(n)?t[r]=n.getValue(e):sr(n)?t[r]=Bn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Je(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Ur(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Od.dependencies&&sr(e)&&Od.dependencies.add(e);const t=Gf(e);t&&Je(t,n=>this.add(n))}},UE=class extends Kf{constructor(e){super(e)}static create(e){return new UE(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(aL)),!0)}};function aL(e){return(Yf(e)?Xc:jl).create(e)}function $g(e){const t=Nr(e);return t?t.constructor:be.arr(e)?UE:Yf(e)?Xc:jl}var xx=(e,t)=>{const n=!be.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,i)=>{const o=h.useRef(null),a=n&&h.useCallback(g=>{o.current=lL(i,g)},[i]),[s,c]=cL(r,t),l=M0(),u=()=>{const g=o.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&l()},d=new sL(u,c),f=h.useRef();So(()=>(f.current=d,Je(c,g=>us(g,d)),()=>{f.current&&(Je(f.current.deps,g=>Kc(g,f.current)),rt.cancel(f.current.update))})),h.useEffect(u,[]),R0(()=>()=>{const g=f.current;Je(g.deps,m=>Kc(m,g))});const p=t.getComponentProps(s.getValue());return ie.createElement(e,{...p,ref:a})})},sL=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&rt.write(this.update)}};function cL(e,t){const n=new Set;return Od.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Kf(e),Od.dependencies=null,[e,n]}function lL(e,t){return e&&(be.fun(e)?e(t):e.current=t),t}var wx=Symbol.for("AnimatedComponent"),uL=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Kf(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=_x(a)||"Anonymous";return be.str(a)?a=o[a]||(o[a]=xx(a,i)):a=a[wx]||(a[wx]=xx(a,i)),a.displayName=`Animated(${s})`,a};return Ur(e,(a,s)=>{be.arr(e)&&(s=_x(a)),o[s]=o(a)}),{animated:o}},_x=e=>be.str(e)?e:e&&be.str(e.displayName)?e.displayName:be.fun(e)&&e.name||null;function zn(e,...t){return be.fun(e)?e(...t):e}var gc=(e,t)=>e===!0||!!(t&&e&&(be.fun(e)?e(t):Dn(e).includes(t))),VE=(e,t)=>be.obj(e)?t&&e[t]:e,HE=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,dL=e=>e,Zf=(e,t=dL)=>{let n=fL;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);be.und(o)||(r[i]=o)}return r},fL=["config","onProps","onStart","onChange","onPause","onResume","onRest"],hL={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function pL(e){const t={};let n=0;if(Ur(e,(r,i)=>{hL[i]||(t[i]=r,n++)}),n)return t}function j0(e){const t=pL(e);if(t){const n={to:t};return Ur(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Qc(e){return e=Bn(e),be.arr(e)?e.map(Qc):Yf(e)?Or.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function qE(e){for(const t in e)return!0;return!1}function Sg(e){return be.fun(e)||be.arr(e)&&be.obj(e[0])}function Eg(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function YE(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var N0={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Tg={...N0.default,mass:1,damping:1,easing:V9.linear,clamp:!1},mL=class{constructor(){this.velocity=0,Object.assign(this,Tg)}};function gL(e,t,n){n&&(n={...n},Cx(n,t),t={...n,...t}),Cx(e,t),Object.assign(e,t);for(const a in Tg)e[a]==null&&(e[a]=Tg[a]);let{frequency:r,damping:i}=e;const{mass:o}=e;return be.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r),e}function Cx(e,t){if(!be.und(t.decay))e.duration=void 0;else{const n=!be.und(t.tension)||!be.und(t.friction);(n||!be.und(t.frequency)||!be.und(t.damping)||!be.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var $x=[],vL=class{constructor(){this.changed=!1,this.values=$x,this.toValues=null,this.fromValues=$x,this.config=new mL,this.immediate=!1}};function GE(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let c,l,u=gc(n.cancel??(r==null?void 0:r.cancel),t);if(u)p();else{be.und(n.pause)||(i.paused=gc(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=i.paused||gc(g,t)),c=zn(n.delay||0,t),g?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),c=l.time-rt.now()}function f(){c>0&&!Or.skipAnimation?(i.delayed=!0,l=rt.setTimeout(p,c),i.pauseQueue.add(d),i.timeouts.add(l)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},a)}catch(g){s(g)}}})}var D0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ra(e.get()):t.every(n=>n.noop)?KE(e.get()):Cr(e.get(),t.every(n=>n.finished)),KE=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Cr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ra=e=>({value:e,cancelled:!0,finished:!1});function ZE(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:c}=n;return!o&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const l=Zf(t,(v,x)=>x==="onRest"?void 0:v);let u,d;const f=new Promise((v,x)=>(u=v,d=x)),p=v=>{const x=i<=(n.cancelId||0)&&Ra(r)||i!==n.asyncId&&Cr(r,!1);if(x)throw v.result=x,d(v),v},g=(v,x)=>{const w=new Sx,_=new Ex;return(async()=>{if(Or.skipAnimation)throw Jc(n),_.result=Cr(r,!1),d(_),_;p(w);const C=be.obj(v)?{...v}:{...x,to:v};C.parentId=i,Ur(l,($,E)=>{be.und(C[E])&&(C[E]=$)});const y=await r.start(C);return p(w),n.paused&&await new Promise($=>{n.resumeQueue.add($)}),y})()};let m;if(Or.skipAnimation)return Jc(n),Cr(r,!1);try{let v;be.arr(e)?v=(async x=>{for(const w of x)await g(w)})(e):v=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([v.then(u),f]),m=Cr(r.get(),!0,!1)}catch(v){if(v instanceof Sx)m=v.result;else if(v instanceof Ex)m=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?c:void 0)}return be.fun(a)&&rt.batchedUpdates(()=>{a(m,r,r.item)}),m})()}function Jc(e,t){pc(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Sx=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Ex=class extends Error{constructor(){super("SkipAnimationSignal")}},kg=e=>e instanceof I0,bL=1,I0=class extends PE{constructor(){super(...arguments),this.id=bL++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Nr(this);return e&&e.getValue()}to(...e){return Or.to(this,e)}interpolate(...e){return Q9(),Or.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Gc(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Vf.sort(this),Gc(this,{type:"priority",parent:this,priority:e})}},Vo=Symbol.for("SpringPhase"),XE=1,Og=2,Mg=4,Vp=e=>(e[Vo]&XE)>0,Ai=e=>(e[Vo]&Og)>0,Ws=e=>(e[Vo]&Mg)>0,Tx=(e,t)=>t?e[Vo]|=Og|XE:e[Vo]&=~Og,kx=(e,t)=>t?e[Vo]|=Mg:e[Vo]&=~Mg,yL=class extends I0{constructor(e,t){if(super(),this.animation=new vL,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!be.und(e)||!be.und(t)){const n=be.obj(e)?{...e}:{...t,from:e};be.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ai(this)||this._state.asyncTo)||Ws(this)}get goal(){return Bn(this.animation.to)}get velocity(){const e=Nr(this);return e instanceof jl?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Vp(this)}get isAnimating(){return Ai(this)}get isPaused(){return Ws(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=Gf(r.to);!a&&sr(r.to)&&(i=Dn(Bn(r.to))),r.values.forEach((l,u)=>{if(l.done)return;const d=l.constructor==Xc?1:a?a[u].lastPosition:i[u];let f=r.immediate,p=d;if(!f){if(p=l.lastPosition,o.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const m=r.fromValues[u],v=l.v0!=null?l.v0:l.v0=be.arr(o.velocity)?o.velocity[u]:o.velocity;let x;const w=o.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(be.und(o.duration))if(o.decay){const _=o.decay===!0?.998:o.decay,C=Math.exp(-(1-_)*g);p=m+v/(1-_)*(1-C),f=Math.abs(l.lastPosition-p)<=w,x=v*C}else{x=l.lastVelocity==null?v:l.lastVelocity;const _=o.restVelocity||w/10,C=o.clamp?0:o.bounce,y=!be.und(C),$=m==d?l.v0>0:m<d;let E,T=!1;const k=1,O=Math.ceil(e/k);for(let S=0;S<O&&(E=Math.abs(x)>_,!(!E&&(f=Math.abs(d-p)<=w,f)));++S){y&&(T=p==d||p>d==$,T&&(x=-x*C,p=d));const M=-o.tension*1e-6*(p-d),A=-o.friction*.001*x,j=(M+A)/o.mass;x=x+j*k,p=p+x*k}}else{let _=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,l.durationProgress>0&&(l.elapsedTime=o.duration*l.durationProgress,g=l.elapsedTime+=e)),_=(o.progress||0)+g/this._memoizedDuration,_=_>1?1:_<0?0:_,l.durationProgress=_),p=m+o.easing(_)*(d-m),x=(p-l.lastPosition)/e,f=_==1}l.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}a&&!a[u].done&&(f=!1),f?l.done=!0:t=!1,l.setValue(p,o.round)&&(n=!0)});const s=Nr(this),c=s.getValue();if(t){const l=Bn(r.to);(c!==l||n)&&!o.decay?(s.setValue(l),this._onChange(l)):n&&o.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return rt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ai(this)){const{to:e,config:t}=this.animation;rt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return be.und(e)?(n=this.queue||[],this.queue=[]):n=[be.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>D0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Jc(this._state,e&&this._lastCallId),rt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=be.obj(n)?n[t]:n,(n==null||Sg(n))&&(n=void 0),r=be.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Vp(this)||(e.reverse&&([n,r]=[r,n]),r=Bn(r),be.und(r)?Nr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Zf(e,(a,s)=>/^on/.test(s)?VE(a,n):a)),Mx(this,e,"onProps"),Vs(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return GE(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Ws(this)||(kx(this,!0),cc(o.pauseQueue),Vs(this,"onPause",Cr(this,Us(this,this.animation.to)),this))},resume:()=>{Ws(this)&&(kx(this,!1),Ai(this)&&this._resume(),cc(o.resumeQueue),Vs(this,"onResume",Cr(this,Us(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=QE(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ra(this));const r=!be.und(e.to),i=!be.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ra(this));const{key:o,defaultProps:a,animation:s}=this,{to:c,from:l}=s;let{to:u=c,from:d=l}=e;i&&!r&&(!t.default||be.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!oi(d,l);f&&(s.from=d),d=Bn(d);const p=!oi(u,c);p&&this._focus(u);const g=Sg(t.to),{config:m}=s,{decay:v,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!g&&gL(m,zn(t.config,o),t.config!==a.config?zn(a.config,o):void 0);let w=Nr(this);if(!w||be.und(u))return n(Cr(this,!0));const _=be.und(t.reset)?i&&!t.default:!be.und(d)&&gc(t.reset,o),C=_?d:this.get(),y=Qc(u),$=be.num(y)||be.arr(y)||Yf(y),E=!g&&(!$||gc(a.immediate||t.immediate,o));if(p){const S=$g(u);if(S!==w.constructor)if(E)w=this._set(y);else throw Error(`Cannot animate between ${w.constructor.name} and ${S.name}, as the "to" prop suggests`)}const T=w.constructor;let k=sr(u),O=!1;if(!k){const S=_||!Vp(this)&&f;(p||S)&&(O=oi(Qc(C),y),k=!O),(!oi(s.immediate,E)&&!E||!oi(m.decay,v)||!oi(m.velocity,x))&&(k=!0)}if(O&&Ai(this)&&(s.changed&&!_?k=!0:k||this._stop(c)),!g&&((k||sr(c))&&(s.values=w.getPayload(),s.toValues=sr(u)?null:T==Xc?[1]:Dn(y)),s.immediate!=E&&(s.immediate=E,!E&&!_&&this._set(c)),k)){const{onRest:S}=s;Je(wL,A=>Mx(this,t,A));const M=Cr(this,Us(this,c));cc(this._pendingCalls,M),this._pendingCalls.add(n),s.changed&&rt.batchedUpdates(()=>{var A;s.changed=!_,S==null||S(M,this),_?zn(a.onRest,M):(A=s.onStart)==null||A.call(s,M,this)})}_&&this._set(C),g?n(ZE(t.to,t,this._state,this)):k?this._start():Ai(this)&&!p?this._pendingCalls.add(n):n(KE(C))}_focus(e){const t=this.animation;e!==t.to&&(bx(this)&&this._detach(),t.to=e,bx(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;sr(t)&&(us(t,this),kg(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;sr(e)&&Kc(e,this)}_set(e,t=!0){const n=Bn(e);if(!be.und(n)){const r=Nr(this);if(!r||!oi(n,r.getValue())){const i=$g(n);!r||r.constructor!=i?A0(this,i.create(n)):r.setValue(n),r&&rt.batchedUpdates(()=>{this._onChange(n,t)})}}return Nr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Vs(this,"onStart",Cr(this,Us(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),zn(this.animation.onChange,e,this)),zn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Nr(this).reset(Bn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ai(this)||(Tx(this,!0),Ws(this)||this._resume())}_resume(){Or.skipAnimation?this.finish():Vf.start(this)}_stop(e,t){if(Ai(this)){Tx(this,!1);const n=this.animation;Je(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Gc(this,{type:"idle",parent:this});const r=t?Ra(this.get()):Cr(this.get(),Us(this,e??n.to));cc(this._pendingCalls,r),n.changed&&(n.changed=!1,Vs(this,"onRest",r,this))}}};function Us(e,t){const n=Qc(t),r=Qc(e.get());return oi(r,n)}function QE(e,t=e.loop,n=e.to){const r=zn(t);if(r){const i=r!==!0&&j0(r),o=(i||e).reverse,a=!i||i.reset;return el({...e,loop:t,default:!1,pause:void 0,to:!o||Sg(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function el(e){const{to:t,from:n}=e=j0(e),r=new Set;return be.obj(t)&&Ox(t,r),be.obj(n)&&Ox(n,r),e.keys=r.size?Array.from(r):null,e}function xL(e){const t=el(e);return be.und(t.default)&&(t.default=Zf(t)),t}function Ox(e,t){Ur(e,(n,r)=>n!=null&&t.add(r))}var wL=["onStart","onRest","onChange","onPause","onResume"];function Mx(e,t,n){e.animation[n]=t[n]!==HE(t,n)?VE(t[n],e.key):void 0}function Vs(e,t,...n){var r,i,o,a;(i=(r=e.animation)[t])==null||i.call(r,...n),(a=(o=e.defaultProps)[t])==null||a.call(o,...n)}var _L=["onStart","onChange","onRest"],CL=1,JE=class{constructor(e,t){this.id=CL++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];be.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(el(e)),this}start(e){let{queue:t}=this;return e?t=Dn(e).map(el):this.queue=[],this._flush?this._flush(this,t):(iT(this,t),Rg(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Je(Dn(t),r=>n[r].stop(!!e))}else Jc(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(be.und(e))this.start({pause:!0});else{const t=this.springs;Je(Dn(e),n=>t[n].pause())}return this}resume(e){if(be.und(e))this.start({pause:!1});else{const t=this.springs;Je(Dn(e),n=>t[n].resume())}return this}each(e){Ur(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,pc(e,([s,c])=>{c.value=this.get(),s(c,this,this._item)}));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&pc(t,([s,c])=>{c.value=a,s(c,this,this._item)}),o&&(this._started=!1,pc(n,([s,c])=>{c.value=a,s(c,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;rt.onFrame(this._onFrame)}};function Rg(e,t){return Promise.all(t.map(n=>eT(e,n))).then(n=>D0(e,n))}async function eT(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:c}=t,l=be.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const u=be.arr(i)||be.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):Je(_L,m=>{const v=t[m];if(be.fun(v)){const x=e._events[m];t[m]=({finished:w,cancelled:_})=>{const C=x.get(v);C?(w||(C.finished=!1),_&&(C.cancelled=!0)):x.set(v,{value:null,finished:w||!1,cancelled:_||!1})},l&&(l[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,cc(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||HE(t,"cancel")===!0;(u||p&&d.asyncId)&&f.push(GE(++e._lastAsyncId,{props:t,state:d,actions:{pause:wg,resume:wg,start(m,v){p?(Jc(d,e._lastAsyncId),v(Ra(e))):(m.onRest=s,v(ZE(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const g=D0(e,await Promise.all(f));if(a&&g.finished&&!(n&&g.noop)){const m=QE(t,a,i);if(m)return iT(e,[m]),eT(e,m,!0)}return c&&rt.batchedUpdates(()=>c(g,e,e.item)),g}function Ag(e,t){const n={...e.springs};return t&&Je(Dn(t),r=>{be.und(r.keys)&&(r=el(r)),be.obj(r.to)||(r={...r,to:void 0}),rT(n,r,i=>nT(i))}),tT(e,n),n}function tT(e,t){Ur(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,us(n,e))})}function nT(e,t){const n=new yL;return n.key=e,t&&us(n,t),n}function rT(e,t,n){t.keys&&Je(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function iT(e,t){Je(t,n=>{rT(e.springs,n,r=>nT(r,e))})}var Nl=({children:e,...t})=>{const n=h.useContext(Md),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=nL(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=Md;return ie.createElement(o,{value:t},e)},Md=$L(Nl,{});Nl.Provider=Md.Provider;Nl.Consumer=Md.Consumer;function $L(e,t){return Object.assign(e,ie.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var oT=()=>{const e=[],t=function(r){eL();const i=[];return Je(e,(o,a)=>{if(be.und(r))i.push(o.start());else{const s=n(r,o,a);s&&i.push(o.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return Je(e,r=>r.pause(...arguments)),this},t.resume=function(){return Je(e,r=>r.resume(...arguments)),this},t.set=function(r){Je(e,(i,o)=>{const a=be.fun(r)?r(o,i):r;a&&i.set(a)})},t.start=function(r){const i=[];return Je(e,(o,a)=>{if(be.und(r))i.push(o.start());else{const s=this._getProps(r,o,a);s&&i.push(o.start(s))}}),i},t.stop=function(){return Je(e,r=>r.stop(...arguments)),this},t.update=function(r){return Je(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return be.fun(r)?r(o,i):r};return t._getProps=n,t};function SL(e,t,n){const r=be.fun(t)&&t;r&&!n&&(n=[]);const i=h.useMemo(()=>r||arguments.length==3?oT():void 0,[]),o=h.useRef(0),a=M0(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const _=Ag(x,w);return o.current>0&&!s.queue.length&&!Object.keys(_).some(y=>!x.springs[y])?Rg(x,w):new Promise(y=>{tT(x,_),s.queue.push(()=>{y(Rg(x,w))}),a()})}}),[]),c=h.useRef([...s.ctrls]),l=[],u=Cg(e)||0;h.useMemo(()=>{Je(c.current.slice(e,u),x=>{Eg(x,i),x.stop(!0)}),c.current.length=e,d(u,e)},[e]),h.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,w){for(let _=x;_<w;_++){const C=c.current[_]||(c.current[_]=new JE(null,s.flush)),y=r?r(_,C):t[_];y&&(l[_]=xL(y))}}const f=c.current.map((x,w)=>Ag(x,l[w])),p=h.useContext(Nl),g=Cg(p),m=p!==g&&qE(p);So(()=>{o.current++,s.ctrls=c.current;const{queue:x}=s;x.length&&(s.queue=[],Je(x,w=>w())),Je(c.current,(w,_)=>{i==null||i.add(w),m&&w.start({default:p});const C=l[_];C&&(YE(w,C.ref),w.ref?w.queue.push(C):w.start(C))})}),R0(()=>()=>{Je(s.ctrls,x=>x.stop(!0))});const v=f.map(x=>({...x}));return i?[v,i]:v}function Zr(e,t){const n=be.fun(e),[[r],i]=SL(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function Jo(e,t,n){const r=be.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?oT():void 0,[]),p=Dn(e),g=[],m=h.useRef(null),v=i?null:m.current;So(()=>{m.current=g}),R0(()=>(Je(g,j=>{f==null||f.add(j.ctrl),j.ctrl.ref=f}),()=>{Je(m.current,j=>{j.expired&&clearTimeout(j.expirationId),Eg(j.ctrl,f),j.ctrl.stop(!0)})}));const x=TL(p,r?r():t,v),w=i&&m.current||[];So(()=>Je(w,({ctrl:j,item:L,key:N})=>{Eg(j,f),zn(l,L,N)}));const _=[];if(v&&Je(v,(j,L)=>{j.expired?(clearTimeout(j.expirationId),w.push(j)):(L=_[L]=x.indexOf(j.key),~L&&(g[L]=j))}),Je(p,(j,L)=>{g[L]||(g[L]={key:x[L],item:j,phase:"mount",ctrl:new JE},g[L].ctrl.item=j)}),_.length){let j=-1;const{leave:L}=r?r():t;Je(_,(N,F)=>{const U=v[F];~N?(j=g.indexOf(U),g[j]={...U,item:p[N]}):L&&g.splice(++j,0,U)})}be.fun(o)&&g.sort((j,L)=>o(j.item,L.item));let C=-a;const y=M0(),$=Zf(t),E=new Map,T=h.useRef(new Map),k=h.useRef(!1);Je(g,(j,L)=>{const N=j.key,F=j.phase,U=r?r():t;let z,I;const W=zn(U.delay||0,N);if(F=="mount")z=U.enter,I="enter";else{const Z=x.indexOf(N)<0;if(F!="leave")if(Z)z=U.leave,I="leave";else if(z=U.update)I="update";else return;else if(!Z)z=U.enter,I="enter";else return}if(z=zn(z,j.item,L),z=be.obj(z)?j0(z):{to:z},!z.config){const Z=d||$.config;z.config=zn(Z,j.item,L,I)}C+=a;const Y={...$,delay:W+C,ref:u,immediate:U.immediate,reset:!1,...z};if(I=="enter"&&be.und(Y.from)){const Z=r?r():t,Q=be.und(Z.initial)||v?Z.from:Z.initial;Y.from=zn(Q,j.item,L)}const{onResolve:J}=Y;Y.onResolve=Z=>{zn(J,Z);const Q=m.current,te=Q.find(P=>P.key===N);if(te&&!(Z.cancelled&&te.phase!="update")&&te.ctrl.idle){const P=Q.every(D=>D.ctrl.idle);if(te.phase=="leave"){const D=zn(s,te.item);if(D!==!1){const B=D===!0?0:D;if(te.expired=!0,!P&&B>0){B<=2147483647&&(te.expirationId=setTimeout(y,B));return}}}P&&Q.some(D=>D.expired)&&(T.current.delete(te),c&&(k.current=!0),y())}};const X=Ag(j.ctrl,Y);I==="leave"&&c?T.current.set(j,{phase:I,springs:X,payload:Y}):E.set(j,{phase:I,springs:X,payload:Y})});const O=h.useContext(Nl),S=Cg(O),M=O!==S&&qE(O);So(()=>{M&&Je(g,j=>{j.ctrl.start({default:O})})},[O]),Je(E,(j,L)=>{if(T.current.size){const N=g.findIndex(F=>F.key===L.key);g.splice(N,1)}}),So(()=>{Je(T.current.size?T.current:E,({phase:j,payload:L},N)=>{const{ctrl:F}=N;N.phase=j,f==null||f.add(F),M&&j=="enter"&&F.start({default:O}),L&&(YE(F,L.ref),(F.ref||f)&&!k.current?F.update(L):(F.start(L),k.current&&(k.current=!1)))})},i?void 0:n);const A=j=>ie.createElement(ie.Fragment,null,g.map((L,N)=>{const{springs:F}=E.get(L)||L.ctrl,U=j({...F},L.item,L,N);return U&&U.type?ie.createElement(U.type,{...U.props,key:be.str(L.key)||be.num(L.key)?L.key:L.ctrl.id,ref:U.ref}):U}));return f?[A,f]:A}var EL=1;function TL(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const a=r&&r.find(s=>s.item===o&&s.phase!=="leave"&&!i.has(s));return a?(i.add(a),a.key):EL++})}return be.und(n)?e:be.fun(n)?e.map(n):Dn(n)}var aT=class extends I0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=qc(...t);const n=this._get(),r=$g(n);A0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();oi(t,n)||(Nr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Rx(this._active)&&Hp(this)}_get(){const e=be.arr(this.source)?this.source.map(Bn):Dn(Bn(this.source));return this.calc(...e)}_start(){this.idle&&!Rx(this._active)&&(this.idle=!1,Je(Gf(this),e=>{e.done=!1}),Or.skipAnimation?(rt.batchedUpdates(()=>this.advance()),Hp(this)):Vf.start(this))}_attach(){let e=1;Je(Dn(this.source),t=>{sr(t)&&us(t,this),kg(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Je(Dn(this.source),e=>{sr(e)&&Kc(e,this)}),this._active.clear(),Hp(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Dn(this.source).reduce((t,n)=>Math.max(t,(kg(n)?n.priority:0)+1),0))}};function kL(e){return e.idle!==!1}function Rx(e){return!e.size||Array.from(e).every(kL)}function Hp(e){e.idle||(e.idle=!0,Je(Gf(e),t=>{t.done=!0}),Gc(e,{type:"idle",parent:e}))}var to=(e,...t)=>new aT(e,t);Or.assign({createStringInterpolator:BE,to:(e,t)=>new aT(e,t)});var sT=/^--/;function OL(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!sT.test(e)&&!(vc.hasOwnProperty(e)&&vc[e])?t+"px":(""+t).trim()}var Ax={};function ML(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:Ax[f]||(Ax[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in i)if(i.hasOwnProperty(f)){const p=OL(f,i[f]);sT.test(f)?e.style.setProperty(f,p):e.style[f]=p}d.forEach((f,p)=>{e.setAttribute(f,u[p])}),r!==void 0&&(e.className=r),a!==void 0&&(e.scrollTop=a),s!==void 0&&(e.scrollLeft=s),c!==void 0&&e.setAttribute("viewBox",c)}var vc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RL=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),AL=["Webkit","Ms","Moz","O"];vc=Object.keys(vc).reduce((e,t)=>(AL.forEach(n=>e[RL(n,t)]=e[t]),e),vc);var jL=/^(matrix|translate|scale|rotate|skew)/,NL=/^(translate)/,DL=/^(rotate|skew)/,qp=(e,t)=>be.num(e)&&e!==0?e+t:e,Zu=(e,t)=>be.arr(e)?e.every(n=>Zu(n,t)):be.num(e)?e===t:parseFloat(e)===t,IL=class extends Kf{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(a=>[`translate3d(${a.map(s=>qp(s,"px")).join(",")})`,Zu(a,0)])),Ur(r,(a,s)=>{if(s==="transform")i.push([a||""]),o.push(c=>[c,c===""]);else if(jL.test(s)){if(delete r[s],be.und(a))return;const c=NL.test(s)?"px":DL.test(s)?"deg":"";i.push(Dn(a)),o.push(s==="rotate3d"?([l,u,d,f])=>[`rotate3d(${l},${u},${d},${qp(f,c)})`,Zu(f,0)]:l=>[`${s}(${l.map(u=>qp(u,c)).join(",")})`,Zu(l,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new PL(i,o)),super(r)}},PL=class extends PE{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Je(this.inputs,(n,r)=>{const i=Bn(n[0]),[o,a]=this.transforms[r](be.arr(i)?i:n.map(Bn));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Je(this.inputs,t=>Je(t,n=>sr(n)&&us(n,this)))}observerRemoved(e){e==0&&Je(this.inputs,t=>Je(t,n=>sr(n)&&Kc(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Gc(this,e)}},LL=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Or.assign({batchedUpdates:un.unstable_batchedUpdates,createStringInterpolator:BE,colors:R9});var FL=uL(LL,{applyAnimatedValues:ML,createAnimatedStyle:e=>new IL(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Lt=FL.animated;function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ho.apply(this,arguments)}var BL={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},jx=function(e,t){return"translate("+e+"px, "+t+"px)"},cT=h.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,o=Ft(),a=Fn(),s=a.animate,c=a.config,l=pk(),u=l[0],d=l[1],f=h.useRef(!1),p=void 0,g=!1,m=d.width>0&&d.height>0,v=Math.round(n[0]),x=Math.round(n[1]);m&&(r==="top"?(v-=d.width/2,x-=d.height+14):r==="right"?(v+=14,x-=d.height/2):r==="bottom"?(v-=d.width/2,x+=14):r==="left"?(v-=d.width+14,x-=d.height/2):r==="center"&&(v-=d.width/2,x-=d.height/2),p={transform:jx(v,x)},f.current||(g=!0),f.current=[v,x]);var w=Zr({to:p,config:c,immediate:!s||g}),_=Ho({},BL,o.tooltip.wrapper,{transform:(t=w.transform)!=null?t:jx(v,x),opacity:w.transform?1:0});return b.jsx(Lt.div,{ref:u,style:_,children:i})});cT.displayName="TooltipWrapper";var lT=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return b.jsx("span",{style:Ho({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),P0=h.memo(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,c=e.renderContent,l=Ft(),u=Qa(i);if(typeof c=="function")t=c();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=b.jsxs("div",{style:l.tooltip.basic,children:[a&&b.jsx(lT,{color:s,style:l.tooltip.chip}),d!==void 0?b.jsxs("span",{children:[n,": ",b.jsx("strong",{children:""+d})]}):n]})}return b.jsx("div",{style:l.tooltip.container,children:t})}),zL={width:"100%",borderCollapse:"collapse"},uT=h.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=Ft();return i.length?(t=typeof o=="function"?o():b.jsxs("div",{children:[n&&n,b.jsx("table",{style:Ho({},zL,a.tooltip.table),children:b.jsx("tbody",{children:i.map(function(s,c){return b.jsx("tr",{children:s.map(function(l,u){return b.jsx("td",{style:a.tooltip.tableCell,children:l},u)})},c)})})})]}),b.jsx("div",{style:a.tooltip.container,children:t})):null});uT.displayName="TableTooltip";var jg=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=Ft(),a=Fn(),s=a.animate,c=a.config,l=h.useMemo(function(){return Ho({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),u=Zr({x1:t,x2:n,y1:r,y2:i,config:c,immediate:!s});return b.jsx(Lt.line,Ho({},u,{fill:"none",style:l}))});jg.displayName="CrosshairLine";var Ng=h.memo(function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),b.jsxs(b.Fragment,{children:[t&&b.jsx(jg,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&b.jsx(jg,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Ng.displayName="Crosshair";var dT=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Dg={isVisible:!1,position:[null,null],content:null,anchor:null},fT=h.createContext(Dg),WL=function(e){var t=h.useState(Dg),n=t[0],r=t[1],i=h.useCallback(function(s,c,l){var u=c[0],d=c[1];l===void 0&&(l="top"),r({isVisible:!0,position:[u,d],anchor:l,content:s})},[r]),o=h.useCallback(function(s,c,l){l===void 0&&(l="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,p="touches"in c?c.touches[0]:c,g=p.clientX,m=p.clientY,v=(g-u.left)*f,x=(m-u.top)*f;l!=="left"&&l!=="right"||(l=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,x],anchor:l,content:s})},[e,r]),a=h.useCallback(function(){r(Dg)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}},[i,o,a]),state:n}},ea=function(){var e=h.useContext(dT);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},UL=function(){var e=h.useContext(fT);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},VL=function(e){return e.isVisible},HL=function(){var e=UL();return VL(e)?b.jsx(cT,{position:e.position,anchor:e.anchor,children:e.content}):null},qL=function(e){var t=e.container,n=e.children,r=WL(t),i=r.actions,o=r.state;return b.jsx(dT.Provider,{value:i,children:b.jsx(fT.Provider,{value:o,children:n})})};function YL(){this.__data__=[],this.size=0}var GL=YL;function KL(e,t){return e===t||e!==e&&t!==t}var Dl=KL,ZL=Dl;function XL(e,t){for(var n=e.length;n--;)if(ZL(e[n][0],t))return n;return-1}var Xf=XL,QL=Xf,JL=Array.prototype,eF=JL.splice;function tF(e){var t=this.__data__,n=QL(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():eF.call(t,n,1),--this.size,!0}var nF=tF,rF=Xf;function iF(e){var t=this.__data__,n=rF(t,e);return n<0?void 0:t[n][1]}var oF=iF,aF=Xf;function sF(e){return aF(this.__data__,e)>-1}var cF=sF,lF=Xf;function uF(e,t){var n=this.__data__,r=lF(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var dF=uF,fF=GL,hF=nF,pF=oF,mF=cF,gF=dF;function ds(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ds.prototype.clear=fF;ds.prototype.delete=hF;ds.prototype.get=pF;ds.prototype.has=mF;ds.prototype.set=gF;var Qf=ds,vF=Qf;function bF(){this.__data__=new vF,this.size=0}var yF=bF;function xF(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var wF=xF;function _F(e){return this.__data__.get(e)}var CF=_F;function $F(e){return this.__data__.has(e)}var SF=$F,EF=typeof lr=="object"&&lr&&lr.Object===Object&&lr,hT=EF,TF=hT,kF=typeof self=="object"&&self&&self.Object===Object&&self,OF=TF||kF||Function("return this")(),Xr=OF,MF=Xr,RF=MF.Symbol,fs=RF,Nx=fs,pT=Object.prototype,AF=pT.hasOwnProperty,jF=pT.toString,Hs=Nx?Nx.toStringTag:void 0;function NF(e){var t=AF.call(e,Hs),n=e[Hs];try{e[Hs]=void 0;var r=!0}catch{}var i=jF.call(e);return r&&(t?e[Hs]=n:delete e[Hs]),i}var DF=NF,IF=Object.prototype,PF=IF.toString;function LF(e){return PF.call(e)}var FF=LF,Dx=fs,BF=DF,zF=FF,WF="[object Null]",UF="[object Undefined]",Ix=Dx?Dx.toStringTag:void 0;function VF(e){return e==null?e===void 0?UF:WF:Ix&&Ix in Object(e)?BF(e):zF(e)}var Si=VF;function HF(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qr=HF,qF=Si,YF=Qr,GF="[object AsyncFunction]",KF="[object Function]",ZF="[object GeneratorFunction]",XF="[object Proxy]";function QF(e){if(!YF(e))return!1;var t=qF(e);return t==KF||t==ZF||t==GF||t==XF}var Jf=QF;const L0=rn(Jf);var JF=Xr,eB=JF["__core-js_shared__"],tB=eB,Yp=tB,Px=function(){var e=/[^.]+$/.exec(Yp&&Yp.keys&&Yp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function nB(e){return!!Px&&Px in e}var rB=nB,iB=Function.prototype,oB=iB.toString;function aB(e){if(e!=null){try{return oB.call(e)}catch{}try{return e+""}catch{}}return""}var mT=aB,sB=Jf,cB=rB,lB=Qr,uB=mT,dB=/[\\^$.*+?()[\]{}|]/g,fB=/^\[object .+?Constructor\]$/,hB=Function.prototype,pB=Object.prototype,mB=hB.toString,gB=pB.hasOwnProperty,vB=RegExp("^"+mB.call(gB).replace(dB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bB(e){if(!lB(e)||cB(e))return!1;var t=sB(e)?vB:fB;return t.test(uB(e))}var yB=bB;function xB(e,t){return e==null?void 0:e[t]}var wB=xB,_B=yB,CB=wB;function $B(e,t){var n=CB(e,t);return _B(n)?n:void 0}var ta=$B,SB=ta,EB=Xr,TB=SB(EB,"Map"),F0=TB,kB=ta,OB=kB(Object,"create"),eh=OB,Lx=eh;function MB(){this.__data__=Lx?Lx(null):{},this.size=0}var RB=MB;function AB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jB=AB,NB=eh,DB="__lodash_hash_undefined__",IB=Object.prototype,PB=IB.hasOwnProperty;function LB(e){var t=this.__data__;if(NB){var n=t[e];return n===DB?void 0:n}return PB.call(t,e)?t[e]:void 0}var FB=LB,BB=eh,zB=Object.prototype,WB=zB.hasOwnProperty;function UB(e){var t=this.__data__;return BB?t[e]!==void 0:WB.call(t,e)}var VB=UB,HB=eh,qB="__lodash_hash_undefined__";function YB(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=HB&&t===void 0?qB:t,this}var GB=YB,KB=RB,ZB=jB,XB=FB,QB=VB,JB=GB;function hs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}hs.prototype.clear=KB;hs.prototype.delete=ZB;hs.prototype.get=XB;hs.prototype.has=QB;hs.prototype.set=JB;var ez=hs,Fx=ez,tz=Qf,nz=F0;function rz(){this.size=0,this.__data__={hash:new Fx,map:new(nz||tz),string:new Fx}}var iz=rz;function oz(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var az=oz,sz=az;function cz(e,t){var n=e.__data__;return sz(t)?n[typeof t=="string"?"string":"hash"]:n.map}var th=cz,lz=th;function uz(e){var t=lz(this,e).delete(e);return this.size-=t?1:0,t}var dz=uz,fz=th;function hz(e){return fz(this,e).get(e)}var pz=hz,mz=th;function gz(e){return mz(this,e).has(e)}var vz=gz,bz=th;function yz(e,t){var n=bz(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var xz=yz,wz=iz,_z=dz,Cz=pz,$z=vz,Sz=xz;function ps(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ps.prototype.clear=wz;ps.prototype.delete=_z;ps.prototype.get=Cz;ps.prototype.has=$z;ps.prototype.set=Sz;var B0=ps,Ez=Qf,Tz=F0,kz=B0,Oz=200;function Mz(e,t){var n=this.__data__;if(n instanceof Ez){var r=n.__data__;if(!Tz||r.length<Oz-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new kz(r)}return n.set(e,t),this.size=n.size,this}var Rz=Mz,Az=Qf,jz=yF,Nz=wF,Dz=CF,Iz=SF,Pz=Rz;function ms(e){var t=this.__data__=new Az(e);this.size=t.size}ms.prototype.clear=jz;ms.prototype.delete=Nz;ms.prototype.get=Dz;ms.prototype.has=Iz;ms.prototype.set=Pz;var nh=ms,Lz=ta,Fz=function(){try{var e=Lz(Object,"defineProperty");return e({},"",{}),e}catch{}}(),gT=Fz,Bx=gT;function Bz(e,t,n){t=="__proto__"&&Bx?Bx(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var z0=Bz,zz=z0,Wz=Dl;function Uz(e,t,n){(n!==void 0&&!Wz(e[t],n)||n===void 0&&!(t in e))&&zz(e,t,n)}var vT=Uz;function Vz(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(n(o[c],c,o)===!1)break}return t}}var Hz=Vz,qz=Hz,Yz=qz(),bT=Yz,Rd={exports:{}};Rd.exports;(function(e,t){var n=Xr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var d=l.length,f=s?s(d):new l.constructor(d);return l.copy(f),f}e.exports=c})(Rd,Rd.exports);var yT=Rd.exports,Gz=Xr,Kz=Gz.Uint8Array,xT=Kz,zx=xT;function Zz(e){var t=new e.constructor(e.byteLength);return new zx(t).set(new zx(e)),t}var W0=Zz,Xz=W0;function Qz(e,t){var n=t?Xz(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wT=Qz;function Jz(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var _T=Jz,eW=Qr,Wx=Object.create,tW=function(){function e(){}return function(t){if(!eW(t))return{};if(Wx)return Wx(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),nW=tW;function rW(e,t){return function(n){return e(t(n))}}var CT=rW,iW=CT,oW=iW(Object.getPrototypeOf,Object),U0=oW,aW=Object.prototype;function sW(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||aW;return e===n}var V0=sW,cW=nW,lW=U0,uW=V0;function dW(e){return typeof e.constructor=="function"&&!uW(e)?cW(lW(e)):{}}var $T=dW;function fW(e){return e!=null&&typeof e=="object"}var yr=fW,hW=Si,pW=yr,mW="[object Arguments]";function gW(e){return pW(e)&&hW(e)==mW}var vW=gW,Ux=vW,bW=yr,ST=Object.prototype,yW=ST.hasOwnProperty,xW=ST.propertyIsEnumerable,wW=Ux(function(){return arguments}())?Ux:function(e){return bW(e)&&yW.call(e,"callee")&&!xW.call(e,"callee")},rh=wW,_W=Array.isArray,Kn=_W,CW=9007199254740991;function $W(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=CW}var H0=$W,SW=Jf,EW=H0;function TW(e){return e!=null&&EW(e.length)&&!SW(e)}var gs=TW,kW=gs,OW=yr;function MW(e){return OW(e)&&kW(e)}var ET=MW,Ad={exports:{}};function RW(){return!1}var AW=RW;Ad.exports;(function(e,t){var n=Xr,r=AW,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l})(Ad,Ad.exports);var ih=Ad.exports,jW=Si,NW=U0,DW=yr,IW="[object Object]",PW=Function.prototype,LW=Object.prototype,TT=PW.toString,FW=LW.hasOwnProperty,BW=TT.call(Object);function zW(e){if(!DW(e)||jW(e)!=IW)return!1;var t=NW(e);if(t===null)return!0;var n=FW.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&TT.call(n)==BW}var q0=zW;const Y0=rn(q0);var WW=Si,UW=H0,VW=yr,HW="[object Arguments]",qW="[object Array]",YW="[object Boolean]",GW="[object Date]",KW="[object Error]",ZW="[object Function]",XW="[object Map]",QW="[object Number]",JW="[object Object]",eU="[object RegExp]",tU="[object Set]",nU="[object String]",rU="[object WeakMap]",iU="[object ArrayBuffer]",oU="[object DataView]",aU="[object Float32Array]",sU="[object Float64Array]",cU="[object Int8Array]",lU="[object Int16Array]",uU="[object Int32Array]",dU="[object Uint8Array]",fU="[object Uint8ClampedArray]",hU="[object Uint16Array]",pU="[object Uint32Array]",Jt={};Jt[aU]=Jt[sU]=Jt[cU]=Jt[lU]=Jt[uU]=Jt[dU]=Jt[fU]=Jt[hU]=Jt[pU]=!0;Jt[HW]=Jt[qW]=Jt[iU]=Jt[YW]=Jt[oU]=Jt[GW]=Jt[KW]=Jt[ZW]=Jt[XW]=Jt[QW]=Jt[JW]=Jt[eU]=Jt[tU]=Jt[nU]=Jt[rU]=!1;function mU(e){return VW(e)&&UW(e.length)&&!!Jt[WW(e)]}var gU=mU;function vU(e){return function(t){return e(t)}}var vs=vU,jd={exports:{}};jd.exports;(function(e,t){var n=hT,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(jd,jd.exports);var oh=jd.exports,bU=gU,yU=vs,Vx=oh,Hx=Vx&&Vx.isTypedArray,xU=Hx?yU(Hx):bU,G0=xU;function wU(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var kT=wU,_U=z0,CU=Dl,$U=Object.prototype,SU=$U.hasOwnProperty;function EU(e,t,n){var r=e[t];(!(SU.call(e,t)&&CU(r,n))||n===void 0&&!(t in e))&&_U(e,t,n)}var K0=EU,TU=K0,kU=z0;function OU(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?kU(n,s,c):TU(n,s,c)}return n}var bs=OU;function MU(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var RU=MU,AU=9007199254740991,jU=/^(?:0|[1-9]\d*)$/;function NU(e,t){var n=typeof e;return t=t??AU,!!t&&(n=="number"||n!="symbol"&&jU.test(e))&&e>-1&&e%1==0&&e<t}var ah=NU,DU=RU,IU=rh,PU=Kn,LU=ih,FU=ah,BU=G0,zU=Object.prototype,WU=zU.hasOwnProperty;function UU(e,t){var n=PU(e),r=!n&&IU(e),i=!n&&!r&&LU(e),o=!n&&!r&&!i&&BU(e),a=n||r||i||o,s=a?DU(e.length,String):[],c=s.length;for(var l in e)(t||WU.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||FU(l,c)))&&s.push(l);return s}var OT=UU;function VU(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var HU=VU,qU=Qr,YU=V0,GU=HU,KU=Object.prototype,ZU=KU.hasOwnProperty;function XU(e){if(!qU(e))return GU(e);var t=YU(e),n=[];for(var r in e)r=="constructor"&&(t||!ZU.call(e,r))||n.push(r);return n}var QU=XU,JU=OT,eV=QU,tV=gs;function nV(e){return tV(e)?JU(e,!0):eV(e)}var Il=nV,rV=bs,iV=Il;function oV(e){return rV(e,iV(e))}var aV=oV,qx=vT,sV=yT,cV=wT,lV=_T,uV=$T,Yx=rh,Gx=Kn,dV=ET,fV=ih,hV=Jf,pV=Qr,mV=q0,gV=G0,Kx=kT,vV=aV;function bV(e,t,n,r,i,o,a){var s=Kx(e,n),c=Kx(t,n),l=a.get(c);if(l){qx(e,n,l);return}var u=o?o(s,c,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=Gx(c),p=!f&&fV(c),g=!f&&!p&&gV(c);u=c,f||p||g?Gx(s)?u=s:dV(s)?u=lV(s):p?(d=!1,u=sV(c,!0)):g?(d=!1,u=cV(c,!0)):u=[]:mV(c)||Yx(c)?(u=s,Yx(s)?u=vV(s):(!pV(s)||hV(s))&&(u=uV(c))):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c)),qx(e,n,u)}var yV=bV,xV=nh,wV=vT,_V=bT,CV=yV,$V=Qr,SV=Il,EV=kT;function MT(e,t,n,r,i){e!==t&&_V(t,function(o,a){if(i||(i=new xV),$V(o))CV(e,t,a,n,MT,r,i);else{var s=r?r(EV(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),wV(e,a,s)}},SV)}var TV=MT;function kV(e){return e}var sh=kV;function OV(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var MV=OV,RV=MV,Zx=Math.max;function AV(e,t,n){return t=Zx(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Zx(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),RV(e,this,s)}}var RT=AV;function jV(e){return function(){return e}}var NV=jV,DV=NV,Xx=gT,IV=sh,PV=Xx?function(e,t){return Xx(e,"toString",{configurable:!0,enumerable:!1,value:DV(t),writable:!0})}:IV,LV=PV,FV=800,BV=16,zV=Date.now;function WV(e){var t=0,n=0;return function(){var r=zV(),i=BV-(r-n);if(n=r,i>0){if(++t>=FV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var UV=WV,VV=LV,HV=UV,qV=HV(VV),AT=qV,YV=sh,GV=RT,KV=AT;function ZV(e,t){return KV(GV(e,t,YV),e+"")}var Z0=ZV,XV=Dl,QV=gs,JV=ah,eH=Qr;function tH(e,t,n){if(!eH(n))return!1;var r=typeof t;return(r=="number"?QV(n)&&JV(t,n.length):r=="string"&&t in n)?XV(n[t],e):!1}var jT=tH,nH=Z0,rH=jT;function iH(e){return nH(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&rH(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var oH=iH,aH=TV,sH=oH,cH=sH(function(e,t,n){aH(e,t,n)}),lH=cH;const uH=rn(lH);var dH=Si,fH=yr,hH="[object Symbol]";function pH(e){return typeof e=="symbol"||fH(e)&&dH(e)==hH}var ch=pH,mH=Kn,gH=ch,vH=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bH=/^\w*$/;function yH(e,t){if(mH(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||gH(e)?!0:bH.test(e)||!vH.test(e)||t!=null&&e in Object(t)}var X0=yH,NT=B0,xH="Expected a function";function Q0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xH);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Q0.Cache||NT),n}Q0.Cache=NT;var wH=Q0,_H=wH,CH=500;function $H(e){var t=_H(e,function(r){return n.size===CH&&n.clear(),r}),n=t.cache;return t}var SH=$H,EH=SH,TH=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kH=/\\(\\)?/g,OH=EH(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(TH,function(n,r,i,o){t.push(i?o.replace(kH,"$1"):r||n)}),t}),MH=OH;function RH(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var lh=RH,Qx=fs,AH=lh,jH=Kn,NH=ch,DH=1/0,Jx=Qx?Qx.prototype:void 0,ew=Jx?Jx.toString:void 0;function DT(e){if(typeof e=="string")return e;if(jH(e))return AH(e,DT)+"";if(NH(e))return ew?ew.call(e):"";var t=e+"";return t=="0"&&1/e==-DH?"-0":t}var IH=DT,PH=IH;function LH(e){return e==null?"":PH(e)}var IT=LH,FH=Kn,BH=X0,zH=MH,WH=IT;function UH(e,t){return FH(e)?e:BH(e,t)?[e]:zH(WH(e))}var ys=UH,VH=ch,HH=1/0;function qH(e){if(typeof e=="string"||VH(e))return e;var t=e+"";return t=="0"&&1/e==-HH?"-0":t}var xs=qH,YH=ys,GH=xs;function KH(e,t){t=YH(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[GH(t[n++])];return n&&n==r?e:void 0}var Pl=KH,ZH=Pl;function XH(e,t,n){var r=e==null?void 0:ZH(e,t);return r===void 0?n:r}var PT=XH;const Vr=rn(PT);var QH=K0,JH=ys,eq=ah,tw=Qr,tq=xs;function nq(e,t,n,r){if(!tw(e))return e;t=JH(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var c=tq(t[i]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=a){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=tw(u)?u:eq(t[i+1])?[]:{})}QH(s,c,l),s=s[c]}return e}var LT=nq,rq=LT;function iq(e,t,n){return e==null?e:rq(e,t,n)}var oq=iq;const lc=rn(oq);function uh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function J0(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ws(){}var qo=.7,Ka=1/qo,Aa="\\s*([+-]?\\d+)\\s*",tl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",aq=/^#([0-9a-f]{3,8})$/,sq=new RegExp(`^rgb\\(${Aa},${Aa},${Aa}\\)$`),cq=new RegExp(`^rgb\\(${Lr},${Lr},${Lr}\\)$`),lq=new RegExp(`^rgba\\(${Aa},${Aa},${Aa},${tl}\\)$`),uq=new RegExp(`^rgba\\(${Lr},${Lr},${Lr},${tl}\\)$`),dq=new RegExp(`^hsl\\(${tl},${Lr},${Lr}\\)$`),fq=new RegExp(`^hsla\\(${tl},${Lr},${Lr},${tl}\\)$`),nw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};uh(ws,nl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rw,formatHex:rw,formatHex8:hq,formatHsl:pq,formatRgb:iw,toString:iw});function rw(){return this.rgb().formatHex()}function hq(){return this.rgb().formatHex8()}function pq(){return BT(this).formatHsl()}function iw(){return this.rgb().formatRgb()}function nl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=aq.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ow(t):n===3?new On(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?yu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?yu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=sq.exec(e))?new On(t[1],t[2],t[3],1):(t=cq.exec(e))?new On(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lq.exec(e))?yu(t[1],t[2],t[3],t[4]):(t=uq.exec(e))?yu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=dq.exec(e))?cw(t[1],t[2]/100,t[3]/100,1):(t=fq.exec(e))?cw(t[1],t[2]/100,t[3]/100,t[4]):nw.hasOwnProperty(e)?ow(nw[e]):e==="transparent"?new On(NaN,NaN,NaN,0):null}function ow(e){return new On(e>>16&255,e>>8&255,e&255,1)}function yu(e,t,n,r){return r<=0&&(e=t=n=NaN),new On(e,t,n,r)}function FT(e){return e instanceof ws||(e=nl(e)),e?(e=e.rgb(),new On(e.r,e.g,e.b,e.opacity)):new On}function Za(e,t,n,r){return arguments.length===1?FT(e):new On(e,t,n,r??1)}function On(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}uh(On,Za,J0(ws,{brighter(e){return e=e==null?Ka:Math.pow(Ka,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qo:Math.pow(qo,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new On(No(this.r),No(this.g),No(this.b),Nd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:aw,formatHex:aw,formatHex8:mq,formatRgb:sw,toString:sw}));function aw(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function mq(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function sw(){const e=Nd(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function Nd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function cw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $r(e,t,n,r)}function BT(e){if(e instanceof $r)return new $r(e.h,e.s,e.l,e.opacity);if(e instanceof ws||(e=nl(e)),!e)return new $r;if(e instanceof $r)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new $r(a,s,c,e.opacity)}function gq(e,t,n,r){return arguments.length===1?BT(e):new $r(e,t,n,r??1)}function $r(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}uh($r,gq,J0(ws,{brighter(e){return e=e==null?Ka:Math.pow(Ka,e),new $r(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qo:Math.pow(qo,e),new $r(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new On(Gp(e>=240?e-240:e+120,i,r),Gp(e,i,r),Gp(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new $r(lw(this.h),xu(this.s),xu(this.l),Nd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Nd(this.opacity);return`${e===1?"hsl(":"hsla("}${lw(this.h)}, ${xu(this.s)*100}%, ${xu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lw(e){return e=(e||0)%360,e<0?e+360:e}function xu(e){return Math.max(0,Math.min(1,e||0))}function Gp(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const vq=Math.PI/180,bq=180/Math.PI;var zT=-.14861,eb=1.78277,tb=-.29227,dh=-.90649,rl=1.97294,uw=rl*dh,dw=rl*eb,fw=eb*tb-dh*zT;function yq(e){if(e instanceof Do)return new Do(e.h,e.s,e.l,e.opacity);e instanceof On||(e=FT(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(fw*r+uw*t-dw*n)/(fw+uw-dw),o=r-i,a=(rl*(n-i)-tb*o)/dh,s=Math.sqrt(a*a+o*o)/(rl*i*(1-i)),c=s?Math.atan2(a,o)*bq-120:NaN;return new Do(c<0?c+360:c,s,i,e.opacity)}function Hr(e,t,n,r){return arguments.length===1?yq(e):new Do(e,t,n,r??1)}function Do(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}uh(Do,Hr,J0(ws,{brighter(e){return e=e==null?Ka:Math.pow(Ka,e),new Do(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qo:Math.pow(qo,e),new Do(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*vq,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new On(255*(t+n*(zT*r+eb*i)),255*(t+n*(tb*r+dh*i)),255*(t+n*(rl*r)),this.opacity)}}));function xq(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function wq(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return xq((n-r/t)*t,a,i,o,s)}}const fh=e=>()=>e;function WT(e,t){return function(n){return e+n*t}}function _q(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Cq(e,t){var n=t-e;return n?WT(e,n>180||n<-180?n-360*Math.round(n/360):n):fh(isNaN(e)?t:e)}function $q(e){return(e=+e)==1?ja:function(t,n){return n-t?_q(t,n,e):fh(isNaN(t)?n:t)}}function ja(e,t){var n=t-e;return n?WT(e,n):fh(isNaN(e)?t:e)}const hw=function e(t){var n=$q(t);function r(i,o){var a=n((i=Za(i)).r,(o=Za(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),l=ja(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=c(u),i.opacity=l(u),i+""}}return r.gamma=e,r}(1);function Sq(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=Za(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(c){return s.r=r(c),s.g=i(c),s.b=o(c),s+""}}}var Eq=Sq(wq);function Tq(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function kq(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Oq(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=nb(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Mq(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Dd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Rq(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=nb(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Ig=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kp=new RegExp(Ig.source,"g");function Aq(e){return function(){return e}}function jq(e){return function(t){return e(t)+""}}function UT(e,t){var n=Ig.lastIndex=Kp.lastIndex=0,r,i,o,a=-1,s=[],c=[];for(e=e+"",t=t+"";(r=Ig.exec(e))&&(i=Kp.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:Dd(r,i)})),n=Kp.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?jq(c[0].x):Aq(t):(t=c.length,function(l){for(var u=0,d;u<t;++u)s[(d=c[u]).i]=d.x(l);return s.join("")})}function nb(e,t){var n=typeof t,r;return t==null||n==="boolean"?fh(t):(n==="number"?Dd:n==="string"?(r=nl(t))?(t=r,hw):UT:t instanceof nl?hw:t instanceof Date?Mq:kq(t)?Tq:Array.isArray(t)?Oq:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Rq:Dd)(e,t)}function Nq(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function VT(e){return function t(n){n=+n;function r(i,o){var a=e((i=Hr(i)).h,(o=Hr(o)).h),s=ja(i.s,o.s),c=ja(i.l,o.l),l=ja(i.opacity,o.opacity);return function(u){return i.h=a(u),i.s=s(u),i.l=c(Math.pow(u,n)),i.opacity=l(u),i+""}}return r.gamma=t,r}(1)}VT(Cq);var rb=VT(ja),Dq=Si,Iq=Kn,Pq=yr,Lq="[object String]";function Fq(e){return typeof e=="string"||!Iq(e)&&Pq(e)&&Dq(e)==Lq}var Bq=Fq;const zq=rn(Bq);function Wq(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var HT=Wq;const Le=rn(HT);function Xu(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Uq(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ib(e){let t,n,r;e.length!==2?(t=Xu,n=(s,c)=>Xu(e(s),c),r=(s,c)=>e(s)-c):(t=e===Xu||e===Uq?e:Vq,n=e,r=e);function i(s,c,l=0,u=s.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(s[d],c)<0?l=d+1:u=d}while(l<u)}return l}function o(s,c,l=0,u=s.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(s[d],c)<=0?l=d+1:u=d}while(l<u)}return l}function a(s,c,l=0,u=s.length){const d=i(s,c,l,u-1);return d>l&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:i,center:a,right:o}}function Vq(){return 0}function Hq(e){return e===null?NaN:+e}const qq=ib(Xu),Yq=qq.right;ib(Hq).center;class pw extends Map{constructor(t,n=Zq){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(mw(this,t))}has(t){return super.has(mw(this,t))}set(t,n){return super.set(Gq(this,t),n)}delete(t){return super.delete(Kq(this,t))}}function mw({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Gq({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Kq({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Zq(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Xq=Math.sqrt(50),Qq=Math.sqrt(10),Jq=Math.sqrt(2);function Id(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Xq?10:o>=Qq?5:o>=Jq?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/a,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,i)*a,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Id(e,t,n*2):[s,c,l]}function Pg(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?Id(t,e,n):Id(e,t,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let l=0;l<s;++l)c[l]=(o-l)/-a;else for(let l=0;l<s;++l)c[l]=(o-l)*a;else if(a<0)for(let l=0;l<s;++l)c[l]=(i+l)/-a;else for(let l=0;l<s;++l)c[l]=(i+l)*a;return c}function Lg(e,t,n){return t=+t,e=+e,n=+n,Id(e,t,n)[2]}function Fg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Lg(t,e,n):Lg(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function eY(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function na(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const gw=Symbol("implicit");function To(){var e=new pw,t=[],n=[],r=gw;function i(o){let a=e.get(o);if(a===void 0){if(r!==gw)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new pw;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return To(t,n).unknown(r)},na.apply(i,arguments),i}function ob(){var e=To().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var f=t().length,p=i<r,g=p?i:r,m=p?r:i;o=(m-g)/Math.max(1,f-c+l*2),s&&(o=Math.floor(o)),g+=(m-g-o*(f-c))*u,a=o*(1-c),s&&(g=Math.round(g),a=Math.round(a));var v=eY(f).map(function(x){return g+o*x});return n(p?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,l=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(l=+f,d()):l},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return ob(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},na.apply(d(),arguments)}function qT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qT(t())},e}function tY(){return qT(ob.apply(null,arguments).paddingInner(1))}function nY(e){return function(){return e}}function rY(e){return+e}var vw=[0,1];function Sa(e){return e}function Bg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:nY(isNaN(t)?NaN:.5)}function iY(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function oY(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Bg(i,r),o=n(a,o)):(r=Bg(r,i),o=n(o,a)),function(s){return o(r(s))}}function aY(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Bg(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var c=Yq(e,s,1,r)-1;return o[c](i[c](s))}}function hh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ab(){var e=vw,t=vw,n=nb,r,i,o,a=Sa,s,c,l;function u(){var f=Math.min(e.length,t.length);return a!==Sa&&(a=iY(e[0],e[f-1])),s=f>2?aY:oY,c=l=null,d}function d(f){return f==null||isNaN(f=+f)?o:(c||(c=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((l||(l=s(t,e.map(r),Dd)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,rY),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=Nq,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Sa,u()):a!==Sa},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,p){return r=f,i=p,u()}}function YT(){return ab()(Sa,Sa)}function sY(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Pd(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Xa(e){return e=Pd(Math.abs(e)),e?e[1]:NaN}function cY(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function lY(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var uY=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function il(e){if(!(t=uY.exec(e)))throw new Error("invalid format: "+e);var t;return new sb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}il.prototype=sb.prototype;function sb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}sb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function dY(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var GT;function fY(e,t){var n=Pd(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(GT=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Pd(e,Math.max(0,t+o-1))[0]}function bw(e,t){var n=Pd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const yw={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:sY,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return bw(e*100,t)},r:bw,s:fY,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function xw(e){return e}var ww=Array.prototype.map,_w=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hY(e){var t=e.grouping===void 0||e.thousands===void 0?xw:cY(ww.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?xw:lY(ww.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(d){d=il(d);var f=d.fill,p=d.align,g=d.sign,m=d.symbol,v=d.zero,x=d.width,w=d.comma,_=d.precision,C=d.trim,y=d.type;y==="n"?(w=!0,y="g"):yw[y]||(_===void 0&&(_=12),C=!0,y="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var $=m==="$"?n:m==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",E=m==="$"?r:/[%p]/.test(y)?a:"",T=yw[y],k=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function O(S){var M=$,A=E,j,L,N;if(y==="c")A=T(S)+A,S="";else{S=+S;var F=S<0||1/S<0;if(S=isNaN(S)?c:T(Math.abs(S),_),C&&(S=dY(S)),F&&+S==0&&g!=="+"&&(F=!1),M=(F?g==="("?g:s:g==="-"||g==="("?"":g)+M,A=(y==="s"?_w[8+GT/3]:"")+A+(F&&g==="("?")":""),k){for(j=-1,L=S.length;++j<L;)if(N=S.charCodeAt(j),48>N||N>57){A=(N===46?i+S.slice(j+1):S.slice(j))+A,S=S.slice(0,j);break}}}w&&!v&&(S=t(S,1/0));var U=M.length+S.length+A.length,z=U<x?new Array(x-U+1).join(f):"";switch(w&&v&&(S=t(z+S,z.length?x-A.length:1/0),z=""),p){case"<":S=M+S+A+z;break;case"=":S=M+z+S+A;break;case"^":S=z.slice(0,U=z.length>>1)+M+S+A+z.slice(U);break;default:S=z+M+S+A;break}return o(S)}return O.toString=function(){return d+""},O}function u(d,f){var p=l((d=il(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Xa(f)/3)))*3,m=Math.pow(10,-g),v=_w[8+g/3];return function(x){return p(m*x)+v}}return{format:l,formatPrefix:u}}var wu,Ll,KT;pY({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function pY(e){return wu=hY(e),Ll=wu.format,KT=wu.formatPrefix,wu}function mY(e){return Math.max(0,-Xa(Math.abs(e)))}function gY(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xa(t)/3)))*3-Xa(Math.abs(e)))}function vY(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xa(t)-Xa(e))+1}function bY(e,t,n,r){var i=Fg(e,t,n),o;switch(r=il(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=gY(i,a))&&(r.precision=o),KT(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=vY(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=mY(i))&&(r.precision=o-(r.type==="%")*2);break}}return Ll(r)}function ZT(e){var t=e.domain;return e.ticks=function(n){var r=t();return Pg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return bY(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],c,l,u=10;for(s<a&&(l=a,a=s,s=l,l=i,i=o,o=l);u-- >0;){if(l=Lg(a,s,n),l===c)return r[i]=a,r[o]=s,t(r);if(l>0)a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l;else if(l<0)a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function XT(){var e=YT();return e.copy=function(){return hh(e,XT())},na.apply(e,arguments),ZT(e)}function QT(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function Cw(e){return Math.log(e)}function $w(e){return Math.exp(e)}function yY(e){return-Math.log(-e)}function xY(e){return-Math.exp(-e)}function wY(e){return isFinite(e)?+("1e"+e):e<0?0:e}function _Y(e){return e===10?wY:e===Math.E?Math.exp:t=>Math.pow(e,t)}function CY(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Sw(e){return(t,n)=>-e(-t,n)}function $Y(e){const t=e(Cw,$w),n=t.domain;let r=10,i,o;function a(){return i=CY(r),o=_Y(r),n()[0]<0?(i=Sw(i),o=Sw(o),e(yY,xY)):e(Cw,$w),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const c=n();let l=c[0],u=c[c.length-1];const d=u<l;d&&([l,u]=[u,l]);let f=i(l),p=i(u),g,m;const v=s==null?10:+s;let x=[];if(!(r%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),l>0){for(;f<=p;++f)for(g=1;g<r;++g)if(m=f<0?g/o(-f):g*o(f),!(m<l)){if(m>u)break;x.push(m)}}else for(;f<=p;++f)for(g=r-1;g>=1;--g)if(m=f>0?g/o(-f):g*o(f),!(m<l)){if(m>u)break;x.push(m)}x.length*2<v&&(x=Pg(l,u,v))}else x=Pg(f,p,Math.min(p-f,v)).map(o);return d?x.reverse():x},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=il(c)).precision==null&&(c.trim=!0),c=Ll(c)),s===1/0)return c;const l=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=l?c(u):""}},t.nice=()=>n(QT(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function JT(){const e=$Y(ab()).domain([1,10]);return e.copy=()=>hh(e,JT()).base(e.base()),na.apply(e,arguments),e}function Ew(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Tw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function SY(e){var t=1,n=e(Ew(t),Tw(t));return n.constant=function(r){return arguments.length?e(Ew(t=+r),Tw(t)):t},ZT(n)}function e4(){var e=SY(ab());return e.copy=function(){return hh(e,e4()).constant(e.constant())},na.apply(e,arguments)}const Zp=new Date,Xp=new Date;function pn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;let l;do c.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return c},i.filter=o=>pn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(Zp.setTime(+o),Xp.setTime(+a),e(Zp),e(Xp),Math.floor(n(Zp,Xp))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Ld=pn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ld.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ld);Ld.range;const di=1e3,ur=di*60,fi=ur*60,xi=fi*24,cb=xi*7,kw=xi*30,Qp=xi*365,ko=pn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*di)},(e,t)=>(t-e)/di,e=>e.getUTCSeconds());ko.range;const lb=pn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*di)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getMinutes());lb.range;const ub=pn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getUTCMinutes());ub.range;const db=pn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*di-e.getMinutes()*ur)},(e,t)=>{e.setTime(+e+t*fi)},(e,t)=>(t-e)/fi,e=>e.getHours());db.range;const fb=pn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*fi)},(e,t)=>(t-e)/fi,e=>e.getUTCHours());fb.range;const hb=pn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ur)/xi,e=>e.getDate()-1);hb.range;const t4=pn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xi,e=>e.getUTCDate()-1);t4.range;const n4=pn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xi,e=>Math.floor(e/xi));n4.range;function ra(e){return pn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ur)/cb)}const pb=ra(0),EY=ra(1),TY=ra(2),kY=ra(3),OY=ra(4),MY=ra(5),RY=ra(6);pb.range;EY.range;TY.range;kY.range;OY.range;MY.range;RY.range;function ia(e){return pn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/cb)}const mb=ia(0),AY=ia(1),jY=ia(2),NY=ia(3),DY=ia(4),IY=ia(5),PY=ia(6);mb.range;AY.range;jY.range;NY.range;DY.range;IY.range;PY.range;const gb=pn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());gb.range;const vb=pn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());vb.range;const ph=pn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ph.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ph.range;const mh=pn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());mh.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});mh.range;function r4(e,t,n,r,i,o){const a=[[ko,1,di],[ko,5,5*di],[ko,15,15*di],[ko,30,30*di],[o,1,ur],[o,5,5*ur],[o,15,15*ur],[o,30,30*ur],[i,1,fi],[i,3,3*fi],[i,6,6*fi],[i,12,12*fi],[r,1,xi],[r,2,2*xi],[n,1,cb],[t,1,kw],[t,3,3*kw],[e,1,Qp]];function s(l,u,d){const f=u<l;f&&([l,u]=[u,l]);const p=d&&typeof d.range=="function"?d:c(l,u,d),g=p?p.range(l,+u+1):[];return f?g.reverse():g}function c(l,u,d){const f=Math.abs(u-l)/d,p=ib(([,,v])=>v).right(a,f);if(p===a.length)return e.every(Fg(l/Qp,u/Qp,d));if(p===0)return Ld.every(Math.max(Fg(l,u,d),1));const[g,m]=a[f/a[p-1][2]<a[p][2]/f?p-1:p];return g.every(m)}return[s,c]}const[LY,FY]=r4(mh,vb,mb,n4,fb,ub),[BY,zY]=r4(ph,gb,pb,hb,db,lb);var Jp=new Date,em=new Date;function dn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var c=[],l;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;do c.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return c},i.filter=function(o){return dn(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return Jp.setTime(+o),em.setTime(+a),e(Jp),e(em),Math.floor(n(Jp,em))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var ol=dn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ol.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?dn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):ol};ol.range;var Fd=1e3,Yo=6e4,Bd=36e5,i4=864e5,o4=6048e5,zg=dn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Fd)},function(e,t){return(t-e)/Fd},function(e){return e.getUTCSeconds()});zg.range;var a4=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fd)},function(e,t){e.setTime(+e+t*Yo)},function(e,t){return(t-e)/Yo},function(e){return e.getMinutes()});a4.range;var s4=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fd-e.getMinutes()*Yo)},function(e,t){e.setTime(+e+t*Bd)},function(e,t){return(t-e)/Bd},function(e){return e.getHours()});s4.range;var bb=dn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yo)/i4},function(e){return e.getDate()-1});bb.range;function oa(e){return dn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yo)/o4})}var zd=oa(0),al=oa(1),c4=oa(2),l4=oa(3),Go=oa(4),u4=oa(5),d4=oa(6);zd.range;al.range;c4.range;l4.range;Go.range;u4.range;d4.range;var f4=dn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});f4.range;var no=dn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});no.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};no.range;var h4=dn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Yo)},function(e,t){return(t-e)/Yo},function(e){return e.getUTCMinutes()});h4.range;var p4=dn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Bd)},function(e,t){return(t-e)/Bd},function(e){return e.getUTCHours()});p4.range;var yb=dn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/i4},function(e){return e.getUTCDate()-1});yb.range;function aa(e){return dn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/o4})}var Wd=aa(0),sl=aa(1),m4=aa(2),g4=aa(3),Ko=aa(4),v4=aa(5),b4=aa(6);Wd.range;sl.range;m4.range;g4.range;Ko.range;v4.range;b4.range;var y4=dn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});y4.range;var ro=dn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});ro.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};ro.range;function tm(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function nm(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function WY(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=Ys(i),u=Gs(i),d=Ys(o),f=Gs(o),p=Ys(a),g=Gs(a),m=Ys(s),v=Gs(s),x=Ys(c),w=Gs(c),_={a:F,A:U,b:z,B:I,c:null,d:Nw,e:Nw,f:dG,g:wG,G:CG,H:cG,I:lG,j:uG,L:x4,m:fG,M:hG,p:W,q:Y,Q:Pw,s:Lw,S:pG,u:mG,U:gG,V:vG,w:bG,W:yG,x:null,X:null,y:xG,Y:_G,Z:$G,"%":Iw},C={a:J,A:X,b:Z,B:Q,c:null,d:Dw,e:Dw,f:kG,g:LG,G:BG,H:SG,I:EG,j:TG,L:_4,m:OG,M:MG,p:te,q:P,Q:Pw,s:Lw,S:RG,u:AG,U:jG,V:NG,w:DG,W:IG,x:null,X:null,y:PG,Y:FG,Z:zG,"%":Iw},y={a:O,A:S,b:M,B:A,c:j,d:Aw,e:Aw,f:iG,g:Rw,G:Mw,H:jw,I:jw,j:eG,L:rG,m:JY,M:tG,p:k,q:QY,Q:aG,s:sG,S:nG,u:YY,U:GY,V:KY,w:qY,W:ZY,x:L,X:N,y:Rw,Y:Mw,Z:XY,"%":oG};_.x=$(n,_),_.X=$(r,_),_.c=$(t,_),C.x=$(n,C),C.X=$(r,C),C.c=$(t,C);function $(D,B){return function(H){var R=[],G=-1,ee=0,ne=D.length,de,oe,ae;for(H instanceof Date||(H=new Date(+H));++G<ne;)D.charCodeAt(G)===37&&(R.push(D.slice(ee,G)),(oe=Ow[de=D.charAt(++G)])!=null?de=D.charAt(++G):oe=de==="e"?" ":"0",(ae=B[de])&&(de=ae(H,oe)),R.push(de),ee=G+1);return R.push(D.slice(ee,G)),R.join("")}}function E(D,B){return function(H){var R=qs(1900,void 0,1),G=T(R,D,H+="",0),ee,ne;if(G!=H.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(B&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(ee=nm(qs(R.y,0,1)),ne=ee.getUTCDay(),ee=ne>4||ne===0?sl.ceil(ee):sl(ee),ee=yb.offset(ee,(R.V-1)*7),R.y=ee.getUTCFullYear(),R.m=ee.getUTCMonth(),R.d=ee.getUTCDate()+(R.w+6)%7):(ee=tm(qs(R.y,0,1)),ne=ee.getDay(),ee=ne>4||ne===0?al.ceil(ee):al(ee),ee=bb.offset(ee,(R.V-1)*7),R.y=ee.getFullYear(),R.m=ee.getMonth(),R.d=ee.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),ne="Z"in R?nm(qs(R.y,0,1)).getUTCDay():tm(qs(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(ne+5)%7:R.w+R.U*7-(ne+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,nm(R)):tm(R)}}function T(D,B,H,R){for(var G=0,ee=B.length,ne=H.length,de,oe;G<ee;){if(R>=ne)return-1;if(de=B.charCodeAt(G++),de===37){if(de=B.charAt(G++),oe=y[de in Ow?B.charAt(G++):de],!oe||(R=oe(D,H,R))<0)return-1}else if(de!=H.charCodeAt(R++))return-1}return R}function k(D,B,H){var R=l.exec(B.slice(H));return R?(D.p=u.get(R[0].toLowerCase()),H+R[0].length):-1}function O(D,B,H){var R=p.exec(B.slice(H));return R?(D.w=g.get(R[0].toLowerCase()),H+R[0].length):-1}function S(D,B,H){var R=d.exec(B.slice(H));return R?(D.w=f.get(R[0].toLowerCase()),H+R[0].length):-1}function M(D,B,H){var R=x.exec(B.slice(H));return R?(D.m=w.get(R[0].toLowerCase()),H+R[0].length):-1}function A(D,B,H){var R=m.exec(B.slice(H));return R?(D.m=v.get(R[0].toLowerCase()),H+R[0].length):-1}function j(D,B,H){return T(D,t,B,H)}function L(D,B,H){return T(D,n,B,H)}function N(D,B,H){return T(D,r,B,H)}function F(D){return a[D.getDay()]}function U(D){return o[D.getDay()]}function z(D){return c[D.getMonth()]}function I(D){return s[D.getMonth()]}function W(D){return i[+(D.getHours()>=12)]}function Y(D){return 1+~~(D.getMonth()/3)}function J(D){return a[D.getUTCDay()]}function X(D){return o[D.getUTCDay()]}function Z(D){return c[D.getUTCMonth()]}function Q(D){return s[D.getUTCMonth()]}function te(D){return i[+(D.getUTCHours()>=12)]}function P(D){return 1+~~(D.getUTCMonth()/3)}return{format:function(D){var B=$(D+="",_);return B.toString=function(){return D},B},parse:function(D){var B=E(D+="",!1);return B.toString=function(){return D},B},utcFormat:function(D){var B=$(D+="",C);return B.toString=function(){return D},B},utcParse:function(D){var B=E(D+="",!0);return B.toString=function(){return D},B}}}var Ow={"-":"",_:" ",0:"0"},yn=/^\s*\d+/,UY=/^%/,VY=/[\\^$*+?|[\]().{}]/g;function Tt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function HY(e){return e.replace(VY,"\\$&")}function Ys(e){return new RegExp("^(?:"+e.map(HY).join("|")+")","i")}function Gs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function qY(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function YY(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function GY(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function KY(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ZY(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Mw(e,t,n){var r=yn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Rw(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function XY(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function QY(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function JY(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Aw(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function eG(e,t,n){var r=yn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function jw(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function tG(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function nG(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rG(e,t,n){var r=yn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function iG(e,t,n){var r=yn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function oG(e,t,n){var r=UY.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function aG(e,t,n){var r=yn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function sG(e,t,n){var r=yn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Nw(e,t){return Tt(e.getDate(),t,2)}function cG(e,t){return Tt(e.getHours(),t,2)}function lG(e,t){return Tt(e.getHours()%12||12,t,2)}function uG(e,t){return Tt(1+bb.count(no(e),e),t,3)}function x4(e,t){return Tt(e.getMilliseconds(),t,3)}function dG(e,t){return x4(e,t)+"000"}function fG(e,t){return Tt(e.getMonth()+1,t,2)}function hG(e,t){return Tt(e.getMinutes(),t,2)}function pG(e,t){return Tt(e.getSeconds(),t,2)}function mG(e){var t=e.getDay();return t===0?7:t}function gG(e,t){return Tt(zd.count(no(e)-1,e),t,2)}function w4(e){var t=e.getDay();return t>=4||t===0?Go(e):Go.ceil(e)}function vG(e,t){return e=w4(e),Tt(Go.count(no(e),e)+(no(e).getDay()===4),t,2)}function bG(e){return e.getDay()}function yG(e,t){return Tt(al.count(no(e)-1,e),t,2)}function xG(e,t){return Tt(e.getFullYear()%100,t,2)}function wG(e,t){return e=w4(e),Tt(e.getFullYear()%100,t,2)}function _G(e,t){return Tt(e.getFullYear()%1e4,t,4)}function CG(e,t){var n=e.getDay();return e=n>=4||n===0?Go(e):Go.ceil(e),Tt(e.getFullYear()%1e4,t,4)}function $G(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Tt(t/60|0,"0",2)+Tt(t%60,"0",2)}function Dw(e,t){return Tt(e.getUTCDate(),t,2)}function SG(e,t){return Tt(e.getUTCHours(),t,2)}function EG(e,t){return Tt(e.getUTCHours()%12||12,t,2)}function TG(e,t){return Tt(1+yb.count(ro(e),e),t,3)}function _4(e,t){return Tt(e.getUTCMilliseconds(),t,3)}function kG(e,t){return _4(e,t)+"000"}function OG(e,t){return Tt(e.getUTCMonth()+1,t,2)}function MG(e,t){return Tt(e.getUTCMinutes(),t,2)}function RG(e,t){return Tt(e.getUTCSeconds(),t,2)}function AG(e){var t=e.getUTCDay();return t===0?7:t}function jG(e,t){return Tt(Wd.count(ro(e)-1,e),t,2)}function C4(e){var t=e.getUTCDay();return t>=4||t===0?Ko(e):Ko.ceil(e)}function NG(e,t){return e=C4(e),Tt(Ko.count(ro(e),e)+(ro(e).getUTCDay()===4),t,2)}function DG(e){return e.getUTCDay()}function IG(e,t){return Tt(sl.count(ro(e)-1,e),t,2)}function PG(e,t){return Tt(e.getUTCFullYear()%100,t,2)}function LG(e,t){return e=C4(e),Tt(e.getUTCFullYear()%100,t,2)}function FG(e,t){return Tt(e.getUTCFullYear()%1e4,t,4)}function BG(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ko(e):Ko.ceil(e),Tt(e.getUTCFullYear()%1e4,t,4)}function zG(){return"+0000"}function Iw(){return"%"}function Pw(e){return+e}function Lw(e){return Math.floor(+e/1e3)}var pa,gh,$4,S4,E4;WG({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function WG(e){return pa=WY(e),gh=pa.format,$4=pa.parse,S4=pa.utcFormat,E4=pa.utcParse,pa}function UG(e){return new Date(e)}function VG(e){return e instanceof Date?+e:+new Date(+e)}function xb(e,t,n,r,i,o,a,s,c,l){var u=YT(),d=u.invert,f=u.domain,p=l(".%L"),g=l(":%S"),m=l("%I:%M"),v=l("%I %p"),x=l("%a %d"),w=l("%b %d"),_=l("%B"),C=l("%Y");function y($){return(c($)<$?p:s($)<$?g:a($)<$?m:o($)<$?v:r($)<$?i($)<$?x:w:n($)<$?_:C)($)}return u.invert=function($){return new Date(d($))},u.domain=function($){return arguments.length?f(Array.from($,VG)):f().map(UG)},u.ticks=function($){var E=f();return e(E[0],E[E.length-1],$??10)},u.tickFormat=function($,E){return E==null?y:l(E)},u.nice=function($){var E=f();return(!$||typeof $.range!="function")&&($=t(E[0],E[E.length-1],$??10)),$?f(QT(E,$)):u},u.copy=function(){return hh(u,xb(e,t,n,r,i,o,a,s,c,l))},u}function HG(){return na.apply(xb(BY,zY,ph,gb,pb,hb,db,lb,ko,gh).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function qG(){return na.apply(xb(LY,FY,mh,vb,mb,t4,fb,ub,ko,S4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function lt(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const T4=lt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),k4=lt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),O4=lt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),M4=lt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),R4=lt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),A4=lt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),j4=lt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),N4=lt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),wb=lt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),YG=lt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Gt=e=>Eq(e[e.length-1]);var vh=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(lt);const GG=Gt(vh);var bh=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(lt);const KG=Gt(bh);var yh=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(lt);const ZG=Gt(yh);var xh=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(lt);const XG=Gt(xh);var wh=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(lt);const QG=Gt(wh);var _h=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(lt);const JG=Gt(_h);var Ch=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(lt);const eK=Gt(Ch);var $h=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(lt);const tK=Gt($h);var Sh=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(lt);const nK=Gt(Sh);var Eh=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(lt);const rK=Gt(Eh);var Th=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(lt);const iK=Gt(Th);var kh=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(lt);const oK=Gt(kh);var Oh=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(lt);const aK=Gt(Oh);var Mh=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(lt);const sK=Gt(Mh);var Rh=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(lt);const cK=Gt(Rh);var Ah=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(lt);const lK=Gt(Ah);var jh=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(lt);const uK=Gt(jh);var Nh=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(lt);const dK=Gt(Nh);var Dh=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(lt);const fK=Gt(Dh);var Ih=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(lt);const hK=Gt(Ih);var Ph=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(lt);const pK=Gt(Ph);var Lh=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(lt);const mK=Gt(Lh);var Fh=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(lt);const gK=Gt(Fh);var Bh=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(lt);const vK=Gt(Bh);var zh=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(lt);const bK=Gt(zh);var Wh=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(lt);const yK=Gt(Wh);var Uh=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(lt);const xK=Gt(Uh);function wK(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const _K=rb(Hr(300,.5,0),Hr(-240,.5,1));var CK=rb(Hr(-100,.75,.35),Hr(80,1.5,.8)),$K=rb(Hr(260,.75,.35),Hr(80,1.5,.8)),_u=Hr();function SK(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return _u.h=360*e-100,_u.s=1.5-1.5*t,_u.l=.8-.9*t,_u+""}var Cu=Za(),EK=Math.PI/3,TK=Math.PI*2/3;function kK(e){var t;return e=(.5-e)*Math.PI,Cu.r=255*(t=Math.sin(e))*t,Cu.g=255*(t=Math.sin(e+EK))*t,Cu.b=255*(t=Math.sin(e+TK))*t,Cu+""}function OK(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Vh(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const MK=Vh(lt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var RK=Vh(lt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),AK=Vh(lt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),jK=Vh(lt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),NK="__lodash_hash_undefined__";function DK(e){return this.__data__.set(e,NK),this}var IK=DK;function PK(e){return this.__data__.has(e)}var LK=PK,FK=B0,BK=IK,zK=LK;function Ud(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new FK;++t<n;)this.add(e[t])}Ud.prototype.add=Ud.prototype.push=BK;Ud.prototype.has=zK;var _b=Ud;function WK(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var UK=WK;function VK(e){return e!==e}var HK=VK;function qK(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var YK=qK,GK=UK,KK=HK,ZK=YK;function XK(e,t,n){return t===t?ZK(e,t,n):GK(e,KK,n)}var QK=XK,JK=QK;function eZ(e,t){var n=e==null?0:e.length;return!!n&&JK(e,t,0)>-1}var D4=eZ;function tZ(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var I4=tZ;function nZ(e,t){return e.has(t)}var Cb=nZ,rZ=_b,iZ=D4,oZ=I4,aZ=lh,sZ=vs,cZ=Cb,lZ=200;function uZ(e,t,n,r){var i=-1,o=iZ,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=aZ(t,sZ(n))),r?(o=oZ,a=!1):t.length>=lZ&&(o=cZ,a=!1,t=new rZ(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,a&&d===d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else o(t,d,r)||c.push(u)}return c}var dZ=uZ,fZ=dZ,hZ=Z0,pZ=ET,mZ=hZ(function(e,t){return pZ(e)?fZ(e,t):[]}),gZ=mZ;const P4=rn(gZ);function vt(e){return function(){return e}}const Fw=Math.abs,$n=Math.atan2,po=Math.cos,vZ=Math.max,rm=Math.min,Ar=Math.sin,Ea=Math.sqrt,En=1e-12,cl=Math.PI,Vd=cl/2,Qu=2*cl;function bZ(e){return e>1?0:e<-1?cl:Math.acos(e)}function Bw(e){return e>=1?Vd:e<=-1?-Vd:Math.asin(e)}const Wg=Math.PI,Ug=2*Wg,yo=1e-6,yZ=Ug-yo;function L4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function xZ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return L4;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let wZ=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?L4:xZ(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,c=r-t,l=i-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>yo)if(!(Math.abs(d*c-l*u)>yo)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,g=i-s,m=c*c+l*l,v=p*p+g*g,x=Math.sqrt(m),w=Math.sqrt(f),_=o*Math.tan((Wg-Math.acos((m+f-v)/(2*x*w)))/2),C=_/w,y=_/x;Math.abs(C-1)>yo&&this._append`L${t+C*u},${n+C*d}`,this._append`A${o},${o},0,0,${+(d*p>u*g)},${this._x1=t+y*c},${this._y1=n+y*l}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=t+s,u=n+c,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>yo||Math.abs(this._y1-u)>yo)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%Ug+Ug),f>yZ?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=l},${this._y1=u}`:f>yo&&this._append`A${r},${r},0,${+(f>=Wg)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function $b(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new wZ(t)}function _Z(e){return e.innerRadius}function CZ(e){return e.outerRadius}function $Z(e){return e.startAngle}function SZ(e){return e.endAngle}function EZ(e){return e&&e.padAngle}function TZ(e,t,n,r,i,o,a,s){var c=n-e,l=r-t,u=a-i,d=s-o,f=d*c-u*l;if(!(f*f<En))return f=(u*(t-o)-d*(e-i))/f,[e+f*c,t+f*l]}function $u(e,t,n,r,i,o,a){var s=e-n,c=t-r,l=(a?o:-o)/Ea(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,g=n+u,m=r+d,v=(f+g)/2,x=(p+m)/2,w=g-f,_=m-p,C=w*w+_*_,y=i-o,$=f*m-g*p,E=(_<0?-1:1)*Ea(vZ(0,y*y*C-$*$)),T=($*_-w*E)/C,k=(-$*w-_*E)/C,O=($*_+w*E)/C,S=(-$*w+_*E)/C,M=T-v,A=k-x,j=O-v,L=S-x;return M*M+A*A>j*j+L*L&&(T=O,k=S),{cx:T,cy:k,x01:-u,y01:-d,x11:T*(i/y-1),y11:k*(i/y-1)}}function kZ(){var e=_Z,t=CZ,n=vt(0),r=null,i=$Z,o=SZ,a=EZ,s=null,c=$b(l);function l(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),g=i.apply(this,arguments)-Vd,m=o.apply(this,arguments)-Vd,v=Fw(m-g),x=m>g;if(s||(s=u=c()),p<f&&(d=p,p=f,f=d),!(p>En))s.moveTo(0,0);else if(v>Qu-En)s.moveTo(p*po(g),p*Ar(g)),s.arc(0,0,p,g,m,!x),f>En&&(s.moveTo(f*po(m),f*Ar(m)),s.arc(0,0,f,m,g,x));else{var w=g,_=m,C=g,y=m,$=v,E=v,T=a.apply(this,arguments)/2,k=T>En&&(r?+r.apply(this,arguments):Ea(f*f+p*p)),O=rm(Fw(p-f)/2,+n.apply(this,arguments)),S=O,M=O,A,j;if(k>En){var L=Bw(k/f*Ar(T)),N=Bw(k/p*Ar(T));($-=L*2)>En?(L*=x?1:-1,C+=L,y-=L):($=0,C=y=(g+m)/2),(E-=N*2)>En?(N*=x?1:-1,w+=N,_-=N):(E=0,w=_=(g+m)/2)}var F=p*po(w),U=p*Ar(w),z=f*po(y),I=f*Ar(y);if(O>En){var W=p*po(_),Y=p*Ar(_),J=f*po(C),X=f*Ar(C),Z;if(v<cl)if(Z=TZ(F,U,J,X,W,Y,z,I)){var Q=F-Z[0],te=U-Z[1],P=W-Z[0],D=Y-Z[1],B=1/Ar(bZ((Q*P+te*D)/(Ea(Q*Q+te*te)*Ea(P*P+D*D)))/2),H=Ea(Z[0]*Z[0]+Z[1]*Z[1]);S=rm(O,(f-H)/(B-1)),M=rm(O,(p-H)/(B+1))}else S=M=0}E>En?M>En?(A=$u(J,X,F,U,p,M,x),j=$u(W,Y,z,I,p,M,x),s.moveTo(A.cx+A.x01,A.cy+A.y01),M<O?s.arc(A.cx,A.cy,M,$n(A.y01,A.x01),$n(j.y01,j.x01),!x):(s.arc(A.cx,A.cy,M,$n(A.y01,A.x01),$n(A.y11,A.x11),!x),s.arc(0,0,p,$n(A.cy+A.y11,A.cx+A.x11),$n(j.cy+j.y11,j.cx+j.x11),!x),s.arc(j.cx,j.cy,M,$n(j.y11,j.x11),$n(j.y01,j.x01),!x))):(s.moveTo(F,U),s.arc(0,0,p,w,_,!x)):s.moveTo(F,U),!(f>En)||!($>En)?s.lineTo(z,I):S>En?(A=$u(z,I,W,Y,f,-S,x),j=$u(F,U,J,X,f,-S,x),s.lineTo(A.cx+A.x01,A.cy+A.y01),S<O?s.arc(A.cx,A.cy,S,$n(A.y01,A.x01),$n(j.y01,j.x01),!x):(s.arc(A.cx,A.cy,S,$n(A.y01,A.x01),$n(A.y11,A.x11),!x),s.arc(0,0,f,$n(A.cy+A.y11,A.cx+A.x11),$n(j.cy+j.y11,j.cx+j.x11),x),s.arc(j.cx,j.cy,S,$n(j.y11,j.x11),$n(j.y01,j.x01),!x))):s.arc(0,0,f,y,C,x)}if(s.closePath(),u)return s=null,u+""||null}return l.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-cl/2;return[po(d)*u,Ar(d)*u]},l.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:vt(+u),l):e},l.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:vt(+u),l):t},l.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:vt(+u),l):n},l.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:vt(+u),l):r},l.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:vt(+u),l):i},l.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:vt(+u),l):o},l.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:vt(+u),l):a},l.context=function(u){return arguments.length?(s=u??null,l):s},l}function Hh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function F4(e){this._context=e}F4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Sb(e){return new F4(e)}function B4(e){return e[0]}function z4(e){return e[1]}function Eb(e,t){var n=vt(!0),r=null,i=Sb,o=null,a=$b(s);e=typeof e=="function"?e:e===void 0?B4:vt(e),t=typeof t=="function"?t:t===void 0?z4:vt(t);function s(c){var l,u=(c=Hh(c)).length,d,f=!1,p;for(r==null&&(o=i(p=a())),l=0;l<=u;++l)!(l<u&&n(d=c[l],l,c))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,l,c),+t(d,l,c));if(p)return o=null,p+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:vt(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:vt(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:vt(!!c),s):n},s.curve=function(c){return arguments.length?(i=c,r!=null&&(o=i(r)),s):i},s.context=function(c){return arguments.length?(c==null?r=o=null:o=i(r=c),s):r},s}function OZ(e,t,n){var r=null,i=vt(!0),o=null,a=Sb,s=null,c=$b(l);e=typeof e=="function"?e:e===void 0?B4:vt(+e),t=typeof t=="function"?t:vt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?z4:vt(+n);function l(d){var f,p,g,m=(d=Hh(d)).length,v,x=!1,w,_=new Array(m),C=new Array(m);for(o==null&&(s=a(w=c())),f=0;f<=m;++f){if(!(f<m&&i(v=d[f],f,d))===x)if(x=!x)p=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=f-1;g>=p;--g)s.point(_[g],C[g]);s.lineEnd(),s.areaEnd()}x&&(_[f]=+e(v,f,d),C[f]=+t(v,f,d),s.point(r?+r(v,f,d):_[f],n?+n(v,f,d):C[f]))}if(w)return s=null,w+""||null}function u(){return Eb().defined(i).curve(a).context(o)}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:vt(+d),r=null,l):e},l.x0=function(d){return arguments.length?(e=typeof d=="function"?d:vt(+d),l):e},l.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:vt(+d),l):r},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:vt(+d),n=null,l):t},l.y0=function(d){return arguments.length?(t=typeof d=="function"?d:vt(+d),l):t},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:vt(+d),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(d){return arguments.length?(i=typeof d=="function"?d:vt(!!d),l):i},l.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),l):a},l.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),l):o},l}function MZ(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function RZ(e){return e}function AZ(){var e=RZ,t=MZ,n=null,r=vt(0),i=vt(Qu),o=vt(0);function a(s){var c,l=(s=Hh(s)).length,u,d,f=0,p=new Array(l),g=new Array(l),m=+r.apply(this,arguments),v=Math.min(Qu,Math.max(-Qu,i.apply(this,arguments)-m)),x,w=Math.min(Math.abs(v)/l,o.apply(this,arguments)),_=w*(v<0?-1:1),C;for(c=0;c<l;++c)(C=g[p[c]=c]=+e(s[c],c,s))>0&&(f+=C);for(t!=null?p.sort(function(y,$){return t(g[y],g[$])}):n!=null&&p.sort(function(y,$){return n(s[y],s[$])}),c=0,d=f?(v-l*_)/f:0;c<l;++c,m=x)u=p[c],C=g[u],x=m+(C>0?C*d:0)+_,g[u]={data:s[u],index:c,value:C,startAngle:m,endAngle:x,padAngle:w};return g}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:vt(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:vt(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:vt(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:vt(+s),a):o},a}function io(){}function Hd(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function qh(e){this._context=e}qh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Hd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Hd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jZ(e){return new qh(e)}function W4(e){this._context=e}W4.prototype={areaStart:io,areaEnd:io,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Hd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function NZ(e){return new W4(e)}function U4(e){this._context=e}U4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Hd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DZ(e){return new U4(e)}function V4(e,t){this._basis=new qh(e),this._beta=t}V4.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*o),this._beta*t[s]+(1-this._beta)*(i+c*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const IZ=function e(t){function n(r){return t===1?new qh(r):new V4(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function qd(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Tb(e,t){this._context=e,this._k=(1-t)/6}Tb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:qd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:qd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const PZ=function e(t){function n(r){return new Tb(r,t)}return n.tension=function(r){return e(+r)},n}(0);function kb(e,t){this._context=e,this._k=(1-t)/6}kb.prototype={areaStart:io,areaEnd:io,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:qd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const LZ=function e(t){function n(r){return new kb(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ob(e,t){this._context=e,this._k=(1-t)/6}Ob.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:qd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const FZ=function e(t){function n(r){return new Ob(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Mb(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>En){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>En){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function H4(e,t){this._context=e,this._alpha=t}H4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Mb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const BZ=function e(t){function n(r){return t?new H4(r,t):new Tb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function q4(e,t){this._context=e,this._alpha=t}q4.prototype={areaStart:io,areaEnd:io,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Mb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const zZ=function e(t){function n(r){return t?new q4(r,t):new kb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Y4(e,t){this._context=e,this._alpha=t}Y4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Mb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const WZ=function e(t){function n(r){return t?new Y4(r,t):new Ob(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function G4(e){this._context=e}G4.prototype={areaStart:io,areaEnd:io,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function UZ(e){return new G4(e)}function zw(e){return e<0?-1:1}function Ww(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(zw(o)+zw(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Uw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function im(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Yd(e){this._context=e}Yd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:im(this,this._t0,Uw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,im(this,Uw(this,n=Ww(this,e,t)),n);break;default:im(this,this._t0,n=Ww(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function K4(e){this._context=new Z4(e)}(K4.prototype=Object.create(Yd.prototype)).point=function(e,t){Yd.prototype.point.call(this,t,e)};function Z4(e){this._context=e}Z4.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function VZ(e){return new Yd(e)}function HZ(e){return new K4(e)}function X4(e){this._context=e}X4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Vw(e),i=Vw(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Vw(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function qZ(e){return new X4(e)}function Yh(e,t){this._context=e,this._t=t}Yh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function YZ(e){return new Yh(e,.5)}function GZ(e){return new Yh(e,0)}function KZ(e){return new Yh(e,1)}function Hw(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function qw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function ZZ(e,t){return e[t]}function XZ(e){const t=[];return t.key=e,t}function QZ(){var e=vt([]),t=qw,n=Hw,r=ZZ;function i(o){var a=Array.from(e.apply(this,arguments),XZ),s,c=a.length,l=-1,u;for(const d of o)for(s=0,++l;s<c;++s)(a[s][l]=[0,+r(d,a[s].key,l,o)]).data=d;for(s=0,u=Hh(t(a));s<c;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:vt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:vt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?qw:typeof o=="function"?o:vt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Hw,i):n},i}function JZ(e,t){if((c=e.length)>0)for(var n,r=0,i,o,a,s,c,l=e[t[0]].length;r<l;++r)for(a=s=0,n=0;n<c;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}var eX=Pl,tX=LT,nX=ys;function rX(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=eX(e,a);n(s,a)&&tX(o,nX(a,e),s)}return o}var iX=rX;function oX(e,t){return e!=null&&t in Object(e)}var aX=oX,sX=ys,cX=rh,lX=Kn,uX=ah,dX=H0,fX=xs;function hX(e,t,n){t=sX(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=fX(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&dX(i)&&uX(a,i)&&(lX(e)||cX(e)))}var pX=hX,mX=aX,gX=pX;function vX(e,t){return e!=null&&gX(e,t,mX)}var Q4=vX,bX=iX,yX=Q4;function xX(e,t){return bX(e,t,function(n,r){return yX(e,r)})}var wX=xX;function _X(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Rb=_X,Yw=fs,CX=rh,$X=Kn,Gw=Yw?Yw.isConcatSpreadable:void 0;function SX(e){return $X(e)||CX(e)||!!(Gw&&e&&e[Gw])}var EX=SX,TX=Rb,kX=EX;function J4(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=kX),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?J4(s,t-1,n,r,i):TX(i,s):r||(i[i.length]=s)}return i}var ek=J4,OX=ek;function MX(e){var t=e==null?0:e.length;return t?OX(e,1):[]}var RX=MX,AX=RX,jX=RT,NX=AT;function DX(e){return NX(jX(e,void 0,AX),e+"")}var tk=DX,IX=wX,PX=tk,LX=PX(function(e,t){return e==null?{}:IX(e,t)}),FX=LX;const BX=rn(FX);function zX(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var WX=zX,UX=_b,VX=WX,HX=Cb,qX=1,YX=2;function GX(e,t,n,r,i,o){var a=n&qX,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&YX?new UX:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var g=e[d],m=t[d];if(r)var v=a?r(m,g,d,t,e,o):r(g,m,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!VX(t,function(x,w){if(!HX(p,w)&&(g===x||i(g,x,n,r,o)))return p.push(w)})){f=!1;break}}else if(!(g===m||i(g,m,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var nk=GX;function KX(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var ZX=KX;function XX(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ab=XX,Kw=fs,Zw=xT,QX=Dl,JX=nk,eQ=ZX,tQ=Ab,nQ=1,rQ=2,iQ="[object Boolean]",oQ="[object Date]",aQ="[object Error]",sQ="[object Map]",cQ="[object Number]",lQ="[object RegExp]",uQ="[object Set]",dQ="[object String]",fQ="[object Symbol]",hQ="[object ArrayBuffer]",pQ="[object DataView]",Xw=Kw?Kw.prototype:void 0,om=Xw?Xw.valueOf:void 0;function mQ(e,t,n,r,i,o,a){switch(n){case pQ:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case hQ:return!(e.byteLength!=t.byteLength||!o(new Zw(e),new Zw(t)));case iQ:case oQ:case cQ:return QX(+e,+t);case aQ:return e.name==t.name&&e.message==t.message;case lQ:case dQ:return e==t+"";case sQ:var s=eQ;case uQ:var c=r&nQ;if(s||(s=tQ),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=rQ,a.set(e,t);var u=JX(s(e),s(t),r,i,o,a);return a.delete(e),u;case fQ:if(om)return om.call(e)==om.call(t)}return!1}var gQ=mQ,vQ=Rb,bQ=Kn;function yQ(e,t,n){var r=t(e);return bQ(e)?r:vQ(r,n(e))}var rk=yQ;function xQ(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var ik=xQ;function wQ(){return[]}var ok=wQ,_Q=ik,CQ=ok,$Q=Object.prototype,SQ=$Q.propertyIsEnumerable,Qw=Object.getOwnPropertySymbols,EQ=Qw?function(e){return e==null?[]:(e=Object(e),_Q(Qw(e),function(t){return SQ.call(e,t)}))}:CQ,jb=EQ,TQ=CT,kQ=TQ(Object.keys,Object),OQ=kQ,MQ=V0,RQ=OQ,AQ=Object.prototype,jQ=AQ.hasOwnProperty;function NQ(e){if(!MQ(e))return RQ(e);var t=[];for(var n in Object(e))jQ.call(e,n)&&n!="constructor"&&t.push(n);return t}var DQ=NQ,IQ=OT,PQ=DQ,LQ=gs;function FQ(e){return LQ(e)?IQ(e):PQ(e)}var Fl=FQ,BQ=rk,zQ=jb,WQ=Fl;function UQ(e){return BQ(e,WQ,zQ)}var ak=UQ,Jw=ak,VQ=1,HQ=Object.prototype,qQ=HQ.hasOwnProperty;function YQ(e,t,n,r,i,o){var a=n&VQ,s=Jw(e),c=s.length,l=Jw(t),u=l.length;if(c!=u&&!a)return!1;for(var d=c;d--;){var f=s[d];if(!(a?f in t:qQ.call(t,f)))return!1}var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<c;){f=s[d];var x=e[f],w=t[f];if(r)var _=a?r(w,x,f,t,e,o):r(x,w,f,e,t,o);if(!(_===void 0?x===w||i(x,w,n,r,o):_)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var C=e.constructor,y=t.constructor;C!=y&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof y=="function"&&y instanceof y)&&(m=!1)}return o.delete(e),o.delete(t),m}var GQ=YQ,KQ=ta,ZQ=Xr,XQ=KQ(ZQ,"DataView"),QQ=XQ,JQ=ta,eJ=Xr,tJ=JQ(eJ,"Promise"),nJ=tJ,rJ=ta,iJ=Xr,oJ=rJ(iJ,"Set"),sk=oJ,aJ=ta,sJ=Xr,cJ=aJ(sJ,"WeakMap"),lJ=cJ,Vg=QQ,Hg=F0,qg=nJ,Yg=sk,Gg=lJ,ck=Si,_s=mT,e2="[object Map]",uJ="[object Object]",t2="[object Promise]",n2="[object Set]",r2="[object WeakMap]",i2="[object DataView]",dJ=_s(Vg),fJ=_s(Hg),hJ=_s(qg),pJ=_s(Yg),mJ=_s(Gg),xo=ck;(Vg&&xo(new Vg(new ArrayBuffer(1)))!=i2||Hg&&xo(new Hg)!=e2||qg&&xo(qg.resolve())!=t2||Yg&&xo(new Yg)!=n2||Gg&&xo(new Gg)!=r2)&&(xo=function(e){var t=ck(e),n=t==uJ?e.constructor:void 0,r=n?_s(n):"";if(r)switch(r){case dJ:return i2;case fJ:return e2;case hJ:return t2;case pJ:return n2;case mJ:return r2}return t});var Gh=xo,am=nh,gJ=nk,vJ=gQ,bJ=GQ,o2=Gh,a2=Kn,s2=ih,yJ=G0,xJ=1,c2="[object Arguments]",l2="[object Array]",Su="[object Object]",wJ=Object.prototype,u2=wJ.hasOwnProperty;function _J(e,t,n,r,i,o){var a=a2(e),s=a2(t),c=a?l2:o2(e),l=s?l2:o2(t);c=c==c2?Su:c,l=l==c2?Su:l;var u=c==Su,d=l==Su,f=c==l;if(f&&s2(e)){if(!s2(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new am),a||yJ(e)?gJ(e,t,n,r,i,o):vJ(e,t,c,n,r,i,o);if(!(n&xJ)){var p=u&&u2.call(e,"__wrapped__"),g=d&&u2.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return o||(o=new am),i(m,v,n,r,o)}}return f?(o||(o=new am),bJ(e,t,n,r,i,o)):!1}var CJ=_J,$J=CJ,d2=yr;function lk(e,t,n,r,i){return e===t?!0:e==null||t==null||!d2(e)&&!d2(t)?e!==e&&t!==t:$J(e,t,n,r,lk,i)}var Nb=lk,SJ=Nb;function EJ(e,t){return SJ(e,t)}var TJ=EJ;const kJ=rn(TJ);var OJ={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dr.apply(this,arguments)}function Kg(e,t){return Kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Kg(e,t)}function Kh(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var MJ=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],RJ=function(e,t){return dr({},t,e)},AJ=function(e,t){var n=uH({},e,t);return MJ.forEach(function(r){lc(n,r,RJ(Vr(n,r),n.text))}),n},uk=h.createContext(),dk=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=h.useMemo(function(){var s=zq(o)?N0[o]:o;return{animate:r,config:s}},[r,o]);return b.jsx(uk.Provider,{value:a,children:t})},f2={animate:K.bool,motionConfig:K.oneOfType([K.oneOf(Object.keys(N0)),K.shape({mass:K.number,tension:K.number,friction:K.number,clamp:K.bool,precision:K.number,velocity:K.number,duration:K.number,easing:K.func})])};dk.propTypes={children:K.node.isRequired,animate:f2.animate,config:f2.motionConfig};var Fn=function(){return h.useContext(uk)},Db=function(e){var t=Fn(),n=t.animate,r=t.config,i=function(s){var c=h.useRef();return h.useEffect(function(){c.current=s},[s]),c.current}(e),o=h.useMemo(function(){return UT(i,e)},[i,e]),a=Zr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return to(a,o)},jJ={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:Le(vh),PRGn:Le(bh),PiYG:Le(yh),PuOr:Le(xh),RdBu:Le(wh),RdGy:Le(_h),RdYlBu:Le(Ch),RdYlGn:Le($h),spectral:Le(Sh),blues:Le(Lh),greens:Le(Fh),greys:Le(Bh),oranges:Le(Uh),purples:Le(zh),reds:Le(Wh),BuGn:Le(Eh),BuPu:Le(Th),GnBu:Le(kh),OrRd:Le(Oh),PuBuGn:Le(Mh),PuBu:Le(Rh),PuRd:Le(Ah),RdPu:Le(jh),YlGnBu:Le(Nh),YlGn:Le(Dh),YlOrBr:Le(Ih),YlOrRd:Le(Ph)},NJ=Object.keys(jJ);Le(vh),Le(bh),Le(yh),Le(xh),Le(wh),Le(_h),Le(Ch),Le($h),Le(Sh),Le(Lh),Le(Fh),Le(Bh),Le(Uh),Le(zh),Le(Wh),Le(Eh),Le(Th),Le(kh),Le(Oh),Le(Mh),Le(Rh),Le(Ah),Le(jh),Le(Nh),Le(Dh),Le(Ih),Le(Ph);K.oneOfType([K.oneOf(NJ),K.func,K.arrayOf(K.string)]);var Zg={basis:jZ,basisClosed:NZ,basisOpen:DZ,bundle:IZ,cardinal:PZ,cardinalClosed:LZ,cardinalOpen:FZ,catmullRom:BZ,catmullRomClosed:zZ,catmullRomOpen:WZ,linear:Sb,linearClosed:UZ,monotoneX:VZ,monotoneY:HZ,natural:qZ,step:YZ,stepAfter:KZ,stepBefore:GZ},Ib=Object.keys(Zg);Ib.filter(function(e){return e.endsWith("Closed")});P4(Ib,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");P4(Ib,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var fk=function(e){if(!Zg[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Zg[e]};K.shape({top:K.number,right:K.number,bottom:K.number,left:K.number}).isRequired;var DJ=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];K.oneOf(DJ);To(wb);var hk={top:0,right:0,bottom:0,left:0},Bl=function(e,t,n){return n===void 0&&(n={}),h.useMemo(function(){var r=dr({},hk,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},pk=function(){var e=h.useRef(null),t=h.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=h.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return h.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},IJ=function(e){return h.useMemo(function(){return AJ(OJ,e)},[e])},PJ=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?gh(e.slice("5")):Ll(e):function(t){return""+t}},Qa=function(e){return h.useMemo(function(){return PJ(e)},[e])},mk=h.createContext(),LJ={},gk=function(e){var t=e.theme,n=t===void 0?LJ:t,r=e.children,i=IJ(n);return b.jsx(mk.Provider,{value:i,children:r})};gk.propTypes={children:K.node.isRequired,theme:K.object};var Ft=function(){return h.useContext(mk)},FJ=["outlineWidth","outlineColor","outlineOpacity"],Pb=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Kh(e,FJ)},vk=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t};vk.propTypes={children:K.node.isRequired,condition:K.bool.isRequired,wrapper:K.element.isRequired};var BJ={position:"relative"},zl=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,c=e.motionConfig,l=h.useRef(null);return b.jsx(gk,{theme:n,children:b.jsx(dk,{animate:s,config:c,children:b.jsx(qL,{container:l,children:b.jsxs(vk,{condition:i,wrapper:b.jsx("div",{style:BJ,ref:l}),children:[t,a&&b.jsx(HL,{})]})})})})};zl.propTypes={children:K.element.isRequired,isInteractive:K.bool,renderWrapper:K.bool,theme:K.object,animate:K.bool,motionConfig:K.string};K.func.isRequired,K.bool,K.bool,K.object.isRequired,K.bool.isRequired,K.string;var Cs=function(e){var t=e.children,n=pk(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return b.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};Cs.propTypes={children:K.func.isRequired};var zJ=["id","colors"],bk=function(e){var t=e.id,n=e.colors,r=Kh(e,zJ);return b.jsx("linearGradient",dr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var o=i.offset,a=i.color,s=i.opacity;return b.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))};bk.propTypes={id:K.string.isRequired,colors:K.arrayOf(K.shape({offset:K.number.isRequired,color:K.string.isRequired,opacity:K.number})).isRequired,gradientTransform:K.string};var yk={linearGradient:bk},Ks={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Xg=h.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Ks.background:n,i=e.color,o=i===void 0?Ks.color:i,a=e.size,s=a===void 0?Ks.size:a,c=e.padding,l=c===void 0?Ks.padding:c,u=e.stagger,d=u===void 0?Ks.stagger:u,f=s+l,p=s/2,g=l/2;return d===!0&&(f=2*s+2*l),b.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:f,height:f,fill:r}),b.jsx("circle",{cx:g+p,cy:g+p,r:p,fill:o}),d&&b.jsx("circle",{cx:1.5*l+s+p,cy:1.5*l+s+p,r:p,fill:o})]})});Xg.displayName="PatternDots",Xg.propTypes={id:K.string.isRequired,color:K.string.isRequired,background:K.string.isRequired,size:K.number.isRequired,padding:K.number.isRequired,stagger:K.bool.isRequired};var fr=function(e){return e*Math.PI/180},Zh=function(e){return 180*e/Math.PI},WJ=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},Io=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},UJ=function(e){var t=e%360;return t<0&&(t+=360),t},VJ={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Zs={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Qg=h.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Zs.spacing:n,i=e.rotation,o=i===void 0?Zs.rotation:i,a=e.background,s=a===void 0?Zs.background:a,c=e.color,l=c===void 0?Zs.color:c,u=e.lineWidth,d=u===void 0?Zs.lineWidth:u,f=Math.round(o)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,m=p,v=p;return f===0?g=`
|
|
256
|
-
M 0 0 L `+m+` 0
|
|
257
|
-
M 0 `+v+" L "+m+" "+v+`
|
|
258
|
-
`:f===90?g=`
|
|
259
|
-
M 0 0 L 0 `+v+`
|
|
260
|
-
M `+m+" 0 L "+m+" "+v+`
|
|
261
|
-
`:(m=Math.abs(p/Math.sin(fr(f))),v=p/Math.sin(fr(90-f)),g=f>0?`
|
|
262
|
-
M 0 `+-v+" L "+2*m+" "+v+`
|
|
263
|
-
M `+-m+" "+-v+" L "+m+" "+v+`
|
|
264
|
-
M `+-m+" 0 L "+m+" "+2*v+`
|
|
265
|
-
`:`
|
|
266
|
-
M `+-m+" "+v+" L "+m+" "+-v+`
|
|
267
|
-
M `+-m+" "+2*v+" L "+2*m+" "+-v+`
|
|
268
|
-
M 0 `+2*v+" L "+2*m+` 0
|
|
269
|
-
`),b.jsxs("pattern",{id:t,width:m,height:v,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:m,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),b.jsx("path",{d:g,strokeWidth:d,stroke:l,strokeLinecap:"square"})]})});Qg.displayName="PatternLines",Qg.propTypes={id:K.string.isRequired,spacing:K.number.isRequired,rotation:K.number.isRequired,background:K.string.isRequired,color:K.string.isRequired,lineWidth:K.number.isRequired};var Xs={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Jg=h.memo(function(e){var t=e.id,n=e.color,r=n===void 0?Xs.color:n,i=e.background,o=i===void 0?Xs.background:i,a=e.size,s=a===void 0?Xs.size:a,c=e.padding,l=c===void 0?Xs.padding:c,u=e.stagger,d=u===void 0?Xs.stagger:u,f=s+l,p=l/2;return d===!0&&(f=2*s+2*l),b.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:f,height:f,fill:o}),b.jsx("rect",{x:p,y:p,width:s,height:s,fill:r}),d&&b.jsx("rect",{x:1.5*l+s,y:1.5*l+s,width:s,height:s,fill:r})]})});Jg.displayName="PatternSquares",Jg.propTypes={id:K.string.isRequired,color:K.string.isRequired,background:K.string.isRequired,size:K.number.isRequired,padding:K.number.isRequired,stagger:K.bool.isRequired};var xk={patternDots:Xg,patternLines:Qg,patternSquares:Jg},HJ=["type"],ev=dr({},yk,xk),wk=function(e){var t=e.defs;return!t||t.length<1?null:b.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=Kh(n,HJ);return ev[r]?h.createElement(ev[r],dr({key:i.id},i)):null})})};wk.propTypes={defs:K.arrayOf(K.shape({type:K.oneOf(Object.keys(ev)).isRequired,id:K.string.isRequired}))};var qJ=h.memo(wk),Xh=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,o=e.children,a=e.role,s=e.ariaLabel,c=e.ariaLabelledBy,l=e.ariaDescribedBy,u=e.isFocusable,d=Ft();return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":s,"aria-labelledby":c,"aria-describedby":l,focusable:u,tabIndex:u?0:void 0,children:[b.jsx(qJ,{defs:i}),b.jsx("rect",{width:t,height:n,fill:d.background}),b.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:o})]})};Xh.propTypes={width:K.number.isRequired,height:K.number.isRequired,margin:K.shape({top:K.number.isRequired,left:K.number.isRequired}).isRequired,defs:K.array,children:K.oneOfType([K.arrayOf(K.node),K.node]).isRequired,role:K.string,isFocusable:K.bool,ariaLabel:K.string,ariaLabelledBy:K.string,ariaDescribedBy:K.string};var _k=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return b.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};_k.propTypes={size:K.number.isRequired,color:K.string.isRequired,borderWidth:K.number.isRequired,borderColor:K.string.isRequired};var YJ=h.memo(_k),Ck=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?YJ:r,o=e.size,a=e.datum,s=e.color,c=e.borderWidth,l=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,p=e.labelYOffset,g=p===void 0?-12:p,m=Ft(),v=Fn(),x=v.animate,w=v.config,_=Zr({transform:"translate("+t+", "+n+")",config:w,immediate:!x});return b.jsxs(Lt.g,{transform:_.transform,style:{pointerEvents:"none"},children:[h.createElement(i,{size:o,color:s,datum:a,borderWidth:c,borderColor:l}),u&&b.jsx("text",{textAnchor:f,y:g,style:Pb(m.dots.text),children:u})]})};Ck.propTypes={x:K.number.isRequired,y:K.number.isRequired,datum:K.object.isRequired,size:K.number.isRequired,color:K.string.isRequired,borderWidth:K.number.isRequired,borderColor:K.string.isRequired,symbol:K.oneOfType([K.func,K.object]),label:K.oneOfType([K.string,K.number]),labelTextAnchor:K.oneOf(["start","middle","end"]),labelYOffset:K.number};var GJ=h.memo(Ck),$k=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,s=e.textStyle,c=e.legend,l=e.legendPosition,u=l===void 0?"top-right":l,d=e.legendOffsetX,f=d===void 0?14:d,p=e.legendOffsetY,g=p===void 0?14:p,m=e.legendOrientation,v=m===void 0?"horizontal":m,x=Ft(),w=0,_=0,C=0,y=0;r==="y"?(C=i(o),_=t):(w=i(o),y=n);var $=null;if(c){var E=function(T){var k=T.axis,O=T.width,S=T.height,M=T.position,A=T.offsetX,j=T.offsetY,L=T.orientation,N=0,F=0,U=L==="vertical"?-90:0,z="start";if(k==="x")switch(M){case"top-left":N=-A,F=j,z="end";break;case"top":F=-j,z=L==="horizontal"?"middle":"start";break;case"top-right":N=A,F=j,z=L==="horizontal"?"start":"end";break;case"right":N=A,F=S/2,z=L==="horizontal"?"start":"middle";break;case"bottom-right":N=A,F=S-j,z="start";break;case"bottom":F=S+j,z=L==="horizontal"?"middle":"end";break;case"bottom-left":F=S-j,N=-A,z=L==="horizontal"?"end":"start";break;case"left":N=-A,F=S/2,z=L==="horizontal"?"end":"middle"}else switch(M){case"top-left":N=A,F=-j,z="start";break;case"top":N=O/2,F=-j,z=L==="horizontal"?"middle":"start";break;case"top-right":N=O-A,F=-j,z=L==="horizontal"?"end":"start";break;case"right":N=O+A,z=L==="horizontal"?"start":"middle";break;case"bottom-right":N=O-A,F=j,z="end";break;case"bottom":N=O/2,F=j,z=L==="horizontal"?"middle":"end";break;case"bottom-left":N=A,F=j,z=L==="horizontal"?"start":"end";break;case"left":N=-A,z=L==="horizontal"?"end":"middle"}return{x:N,y:F,rotation:U,textAnchor:z}}({axis:r,width:t,height:n,position:u,offsetX:f,offsetY:g,orientation:v});$=b.jsx("text",{transform:"translate("+E.x+", "+E.y+") rotate("+E.rotation+")",textAnchor:E.textAnchor,dominantBaseline:"central",style:s,children:c})}return b.jsxs("g",{transform:"translate("+w+", "+C+")",children:[b.jsx("line",{x1:0,x2:_,y1:0,y2:y,stroke:x.markers.lineColor,strokeWidth:x.markers.lineStrokeWidth,style:a}),$]})};$k.propTypes={width:K.number.isRequired,height:K.number.isRequired,axis:K.oneOf(["x","y"]).isRequired,scale:K.func.isRequired,value:K.oneOfType([K.number,K.string,K.instanceOf(Date)]).isRequired,lineStyle:K.object,textStyle:K.object,legend:K.string,legendPosition:K.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:K.number.isRequired,legendOffsetY:K.number.isRequired,legendOrientation:K.oneOf(["horizontal","vertical"]).isRequired};var KJ=h.memo($k),Sk=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&t.length!==0?t.map(function(a,s){return b.jsx(KJ,dr({},a,{width:n,height:r,scale:a.axis==="y"?o:i}),s)}):null};Sk.propTypes={width:K.number.isRequired,height:K.number.isRequired,xScale:K.func.isRequired,yScale:K.func.isRequired,markers:K.arrayOf(K.shape({axis:K.oneOf(["x","y"]).isRequired,value:K.oneOfType([K.number,K.string,K.instanceOf(Date)]).isRequired,lineStyle:K.object,textStyle:K.object}))};var Ek=h.memo(Sk),ZJ=["theme","renderWrapper","animate","motionConfig"],Tk=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,Kg(n,r),i.prototype.render=function(){var o=this.props,a=o.theme,s=o.renderWrapper,c=o.animate,l=o.motionConfig,u=Kh(o,ZJ);return b.jsx(zl,{theme:a,renderWrapper:s,isInteractive:u.isInteractive,animate:c,motionConfig:l,children:b.jsx(e,dr({},u))})},i}(h.Component)},XJ=function(e,t){var n=L0(e)?e:function(r){return Vr(r,e)};return n},kk=function(e){return L0(e)?e:function(t){return Vr(t,e)}},Po=function(e){return h.useMemo(function(){return kk(e)},[e])},QJ=function(e,t,n,r){var i=n-e,o=r-t;return i*=i,o*=o,Math.sqrt(i+o)},Ok=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},bc=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,o=r.clientY,a=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===a.width?1:n.width/a.width;return[(i-a.left)*s,(o-a.top)*s]},JJ=Object.keys(yk),eee=Object.keys(xk),tee=function(e,t,n){if(e==="*")return!0;if(L0(e))return e(t);if(Y0(e)){var r=n?Vr(t,n):t;return kJ(BX(r,Object.keys(e)),e)}return!1},Lb=function(e,t,n,r){var i=r===void 0?{}:r,o=i.dataKey,a=i.colorKey,s=a===void 0?"color":a,c=i.targetKey,l=c===void 0?"fill":c,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(f){for(var p=function(){var m=n[g],v=m.id,x=m.match;if(tee(x,f,o)){var w=e.find(function(O){return O.id===v});if(w){if(eee.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var _=Vr(f,s),C=w.background,y=w.color,$=v;w.background==="inherit"&&($=$+".bg."+_,C=_),w.color==="inherit"&&($=$+".fg."+_,y=_),lc(f,l,"url(#"+$+")"),d[$]||(u.push(dr({},w,{id:$,background:C,color:y})),d[$]=1)}else lc(f,l,"url(#"+v+")");else if(JJ.includes(w.type))if(w.colors.map(function(O){return O.color}).includes("inherit")){var E=Vr(f,s),T=v,k=dr({},w,{colors:w.colors.map(function(O,S){return O.color!=="inherit"?O:(T=T+"."+S+"."+E,dr({},O,{color:O.color==="inherit"?E:O.color}))})});k.id=T,lc(f,l,"url(#"+T+")"),d[T]||(u.push(k),d[T]=1)}else lc(f,l,"url(#"+v+")")}return"break"}},g=0;g<n.length&&p()!=="break";g++);})),u};function Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gd.apply(this,arguments)}function h2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nee(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,o){if(i){if(typeof i=="string")return h2(i,o);var a=Object.prototype.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?h2(i,o):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
270
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Mk={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:T4,accent:k4,dark2:O4,paired:M4,pastel1:R4,pastel2:A4,set1:j4,set2:N4,set3:wb,tableau10:YG},ree=Object.keys(Mk),Rk={brown_blueGreen:vh,purpleRed_green:bh,pink_yellowGreen:yh,purple_orange:xh,red_blue:wh,red_grey:_h,red_yellow_blue:Ch,red_yellow_green:$h,spectral:Sh},iee=Object.keys(Rk),oee={brown_blueGreen:GG,purpleRed_green:KG,pink_yellowGreen:ZG,purple_orange:XG,red_blue:QG,red_grey:JG,red_yellow_blue:eK,red_yellow_green:tK,spectral:nK},Ak={blues:Lh,greens:Fh,greys:Bh,oranges:Uh,purples:zh,reds:Wh,blue_green:Eh,blue_purple:Th,green_blue:kh,orange_red:Oh,purple_blue_green:Mh,purple_blue:Rh,purple_red:Ah,red_purple:jh,yellow_green_blue:Nh,yellow_green:Dh,yellow_orange_brown:Ih,yellow_orange_red:Ph},aee=Object.keys(Ak),see={blues:mK,greens:gK,greys:vK,oranges:xK,purples:bK,reds:yK,turbo:OK,viridis:MK,inferno:AK,magma:RK,plasma:jK,cividis:wK,warm:CK,cool:$K,cubehelixDefault:_K,blue_green:rK,blue_purple:iK,green_blue:oK,orange_red:aK,purple_blue_green:sK,purple_blue:cK,purple_red:lK,red_purple:uK,yellow_green_blue:dK,yellow_green:fK,yellow_orange_brown:hK,yellow_orange_red:pK},sm=Gd({},Mk,Rk,Ak),cee=function(e){return ree.includes(e)},lee=function(e){return iee.includes(e)},uee=function(e){return aee.includes(e)},dee={rainbow:SK,sinebow:kK};Gd({},oee,see,dee);var fee=function(e,t){if(typeof e=="function")return e;if(Y0(e)){if(function(c){return c.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=Vr(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(c){return c.from!==void 0}(e)){var r=function(c){return Vr(c,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var c=i.value,l=c[0],u=c[1];if(l==="brighter")o.push(function(d){return d.brighter(u)});else if(l==="darker")o.push(function(d){return d.darker(u)});else{if(l!=="opacity")throw new Error("Invalid color modifier: '"+l+"', must be one of: 'brighter', 'darker', 'opacity'");o.push(function(d){return d.opacity=u,d})}},s=nee(e.modifiers);!(i=s()).done;)a();return o.length===0?r:function(c){return o.reduce(function(l,u){return u(l)},Za(r(c))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},qr=function(e,t){return h.useMemo(function(){return fee(e,t)},[e,t])};K.oneOfType([K.string,K.func,K.shape({theme:K.string.isRequired}),K.shape({from:K.string.isRequired,modifiers:K.arrayOf(K.array)})]);var hee=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return Vr(d,t)};if(Array.isArray(e)){var r=To(e),i=function(d){return r(n(d))};return i.scale=r,i}if(Y0(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return Vr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(cee(e.scheme)){var o=To(sm[e.scheme]),a=function(d){return o(n(d))};return a.scale=o,a}if(lee(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=To(sm[e.scheme][e.size||11]),c=function(d){return s(n(d))};return c.scale=s,c}if(uee(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var l=To(sm[e.scheme][e.size||9]),u=function(d){return l(n(d))};return u.scale=l,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Fb=function(e,t){return h.useMemo(function(){return hee(e,t)},[e,t])};function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zt.apply(this,arguments)}var pee={pointerEvents:"none"},mee=function(e){var t=e.label,n=e.style,r=Ft();return b.jsx(Lt.g,{transform:n.transform,opacity:n.progress,style:pee,children:b.jsx(Lt.text,{textAnchor:"middle",dominantBaseline:"central",style:Zt({},r.labels.text,{fill:n.textColor}),children:t})})},jk=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},gee=function(e,t){return e.filter(function(n){return Math.abs(Zh(n.arc.endAngle-n.arc.startAngle))>=t})},vee={startAngle:{enter:function(e){return Zt({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Zt({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Zt({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Zt({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Zt({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Zt({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Zt({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Zt({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Zt({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Zt({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Zt({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Zt({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Zt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Zt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Zt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Zt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},Nk=function(e,t){return h.useMemo(function(){var n=vee[e];return{enter:function(r){return Zt({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Zt({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Zt({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},bee=function(e,t){var n=WJ(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return Io(n,r)},yee=function(e){return function(t,n,r,i){return to([t,n,r,i],function(o,a,s,c){var l=bee({startAngle:o,endAngle:a,innerRadius:s,outerRadius:c},e);return"translate("+l.x+","+l.y+")"})}},xee=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=Fn(),o=i.animate,a=i.config,s=Nk(n,r);return{transition:Jo(e,{keys:function(c){return c.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!o}),interpolate:yee(t)}},wee=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,a=e.skipAngle,s=e.textColor,c=e.component,l=c===void 0?mee:c,u=Po(i),d=Ft(),f=qr(s,d),p=h.useMemo(function(){return n.filter(function(w){return Math.abs(Zh(w.arc.endAngle-w.arc.startAngle))>=a})},[n,a]),g=xee(p,o,r),m=g.transition,v=g.interpolate,x=l;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:m(function(w,_){return h.createElement(x,{key:_.id,datum:_,label:u(_),style:Zt({},w,{transform:v(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:f(_)})})})})},_ee=function(e){var t=e.label,n=e.style,r=Ft();return b.jsxs(Lt.g,{opacity:n.opacity,children:[b.jsx(Lt.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),b.jsx(Lt.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Zt({},r.labels.text,{fill:n.textColor}),children:t})]})},Cee=function(e){var t=jk(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},Dk=function(e,t,n,r){var i,o,a=jk(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=Io(a,e.outerRadius+t),c=Io(a,e.outerRadius+t+n);return a<Math.PI/2||a>1.5*Math.PI?(i="after",o={x:c.x+r,y:c.y}):(i="before",o={x:c.x-r,y:c.y}),{side:i,points:[s,c,o]}},$ee=Eb().x(function(e){return e.x}).y(function(e){return e.y}),See=function(e,t,n,r,i,o,a){return to([e,t,n,r,i,o,a],function(s,c,l,u,d,f,p){var g=Dk({startAngle:s,endAngle:c,innerRadius:l,outerRadius:u},d,f,p).points;return $ee(g)})},Eee=function(e,t,n,r){return to([e,t,n,r],function(i,o,a,s){return Cee({startAngle:i,endAngle:o,innerRadius:a,outerRadius:s})})},Tee=function(e,t,n,r,i,o,a,s){return to([e,t,n,r,i,o,a,s],function(c,l,u,d,f,p,g,m){var v=Dk({startAngle:c,endAngle:l,innerRadius:u,outerRadius:d},f,p,g),x=v.points,w=v.side,_=x[2];return w==="before"?_.x-=m:_.x+=m,"translate("+_.x+","+_.y+")"})},kee=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,o=e.straightLength,a=e.skipAngle,s=a===void 0?0:a,c=e.textOffset,l=e.linkColor,u=e.textColor,d=Fn(),f=d.animate,p=d.config,g=Ft(),m=qr(l,g),v=qr(u,g),x=function(_,C){return h.useMemo(function(){return gee(_,C)},[_,C])}(t,s),w=function(_){var C=_.offset,y=_.diagonalLength,$=_.straightLength,E=_.textOffset,T=_.getLinkColor,k=_.getTextColor;return h.useMemo(function(){return{enter:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:E,linkColor:T(O),textColor:k(O),opacity:0}},update:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:C,diagonalLength:y,straightLength:$,textOffset:E,linkColor:T(O),textColor:k(O),opacity:1}},leave:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:E,linkColor:T(O),textColor:k(O),opacity:0}}}},[y,$,E,T,k,C])}({offset:r,diagonalLength:i,straightLength:o,textOffset:c,getLinkColor:m,getTextColor:v});return{transition:Jo(x,{keys:function(_){return _.id},initial:w.update,from:w.enter,enter:w.update,update:w.update,leave:w.leave,config:p,immediate:!f}),interpolateLink:See,interpolateTextAnchor:Eee,interpolateTextPosition:Tee}},Oee=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,a=e.diagonalLength,s=e.straightLength,c=e.strokeWidth,l=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,p=f===void 0?_ee:f,g=Po(r),m=kee({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:s,textOffset:l,linkColor:d,textColor:u}),v=m.transition,x=m.interpolateLink,w=m.interpolateTextAnchor,_=m.interpolateTextPosition,C=p;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(y,$){return h.createElement(C,{key:$.id,datum:$,label:g($),style:Zt({},y,{thickness:c,path:x(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius,y.offset,y.diagonalLength,y.straightLength),textAnchor:w(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius),textPosition:_(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius,y.offset,y.diagonalLength,y.straightLength,y.textOffset)})})})})},Mee=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=h.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),c=h.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),l=h.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]),u=h.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]);return b.jsx(Lt.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?c:void 0,onMouseMove:o?l:void 0,onMouseLeave:a?u:void 0})},Ree=function(e,t,n,r,i){return to([e,t,n,r],function(o,a,s,c){return i({startAngle:o,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,c)})})},Aee=function(e,t,n){t===void 0&&(t="innerRadius");var r=Fn(),i=r.animate,o=r.config,a=Nk(t,n);return{transition:Jo(e,{keys:function(s){return s.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:o,immediate:!i}),interpolate:Ree}},jee=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,l=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?Mee:d,p=Ft(),g=qr(o,p),m=Aee(n,u,{enter:function(_){return{opacity:0,color:_.color,borderColor:g(_)}},update:function(_){return{opacity:1,color:_.color,borderColor:g(_)}},leave:function(_){return{opacity:0,color:_.color,borderColor:g(_)}}}),v=m.transition,x=m.interpolate,w=f;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(_,C){return h.createElement(w,{key:C.id,datum:C,style:Zt({},_,{borderWidth:i,path:x(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:c,onMouseLeave:l})})})},Nee=function(e,t,n,r,i,o){o===void 0&&(o=!0);var a=[],s=Io(fr(r),n);a.push([s.x,s.y]);var c=Io(fr(i),n);a.push([c.x,c.y]);for(var l=Math.round(Math.min(r,i));l<=Math.round(Math.max(r,i));l++)if(l%90==0){var u=Io(fr(l),n);a.push([u.x,u.y])}a=a.map(function(v){var x=v[0],w=v[1];return[e+x,t+w]}),o&&a.push([e,t]);var d=a.map(function(v){return v[0]}),f=a.map(function(v){return v[1]}),p=Math.min.apply(Math,d),g=Math.max.apply(Math,d),m=Math.min.apply(Math,f);return{points:a,x:p,y:m,width:g-p,height:Math.max.apply(Math,f)-m}},Dee=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,o=i===void 0?0:i;return h.useMemo(function(){return kZ().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])},Iee=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return b.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:a,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})},Pee=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return b.jsx("g",{transform:"translate("+t+","+n+")",children:b.jsx("path",{d:`
|
|
271
|
-
M`+r/2+` 0
|
|
272
|
-
L`+.8*r+" "+r/2+`
|
|
273
|
-
L`+r/2+" "+r+`
|
|
274
|
-
L`+.2*r+" "+r/2+`
|
|
275
|
-
L`+r/2+` 0
|
|
276
|
-
`,fill:i,opacity:a,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})})},Lee=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return b.jsx("rect",{x:t,y:n,fill:i,opacity:a,strokeWidth:c,stroke:l===void 0?"transparent":l,width:r,height:r,style:{pointerEvents:"none"}})},Fee=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return b.jsx("g",{transform:"translate("+t+","+n+")",children:b.jsx("path",{d:`
|
|
277
|
-
M`+r/2+` 0
|
|
278
|
-
L`+r+" "+r+`
|
|
279
|
-
L0 `+r+`
|
|
280
|
-
L`+r/2+` 0
|
|
281
|
-
`,fill:i,opacity:a,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})})};function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(this,arguments)}var Bee={top:0,right:0,bottom:0,left:0},Bb=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var c=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:Oo({},Bee,i),l=c.left+c.right,u=c.top+c.bottom,d=a+l,f=s+u,p=(o-1)*r;return n==="row"?d=a*o+p+l:n==="column"&&(f=s*o+p+u),{width:d,height:f,padding:c}},Ik=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,c=n,l=r;switch(t){case"top":c+=(i-a)/2;break;case"top-right":c+=i-a;break;case"right":c+=i-a,l+=(o-s)/2;break;case"bottom-right":c+=i-a,l+=o-s;break;case"bottom":c+=(i-a)/2,l+=o-s;break;case"bottom-left":l+=o-s;break;case"left":l+=(o-s)/2;break;case"center":c+=(i-a)/2,l+=(o-s)/2}return{x:c,y:l}},Pk=function(e){var t,n,r,i,o,a,s=e.direction,c=e.justify,l=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-l)/2,i=f/2,a="central",c?(r=d,o="end"):(r=l+u,o="start");break;case"right-to-left":t=d-l,n=(f-l)/2,i=f/2,a="central",c?(r=0,o="start"):(r=d-l-u,o="end");break;case"top-to-bottom":t=(d-l)/2,n=0,r=d/2,o="middle",c?(i=f,a="alphabetic"):(i=l+u,a="text-before-edge");break;case"bottom-to-top":t=(d-l)/2,n=f-l,r=d/2,o="middle",c?(i=0,a="text-before-edge"):(i=f-l-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},zee={circle:Iee,diamond:Pee,square:Lee,triangle:Fee},Wee=function(e){var t,n,r,i,o,a,s,c,l,u,d,f=e.x,p=e.y,g=e.width,m=e.height,v=e.data,x=e.direction,w=x===void 0?"left-to-right":x,_=e.justify,C=_!==void 0&&_,y=e.textColor,$=e.background,E=$===void 0?"transparent":$,T=e.opacity,k=T===void 0?1:T,O=e.symbolShape,S=O===void 0?"square":O,M=e.symbolSize,A=M===void 0?16:M,j=e.symbolSpacing,L=j===void 0?8:j,N=e.symbolBorderWidth,F=N===void 0?0:N,U=e.symbolBorderColor,z=U===void 0?"transparent":U,I=e.onClick,W=e.onMouseEnter,Y=e.onMouseLeave,J=e.toggleSerie,X=e.effects,Z=h.useState({}),Q=Z[0],te=Z[1],P=Ft(),D=h.useCallback(function(ve){if(X){var Ee=X.filter(function(Se){return Se.on==="hover"}).reduce(function(Se,Me){return Oo({},Se,Me.style)},{});te(Ee)}W==null||W(v,ve)},[W,v,X]),B=h.useCallback(function(ve){if(X){var Ee=X.filter(function(Se){return Se.on!=="hover"}).reduce(function(Se,Me){return Oo({},Se,Me.style)},{});te(Ee)}Y==null||Y(v,ve)},[Y,v,X]),H=Pk({direction:w,justify:C,symbolSize:(t=Q.symbolSize)!=null?t:A,symbolSpacing:L,width:g,height:m}),R=H.symbolX,G=H.symbolY,ee=H.labelX,ne=H.labelY,de=H.labelAnchor,oe=H.labelAlignment,ae=[I,W,Y,J].some(function(ve){return ve!==void 0}),me=typeof S=="function"?S:zee[S];return b.jsxs("g",{transform:"translate("+f+","+p+")",style:{opacity:(n=Q.itemOpacity)!=null?n:k},children:[b.jsx("rect",{width:g,height:m,fill:(r=Q.itemBackground)!=null?r:E,style:{cursor:ae?"pointer":"auto"},onClick:function(ve){I==null||I(v,ve),J==null||J(v.id)},onMouseEnter:D,onMouseLeave:B}),ie.createElement(me,Oo({id:v.id,x:R,y:G,size:(i=Q.symbolSize)!=null?i:A,fill:(o=(a=v.fill)!=null?a:v.color)!=null?o:"black",borderWidth:(s=Q.symbolBorderWidth)!=null?s:F,borderColor:(c=Q.symbolBorderColor)!=null?c:z},v.hidden?P.legends.hidden.symbol:void 0)),b.jsx("text",{textAnchor:de,style:Oo({},Pb(P.legends.text),{fill:(l=(u=(d=Q.itemTextColor)!=null?d:y)!=null?u:P.legends.text.fill)!=null?l:"black",dominantBaseline:oe,pointerEvents:"none",userSelect:"none"},v.hidden?P.legends.hidden.text:void 0),x:ee,y:ne,children:v.label})]})},Uee=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=o===void 0?0:o,s=e.justify,c=e.effects,l=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,p=e.itemsSpacing,g=p===void 0?0:p,m=e.itemTextColor,v=e.itemBackground,x=v===void 0?"transparent":v,w=e.itemOpacity,_=w===void 0?1:w,C=e.symbolShape,y=e.symbolSize,$=e.symbolSpacing,E=e.symbolBorderWidth,T=e.symbolBorderColor,k=e.onClick,O=e.onMouseEnter,S=e.onMouseLeave,M=e.toggleSerie,A=Bb({itemCount:t.length,itemWidth:l,itemHeight:u,itemsSpacing:g,direction:i,padding:a}).padding,j=i==="row"?l+g:0,L=i==="column"?u+g:0;return b.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(N,F){return b.jsx(Wee,{data:N,x:F*j+A.left,y:F*L+A.top,width:l,height:u,direction:f,justify:s,effects:c,textColor:m,background:x,opacity:_,symbolShape:C,symbolSize:y,symbolSpacing:$,symbolBorderWidth:E,symbolBorderColor:T,onClick:k,onMouseEnter:O,onMouseLeave:S,toggleSerie:M},F)})})},zb=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=i===void 0?0:i,a=e.translateY,s=a===void 0?0:a,c=e.anchor,l=e.direction,u=e.padding,d=u===void 0?0:u,f=e.justify,p=e.itemsSpacing,g=p===void 0?0:p,m=e.itemWidth,v=e.itemHeight,x=e.itemDirection,w=e.itemTextColor,_=e.itemBackground,C=e.itemOpacity,y=e.symbolShape,$=e.symbolSize,E=e.symbolSpacing,T=e.symbolBorderWidth,k=e.symbolBorderColor,O=e.onClick,S=e.onMouseEnter,M=e.onMouseLeave,A=e.toggleSerie,j=e.effects,L=Bb({itemCount:t.length,itemsSpacing:g,itemWidth:m,itemHeight:v,direction:l,padding:d}),N=L.width,F=L.height,U=Ik({anchor:c,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:N,height:F}),z=U.x,I=U.y;return b.jsx(Uee,{data:t,x:z,y:I,direction:l,padding:d,justify:f,effects:j,itemsSpacing:g,itemWidth:m,itemHeight:v,itemDirection:x,itemTextColor:w,itemBackground:_,itemOpacity:C,symbolShape:y,symbolSize:$,symbolSpacing:E,symbolBorderWidth:T,symbolBorderColor:k,onClick:O,onMouseEnter:S,onMouseLeave:M,toggleSerie:typeof A=="boolean"?void 0:A})},Vee={start:"left",middle:"center",end:"right"},Lk=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=o===void 0?0:o,s=t.translateY,c=s===void 0?0:s,l=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,p=t.justify,g=p!==void 0&&p,m=t.itemsSpacing,v=m===void 0?0:m,x=t.itemWidth,w=t.itemHeight,_=t.itemDirection,C=_===void 0?"left-to-right":_,y=t.itemTextColor,$=t.symbolSize,E=$===void 0?16:$,T=t.symbolSpacing,k=T===void 0?8:T,O=t.theme,S=Bb({itemCount:n.length,itemWidth:x,itemHeight:w,itemsSpacing:v,direction:u,padding:f}),M=S.width,A=S.height,j=S.padding,L=Ik({anchor:l,translateX:a,translateY:c,containerWidth:r,containerHeight:i,width:M,height:A}),N=L.x,F=L.y,U=u==="row"?x+v:0,z=u==="column"?w+v:0;e.save(),e.translate(N,F),e.font=O.legends.text.fontSize+"px "+(O.legends.text.fontFamily||"sans-serif"),n.forEach(function(I,W){var Y,J,X=W*U+j.left,Z=W*z+j.top,Q=Pk({direction:C,justify:g,symbolSize:E,symbolSpacing:k,width:x,height:w}),te=Q.symbolX,P=Q.symbolY,D=Q.labelX,B=Q.labelY,H=Q.labelAnchor,R=Q.labelAlignment;e.fillStyle=(Y=I.color)!=null?Y:"black",e.fillRect(X+te,Z+P,E,E),e.textAlign=Vee[H],R==="central"&&(e.textBaseline="middle"),e.fillStyle=(J=y??O.legends.text.fill)!=null?J:"black",e.fillText(String(I.label),X+D,Z+B)}),e.restore()};function oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oo.apply(this,arguments)}function Fk(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var p2,Hee=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return b.jsx(b.Fragment,{children:r.map(function(a,s){var c;return b.jsx(zb,oo({},a,{containerWidth:t,containerHeight:n,data:(c=a.data)!=null?c:i,toggleSerie:a.toggleSerie?o:void 0}),s)})})},We={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return b.jsx(P0,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(p2=window.devicePixelRatio)!=null?p2:1},qee=["points"],Yee=function(e){var t=e.data,n=e.id,r=n===void 0?We.id:n,i=e.value,o=i===void 0?We.value:i,a=e.valueFormat,s=e.colors,c=s===void 0?We.colors:s,l=Po(r),u=Po(o),d=Qa(a),f=Fb(c,"id");return h.useMemo(function(){return t.map(function(p){var g,m=l(p),v=u(p),x={id:m,label:(g=p.label)!=null?g:m,hidden:!1,value:v,formattedValue:d(v),data:p};return oo({},x,{color:f(x)})})},[t,l,u,d,f])},Gee=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,o=e.outerRadius,a=e.padAngle,s=e.sortByValue,c=e.activeId,l=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,p=h.useMemo(function(){var x=AZ().value(function(w){return w.value}).startAngle(fr(n)).endAngle(fr(r)).padAngle(fr(a));return s||x.sortValues(null),x},[n,r,a,s]),g=h.useMemo(function(){var x=t.filter(function(w){return!d.includes(w.id)});return{dataWithArc:p(x).map(function(w){var _=Math.abs(w.endAngle-w.startAngle);return oo({},w.data,{arc:{index:w.index,startAngle:w.startAngle,endAngle:w.endAngle,innerRadius:c===w.data.id?i-l:i,outerRadius:c===w.data.id?o+u:o,thickness:o-i,padAngle:w.padAngle,angle:_,angleDeg:Zh(_)}})}),legendData:t.map(function(w){return{id:w.id,label:w.label,color:w.color,hidden:d.includes(w.id),data:w}})}},[p,t,d,c,i,l,o,u]),m=g.legendData,v=h.useRef(f);return h.useEffect(function(){typeof v.current=="function"&&v.current(m)},[v,m]),g},Kee=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,o=h.useState(i||r===void 0?null:r),a=o[0],s=o[1];return{activeId:i?t:a,setActiveId:h.useCallback(function(c){n&&n(c),i||s(c)},[i,n,s])}},Zee=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=i===void 0?We.innerRadius:i,a=e.startAngle,s=a===void 0?We.startAngle:a,c=e.endAngle,l=c===void 0?We.endAngle:c,u=e.padAngle,d=u===void 0?We.padAngle:u,f=e.sortByValue,p=f===void 0?We.sortByValue:f,g=e.cornerRadius,m=g===void 0?We.cornerRadius:g,v=e.fit,x=v===void 0?We.fit:v,w=e.activeInnerRadiusOffset,_=w===void 0?We.activeInnerRadiusOffset:w,C=e.activeOuterRadiusOffset,y=C===void 0?We.activeOuterRadiusOffset:C,$=e.activeId,E=e.onActiveIdChange,T=e.defaultActiveId,k=e.forwardLegendData,O=Kee({activeId:$,onActiveIdChange:E,defaultActiveId:T}),S=O.activeId,M=O.setActiveId,A=h.useState([]),j=A[0],L=A[1],N=h.useMemo(function(){var z,I=Math.min(n,r)/2,W=I*Math.min(o,1),Y=n/2,J=r/2;if(x){var X=Nee(Y,J,I,s-90,l-90),Z=X.points,Q=Fk(X,qee),te=Math.min(n/Q.width,r/Q.height),P={width:Q.width*te,height:Q.height*te};P.x=(n-P.width)/2,P.y=(r-P.height)/2,Y=(Y-Q.x)/Q.width*Q.width*te+P.x,J=(J-Q.y)/Q.height*Q.height*te+P.y,z={box:Q,ratio:te,points:Z},I*=te,W*=te}return{centerX:Y,centerY:J,radius:I,innerRadius:W,debug:z}},[n,r,o,s,l,x]),F=Gee({data:t,startAngle:s,endAngle:l,innerRadius:N.innerRadius,outerRadius:N.radius,padAngle:d,sortByValue:p,activeId:S,activeInnerRadiusOffset:_,activeOuterRadiusOffset:y,hiddenIds:j,forwardLegendData:k}),U=h.useCallback(function(z){L(function(I){return I.indexOf(z)>-1?I.filter(function(W){return W!==z}):[].concat(I,[z])})},[]);return oo({arcGenerator:Dee({cornerRadius:m,padAngle:fr(d)}),activeId:S,setActiveId:M,toggleSerie:U},F,N)},Xee=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,a=e.innerRadius;return h.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:a}},[t,n,r,i,o,a])},Qee=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.isInteractive,s=e.onClick,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,p=e.transitionMode,g=ea(),m=g.showTooltipFromEvent,v=g.hideTooltip,x=h.useMemo(function(){if(a)return function(y,$){s==null||s(y,$)}},[a,s]),w=h.useMemo(function(){if(a)return function(y,$){m(h.createElement(f,{datum:y}),$),d(y.id),c==null||c(y,$)}},[a,m,d,c,f]),_=h.useMemo(function(){if(a)return function(y,$){m(h.createElement(f,{datum:y}),$),l==null||l(y,$)}},[a,m,l,f]),C=h.useMemo(function(){if(a)return function(y,$){v(),d(null),u==null||u(y,$)}},[a,v,d,u]);return b.jsx(jee,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:p,onClick:x,onMouseEnter:w,onMouseMove:_,onMouseLeave:C})},Jee=["isInteractive","animate","motionConfig","theme","renderWrapper"],ete=function(e){var t=e.data,n=e.id,r=n===void 0?We.id:n,i=e.value,o=i===void 0?We.value:i,a=e.valueFormat,s=e.sortByValue,c=s===void 0?We.sortByValue:s,l=e.layers,u=l===void 0?We.layers:l,d=e.startAngle,f=d===void 0?We.startAngle:d,p=e.endAngle,g=p===void 0?We.endAngle:p,m=e.padAngle,v=m===void 0?We.padAngle:m,x=e.fit,w=x===void 0?We.fit:x,_=e.innerRadius,C=_===void 0?We.innerRadius:_,y=e.cornerRadius,$=y===void 0?We.cornerRadius:y,E=e.activeInnerRadiusOffset,T=E===void 0?We.activeInnerRadiusOffset:E,k=e.activeOuterRadiusOffset,O=k===void 0?We.activeOuterRadiusOffset:k,S=e.width,M=e.height,A=e.margin,j=e.colors,L=j===void 0?We.colors:j,N=e.borderWidth,F=N===void 0?We.borderWidth:N,U=e.borderColor,z=U===void 0?We.borderColor:U,I=e.enableArcLabels,W=I===void 0?We.enableArcLabels:I,Y=e.arcLabel,J=Y===void 0?We.arcLabel:Y,X=e.arcLabelsSkipAngle,Z=X===void 0?We.arcLabelsSkipAngle:X,Q=e.arcLabelsTextColor,te=Q===void 0?We.arcLabelsTextColor:Q,P=e.arcLabelsRadiusOffset,D=P===void 0?We.arcLabelsRadiusOffset:P,B=e.arcLabelsComponent,H=e.enableArcLinkLabels,R=H===void 0?We.enableArcLinkLabels:H,G=e.arcLinkLabel,ee=G===void 0?We.arcLinkLabel:G,ne=e.arcLinkLabelsSkipAngle,de=ne===void 0?We.arcLinkLabelsSkipAngle:ne,oe=e.arcLinkLabelsOffset,ae=oe===void 0?We.arcLinkLabelsOffset:oe,me=e.arcLinkLabelsDiagonalLength,ve=me===void 0?We.arcLinkLabelsDiagonalLength:me,Ee=e.arcLinkLabelsStraightLength,Se=Ee===void 0?We.arcLinkLabelsStraightLength:Ee,Me=e.arcLinkLabelsThickness,ge=Me===void 0?We.arcLinkLabelsThickness:Me,_e=e.arcLinkLabelsTextOffset,ce=_e===void 0?We.arcLinkLabelsTextOffset:_e,Oe=e.arcLinkLabelsTextColor,Ue=Oe===void 0?We.arcLinkLabelsTextColor:Oe,Ot=e.arcLinkLabelsColor,qe=Ot===void 0?We.arcLinkLabelsColor:Ot,ht=e.arcLinkLabelComponent,_t=e.defs,Vt=_t===void 0?We.defs:_t,gt=e.fill,bt=gt===void 0?We.fill:gt,Ct=e.isInteractive,Ht=Ct===void 0?We.isInteractive:Ct,Be=e.onClick,Pe=e.onMouseEnter,et=e.onMouseMove,Ve=e.onMouseLeave,tt=e.tooltip,nt=tt===void 0?We.tooltip:tt,$t=e.activeId,pt=e.onActiveIdChange,ut=e.defaultActiveId,xt=e.transitionMode,yt=xt===void 0?We.transitionMode:xt,at=e.legends,St=at===void 0?We.legends:at,Mt=e.forwardLegendData,we=e.role,Re=we===void 0?We.role:we,De=Bl(S,M,A),Ke=De.outerWidth,Ye=De.outerHeight,Et=De.margin,q=De.innerWidth,he=De.innerHeight,le=Yee({data:t,id:r,value:o,valueFormat:a,colors:L}),fe=Zee({data:le,width:q,height:he,fit:w,innerRadius:C,startAngle:f,endAngle:g,padAngle:v,sortByValue:c,cornerRadius:$,activeInnerRadiusOffset:T,activeOuterRadiusOffset:O,activeId:$t,onActiveIdChange:pt,defaultActiveId:ut,forwardLegendData:Mt}),$e=fe.dataWithArc,Ie=fe.legendData,Te=fe.arcGenerator,Ne=fe.centerX,He=fe.centerY,ze=fe.radius,st=fe.innerRadius,nn=fe.setActiveId,Ut=fe.toggleSerie,cn=Lb(Vt,$e,bt),Ce={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(Ce.arcs=b.jsx(Qee,{center:[Ne,He],data:$e,arcGenerator:Te,borderWidth:F,borderColor:z,isInteractive:Ht,onClick:Be,onMouseEnter:Pe,onMouseMove:et,onMouseLeave:Ve,setActiveId:nn,tooltip:nt,transitionMode:yt},"arcs")),R&&u.includes("arcLinkLabels")&&(Ce.arcLinkLabels=b.jsx(Oee,{center:[Ne,He],data:$e,label:ee,skipAngle:de,offset:ae,diagonalLength:ve,straightLength:Se,strokeWidth:ge,textOffset:ce,textColor:Ue,linkColor:qe,component:ht},"arcLinkLabels")),W&&u.includes("arcLabels")&&(Ce.arcLabels=b.jsx(wee,{center:[Ne,He],data:$e,label:J,radiusOffset:D,skipAngle:Z,textColor:te,transitionMode:yt,component:B},"arcLabels")),St.length>0&&u.includes("legends")&&(Ce.legends=b.jsx(Hee,{width:q,height:he,data:Ie,legends:St,toggleSerie:Ut},"legends"));var xn=Xee({dataWithArc:$e,arcGenerator:Te,centerX:Ne,centerY:He,radius:ze,innerRadius:st});return b.jsx(Xh,{width:Ke,height:Ye,margin:Et,defs:cn,role:Re,children:u.map(function(qt,xr){return Ce[qt]!==void 0?Ce[qt]:typeof qt=="function"?b.jsx(h.Fragment,{children:h.createElement(qt,xn)},xr):null})})},tte=function(e){var t=e.isInteractive,n=t===void 0?We.isInteractive:t,r=e.animate,i=r===void 0?We.animate:r,o=e.motionConfig,a=o===void 0?We.motionConfig:o,s=e.theme,c=e.renderWrapper,l=Fk(e,Jee);return b.jsx(zl,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:c,theme:s,children:b.jsx(ete,oo({isInteractive:n},l))})},nte=function(e){return b.jsx(Cs,{children:function(t){var n=t.width,r=t.height;return b.jsx(tte,oo({width:n,height:r},e))}})};function rte(){}var ite=rte,cm=sk,ote=ite,ate=Ab,ste=1/0,cte=cm&&1/ate(new cm([,-0]))[1]==ste?function(e){return new cm(e)}:ote,lte=cte,ute=_b,dte=D4,fte=I4,hte=Cb,pte=lte,mte=Ab,gte=200;function vte(e,t,n){var r=-1,i=dte,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=fte;else if(o>=gte){var l=t?null:pte(e);if(l)return mte(l);a=!1,i=hte,c=new ute}else c=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}var Bk=vte,bte=Bk;function yte(e){return e&&e.length?bte(e):[]}var xte=yte;const m2=rn(xte);var wte=nh,_te=Nb,Cte=1,$te=2;function Ste(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var c=s[0],l=e[c],u=s[1];if(a&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new wte;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?_te(u,l,Cte|$te,r,d):f))return!1}}return!0}var Ete=Ste,Tte=Qr;function kte(e){return e===e&&!Tte(e)}var zk=kte,Ote=zk,Mte=Fl;function Rte(e){for(var t=Mte(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ote(i)]}return t}var Ate=Rte;function jte(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Wk=jte,Nte=Ete,Dte=Ate,Ite=Wk;function Pte(e){var t=Dte(e);return t.length==1&&t[0][2]?Ite(t[0][0],t[0][1]):function(n){return n===e||Nte(n,e,t)}}var Lte=Pte,Fte=Nb,Bte=PT,zte=Q4,Wte=X0,Ute=zk,Vte=Wk,Hte=xs,qte=1,Yte=2;function Gte(e,t){return Wte(e)&&Ute(t)?Vte(Hte(e),t):function(n){var r=Bte(n,e);return r===void 0&&r===t?zte(n,e):Fte(t,r,qte|Yte)}}var Kte=Gte;function Zte(e){return function(t){return t==null?void 0:t[e]}}var Xte=Zte,Qte=Pl;function Jte(e){return function(t){return Qte(t,e)}}var ene=Jte,tne=Xte,nne=ene,rne=X0,ine=xs;function one(e){return rne(e)?tne(ine(e)):nne(e)}var ane=one,sne=Lte,cne=Kte,lne=sh,une=Kn,dne=ane;function fne(e){return typeof e=="function"?e:e==null?lne:typeof e=="object"?une(e)?cne(e[0],e[1]):sne(e):dne(e)}var Wb=fne,hne=Wb,pne=Bk;function mne(e,t){return e&&e.length?pne(e,hne(t)):[]}var gne=mne;const tv=rn(gne);var vne=bT,bne=Fl;function yne(e,t){return e&&vne(e,t,bne)}var xne=yne,wne=gs;function _ne(e,t){return function(n,r){if(n==null)return n;if(!wne(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Cne=_ne,$ne=xne,Sne=Cne,Ene=Sne($ne),Uk=Ene,Tne=Uk,kne=gs;function One(e,t){var n=-1,r=kne(e)?Array(e.length):[];return Tne(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var Mne=One;function Rne(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Ane=Rne,g2=ch;function jne(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=g2(e),a=t!==void 0,s=t===null,c=t===t,l=g2(t);if(!s&&!l&&!o&&e>t||o&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!c)return-1}return 0}var Nne=jne,Dne=Nne;function Ine(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var c=Dne(i[r],o[r]);if(c){if(r>=s)return c;var l=n[r];return c*(l=="desc"?-1:1)}}return e.index-t.index}var Pne=Ine,lm=lh,Lne=Pl,Fne=Wb,Bne=Mne,zne=Ane,Wne=vs,Une=Pne,Vne=sh,Hne=Kn;function qne(e,t,n){t.length?t=lm(t,function(o){return Hne(o)?function(a){return Lne(a,o.length===1?o[0]:o)}:o}):t=[Vne];var r=-1;t=lm(t,Wne(Fne));var i=Bne(e,function(o,a,s){var c=lm(t,function(l){return l(o)});return{criteria:c,index:++r,value:o}});return zne(i,function(o,a){return Une(o,a,n)})}var Yne=qne,Gne=ek,Kne=Yne,Zne=Z0,v2=jT,Xne=Zne(function(e,t){if(e==null)return[];var n=t.length;return n>1&&v2(e,t[0],t[1])?t=[]:n>2&&v2(t[0],t[1],t[2])&&(t=[t[0]]),Kne(e,Gne(t,1),[])}),Qne=Xne;const Jne=rn(Qne);var ere=Si,tre=yr,nre="[object Date]";function rre(e){return tre(e)&&ere(e)==nre}var ire=rre,ore=ire,are=vs,b2=oh,y2=b2&&b2.isDate,sre=y2?are(y2):ore,cre=sre;const lre=rn(cre);function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_o.apply(this,arguments)}var ma=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],ure={millisecond:[],second:ma.slice(0,1),minute:ma.slice(0,2),hour:ma.slice(0,3),day:ma.slice(0,4),month:ma.slice(0,5),year:ma.slice(0,6)},dre=function(e){return function(t){return ure[e].forEach(function(n){n(t)}),t}},Vk=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,o=e.useUTC,a=o===void 0||o,s=dre(i);return function(c){if(c===void 0)return c;if(n==="native"||c instanceof Date)return s(c);var l=a?E4(n):$4(n);return s(l(c))}},fre=function(e,t,n,r){var i,o,a,s,c=e.min,l=c===void 0?0:c,u=e.max,d=u===void 0?"auto":u,f=e.stacked,p=f!==void 0&&f,g=e.reverse,m=g!==void 0&&g,v=e.clamp,x=v!==void 0&&v,w=e.nice,_=w!==void 0&&w;l==="auto"?i=p===!0?(o=t.minStacked)!=null?o:0:t.min:i=l,d==="auto"?a=p===!0?(s=t.maxStacked)!=null?s:0:t.max:a=d;var C=XT().rangeRound(r==="x"?[0,n]:[n,0]).domain(m?[a,i]:[i,a]).clamp(x);return _===!0?C.nice():typeof _=="number"&&C.nice(_),hre(C,p)},hre=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},pre=function(e,t,n){var r=tY().range([0,n]).domain(t.all);return r.type="point",r},mre=function(e,t,n,r){var i=e.round,o=i===void 0||i,a=ob().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return gre(a)},gre=function(e){var t=e;return t.type="band",t},vre=function(e,t,n){var r,i,o=e.format,a=o===void 0?"native":o,s=e.precision,c=s===void 0?"millisecond":s,l=e.min,u=l===void 0?"auto":l,d=e.max,f=d===void 0?"auto":d,p=e.useUTC,g=p===void 0||p,m=e.nice,v=m!==void 0&&m,x=Vk({format:a,precision:c,useUTC:g});r=u==="auto"?x(t.min):a!=="native"?x(u):u,i=f==="auto"?x(t.max):a!=="native"?x(f):f;var w=g?qG():HG();w.range([0,n]),r&&i&&w.domain([r,i]),v===!0?w.nice():typeof v!="object"&&typeof v!="number"||w.nice(v);var _=w;return _.type="time",_.useUTC=g,_},bre=function(e,t,n,r){var i,o=e.base,a=o===void 0?10:o,s=e.min,c=s===void 0?"auto":s,l=e.max,u=l===void 0?"auto":l;if(t.all.some(function(m){return m===0}))throw new Error("a log scale domain must not include or cross zero");var d,f,p=!1;if(t.all.filter(function(m){return m!=null}).forEach(function(m){p||(i===void 0?i=Math.sign(m):Math.sign(m)!==i&&(p=!0))}),p)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=c==="auto"?t.min:c,f=u==="auto"?t.max:u;var g=JT().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(a).nice();return g.type="log",g},yre=function(e,t,n,r){var i,o,a=e.constant,s=a===void 0?1:a,c=e.min,l=c===void 0?"auto":c,u=e.max,d=u===void 0?"auto":u,f=e.reverse,p=f!==void 0&&f;i=l==="auto"?t.min:l,o=d==="auto"?t.max:d;var g=e4().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();p===!0?g.domain([o,i]):g.domain([i,o]);var m=g;return m.type="symlog",m},xre=function(e){return e==="x"?"y":"x"},wre=function(e,t){return e===t},_re=function(e,t){return e.getTime()===t.getTime()};function ll(e,t,n,r){switch(e.type){case"linear":return fre(e,t,n,r);case"point":return pre(e,t,n);case"band":return mre(e,t,n,r);case"time":return vre(e,t,n);case"log":return bre(e,t,n,r);case"symlog":return yre(e,t,n,r);default:throw new Error("invalid scale spec")}}var x2=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data[t==="x"?"xStacked":"yStacked"];return i==null?null:n(i)}return(r=n(e.data[t]))!=null?r:null},Cre=function(e,t,n,r,i){var o=e.map(function(u){return function(d){return _o({},d,{data:d.data.map(function(f){return{data:_o({},f)}})})}(u)}),a=$re(o,t,n);"stacked"in t&&t.stacked===!0&&Sre(a,o),"stacked"in n&&n.stacked===!0&&Ere(a,o);var s=ll(t,a.x,r,"x"),c=ll(n,a.y,i,"y"),l=o.map(function(u){return _o({},u,{data:u.data.map(function(d){return _o({},d,{position:{x:x2(d,"x",s),y:x2(d,"y",c)}})})})});return _o({},a,{series:l,xScale:s,yScale:c})},$re=function(e,t,n){return{x:w2(e,"x",t),y:w2(e,"y",n)}},w2=function(e,t,n,r){var i={},o=i.getValue,a=o===void 0?function(g){return g.data[t]}:o,s=i.setValue,c=s===void 0?function(g,m){g.data[t]=m}:s;if(n.type==="linear")e.forEach(function(g){g.data.forEach(function(m){var v=a(m);v&&c(m,parseFloat(String(v)))})});else if(n.type==="time"&&n.format!=="native"){var l=Vk(n);e.forEach(function(g){g.data.forEach(function(m){var v=a(m);v&&c(m,l(v))})})}var u=[];switch(e.forEach(function(g){g.data.forEach(function(m){u.push(a(m))})}),n.type){case"linear":var d=Jne(m2(u).filter(function(g){return g!==null}),function(g){return g});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=tv(u,function(g){return g.getTime()}).slice(0).sort(function(g,m){return m.getTime()-g.getTime()}).reverse();return{all:f,min:f[0],max:Le(f)};default:var p=m2(u);return{all:p,min:p[0],max:Le(p)}}},Hk=function(e,t,n){var r=xre(e),i=[];t[r].all.forEach(function(o){var a=lre(o)?_re:wre,s=[];n.forEach(function(c){var l=c.data.find(function(p){return a(p.data[r],o)}),u=null,d=null;if(l!==void 0){if((u=l.data[e])!==null){var f=Le(s);f===void 0?d=u:f!==null&&(d=f+u)}l.data[e==="x"?"xStacked":"yStacked"]=d}s.push(d),d!==null&&i.push(d)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},Sre=function(e,t){return Hk("x",e,t)},Ere=function(e,t){return Hk("y",e,t)},qk=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},Yk={millisecond:[ol,ol],second:[zg,zg],minute:[a4,h4],hour:[s4,p4],day:[dn(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),dn(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[zd,Wd],sunday:[zd,Wd],monday:[al,sl],tuesday:[c4,m4],wednesday:[l4,g4],thursday:[Go,Ko],friday:[u4,v4],saturday:[d4,b4],month:[f4,y4],year:[no,ro]},Tre=Object.keys(Yk),kre=new RegExp("^every\\s*(\\d+)?\\s*("+Tre.join("|")+")s?$","i"),Gk=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(kre);if(n){var r=n[1],i=n[2],o=Yk[i][e.useUTC?1:0];if(i==="day"){var a,s,c=e.domain(),l=c[0],u=c[1],d=new Date(u);return d.setDate(d.getDate()+1),(a=(s=o.every(Number(r??1)))==null?void 0:s.range(l,d))!=null?a:[]}if(r===void 0)return e.ticks(o);var f=o.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(p=t)=="number"&&isFinite(p)&&Math.floor(p)===p)return e.ticks(t)}var p;return e.domain()};function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}var Kk=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,s=e.tickPadding,c=e.tickRotation,l=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=Gk(r,o),p=VJ[d],g="bandwidth"in r?qk(r):r,m={lineX:0,lineY:0},v={textX:0,textY:0},x=typeof document=="object"&&document.dir==="rtl",w=p.align.center,_=p.baseline.center;return n==="x"?(t=function(C){var y;return{x:(y=g(C))!=null?y:0,y:0}},m.lineY=a*(i==="after"?1:-1),v.textY=(a+s)*(i==="after"?1:-1),_=i==="after"?p.baseline.top:p.baseline.bottom,c===0?w=p.align.center:i==="after"&&c<0||i==="before"&&c>0?(w=p.align[x?"left":"right"],_=p.baseline.center):(i==="after"&&c>0||i==="before"&&c<0)&&(w=p.align[x?"right":"left"],_=p.baseline.center)):(t=function(C){var y;return{x:0,y:(y=g(C))!=null?y:0}},m.lineX=a*(i==="after"?1:-1),v.textX=(a+s)*(i==="after"?1:-1),w=i==="after"?p.align.left:p.align.right),{ticks:f.map(function(C){var y=typeof C=="string"?function($){var E=String($).length;return l&&l>0&&E>l?""+String($).slice(0,l).concat("..."):""+$}(C):C;return hr({key:C instanceof Date?""+C.valueOf():""+C,value:y},t(C),m,v)}),textAlign:w,textBaseline:_}},Zk=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=gh(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Ll(e)},nv=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||Gk(i,a)),c="bandwidth"in i?qk(i):i,l=o==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=c(u))!=null?d:0,x2:(f=c(u))!=null?f:0,y1:0,y2:r}}):s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:0,x2:n,y1:(d=c(u))!=null?d:0,y2:(f=c(u))!=null?f:0}});return l},Ore=h.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,c=e.textAnchor,l=e.animatedProps,u=Ft(),d=u.axis.ticks.line,f=u.axis.ticks.text,p=(t=r==null?void 0:r(n))!=null?t:n,g=h.useMemo(function(){var m={opacity:l.opacity};return a?{style:hr({},m,{cursor:"pointer"}),onClick:function(v){return a(v,p)}}:{style:m}},[l.opacity,a,p]);return b.jsxs(Lt.g,hr({transform:l.transform},g,{children:[b.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:d}),f.outlineWidth>0&&b.jsx(Lt.text,{dominantBaseline:s,textAnchor:c,transform:l.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+p}),b.jsx(Lt.text,{dominantBaseline:s,textAnchor:c,transform:l.textTransform,style:Pb(f),children:""+p})]}))}),Mre=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,o=e.y,a=o===void 0?0:o,s=e.length,c=e.ticksPosition,l=e.tickValues,u=e.tickSize,d=u===void 0?5:u,f=e.tickPadding,p=f===void 0?5:f,g=e.tickRotation,m=g===void 0?0:g,v=e.format,x=e.renderTick,w=x===void 0?Ore:x,_=e.truncateTickAt,C=e.legend,y=e.legendPosition,$=y===void 0?"end":y,E=e.legendOffset,T=E===void 0?0:E,k=e.onClick,O=e.ariaHidden,S=Ft(),M=S.axis.legend.text,A=h.useMemo(function(){return Zk(v,n)},[v,n]),j=Kk({axis:t,scale:n,ticksPosition:c,tickValues:l,tickSize:d,tickPadding:p,tickRotation:m,truncateTickAt:_}),L=j.ticks,N=j.textAlign,F=j.textBaseline,U=null;if(C!==void 0){var z,I=0,W=0,Y=0;t==="y"?(Y=-90,I=T,$==="start"?(z="start",W=s):$==="middle"?(z="middle",W=s/2):$==="end"&&(z="end")):(W=T,$==="start"?z="start":$==="middle"?(z="middle",I=s/2):$==="end"&&(z="end",I=s)),U=b.jsxs(b.Fragment,{children:[M.outlineWidth>0&&b.jsx("text",{transform:"translate("+I+", "+W+") rotate("+Y+")",textAnchor:z,style:hr({dominantBaseline:"central"},M),strokeWidth:2*M.outlineWidth,stroke:M.outlineColor,strokeLinejoin:"round",children:C}),b.jsx("text",{transform:"translate("+I+", "+W+") rotate("+Y+")",textAnchor:z,style:hr({dominantBaseline:"central"},M),children:C})]})}var J=Fn(),X=J.animate,Z=J.config,Q=Zr({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:Z,immediate:!X}),te=h.useCallback(function(B){return{opacity:1,transform:"translate("+B.x+","+B.y+")",textTransform:"translate("+B.textX+","+B.textY+") rotate("+m+")"}},[m]),P=h.useCallback(function(B){return{opacity:0,transform:"translate("+B.x+","+B.y+")",textTransform:"translate("+B.textX+","+B.textY+") rotate("+m+")"}},[m]),D=Jo(L,{keys:function(B){return B.key},initial:te,from:P,enter:te,update:te,leave:{opacity:0},config:Z,immediate:!X});return b.jsxs(Lt.g,{transform:Q.transform,"aria-hidden":O,children:[D(function(B,H,R,G){return ie.createElement(w,hr({tickIndex:G,format:A,rotate:m,textBaseline:F,textAnchor:N,truncateTickAt:_,animatedProps:B},H,k?{onClick:k}:{}))}),b.jsx(Lt.line,{style:S.axis.domain.line,x1:0,x2:Q.lineX2,y1:0,y2:Q.lineY2}),U]})},Rre=h.memo(Mre),Xk=["top","right","bottom","left"],Qk=h.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return b.jsx(b.Fragment,{children:Xk.map(function(a){var s=o[a];if(!s)return null;var c=a==="top"||a==="bottom";return b.jsx(Rre,hr({},s,{axis:c?"x":"y",x:a==="right"?r:0,y:a==="bottom"?i:0,scale:c?t:n,length:c?r:i,ticksPosition:a==="top"||a==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),a)})})}),Are=h.memo(function(e){var t=e.animatedProps,n=Ft();return b.jsx(Lt.line,hr({},t,n.grid.line))}),_2=h.memo(function(e){var t=e.lines,n=Fn(),r=n.animate,i=n.config,o=Jo(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:i,immediate:!r});return b.jsx("g",{children:o(function(a,s){return h.createElement(Are,hr({},s,{key:s.key,animatedProps:a}))})})}),Jk=h.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=h.useMemo(function(){return!!r&&nv({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),c=h.useMemo(function(){return!!i&&nv({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return b.jsxs(b.Fragment,{children:[s&&b.jsx(_2,{lines:s}),c&&b.jsx(_2,{lines:c})]})}),jre=function(e,t){var n,r=t.axis,i=t.scale,o=t.x,a=o===void 0?0:o,s=t.y,c=s===void 0?0:s,l=t.length,u=t.ticksPosition,d=t.tickValues,f=t.tickSize,p=f===void 0?5:f,g=t.tickPadding,m=g===void 0?5:g,v=t.tickRotation,x=v===void 0?0:v,w=t.format,_=t.legend,C=t.legendPosition,y=C===void 0?"end":C,$=t.legendOffset,E=$===void 0?0:$,T=t.theme,k=Kk({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:p,tickPadding:m,tickRotation:x,engine:"canvas"}),O=k.ticks,S=k.textAlign,M=k.textBaseline;e.save(),e.translate(a,c),e.textAlign=S,e.textBaseline=M;var A=T.axis.ticks.text;e.font=(A.fontWeight?A.fontWeight+" ":"")+A.fontSize+"px "+A.fontFamily,((n=T.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(T.axis.domain.line.strokeWidth),e.lineCap="square",T.axis.domain.line.stroke&&(e.strokeStyle=T.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?l:0,r==="x"?0:l),e.stroke());var j=typeof w=="function"?w:function(z){return""+z};if(O.forEach(function(z){var I;((I=T.axis.ticks.line.strokeWidth)!=null?I:0)>0&&(e.lineWidth=Number(T.axis.ticks.line.strokeWidth),e.lineCap="square",T.axis.ticks.line.stroke&&(e.strokeStyle=T.axis.ticks.line.stroke),e.beginPath(),e.moveTo(z.x,z.y),e.lineTo(z.x+z.lineX,z.y+z.lineY),e.stroke());var W=j(z.value);e.save(),e.translate(z.x+z.textX,z.y+z.textY),e.rotate(fr(x)),A.outlineWidth>0&&(e.strokeStyle=A.outlineColor,e.lineWidth=2*A.outlineWidth,e.lineJoin="round",e.strokeText(""+W,0,0)),T.axis.ticks.text.fill&&(e.fillStyle=A.fill),e.fillText(""+W,0,0),e.restore()}),_!==void 0){var L=0,N=0,F=0,U="center";r==="y"?(F=-90,L=E,y==="start"?(U="start",N=l):y==="middle"?(U="center",N=l/2):y==="end"&&(U="end")):(N=E,y==="start"?U="start":y==="middle"?(U="center",L=l/2):y==="end"&&(U="end",L=l)),e.translate(L,N),e.rotate(fr(F)),e.font=(T.axis.legend.text.fontWeight?T.axis.legend.text.fontWeight+" ":"")+T.axis.legend.text.fontSize+"px "+T.axis.legend.text.fontFamily,T.axis.legend.text.fill&&(e.fillStyle=T.axis.legend.text.fill),e.textAlign=U,e.textBaseline="middle",e.fillText(_,0,0)}e.restore()},eO=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,c=t.bottom,l=t.left,u=t.theme,d={top:a,right:s,bottom:c,left:l};Xk.forEach(function(f){var p=d[f];if(!p)return null;var g=f==="top"||f==="bottom",m=f==="top"||f==="left"?"before":"after",v=g?n:r,x=Zk(p.format,v);jre(e,hr({},p,{axis:g?"x":"y",x:f==="right"?i:0,y:f==="bottom"?o:0,scale:v,format:x,length:g?i:o,ticksPosition:m,theme:u}))})},Kd=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;nv({width:n,height:r,scale:i,axis:o,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},Nre=IT,Dre=0;function Ire(e){var t=++Dre;return Nre(e)+t}var Pre=Ire;const Lre=rn(Pre),hi=11102230246251565e-32,Sn=134217729,Fre=(3+8*hi)*hi;function um(e,t,n,r,i){let o,a,s,c,l=t[0],u=r[0],d=0,f=0;u>l==u>-l?(o=l,l=t[++d]):(o=u,u=r[++f]);let p=0;if(d<e&&f<n)for(u>l==u>-l?(a=l+o,s=o-(a-l),l=t[++d]):(a=u+o,s=o-(a-u),u=r[++f]),o=a,s!==0&&(i[p++]=s);d<e&&f<n;)u>l==u>-l?(a=o+l,c=a-o,s=o-(a-c)+(l-c),l=t[++d]):(a=o+u,c=a-o,s=o-(a-c)+(u-c),u=r[++f]),o=a,s!==0&&(i[p++]=s);for(;d<e;)a=o+l,c=a-o,s=o-(a-c)+(l-c),l=t[++d],o=a,s!==0&&(i[p++]=s);for(;f<n;)a=o+u,c=a-o,s=o-(a-c)+(u-c),u=r[++f],o=a,s!==0&&(i[p++]=s);return(o!==0||p===0)&&(i[p++]=o),p}function Bre(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Wl(e){return new Float64Array(e)}const zre=(3+16*hi)*hi,Wre=(2+12*hi)*hi,Ure=(9+64*hi)*hi*hi,ga=Wl(4),C2=Wl(8),$2=Wl(12),S2=Wl(16),Rn=Wl(4);function Vre(e,t,n,r,i,o,a){let s,c,l,u,d,f,p,g,m,v,x,w,_,C,y,$,E,T;const k=e-i,O=n-i,S=t-o,M=r-o;C=k*M,f=Sn*k,p=f-(f-k),g=k-p,f=Sn*M,m=f-(f-M),v=M-m,y=g*v-(C-p*m-g*m-p*v),$=S*O,f=Sn*S,p=f-(f-S),g=S-p,f=Sn*O,m=f-(f-O),v=O-m,E=g*v-($-p*m-g*m-p*v),x=y-E,d=y-x,ga[0]=y-(x+d)+(d-E),w=C+x,d=w-C,_=C-(w-d)+(x-d),x=_-$,d=_-x,ga[1]=_-(x+d)+(d-$),T=w+x,d=T-w,ga[2]=w-(T-d)+(x-d),ga[3]=T;let A=Bre(4,ga),j=Wre*a;if(A>=j||-A>=j||(d=e-k,s=e-(k+d)+(d-i),d=n-O,l=n-(O+d)+(d-i),d=t-S,c=t-(S+d)+(d-o),d=r-M,u=r-(M+d)+(d-o),s===0&&c===0&&l===0&&u===0)||(j=Ure*a+Fre*Math.abs(A),A+=k*u+M*s-(S*l+O*c),A>=j||-A>=j))return A;C=s*M,f=Sn*s,p=f-(f-s),g=s-p,f=Sn*M,m=f-(f-M),v=M-m,y=g*v-(C-p*m-g*m-p*v),$=c*O,f=Sn*c,p=f-(f-c),g=c-p,f=Sn*O,m=f-(f-O),v=O-m,E=g*v-($-p*m-g*m-p*v),x=y-E,d=y-x,Rn[0]=y-(x+d)+(d-E),w=C+x,d=w-C,_=C-(w-d)+(x-d),x=_-$,d=_-x,Rn[1]=_-(x+d)+(d-$),T=w+x,d=T-w,Rn[2]=w-(T-d)+(x-d),Rn[3]=T;const L=um(4,ga,4,Rn,C2);C=k*u,f=Sn*k,p=f-(f-k),g=k-p,f=Sn*u,m=f-(f-u),v=u-m,y=g*v-(C-p*m-g*m-p*v),$=S*l,f=Sn*S,p=f-(f-S),g=S-p,f=Sn*l,m=f-(f-l),v=l-m,E=g*v-($-p*m-g*m-p*v),x=y-E,d=y-x,Rn[0]=y-(x+d)+(d-E),w=C+x,d=w-C,_=C-(w-d)+(x-d),x=_-$,d=_-x,Rn[1]=_-(x+d)+(d-$),T=w+x,d=T-w,Rn[2]=w-(T-d)+(x-d),Rn[3]=T;const N=um(L,C2,4,Rn,$2);C=s*u,f=Sn*s,p=f-(f-s),g=s-p,f=Sn*u,m=f-(f-u),v=u-m,y=g*v-(C-p*m-g*m-p*v),$=c*l,f=Sn*c,p=f-(f-c),g=c-p,f=Sn*l,m=f-(f-l),v=l-m,E=g*v-($-p*m-g*m-p*v),x=y-E,d=y-x,Rn[0]=y-(x+d)+(d-E),w=C+x,d=w-C,_=C-(w-d)+(x-d),x=_-$,d=_-x,Rn[1]=_-(x+d)+(d-$),T=w+x,d=T-w,Rn[2]=w-(T-d)+(x-d),Rn[3]=T;const F=um(N,$2,4,Rn,S2);return S2[F-1]}function Eu(e,t,n,r,i,o){const a=(t-o)*(n-i),s=(e-i)*(r-o),c=a-s,l=Math.abs(a+s);return Math.abs(c)>=zre*l?c:-Vre(e,t,n,r,i,o,l)}const E2=Math.pow(2,-52),Tu=new Uint32Array(512);class Zd{static from(t,n=Kre,r=Zre){const i=t.length,o=new Float64Array(i*2);for(let a=0;a<i;a++){const s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new Zd(o)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:o}=this,a=t.length>>1;let s=1/0,c=1/0,l=-1/0,u=-1/0;for(let k=0;k<a;k++){const O=t[2*k],S=t[2*k+1];O<s&&(s=O),S<c&&(c=S),O>l&&(l=O),S>u&&(u=S),this._ids[k]=k}const d=(s+l)/2,f=(c+u)/2;let p,g,m;for(let k=0,O=1/0;k<a;k++){const S=dm(d,f,t[2*k],t[2*k+1]);S<O&&(p=k,O=S)}const v=t[2*p],x=t[2*p+1];for(let k=0,O=1/0;k<a;k++){if(k===p)continue;const S=dm(v,x,t[2*k],t[2*k+1]);S<O&&S>0&&(g=k,O=S)}let w=t[2*g],_=t[2*g+1],C=1/0;for(let k=0;k<a;k++){if(k===p||k===g)continue;const O=Yre(v,x,w,_,t[2*k],t[2*k+1]);O<C&&(m=k,C=O)}let y=t[2*m],$=t[2*m+1];if(C===1/0){for(let S=0;S<a;S++)this._dists[S]=t[2*S]-t[0]||t[2*S+1]-t[1];Ta(this._ids,this._dists,0,a-1);const k=new Uint32Array(a);let O=0;for(let S=0,M=-1/0;S<a;S++){const A=this._ids[S],j=this._dists[A];j>M&&(k[O++]=A,M=j)}this.hull=k.subarray(0,O),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Eu(v,x,w,_,y,$)<0){const k=g,O=w,S=_;g=m,w=y,_=$,m=k,y=O,$=S}const E=Gre(v,x,w,_,y,$);this._cx=E.x,this._cy=E.y;for(let k=0;k<a;k++)this._dists[k]=dm(t[2*k],t[2*k+1],E.x,E.y);Ta(this._ids,this._dists,0,a-1),this._hullStart=p;let T=3;r[p]=n[m]=g,r[g]=n[p]=m,r[m]=n[g]=p,i[p]=0,i[g]=1,i[m]=2,o.fill(-1),o[this._hashKey(v,x)]=p,o[this._hashKey(w,_)]=g,o[this._hashKey(y,$)]=m,this.trianglesLen=0,this._addTriangle(p,g,m,-1,-1,-1);for(let k=0,O,S;k<this._ids.length;k++){const M=this._ids[k],A=t[2*M],j=t[2*M+1];if(k>0&&Math.abs(A-O)<=E2&&Math.abs(j-S)<=E2||(O=A,S=j,M===p||M===g||M===m))continue;let L=0;for(let I=0,W=this._hashKey(A,j);I<this._hashSize&&(L=o[(W+I)%this._hashSize],!(L!==-1&&L!==r[L]));I++);L=n[L];let N=L,F;for(;F=r[N],Eu(A,j,t[2*N],t[2*N+1],t[2*F],t[2*F+1])>=0;)if(N=F,N===L){N=-1;break}if(N===-1)continue;let U=this._addTriangle(N,M,r[N],-1,-1,i[N]);i[M]=this._legalize(U+2),i[N]=U,T++;let z=r[N];for(;F=r[z],Eu(A,j,t[2*z],t[2*z+1],t[2*F],t[2*F+1])<0;)U=this._addTriangle(z,M,F,i[M],-1,i[z]),i[M]=this._legalize(U+2),r[z]=z,T--,z=F;if(N===L)for(;F=n[N],Eu(A,j,t[2*F],t[2*F+1],t[2*N],t[2*N+1])<0;)U=this._addTriangle(F,M,N,-1,i[N],i[F]),this._legalize(U+2),i[F]=U,r[N]=N,T--,N=F;this._hullStart=n[M]=N,r[N]=n[z]=M,r[M]=z,o[this._hashKey(A,j)]=M,o[this._hashKey(t[2*N],t[2*N+1])]=N}this.hull=new Uint32Array(T);for(let k=0,O=this._hullStart;k<T;k++)this.hull[k]=O,O=r[O];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(Hre(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let o=0,a=0;for(;;){const s=r[t],c=t-t%3;if(a=c+(t+2)%3,s===-1){if(o===0)break;t=Tu[--o];continue}const l=s-s%3,u=c+(t+1)%3,d=l+(s+2)%3,f=n[a],p=n[t],g=n[u],m=n[d];if(qre(i[2*f],i[2*f+1],i[2*p],i[2*p+1],i[2*g],i[2*g+1],i[2*m],i[2*m+1])){n[t]=m,n[s]=f;const x=r[d];if(x===-1){let _=this._hullStart;do{if(this._hullTri[_]===d){this._hullTri[_]=t;break}_=this._hullPrev[_]}while(_!==this._hullStart)}this._link(t,x),this._link(s,r[a]),this._link(a,d);const w=l+(s+1)%3;o<Tu.length&&(Tu[o++]=w)}else{if(o===0)break;t=Tu[--o]}}return a}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,o,a){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,o),this._link(s+2,a),this.trianglesLen+=3,s}}function Hre(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function dm(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function qre(e,t,n,r,i,o,a,s){const c=e-a,l=t-s,u=n-a,d=r-s,f=i-a,p=o-s,g=c*c+l*l,m=u*u+d*d,v=f*f+p*p;return c*(d*v-m*p)-l*(u*v-m*f)+g*(u*p-d*f)<0}function Yre(e,t,n,r,i,o){const a=n-e,s=r-t,c=i-e,l=o-t,u=a*a+s*s,d=c*c+l*l,f=.5/(a*l-s*c),p=(l*u-s*d)*f,g=(a*d-c*u)*f;return p*p+g*g}function Gre(e,t,n,r,i,o){const a=n-e,s=r-t,c=i-e,l=o-t,u=a*a+s*s,d=c*c+l*l,f=.5/(a*l-s*c),p=e+(l*u-s*d)*f,g=t+(a*d-c*u)*f;return{x:p,y:g}}function Ta(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const o=e[i],a=t[o];let s=i-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=o}else{const i=n+r>>1;let o=n+1,a=r;Qs(e,i,o),t[e[n]]>t[e[r]]&&Qs(e,n,r),t[e[o]]>t[e[r]]&&Qs(e,o,r),t[e[n]]>t[e[o]]&&Qs(e,n,o);const s=e[o],c=t[s];for(;;){do o++;while(t[e[o]]<c);do a--;while(t[e[a]]>c);if(a<o)break;Qs(e,o,a)}e[n+1]=e[a],e[a]=s,r-o+1>=a-n?(Ta(e,t,o,r),Ta(e,t,n,a-1)):(Ta(e,t,n,a-1),Ta(e,t,o,r))}}function Qs(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Kre(e){return e[0]}function Zre(e){return e[1]}const T2=1e-6;class Mo{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,o=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>T2||Math.abs(this._y1-o)>T2)&&(this._+="L"+i+","+o),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=o}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class rv{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Xre{constructor(t,[n,r,i,o]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((o=+o)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=o,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let o,a;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let m=0,v=0,x=r.length,w,_;m<x;m+=3,v+=2){const C=r[m]*2,y=r[m+1]*2,$=r[m+2]*2,E=t[C],T=t[C+1],k=t[y],O=t[y+1],S=t[$],M=t[$+1],A=k-E,j=O-T,L=S-E,N=M-T,F=(A*N-j*L)*2;if(Math.abs(F)<1e-9){if(o===void 0){o=a=0;for(const z of n)o+=t[z*2],a+=t[z*2+1];o/=n.length,a/=n.length}const U=1e9*Math.sign((o-E)*N-(a-T)*L);w=(E+S)/2-U*N,_=(T+M)/2+U*L}else{const U=1/F,z=A*A+j*j,I=L*L+N*N;w=E+(N*z-j*I)*U,_=T+(A*I-L*z)*U}s[v]=w,s[v+1]=_}let c=n[n.length-1],l,u=c*4,d,f=t[2*c],p,g=t[2*c+1];i.fill(0);for(let m=0;m<n.length;++m)c=n[m],l=u,d=f,p=g,u=c*4,f=t[2*c],g=t[2*c+1],i[l+2]=i[u]=p-g,i[l+3]=i[u+1]=f-d}render(t){const n=t==null?t=new Mo:void 0,{delaunay:{halfedges:r,inedges:i,hull:o},circumcenters:a,vectors:s}=this;if(o.length<=1)return null;for(let u=0,d=r.length;u<d;++u){const f=r[u];if(f<u)continue;const p=Math.floor(u/3)*2,g=Math.floor(f/3)*2,m=a[p],v=a[p+1],x=a[g],w=a[g+1];this._renderSegment(m,v,x,w,t)}let c,l=o[o.length-1];for(let u=0;u<o.length;++u){c=l,l=o[u];const d=Math.floor(i[l]/3)*2,f=a[d],p=a[d+1],g=c*4,m=this._project(f,p,s[g+2],s[g+3]);m&&this._renderSegment(f,p,m[0],m[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Mo:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new Mo:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let a=2;a<o;a+=2)(i[a]!==i[a-2]||i[a+1]!==i[a-1])&&n.lineTo(i[a],i[a+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new rv;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,o){let a;const s=this._regioncode(t,n),c=this._regioncode(r,i);s===0&&c===0?(o.moveTo(t,n),o.lineTo(r,i)):(a=this._clipSegment(t,n,r,i,s,c))&&(o.moveTo(a[0],a[1]),o.lineTo(a[2],a[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let o=0,a=n.length;o<a;o+=2)for(let s=0,c=i.length;s<c;s+=2)if(n[o]===i[s]&&n[o+1]===i[s+1]&&n[(o+2)%a]===i[(s+c-2)%c]&&n[(o+3)%a]===i[(s+c-1)%c]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:o}}=this,a=r[t];if(a===-1)return null;const s=[];let c=a;do{const l=Math.floor(c/3);if(s.push(n[l*2],n[l*2+1]),c=c%3===2?c-2:c+1,o[c]!==t)break;c=i[c]}while(c!==a&&c!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,o,a,s=n[r-2],c=n[r-1],l,u=this._regioncode(s,c),d,f=0;for(let p=0;p<r;p+=2)if(o=s,a=c,s=n[p],c=n[p+1],l=u,u=this._regioncode(s,c),l===0&&u===0)d=f,f=0,i?i.push(s,c):i=[s,c];else{let g,m,v,x,w;if(l===0){if((g=this._clipSegment(o,a,s,c,l,u))===null)continue;[m,v,x,w]=g}else{if((g=this._clipSegment(s,c,o,a,u,l))===null)continue;[x,w,m,v]=g,d=f,f=this._edgecode(m,v),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(m,v):i=[m,v]}d=f,f=this._edgecode(x,w),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(x,w):i=[x,w]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,o,a){const s=o<a;for(s&&([t,n,r,i,o,a]=[r,i,t,n,a,o]);;){if(o===0&&a===0)return s?[r,i,t,n]:[t,n,r,i];if(o&a)return null;let c,l,u=o||a;u&8?(c=t+(r-t)*(this.ymax-n)/(i-n),l=this.ymax):u&4?(c=t+(r-t)*(this.ymin-n)/(i-n),l=this.ymin):u&2?(l=n+(i-n)*(this.xmax-t)/(r-t),c=this.xmax):(l=n+(i-n)*(this.xmin-t)/(r-t),c=this.xmin),o?(t=c,n=l,o=this._regioncode(t,n)):(r=c,i=l,a=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,o,a){let s=Array.from(n),c;if((c=this._project(s[0],s[1],r,i))&&s.unshift(c[0],c[1]),(c=this._project(s[s.length-2],s[s.length-1],o,a))&&s.push(c[0],c[1]),s=this._clipFinite(t,s))for(let l=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);l<u;l+=2)d=f,f=this._edgecode(s[l],s[l+1]),d&&f&&(l=this._edge(t,d,f,s,l),u=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,o){for(;n!==r;){let a,s;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,s=this.ymin;break}(i[o]!==a||i[o+1]!==s)&&this.contains(t,a,s)&&(i.splice(o,0,a,s),o+=2)}return o}_project(t,n,r,i){let o=1/0,a,s,c;if(i<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/i)<o&&(c=this.ymin,s=t+(o=a)*r)}else if(i>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/i)<o&&(c=this.ymax,s=t+(o=a)*r)}if(r>0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)<o&&(s=this.xmax,c=n+(o=a)*i)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<o&&(s=this.xmin,c=n+(o=a)*i)}return[s,c]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const Qre=2*Math.PI,va=Math.pow;function Jre(e){return e[0]}function eie(e){return e[1]}function tie(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],o=2*t[r+1],a=2*t[r+2];if((n[a]-n[i])*(n[o+1]-n[i+1])-(n[o]-n[i])*(n[a+1]-n[i+1])>1e-10)return!1}return!0}function nie(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Ub{static from(t,n=Jre,r=eie,i){return new Ub("length"in t?rie(t,n,r,i):Float64Array.from(iie(t,n,r,i)))}constructor(t){this._delaunator=new Zd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&tie(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const c=this.collinear[0],l=this.collinear[this.collinear.length-1],u=[n[2*c],n[2*c+1],n[2*l],n[2*l+1]],d=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let f=0,p=n.length/2;f<p;++f){const g=nie(n[2*f],n[2*f+1],d);n[2*f]=g[0],n[2*f+1]=g[1]}this._delaunator=new Zd(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let c=0,l=r.length;c<l;++c){const u=o[c%3===2?c-2:c+1];(r[c]===-1||a[u]===-1)&&(a[u]=c)}for(let c=0,l=i.length;c<l;++c)s[i[c]]=c;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],a[i[0]]=1,i.length===2&&(a[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new Xre(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:o,triangles:a,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const c=n[t];if(c===-1)return;let l=c,u=-1;do{if(yield u=a[l],l=l%3===2?l-2:l+1,a[l]!==t)return;if(l=o[l],l===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(l!==c)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let o;for(;(o=this._step(r,t,n))>=0&&o!==r&&o!==i;)r=o;return o}_step(t,n,r){const{inedges:i,hull:o,_hullIndex:a,halfedges:s,triangles:c,points:l}=this;if(i[t]===-1||!l.length)return(t+1)%(l.length>>1);let u=t,d=va(n-l[t*2],2)+va(r-l[t*2+1],2);const f=i[t];let p=f;do{let g=c[p];const m=va(n-l[g*2],2)+va(r-l[g*2+1],2);if(m<d&&(d=m,u=g),p=p%3===2?p-2:p+1,c[p]!==t)break;if(p=s[p],p===-1){if(p=o[(a[t]+1)%o.length],p!==g&&va(n-l[p*2],2)+va(r-l[p*2+1],2)<d)return p;break}}while(p!==f);return u}render(t){const n=t==null?t=new Mo:void 0,{points:r,halfedges:i,triangles:o}=this;for(let a=0,s=i.length;a<s;++a){const c=i[a];if(c<a)continue;const l=o[a]*2,u=o[c]*2;t.moveTo(r[l],r[l+1]),t.lineTo(r[u],r[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new Mo:void 0,{points:i}=this;for(let o=0,a=i.length;o<a;o+=2){const s=i[o],c=i[o+1];t.moveTo(s+n,c),t.arc(s,c,n,0,Qre)}return r&&r.value()}renderHull(t){const n=t==null?t=new Mo:void 0,{hull:r,points:i}=this,o=r[0]*2,a=r.length;t.moveTo(i[o],i[o+1]);for(let s=1;s<a;++s){const c=2*r[s];t.lineTo(i[c],i[c+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new rv;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Mo:void 0,{points:i,triangles:o}=this,a=o[t*=3]*2,s=o[t+1]*2,c=o[t+2]*2;return n.moveTo(i[a],i[a+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[c],i[c+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new rv;return this.renderTriangle(t,n),n.value()}}function rie(e,t,n,r){const i=e.length,o=new Float64Array(i*2);for(let a=0;a<i;++a){const s=e[a];o[a*2]=t.call(r,s,a,e),o[a*2+1]=n.call(r,s,a,e)}return o}function*iie(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}var Vb=function(e){return[e.x,e.y]},Ul=hk,tO="cursor",nO="top",oie=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Vb:n,i=e.margin,o=i===void 0?Ul:i;return t.map(function(a){var s=r(a),c=s[0],l=s[1];return[c+o.left,l+o.top]})},aie=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=i===void 0?Ul:i,a=e.debug,s=Ub.from(t),c=a?s.voronoi([0,0,o.left+n+o.right,o.top+r+o.bottom]):void 0;return{points:t,delaunay:s,voronoi:c}},rO=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Vb:n,i=e.width,o=e.height,a=e.margin,s=a===void 0?Ul:a,c=e.debug;return h.useMemo(function(){return aie({points:oie({points:t,margin:s,getNodePosition:r}),width:i,height:o,margin:s,debug:c})},[t,i,o,s,c])},sie=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?Vb:r,o=e.delaunay,a=e.setCurrent,s=e.margin,c=s===void 0?Ul:s,l=e.detectionRadius,u=l===void 0?1/0:l,d=e.isInteractive,f=d===void 0||d,p=e.onMouseEnter,g=e.onMouseMove,m=e.onMouseLeave,v=e.onClick,x=e.onTouchStart,w=e.onTouchMove,_=e.onTouchEnd,C=e.enableTouchCrosshair,y=C!==void 0&&C,$=e.tooltip,E=e.tooltipPosition,T=E===void 0?tO:E,k=e.tooltipAnchor,O=k===void 0?nO:k,S=h.useState(null),M=S[0],A=S[1],j=h.useRef(null);h.useEffect(function(){j.current=M},[j,M]);var L=h.useCallback(function(P){if(!t.current)return null;var D=bc(t.current,P),B=D[0],H=D[1],R=o.find(B,H),G=R!==void 0?n[R]:null;if(G&&u!==1/0){var ee=i(G),ne=ee[0],de=ee[1];QJ(B,H,ne+c.left,de+c.top)>u&&(R=null,G=null)}return R===null||G===null?null:[R,G]},[t,o,n,i,c,u]),N=ea(),F=N.showTooltipAt,U=N.showTooltipFromEvent,z=N.hideTooltip,I=h.useMemo(function(){if($)return T==="cursor"?function(P,D){U($(P),D,O)}:function(P){var D=i(P),B=D[0],H=D[1];F($(P),[B+c.left,H+c.top],O)}},[F,U,$,T,O,i,c]),W=h.useCallback(function(P){var D=L(P);if(A(D),a==null||a(D?D[1]:null),D){var B=D[1];I==null||I(B,P),p==null||p(D[1],P)}},[L,A,a,I,p]),Y=h.useCallback(function(P){var D=L(P);if(A(D),D){var B=D[0],H=D[1];if(a==null||a(H),I==null||I(H,P),j.current){var R=j.current,G=R[0],ee=R[1];B!==G?m==null||m(ee,P):g==null||g(H,P)}else p==null||p(H,P)}else a==null||a(null),z==null||z(),j.current&&(m==null||m(j.current[1],P))},[L,A,j,p,g,m,I,z]),J=h.useCallback(function(P){A(null),a==null||a(null),z(),m&&j.current&&m(j.current[1],P)},[A,a,j,z,m]),X=h.useCallback(function(P){var D=L(P);A(D),D&&(v==null||v(D[1],P))},[L,A,v]),Z=h.useCallback(function(P){var D=L(P);y&&(A(D),a==null||a(D?D[1]:null)),D&&(x==null||x(D[1],P))},[L,A,a,y,x]),Q=h.useCallback(function(P){var D=L(P);y&&(A(D),a==null||a(D?D[1]:null)),D&&(w==null||w(D[1],P))},[L,A,a,y,w]),te=h.useCallback(function(P){y&&(A(null),a==null||a(null)),_&&j.current&&_(j.current[1],P)},[y,A,a,_,j]);return{current:M,handleMouseEnter:f?W:void 0,handleMouseMove:f?Y:void 0,handleMouseLeave:f?J:void 0,handleClick:f?X:void 0,handleTouchStart:f?Z:void 0,handleTouchMove:f?Q:void 0,handleTouchEnd:f?te:void 0}},cie=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,o=i===void 0?Ul:i,a=e.getNodePosition,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,p=e.onTouchMove,g=e.onTouchEnd,m=e.enableTouchCrosshair,v=m!==void 0&&m,x=e.detectionRadius,w=x===void 0?1/0:x,_=e.tooltip,C=e.tooltipPosition,y=C===void 0?tO:C,$=e.tooltipAnchor,E=$===void 0?nO:$,T=e.debug,k=h.useRef(null),O=rO({points:t,getNodePosition:a,width:n,height:r,margin:o,debug:T}),S=O.delaunay,M=O.voronoi,A=sie({elementRef:k,nodes:t,delaunay:S,margin:o,detectionRadius:w,setCurrent:s,onMouseEnter:c,onMouseMove:l,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:p,onTouchEnd:g,enableTouchCrosshair:v,tooltip:_,tooltipPosition:y,tooltipAnchor:E}),j=A.current,L=A.handleMouseEnter,N=A.handleMouseMove,F=A.handleMouseLeave,U=A.handleClick,z=A.handleTouchStart,I=A.handleTouchMove,W=A.handleTouchEnd,Y=h.useMemo(function(){if(T&&M)return M.render()},[T,M]);return b.jsxs("g",{ref:k,transform:"translate("+-o.left+","+-o.top+")",children:[T&&M&&b.jsxs(b.Fragment,{children:[b.jsx("path",{d:Y,stroke:"red",strokeWidth:1,opacity:.75}),w<1/0&&b.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:S.renderPoints(void 0,w)}),j&&b.jsx("path",{fill:"pink",opacity:.35,d:M.renderCell(j[0])})]}),b.jsx("rect",{"data-ref":"mesh-interceptor",width:o.left+n+o.right,height:o.top+r+o.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:L,onMouseMove:N,onMouseLeave:F,onTouchStart:z,onTouchMove:I,onTouchEnd:W,onClick:U})]})},lie=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},uie=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},In.apply(this,arguments)}var Hb=h.memo(function(e){var t=e.point;return b.jsx(P0,{id:b.jsxs("span",{children:["x: ",b.jsx("strong",{children:t.data.xFormatted}),", y:"," ",b.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.serieColor})}),iO=h.memo(function(e){var t=e.slice,n=e.axis,r=Ft(),i=n==="x"?"y":"x";return b.jsx(uT,{rows:t.points.map(function(o){return[b.jsx(lT,{color:o.serieColor,style:r.tooltip.chip},"chip"),o.serieId,b.jsx("span",{style:r.tooltip.tableCellValue,children:o.data[i+"Formatted"]},"value")]})})}),oO={curve:"linear",xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:"color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enablePointLabel:!1,pointLabel:"yFormatted",colors:{scheme:"nivo"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:"normal",lineWidth:2,legends:[],isInteractive:!0,tooltip:Hb,enableSlices:!1,debugSlices:!1,sliceTooltip:iO,debugMesh:!1,enableCrosshair:!0,crosshairType:"bottom-left"},ji=In({},oO,{enablePointLabel:!1,useMesh:!1,enableTouchCrosshair:!1,animate:!0,motionConfig:"gentle",defs:[],fill:[],role:"img"});In({},oO,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var die=function(e){var t=e.curve;return h.useMemo(function(){return Eb().defined(function(n){return n.x!==null&&n.y!==null}).x(function(n){return n.x}).y(function(n){return n.y}).curve(fk(t))},[t])},fie=function(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return h.useMemo(function(){return OZ().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(fk(t)).y0(n(r))},[t,n,r])},hie=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,o=e.height;return h.useMemo(function(){if(n===!1)return[];if(n==="x"){var a=new Map;return r.forEach(function(c){c.data.x!==null&&c.data.y!==null&&(a.has(c.x)?a.get(c.x).push(c):a.set(c.x,[c]))}),Array.from(a.entries()).sort(function(c,l){return c[0]-l[0]}).map(function(c,l,u){var d,f,p=c[0],g=c[1],m=u[l-1],v=u[l+1];return d=m?p-(p-m[0])/2:p,f=v?p-d+(v[0]-p)/2:i-d,{id:"slice:"+t+":"+p,x0:d,x:p,y0:0,y:0,width:f,height:o,points:g.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(c){c.data.x!==null&&c.data.y!==null&&(s.has(c.y)?s.get(c.y).push(c):s.set(c.y,[c]))}),Array.from(s.entries()).sort(function(c,l){return c[0]-l[0]}).map(function(c,l,u){var d,f,p=c[0],g=c[1],m=u[l-1],v=u[l+1];return d=m?p-(p-m[0])/2:p,f=v?p-d+(v[0]-p)/2:o-d,{id:p,x0:0,x:0,y0:d,y:p,width:i,height:f,points:g.reverse()}})}},[t,n,o,r,i])},pie="line",aO=function(e){var t=e.data,n=e.xScale,r=n===void 0?ji.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?ji.yScale:o,s=e.yFormat,c=e.width,l=e.height,u=e.colors,d=u===void 0?ji.colors:u,f=e.curve,p=f===void 0?ji.curve:f,g=e.areaBaselineValue,m=g===void 0?ji.areaBaselineValue:g,v=e.pointColor,x=v===void 0?ji.pointColor:v,w=e.pointBorderColor,_=w===void 0?ji.pointBorderColor:w,C=e.enableSlices,y=C===void 0?ji.enableSlicesTooltip:C,$=h.useState(Lre(pie))[0],E=Qa(i),T=Qa(s),k=Fb(d,"id"),O=Ft(),S=qr(x,O),M=qr(_,O),A=h.useState([]),j=A[0],L=A[1],N=h.useMemo(function(){return Cre(t.filter(function(Q){return j.indexOf(Q.id)===-1}),r,a,c,l)},[t,j,r,a,c,l]),F=N.xScale,U=N.yScale,z=N.series,I=h.useMemo(function(){var Q=t.map(function(P){return{id:P.id,label:P.id,color:k(P)}}),te=Q.map(function(P){return In({},z.find(function(D){return D.id===P.id}),{color:P.color})}).filter(function(P){return!!P.id});return{legendData:Q.map(function(P){return In({},P,{hidden:!te.find(function(D){return D.id===P.id})})}).reverse(),series:te}},[t,z,k]),W=I.legendData,Y=I.series,J=h.useCallback(function(Q){L(function(te){return te.indexOf(Q)>-1?te.filter(function(P){return P!==Q}):[].concat(te,[Q])})},[]),X=function(Q){var te=Q.series,P=Q.getPointColor,D=Q.getPointBorderColor,B=Q.formatX,H=Q.formatY;return h.useMemo(function(){return te.reduce(function(R,G){return[].concat(R,G.data.filter(function(ee){return ee.position.x!==null&&ee.position.y!==null}).map(function(ee,ne){var de={id:G.id+"."+ne,index:R.length+ne,serieId:G.id,serieColor:G.color,x:ee.position.x,y:ee.position.y};return de.color=P(G),de.borderColor=D(de),de.data=In({},ee.data,{xFormatted:B(ee.data.x),yFormatted:H(ee.data.y)}),de}))},[])},[te,P,D,B,H])}({series:Y,getPointColor:S,getPointBorderColor:M,formatX:E,formatY:T}),Z=hie({componentId:$,enableSlices:y,points:X,width:c,height:l});return{legendData:W,toggleSerie:J,lineGenerator:die({curve:p}),areaGenerator:fie({curve:p,yScale:U,areaBaselineValue:m}),getColor:k,series:Y,xScale:F,yScale:U,slices:Z,points:X}},mie=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=Fn(),s=a.animate,c=a.config,l=Db(o),u=Zr({color:r,config:c,immediate:!s});return b.jsx(Lt.path,{d:l,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},gie=h.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return b.jsx("g",{children:i.map(function(o){return b.jsx(mie,In({path:t(o.data.map(function(a){return a.position}))},In({areaOpacity:n,areaBlendMode:r},o)),o.id)})})}),vie=h.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=h.useMemo(function(){return t(n)},[t,n]),a=Db(o);return b.jsx(Lt.path,{d:a,fill:"none",strokeWidth:i,stroke:r})}),bie=h.memo(function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(i){var o=i.id,a=i.data,s=i.color;return b.jsx(vie,{id:o,points:a.map(function(c){return c.position}),lineGenerator:n,color:s,thickness:r},o)})}),yie=h.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,o=e.tooltip,a=e.isCurrent,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,p=e.onTouchMove,g=e.onTouchEnd,m=ea(),v=m.showTooltipFromEvent,x=m.hideTooltip,w=h.useCallback(function(k){v(h.createElement(o,{slice:t,axis:r}),k,"right"),s(t),c&&c(t,k)},[v,o,t,r,s,c]),_=h.useCallback(function(k){v(h.createElement(o,{slice:t,axis:r}),k,"right"),l&&l(t,k)},[v,o,t,r,l]),C=h.useCallback(function(k){x(),s(null),u&&u(t,k)},[x,s,u,t]),y=h.useCallback(function(k){d&&d(t,k)},[t,d]),$=h.useCallback(function(k){v(h.createElement(o,{slice:t,axis:r}),k,"right"),s(t),f&&f(t,k)},[r,f,s,v,t,o]),E=h.useCallback(function(k){var O=k.touches[0],S=document.elementFromPoint(O.clientX,O.clientY),M=S==null?void 0:S.getAttribute("data-ref");if(M){var A=n.find(function(j){return j.id===M});A&&(v(h.createElement(o,{slice:A,axis:r}),k,"right"),s(A))}p&&p(t,k)},[r,p,s,v,t,n,o]),T=h.useCallback(function(k){x(),s(null),g&&g(t,k)},[x,s,g,t]);return b.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&i?.35:0,onMouseEnter:w,onMouseMove:_,onMouseLeave:C,onClick:y,onTouchStart:$,onTouchMove:E,onTouchEnd:T,"data-ref":t.id})}),xie=h.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,o=e.tooltip,a=e.current,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,p=e.onTouchMove,g=e.onTouchEnd;return t.map(function(m){return b.jsx(yie,{slice:m,slices:t,axis:n,debug:r,height:i,tooltip:o,setCurrent:s,isCurrent:a!==null&&a.id===m.id,onMouseEnter:c,onMouseMove:l,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:p,onTouchEnd:g},m.id)})}),wie=h.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,a=e.label,s=e.labelYOffset,c=Ft(),l=XJ(a),u=t.slice(0).reverse().map(function(d){return{id:d.id,x:d.x,y:d.y,datum:d.data,fill:d.color,stroke:d.borderColor,label:o?l(d):null}});return b.jsx("g",{children:u.map(function(d){return b.jsx(GJ,{x:d.x,y:d.y,datum:d.datum,symbol:n,size:r,color:d.fill,borderWidth:i,borderColor:d.stroke,label:d.label,labelYOffset:s,theme:c},d.id)})})}),_ie=h.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,c=e.onMouseLeave,l=e.onClick,u=e.onTouchStart,d=e.onTouchMove,f=e.onTouchEnd,p=e.tooltip,g=e.debug,m=e.enableTouchCrosshair,v=ea(),x=v.showTooltipAt,w=v.hideTooltip,_=h.useCallback(function(O,S){x(h.createElement(p,{point:O}),[O.x+i.left,O.y+i.top],"top"),a&&a(O,S)},[x,p,a,i]),C=h.useCallback(function(O,S){x(h.createElement(p,{point:O}),[O.x+i.left,O.y+i.top],"top"),s&&s(O,S)},[x,p,i.left,i.top,s]),y=h.useCallback(function(O,S){w(),c&&c(O,S)},[w,c]),$=h.useCallback(function(O,S){l&&l(O,S)},[l]),E=h.useCallback(function(O,S){x(h.createElement(p,{point:O}),[O.x+i.left,O.y+i.top],"top"),u&&u(O,S)},[i.left,i.top,u,x,p]),T=h.useCallback(function(O,S){x(h.createElement(p,{point:O}),[O.x+i.left,O.y+i.top],"top"),d&&d(O,S)},[i.left,i.top,d,x,p]),k=h.useCallback(function(O,S){w(),f&&f(O,S)},[f,w]);return b.jsx(cie,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:_,onMouseMove:C,onMouseLeave:y,onClick:$,onTouchStart:E,onTouchMove:T,onTouchEnd:k,enableTouchCrosshair:m,debug:g})}),Cie=Tk(function(e){var t=e.data,n=e.xScale,r=n===void 0?{type:"point"}:n,i=e.xFormat,o=e.yScale,a=o===void 0?{type:"linear",min:0,max:"auto"}:o,s=e.yFormat,c=e.layers,l=c===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:c,u=e.curve,d=u===void 0?"linear":u,f=e.areaBaselineValue,p=f===void 0?0:f,g=e.colors,m=g===void 0?{scheme:"nivo"}:g,v=e.margin,x=e.width,w=e.height,_=e.axisTop,C=e.axisRight,y=e.axisBottom,$=y===void 0?{}:y,E=e.axisLeft,T=E===void 0?{}:E,k=e.enableGridX,O=k===void 0||k,S=e.enableGridY,M=S===void 0||S,A=e.gridXValues,j=e.gridYValues,L=e.lineWidth,N=L===void 0?2:L,F=e.enableArea,U=F!==void 0&&F,z=e.areaOpacity,I=z===void 0?.2:z,W=e.areaBlendMode,Y=W===void 0?"normal":W,J=e.enablePoints,X=J===void 0||J,Z=e.pointSymbol,Q=e.pointSize,te=Q===void 0?6:Q,P=e.pointColor,D=P===void 0?{from:"color"}:P,B=e.pointBorderWidth,H=B===void 0?0:B,R=e.pointBorderColor,G=R===void 0?{theme:"background"}:R,ee=e.enablePointLabel,ne=ee!==void 0&&ee,de=e.pointLabel,oe=de===void 0?"data.yFormatted":de,ae=e.pointLabelYOffset,me=e.defs,ve=me===void 0?[]:me,Ee=e.fill,Se=Ee===void 0?[]:Ee,Me=e.markers,ge=e.legends,_e=ge===void 0?[]:ge,ce=e.isInteractive,Oe=ce===void 0||ce,Ue=e.useMesh,Ot=Ue!==void 0&&Ue,qe=e.debugMesh,ht=qe!==void 0&&qe,_t=e.onMouseEnter,Vt=e.onMouseMove,gt=e.onMouseLeave,bt=e.onClick,Ct=e.onTouchStart,Ht=e.onTouchMove,Be=e.onTouchEnd,Pe=e.tooltip,et=Pe===void 0?Hb:Pe,Ve=e.enableSlices,tt=Ve!==void 0&&Ve,nt=e.debugSlices,$t=nt!==void 0&&nt,pt=e.sliceTooltip,ut=pt===void 0?iO:pt,xt=e.enableCrosshair,yt=xt===void 0||xt,at=e.crosshairType,St=at===void 0?"bottom-left":at,Mt=e.enableTouchCrosshair,we=Mt!==void 0&&Mt,Re=e.role,De=Re===void 0?"img":Re,Ke=Bl(x,w,v),Ye=Ke.margin,Et=Ke.innerWidth,q=Ke.innerHeight,he=Ke.outerWidth,le=Ke.outerHeight,fe=aO({data:t,xScale:r,xFormat:i,yScale:a,yFormat:s,width:Et,height:q,colors:m,curve:d,areaBaselineValue:p,pointColor:D,pointBorderColor:G,enableSlices:tt}),$e=fe.legendData,Ie=fe.toggleSerie,Te=fe.lineGenerator,Ne=fe.areaGenerator,He=fe.series,ze=fe.xScale,st=fe.yScale,nn=fe.slices,Ut=fe.points,cn=Ft(),Ce=qr(D,cn),xn=qr(G,cn),qt=h.useState(null),xr=qt[0],eu=qt[1],wr=h.useState(null),uo=wr[0],tu=wr[1],Jr={grid:b.jsx(Jk,{theme:cn,width:Et,height:q,xScale:O?ze:null,yScale:M?st:null,xValues:A,yValues:j},"grid"),markers:b.jsx(Ek,{markers:Me,width:Et,height:q,xScale:ze,yScale:st,theme:cn},"markers"),axes:b.jsx(Qk,{xScale:ze,yScale:st,width:Et,height:q,theme:cn,top:_,right:C,bottom:$,left:T},"axes"),areas:null,lines:b.jsx(bie,{lines:He,lineGenerator:Te,lineWidth:N},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:_e.map(function(ei,Os){return b.jsx(zb,In({},ei,{containerWidth:Et,containerHeight:q,data:ei.data||$e,theme:cn,toggleSerie:ei.toggleSerie?Ie:void 0}),"legend."+Os)})},pp=Lb(ve,He,Se);return U&&(Jr.areas=b.jsx(gie,{areaGenerator:Ne,areaOpacity:I,areaBlendMode:Y,lines:He},"areas")),Oe&&tt!==!1&&(Jr.slices=b.jsx(xie,{slices:nn,axis:tt,debug:$t,height:q,tooltip:ut,current:uo,setCurrent:tu,onMouseEnter:_t,onMouseMove:Vt,onMouseLeave:gt,onClick:bt,onTouchStart:Ct,onTouchMove:Ht,onTouchEnd:Be},"slices")),X&&(Jr.points=b.jsx(wie,{points:Ut,symbol:Z,size:te,color:Ce,borderWidth:H,borderColor:xn,enableLabel:ne,label:oe,labelYOffset:ae},"points")),Oe&&yt&&(xr!==null&&(Jr.crosshair=b.jsx(Ng,{width:Et,height:q,x:xr.x,y:xr.y,type:St},"crosshair")),uo!==null&&(Jr.crosshair=b.jsx(Ng,{width:Et,height:q,x:uo.x,y:uo.y,type:tt},"crosshair"))),Oe&&Ot&&tt===!1&&(Jr.mesh=b.jsx(_ie,{points:Ut,width:Et,height:q,margin:Ye,current:xr,setCurrent:eu,onMouseEnter:_t,onMouseMove:Vt,onMouseLeave:gt,onClick:bt,onTouchStart:Ct,onTouchMove:Ht,onTouchEnd:Be,tooltip:et,enableTouchCrosshair:we,debug:ht},"mesh")),b.jsx(Xh,{defs:pp,width:he,height:le,margin:Ye,role:De,children:l.map(function(ei,Os){return typeof ei=="function"?b.jsx(h.Fragment,{children:ei(In({},e,{innerWidth:Et,innerHeight:q,series:He,slices:nn,points:Ut,xScale:ze,yScale:st,lineGenerator:Te,areaGenerator:Ne,currentPoint:xr,setCurrentPoint:eu,currentSlice:uo,setCurrentSlice:tu}))},Os):Jr[ei]})})}),$ie=function(e){return b.jsx(Cs,{children:function(t){var n=t.width,r=t.height;return b.jsx(Cie,In({width:n,height:r},e))}})},Sie=Tk(function(e){var t=h.useRef(null),n=e.width,r=e.height,i=e.margin,o=e.pixelRatio,a=o===void 0?typeof window<"u"&&window.devicePixelRatio||1:o,s=e.data,c=e.xScale,l=c===void 0?{type:"point"}:c,u=e.xFormat,d=e.yScale,f=d===void 0?{type:"linear",min:0,max:"auto"}:d,p=e.yFormat,g=e.curve,m=g===void 0?"linear":g,v=e.layers,x=v===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:v,w=e.colors,_=w===void 0?{scheme:"nivo"}:w,C=e.lineWidth,y=C===void 0?2:C,$=e.enableArea,E=$!==void 0&&$,T=e.areaBaselineValue,k=T===void 0?0:T,O=e.areaOpacity,S=O===void 0?.2:O,M=e.enablePoints,A=M===void 0||M,j=e.pointSize,L=j===void 0?6:j,N=e.pointColor,F=N===void 0?{from:"color"}:N,U=e.pointBorderWidth,z=U===void 0?0:U,I=e.pointBorderColor,W=I===void 0?{theme:"background"}:I,Y=e.enableGridX,J=Y===void 0||Y,X=e.gridXValues,Z=e.enableGridY,Q=Z===void 0||Z,te=e.gridYValues,P=e.axisTop,D=e.axisRight,B=e.axisBottom,H=B===void 0?{}:B,R=e.axisLeft,G=R===void 0?{}:R,ee=e.legends,ne=ee===void 0?[]:ee,de=e.isInteractive,oe=de===void 0||de,ae=e.debugMesh,me=ae!==void 0&&ae,ve=e.onMouseLeave,Ee=e.onClick,Se=e.tooltip,Me=Se===void 0?Hb:Se,ge=e.canvasRef,_e=Bl(n,r,i),ce=_e.margin,Oe=_e.innerWidth,Ue=_e.innerHeight,Ot=_e.outerWidth,qe=_e.outerHeight,ht=Ft(),_t=h.useState(null),Vt=_t[0],gt=_t[1],bt=aO({data:s,xScale:l,xFormat:u,yScale:f,yFormat:p,width:Oe,height:Ue,colors:_,curve:m,areaBaselineValue:k,pointColor:F,pointBorderColor:W}),Ct=bt.lineGenerator,Ht=bt.areaGenerator,Be=bt.series,Pe=bt.xScale,et=bt.yScale,Ve=bt.points,tt=rO({points:Ve,width:Oe,height:Ue,debug:me}),nt=tt.delaunay,$t=tt.voronoi;h.useEffect(function(){ge&&(ge.current=t.current),t.current.width=Ot*a,t.current.height=qe*a;var we=t.current.getContext("2d");we.scale(a,a),we.fillStyle=ht.background,we.fillRect(0,0,Ot,qe),we.translate(ce.left,ce.top),x.forEach(function(Re){if(typeof Re=="function"&&Re({ctx:we,innerWidth:Oe,innerHeight:Ue,series:Be,points:Ve,xScale:Pe,yScale:et,lineWidth:y,lineGenerator:Ct,areaGenerator:Ht,currentPoint:Vt,setCurrentPoint:gt}),Re==="grid"&&ht.grid.line.strokeWidth>0&&(we.lineWidth=ht.grid.line.strokeWidth,we.strokeStyle=ht.grid.line.stroke,J&&Kd(we,{width:Oe,height:Ue,scale:Pe,axis:"x",values:X}),Q&&Kd(we,{width:Oe,height:Ue,scale:et,axis:"y",values:te})),Re==="axes"&&eO(we,{xScale:Pe,yScale:et,width:Oe,height:Ue,top:P,right:D,bottom:H,left:G,theme:ht}),Re==="areas"&&E===!0){we.save(),we.globalAlpha=S,Ht.context(we);for(var De=Be.length-1;De>=0;De--)we.fillStyle=Be[De].color,we.beginPath(),Ht(Be[De].data.map(function(Ye){return Ye.position})),we.fill();we.restore()}if(Re==="lines"&&(Ct.context(we),Be.forEach(function(Ye){we.strokeStyle=Ye.color,we.lineWidth=y,we.beginPath(),Ct(Ye.data.map(function(Et){return Et.position})),we.stroke()})),Re==="points"&&A===!0&&L>0&&Ve.forEach(function(Ye){we.fillStyle=Ye.color,we.beginPath(),we.arc(Ye.x,Ye.y,L/2,0,2*Math.PI),we.fill(),z>0&&(we.strokeStyle=Ye.borderColor,we.lineWidth=z,we.stroke())}),Re==="mesh"&&me===!0&&(lie(we,$t),Vt&&uie(we,$t,Vt.index)),Re==="legends"){var Ke=Be.map(function(Ye){return{id:Ye.id,label:Ye.id,color:Ye.color}}).reverse();ne.forEach(function(Ye){Lk(we,In({},Ye,{data:Ye.data||Ke,containerWidth:Oe,containerHeight:Ue,theme:ht}))})}})},[t,Ot,qe,x,ht,Ct,Be,Pe,et,J,X,Q,te,P,D,H,G,ne,Ve,A,L,Vt]);var pt=h.useCallback(function(we){var Re=bc(t.current,we),De=Re[0],Ke=Re[1];if(!Ok(ce.left,ce.top,Oe,Ue,De,Ke))return null;var Ye=nt.find(De-ce.left,Ke-ce.top);return Ve[Ye]},[t,ce,Oe,Ue,nt]),ut=ea(),xt=ut.showTooltipFromEvent,yt=ut.hideTooltip,at=h.useCallback(function(we){var Re=pt(we);gt(Re),Re?xt(h.createElement(Me,{point:Re}),we):yt()},[pt,gt,xt,yt,Me]),St=h.useCallback(function(we){yt(),gt(null),Vt&&ve&&ve(Vt,we)},[yt,gt,ve]),Mt=h.useCallback(function(we){if(Ee){var Re=pt(we);Re&&Ee(Re,we)}},[pt,Ee]);return b.jsx("canvas",{ref:t,width:Ot*a,height:qe*a,style:{width:Ot,height:qe,cursor:oe?"auto":"normal"},onMouseEnter:oe?at:void 0,onMouseMove:oe?at:void 0,onMouseLeave:oe?St:void 0,onClick:oe?Mt:void 0})}),Eie=h.forwardRef(function(e,t){return b.jsx(Sie,In({},e,{canvasRef:t}))});h.forwardRef(function(e,t){return b.jsx(Cs,{children:function(n){var r=n.width,i=n.height;return b.jsx(Eie,In({width:r,height:i},e,{ref:t}))}})});var Tie=Uk;function kie(e,t){var n=[];return Tie(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var Oie=kie,Mie=ik,Rie=Oie,Aie=Wb,jie=Kn;function Nie(e,t){var n=jie(e)?Mie:Rie;return n(e,Aie(t))}var Die=Nie;const Iie=rn(Die);var Pie=Si,Lie=yr,Fie="[object Number]";function Bie(e){return typeof e=="number"||Lie(e)&&Pie(e)==Fie}var zie=Bie;const k2=rn(zie);function Wie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Uie=Wie,Vie=bs,Hie=Fl;function qie(e,t){return e&&Vie(t,Hie(t),e)}var Yie=qie,Gie=bs,Kie=Il;function Zie(e,t){return e&&Gie(t,Kie(t),e)}var Xie=Zie,Qie=bs,Jie=jb;function eoe(e,t){return Qie(e,Jie(e),t)}var toe=eoe,noe=Rb,roe=U0,ioe=jb,ooe=ok,aoe=Object.getOwnPropertySymbols,soe=aoe?function(e){for(var t=[];e;)noe(t,ioe(e)),e=roe(e);return t}:ooe,sO=soe,coe=bs,loe=sO;function uoe(e,t){return coe(e,loe(e),t)}var doe=uoe,foe=rk,hoe=sO,poe=Il;function moe(e){return foe(e,poe,hoe)}var cO=moe,goe=Object.prototype,voe=goe.hasOwnProperty;function boe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&voe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var yoe=boe,xoe=W0;function woe(e,t){var n=t?xoe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var _oe=woe,Coe=/\w*$/;function $oe(e){var t=new e.constructor(e.source,Coe.exec(e));return t.lastIndex=e.lastIndex,t}var Soe=$oe,O2=fs,M2=O2?O2.prototype:void 0,R2=M2?M2.valueOf:void 0;function Eoe(e){return R2?Object(R2.call(e)):{}}var Toe=Eoe,koe=W0,Ooe=_oe,Moe=Soe,Roe=Toe,Aoe=wT,joe="[object Boolean]",Noe="[object Date]",Doe="[object Map]",Ioe="[object Number]",Poe="[object RegExp]",Loe="[object Set]",Foe="[object String]",Boe="[object Symbol]",zoe="[object ArrayBuffer]",Woe="[object DataView]",Uoe="[object Float32Array]",Voe="[object Float64Array]",Hoe="[object Int8Array]",qoe="[object Int16Array]",Yoe="[object Int32Array]",Goe="[object Uint8Array]",Koe="[object Uint8ClampedArray]",Zoe="[object Uint16Array]",Xoe="[object Uint32Array]";function Qoe(e,t,n){var r=e.constructor;switch(t){case zoe:return koe(e);case joe:case Noe:return new r(+e);case Woe:return Ooe(e,n);case Uoe:case Voe:case Hoe:case qoe:case Yoe:case Goe:case Koe:case Zoe:case Xoe:return Aoe(e,n);case Doe:return new r;case Ioe:case Foe:return new r(e);case Poe:return Moe(e);case Loe:return new r;case Boe:return Roe(e)}}var Joe=Qoe,eae=Gh,tae=yr,nae="[object Map]";function rae(e){return tae(e)&&eae(e)==nae}var iae=rae,oae=iae,aae=vs,A2=oh,j2=A2&&A2.isMap,sae=j2?aae(j2):oae,cae=sae,lae=Gh,uae=yr,dae="[object Set]";function fae(e){return uae(e)&&lae(e)==dae}var hae=fae,pae=hae,mae=vs,N2=oh,D2=N2&&N2.isSet,gae=D2?mae(D2):pae,vae=gae,bae=nh,yae=Uie,xae=K0,wae=Yie,_ae=Xie,Cae=yT,$ae=_T,Sae=toe,Eae=doe,Tae=ak,kae=cO,Oae=Gh,Mae=yoe,Rae=Joe,Aae=$T,jae=Kn,Nae=ih,Dae=cae,Iae=Qr,Pae=vae,Lae=Fl,Fae=Il,Bae=1,zae=2,Wae=4,lO="[object Arguments]",Uae="[object Array]",Vae="[object Boolean]",Hae="[object Date]",qae="[object Error]",uO="[object Function]",Yae="[object GeneratorFunction]",Gae="[object Map]",Kae="[object Number]",dO="[object Object]",Zae="[object RegExp]",Xae="[object Set]",Qae="[object String]",Jae="[object Symbol]",ese="[object WeakMap]",tse="[object ArrayBuffer]",nse="[object DataView]",rse="[object Float32Array]",ise="[object Float64Array]",ose="[object Int8Array]",ase="[object Int16Array]",sse="[object Int32Array]",cse="[object Uint8Array]",lse="[object Uint8ClampedArray]",use="[object Uint16Array]",dse="[object Uint32Array]",Kt={};Kt[lO]=Kt[Uae]=Kt[tse]=Kt[nse]=Kt[Vae]=Kt[Hae]=Kt[rse]=Kt[ise]=Kt[ose]=Kt[ase]=Kt[sse]=Kt[Gae]=Kt[Kae]=Kt[dO]=Kt[Zae]=Kt[Xae]=Kt[Qae]=Kt[Jae]=Kt[cse]=Kt[lse]=Kt[use]=Kt[dse]=!0;Kt[qae]=Kt[uO]=Kt[ese]=!1;function Ju(e,t,n,r,i,o){var a,s=t&Bae,c=t&zae,l=t&Wae;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Iae(e))return e;var u=jae(e);if(u){if(a=Mae(e),!s)return $ae(e,a)}else{var d=Oae(e),f=d==uO||d==Yae;if(Nae(e))return Cae(e,s);if(d==dO||d==lO||f&&!i){if(a=c||f?{}:Aae(e),!s)return c?Eae(e,_ae(a,e)):Sae(e,wae(a,e))}else{if(!Kt[d])return i?e:{};a=Rae(e,d,s)}}o||(o=new bae);var p=o.get(e);if(p)return p;o.set(e,a),Pae(e)?e.forEach(function(v){a.add(Ju(v,t,n,v,e,o))}):Dae(e)&&e.forEach(function(v,x){a.set(x,Ju(v,t,n,x,e,o))});var g=l?c?kae:Tae:c?Fae:Lae,m=u?void 0:g(e);return yae(m||e,function(v,x){m&&(x=v,v=e[x]),xae(a,x,Ju(v,t,n,x,e,o))}),a}var fse=Ju;function hse(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var pse=hse,mse=Pl,gse=pse;function vse(e,t){return t.length<2?e:mse(e,gse(t,0,-1))}var bse=vse,yse=ys,xse=HT,wse=bse,_se=xs;function Cse(e,t){return t=yse(t,e),e=wse(e,t),e==null||delete e[_se(xse(t))]}var $se=Cse,Sse=q0;function Ese(e){return Sse(e)?void 0:e}var Tse=Ese,kse=lh,Ose=fse,Mse=$se,Rse=ys,Ase=bs,jse=Tse,Nse=tk,Dse=cO,Ise=1,Pse=2,Lse=4,Fse=Nse(function(e,t){var n={};if(e==null)return n;var r=!1;t=kse(t,function(o){return o=Rse(o,e),r||(r=o.length>1),o}),Ase(e,Dse(e),n),r&&(n=Ose(n,Ise|Pse|Lse,jse));for(var i=t.length;i--;)Mse(n,t[i]);return n}),Bse=Fse;const fO=rn(Bse);function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yr.apply(this,arguments)}var iv={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},zse=function(e){var t=typeof e;return h.isValidElement(e)||t==="string"||t==="function"||t==="object"},Wse=function(e){var t=typeof e;return t==="string"||t==="function"},ul=function(e){return e.type==="circle"},ov=function(e){return e.type==="dot"},dl=function(e){return e.type==="rect"},Use=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(o,a){var s=a.offset||0;return[].concat(o,Iie(t,a.match).map(function(c){var l=r(c),u=i(c);return(ul(a)||dl(a))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Yr({},fO(a,["match","offset"]),l,u,{size:a.size||u.size,datum:c})}))},[])},Vse=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return UJ(Zh(i))},hO=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,c=s===void 0?iv.noteWidth:s,l=e.noteTextOffset,u=l===void 0?iv.noteTextOffset:l;if(k2(o))t=r+o;else{if(o.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(k2(a))n=i+a;else{if(a.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var d=r,f=i,p=Vse(r,i,t,n);if(ul(e)){var g=Io(fr(p),e.size/2);d+=g.x,f+=g.y}if(dl(e)){var m=Math.round((p+90)/45)%8;m===0&&(f-=e.height/2),m===1&&(d+=e.width/2,f-=e.height/2),m===2&&(d+=e.width/2),m===3&&(d+=e.width/2,f+=e.height/2),m===4&&(f+=e.height/2),m===5&&(d-=e.width/2,f+=e.height/2),m===6&&(d-=e.width/2),m===7&&(d-=e.width/2,f-=e.height/2)}var v=t,x=t;return(p+90)%360>180?(v-=c,x-=c):x+=c,{points:[[d,f],[t,n],[x,n]],text:[v,n-u],angle:p+90}},pO=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return h.useMemo(function(){return Use({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},Hse=function(e){var t=e.annotations;return h.useMemo(function(){return t.map(function(n){return Yr({},n,{computed:hO(Yr({},n))})})},[t])},qse=function(e){return h.useMemo(function(){return hO(e)},[e])},Yse=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=Ft(),a=Fn(),s=a.animate,c=a.config,l=Zr({x:n,y:r,config:c,immediate:!s});return typeof i=="function"?h.createElement(i,{x:n,y:r,datum:t}):b.jsxs(b.Fragment,{children:[o.annotations.text.outlineWidth>0&&b.jsx(Lt.text,{x:l.x,y:l.y,style:Yr({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),b.jsx(Lt.text,{x:l.x,y:l.y,style:fO(o.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},I2=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Ft(),o=h.useMemo(function(){var c=t[0];return t.slice(1).reduce(function(l,u){return l+" L"+u[0]+","+u[1]},"M"+c[0]+","+c[1])},[t]),a=Db(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Yr({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),b.jsx(Lt.path,{fill:"none",d:a,style:s})},Gse=function(e){var t=e.x,n=e.y,r=e.size,i=Ft(),o=Fn(),a=o.animate,s=o.config,c=Zr({x:t,y:n,radius:r/2,config:s,immediate:!a});return b.jsxs(b.Fragment,{children:[i.annotations.outline.outlineWidth>0&&b.jsx(Lt.circle,{cx:c.x,cy:c.y,r:c.radius,style:Yr({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),b.jsx(Lt.circle,{cx:c.x,cy:c.y,r:c.radius,style:i.annotations.outline})]})},Kse=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?iv.dotSize:r,o=Ft(),a=Fn(),s=a.animate,c=a.config,l=Zr({x:t,y:n,radius:i/2,config:c,immediate:!s});return b.jsxs(b.Fragment,{children:[o.annotations.outline.outlineWidth>0&&b.jsx(Lt.circle,{cx:l.x,cy:l.y,r:l.radius,style:Yr({},o.annotations.outline,{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),b.jsx(Lt.circle,{cx:l.x,cy:l.y,r:l.radius,style:o.annotations.symbol})]})},Zse=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.borderRadius,a=o===void 0?6:o,s=Ft(),c=Fn(),l=c.animate,u=c.config,d=Zr({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!l});return b.jsxs(b.Fragment,{children:[s.annotations.outline.outlineWidth>0&&b.jsx(Lt.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:Yr({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),b.jsx(Lt.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:s.annotations.outline})]})},Xse=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=qse(e);if(!zse(i))throw new Error("note should be a valid react element");return b.jsxs(b.Fragment,{children:[b.jsx(I2,{points:o.points,isOutline:!0}),ul(e)&&b.jsx(Gse,{x:n,y:r,size:e.size}),ov(e)&&b.jsx(Kse,{x:n,y:r,size:e.size}),dl(e)&&b.jsx(Zse,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),b.jsx(I2,{points:o.points}),b.jsx(Yse,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},P2=function(e,t){t.forEach(function(n,r){var i=n[0],o=n[1];r===0?e.moveTo(i,o):e.lineTo(i,o)})},Qse=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!Wse(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),P2(e,i.computed.points),e.stroke(),e.lineCap="butt"),ul(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),ov(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),dl(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),P2(e,i.computed.points),e.stroke(),ul(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),ov(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),dl(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}),e.restore())};function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}function $s(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var L2,Jse=function(e){var t=e.bars,n=e.annotations,r=pO({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var o=i.height,a=i.width;return{width:a,height:o,size:Math.max(a,o)}}});return b.jsx(b.Fragment,{children:r.map(function(i,o){return b.jsx(Xse,Wt({},i),o)})})},ece=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return b.jsx(b.Fragment,{children:r.map(function(o,a){var s,c=o[0],l=o[1];return b.jsx(zb,Wt({},c,{containerWidth:t,containerHeight:n,data:(s=c.data)!=null?s:l,toggleSerie:c.toggleSerie&&c.dataFrom==="keys"?i:void 0}),a)})})},tce=["data"],nce=function(e){var t,n=e.bar,r=n.data,i=$s(n,tce),o=e.style,a=o.borderColor,s=o.color,c=o.height,l=o.labelColor,u=o.labelOpacity,d=o.labelX,f=o.labelY,p=o.transform,g=o.width,m=e.borderRadius,v=e.borderWidth,x=e.label,w=e.shouldRenderLabel,_=e.isInteractive,C=e.onClick,y=e.onMouseEnter,$=e.onMouseLeave,E=e.tooltip,T=e.isFocusable,k=e.ariaLabel,O=e.ariaLabelledBy,S=e.ariaDescribedBy,M=Ft(),A=ea(),j=A.showTooltipFromEvent,L=A.showTooltipAt,N=A.hideTooltip,F=h.useMemo(function(){return function(){return h.createElement(E,Wt({},i,r))}},[E,i,r]),U=h.useCallback(function(X){C==null||C(Wt({color:i.color},r),X)},[i,r,C]),z=h.useCallback(function(X){return j(F(),X)},[j,F]),I=h.useCallback(function(X){y==null||y(r,X),j(F(),X)},[r,y,j,F]),W=h.useCallback(function(X){$==null||$(r,X),N()},[r,N,$]),Y=h.useCallback(function(){L(F(),[i.absX+i.width/2,i.absY])},[L,F,i]),J=h.useCallback(function(){N()},[N]);return b.jsxs(Lt.g,{transform:p,children:[b.jsx(Lt.rect,{width:to(g,function(X){return Math.max(X,0)}),height:to(c,function(X){return Math.max(X,0)}),rx:m,ry:m,fill:(t=r.fill)!=null?t:s,strokeWidth:v,stroke:a,focusable:T,tabIndex:T?0:void 0,"aria-label":k?k(r):void 0,"aria-labelledby":O?O(r):void 0,"aria-describedby":S?S(r):void 0,onMouseEnter:_?I:void 0,onMouseMove:_?z:void 0,onMouseLeave:_?W:void 0,onClick:_?U:void 0,onFocus:_&&T?Y:void 0,onBlur:_&&T?J:void 0}),w&&b.jsx(Lt.text,{x:d,y:f,textAnchor:"middle",dominantBaseline:"central",fillOpacity:u,style:Wt({},M.labels.text,{pointerEvents:"none",fill:l}),children:x})]})},rce=["color","label"],ice=function(e){var t=e.color,n=e.label,r=$s(e,rce);return b.jsx(P0,{id:n,value:r.formattedValue,enableChip:!0,color:t})},Yt={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:ice,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10},Qt=Wt({},Yt,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:nce,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),_n=Wt({},Yt,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(L2=window.devicePixelRatio)!=null?L2:1}),mO=function(e,t,n,r,i,o){return ll(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},gO=function(e,t){return e.map(function(n){return Wt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},Qh=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Jh=function(e){return[e,Number(e)]},oce=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],qb=function(e,t){return e>t},vO=function(e,t){return e<t},bO=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},ace=function(e){return qb(e,0)?0:e},sce=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,s=e.getIndex,c=e.getTooltipLabel,l=e.innerPadding,u=l===void 0?0:l,d=e.keys,f=e.xScale,p=e.yScale,g=e.margin,m=n?vO:qb,v=i.map(Qh),x=[];return d.forEach(function(w,_){return bO(0,f.domain().length).forEach(function(C){var y,$,E,T=Jh(i[C][w]),k=T[0],O=T[1],S=s(i[C]),M=((y=f(S))!=null?y:0)+t*_+u*_,A=m($=O,0)?(E=p($))!=null?E:0:r,j=function(N,F){var U;return m(N,0)?r-F:((U=p(N))!=null?U:0)-r}(O,A),L={id:w,value:k===null?k:O,formattedValue:o(O),hidden:!1,index:C,indexValue:S,data:v[C]};x.push({key:w+"."+L.indexValue,index:x.length,data:L,x:M,y:A,absX:g.left+M,absY:g.top+A,width:t,height:j,color:a(L),label:c(L)})})}),x},cce=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,s=e.getColor,c=e.getTooltipLabel,l=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,p=e.yScale,g=e.margin,m=n?vO:qb,v=i.map(Qh),x=[];return l.forEach(function(w,_){return bO(0,p.domain().length).forEach(function(C){var y,$,E,T=Jh(i[C][w]),k=T[0],O=T[1],S=a(i[C]),M=m($=O,0)?r:(E=f($))!=null?E:0,A=((y=p(S))!=null?y:0)+t*_+d*_,j=function(N,F){var U;return m(N,0)?((U=f(N))!=null?U:0)-r:r-F}(O,M),L={id:w,value:k===null?k:O,formattedValue:o(O),hidden:!1,index:C,indexValue:S,data:v[C]};x.push({key:w+"."+L.indexValue,index:x.length,data:L,x:M,y:A,absX:g.left+M,absY:g.top+A,width:j,height:t,color:s(L),label:c(L)})})}),x},lce=function(e){var t,n,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.innerPadding,f=d===void 0?0:d,p=e.valueScale,g=e.indexScale,m=e.hiddenIds,v=m===void 0?[]:m,x=$s(e,oce),w=x.keys.filter(function(I){return!v.includes(I)}),_=gO(x.data,w),C=r==="vertical"?["y","x",s]:["x","y",c],y=C[0],$=C[1],E=C[2],T=mO(_,x.getIndex,u,g,E,$),k=Wt({max:o,min:i,reverse:a},p),O=k.min==="auto"?ace:function(I){return I},S=_.reduce(function(I,W){return[].concat(I,w.map(function(Y){return W[Y]}))},[]).filter(Boolean),M=O(Math.min.apply(Math,S)),A=(n=Math.max.apply(Math,S),isFinite(n)?n:0),j=ll(k,{all:S,min:M,max:A},y==="x"?s:c,y),L=r==="vertical"?[T,j]:[j,T],N=L[0],F=L[1],U=(T.bandwidth()-f*(w.length-1))/w.length,z=[Wt({},x,{data:_,keys:w,innerPadding:f,xScale:N,yScale:F}),U,k.reverse,(t=j(0))!=null?t:0];return{xScale:N,yScale:F,bars:U>0?r==="vertical"?sce.apply(void 0,z):cce.apply(void 0,z):[]}},uce=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],dce=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},fce=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach(function(p){return l.domain().forEach(function(g,m){var v,x,w=p[m],_=(v=l(o(w.data)))!=null?v:0,C=((x=function(O){return u(O[n?0:1])}(w))!=null?x:0)+.5*s,y=function(O,S){var M;return((M=u(O[n?1:0]))!=null?M:0)-S}(w,C)-s,$=Jh(w.data[p.key]),E=$[0],T=$[1],k={id:p.key,value:E===null?E:T,formattedValue:r(T),hidden:!1,index:m,indexValue:g,data:Qh(w.data)};f.push({key:p.key+"."+g,index:f.length,data:k,x:_,y:C,absX:d.left+_,absY:d.top+C,width:t,height:y,color:i(k),label:a(k)})})}),f},hce=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach(function(p){return u.domain().forEach(function(g,m){var v,x,w=p[m],_=(v=u(o(w.data)))!=null?v:0,C=((x=function(O){return l(O[n?1:0])}(w))!=null?x:0)+.5*s,y=function(O,S){var M;return((M=l(O[n?0:1]))!=null?M:0)-S}(w,C)-s,$=Jh(w.data[p.key]),E=$[0],T=$[1],k={id:p.key,value:E===null?E:T,formattedValue:r(T),hidden:!1,index:m,indexValue:g,data:Qh(w.data)};f.push({key:p.key+"."+g,index:f.length,data:k,x:C,y:_,absX:d.left+C,absY:d.top+_,width:y,height:t,color:i(k),label:a(k)})})}),f},pce=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.valueScale,f=e.indexScale,p=e.hiddenIds,g=p===void 0?[]:p,m=$s(e,uce),v=m.keys.filter(function(U){return!g.includes(U)}),x=QZ().keys(v).offset(JZ)(gO(n,v)),w=r==="vertical"?["y","x",s]:["x","y",c],_=w[0],C=w[1],y=w[2],$=mO(n,m.getIndex,u,f,y,C),E=Wt({max:o,min:i,reverse:a},d),T=(t=dce(x),d.type==="log"?t.filter(function(U){return U!==0}):t),k=Math.min.apply(Math,T),O=Math.max.apply(Math,T),S=ll(E,{all:T,min:k,max:O},_==="x"?s:c,_),M=r==="vertical"?[$,S]:[S,$],A=M[0],j=M[1],L=m.innerPadding>0?m.innerPadding:0,N=$.bandwidth(),F=[Wt({},m,{innerPadding:L,stackedData:x,xScale:A,yScale:j}),N,E.reverse];return{xScale:A,yScale:j,bars:N>0?r==="vertical"?fce.apply(void 0,F):hce.apply(void 0,F):[]}},mce=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,s=e.reverse,c=kk(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(l,u,d){var f=tv(l.map(function(p){var g,m;return{id:(g=p.data.indexValue)!=null?g:"",label:d(p.data),hidden:p.data.hidden,color:(m=p.color)!=null?m:"#000"}}),function(p){return p.id});return u==="horizontal"&&f.reverse(),f}(t,o,c):function(l,u,d,f,p,g){var m=tv(l.map(function(v){var x;return{id:v.data.id,label:g(v.data),hidden:v.data.hidden,color:(x=v.color)!=null?x:"#000"}}),function(v){return v.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&p!==!0||u==="horizontal"&&f==="stacked"&&p===!0)&&m.reverse(),m}(t,o,n,i,s,c)},F2=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},gce=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},vce=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},bce=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},yO=function(e){var t=e.indexBy,n=t===void 0?Yt.indexBy:t,r=e.keys,i=r===void 0?Yt.keys:r,o=e.label,a=o===void 0?Yt.label:o,s=e.tooltipLabel,c=s===void 0?Yt.tooltipLabel:s,l=e.valueFormat,u=e.colors,d=u===void 0?Yt.colors:u,f=e.colorBy,p=f===void 0?Yt.colorBy:f,g=e.borderColor,m=g===void 0?Yt.borderColor:g,v=e.labelTextColor,x=v===void 0?Yt.labelTextColor:v,w=e.groupMode,_=w===void 0?Yt.groupMode:w,C=e.layout,y=C===void 0?Yt.layout:C,$=e.reverse,E=$===void 0?Yt.reverse:$,T=e.data,k=e.minValue,O=k===void 0?Yt.minValue:k,S=e.maxValue,M=S===void 0?Yt.maxValue:S,A=e.margin,j=e.width,L=e.height,N=e.padding,F=N===void 0?Yt.padding:N,U=e.innerPadding,z=U===void 0?Yt.innerPadding:U,I=e.valueScale,W=I===void 0?Yt.valueScale:I,Y=e.indexScale,J=Y===void 0?Yt.indexScale:Y,X=e.initialHiddenIds,Z=X===void 0?Yt.initialHiddenIds:X,Q=e.enableLabel,te=Q===void 0?Yt.enableLabel:Q,P=e.labelSkipWidth,D=P===void 0?Yt.labelSkipWidth:P,B=e.labelSkipHeight,H=B===void 0?Yt.labelSkipHeight:B,R=e.legends,G=R===void 0?Yt.legends:R,ee=e.legendLabel,ne=e.totalsOffset,de=ne===void 0?Yt.totalsOffset:ne,oe=h.useState(Z??[]),ae=oe[0],me=oe[1],ve=h.useCallback(function(Be){me(function(Pe){return Pe.indexOf(Be)>-1?Pe.filter(function(et){return et!==Be}):[].concat(Pe,[Be])})},[]),Ee=Po(n),Se=Po(a),Me=Po(c),ge=Qa(l),_e=Ft(),ce=Fb(d,p),Oe=qr(m,_e),Ue=qr(x,_e),Ot=(_==="grouped"?lce:pce)({layout:y,reverse:E,data:T,getIndex:Ee,keys:i,minValue:O,maxValue:M,width:j,height:L,getColor:ce,padding:F,innerPadding:z,valueScale:W,indexScale:J,hiddenIds:ae,formatValue:ge,getTooltipLabel:Me,margin:A}),qe=Ot.bars,ht=Ot.xScale,_t=Ot.yScale,Vt=h.useMemo(function(){return qe.filter(function(Be){return Be.data.value!==null}).map(function(Be,Pe){return Wt({},Be,{index:Pe})})},[qe]),gt=h.useCallback(function(Be){var Pe=Be.width,et=Be.height;return!!te&&!(D>0&&Pe<D)&&!(H>0&&et<H)},[te,D,H]),bt=h.useMemo(function(){return i.map(function(Be){var Pe=qe.find(function(et){return et.data.id===Be});return Wt({},Pe,{data:Wt({id:Be},Pe==null?void 0:Pe.data,{hidden:ae.includes(Be)})})})},[ae,i,qe]),Ct=h.useMemo(function(){return G.map(function(Be){return[Be,mce({bars:Be.dataFrom==="keys"?bt:qe,direction:Be.direction,from:Be.dataFrom,groupMode:_,layout:y,legendLabel:ee,reverse:E})]})},[G,bt,qe,_,y,ee,E]),Ht=h.useMemo(function(){return function(Be,Pe,et,Ve,tt,nt,$t){Ve===void 0&&(Ve=Yt.layout),tt===void 0&&(tt=Yt.groupMode);var pt=[];if(Be.length===0)return pt;var ut=new Map,xt=Be[0].width,yt=Be[0].height;if(tt==="stacked"){var at=new Map;Be.forEach(function(we){var Re=we.data,De=Re.indexValue,Ke=Re.value;F2(ut,De,Number(Ke)),gce(at,De,Number(Ke))}),at.forEach(function(we,Re){var De,Ke,Ye,Et=ut.get(Re)||0;Ve==="vertical"?(De=Pe(Re),Ke=et(we),Ye=et(we/2)):(De=Pe(we),Ke=et(Re),Ye=Pe(we/2)),De+=Ve==="vertical"?xt/2:nt,Ke+=Ve==="vertical"?-nt:yt/2,pt.push({key:"total_"+Re,x:De,y:Ke,value:Et,formattedValue:$t(Et),animationOffset:Ye})})}else if(tt==="grouped"){var St=new Map,Mt=new Map;Be.forEach(function(we){var Re=we.data,De=Re.indexValue,Ke=Re.value;F2(ut,De,Number(Ke)),vce(St,De,Number(Ke)),bce(Mt,De)}),St.forEach(function(we,Re){var De,Ke,Ye,Et=ut.get(Re)||0,q=Mt.get(Re);Ve==="vertical"?(De=Pe(Re),Ke=et(we),Ye=et(we/2)):(De=Pe(we),Ke=et(Re),Ye=Pe(we/2)),De+=Ve==="vertical"?q*xt/2:nt,Ke+=Ve==="vertical"?-nt:q*yt/2,pt.push({key:"total_"+Re,x:De,y:Ke,value:Et,formattedValue:$t(Et),animationOffset:Ye})})}return pt}(qe,ht,_t,y,_,de,ge)},[qe,ht,_t,y,_,de,ge]);return{bars:qe,barsWithValue:Vt,xScale:ht,yScale:_t,getIndex:Ee,getLabel:Se,getTooltipLabel:Me,formatValue:ge,getColor:ce,getBorderColor:Oe,getLabelColor:Ue,shouldRenderBarLabel:gt,hiddenIds:ae,toggleSerie:ve,legendsWithData:Ct,barTotals:Ht}},yce=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=i===void 0?Qt.layout:i,a=Ft();return Jo(t,{keys:function(s){return s.key},from:function(s){return{x:o==="vertical"?s.x:s.animationOffset,y:o==="vertical"?s.animationOffset:s.y,labelOpacity:0}},enter:function(s){return{x:s.x,y:s.y,labelOpacity:1}},update:function(s){return{x:s.x,y:s.y,labelOpacity:1}},leave:function(s){return{x:o==="vertical"?s.x:s.animationOffset,y:o==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,c){return b.jsx(Lt.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:Wt({},a.labels.text,{pointerEvents:"none",fill:a.text.fill}),fontWeight:"bold",fontSize:a.labels.text.fontSize,fontFamily:a.labels.text.fontFamily,textAnchor:o==="vertical"?"middle":"start",alignmentBaseline:o==="vertical"?"alphabetic":"middle",children:c.formattedValue},c.key)})},xce=["isInteractive","animate","motionConfig","theme","renderWrapper"],wce=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,a=e.height,s=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,p=e.indexScale,g=e.padding,m=e.innerPadding,v=e.axisTop,x=e.axisRight,w=e.axisBottom,_=w===void 0?Qt.axisBottom:w,C=e.axisLeft,y=C===void 0?Qt.axisLeft:C,$=e.enableGridX,E=$===void 0?Qt.enableGridX:$,T=e.enableGridY,k=T===void 0?Qt.enableGridY:T,O=e.gridXValues,S=e.gridYValues,M=e.layers,A=M===void 0?Qt.layers:M,j=e.barComponent,L=j===void 0?Qt.barComponent:j,N=e.enableLabel,F=N===void 0?Qt.enableLabel:N,U=e.label,z=e.labelSkipWidth,I=z===void 0?Qt.labelSkipWidth:z,W=e.labelSkipHeight,Y=W===void 0?Qt.labelSkipHeight:W,J=e.labelTextColor,X=e.markers,Z=X===void 0?Qt.markers:X,Q=e.colorBy,te=e.colors,P=e.defs,D=P===void 0?Qt.defs:P,B=e.fill,H=B===void 0?Qt.fill:B,R=e.borderRadius,G=R===void 0?Qt.borderRadius:R,ee=e.borderWidth,ne=ee===void 0?Qt.borderWidth:ee,de=e.borderColor,oe=e.annotations,ae=oe===void 0?Qt.annotations:oe,me=e.legendLabel,ve=e.tooltipLabel,Ee=e.valueFormat,Se=e.isInteractive,Me=Se===void 0?Qt.isInteractive:Se,ge=e.tooltip,_e=ge===void 0?Qt.tooltip:ge,ce=e.onClick,Oe=e.onMouseEnter,Ue=e.onMouseLeave,Ot=e.legends,qe=e.role,ht=qe===void 0?Qt.role:qe,_t=e.ariaLabel,Vt=e.ariaLabelledBy,gt=e.ariaDescribedBy,bt=e.isFocusable,Ct=bt===void 0?Qt.isFocusable:bt,Ht=e.barAriaLabel,Be=e.barAriaLabelledBy,Pe=e.barAriaDescribedBy,et=e.initialHiddenIds,Ve=e.enableTotals,tt=Ve===void 0?Qt.enableTotals:Ve,nt=e.totalsOffset,$t=nt===void 0?Qt.totalsOffset:nt,pt=Fn(),ut=pt.animate,xt=pt.config,yt=Bl(o,a,i),at=yt.outerWidth,St=yt.outerHeight,Mt=yt.margin,we=yt.innerWidth,Re=yt.innerHeight,De=yO({indexBy:n,label:U,tooltipLabel:ve,valueFormat:Ee,colors:te,colorBy:Q,borderColor:de,labelTextColor:J,groupMode:s,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:Mt,width:we,height:Re,padding:g,innerPadding:m,valueScale:f,indexScale:p,enableLabel:F,labelSkipWidth:I,labelSkipHeight:Y,legends:Ot,legendLabel:me,initialHiddenIds:et,totalsOffset:$t}),Ke=De.bars,Ye=De.barsWithValue,Et=De.xScale,q=De.yScale,he=De.getLabel,le=De.getTooltipLabel,fe=De.getBorderColor,$e=De.getLabelColor,Ie=De.shouldRenderBarLabel,Te=De.toggleSerie,Ne=De.legendsWithData,He=De.barTotals,ze=Jo(Ye,{keys:function(Ce){return Ce.key},from:function(Ce){return Wt({borderColor:fe(Ce),color:Ce.color,height:0,labelColor:$e(Ce),labelOpacity:0,labelX:Ce.width/2,labelY:Ce.height/2,transform:"translate("+Ce.x+", "+(Ce.y+Ce.height)+")",width:Ce.width},c==="vertical"?{}:{height:Ce.height,transform:"translate("+Ce.x+", "+Ce.y+")",width:0})},enter:function(Ce){return{borderColor:fe(Ce),color:Ce.color,height:Ce.height,labelColor:$e(Ce),labelOpacity:1,labelX:Ce.width/2,labelY:Ce.height/2,transform:"translate("+Ce.x+", "+Ce.y+")",width:Ce.width}},update:function(Ce){return{borderColor:fe(Ce),color:Ce.color,height:Ce.height,labelColor:$e(Ce),labelOpacity:1,labelX:Ce.width/2,labelY:Ce.height/2,transform:"translate("+Ce.x+", "+Ce.y+")",width:Ce.width}},leave:function(Ce){return Wt({borderColor:fe(Ce),color:Ce.color,height:0,labelColor:$e(Ce),labelOpacity:0,labelX:Ce.width/2,labelY:0,transform:"translate("+Ce.x+", "+(Ce.y+Ce.height)+")",width:Ce.width},c==="vertical"?{}:{labelX:0,labelY:Ce.height/2,height:Ce.height,transform:"translate("+Ce.x+", "+Ce.y+")",width:0})},config:xt,immediate:!ut,initial:ut?void 0:null}),st=h.useMemo(function(){return{borderRadius:G,borderWidth:ne,enableLabel:F,isInteractive:Me,labelSkipWidth:I,labelSkipHeight:Y,onClick:ce,onMouseEnter:Oe,onMouseLeave:Ue,getTooltipLabel:le,tooltip:_e,isFocusable:Ct,ariaLabel:Ht,ariaLabelledBy:Be,ariaDescribedBy:Pe}},[G,ne,F,le,Me,Y,I,ce,Oe,Ue,_e,Ct,Ht,Be,Pe]),nn=Lb(D,Ke,H,{dataKey:"data",targetKey:"data.fill"}),Ut={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};A.includes("annotations")&&(Ut.annotations=b.jsx(Jse,{bars:Ke,annotations:ae},"annotations")),A.includes("axes")&&(Ut.axes=b.jsx(Qk,{xScale:Et,yScale:q,width:we,height:Re,top:v,right:x,bottom:_,left:y},"axes")),A.includes("bars")&&(Ut.bars=b.jsx(h.Fragment,{children:ze(function(Ce,xn){return h.createElement(L,Wt({},st,{bar:xn,style:Ce,shouldRenderLabel:Ie(xn),label:he(xn.data)}))})},"bars")),A.includes("grid")&&(Ut.grid=b.jsx(Jk,{width:we,height:Re,xScale:E?Et:null,yScale:k?q:null,xValues:O,yValues:S},"grid")),A.includes("legends")&&(Ut.legends=b.jsx(ece,{width:we,height:Re,legends:Ne,toggleSerie:Te},"legends")),A.includes("markers")&&(Ut.markers=b.jsx(Ek,{markers:Z,width:we,height:Re,xScale:Et,yScale:q},"markers")),A.includes("totals")&&tt&&(Ut.totals=b.jsx(yce,{data:He,springConfig:xt,animate:ut,layout:c},"totals"));var cn=h.useMemo(function(){return Wt({},st,{margin:Mt,width:o,height:a,innerWidth:we,innerHeight:Re,bars:Ke,legendData:Ne,enableLabel:F,xScale:Et,yScale:q,tooltip:_e,getTooltipLabel:le,onClick:ce,onMouseEnter:Oe,onMouseLeave:Ue})},[st,Mt,o,a,we,Re,Ke,Ne,F,Et,q,_e,le,ce,Oe,Ue]);return b.jsx(Xh,{width:at,height:St,margin:Mt,defs:nn,role:ht,ariaLabel:_t,ariaLabelledBy:Vt,ariaDescribedBy:gt,isFocusable:Ct,children:A.map(function(Ce,xn){var qt;return typeof Ce=="function"?b.jsx(h.Fragment,{children:h.createElement(Ce,cn)},xn):(qt=Ut==null?void 0:Ut[Ce])!=null?qt:null})})},_ce=function(e){var t=e.isInteractive,n=t===void 0?Qt.isInteractive:t,r=e.animate,i=r===void 0?Qt.animate:r,o=e.motionConfig,a=o===void 0?Qt.motionConfig:o,s=e.theme,c=e.renderWrapper,l=$s(e,xce);return b.jsx(zl,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:c,theme:s,children:b.jsx(wce,Wt({isInteractive:n},l))})},Cce=["isInteractive","renderWrapper","theme"],fm=function(e,t,n,r){return e.find(function(i){return Ok(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},$ce=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,a=e.height,s=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,p=e.indexScale,g=e.padding,m=e.innerPadding,v=e.axisTop,x=e.axisRight,w=e.axisBottom,_=w===void 0?_n.axisBottom:w,C=e.axisLeft,y=C===void 0?_n.axisLeft:C,$=e.enableGridX,E=$===void 0?_n.enableGridX:$,T=e.enableGridY,k=T===void 0?_n.enableGridY:T,O=e.gridXValues,S=e.gridYValues,M=e.layers,A=M===void 0?_n.layers:M,j=e.renderBar,L=j===void 0?function(le,fe){var $e=fe.bar,Ie=$e.color,Te=$e.height,Ne=$e.width,He=$e.x,ze=$e.y,st=fe.borderColor,nn=fe.borderRadius,Ut=fe.borderWidth,cn=fe.label,Ce=fe.labelColor,xn=fe.shouldRenderLabel;if(le.fillStyle=Ie,Ut>0&&(le.strokeStyle=st,le.lineWidth=Ut),le.beginPath(),nn>0){var qt=Math.min(nn,Te);le.moveTo(He+qt,ze),le.lineTo(He+Ne-qt,ze),le.quadraticCurveTo(He+Ne,ze,He+Ne,ze+qt),le.lineTo(He+Ne,ze+Te-qt),le.quadraticCurveTo(He+Ne,ze+Te,He+Ne-qt,ze+Te),le.lineTo(He+qt,ze+Te),le.quadraticCurveTo(He,ze+Te,He,ze+Te-qt),le.lineTo(He,ze+qt),le.quadraticCurveTo(He,ze,He+qt,ze),le.closePath()}else le.rect(He,ze,Ne,Te);le.fill(),Ut>0&&le.stroke(),xn&&(le.textBaseline="middle",le.textAlign="center",le.fillStyle=Ce,le.fillText(cn,He+Ne/2,ze+Te/2))}:j,N=e.enableLabel,F=N===void 0?_n.enableLabel:N,U=e.label,z=e.labelSkipWidth,I=z===void 0?_n.labelSkipWidth:z,W=e.labelSkipHeight,Y=W===void 0?_n.labelSkipHeight:W,J=e.labelTextColor,X=e.colorBy,Z=e.colors,Q=e.borderRadius,te=Q===void 0?_n.borderRadius:Q,P=e.borderWidth,D=P===void 0?_n.borderWidth:P,B=e.borderColor,H=e.annotations,R=H===void 0?_n.annotations:H,G=e.legendLabel,ee=e.tooltipLabel,ne=e.valueFormat,de=e.isInteractive,oe=de===void 0?_n.isInteractive:de,ae=e.tooltip,me=ae===void 0?_n.tooltip:ae,ve=e.onClick,Ee=e.onMouseEnter,Se=e.onMouseLeave,Me=e.legends,ge=e.pixelRatio,_e=ge===void 0?_n.pixelRatio:ge,ce=e.canvasRef,Oe=e.enableTotals,Ue=Oe===void 0?_n.enableTotals:Oe,Ot=e.totalsOffset,qe=Ot===void 0?_n.totalsOffset:Ot,ht=h.useRef(null),_t=Ft(),Vt=Bl(o,a,i),gt=Vt.margin,bt=Vt.innerWidth,Ct=Vt.innerHeight,Ht=Vt.outerWidth,Be=Vt.outerHeight,Pe=yO({indexBy:n,label:U,tooltipLabel:ee,valueFormat:ne,colors:Z,colorBy:X,borderColor:B,labelTextColor:J,groupMode:s,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:gt,width:bt,height:Ct,padding:g,innerPadding:m,valueScale:f,indexScale:p,enableLabel:F,labelSkipWidth:I,labelSkipHeight:Y,legends:Me,legendLabel:G,totalsOffset:qe}),et=Pe.bars,Ve=Pe.barsWithValue,tt=Pe.xScale,nt=Pe.yScale,$t=Pe.getLabel,pt=Pe.getTooltipLabel,ut=Pe.getBorderColor,xt=Pe.getLabelColor,yt=Pe.shouldRenderBarLabel,at=Pe.legendsWithData,St=Pe.barTotals,Mt=ea(),we=Mt.showTooltipFromEvent,Re=Mt.hideTooltip,De=Hse({annotations:pO({data:et,annotations:R,getPosition:function(le){return{x:le.x,y:le.y}},getDimensions:function(le){var fe=le.width,$e=le.height;return{width:fe,height:$e,size:Math.max(fe,$e)}}})}),Ke=h.useMemo(function(){return{borderRadius:te,borderWidth:D,isInteractive:oe,isFocusable:!1,labelSkipWidth:I,labelSkipHeight:Y,margin:gt,width:o,height:a,innerWidth:bt,innerHeight:Ct,bars:et,legendData:at,enableLabel:F,xScale:tt,yScale:nt,tooltip:me,getTooltipLabel:pt,onClick:ve,onMouseEnter:Ee,onMouseLeave:Se}},[te,D,oe,I,Y,gt,o,a,bt,Ct,et,at,F,tt,nt,me,pt,ve,Ee,Se]),Ye=Qa(ne);h.useEffect(function(){var le,fe=(le=ht.current)==null?void 0:le.getContext("2d");ht.current&&fe&&(ht.current.width=Ht*_e,ht.current.height=Be*_e,fe.scale(_e,_e),fe.fillStyle=_t.background,fe.fillRect(0,0,Ht,Be),fe.translate(gt.left,gt.top),A.forEach(function($e){$e==="grid"?typeof _t.grid.line.strokeWidth=="number"&&_t.grid.line.strokeWidth>0&&(fe.lineWidth=_t.grid.line.strokeWidth,fe.strokeStyle=_t.grid.line.stroke,E&&Kd(fe,{width:bt,height:Ct,scale:tt,axis:"x",values:O}),k&&Kd(fe,{width:bt,height:Ct,scale:nt,axis:"y",values:S})):$e==="axes"?eO(fe,{xScale:tt,yScale:nt,width:bt,height:Ct,top:v,right:x,bottom:_,left:y,theme:_t}):$e==="bars"?Ve.forEach(function(Ie){L(fe,{bar:Ie,borderColor:ut(Ie),borderRadius:te,borderWidth:D,label:$t(Ie.data),labelColor:xt(Ie),shouldRenderLabel:yt(Ie)})}):$e==="legends"?at.forEach(function(Ie){var Te=Ie[0],Ne=Ie[1];Lk(fe,Wt({},Te,{data:Ne,containerWidth:bt,containerHeight:Ct,theme:_t}))}):$e==="annotations"?Qse(fe,{annotations:De,theme:_t}):$e==="totals"&&Ue?function(Ie,Te,Ne,He){He===void 0&&(He=_n.layout),Ie.fillStyle=Ne.text.fill,Ie.font="bold "+Ne.labels.text.fontSize+"px "+Ne.labels.text.fontFamily,Ie.textBaseline=He==="vertical"?"alphabetic":"middle",Ie.textAlign=He==="vertical"?"center":"start",Te.forEach(function(ze){Ie.fillText(ze.formattedValue,ze.x,ze.y)})}(fe,St,_t,c):typeof $e=="function"&&$e(fe,Ke)}),fe.save())},[_,y,x,v,Ve,te,D,De,E,k,ut,$t,xt,O,S,s,a,Ct,bt,Ke,A,c,at,gt.left,gt.top,Be,Ht,_e,L,tt,nt,l,yt,_t,o,St,Ue,Ye]);var Et=h.useCallback(function(le){if(et&&ht.current){var fe=bc(ht.current,le),$e=fe[0],Ie=fe[1],Te=fm(et,gt,$e,Ie);Te!==void 0?(we(h.createElement(me,Wt({},Te.data,{color:Te.color,label:Te.label,value:Number(Te.data.value)})),le),le.type==="mouseenter"&&(Ee==null||Ee(Te.data,le))):Re()}},[Re,gt,Ee,et,we,me]),q=h.useCallback(function(le){if(et&&ht.current){Re();var fe=bc(ht.current,le),$e=fe[0],Ie=fe[1],Te=fm(et,gt,$e,Ie);Te&&(Se==null||Se(Te.data,le))}},[Re,gt,Se,et]),he=h.useCallback(function(le){if(et&&ht.current){var fe=bc(ht.current,le),$e=fe[0],Ie=fe[1],Te=fm(et,gt,$e,Ie);Te!==void 0&&(ve==null||ve(Wt({},Te.data,{color:Te.color}),le))}},[gt,ve,et]);return b.jsx("canvas",{ref:function(le){ht.current=le,ce&&"current"in ce&&(ce.current=le)},width:Ht*_e,height:Be*_e,style:{width:Ht,height:Be,cursor:oe?"auto":"normal"},onMouseEnter:oe?Et:void 0,onMouseMove:oe?Et:void 0,onMouseLeave:oe?q:void 0,onClick:oe?he:void 0})},Sce=h.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=$s(e,Cce);return b.jsx(zl,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:b.jsx($ce,Wt({},o,{canvasRef:t}))})}),Ece=function(e){return b.jsx(Cs,{children:function(t){var n=t.width,r=t.height;return b.jsx(_ce,Wt({width:n,height:r},e))}})};h.forwardRef(function(e,t){return b.jsx(Cs,{children:function(n){var r=n.width,i=n.height;return b.jsx(Sce,Wt({width:r,height:i},e,{ref:t}))}})});const Tce="_side-content-bar_16o0s_1",kce="_mobile_16o0s_12",Oce="_expanded_16o0s_20",Mce="_content-container_16o0s_23",Rce="_resizer_16o0s_31",Ace="_expander_16o0s_46",jce="_icon_16o0s_65",ri={"side-content-bar":"_side-content-bar_16o0s_1",sideContentBar:Tce,mobile:kce,expanded:Oce,"content-container":"_content-container_16o0s_23",contentContainer:Mce,resizer:Rce,expander:Ace,icon:jce},xO=({width:e,children:t,isExpandedOnMobileState:[n,r],resizeable:i=!0,onResize:o})=>{const{ProjectIconComponent:a}=h.useContext(sn),{isMobile:s}=kl(),c=b0({onSwipedRight:d=>{d.velocity>.8&&r(!1)},delta:100}),[l,u]=h.useState(null);return b.jsxs(b.Fragment,{children:[b.jsxs("section",{className:ue("luminus-side-content-bar shadow",ri.sideContentBar,{[ri.mobile]:s},{[ri.expanded]:n}),style:{width:`${e}px`},...c,children:[i&&!s?b.jsx("div",{role:"button",className:ue(ri.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:d=>u({startX:d.clientX,widthStart:e}),onDrag:d=>o(((l==null?void 0:l.widthStart)??0)+(((l==null?void 0:l.startX)??0)-d.clientX)),onDragEnd:()=>u(null),children:b.jsx(a,{className:ri.icon,icon:"resizer-horizontal"})}):null,b.jsx("div",{className:ri.contentContainer,children:t})]}),s?b.jsx("div",{role:"button",onClick:()=>r(!n),className:ue(ri.expander,{[ri.expanded]:n},"luminus-side-content-bar-expander","shadow"),children:b.jsx(a,{className:ri.icon,icon:"chevron-left"})}):null]})},Nce=({title:e})=>b.jsx("div",{className:"mb-3",children:typeof e=="string"?b.jsx(jn,{variant:"h3",children:e}):e}),Dce="_full-screen-container_1rm4r_1",wO={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:Dce},Ice=ue("overflow-hidden luminus-full-screen-container",wO.fullScreenContainer),Pce="container-fluid",Lce=({title:e,children:t,sideContent:n,sideContentWidth:r=250,sideContentResizeable:i=!0,noPadding:o,className:a,variant:s="main",helmet:c,unavailableOnMobile:l})=>{const{addHelmet:u,removeHelmet:d}=h.useContext(aE),{texts:{container:f}}=h.useContext(sn),[p,g]=h.useState(r),[m,v]=h.useState(!1),x=h.useMemo(()=>{switch(s){case"fullScreen":return Ice;case"main":return Pce;default:throw new Error(`PageContainer got incorrect variant type: ${s}`)}},[s]);h.useEffect(()=>(c?u(c):typeof e=="string"&&e&&u(e),()=>d()),[c,u,d,e]);const w=b0({onSwipedLeft:y=>{y.velocity>.8&&v(!0)},delta:100}),{isMobile:_}=kl(),C=h.useMemo(()=>_&&l,[_,l]);return h.useEffect(()=>{g(r)},[r]),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:ue(x,o?"p-0":"p-3",a),style:s==="fullScreen"?{width:n?`calc(100% - ${p}px)`:"100%"}:void 0,...w,children:b.jsx("div",{className:s==="fullScreen"?wO.fullScreenContainer:void 0,style:s==="main"?{paddingRight:n?`${p}px`:void 0}:{height:"100%",width:"100%"},children:C?b.jsx(y0,{variant:"warning",children:f.unavailableOnMobile}):b.jsxs(b.Fragment,{children:[e?b.jsx(Nce,{title:e}):null,t]})})}),n&&!C?b.jsx(xO,{width:p,isExpandedOnMobileState:[m,v],resizeable:i,onResize:y=>i?g(y):{},children:n}):null]})};function ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B2={exports:{}};/*!
|
|
282
|
-
Copyright (c) 2018 Jed Watson.
|
|
283
|
-
Licensed under the MIT License (MIT), see
|
|
284
|
-
http://jedwatson.github.io/classnames
|
|
285
|
-
*/var z2;function Fce(){return z2||(z2=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(B2)),B2.exports}var Bce=Fce();const xe=ep(Bce),_O=6048e5,zce=864e5,W2=Symbol.for("constructDateFrom");function wi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&W2 in e?e[W2](t):e instanceof Date?new e.constructor(t):new Date(t)}function nr(e,t){return wi(t||e,e)}function CO(e,t){const n=()=>wi(t==null?void 0:t.in,NaN),r=Hce(e);let i;if(r.date){const c=qce(r.date,2);i=Yce(c.restDateString,c.year)}if(!i||isNaN(+i))return n();const o=+i;let a=0,s;if(r.time&&(a=Gce(r.time),isNaN(a)))return n();if(r.timezone){if(s=Kce(r.timezone),isNaN(s))return n()}else{const c=new Date(o+a),l=nr(0,t==null?void 0:t.in);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}return nr(o+a+s,t==null?void 0:t.in)}const ku={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Wce=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Uce=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Vce=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Hce(e){const t={},n=e.split(ku.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ku.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ku.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=ku.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function qce(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Yce(e,t){if(t===null)return new Date(NaN);const n=e.match(Wce);if(!n)return new Date(NaN);const r=!!n[4],i=Js(n[1]),o=Js(n[2])-1,a=Js(n[3]),s=Js(n[4]),c=Js(n[5])-1;if(r)return ele(t,s,c)?Zce(t,s,c):new Date(NaN);{const l=new Date(0);return!Qce(t,o,a)||!Jce(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}}function Js(e){return e?parseInt(e):1}function Gce(e){const t=e.match(Uce);if(!t)return NaN;const n=hm(t[1]),r=hm(t[2]),i=hm(t[3]);return tle(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function hm(e){return e&&parseFloat(e.replace(",","."))||0}function Kce(e){if(e==="Z")return 0;const t=e.match(Vce);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return nle(r,i)?n*(r*36e5+i*6e4):NaN}function Zce(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Xce=[31,null,31,30,31,30,31,31,30,31,30,31];function $O(e){return e%400===0||e%4===0&&e%100!==0}function Qce(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Xce[t]||($O(e)?29:28))}function Jce(e,t){return t>=1&&t<=($O(e)?366:365)}function ele(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function tle(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function nle(e,t){return t>=0&&t<=59}let rle={};function tp(){return rle}function fl(e,t){var s,c,l,u;const n=tp(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,i=nr(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Xd(e,t){return fl(e,{...t,weekStartsOn:1})}function SO(e,t){const n=nr(e,t==null?void 0:t.in),r=n.getFullYear(),i=wi(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Xd(i),a=wi(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=Xd(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function U2(e){const t=nr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ile(e,...t){const n=wi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function V2(e,t){const n=nr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function ole(e,t,n){const[r,i]=ile(n==null?void 0:n.in,e,t),o=V2(r),a=V2(i),s=+o-U2(o),c=+a-U2(a);return Math.round((s-c)/zce)}function ale(e,t){const n=SO(e,t),r=wi(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xd(r)}function sle(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function cle(e){return!(!sle(e)&&typeof e!="number"||isNaN(+nr(e)))}function lle(e,t){const n=nr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const ule={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},dle=(e,t,n)=>{let r;const i=ule[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function pm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fle={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hle={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ple={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},mle={date:pm({formats:fle,defaultWidth:"full"}),time:pm({formats:hle,defaultWidth:"full"}),dateTime:pm({formats:ple,defaultWidth:"full"})},gle={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vle=(e,t,n,r)=>gle[e];function ec(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const ble={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yle={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xle={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},wle={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},_le={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Cle={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$le=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Sle={ordinalNumber:$le,era:ec({values:ble,defaultWidth:"wide"}),quarter:ec({values:yle,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ec({values:xle,defaultWidth:"wide"}),day:ec({values:wle,defaultWidth:"wide"}),dayPeriod:ec({values:_le,defaultWidth:"wide",formattingValues:Cle,defaultFormattingWidth:"wide"})};function tc(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Tle(s,d=>d.test(a)):Ele(s,d=>d.test(a));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(a.length);return{value:l,rest:u}}}function Ele(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Tle(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function kle(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Ole=/^(\d+)(th|st|nd|rd)?/i,Mle=/\d+/i,Rle={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ale={any:[/^b/i,/^(a|c)/i]},jle={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Nle={any:[/1/i,/2/i,/3/i,/4/i]},Dle={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ile={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ple={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Lle={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fle={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ble={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},zle={ordinalNumber:kle({matchPattern:Ole,parsePattern:Mle,valueCallback:e=>parseInt(e,10)}),era:tc({matchPatterns:Rle,defaultMatchWidth:"wide",parsePatterns:Ale,defaultParseWidth:"any"}),quarter:tc({matchPatterns:jle,defaultMatchWidth:"wide",parsePatterns:Nle,defaultParseWidth:"any",valueCallback:e=>e+1}),month:tc({matchPatterns:Dle,defaultMatchWidth:"wide",parsePatterns:Ile,defaultParseWidth:"any"}),day:tc({matchPatterns:Ple,defaultMatchWidth:"wide",parsePatterns:Lle,defaultParseWidth:"any"}),dayPeriod:tc({matchPatterns:Fle,defaultMatchWidth:"any",parsePatterns:Ble,defaultParseWidth:"any"})},Wle={code:"en-US",formatDistance:dle,formatLong:mle,formatRelative:vle,localize:Sle,match:zle,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ule(e,t){const n=nr(e,t==null?void 0:t.in);return ole(n,lle(n))+1}function Vle(e,t){const n=nr(e,t==null?void 0:t.in),r=+Xd(n)-+ale(n);return Math.round(r/_O)+1}function EO(e,t){var u,d,f,p;const n=nr(e,t==null?void 0:t.in),r=n.getFullYear(),i=tp(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=wi((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=fl(a,t),c=wi((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const l=fl(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function Hle(e,t){var a,s,c,l;const n=tp(),r=(t==null?void 0:t.firstWeekContainsDate)??((s=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:s.firstWeekContainsDate)??n.firstWeekContainsDate??((l=(c=n.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??1,i=EO(e,t),o=wi((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),fl(o,t)}function qle(e,t){const n=nr(e,t==null?void 0:t.in),r=+fl(n,t)-+Hle(n,t);return Math.round(r/_O)+1}function zt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ni={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return zt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):zt(n+1,2)},d(e,t){return zt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return zt(e.getHours()%12||12,t.length)},H(e,t){return zt(e.getHours(),t.length)},m(e,t){return zt(e.getMinutes(),t.length)},s(e,t){return zt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return zt(i,t.length)}},ba={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},H2={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Ni.y(e,t)},Y:function(e,t,n,r){const i=EO(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return zt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):zt(o,t.length)},R:function(e,t){const n=SO(e);return zt(n,t.length)},u:function(e,t){const n=e.getFullYear();return zt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return zt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return zt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ni.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return zt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=qle(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):zt(i,t.length)},I:function(e,t,n){const r=Vle(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):zt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ni.d(e,t)},D:function(e,t,n){const r=Ule(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):zt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return zt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return zt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return zt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ba.noon:r===0?i=ba.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ba.evening:r>=12?i=ba.afternoon:r>=4?i=ba.morning:i=ba.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ni.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ni.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):zt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):zt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ni.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ni.s(e,t)},S:function(e,t){return Ni.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Y2(r);case"XXXX":case"XX":return wo(r);case"XXXXX":case"XXX":default:return wo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Y2(r);case"xxxx":case"xx":return wo(r);case"xxxxx":case"xxx":default:return wo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+q2(r,":");case"OOOO":default:return"GMT"+wo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+q2(r,":");case"zzzz":default:return"GMT"+wo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return zt(r,t.length)},T:function(e,t,n){return zt(+e,t.length)}};function q2(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+zt(o,2)}function Y2(e,t){return e%60===0?(e>0?"-":"+")+zt(Math.abs(e)/60,2):wo(e,t)}function wo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=zt(Math.trunc(r/60),2),o=zt(r%60,2);return n+i+t+o}const G2=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},TO=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Yle=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return G2(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",G2(r,t)).replace("{{time}}",TO(i,t))},Gle={p:TO,P:Yle},Kle=/^D+$/,Zle=/^Y+$/,Xle=["D","DD","YY","YYYY"];function Qle(e){return Kle.test(e)}function Jle(e){return Zle.test(e)}function eue(e,t,n){const r=tue(e,t,n);if(console.warn(r),Xle.includes(e))throw new RangeError(r)}function tue(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const nue=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rue=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,iue=/^'([^]*?)'?$/,oue=/''/g,aue=/[a-zA-Z]/;function kO(e,t,n){var u,d,f,p;const r=tp(),i=r.locale??Wle,o=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,a=r.weekStartsOn??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,s=nr(e,n==null?void 0:n.in);if(!cle(s))throw new RangeError("Invalid time value");let c=t.match(rue).map(g=>{const m=g[0];if(m==="p"||m==="P"){const v=Gle[m];return v(g,i.formatLong)}return g}).join("").match(nue).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:sue(g)};if(H2[m])return{isToken:!0,value:g};if(m.match(aue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:g}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(g=>{if(!g.isToken)return g.value;const m=g.value;(Jle(m)||Qle(m))&&eue(m,t,String(e));const v=H2[m[0]];return v(s,m,i.localize,l)}).join("")}function sue(e){const t=e.match(iue);return t?t[1].replace(oue,"'"):e}function OO(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var hl;(function(e){e.event="event",e.props="prop"})(hl||(hl={}));function Wi(){}function cue(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(o,a){return o===t[a]})||(t=r,n=e.apply(void 0,r)),n}}function pl(e){return!!(e||"").match(/\d/)}function Na(e){return e==null}function lue(e){return typeof e=="number"&&isNaN(e)}function MO(e){return Na(e)||lue(e)||typeof e=="number"&&!isFinite(e)}function RO(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function uue(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function due(e,t,n){var r=uue(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,"$1"+t)}function fue(e){var t=h.useRef(e);t.current=e;var n=h.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function Yb(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),o=i[0],a=i[1]||"";return{beforeDecimal:o,afterDecimal:a,hasNegation:n,addNegation:r}}function hue(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(t?"-":"")+r+(i?"."+i:"")}function AO(e,t,n){for(var r="",i=n?"0":"",o=0;o<=t-1;o++)r+=e[o]||i;return r}function K2(e,t){return Array(t+1).join(e)}function jO(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],o=r[1];if(o=Number(o),!o)return n+i;i=i.replace(".","");var a=1+o,s=i.length;return a<0?i="0."+K2("0",Math.abs(a))+i:a>=s?i=i+K2("0",a-s):i=(i.substring(0,a)||"0")+"."+i.substring(a),n+i}function Z2(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=Yb(e),o=i.beforeDecimal,a=i.afterDecimal,s=i.hasNegation,c=parseFloat("0."+(a||"0")),l=a.length<=t?"0."+a:c.toFixed(t),u=l.split("."),d=o;o&&Number(u[0])&&(d=o.split("").reverse().reduce(function(m,v,x){return m.length>x?(Number(m[0])+Number(v)).toString()+m.substring(1,m.length):v+m},u[0]));var f=AO(u[1]||"",t,n),p=s?"-":"",g=r?".":"";return""+p+d+g+f}function Co(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var NO=cue(function(e,t){for(var n=0,r=0,i=e.length,o=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[o-1-r]&&o-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:o-r}}}),pue=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function mue(e,t,n){return Math.min(Math.max(e,t),n)}function mm(e){return Math.max(e.selectionStart,e.selectionEnd)}function gue(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function vue(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function bue(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function yue(e,t,n,r,i,o,a){a===void 0&&(a=bue);var s=i.findIndex(function(C){return C}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r=r+c.length);for(var l=n.length,u=e.length,d={},f=new Array(l),p=0;p<l;p++){f[p]=-1;for(var g=0,m=u;g<m;g++){var v=a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:g});if(v&&d[g]!==!0){f[p]=g,d[g]=!0;break}}}for(var x=r;x<l&&(f[x]===-1||!o(n[x]));)x++;var w=x===l||f[x]===-1?u:f[x];for(x=r-1;x>0&&f[x]===-1;)x--;var _=x===-1||f[x]===-1?0:f[x]+1;return _>w?w:r-_<w-r?_:w}function X2(e,t,n,r){var i=e.length;if(t=mue(t,0,i),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function xue(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(pl(e[n])||pl(e[n-1]));return t}function DO(e,t,n,r,i,o){o===void 0&&(o=Wi);var a=fue(function(g,m){var v,x;return MO(g)?(x="",v=""):typeof g=="number"||m?(x=typeof g=="number"?jO(g):g,v=r(x)):(x=i(g,void 0),v=r(x)),{formattedValue:v,numAsString:x}}),s=h.useState(function(){return a(Na(e)?t:e,n)}),c=s[0],l=s[1],u=function(g,m){g.formattedValue!==c.formattedValue&&l({formattedValue:g.formattedValue,numAsString:g.value}),o(g,m)},d=e,f=n;Na(e)&&(d=c.numAsString,f=!0);var p=a(d,f);return h.useMemo(function(){l(p)},[p.formattedValue]),[c,u]}function wue(e){return e.replace(/[^0-9]/g,"")}function _ue(e){return e}function Cue(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,o=e.getInputRef,a=e.format;a===void 0&&(a=_ue);var s=e.removeFormatting;s===void 0&&(s=wue);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Wi);var p=e.onKeyDown;p===void 0&&(p=Wi);var g=e.onMouseUp;g===void 0&&(g=Wi);var m=e.onFocus;m===void 0&&(m=Wi);var v=e.onBlur;v===void 0&&(v=Wi);var x=e.value,w=e.getCaretBoundary;w===void 0&&(w=xue);var _=e.isValidInputCharacter;_===void 0&&(_=pl);var C=e.isCharacterSame,y=OO(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),$=DO(x,c,!!l,a,s,u),E=$[0],T=E.formattedValue,k=E.numAsString,O=$[1],S=h.useRef(),M=h.useRef({formattedValue:T,numAsString:k}),A=function(oe,ae){M.current={formattedValue:oe.formattedValue,numAsString:oe.value},O(oe,ae)},j=h.useState(!1),L=j[0],N=j[1],F=h.useRef(null),U=h.useRef({setCaretTimeout:null,focusTimeout:null});h.useEffect(function(){return N(!0),function(){clearTimeout(U.current.setCaretTimeout),clearTimeout(U.current.focusTimeout)}},[]);var z=a,I=function(oe,ae){var me=parseFloat(ae);return{formattedValue:oe,value:ae,floatValue:isNaN(me)?void 0:me}},W=function(oe,ae,me){oe.selectionStart===0&&oe.selectionEnd===oe.value.length||(Co(oe,ae),U.current.setCaretTimeout=setTimeout(function(){oe.value===me&&oe.selectionStart!==ae&&Co(oe,ae)},0))},Y=function(oe,ae,me){return X2(oe,ae,w(oe),me)},J=function(oe,ae,me){var ve=w(ae),Ee=yue(ae,T,oe,me,ve,_,C);return Ee=X2(ae,Ee,ve),Ee},X=function(oe){var ae=oe.formattedValue;ae===void 0&&(ae="");var me=oe.input,ve=oe.source,Ee=oe.event,Se=oe.numAsString,Me;if(me){var ge=oe.inputValue||me.value,_e=mm(me);me.value=ae,Me=J(ge,ae,_e),Me!==void 0&&W(me,Me,ae)}ae!==T&&A(I(ae,Se),{event:Ee,source:ve})};h.useEffect(function(){var oe=M.current,ae=oe.formattedValue,me=oe.numAsString;(T!==ae||k!==me)&&A(I(T,k),{event:void 0,source:hl.props})},[T,k]);var Z=F.current?mm(F.current):void 0,Q=typeof window<"u"?h.useLayoutEffect:h.useEffect;Q(function(){var oe=F.current;if(T!==M.current.formattedValue&&oe){var ae=J(M.current.formattedValue,T,Z);oe.value=T,W(oe,ae,T)}},[T]);var te=function(oe,ae,me){var ve=ae.target,Ee=S.current?pue(S.current,ve.selectionEnd):NO(T,oe),Se=Object.assign(Object.assign({},Ee),{lastValue:T}),Me=s(oe,Se),ge=z(Me);if(Me=s(ge,void 0),d&&!d(I(ge,Me))){var _e=ae.target,ce=mm(_e),Oe=J(oe,T,ce);return _e.value=T,W(_e,Oe,T),!1}return X({formattedValue:ge,numAsString:Me,inputValue:oe,event:ae,source:me,input:ae.target}),!0},P=function(oe,ae){ae===void 0&&(ae=0);var me=oe.selectionStart,ve=oe.selectionEnd;S.current={selectionStart:me,selectionEnd:ve+ae}},D=function(oe){var ae=oe.target,me=ae.value,ve=te(me,oe,hl.event);ve&&f(oe),S.current=void 0},B=function(oe){var ae=oe.target,me=oe.key,ve=ae.selectionStart,Ee=ae.selectionEnd,Se=ae.value;Se===void 0&&(Se="");var Me;me==="ArrowLeft"||me==="Backspace"?Me=Math.max(ve-1,0):me==="ArrowRight"?Me=Math.min(ve+1,Se.length):me==="Delete"&&(Me=ve);var ge=0;me==="Delete"&&ve===Ee&&(ge=1);var _e=me==="ArrowLeft"||me==="ArrowRight";if(Me===void 0||ve!==Ee&&!_e){p(oe),P(ae,ge);return}var ce=Me;if(_e){var Oe=me==="ArrowLeft"?"left":"right";ce=Y(Se,Me,Oe),ce!==Me&&oe.preventDefault()}else me==="Delete"&&!_(Se[Me])?ce=Y(Se,Me,"right"):me==="Backspace"&&!_(Se[Me])&&(ce=Y(Se,Me,"left"));ce!==Me&&W(ae,ce,Se),p(oe),P(ae,ge)},H=function(oe){var ae=oe.target,me=function(){var ve=ae.selectionStart,Ee=ae.selectionEnd,Se=ae.value;if(Se===void 0&&(Se=""),ve===Ee){var Me=Y(Se,ve);Me!==ve&&W(ae,Me,Se)}};me(),requestAnimationFrame(function(){me()}),g(oe),P(ae)},R=function(oe){oe.persist&&oe.persist();var ae=oe.target,me=oe.currentTarget;F.current=ae,U.current.focusTimeout=setTimeout(function(){var ve=ae.selectionStart,Ee=ae.selectionEnd,Se=ae.value;Se===void 0&&(Se="");var Me=Y(Se,ve);Me!==ve&&!(ve===0&&Ee===Se.length)&&W(ae,Me,Se),m(Object.assign(Object.assign({},oe),{currentTarget:me}))},0)},G=function(oe){F.current=null,clearTimeout(U.current.focusTimeout),clearTimeout(U.current.setCaretTimeout),v(oe)},ee=L&&gue()?"numeric":void 0,ne=Object.assign({inputMode:ee},y,{type:t,value:T,onChange:D,onKeyDown:B,onMouseUp:H,onFocus:R,onBlur:G});if(n==="text")return i?h.createElement(h.Fragment,null,i(T,y)||null):h.createElement("span",Object.assign({},y,{ref:o}),T);if(r){var de=r;return h.createElement(de,Object.assign({},ne,{ref:o}))}return h.createElement("input",Object.assign({},ne,{ref:o}))}function Q2(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var o=t.suffix;o===void 0&&(o="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var c=np(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=Yb(e,a),p=f.beforeDecimal,g=f.afterDecimal,m=f.addNegation;return n!==void 0&&(g=AO(g,n,!!r)),l&&(p=due(p,l,s)),i&&(p=i+p),o&&(g=g+o),m&&(p="-"+p),e=p+(d&&u||"")+g,e}function np(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function $ue(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),o=r.test(e);return e=e.replace(/-/g,""),i&&!o&&t&&(e="-"+e),e}function Sue(e,t){return new RegExp("(^-)|[0-9]|"+RO(e),"g")}function Eue(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Tue(e,t,n){var r;t===void 0&&(t=vue(e));var i=n.allowNegative,o=n.prefix;o===void 0&&(o="");var a=n.suffix;a===void 0&&(a="");var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=np(n),p=f.allowedDecimalSeparators,g=f.decimalSeparator,m=e[d]===g;if(pl(e)&&(e===o||e===a)&&t.lastValue==="")return e;if(d-u===1&&p.indexOf(e[u])!==-1){var v=s===0?"":g;e=e.substring(0,u)+v+e.substring(u+1,e.length)}var x=function(F,U,z){var I=!1,W=!1;o.startsWith("-")?I=!1:F.startsWith("--")?(I=!1,W=!0):a.startsWith("-")&&F.length===a.length?I=!1:F[0]==="-"&&(I=!0);var Y=I?1:0;return W&&(Y=2),Y&&(F=F.substring(Y),U-=Y,z-=Y),{value:F,start:U,end:z,hasNegation:I}},w=x(e,u,d),_=w.hasNegation;r=w,e=r.value,u=r.start,d=r.end;var C=x(t.lastValue,c.start,c.end),y=C.start,$=C.end,E=C.value,T=e.substring(u,d);e.length&&E.length&&(y>E.length-a.length||$<o.length)&&!(T&&a.startsWith(T))&&(e=E);var k=0;e.startsWith(o)?k+=o.length:u<o.length&&(k=u),e=e.substring(k),d-=k;var O=e.length,S=e.length-a.length;e.endsWith(a)?O=S:(d>S||d>e.length-a.length)&&(O=d),e=e.substring(0,O),e=$ue(_?"-"+e:e,i),e=(e.match(Sue(g))||[]).join("");var M=e.indexOf(g);e=e.replace(new RegExp(RO(g),"g"),function(F,U){return U===M?".":""});var A=Yb(e,i),j=A.beforeDecimal,L=A.afterDecimal,N=A.addNegation;return l.end-l.start<c.end-c.start&&j===""&&m&&!parseFloat(L)&&(e=N?"-":""),e}function kue(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),o=e[0]==="-";i.fill(!1,0,n.length+(o?1:0));var a=e.length;return i.fill(!1,a-r.length+1,a+1),i}function Oue(e){var t=np(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var o=e.allowNegative;if(o===void 0&&(o=!0),n===r)throw new Error(`
|
|
286
|
-
Decimal separator can't be same as thousand separator.
|
|
287
|
-
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
288
|
-
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
|
289
|
-
`);return i.startsWith("-")&&o&&(console.error(`
|
|
290
|
-
Prefix can't start with '-' when allowNegative is true.
|
|
291
|
-
prefix: `+i+`
|
|
292
|
-
allowNegative: `+o+`
|
|
293
|
-
`),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}function Mue(e){e=Oue(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Wi);var o=e.onBlur;o===void 0&&(o=Wi);var a=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l="");var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,g=OO(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=np(e),v=m.decimalSeparator,x=m.allowedDecimalSeparators,w=function(N){return Q2(N,e)},_=function(N,F){return Tue(N,F,e)},C=Na(d)?u:d,y=f??Eue(C,l,t);Na(d)?Na(u)||(y=y||typeof u=="number"):y=y||typeof d=="number";var $=function(N){return MO(N)?N:(typeof N=="number"&&(N=jO(N)),y&&typeof s=="number"?Z2(N,s,!!c):N)},E=DO($(d),$(u),!!y,w,_,p),T=E[0],k=T.numAsString,O=T.formattedValue,S=E[1],M=function(N){var F=N.target,U=N.key,z=F.selectionStart,I=F.selectionEnd,W=F.value;if(W===void 0&&(W=""),(U==="Backspace"||U==="Delete")&&I<l.length){N.preventDefault();return}if(z!==I){i(N);return}U==="Backspace"&&W[0]==="-"&&z===l.length+1&&n&&Co(F,1),s&&c&&(U==="Backspace"&&W[z-1]===v?(Co(F,z-1),N.preventDefault()):U==="Delete"&&W[z]===v&&N.preventDefault()),x!=null&&x.includes(U)&&W[z]===v&&Co(F,z+1);var Y=a===!0?",":a;U==="Backspace"&&W[z-1]===Y&&Co(F,z-1),U==="Delete"&&W[z]===Y&&Co(F,z+1),i(N)},A=function(N){var F=k;if(F.match(/\d/g)||(F=""),r||(F=hue(F)),c&&s&&(F=Z2(F,s,c)),F!==k){var U=Q2(F,e);S({formattedValue:U,value:F,floatValue:parseFloat(F)},{event:N,source:hl.event})}o(N)},j=function(N){return N===v?!0:pl(N)},L=function(N){var F=N.currentValue,U=N.lastValue,z=N.formattedValue,I=N.currentValueIndex,W=N.formattedValueIndex,Y=F[I],J=z[W],X=NO(U,F),Z=X.to,Q=function(te){return _(te).indexOf(".")+l.length};return d===0&&c&&s&&F[Z.start]===v&&Q(F)<I&&Q(z)>W?!1:I>=Z.start&&I<Z.end&&x&&x.includes(Y)&&J===v?!0:Y===J};return Object.assign(Object.assign({},g),{value:O,valueIsNumericString:!1,isValidInputCharacter:j,isCharacterSame:L,onValueChange:S,format:w,removeFormatting:_,getCaretBoundary:function(N){return kue(N,e)},onKeyDown:M,onBlur:A})}function Rue(e){var t=Mue(e);return h.createElement(Cue,Object.assign({},t))}const Aue=(e,t)=>{var i,o;const n=e.getValue(),r=((o=(i=e.column.columnDef)==null?void 0:i.meta)==null?void 0:o.alignment)??"center";return n===!0||n===!1?b.jsx(t,{className:xe({"text-success":n===!0,"text-muted":n===!1,"justify-content-center":r==="center","justify-content-start":r==="left","justify-content-end":r==="right"}),icon:n?"boolean-yes":"boolean-no"}):null},jue=e=>{const t=e.getValue();return t?kO(CO(t.toString()),"dd.MM.yyyy"):null},Nue=e=>{const t=e.getValue();return t?kO(CO(t.toString()),"dd.MM.yyyy HH:mm"):null},Due=e=>{const t=e.getValue(),n=e.column.columnDef,r=n.type==="number"?n.numericMeta:void 0;return t==null||t===void 0||t===""?null:r!=null&&r.noFormatting?(t==null?void 0:t.toString())??null:b.jsx(Rue,{decimalScale:(r==null?void 0:r.decimalScale)??2,decimalSeparator:",",defaultValue:"",displayType:"text",fixedDecimalScale:r==null?void 0:r.fixedDecimalScale,prefix:r==null?void 0:r.prefix,suffix:r==null?void 0:r.suffix,thousandSeparator:" ",value:t.toString()})},Iue=e=>{const t=e,n=e.meta;return n!=null&&n.filterVariant?(n==null?void 0:n.filterVariant)==="select"?(t==null?void 0:t.type)==="boolean"?"multiselectBoolean":"multiselect":(t==null?void 0:t.type)==="string"?"text":t==null?void 0:t.type:(t==null?void 0:t.type)==="string"?"text":(t==null?void 0:t.type)==="boolean"?"multiselectBoolean":t==null?void 0:t.type},Pue=["xxl","xl","lg","md","sm","xs"],Lue="xs",rp=ie.createContext({prefixes:{},breakpoints:Pue,minBreakpoint:Lue});function kt(e,t){const{prefixes:n}=h.useContext(rp);return e||n[t]||t}function Fue(){const{breakpoints:e}=h.useContext(rp);return e}function Bue(){const{minBreakpoint:e}=h.useContext(rp);return e}function IO(){const{dir:e}=h.useContext(rp);return e==="rtl"}var Ou={exports:{}},gm={exports:{}},It={};/** @license React v16.13.1
|
|
294
|
-
* react-is.production.min.js
|
|
295
|
-
*
|
|
296
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
297
|
-
*
|
|
298
|
-
* This source code is licensed under the MIT license found in the
|
|
299
|
-
* LICENSE file in the root directory of this source tree.
|
|
300
|
-
*/var J2;function zue(){if(J2)return It;J2=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function _(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case c:case l:case r:case o:case i:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case u:case g:case p:case a:return y;default:return $}}case n:return $}}}function C(y){return _(y)===l}return It.AsyncMode=c,It.ConcurrentMode=l,It.ContextConsumer=s,It.ContextProvider=a,It.Element=t,It.ForwardRef=u,It.Fragment=r,It.Lazy=g,It.Memo=p,It.Portal=n,It.Profiler=o,It.StrictMode=i,It.Suspense=d,It.isAsyncMode=function(y){return C(y)||_(y)===c},It.isConcurrentMode=C,It.isContextConsumer=function(y){return _(y)===s},It.isContextProvider=function(y){return _(y)===a},It.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},It.isForwardRef=function(y){return _(y)===u},It.isFragment=function(y){return _(y)===r},It.isLazy=function(y){return _(y)===g},It.isMemo=function(y){return _(y)===p},It.isPortal=function(y){return _(y)===n},It.isProfiler=function(y){return _(y)===o},It.isStrictMode=function(y){return _(y)===i},It.isSuspense=function(y){return _(y)===d},It.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===l||y===o||y===i||y===d||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===a||y.$$typeof===s||y.$$typeof===u||y.$$typeof===v||y.$$typeof===x||y.$$typeof===w||y.$$typeof===m)},It.typeOf=_,It}var Bt={};/** @license React v16.13.1
|
|
301
|
-
* react-is.development.js
|
|
302
|
-
*
|
|
303
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
304
|
-
*
|
|
305
|
-
* This source code is licensed under the MIT license found in the
|
|
306
|
-
* LICENSE file in the root directory of this source tree.
|
|
307
|
-
*/var e_;function Wue(){return e_||(e_=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,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function _(R){return typeof R=="string"||typeof R=="function"||R===r||R===l||R===o||R===i||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===p||R.$$typeof===a||R.$$typeof===s||R.$$typeof===u||R.$$typeof===v||R.$$typeof===x||R.$$typeof===w||R.$$typeof===m)}function C(R){if(typeof R=="object"&&R!==null){var G=R.$$typeof;switch(G){case t:var ee=R.type;switch(ee){case c:case l:case r:case o:case i:case d:return ee;default:var ne=ee&&ee.$$typeof;switch(ne){case s:case u:case g:case p:case a:return ne;default:return G}}case n:return G}}}var y=c,$=l,E=s,T=a,k=t,O=u,S=r,M=g,A=p,j=n,L=o,N=i,F=d,U=!1;function z(R){return U||(U=!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.")),I(R)||C(R)===c}function I(R){return C(R)===l}function W(R){return C(R)===s}function Y(R){return C(R)===a}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function X(R){return C(R)===u}function Z(R){return C(R)===r}function Q(R){return C(R)===g}function te(R){return C(R)===p}function P(R){return C(R)===n}function D(R){return C(R)===o}function B(R){return C(R)===i}function H(R){return C(R)===d}Bt.AsyncMode=y,Bt.ConcurrentMode=$,Bt.ContextConsumer=E,Bt.ContextProvider=T,Bt.Element=k,Bt.ForwardRef=O,Bt.Fragment=S,Bt.Lazy=M,Bt.Memo=A,Bt.Portal=j,Bt.Profiler=L,Bt.StrictMode=N,Bt.Suspense=F,Bt.isAsyncMode=z,Bt.isConcurrentMode=I,Bt.isContextConsumer=W,Bt.isContextProvider=Y,Bt.isElement=J,Bt.isForwardRef=X,Bt.isFragment=Z,Bt.isLazy=Q,Bt.isMemo=te,Bt.isPortal=P,Bt.isProfiler=D,Bt.isStrictMode=B,Bt.isSuspense=H,Bt.isValidElementType=_,Bt.typeOf=C}()),Bt}var t_;function PO(){return t_||(t_=1,process.env.NODE_ENV==="production"?gm.exports=zue():gm.exports=Wue()),gm.exports}/*
|
|
308
|
-
object-assign
|
|
309
|
-
(c) Sindre Sorhus
|
|
310
|
-
@license MIT
|
|
311
|
-
*/var vm,n_;function Uue(){if(n_)return vm;n_=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return vm=i()?Object.assign:function(o,a){for(var s,c=r(o),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},vm}var bm,r_;function Gb(){if(r_)return bm;r_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bm=e,bm}var i_,o_;function LO(){return o_||(o_=1,i_=Function.call.bind(Object.prototype.hasOwnProperty)),i_}var ym,a_;function Vue(){if(a_)return ym;a_=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Gb(),n={},r=LO();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in o)if(r(o,u)){var d;try{if(typeof o[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[u](a,u,c,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+d.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ym=i,ym}var xm,s_;function Hue(){if(s_)return xm;s_=1;var e=PO(),t=Uue(),n=Gb(),r=LO(),i=Vue(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return xm=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(I){var W=I&&(l&&I[l]||I[u]);if(typeof W=="function")return W}var f="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:_,element:C(),elementType:y(),instanceOf:$,node:O(),objectOf:T,oneOf:E,oneOfType:k,shape:M,exact:A};function g(I,W){return I===W?I!==0||1/I===1/W:I!==I&&W!==W}function m(I,W){this.message=I,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function v(I){if(process.env.NODE_ENV!=="production")var W={},Y=0;function J(Z,Q,te,P,D,B,H){if(P=P||f,B=B||te,H!==n){if(c){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}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var G=P+":"+te;!W[G]&&Y<3&&(o("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+P+"`. 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[G]=!0,Y++)}}return Q[te]==null?Z?Q[te]===null?new m("The "+D+" `"+B+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new m("The "+D+" `"+B+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:I(Q,te,P,D,B)}var X=J.bind(null,!1);return X.isRequired=J.bind(null,!0),X}function x(I){function W(Y,J,X,Z,Q,te){var P=Y[J],D=N(P);if(D!==I){var B=F(P);return new m("Invalid "+Z+" `"+Q+"` of type "+("`"+B+"` supplied to `"+X+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return v(W)}function w(){return v(a)}function _(I){function W(Y,J,X,Z,Q){if(typeof I!="function")return new m("Property `"+Q+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var te=Y[J];if(!Array.isArray(te)){var P=N(te);return new m("Invalid "+Z+" `"+Q+"` of type "+("`"+P+"` supplied to `"+X+"`, expected an array."))}for(var D=0;D<te.length;D++){var B=I(te,D,X,Z,Q+"["+D+"]",n);if(B instanceof Error)return B}return null}return v(W)}function C(){function I(W,Y,J,X,Z){var Q=W[Y];if(!s(Q)){var te=N(Q);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+te+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return v(I)}function y(){function I(W,Y,J,X,Z){var Q=W[Y];if(!e.isValidElementType(Q)){var te=N(Q);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+te+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return v(I)}function $(I){function W(Y,J,X,Z,Q){if(!(Y[J]instanceof I)){var te=I.name||f,P=z(Y[J]);return new m("Invalid "+Z+" `"+Q+"` of type "+("`"+P+"` supplied to `"+X+"`, expected ")+("instance of `"+te+"`."))}return null}return v(W)}function E(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function W(Y,J,X,Z,Q){for(var te=Y[J],P=0;P<I.length;P++)if(g(te,I[P]))return null;var D=JSON.stringify(I,function(B,H){var R=F(H);return R==="symbol"?String(H):H});return new m("Invalid "+Z+" `"+Q+"` of value `"+String(te)+"` "+("supplied to `"+X+"`, expected one of "+D+"."))}return v(W)}function T(I){function W(Y,J,X,Z,Q){if(typeof I!="function")return new m("Property `"+Q+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var te=Y[J],P=N(te);if(P!=="object")return new m("Invalid "+Z+" `"+Q+"` of type "+("`"+P+"` supplied to `"+X+"`, expected an object."));for(var D in te)if(r(te,D)){var B=I(te,D,X,Z,Q+"."+D,n);if(B instanceof Error)return B}return null}return v(W)}function k(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<I.length;W++){var Y=I[W];if(typeof Y!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(Y)+" at index "+W+"."),a}function J(X,Z,Q,te,P){for(var D=[],B=0;B<I.length;B++){var H=I[B],R=H(X,Z,Q,te,P,n);if(R==null)return null;R.data&&r(R.data,"expectedType")&&D.push(R.data.expectedType)}var G=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new m("Invalid "+te+" `"+P+"` supplied to "+("`"+Q+"`"+G+"."))}return v(J)}function O(){function I(W,Y,J,X,Z){return j(W[Y])?null:new m("Invalid "+X+" `"+Z+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return v(I)}function S(I,W,Y,J,X){return new m((I||"React class")+": "+W+" type `"+Y+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function M(I){function W(Y,J,X,Z,Q){var te=Y[J],P=N(te);if(P!=="object")return new m("Invalid "+Z+" `"+Q+"` of type `"+P+"` "+("supplied to `"+X+"`, expected `object`."));for(var D in I){var B=I[D];if(typeof B!="function")return S(X,Z,Q,D,F(B));var H=B(te,D,X,Z,Q+"."+D,n);if(H)return H}return null}return v(W)}function A(I){function W(Y,J,X,Z,Q){var te=Y[J],P=N(te);if(P!=="object")return new m("Invalid "+Z+" `"+Q+"` of type `"+P+"` "+("supplied to `"+X+"`, expected `object`."));var D=t({},Y[J],I);for(var B in D){var H=I[B];if(r(I,B)&&typeof H!="function")return S(X,Z,Q,B,F(H));if(!H)return new m("Invalid "+Z+" `"+Q+"` key `"+B+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(Y[J],null," ")+`
|
|
312
|
-
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var R=H(te,B,X,Z,Q+"."+B,n);if(R)return R}return null}return v(W)}function j(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(j);if(I===null||s(I))return!0;var W=d(I);if(W){var Y=W.call(I),J;if(W!==I.entries){for(;!(J=Y.next()).done;)if(!j(J.value))return!1}else for(;!(J=Y.next()).done;){var X=J.value;if(X&&!j(X[1]))return!1}}else return!1;return!0;default:return!1}}function L(I,W){return I==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function N(I){var W=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":L(W,I)?"symbol":W}function F(I){if(typeof I>"u"||I===null)return""+I;var W=N(I);if(W==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return W}function U(I){var W=F(I);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function z(I){return!I.constructor||!I.constructor.name?f:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},xm}var wm,c_;function que(){if(c_)return wm;c_=1;var e=Gb();function t(){}function n(){}return n.resetWarningCache=t,wm=function(){function r(a,s,c,l,u,d){if(d!==e){var f=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 f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},wm}var l_;function Yue(){if(l_)return Ou.exports;if(l_=1,process.env.NODE_ENV!=="production"){var e=PO(),t=!0;Ou.exports=Hue()(e.isElement,t)}else Ou.exports=que()();return Ou.exports}var Gue=Yue();const Qe=ep(Gue);function Kue(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function Zue({as:e,bsPrefix:t,className:n,...r}){t=kt(t,"col");const i=Fue(),o=Bue(),a=[],s=[];return i.forEach(c=>{const l=r[c];delete r[c];let u,d,f;typeof l=="object"&&l!=null?{span:u,offset:d,order:f}=l:u=l;const p=c!==o?`-${c}`:"";u&&a.push(u===!0?`${t}${p}`:`${t}${p}-${u}`),f!=null&&s.push(`order${p}-${f}`),d!=null&&s.push(`offset${p}-${d}`)}),[{...r,className:xe(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const FO=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=Zue(e);return b.jsx(i,{...r,ref:t,className:xe(n,!a.length&&o)})});FO.displayName="Col";var _m,u_;function Xue(){if(u_)return _m;u_=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var n=function(r,i){var o=arguments.length;i=new Array(o>1?o-1:0);for(var a=1;a<o;a++)i[a-1]=arguments[a];var s=0,c="Warning: "+r.replace(/%s/g,function(){return i[s++]});typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}};t=function(r,i,o){var a=arguments.length;o=new Array(a>2?a-2:0);for(var s=2;s<a;s++)o[s-2]=arguments[s];if(i===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");r||n.apply(null,[i].concat(o))}}return _m=t,_m}var Que=Xue();const ip=ep(Que),Jue={type:Qe.string,tooltip:Qe.bool,as:Qe.elementType},op=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>b.jsx(e,{...i,ref:o,className:xe(t,`${n}-${r?"tooltip":"feedback"}`)}));op.displayName="Feedback";op.propTypes=Jue;const _i=ie.createContext({}),Kb=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...s},c)=>{const{controlId:l}=h.useContext(_i);return t=kt(t,"form-check-input"),b.jsx(a,{...s,ref:c,type:r,id:e||l,className:xe(n,t,i&&"is-valid",o&&"is-invalid")})});Kb.displayName="FormCheckInput";const Qd=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=h.useContext(_i);return e=kt(e,"form-check-label"),b.jsx("label",{...r,ref:i,htmlFor:n||o,className:xe(t,e)})});Qd.displayName="FormCheckLabel";const BO=ie.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:o=!1,isValid:a=!1,isInvalid:s=!1,feedbackTooltip:c=!1,feedback:l,feedbackType:u,className:d,style:f,title:p="",type:g="checkbox",label:m,children:v,as:x="input",...w},_)=>{t=kt(t,"form-check"),n=kt(n,"form-switch");const{controlId:C}=h.useContext(_i),y=h.useMemo(()=>({controlId:e||C}),[C,e]),$=!v&&m!=null&&m!==!1||Kue(v,Qd),E=b.jsx(Kb,{...w,type:g==="switch"?"checkbox":g,ref:_,isValid:a,isInvalid:s,disabled:o,as:x});return b.jsx(_i.Provider,{value:y,children:b.jsx("div",{style:f,className:xe(d,$&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:v||b.jsxs(b.Fragment,{children:[E,$&&b.jsx(Qd,{title:p,children:m}),l&&b.jsx(op,{type:u,tooltip:c,children:l})]})})})});BO.displayName="FormCheck";const Jd=Object.assign(BO,{Input:Kb,Label:Qd}),zO=ie.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:o,isValid:a=!1,isInvalid:s=!1,plaintext:c,readOnly:l,as:u="input",...d},f)=>{const{controlId:p}=h.useContext(_i);return e=kt(e,"form-control"),process.env.NODE_ENV!=="production"&&ip(p==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),b.jsx(u,{...d,type:t,size:r,ref:f,readOnly:l,id:i||p,className:xe(o,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",s&&"is-invalid")})});zO.displayName="FormControl";const ede=Object.assign(zO,{Feedback:op}),WO=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=kt(t,"form-floating"),b.jsx(n,{ref:i,className:xe(e,t),...r})));WO.displayName="FormFloating";const Zb=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=h.useMemo(()=>({controlId:e}),[e]);return b.jsx(_i.Provider,{value:i,children:b.jsx(t,{...n,ref:r})})});Zb.displayName="FormGroup";const UO=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...a},s)=>{const{controlId:c}=h.useContext(_i);t=kt(t,"form-label");let l="col-form-label";typeof n=="string"&&(l=`${l} ${l}-${n}`);const u=xe(i,t,r&&"visually-hidden",n&&l);return process.env.NODE_ENV!=="production"&&ip(c==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||c,n?b.jsx(FO,{ref:s,as:"label",className:u,htmlFor:o,...a}):b.jsx(e,{ref:s,className:u,htmlFor:o,...a})});UO.displayName="FormLabel";const VO=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=h.useContext(_i);return e=kt(e,"form-range"),b.jsx("input",{...r,type:"range",ref:i,className:xe(t,e),id:n||o})});VO.displayName="FormRange";const HO=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:a,...s},c)=>{const{controlId:l}=h.useContext(_i);return e=kt(e,"form-select"),b.jsx("select",{...s,size:n,ref:c,className:xe(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||l})});HO.displayName="FormSelect";const qO=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=kt(e,"form-text"),b.jsx(n,{...i,ref:o,className:xe(t,e,r&&"text-muted")})));qO.displayName="FormText";const YO=ie.forwardRef((e,t)=>b.jsx(Jd,{...e,ref:t,type:"switch"}));YO.displayName="Switch";const tde=Object.assign(YO,{Input:Jd.Input,Label:Jd.Label}),GO=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=kt(e,"form-floating"),b.jsxs(Zb,{ref:a,className:xe(t,e),controlId:r,...o,children:[n,b.jsx("label",{htmlFor:r,children:i})]})));GO.displayName="FloatingLabel";const nde={_ref:Qe.any,validated:Qe.bool,as:Qe.elementType},Xb=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>b.jsx(n,{...r,ref:i,className:xe(e,t&&"was-validated")}));Xb.displayName="Form";Xb.propTypes=nde;const ef=Object.assign(Xb,{Group:Zb,Control:ede,Floating:WO,Check:Jd,Switch:tde,Label:UO,Text:qO,Range:VO,Select:HO,FloatingLabel:GO}),rde=({column:e,filterValue:t,IconComponent:n,texts:r})=>{const[i,o]=h.useState(t??""),[a,s]=h.useState(!1),[c,l]=h.useState(!1);h.useEffect(()=>{o(t??"")},[t]),h.useEffect(()=>{if((i||null)===(t||null))return;const d=setTimeout(()=>{e.setFilterValue(i??null)},500);return()=>clearTimeout(d)},[i,e,t]);const u=h.useMemo(()=>i==="no_value_filter_value",[i]);return b.jsx("div",{className:"w-100 h-100 position-relative",children:u?b.jsx("div",{className:"d-flex align-items-center text-muted w-100 h-100 border rounded px-2",role:"button",style:{fontSize:"12px",minHeight:"31px",height:"31px",maxHeight:"31px"},onClick:()=>{o(""),l(!1),s(!1)},children:r.noValue}):b.jsxs(b.Fragment,{children:[b.jsx(ef.Control,{className:xe("filter w-100",{filtered:!!t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,role:"filter-input",size:"sm",type:"text",value:i,onChange:d=>{o(d.target.value??"")},onKeyDown:d=>{d.key==="Escape"&&o("")},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)}),u?null:b.jsx("div",{className:"position-absolute",style:{top:"calc(50% - 8px)",right:"6px",opacity:a||c?1:0,transition:"opacity 0.3s ease-in-out"},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:b.jsx("div",{role:"button",onClick:()=>{o(u?"":"no_value_filter_value"),s(!1)},children:b.jsx(n,{icon:"no-value",iconProps:{style:{fontSize:"13px",background:"transparent"}}})})})]})})};function tf(e,t=tf.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}tf.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I",І:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",Lj:"L",Ł:"L",LJ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",Nj:"N",Ñ:"N",NJ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",ß:"ss",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ї:"YI",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Þ:"TH",IJ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ð:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",dz:"dz",dž:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i",і:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",lj:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},av.apply(null,arguments)}function KO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Cm,d_;function ide(){if(d_)return Cm;d_=1;var e=function(t,n,r,i,o,a,s,c){if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error("invariant requires an error message argument");if(!t){var l;if(n===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,o,a,s,c],d=0;l=new Error(n.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};return Cm=e,Cm}var ode=ide();const f_=ep(ode);function h_(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function ade(e){var t=sde(e,"string");return typeof t=="symbol"?t:String(t)}function sde(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function cde(e,t,n){var r=h.useRef(e!==void 0),i=h.useState(t),o=i[0],a=i[1],s=e!==void 0,c=r.current;return r.current=s,!s&&c&&o!==t&&a(t),[s?e:o,h.useCallback(function(l){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[l].concat(d)),a(l)},[n])]}function ZO(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[h_(r)],s=o[r],c=KO(o,[h_(r),r].map(ade)),l=t[r],u=cde(s,a,e[l]),d=u[0],f=u[1];return av({},c,(i={},i[r]=d,i[l]=f,i))},e)}function Vl(e){return e&&e.ownerDocument||document}const Ss=!!(typeof window<"u"&&window.document&&window.document.createElement);var sv=!1,cv=!1;try{var $m={get passive(){return sv=!0},get once(){return cv=sv=!0}};Ss&&(window.addEventListener("test",$m,$m),window.removeEventListener("test",$m,!0))}catch{}function Qb(e,t,n,r){if(r&&typeof r!="boolean"&&!cv){var i=r.once,o=r.capture,a=n;!cv&&i&&(a=n.__once||function s(c){this.removeEventListener(t,s,o),n.call(this,c)},n.__once=a),e.addEventListener(t,a,sv?r:o)}e.addEventListener(t,n,r)}function lv(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function qi(e,t,n,r){return Qb(e,t,n,r),function(){lv(e,t,n,r)}}const p_=e=>!e||typeof e=="function"?e:t=>{e.current=t};function lde(e,t){const n=p_(e),r=p_(t);return i=>{n&&n(i),r&&r(i)}}function Hl(e,t){return h.useMemo(()=>lde(e,t),[e,t])}function ude(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function nf(e){const t=ude(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function dde(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function Nn(e){const t=dde(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function XO(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function QO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}var fde=Function.prototype.bind.call(Function.prototype.call,[].slice);function Ii(e,t){return fde(e.querySelectorAll(t))}function rf(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const hde="data-rr-ui-";function Jb(e){return`${hde}${e}`}const JO=h.createContext(Ss?window:void 0);JO.Provider;function ap(){return h.useContext(JO)}const pde=["as","disabled"];function mde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gde(e){return!e||e.trim()==="#"}function ey({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:a,tabIndex:s=0,type:c}){e||(n!=null||r!=null||i!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},l];const u=f=>{if((t||e==="a"&&gde(n))&&f.preventDefault(),t){f.stopPropagation();return}a==null||a(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:d},l]}const e3=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=mde(e,pde);const[o,{tagName:a}]=ey(Object.assign({tagName:n,disabled:r},i));return b.jsx(a,Object.assign({},i,o,{ref:t}))});e3.displayName="Button";const ty=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:a,...s},c)=>{const l=kt(t,"btn"),[u,{tagName:d}]=ey({tagName:e,disabled:o,...s});return b.jsx(d,{...u,...s,ref:c,disabled:o,className:xe(a,l,i&&"active",n&&`${l}-${n}`,r&&`${l}-${r}`,s.href&&o&&"disabled")})});ty.displayName="Button";function vde(){return h.useState(null)}function bde(e,t,n,r=!1){const i=Nn(n);h.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,i,r),()=>o.removeEventListener(t,i,r)},[e])}const yde=["onKeyDown"];function xde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function wde(e){return!e||e.trim()==="#"}const t3=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=xde(e,yde);const[i]=ey(Object.assign({tagName:"a"},r)),o=Nn(a=>{i.onKeyDown(a),n==null||n(a)});return wde(r.href)||r.role==="button"?b.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:o})):b.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});t3.displayName="Anchor";function _de(e,t,n){const r=h.useRef(e!==void 0),[i,o]=h.useState(t),a=e!==void 0,s=r.current;return r.current=a,!a&&s&&i!==t&&o(t),[a?e:i,h.useCallback((...c)=>{const[l,...u]=c;let d=n==null?void 0:n(l,...u);return o(l),d},[n])]}function Cde(){const[,e]=h.useReducer(t=>t+1,0);return e}const sp=ie.createContext(null);var m_=Object.prototype.hasOwnProperty;function g_(e,t,n){for(n of e.keys())if(yc(n,t))return n}function yc(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&yc(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=g_(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=g_(t,i),!i)||!yc(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(m_.call(e,n)&&++r&&!m_.call(t,n)||!(n in t)||!yc(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function $de(e){const t=XO();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Yn="top",gr="bottom",vr="right",Gn="left",ny="auto",ql=[Yn,gr,vr,Gn],Ja="start",ml="end",Sde="clippingParents",n3="viewport",nc="popper",Ede="reference",v_=ql.reduce(function(e,t){return e.concat([t+"-"+Ja,t+"-"+ml])},[]),r3=[].concat(ql,[ny]).reduce(function(e,t){return e.concat([t,t+"-"+Ja,t+"-"+ml])},[]),Tde="beforeRead",kde="read",Ode="afterRead",Mde="beforeMain",Rde="main",Ade="afterMain",jde="beforeWrite",Nde="write",Dde="afterWrite",Ide=[Tde,kde,Ode,Mde,Rde,Ade,jde,Nde,Dde];function Fr(e){return e.split("-")[0]}function rr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zo(e){var t=rr(e).Element;return e instanceof t||e instanceof Element}function Br(e){var t=rr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ry(e){if(typeof ShadowRoot>"u")return!1;var t=rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Lo=Math.max,of=Math.min,es=Math.round;function uv(){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 i3(){return!/^((?!chrome|android).)*safari/i.test(uv())}function ts(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Br(e)&&(i=e.offsetWidth>0&&es(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&es(r.height)/e.offsetHeight||1);var a=Zo(e)?rr(e):window,s=a.visualViewport,c=!i3()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/i,u=(r.top+(c&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function iy(e){var t=ts(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function o3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ry(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ao(e){return e?(e.nodeName||"").toLowerCase():null}function Ci(e){return rr(e).getComputedStyle(e)}function Pde(e){return["table","td","th"].indexOf(ao(e))>=0}function lo(e){return((Zo(e)?e.ownerDocument:e.document)||window.document).documentElement}function cp(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||(ry(e)?e.host:null)||lo(e)}function b_(e){return!Br(e)||Ci(e).position==="fixed"?null:e.offsetParent}function Lde(e){var t=/firefox/i.test(uv()),n=/Trident/i.test(uv());if(n&&Br(e)){var r=Ci(e);if(r.position==="fixed")return null}var i=cp(e);for(ry(i)&&(i=i.host);Br(i)&&["html","body"].indexOf(ao(i))<0;){var o=Ci(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Yl(e){for(var t=rr(e),n=b_(e);n&&Pde(n)&&Ci(n).position==="static";)n=b_(n);return n&&(ao(n)==="html"||ao(n)==="body"&&Ci(n).position==="static")?t:n||Lde(e)||t}function oy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xc(e,t,n){return Lo(e,of(t,n))}function Fde(e,t,n){var r=xc(e,t,n);return r>n?n:r}function a3(){return{top:0,right:0,bottom:0,left:0}}function s3(e){return Object.assign({},a3(),e)}function c3(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Bde=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,s3(typeof e!="number"?e:c3(e,ql))};function zde(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Fr(n.placement),c=oy(s),l=[Gn,vr].indexOf(s)>=0,u=l?"height":"width";if(!(!o||!a)){var d=Bde(i.padding,n),f=iy(o),p=c==="y"?Yn:Gn,g=c==="y"?gr:vr,m=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],v=a[c]-n.rects.reference[c],x=Yl(o),w=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,_=m/2-v/2,C=d[p],y=w-f[u]-d[g],$=w/2-f[u]/2+_,E=xc(C,$,y),T=c;n.modifiersData[r]=(t={},t[T]=E,t.centerOffset=E-$,t)}}function Wde(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||o3(t.elements.popper,i)&&(t.elements.arrow=i))}const Ude={name:"arrow",enabled:!0,phase:"main",fn:zde,effect:Wde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ns(e){return e.split("-")[1]}var Vde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hde(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:es(n*i)/i||0,y:es(r*i)/i||0}}function y_(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,g=a.y,m=g===void 0?0:g,v=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),_=Gn,C=Yn,y=window;if(l){var $=Yl(n),E="clientHeight",T="clientWidth";if($===rr(n)&&($=lo(n),Ci($).position!=="static"&&s==="absolute"&&(E="scrollHeight",T="scrollWidth")),$=$,i===Yn||(i===Gn||i===vr)&&o===ml){C=gr;var k=d&&$===y&&y.visualViewport?y.visualViewport.height:$[E];m-=k-r.height,m*=c?1:-1}if(i===Gn||(i===Yn||i===gr)&&o===ml){_=vr;var O=d&&$===y&&y.visualViewport?y.visualViewport.width:$[T];p-=O-r.width,p*=c?1:-1}}var S=Object.assign({position:s},l&&Vde),M=u===!0?Hde({x:p,y:m},rr(n)):{x:p,y:m};if(p=M.x,m=M.y,c){var A;return Object.assign({},S,(A={},A[C]=w?"0":"",A[_]=x?"0":"",A.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",A))}return Object.assign({},S,(t={},t[C]=w?m+"px":"",t[_]=x?p+"px":"",t.transform="",t))}function qde(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:Fr(t.placement),variation:ns(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,y_(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,y_(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Yde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qde,data:{}};var Mu={passive:!0};function Gde(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,c=rr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(u){u.addEventListener("scroll",n.update,Mu)}),s&&c.addEventListener("resize",n.update,Mu),function(){o&&l.forEach(function(u){u.removeEventListener("scroll",n.update,Mu)}),s&&c.removeEventListener("resize",n.update,Mu)}}const Kde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Gde,data:{}};var Zde={left:"right",right:"left",bottom:"top",top:"bottom"};function ed(e){return e.replace(/left|right|bottom|top/g,function(t){return Zde[t]})}var Xde={start:"end",end:"start"};function x_(e){return e.replace(/start|end/g,function(t){return Xde[t]})}function ay(e){var t=rr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function sy(e){return ts(lo(e)).left+ay(e).scrollLeft}function Qde(e,t){var n=rr(e),r=lo(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var l=i3();(l||!l&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+sy(e),y:c}}function Jde(e){var t,n=lo(e),r=ay(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Lo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Lo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+sy(e),c=-r.scrollTop;return Ci(i||n).direction==="rtl"&&(s+=Lo(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function cy(e){var t=Ci(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function l3(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:Br(e)&&cy(e)?e:l3(cp(e))}function wc(e,t){var n;t===void 0&&(t=[]);var r=l3(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=rr(r),a=i?[o].concat(o.visualViewport||[],cy(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(wc(cp(a)))}function dv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function efe(e,t){var n=ts(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 w_(e,t,n){return t===n3?dv(Qde(e,n)):Zo(t)?efe(t,n):dv(Jde(lo(e)))}function tfe(e){var t=wc(cp(e)),n=["absolute","fixed"].indexOf(Ci(e).position)>=0,r=n&&Br(e)?Yl(e):e;return Zo(r)?t.filter(function(i){return Zo(i)&&o3(i,r)&&ao(i)!=="body"}):[]}function nfe(e,t,n,r){var i=t==="clippingParents"?tfe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(c,l){var u=w_(e,l,r);return c.top=Lo(u.top,c.top),c.right=of(u.right,c.right),c.bottom=of(u.bottom,c.bottom),c.left=Lo(u.left,c.left),c},w_(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function u3(e){var t=e.reference,n=e.element,r=e.placement,i=r?Fr(r):null,o=r?ns(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case Yn:c={x:a,y:t.y-n.height};break;case gr:c={x:a,y:t.y+t.height};break;case vr:c={x:t.x+t.width,y:s};break;case Gn:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?oy(i):null;if(l!=null){var u=l==="y"?"height":"width";switch(o){case Ja:c[l]=c[l]-(t[u]/2-n[u]/2);break;case ml:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function gl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,c=s===void 0?Sde:s,l=n.rootBoundary,u=l===void 0?n3:l,d=n.elementContext,f=d===void 0?nc:d,p=n.altBoundary,g=p===void 0?!1:p,m=n.padding,v=m===void 0?0:m,x=s3(typeof v!="number"?v:c3(v,ql)),w=f===nc?Ede:nc,_=e.rects.popper,C=e.elements[g?w:f],y=nfe(Zo(C)?C:C.contextElement||lo(e.elements.popper),c,u,a),$=ts(e.elements.reference),E=u3({reference:$,element:_,placement:i}),T=dv(Object.assign({},_,E)),k=f===nc?T:$,O={top:y.top-k.top+x.top,bottom:k.bottom-y.bottom+x.bottom,left:y.left-k.left+x.left,right:k.right-y.right+x.right},S=e.modifiersData.offset;if(f===nc&&S){var M=S[i];Object.keys(O).forEach(function(A){var j=[vr,gr].indexOf(A)>=0?1:-1,L=[Yn,gr].indexOf(A)>=0?"y":"x";O[A]+=M[L]*j})}return O}function rfe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?r3:c,u=ns(r),d=u?s?v_:v_.filter(function(g){return ns(g)===u}):ql,f=d.filter(function(g){return l.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,m){return g[m]=gl(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[Fr(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function ife(e){if(Fr(e)===ny)return[];var t=ed(e);return[x_(e),t,x_(t)]}function ofe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,v=t.options.placement,x=Fr(v),w=x===v,_=c||(w||!g?[ed(v)]:ife(v)),C=[v].concat(_).reduce(function(X,Z){return X.concat(Fr(Z)===ny?rfe(t,{placement:Z,boundary:u,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:m}):Z)},[]),y=t.rects.reference,$=t.rects.popper,E=new Map,T=!0,k=C[0],O=0;O<C.length;O++){var S=C[O],M=Fr(S),A=ns(S)===Ja,j=[Yn,gr].indexOf(M)>=0,L=j?"width":"height",N=gl(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),F=j?A?vr:Gn:A?gr:Yn;y[L]>$[L]&&(F=ed(F));var U=ed(F),z=[];if(o&&z.push(N[M]<=0),s&&z.push(N[F]<=0,N[U]<=0),z.every(function(X){return X})){k=S,T=!1;break}E.set(S,z)}if(T)for(var I=g?3:1,W=function(X){var Z=C.find(function(Q){var te=E.get(Q);if(te)return te.slice(0,X).every(function(P){return P})});if(Z)return k=Z,"break"},Y=I;Y>0;Y--){var J=W(Y);if(J==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const afe={name:"flip",enabled:!0,phase:"main",fn:ofe,requiresIfExists:["offset"],data:{_skip:!1}};function __(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 C_(e){return[Yn,vr,gr,Gn].some(function(t){return e[t]>=0})}function sfe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=gl(t,{elementContext:"reference"}),s=gl(t,{altBoundary:!0}),c=__(a,r),l=__(s,i,o),u=C_(c),d=C_(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const cfe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sfe};function lfe(e,t,n){var r=Fr(e),i=[Gn,Yn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Gn,vr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function ufe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=r3.reduce(function(u,d){return u[d]=lfe(d,t.rects,o),u},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const dfe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ufe};function ffe(e){var t=e.state,n=e.name;t.modifiersData[n]=u3({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const hfe={name:"popperOffsets",enabled:!0,phase:"read",fn:ffe,data:{}};function pfe(e){return e==="x"?"y":"x"}function mfe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,v=gl(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),x=Fr(t.placement),w=ns(t.placement),_=!w,C=oy(x),y=pfe(C),$=t.modifiersData.popperOffsets,E=t.rects.reference,T=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,O=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if($){if(o){var A,j=C==="y"?Yn:Gn,L=C==="y"?gr:vr,N=C==="y"?"height":"width",F=$[C],U=F+v[j],z=F-v[L],I=p?-T[N]/2:0,W=w===Ja?E[N]:T[N],Y=w===Ja?-T[N]:-E[N],J=t.elements.arrow,X=p&&J?iy(J):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:a3(),Q=Z[j],te=Z[L],P=xc(0,E[N],X[N]),D=_?E[N]/2-I-P-Q-O.mainAxis:W-P-Q-O.mainAxis,B=_?-E[N]/2+I+P+te+O.mainAxis:Y+P+te+O.mainAxis,H=t.elements.arrow&&Yl(t.elements.arrow),R=H?C==="y"?H.clientTop||0:H.clientLeft||0:0,G=(A=S==null?void 0:S[C])!=null?A:0,ee=F+D-G-R,ne=F+B-G,de=xc(p?of(U,ee):U,F,p?Lo(z,ne):z);$[C]=de,M[C]=de-F}if(s){var oe,ae=C==="x"?Yn:Gn,me=C==="x"?gr:vr,ve=$[y],Ee=y==="y"?"height":"width",Se=ve+v[ae],Me=ve-v[me],ge=[Yn,Gn].indexOf(x)!==-1,_e=(oe=S==null?void 0:S[y])!=null?oe:0,ce=ge?Se:ve-E[Ee]-T[Ee]-_e+O.altAxis,Oe=ge?ve+E[Ee]+T[Ee]-_e-O.altAxis:Me,Ue=p&&ge?Fde(ce,ve,Oe):xc(p?ce:Se,ve,p?Oe:Me);$[y]=Ue,M[y]=Ue-ve}t.modifiersData[r]=M}}const gfe={name:"preventOverflow",enabled:!0,phase:"main",fn:mfe,requiresIfExists:["offset"]};function vfe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bfe(e){return e===rr(e)||!Br(e)?ay(e):vfe(e)}function yfe(e){var t=e.getBoundingClientRect(),n=es(t.width)/e.offsetWidth||1,r=es(t.height)/e.offsetHeight||1;return n!==1||r!==1}function xfe(e,t,n){n===void 0&&(n=!1);var r=Br(t),i=Br(t)&&yfe(t),o=lo(t),a=ts(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ao(t)!=="body"||cy(o))&&(s=bfe(t)),Br(t)?(c=ts(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=sy(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function wfe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function _fe(e){var t=wfe(e);return Ide.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Cfe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $fe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var $_={placement:"bottom",modifiers:[],strategy:"absolute"};function S_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Sfe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?$_:i;return function(a,s,c){c===void 0&&(c=o);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},$_,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},u=[],d=!1,f={state:l,setOptions:function(m){var v=typeof m=="function"?m(l.options):m;g(),l.options=Object.assign({},o,l.options,v),l.scrollParents={reference:Zo(a)?wc(a):a.contextElement?wc(a.contextElement):[],popper:wc(s)};var x=_fe($fe([].concat(r,l.options.modifiers)));return l.orderedModifiers=x.filter(function(w){return w.enabled}),p(),f.update()},forceUpdate:function(){if(!d){var m=l.elements,v=m.reference,x=m.popper;if(S_(v,x)){l.rects={reference:xfe(v,Yl(x),l.options.strategy==="fixed"),popper:iy(x)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(T){return l.modifiersData[T.name]=Object.assign({},T.data)});for(var w=0;w<l.orderedModifiers.length;w++){if(l.reset===!0){l.reset=!1,w=-1;continue}var _=l.orderedModifiers[w],C=_.fn,y=_.options,$=y===void 0?{}:y,E=_.name;typeof C=="function"&&(l=C({state:l,options:$,name:E,instance:f})||l)}}}},update:Cfe(function(){return new Promise(function(m){f.forceUpdate(),m(l)})}),destroy:function(){g(),d=!0}};if(!S_(a,s))return f;f.setOptions(c).then(function(m){!d&&c.onFirstUpdate&&c.onFirstUpdate(m)});function p(){l.orderedModifiers.forEach(function(m){var v=m.name,x=m.options,w=x===void 0?{}:x,_=m.effect;if(typeof _=="function"){var C=_({state:l,name:v,instance:f,options:w}),y=function(){};u.push(C||y)}})}function g(){u.forEach(function(m){return m()}),u=[]}return f}}const Efe=Sfe({defaultModifiers:[cfe,hfe,Yde,Kde,dfe,afe,gfe,Ude]}),Tfe=["enabled","placement","strategy","modifiers"];function kfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Ofe={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Mfe={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const o=r.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},Rfe=[];function Afe(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=Rfe}=n,s=kfe(n,Tfe);const c=h.useRef(a),l=h.useRef(),u=h.useCallback(()=>{var v;(v=l.current)==null||v.update()},[]),d=h.useCallback(()=>{var v;(v=l.current)==null||v.forceUpdate()},[]),[f,p]=$de(h.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const x={},w={};Object.keys(v.elements).forEach(_=>{x[_]=v.styles[_],w[_]=v.attributes[_]}),p({state:v,styles:x,attributes:w,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,p]),m=h.useMemo(()=>(yc(c.current,a)||(c.current=a),c.current),[a]);return h.useEffect(()=>{!l.current||!r||l.current.setOptions({placement:i,strategy:o,modifiers:[...m,g,Ofe]})},[o,i,g,r,m]),h.useEffect(()=>{if(!(!r||e==null||t==null))return l.current=Efe(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...m,Mfe,g]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,p(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}const E_=()=>{};function jfe(e){return e.button===0}function Nfe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Sm=e=>e&&("current"in e?e.current:e),T_={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Dfe(e,t=E_,{disabled:n,clickTrigger:r="click"}={}){const i=h.useRef(!1),o=h.useRef(!1),a=h.useCallback(l=>{const u=Sm(e);ip(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||Nfe(l)||!jfe(l)||!!rf(u,l.target)||o.current,o.current=!1},[e]),s=Nn(l=>{const u=Sm(e);u&&rf(u,l.target)?o.current=!0:o.current=!1}),c=Nn(l=>{i.current||t(l)});h.useEffect(()=>{var l,u;if(n||e==null)return;const d=Vl(Sm(e)),f=d.defaultView||window;let p=(l=f.event)!=null?l:(u=f.parent)==null?void 0:u.event,g=null;T_[r]&&(g=qi(d,T_[r],s,!0));const m=qi(d,r,a,!0),v=qi(d,r,w=>{if(w===p){p=void 0;return}c(w)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(w=>qi(w,"mousemove",E_))),()=>{g==null||g(),m(),v(),x.forEach(w=>w())}},[e,n,r,a,s,c])}function Ife(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Pfe(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Lfe({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:c={}}){var l,u,d,f,p;const g=Ife(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:o?"fixed":c.strategy,modifiers:Pfe(Object.assign({},g,{eventListeners:{enabled:t,options:(l=g.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},g.preventOverflow,{options:a?Object.assign({padding:a},(u=g.preventOverflow)==null?void 0:u.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(p=g.arrow)==null?void 0:p.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const Ffe=["children","usePopper"];function Bfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const zfe=()=>{};function d3(e={}){const t=h.useContext(sp),[n,r]=vde(),i=h.useRef(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:c=!1,placement:l,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,p=(t==null?void 0:t.show)==null?!!e.show:t.show;p&&!i.current&&(i.current=!0);const g=$=>{t==null||t.toggle(!1,$)},{placement:m,setMenu:v,menuElement:x,toggleElement:w}=t||{},_=Afe(w,x,Lfe({placement:l||m||"bottom-start",enabled:f,enableEvents:d??p,offset:a,flip:o,fixed:c,arrowElement:n,popperConfig:u})),C=Object.assign({ref:v||zfe,"aria-labelledby":w==null?void 0:w.id},_.attributes.popper,{style:_.styles.popper}),y={show:p,placement:m,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?_:null,arrowProps:f?Object.assign({ref:r},_.attributes.arrow,{style:_.styles.arrow}):{}};return Dfe(x,g,{clickTrigger:s,disabled:!p}),[C,y]}function f3(e){let{children:t,usePopper:n=!0}=e,r=Bfe(e,Ffe);const[i,o]=d3(Object.assign({},r,{usePopper:n}));return b.jsx(b.Fragment,{children:t(i,o)})}f3.displayName="DropdownMenu";const af={prefix:String(Math.round(Math.random()*1e10)),current:0},h3=h.createContext(af),Wfe=h.createContext(!1);let Ufe=!!(typeof window<"u"&&window.document&&window.document.createElement),Em=new WeakMap;function Vfe(e=!1){let t=h.useContext(h3),n=h.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Em.get(o);a==null?Em.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Em.delete(o))}n.current=++t.current}return n.current}function Hfe(e){let t=h.useContext(h3);t===af&&!Ufe&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Vfe(!!e),r=t===af&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function qfe(e){let t=h.useId(),[n]=h.useState(Xfe()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${af.prefix}`;return e||`${r}-${t}`}const Yfe=typeof h.useId=="function"?qfe:Hfe;function Gfe(){return!1}function Kfe(){return!0}function Zfe(e){return()=>{}}function Xfe(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(Zfe,Gfe,Kfe):h.useContext(Wfe)}const p3=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},k_=()=>{};function m3(){const e=Yfe(),{show:t=!1,toggle:n=k_,setToggle:r,menuElement:i}=h.useContext(sp)||{},o=h.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||k_,onClick:o,"aria-expanded":!!t};return i&&p3(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function g3({children:e}){const[t,n]=m3();return b.jsx(b.Fragment,{children:e(t,n)})}g3.displayName="DropdownToggle";const fv=ie.createContext(null),O_=(e,t=null)=>e!=null?String(e):t||null,v3=ie.createContext(null);v3.displayName="NavContext";const Qfe=["eventKey","disabled","onClick","active","as"];function Jfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function b3({key:e,href:t,active:n,disabled:r,onClick:i}){const o=h.useContext(fv),a=h.useContext(v3),{activeKey:s}=a||{},c=O_(e,t),l=n==null&&e!=null?O_(s)===c:n;return[{onClick:Nn(u=>{r||(i==null||i(u),o&&!u.isPropagationStopped()&&o(c,u))}),"aria-disabled":r||void 0,"aria-selected":l,[Jb("dropdown-item")]:""},{isActive:l}]}const y3=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=e3}=e,s=Jfe(e,Qfe);const[c]=b3({key:n,href:s.href,disabled:r,onClick:i,active:o});return b.jsx(a,Object.assign({},s,{ref:t},c))});y3.displayName="DropdownItem";function M_(){const e=Cde(),t=h.useRef(null),n=h.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Gl({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${Jb("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const c=ap(),[l,u]=_de(t,e,r),[d,f]=M_(),p=d.current,[g,m]=M_(),v=g.current,x=QO(l),w=h.useRef(null),_=h.useRef(!1),C=h.useContext(fv),y=h.useCallback((S,M,A=M==null?void 0:M.type)=>{u(S,{originalEvent:M,source:A})},[u]),$=Nn((S,M)=>{n==null||n(S,M),y(!1,M,"select"),M.isPropagationStopped()||(C==null||C(S,M))}),E=h.useMemo(()=>({toggle:y,placement:a,show:l,menuElement:p,toggleElement:v,setMenu:f,setToggle:m}),[y,a,l,p,v,f,m]);p&&x&&!l&&(_.current=p.contains(p.ownerDocument.activeElement));const T=Nn(()=>{v&&v.focus&&v.focus()}),k=Nn(()=>{const S=w.current;let M=o;if(M==null&&(M=d.current&&p3(d.current)?"keyboard":!1),M===!1||M==="keyboard"&&!/^key.+$/.test(S))return;const A=Ii(d.current,i)[0];A&&A.focus&&A.focus()});h.useEffect(()=>{l?k():_.current&&(_.current=!1,T())},[l,_,T,k]),h.useEffect(()=>{w.current=null});const O=(S,M)=>{if(!d.current)return null;const A=Ii(d.current,i);let j=A.indexOf(S)+M;return j=Math.max(0,Math.min(j,A.length)),A[j]};return bde(h.useCallback(()=>c.document,[c]),"keydown",S=>{var M,A;const{key:j}=S,L=S.target,N=(M=d.current)==null?void 0:M.contains(L),F=(A=g.current)==null?void 0:A.contains(L);if(/input|textarea/i.test(L.tagName)&&(j===" "||j!=="Escape"&&N||j==="Escape"&&L.type==="search")||!N&&!F||j==="Tab"&&(!d.current||!l))return;w.current=S.type;const U={originalEvent:S,source:S.type};switch(j){case"ArrowUp":{const z=O(L,-1);z&&z.focus&&z.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!l)u(!0,U);else{const z=O(L,1);z&&z.focus&&z.focus()}return;case"Tab":Qb(L.ownerDocument,"keyup",z=>{var I;(z.key==="Tab"&&!z.target||!((I=d.current)!=null&&I.contains(z.target)))&&u(!1,U)},{once:!0});break;case"Escape":j==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,U);break}}),b.jsx(fv.Provider,{value:$,children:b.jsx(sp.Provider,{value:E,children:s})})}Gl.displayName="Dropdown";Gl.Menu=f3;Gl.Toggle=g3;Gl.Item=y3;const ly=ie.createContext({});ly.displayName="DropdownContext";const x3=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=kt(t,"dropdown-divider"),b.jsx(n,{ref:o,className:xe(e,t),role:r,...i})));x3.displayName="DropdownDivider";const w3=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=kt(t,"dropdown-header"),b.jsx(n,{ref:o,className:xe(e,t),role:r,...i})));w3.displayName="DropdownHeader";const _3=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=t3,...s},c)=>{const l=kt(e,"dropdown-item"),[u,d]=b3({key:n,href:s.href,disabled:r,onClick:i,active:o});return b.jsx(a,{...s,...u,ref:c,className:xe(t,l,d.isActive&&"active",r&&"disabled")})});_3.displayName="DropdownItem";const C3=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=kt(t,"dropdown-item-text"),b.jsx(n,{ref:i,className:xe(e,t),...r})));C3.displayName="DropdownItemText";const ehe=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",the=typeof document<"u",nhe=the||ehe?h.useLayoutEffect:h.useEffect,uy=ie.createContext(null);uy.displayName="InputGroupContext";const $3=ie.createContext(null);$3.displayName="NavbarContext";function S3(e,t){if(process.env.NODE_ENV==="production")return e;const n=h.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?f_(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):f_(!1))},[t]);return Hl(n,e)}function E3(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",a=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",c=n?"right-end":"left-end",l=n?"left-start":"right-start",u=n?"left-end":"right-end";let d=e?a:o;return t==="up"?d=e?i:r:t==="end"?d=e?u:l:t==="start"?d=e?c:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const T3=ie.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:o,renderOnMount:a,as:s="div",popperConfig:c,variant:l,...u},d)=>{let f=!1;const p=h.useContext($3),g=kt(e,"dropdown-menu"),{align:m,drop:v,isRTL:x}=h.useContext(ly);n=n||m;const w=h.useContext(uy),_=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&ip(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const M=S[0],A=n[M];f=A==="start",_.push(`${g}-${M}-${A}`)}}else n==="end"&&(f=!0);const C=E3(f,v,x),[y,{hasShown:$,popper:E,show:T,toggle:k}]=d3({flip:i,rootCloseEvent:r,show:o,usePopper:!p&&_.length===0,offset:[0,2],popperConfig:c,placement:C});if(y.ref=Hl(S3(d,"DropdownMenu"),y.ref),nhe(()=>{T&&(E==null||E.update())},[T]),!$&&!a&&!w)return null;typeof s!="string"&&(y.show=T,y.close=()=>k==null?void 0:k(!1),y.align=n);let O=u.style;return E!=null&&E.placement&&(O={...u.style,...y.style},u["x-placement"]=E.placement),b.jsx(s,{...u,...y,style:O,...(_.length||p)&&{"data-bs-popper":"static"},className:xe(t,g,T&&"show",f&&`${g}-end`,l&&`${g}-${l}`,..._)})});T3.displayName="DropdownMenu";const k3=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=ty,...o},a)=>{const s=kt(e,"dropdown-toggle"),c=h.useContext(sp);r!==void 0&&(o.bsPrefix=r);const[l]=m3();return l.ref=Hl(l.ref,S3(a,"DropdownToggle")),b.jsx(i,{className:xe(n,s,t&&`${s}-split`,(c==null?void 0:c.show)&&"show"),...l,...o})});k3.displayName="DropdownToggle";const O3=ie.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:o,align:a="start",onSelect:s,onToggle:c,focusFirstItemOnShow:l,as:u="div",navbar:d,autoClose:f=!0,...p}=ZO(e,{show:"onToggle"}),g=h.useContext(uy),m=kt(n,"dropdown"),v=IO(),x=$=>f===!1?$==="click":f==="inside"?$!=="rootClose":f==="outside"?$!=="select":!0,w=nf(($,E)=>{var T;!((T=E.originalEvent)==null||(T=T.target)==null)&&T.classList.contains("dropdown-toggle")&&E.source==="mousedown"||(E.originalEvent.currentTarget===document&&(E.source!=="keydown"||E.originalEvent.key==="Escape")&&(E.source="rootClose"),x(E.source)&&(c==null||c($,E)))}),_=E3(a==="end",r,v),C=h.useMemo(()=>({align:a,drop:r,isRTL:v}),[a,r,v]),y={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(ly.Provider,{value:C,children:b.jsx(Gl,{placement:_,show:i,onSelect:s,onToggle:w,focusFirstItemOnShow:l,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?p.children:b.jsx(u,{...p,ref:t,className:xe(o,i&&"show",y[r])})})})});O3.displayName="Dropdown";const Tn=Object.assign(O3,{Toggle:k3,Menu:T3,Item:_3,ItemText:C3,Divider:x3,Header:w3}),rhe="_multiselect_krzom_1",ihe="_multiselect-menu_krzom_34",ohe="_search-item_krzom_41",ahe="_special-option_krzom_45",Ru={multiselect:rhe,multiselectMenu:ihe,searchItem:ohe,specialOption:ahe},R_=10,she=({column:e,filterValue:t,texts:n})=>{var g,m,v;const[r,i]=h.useState(""),o=h.useMemo(()=>Array.from(e.getFacetedUniqueValues().keys()).map(x=>x===!0||x===!1?x:(x==null?void 0:x.toString())??"").sort(),[e]),a=h.useMemo(()=>o.some(x=>x===""||x===null||x===void 0),[o]),s=h.useMemo(()=>(t==null?void 0:t.split(";"))??[],[t]),c=x=>{const w=x===""?[]:s.includes(x)?s.filter(_=>_!==x):[...s,x];e.setFilterValue(!w||w.length<1?"":w.join(";"))},l=h.useMemo(()=>{const x=[{value:"",label:n.multiselect.all||"vše",specialOption:!0}];return a&&x.push({value:"no_value_filter_value",label:n.multiselect.noValue||"bez hodnoty",specialOption:!0}),o.forEach(w=>{x.push({value:(w==null?void 0:w.toString())||"",label:w===!0?n.booleanYes||"ano":w===!1?n.booleanNo||"ne":w,specialOption:!1})}),s.forEach(w=>{w&&w!=="no_value_filter_value"&&!o.some(_=>_.toString()===w.toString())&&x.push({value:w,label:w,specialOption:!1})}),Array.from(new Set(x.map(w=>w.value))).map(w=>x.find(_=>_.value===w))},[o,s,a,n]),u=h.useRef(null),d=h.useRef(null),[f,p]=h.useState(!1);return h.useEffect(()=>{f&&d.current&&d.current.focus()},[f]),h.useEffect(()=>{l.length<R_&&i("")},[l]),b.jsxs(Tn,{autoClose:"outside",onToggle:x=>p(x),children:[b.jsx(Tn.Toggle,{className:xe("filter multiselect border",Ru.multiselect,{filtered:t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,ref:u,role:"filter-input",size:"sm",onKeyDown:x=>{x.key==="Escape"&&e.setFilterValue("")},children:s.length>1?n.multiselect.xValues?n.multiselect.xValues(s.length):`${s.length} hodnoty`:s.length===1?(g=l.find(x=>x.value===t))==null?void 0:g.label:n.multiselect.all||"vše"}),b.jsxs(Tn.Menu,{className:xe("multiselect-menu shadow-sm",Ru.multiselectMenu),style:{position:"relative",left:(m=u.current)==null?void 0:m.getBoundingClientRect().left,top:(v=u.current)==null?void 0:v.getBoundingClientRect().bottom},children:[l.length>=R_?b.jsx(Tn.Item,{className:xe("rounded search-item",Ru.searchItem),children:b.jsx(ef.Control,{className:"w-100",ref:d,size:"sm",type:"search",value:r,onChange:x=>i(x.target.value??"")})}):null,l.filter(x=>x.specialOption?!0:r?tf(x.value).toLowerCase().includes(tf(r.toLowerCase())):!0).map(x=>b.jsx(Tn.Item,{className:xe("rounded",{"special-option":x.specialOption},{[Ru.specialOption]:x.specialOption}),onClick:()=>c(x.value),children:b.jsx(ef.Check,{checked:x.value===""?s.length<1:s.includes(x.value),label:x.label,onChange:()=>{}})},x.value))]})]})},che=({column:e,IconComponent:t,texts:n})=>{const r=e.getFilterValue(),i=Iue(e.columnDef);return["text","number","date","datetime"].includes(i)?b.jsx(rde,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n}):b.jsx(she,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n})};/**
|
|
313
|
-
* table-core
|
|
314
|
-
*
|
|
315
|
-
* Copyright (c) TanStack
|
|
316
|
-
*
|
|
317
|
-
* This source code is licensed under the MIT license found in the
|
|
318
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
319
|
-
*
|
|
320
|
-
* @license MIT
|
|
321
|
-
*/function lhe(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}/**
|
|
322
|
-
* react-table
|
|
323
|
-
*
|
|
324
|
-
* Copyright (c) TanStack
|
|
325
|
-
*
|
|
326
|
-
* This source code is licensed under the MIT license found in the
|
|
327
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
328
|
-
*
|
|
329
|
-
* @license MIT
|
|
330
|
-
*/function M3(e,t){return e?uhe(e)?ie.createElement(e,t):e:null}function uhe(e){return dhe(e)||typeof e=="function"||fhe(e)}function dhe(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function fhe(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function hhe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const lp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Es(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function dy(e){return"nodeType"in e}function Zn(e){var t,n;return e?Es(e)?e:dy(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function fy(e){const{Document:t}=Zn(e);return e instanceof t}function Kl(e){return Es(e)?!1:e instanceof Zn(e).HTMLElement}function R3(e){return e instanceof Zn(e).SVGElement}function Ts(e){return e?Es(e)?e.document:dy(e)?fy(e)?e:Kl(e)||R3(e)?e.ownerDocument:document:document:document}const Gr=lp?h.useLayoutEffect:h.useEffect;function hy(e){const t=h.useRef(e);return Gr(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function phe(){const e=h.useRef(null),t=h.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=h.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function vl(e,t){t===void 0&&(t=[e]);const n=h.useRef(e);return Gr(()=>{n.current!==e&&(n.current=e)},t),n}function Zl(e,t){const n=h.useRef();return h.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function sf(e){const t=hy(e),n=h.useRef(null),r=h.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function hv(e){const t=h.useRef();return h.useEffect(()=>{t.current=e},[e]),t.current}let Tm={};function Xl(e,t){return h.useMemo(()=>{if(t)return t;const n=Tm[e]==null?0:Tm[e]+1;return Tm[e]=n,e+"-"+n},[e,t])}function A3(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>{const s=Object.entries(a);for(const[c,l]of s){const u=o[c];u!=null&&(o[c]=u+e*l)}return o},{...t})}}const Da=A3(1),cf=A3(-1);function mhe(e){return"clientX"in e&&"clientY"in e}function py(e){if(!e)return!1;const{KeyboardEvent:t}=Zn(e.target);return t&&e instanceof t}function ghe(e){if(!e)return!1;const{TouchEvent:t}=Zn(e.target);return t&&e instanceof t}function pv(e){if(ghe(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return mhe(e)?{x:e.clientX,y:e.clientY}:null}const bl=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[bl.Translate.toString(e),bl.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),A_="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function vhe(e){return e.matches(A_)?e:e.querySelector(A_)}const bhe={display:"none"};function yhe(e){let{id:t,value:n}=e;return h.createElement("div",{id:t,style:bhe},n)}function xhe(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return h.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function whe(){const[e,t]=h.useState("");return{announce:h.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const j3=h.createContext(null);function _he(e){const t=h.useContext(j3);h.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Che(){const[e]=h.useState(()=>new Set),t=h.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[h.useCallback(n=>{let{type:r,event:i}=n;e.forEach(o=>{var a;return(a=o[r])==null?void 0:a.call(o,i)})},[e]),t]}const $he={draggable:`
|
|
331
|
-
To pick up a draggable item, press the space bar.
|
|
332
|
-
While dragging, use the arrow keys to move the item.
|
|
333
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
334
|
-
`},She={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Ehe(e){let{announcements:t=She,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=$he}=e;const{announce:o,announcement:a}=whe(),s=Xl("DndLiveRegion"),[c,l]=h.useState(!1);if(h.useEffect(()=>{l(!0)},[]),_he(h.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;t.onDragMove&&o(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;o(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;o(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;o(t.onDragCancel({active:f,over:p}))}}),[o,t])),!c)return null;const u=h.createElement(h.Fragment,null,h.createElement(yhe,{id:r,value:i.draggable}),h.createElement(xhe,{id:s,announcement:a}));return n?un.createPortal(u,n):u}var fn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(fn||(fn={}));function lf(){}function km(e,t){return h.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function The(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Mr=Object.freeze({x:0,y:0});function khe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ohe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Mhe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Rhe(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function j_(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Ahe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=j_(t,t.left,t.top),o=[];for(const a of r){const{id:s}=a,c=n.get(s);if(c){const l=khe(j_(c),i);o.push({id:s,data:{droppableContainer:a,value:l}})}}return o.sort(Ohe)};function jhe(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const c=t.width*t.height,l=e.width*e.height,u=a*s,d=u/(c+l-u);return Number(d.toFixed(4))}return 0}const Nhe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const c=jhe(s,t);c>0&&i.push({id:a,data:{droppableContainer:o,value:c}})}}return i.sort(Mhe)};function Dhe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function N3(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Mr}function Ihe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>({...o,top:o.top+e*a.y,bottom:o.bottom+e*a.y,left:o.left+e*a.x,right:o.right+e*a.x}),{...t})}}const Phe=Ihe(1);function Lhe(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Fhe(e,t,n){const r=Lhe(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,c=e.left-a-(1-i)*parseFloat(n),l=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}const Bhe={ignoreTransform:!1};function ks(e,t){t===void 0&&(t=Bhe);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:l,transformOrigin:u}=Zn(e).getComputedStyle(e);l&&(n=Fhe(n,l,u))}const{top:r,left:i,width:o,height:a,bottom:s,right:c}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:c}}function N_(e){return ks(e,{ignoreTransform:!0})}function zhe(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Whe(e,t){return t===void 0&&(t=Zn(e).getComputedStyle(e)),t.position==="fixed"}function Uhe(e,t){t===void 0&&(t=Zn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const i=t[r];return typeof i=="string"?n.test(i):!1})}function my(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(fy(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Kl(i)||R3(i)||n.includes(i))return n;const o=Zn(e).getComputedStyle(i);return i!==e&&Uhe(i,o)&&n.push(i),Whe(i,o)?n:r(i.parentNode)}return e?r(e):n}function D3(e){const[t]=my(e,1);return t??null}function Om(e){return!lp||!e?null:Es(e)?e:dy(e)?fy(e)||e===Ts(e).scrollingElement?window:Kl(e)?e:null:null}function I3(e){return Es(e)?e.scrollX:e.scrollLeft}function P3(e){return Es(e)?e.scrollY:e.scrollTop}function mv(e){return{x:I3(e),y:P3(e)}}var bn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(bn||(bn={}));function L3(e){return!lp||!e?!1:e===document.scrollingElement}function F3(e){const t={x:0,y:0},n=L3(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const Vhe={x:.2,y:.2};function Hhe(e,t,n,r,i){let{top:o,left:a,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=Vhe);const{isTop:l,isBottom:u,isLeft:d,isRight:f}=F3(e),p={x:0,y:0},g={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!l&&o<=t.top+m.height?(p.y=bn.Backward,g.y=r*Math.abs((t.top+m.height-o)/m.height)):!u&&c>=t.bottom-m.height&&(p.y=bn.Forward,g.y=r*Math.abs((t.bottom-m.height-c)/m.height)),!f&&s>=t.right-m.width?(p.x=bn.Forward,g.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&a<=t.left+m.width&&(p.x=bn.Backward,g.x=r*Math.abs((t.left+m.width-a)/m.width)),{direction:p,speed:g}}function qhe(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:a}=window;return{top:0,left:0,right:o,bottom:a,width:o,height:a}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function B3(e){return e.reduce((t,n)=>Da(t,mv(n)),Mr)}function Yhe(e){return e.reduce((t,n)=>t+I3(n),0)}function Ghe(e){return e.reduce((t,n)=>t+P3(n),0)}function Khe(e,t){if(t===void 0&&(t=ks),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);D3(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Zhe=[["x",["left","right"],Yhe],["y",["top","bottom"],Ghe]];class gy{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=my(n),i=B3(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,a,s]of Zhe)for(const c of a)Object.defineProperty(this,c,{get:()=>{const l=s(r),u=i[o]-l;return this.rect[c]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class _c{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Xhe(e){const{EventTarget:t}=Zn(e);return e instanceof t?e:Ts(e)}function Mm(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var ar;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ar||(ar={}));function D_(e){e.preventDefault()}function Qhe(e){e.stopPropagation()}var Rt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Rt||(Rt={}));const z3={start:[Rt.Space,Rt.Enter],cancel:[Rt.Esc],end:[Rt.Space,Rt.Enter,Rt.Tab]},Jhe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Rt.Right:return{...n,x:n.x+25};case Rt.Left:return{...n,x:n.x-25};case Rt.Down:return{...n,y:n.y+25};case Rt.Up:return{...n,y:n.y-25}}};let vy=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new _c(Ts(n)),this.windowListeners=new _c(Zn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ar.Resize,this.handleCancel),this.windowListeners.add(ar.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ar.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Khe(r),n(Mr)}handleKeyDown(t){if(py(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=z3,coordinateGetter:a=Jhe,scrollBehavior:s="smooth"}=i,{code:c}=t;if(o.end.includes(c)){this.handleEnd(t);return}if(o.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:l}=r.current,u=l?{x:l.left,y:l.top}:Mr;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=cf(d,u),p={x:0,y:0},{scrollableAncestors:g}=r.current;for(const m of g){const v=t.code,{isTop:x,isRight:w,isLeft:_,isBottom:C,maxScroll:y,minScroll:$}=F3(m),E=qhe(m),T={x:Math.min(v===Rt.Right?E.right-E.width/2:E.right,Math.max(v===Rt.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(v===Rt.Down?E.bottom-E.height/2:E.bottom,Math.max(v===Rt.Down?E.top:E.top+E.height/2,d.y))},k=v===Rt.Right&&!w||v===Rt.Left&&!_,O=v===Rt.Down&&!C||v===Rt.Up&&!x;if(k&&T.x!==d.x){const S=m.scrollLeft+f.x,M=v===Rt.Right&&S<=y.x||v===Rt.Left&&S>=$.x;if(M&&!f.y){m.scrollTo({left:S,behavior:s});return}M?p.x=m.scrollLeft-S:p.x=v===Rt.Right?m.scrollLeft-y.x:m.scrollLeft-$.x,p.x&&m.scrollBy({left:-p.x,behavior:s});break}else if(O&&T.y!==d.y){const S=m.scrollTop+f.y,M=v===Rt.Down&&S<=y.y||v===Rt.Up&&S>=$.y;if(M&&!f.x){m.scrollTo({top:S,behavior:s});return}M?p.y=m.scrollTop-S:p.y=v===Rt.Down?m.scrollTop-y.y:m.scrollTop-$.y,p.y&&m.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,Da(cf(d,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};vy.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=z3,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function I_(e){return!!(e&&"distance"in e)}function P_(e){return!!(e&&"delay"in e)}class by{constructor(t,n,r){var i;r===void 0&&(r=Xhe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:a}=o;this.props=t,this.events=n,this.document=Ts(a),this.documentListeners=new _c(this.document),this.listeners=new _c(r),this.windowListeners=new _c(Zn(a)),this.initialCoordinates=(i=pv(o))!=null?i:Mr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ar.Resize,this.handleCancel),this.windowListeners.add(ar.DragStart,D_),this.windowListeners.add(ar.VisibilityChange,this.handleCancel),this.windowListeners.add(ar.ContextMenu,D_),this.documentListeners.add(ar.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(P_(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(I_(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ar.Click,Qhe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ar.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:a,options:{activationConstraint:s}}=o;if(!i)return;const c=(n=pv(t))!=null?n:Mr,l=cf(i,c);if(!r&&s){if(I_(s)){if(s.tolerance!=null&&Mm(l,s.tolerance))return this.handleCancel();if(Mm(l,s.distance))return this.handleStart()}if(P_(s)&&Mm(l,s.tolerance))return this.handleCancel();this.handlePending(s,l);return}t.cancelable&&t.preventDefault(),a(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Rt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const epe={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let W3=class extends by{constructor(t){const{event:n}=t,r=Ts(n.target);super(t,epe,r)}};W3.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const tpe={move:{name:"mousemove"},end:{name:"mouseup"}};var gv;(function(e){e[e.RightClick=2]="RightClick"})(gv||(gv={}));class U3 extends by{constructor(t){super(t,tpe,Ts(t.event.target))}}U3.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===gv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Rm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class V3 extends by{constructor(t){super(t,Rm)}static setup(){return window.addEventListener(Rm.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Rm.move.name,t)};function t(){}}}V3.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Cc;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Cc||(Cc={}));var uf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(uf||(uf={}));function npe(e){let{acceleration:t,activator:n=Cc.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=uf.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e;const p=ipe({delta:d,disabled:!o}),[g,m]=phe(),v=h.useRef({x:0,y:0}),x=h.useRef({x:0,y:0}),w=h.useMemo(()=>{switch(n){case Cc.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Cc.DraggableRect:return i}},[n,i,c]),_=h.useRef(null),C=h.useCallback(()=>{const $=_.current;if(!$)return;const E=v.current.x*x.current.x,T=v.current.y*x.current.y;$.scrollBy(E,T)},[]),y=h.useMemo(()=>s===uf.TreeOrder?[...l].reverse():l,[s,l]);h.useEffect(()=>{if(!o||!l.length||!w){m();return}for(const $ of y){if((r==null?void 0:r($))===!1)continue;const E=l.indexOf($),T=u[E];if(!T)continue;const{direction:k,speed:O}=Hhe($,T,w,t,f);for(const S of["x","y"])p[S][k[S]]||(O[S]=0,k[S]=0);if(O.x>0||O.y>0){m(),_.current=$,g(C,a),v.current=O,x.current=k;return}}v.current={x:0,y:0},x.current={x:0,y:0},m()},[t,C,r,m,o,a,JSON.stringify(w),JSON.stringify(p),g,l,y,u,JSON.stringify(f)])}const rpe={x:{[bn.Backward]:!1,[bn.Forward]:!1},y:{[bn.Backward]:!1,[bn.Forward]:!1}};function ipe(e){let{delta:t,disabled:n}=e;const r=hv(t);return Zl(i=>{if(n||!r||!i)return rpe;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[bn.Backward]:i.x[bn.Backward]||o.x===-1,[bn.Forward]:i.x[bn.Forward]||o.x===1},y:{[bn.Backward]:i.y[bn.Backward]||o.y===-1,[bn.Forward]:i.y[bn.Forward]||o.y===1}}},[n,t,r])}function ope(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Zl(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function ape(e,t){return h.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...o]},[]),[e,t])}var yl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(yl||(yl={}));var vv;(function(e){e.Optimized="optimized"})(vv||(vv={}));const L_=new Map;function spe(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=h.useState(null),{frequency:s,measure:c,strategy:l}=i,u=h.useRef(e),d=v(),f=vl(d),p=h.useCallback(function(x){x===void 0&&(x=[]),!f.current&&a(w=>w===null?x:w.concat(x.filter(_=>!w.includes(_))))},[f]),g=h.useRef(null),m=Zl(x=>{if(d&&!n)return L_;if(!x||x===L_||u.current!==e||o!=null){const w=new Map;for(let _ of e){if(!_)continue;if(o&&o.length>0&&!o.includes(_.id)&&_.rect.current){w.set(_.id,_.rect.current);continue}const C=_.node.current,y=C?new gy(c(C),C):null;_.rect.current=y,y&&w.set(_.id,y)}return w}return x},[e,o,n,d,c]);return h.useEffect(()=>{u.current=e},[e]),h.useEffect(()=>{d||p()},[n,d]),h.useEffect(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),h.useEffect(()=>{d||typeof s!="number"||g.current!==null||(g.current=setTimeout(()=>{p(),g.current=null},s))},[s,d,p,...r]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:o!=null};function v(){switch(l){case yl.Always:return!1;case yl.BeforeDragging:return n;default:return!n}}}function H3(e,t){return Zl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function cpe(e,t){return H3(e,t)}function lpe(e){let{callback:t,disabled:n}=e;const r=hy(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function up(e){let{callback:t,disabled:n}=e;const r=hy(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function upe(e){return new gy(ks(e),e)}function F_(e,t,n){t===void 0&&(t=upe);const[r,i]=h.useState(null);function o(){i(c=>{if(!e)return null;if(e.isConnected===!1){var l;return(l=c??n)!=null?l:null}const u=t(e);return JSON.stringify(c)===JSON.stringify(u)?c:u})}const a=lpe({callback(c){if(e)for(const l of c){const{type:u,target:d}=l;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),s=up({callback:o});return Gr(()=>{o(),e?(s==null||s.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),a==null||a.disconnect())},[e]),r}function dpe(e){const t=H3(e);return N3(e,t)}const B_=[];function fpe(e){const t=h.useRef(e),n=Zl(r=>e?r&&r!==B_&&e&&t.current&&e.parentNode===t.current.parentNode?r:my(e):B_,[e]);return h.useEffect(()=>{t.current=e},[e]),n}function hpe(e){const[t,n]=h.useState(null),r=h.useRef(e),i=h.useCallback(o=>{const a=Om(o.target);a&&n(s=>s?(s.set(a,mv(a)),new Map(s)):null)},[]);return h.useEffect(()=>{const o=r.current;if(e!==o){a(o);const s=e.map(c=>{const l=Om(c);return l?(l.addEventListener("scroll",i,{passive:!0}),[l,mv(l)]):null}).filter(c=>c!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(o)};function a(s){s.forEach(c=>{const l=Om(c);l==null||l.removeEventListener("scroll",i)})}},[i,e]),h.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,a)=>Da(o,a),Mr):B3(e):Mr,[e,t])}function z_(e,t){t===void 0&&(t=[]);const n=h.useRef(null);return h.useEffect(()=>{n.current=null},t),h.useEffect(()=>{const r=e!==Mr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?cf(e,n.current):Mr}function ppe(e){h.useEffect(()=>{if(!lp)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function mpe(e,t){return h.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=a=>{o(a,t)},n},{}),[e,t])}function q3(e){return h.useMemo(()=>e?zhe(e):null,[e])}const W_=[];function gpe(e,t){t===void 0&&(t=ks);const[n]=e,r=q3(n?Zn(n):null),[i,o]=h.useState(W_);function a(){o(()=>e.length?e.map(c=>L3(c)?r:new gy(t(c),c)):W_)}const s=up({callback:a});return Gr(()=>{s==null||s.disconnect(),a(),e.forEach(c=>s==null?void 0:s.observe(c))},[e]),i}function vpe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Kl(t)?t:e}function bpe(e){let{measure:t}=e;const[n,r]=h.useState(null),i=h.useCallback(l=>{for(const{target:u}of l)if(Kl(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),o=up({callback:i}),a=h.useCallback(l=>{const u=vpe(l);o==null||o.disconnect(),u&&(o==null||o.observe(u)),r(u?t(u):null)},[t,o]),[s,c]=sf(a);return h.useMemo(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const ype=[{sensor:W3,options:{}},{sensor:vy,options:{}}],xpe={current:{}},td={draggable:{measure:N_},droppable:{measure:N_,strategy:yl.WhileDragging,frequency:vv.Optimized},dragOverlay:{measure:ks}};class $c extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const wpe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new $c,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:lf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:td,measureDroppableContainers:lf,windowRect:null,measuringScheduled:!1},_pe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:lf,draggableNodes:new Map,over:null,measureDroppableContainers:lf},dp=h.createContext(_pe),Y3=h.createContext(wpe);function Cpe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new $c}}}function $pe(e,t){switch(t.type){case fn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case fn.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case fn.DragEnd:case fn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case fn.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new $c(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case fn.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new $c(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case fn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new $c(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Spe(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=h.useContext(dp),o=hv(r),a=hv(n==null?void 0:n.id);return h.useEffect(()=>{if(!t&&!r&&o&&a!=null){if(!py(o)||document.activeElement===o.target)return;const s=i.get(a);if(!s)return;const{activatorNode:c,node:l}=s;if(!c.current&&!l.current)return;requestAnimationFrame(()=>{for(const u of[c.current,l.current]){if(!u)continue;const d=vhe(u);if(d){d.focus();break}}})}},[r,t,i,a,o]),null}function Epe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function Tpe(e){return h.useMemo(()=>({draggable:{...td.draggable,...e==null?void 0:e.draggable},droppable:{...td.droppable,...e==null?void 0:e.droppable},dragOverlay:{...td.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function kpe(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=h.useRef(!1),{x:a,y:s}=typeof i=="boolean"?{x:i,y:i}:i;Gr(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const l=n(c),u=N3(l,r);if(a||(u.x=0),s||(u.y=0),o.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const d=D3(c);d&&d.scrollBy({top:u.y,left:u.x})}},[t,a,s,r,n])}const G3=h.createContext({...Mr,scaleX:1,scaleY:1});var Pi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Pi||(Pi={}));const Ope=h.memo(function(e){var t,n,r,i;let{id:o,accessibility:a,autoScroll:s=!0,children:c,sensors:l=ype,collisionDetection:u=Nhe,measuring:d,modifiers:f,...p}=e;const g=h.useReducer($pe,void 0,Cpe),[m,v]=g,[x,w]=Che(),[_,C]=h.useState(Pi.Uninitialized),y=_===Pi.Initialized,{draggable:{active:$,nodes:E,translate:T},droppable:{containers:k}}=m,O=$!=null?E.get($):null,S=h.useRef({initial:null,translated:null}),M=h.useMemo(()=>{var Ve;return $!=null?{id:$,data:(Ve=O==null?void 0:O.data)!=null?Ve:xpe,rect:S}:null},[$,O]),A=h.useRef(null),[j,L]=h.useState(null),[N,F]=h.useState(null),U=vl(p,Object.values(p)),z=Xl("DndDescribedBy",o),I=h.useMemo(()=>k.getEnabled(),[k]),W=Tpe(d),{droppableRects:Y,measureDroppableContainers:J,measuringScheduled:X}=spe(I,{dragging:y,dependencies:[T.x,T.y],config:W.droppable}),Z=ope(E,$),Q=h.useMemo(()=>N?pv(N):null,[N]),te=et(),P=cpe(Z,W.draggable.measure);kpe({activeNode:$!=null?E.get($):null,config:te.layoutShiftCompensation,initialRect:P,measure:W.draggable.measure});const D=F_(Z,W.draggable.measure,P),B=F_(Z?Z.parentElement:null),H=h.useRef({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:k,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),R=k.getNodeFor((t=H.current.over)==null?void 0:t.id),G=bpe({measure:W.dragOverlay.measure}),ee=(n=G.nodeRef.current)!=null?n:Z,ne=y?(r=G.rect)!=null?r:D:null,de=!!(G.nodeRef.current&&G.rect),oe=dpe(de?null:D),ae=q3(ee?Zn(ee):null),me=fpe(y?R??Z:null),ve=gpe(me),Ee=Epe(f,{transform:{x:T.x-oe.x,y:T.y-oe.y,scaleX:1,scaleY:1},activatorEvent:N,active:M,activeNodeRect:D,containerNodeRect:B,draggingNodeRect:ne,over:H.current.over,overlayNodeRect:G.rect,scrollableAncestors:me,scrollableAncestorRects:ve,windowRect:ae}),Se=Q?Da(Q,T):null,Me=hpe(me),ge=z_(Me),_e=z_(Me,[D]),ce=Da(Ee,ge),Oe=ne?Phe(ne,Ee):null,Ue=M&&Oe?u({active:M,collisionRect:Oe,droppableRects:Y,droppableContainers:I,pointerCoordinates:Se}):null,Ot=Rhe(Ue,"id"),[qe,ht]=h.useState(null),_t=de?Ee:Da(Ee,_e),Vt=Dhe(_t,(i=qe==null?void 0:qe.rect)!=null?i:null,D),gt=h.useRef(null),bt=h.useCallback((Ve,tt)=>{let{sensor:nt,options:$t}=tt;if(A.current==null)return;const pt=E.get(A.current);if(!pt)return;const ut=Ve.nativeEvent,xt=new nt({active:A.current,activeNode:pt,event:ut,options:$t,context:H,onAbort(at){if(!E.get(at))return;const{onDragAbort:St}=U.current,Mt={id:at};St==null||St(Mt),x({type:"onDragAbort",event:Mt})},onPending(at,St,Mt,we){if(!E.get(at))return;const{onDragPending:Re}=U.current,De={id:at,constraint:St,initialCoordinates:Mt,offset:we};Re==null||Re(De),x({type:"onDragPending",event:De})},onStart(at){const St=A.current;if(St==null)return;const Mt=E.get(St);if(!Mt)return;const{onDragStart:we}=U.current,Re={activatorEvent:ut,active:{id:St,data:Mt.data,rect:S}};un.unstable_batchedUpdates(()=>{we==null||we(Re),C(Pi.Initializing),v({type:fn.DragStart,initialCoordinates:at,active:St}),x({type:"onDragStart",event:Re}),L(gt.current),F(ut)})},onMove(at){v({type:fn.DragMove,coordinates:at})},onEnd:yt(fn.DragEnd),onCancel:yt(fn.DragCancel)});gt.current=xt;function yt(at){return async function(){const{active:St,collisions:Mt,over:we,scrollAdjustedTranslate:Re}=H.current;let De=null;if(St&&Re){const{cancelDrop:Ke}=U.current;De={activatorEvent:ut,active:St,collisions:Mt,delta:Re,over:we},at===fn.DragEnd&&typeof Ke=="function"&&await Promise.resolve(Ke(De))&&(at=fn.DragCancel)}A.current=null,un.unstable_batchedUpdates(()=>{v({type:at}),C(Pi.Uninitialized),ht(null),L(null),F(null),gt.current=null;const Ke=at===fn.DragEnd?"onDragEnd":"onDragCancel";if(De){const Ye=U.current[Ke];Ye==null||Ye(De),x({type:Ke,event:De})}})}}},[E]),Ct=h.useCallback((Ve,tt)=>(nt,$t)=>{const pt=nt.nativeEvent,ut=E.get($t);if(A.current!==null||!ut||pt.dndKit||pt.defaultPrevented)return;const xt={active:ut};Ve(nt,tt.options,xt)===!0&&(pt.dndKit={capturedBy:tt.sensor},A.current=$t,bt(nt,tt))},[E,bt]),Ht=ape(l,Ct);ppe(l),Gr(()=>{D&&_===Pi.Initializing&&C(Pi.Initialized)},[D,_]),h.useEffect(()=>{const{onDragMove:Ve}=U.current,{active:tt,activatorEvent:nt,collisions:$t,over:pt}=H.current;if(!tt||!nt)return;const ut={active:tt,activatorEvent:nt,collisions:$t,delta:{x:ce.x,y:ce.y},over:pt};un.unstable_batchedUpdates(()=>{Ve==null||Ve(ut),x({type:"onDragMove",event:ut})})},[ce.x,ce.y]),h.useEffect(()=>{const{active:Ve,activatorEvent:tt,collisions:nt,droppableContainers:$t,scrollAdjustedTranslate:pt}=H.current;if(!Ve||A.current==null||!tt||!pt)return;const{onDragOver:ut}=U.current,xt=$t.get(Ot),yt=xt&&xt.rect.current?{id:xt.id,rect:xt.rect.current,data:xt.data,disabled:xt.disabled}:null,at={active:Ve,activatorEvent:tt,collisions:nt,delta:{x:pt.x,y:pt.y},over:yt};un.unstable_batchedUpdates(()=>{ht(yt),ut==null||ut(at),x({type:"onDragOver",event:at})})},[Ot]),Gr(()=>{H.current={activatorEvent:N,active:M,activeNode:Z,collisionRect:Oe,collisions:Ue,droppableRects:Y,draggableNodes:E,draggingNode:ee,draggingNodeRect:ne,droppableContainers:k,over:qe,scrollableAncestors:me,scrollAdjustedTranslate:ce},S.current={initial:ne,translated:Oe}},[M,Z,Ue,Oe,E,ee,ne,Y,k,qe,me,ce]),npe({...te,delta:T,draggingRect:Oe,pointerCoordinates:Se,scrollableAncestors:me,scrollableAncestorRects:ve});const Be=h.useMemo(()=>({active:M,activeNode:Z,activeNodeRect:D,activatorEvent:N,collisions:Ue,containerNodeRect:B,dragOverlay:G,draggableNodes:E,droppableContainers:k,droppableRects:Y,over:qe,measureDroppableContainers:J,scrollableAncestors:me,scrollableAncestorRects:ve,measuringConfiguration:W,measuringScheduled:X,windowRect:ae}),[M,Z,D,N,Ue,B,G,E,k,Y,qe,J,me,ve,W,X,ae]),Pe=h.useMemo(()=>({activatorEvent:N,activators:Ht,active:M,activeNodeRect:D,ariaDescribedById:{draggable:z},dispatch:v,draggableNodes:E,over:qe,measureDroppableContainers:J}),[N,Ht,M,D,v,z,E,qe,J]);return h.createElement(j3.Provider,{value:w},h.createElement(dp.Provider,{value:Pe},h.createElement(Y3.Provider,{value:Be},h.createElement(G3.Provider,{value:Vt},c)),h.createElement(Spe,{disabled:(a==null?void 0:a.restoreFocus)===!1})),h.createElement(Ehe,{...a,hiddenTextDescribedById:z}));function et(){const Ve=(j==null?void 0:j.autoScrollEnabled)===!1,tt=typeof s=="object"?s.enabled===!1:s===!1,nt=y&&!Ve&&!tt;return typeof s=="object"?{...s,enabled:nt}:{enabled:nt}}}),Mpe=h.createContext(null),U_="button",Rpe="Draggable";function Ape(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=Xl(Rpe),{activators:a,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=h.useContext(dp),{role:p=U_,roleDescription:g="draggable",tabIndex:m=0}=i??{},v=(c==null?void 0:c.id)===t,x=h.useContext(v?G3:Mpe),[w,_]=sf(),[C,y]=sf(),$=mpe(a,t),E=vl(n);Gr(()=>(d.set(t,{id:t,key:o,node:w,activatorNode:C,data:E}),()=>{const k=d.get(t);k&&k.key===o&&d.delete(t)}),[d,t]);const T=h.useMemo(()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":v&&p===U_?!0:void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[r,p,m,v,g,u.draggable]);return{active:c,activatorEvent:s,activeNodeRect:l,attributes:T,isDragging:v,listeners:r?void 0:$,node:w,over:f,setNodeRef:_,setActivatorNodeRef:y,transform:x}}function jpe(){return h.useContext(Y3)}const Npe="Droppable",Dpe={timeout:25};function Ipe(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=Xl(Npe),{active:a,dispatch:s,over:c,measureDroppableContainers:l}=h.useContext(dp),u=h.useRef({disabled:n}),d=h.useRef(!1),f=h.useRef(null),p=h.useRef(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...Dpe,...i},x=vl(m??r),w=h.useCallback(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(x.current)?x.current:[x.current]),p.current=null},v)},[v]),_=up({callback:w,disabled:g||!a}),C=h.useCallback((T,k)=>{_&&(k&&(_.unobserve(k),d.current=!1),T&&_.observe(T))},[_]),[y,$]=sf(C),E=vl(t);return h.useEffect(()=>{!_||!y.current||(_.disconnect(),d.current=!1,_.observe(y.current))},[y,_]),h.useEffect(()=>(s({type:fn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:y,rect:f,data:E}}),()=>s({type:fn.UnregisterDroppable,key:o,id:r})),[r]),h.useEffect(()=>{n!==u.current.disabled&&(s({type:fn.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,s]),{active:a,rect:f,isOver:(c==null?void 0:c.id)===r,node:y,over:c,setNodeRef:$}}function yy(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Ppe(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function Au(e){return e!==null&&e>=0}function Lpe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Fpe(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const ju={scaleX:1,scaleY:1},Bpe=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:a}=e;const s=(t=n[i])!=null?t:r;if(!s)return null;const c=zpe(n,a,i);if(a===i){const l=n[o];return l?{x:i<o?l.left+l.width-(s.left+s.width):l.left-s.left,y:0,...ju}:null}return a>i&&a<=o?{x:-s.width-c,y:0,...ju}:a<i&&a>=o?{x:s.width+c,y:0,...ju}:{x:0,y:0,...ju}};function zpe(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return!r||!i&&!o?0:n<t?i?r.left-(i.left+i.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(i.left+i.width)}const K3=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=yy(t,r,n),a=t[i],s=o[i];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},Z3="Sortable",X3=h.createContext({activeIndex:-1,containerId:Z3,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:K3,disabled:{draggable:!1,droppable:!1}});function Wpe(e){let{children:t,id:n,items:r,strategy:i=K3,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:c,over:l,measureDroppableContainers:u}=jpe(),d=Xl(Z3,n),f=s.rect!==null,p=h.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),g=a!=null,m=a?p.indexOf(a.id):-1,v=l?p.indexOf(l.id):-1,x=h.useRef(p),w=!Lpe(p,x.current),_=v!==-1&&m===-1||w,C=Fpe(o);Gr(()=>{w&&g&&u(p)},[w,p,g,u]),h.useEffect(()=>{x.current=p},[p]);const y=h.useMemo(()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:_,items:p,overIndex:v,useDragOverlay:f,sortedRects:Ppe(p,c),strategy:i}),[m,d,C.draggable,C.droppable,_,p,v,c,f,i]);return h.createElement(X3.Provider,{value:y},t)}const Upe=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return yy(n,r,i).indexOf(t)},Vpe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==o&&i===a?!1:n?!0:a!==i&&t===c},Hpe={duration:200,easing:"ease"},Q3="transform",qpe=bl.Transition.toString({property:Q3,duration:0,easing:"linear"}),Ype={roleDescription:"sortable"};function Gpe(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,a]=h.useState(null),s=h.useRef(n);return Gr(()=>{if(!t&&n!==s.current&&r.current){const c=i.current;if(c){const l=ks(r.current,{ignoreTransform:!0}),u={x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height};(u.x||u.y)&&a(u)}}n!==s.current&&(s.current=n)},[t,n,r,i]),h.useEffect(()=>{o&&a(null)},[o]),o}function Kpe(e){let{animateLayoutChanges:t=Vpe,attributes:n,disabled:r,data:i,getNewIndex:o=Upe,id:a,strategy:s,resizeObserverConfig:c,transition:l=Hpe}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:g,sortedRects:m,overIndex:v,useDragOverlay:x,strategy:w}=h.useContext(X3),_=Zpe(r,p),C=u.indexOf(a),y=h.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),$=h.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:E,node:T,isOver:k,setNodeRef:O}=Ipe({id:a,data:y,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...c}}),{active:S,activatorEvent:M,activeNodeRect:A,attributes:j,setNodeRef:L,listeners:N,isDragging:F,over:U,setActivatorNodeRef:z,transform:I}=Ape({id:a,data:y,attributes:{...Ype,...n},disabled:_.draggable}),W=hhe(O,L),Y=!!S,J=Y&&!g&&Au(f)&&Au(v),X=!x&&F,Z=X&&J?I:null,Q=J?Z??(s??w)({rects:m,activeNodeRect:A,activeIndex:f,overIndex:v,index:C}):null,te=Au(f)&&Au(v)?o({id:a,items:u,activeIndex:f,overIndex:v}):C,P=S==null?void 0:S.id,D=h.useRef({activeId:P,items:u,newIndex:te,containerId:d}),B=u!==D.current.items,H=t({active:S,containerId:d,isDragging:F,isSorting:Y,id:a,index:C,items:u,newIndex:D.current.newIndex,previousItems:D.current.items,previousContainerId:D.current.containerId,transition:l,wasDragging:D.current.activeId!=null}),R=Gpe({disabled:!H,index:C,node:T,rect:E});return h.useEffect(()=>{Y&&D.current.newIndex!==te&&(D.current.newIndex=te),d!==D.current.containerId&&(D.current.containerId=d),u!==D.current.items&&(D.current.items=u)},[Y,te,d,u]),h.useEffect(()=>{if(P===D.current.activeId)return;if(P!=null&&D.current.activeId==null){D.current.activeId=P;return}const ee=setTimeout(()=>{D.current.activeId=P},50);return()=>clearTimeout(ee)},[P]),{active:S,activeIndex:f,attributes:j,data:y,rect:E,index:C,newIndex:te,items:u,isOver:k,isSorting:Y,isDragging:F,listeners:N,node:T,overIndex:v,over:U,setNodeRef:W,setActivatorNodeRef:z,setDroppableNodeRef:O,setDraggableNodeRef:L,transform:R??Q,transition:G()};function G(){if(R||B&&D.current.newIndex===C)return qpe;if(!(X&&!py(M)||!l)&&(Y||H))return bl.Transition.toString({...l,property:Q3})}}function Zpe(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Rt.Down,Rt.Right,Rt.Up,Rt.Left;const Xpe="_table-scroll-container_1l7nn_1",Qpe="_full-screen_1l7nn_8",Jpe="_table_1l7nn_1",eme="_thead_1l7nn_24",tme="_tbody_1l7nn_25",nme="_th_1l7nn_24",rme="_pinned_1l7nn_38",ime="_sorted_1l7nn_41",ome="_resizer_1l7nn_44",ame="_resizer-bar_1l7nn_58",sme="_reorder-handle_1l7nn_63",cme="_dragging_1l7nn_68",lme="_row-selection-info_1l7nn_72",ume="_tr_1l7nn_76",dme="_td_1l7nn_84",fme="_left_1l7nn_101",hme="_center_1l7nn_105",pme="_right_1l7nn_109",mme="_first-right_1l7nn_118",gme="_grouped_1l7nn_126",vme="_expanded_1l7nn_130",bme="_selected-cell_1l7nn_134",yme="_sm_1l7nn_138",xme="_lg_1l7nn_143",wme="_clickable_1l7nn_148",_me="_cell-selected-row_1l7nn_151",Cme="_cell-selection-disabled_1l7nn_159",$me="_own-click_1l7nn_178",Sme="_expander-button_1l7nn_184",Eme="_empty-table-alert_1l7nn_189",Tme="_remove-filters-button-wrapper_1l7nn_197",kme="_remove-filters-button_1l7nn_197",Ome="_bottom-bar_1l7nn_227",Mme="_left-items_1l7nn_243",Rme="_pagination_1l7nn_249",Ame="_page-info-text_1l7nn_255",jme="_right-items_1l7nn_261",Nme="_sizing-toggle_1l7nn_267",Dme="_sizing-menu_1l7nn_272",Ime="_sizing-menu-item_1l7nn_276",Xe={tableScrollContainer:Xpe,fullScreen:Qpe,table:Jpe,thead:eme,tbody:tme,th:nme,pinned:rme,sorted:ime,resizer:ome,resizerBar:ame,reorderHandle:sme,dragging:cme,rowSelectionInfo:lme,tr:ume,td:dme,left:fme,center:hme,right:pme,firstRight:mme,grouped:gme,expanded:vme,selectedCell:bme,sm:yme,lg:xme,clickable:wme,cellSelectedRow:_me,cellSelectionDisabled:Cme,ownClick:$me,expanderButton:Sme,emptyTableAlert:Eme,removeFiltersButtonWrapper:Tme,removeFiltersButton:kme,bottomBar:Ome,leftItems:Mme,pagination:Rme,pageInfoText:Ame,rightItems:jme,sizingToggle:Nme,sizingMenu:Dme,sizingMenuItem:Ime},Pme="_column-menu_1r3rf_1",Lme="_column-menu-item_1r3rf_5",Nu={columnMenu:Pme,columnMenuItem:Lme},Fme=({header:e,table:t,className:n,IconComponent:r,texts:i,columnMenuPos:o,onColumnMenu:a,dragEnabled:s,style:c})=>{var T,k;const{attributes:l,listeners:u,setNodeRef:d,transform:f,isDragging:p}=Kpe({id:e.id,disabled:!s}),g={...c??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...s?{transform:bl.Translate.toString(f)}:{}},m=O=>O.column.getCanSort()?"button":void 0,v=O=>{const S=O.column.getIsSorted(),M=O.column.getIsGrouped();return xe("th",Xe.th,{sorted:S,[Xe.sorted]:S},{grouped:M,[Xe.grouped]:M})},x=O=>{const S=O.column.getCanSort();return xe("d-flex flex-row align-items-center justify-content-between",{"cursor-pointer":S})},w=O=>{O.preventDefault(),a({id:e.id,x:O.clientX,y:O.clientY})},_=()=>a(null),C=(o==null?void 0:o.id)===e.id,y=e.column.getIsPinned(),$=e.column.getIsGrouped(),E=(k=(T=e.column.columnDef)==null?void 0:T.meta)==null?void 0:k.alwaysPinned;return b.jsxs("div",{className:xe(n,v(e.getContext())),ref:d,style:g,onContextMenu:w,children:[b.jsx(Tn,{autoClose:!0,show:C,onToggle:O=>!O&&_(),children:un.createPortal(b.jsxs(Tn.Menu,{show:!0,className:xe("shadow-lg column-menu",Nu.columnMenu),style:{position:"fixed",top:C?o.y??0:0,left:C?o.x??0:0,zIndex:9999,display:C?"block":"none"},onClick:_,children:[y!=="right"&&e.column.getCanPin()&&!E?b.jsx(Tn.Item,{className:xe(Nu.columnMenuItem,{"text-danger":y}),onClick:()=>e.column.pin(y==="left"?!1:"left"),children:y==="left"?i.columnUnpin:i.columnPinLeft}):null,y!=="left"&&e.column.getCanPin()&&!E?b.jsx(Tn.Item,{className:xe(Nu.columnMenuItem,{"text-danger":y}),onClick:()=>e.column.pin(y==="right"?!1:"right"),children:y==="right"?i.columnUnpin:i.columnPinRight}):null,e.column.getCanGroup()?b.jsx(Tn.Item,{className:xe(Nu.columnMenuItem,{"text-danger":$}),onClick:e.column.getToggleGroupingHandler(),children:$?i.columnUngroup:i.columnGroup}):null]}),document.body)}),e.isPlaceholder?null:b.jsxs("div",{children:[b.jsxs("div",{className:x(e.getContext()),role:m(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[b.jsxs("div",{className:"d-flex flex-row align-items-center gap-1",children:[s?b.jsx("div",{...u,...l,className:xe("reorder-handle",Xe.reorderHandle,{dragging:p,[Xe.dragging]:p}),children:b.jsx(r,{icon:"drag-handle"})}):null,M3(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?b.jsx(r,{icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?b.jsx(che,{column:e.column,IconComponent:r,texts:i}):e.column.id==="select-col"?b.jsx("div",{className:xe("row-selection-info",Xe.rowSelectionInfo),children:`[${Object.values(t.getState().rowSelection).filter(Boolean).length}]`}):null]}),e.column.getCanResize()?b.jsx("div",{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:xe("resizer",Xe.resizer),style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${(t.options.columnResizeDirection==="rtl"?-1:1)*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""},children:b.jsx("div",{className:xe("resizer-bar",Xe.resizerBar)})}):null]})},Bme="_icon-button_1nuxt_1",zme="_sm_1nuxt_34",Wme="_lg_1nuxt_47",Du={"icon-button":"_icon-button_1nuxt_1",iconButton:Bme,sm:zme,lg:Wme},ai=({onClick:e,color:t="primary",disabled:n,children:r,size:i,className:o,...a})=>b.jsx("button",{"aria-disabled":n,className:xe(o,"icon-button",Du.iconButton,Du[t],{"text-primary":!n&&t==="primary","text-secondary":n||t==="secondary","text-danger":!n&&t==="danger","text-success":!n&&t==="success"},{[Du.sm]:i==="sm",[Du.lg]:i==="lg"}),disabled:n,type:"button",onClick:e,...a,children:r}),Ume=e=>{var n,r,i,o,a;const t=(n=e==null?void 0:e.columnDef)==null?void 0:n.header;if(!t)return e==null?void 0:e.id;if(typeof t=="string")return t;if(typeof t=="function"){const s=t({column:e});return typeof s=="string"?s:h.isValidElement(s)&&typeof((r=s.props)==null?void 0:r.children)=="string"?(i=s.props)==null?void 0:i.children:e==null?void 0:e.id}return h.isValidElement(t)&&typeof((o=t==null?void 0:t.props)==null?void 0:o.children)=="string"?(a=t==null?void 0:t.props)==null?void 0:a.children:e==null?void 0:e.id},V_=({onClick:e,variant:t="primary",disabled:n,children:r,size:i,...o})=>b.jsx(ty,{disabled:n,size:i,variant:t,onClick:e,...o,children:r});function bv(e,t){return bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},bv(e,t)}function Vme(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bv(e,t)}function Hme(e){var t=Vl(e);return t&&t.defaultView||window}function qme(e,t){return Hme(e).getComputedStyle(e,t)}var Yme=/([A-Z])/g;function Gme(e){return e.replace(Yme,"-$1").toLowerCase()}var Kme=/^ms-/;function Iu(e){return Gme(e).replace(Kme,"-ms-")}var Zme=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Xme(e){return!!(e&&Zme.test(e))}function pi(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Iu(t))||qme(e).getPropertyValue(Iu(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Iu(i)):Xme(i)?r+=i+"("+o+") ":n+=Iu(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const H_={disabled:!1};var Qme=process.env.NODE_ENV!=="production"?Qe.oneOfType([Qe.number,Qe.shape({enter:Qe.number,exit:Qe.number,appear:Qe.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&Qe.oneOfType([Qe.string,Qe.shape({enter:Qe.string,exit:Qe.string,active:Qe.string}),Qe.shape({enter:Qe.string,enterDone:Qe.string,enterActive:Qe.string,exit:Qe.string,exitDone:Qe.string,exitActive:Qe.string})]);const J3=h.createContext(null);var Jme=function(e){return e.scrollTop},uc="unmounted",Li="exited",li="entering",Ui="entered",df="exiting",Ei=function(e){Vme(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?s?(c=Li,o.appearStatus=li):c=Ui:r.unmountOnExit||r.mountOnEnter?c=uc:c=Li,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,i){var o=r.in;return o&&i.status===uc?{status:Li}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var o=this.state.status;this.props.in?o!==li&&o!==Ui&&(i=li):(o===li||o===Ui)&&(i=df)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,o,a;return i=o=a=r,r!=null&&typeof r!="number"&&(i=r.exit,o=r.enter,a=r.appear!==void 0?r.appear:o),{exit:i,enter:o,appear:a}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===li){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this);o&&Jme(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Li&&this.setState({status:uc})},n.performEnter=function(r){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:r,s=this.props.nodeRef?[a]:[un.findDOMNode(this),a],c=s[0],l=s[1],u=this.getTimeouts(),d=a?u.appear:u.enter;if(!r&&!o||H_.disabled){this.safeSetState({status:Ui},function(){i.props.onEntered(c)});return}this.props.onEnter(c,l),this.safeSetState({status:li},function(){i.props.onEntering(c,l),i.onTransitionEnd(d,function(){i.safeSetState({status:Ui},function(){i.props.onEntered(c,l)})})})},n.performExit=function(){var r=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:un.findDOMNode(this);if(!i||H_.disabled){this.safeSetState({status:Li},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:df},function(){r.props.onExiting(a),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:Li},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,i.nextCallback=null,r(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:un.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=s[0],l=s[1];this.props.addEndListener(c,l)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===uc)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=KO(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(J3.Provider,{value:null},typeof o=="function"?o(r,a):h.cloneElement(h.Children.only(o),a))},t}(h.Component);Ei.contextType=J3;Ei.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Qe.shape({current:typeof Element>"u"?Qe.any:function(e,t,n,r,i,o){var a=e[t];return Qe.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:Qe.oneOfType([Qe.func.isRequired,Qe.element.isRequired]).isRequired,in:Qe.bool,mountOnEnter:Qe.bool,unmountOnExit:Qe.bool,appear:Qe.bool,enter:Qe.bool,exit:Qe.bool,timeout:function(e){var t=Qme;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:Qe.func,onEnter:Qe.func,onEntering:Qe.func,onEntered:Qe.func,onExit:Qe.func,onExiting:Qe.func,onExited:Qe.func}:{};function ya(){}Ei.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ya,onEntering:ya,onEntered:ya,onExit:ya,onExiting:ya,onExited:ya};Ei.UNMOUNTED=uc;Ei.EXITED=Li;Ei.ENTERING=li;Ei.ENTERED=Ui;Ei.EXITING=df;function ege(e){return e.code==="Escape"||e.keyCode===27}function tge(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Ql(e){if(!e||typeof e=="function")return null;const{major:t}=tge();return t>=19?e.props.ref:e.ref}function nge(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function rge(e){var t=pi(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function ige(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||nge(e,"transitionend",!0)},t+n),o=qi(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function eM(e,t,n,r){n==null&&(n=rge(e)||0);var i=ige(e,n,r),o=qi(e,"transitionend",t);return function(){i(),o()}}function q_(e,t){const n=pi(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function tM(e,t){const n=q_(e,"transitionDuration"),r=q_(e,"transitionDelay"),i=eM(e,o=>{o.target===e&&(i(),t(o))},n+r)}function rc(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...r){t.apply(this,r),n.apply(this,r)}},null)}function nM(e){e.offsetHeight}function oge(e){return e&&"setState"in e?un.findDOMNode(e):e??null}const xy=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:c,...l},u)=>{const d=h.useRef(null),f=Hl(d,c),p=$=>{f(oge($))},g=$=>E=>{$&&d.current&&$(d.current,E)},m=h.useCallback(g(e),[e]),v=h.useCallback(g(t),[t]),x=h.useCallback(g(n),[n]),w=h.useCallback(g(r),[r]),_=h.useCallback(g(i),[i]),C=h.useCallback(g(o),[o]),y=h.useCallback(g(a),[a]);return b.jsx(Ei,{ref:u,...l,onEnter:m,onEntered:x,onEntering:v,onExit:w,onExited:C,onExiting:_,addEndListener:y,nodeRef:d,children:typeof s=="function"?($,E)=>s($,{...E,ref:p}):h.cloneElement(s,{ref:p})})});xy.displayName="TransitionWrapper";const age={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function sge(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=age[e];return r+parseInt(pi(t,i[0]),10)+parseInt(pi(t,i[1]),10)}const cge={[Li]:"collapse",[df]:"collapsing",[li]:"collapsing",[Ui]:"collapse show"},rM=h.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:o,children:a,dimension:s="height",in:c=!1,timeout:l=300,mountOnEnter:u=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:p=sge,...g},m)=>{const v=typeof s=="function"?s():s,x=h.useMemo(()=>rc($=>{$.style[v]="0"},e),[v,e]),w=h.useMemo(()=>rc($=>{const E=`scroll${v[0].toUpperCase()}${v.slice(1)}`;$.style[v]=`${$[E]}px`},t),[v,t]),_=h.useMemo(()=>rc($=>{$.style[v]=null},n),[v,n]),C=h.useMemo(()=>rc($=>{$.style[v]=`${p(v,$)}px`,nM($)},r),[r,p,v]),y=h.useMemo(()=>rc($=>{$.style[v]=null},i),[v,i]);return b.jsx(xy,{ref:m,addEndListener:tM,...g,"aria-expanded":g.role?c:null,onEnter:x,onEntering:w,onEntered:_,onExit:C,onExiting:y,childRef:Ql(a),in:c,timeout:l,mountOnEnter:u,unmountOnExit:d,appear:f,children:($,E)=>h.cloneElement(a,{...E,className:xe(o,a.props.className,cge[$],v==="width"&&"collapse-horizontal")})})});rM.displayName="Collapse";function iM(e,t){return Array.isArray(e)?e.includes(t):e===t}const Jl=ie.createContext({});Jl.displayName="AccordionContext";const wy=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,children:r,eventKey:i,...o},a)=>{const{activeEventKey:s}=h.useContext(Jl);return t=kt(t,"accordion-collapse"),b.jsx(rM,{ref:a,in:iM(s,i),...o,className:xe(n,t),children:b.jsx(e,{children:ie.Children.only(r)})})});wy.displayName="AccordionCollapse";const fp=ie.createContext({eventKey:""});fp.displayName="AccordionItemContext";const oM=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:o,onExit:a,onExiting:s,onExited:c,...l},u)=>{t=kt(t,"accordion-body");const{eventKey:d}=h.useContext(fp);return b.jsx(wy,{eventKey:d,onEnter:r,onEntering:i,onEntered:o,onExit:a,onExiting:s,onExited:c,children:b.jsx(e,{ref:u,...l,className:xe(n,t)})})});oM.displayName="AccordionBody";function lge(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:i}=h.useContext(Jl);return o=>{let a=e===n?null:e;i&&(Array.isArray(n)?n.includes(e)?a=n.filter(s=>s!==e):a=[...n,e]:a=[e]),r==null||r(a,o),t==null||t(o)}}const _y=ie.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:r,...i},o)=>{t=kt(t,"accordion-button");const{eventKey:a}=h.useContext(fp),s=lge(a,r),{activeEventKey:c}=h.useContext(Jl);return e==="button"&&(i.type="button"),b.jsx(e,{ref:o,onClick:s,...i,"aria-expanded":Array.isArray(c)?c.includes(a):a===c,className:xe(n,t,!iM(c,a)&&"collapsed")})});_y.displayName="AccordionButton";const aM=ie.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:r,children:i,onClick:o,...a},s)=>(n=kt(n,"accordion-header"),b.jsx(e,{ref:s,...a,className:xe(r,n),children:b.jsx(_y,{onClick:o,"aria-controls":t,children:i})})));aM.displayName="AccordionHeader";const sM=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},o)=>{t=kt(t,"accordion-item");const a=h.useMemo(()=>({eventKey:r}),[r]);return b.jsx(fp.Provider,{value:a,children:b.jsx(e,{ref:o,...i,className:xe(n,t)})})});sM.displayName="AccordionItem";const cM=ie.forwardRef((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:o,onSelect:a,flush:s,alwaysOpen:c,...l}=ZO(e,{activeKey:"onSelect"}),u=kt(i,"accordion"),d=h.useMemo(()=>({activeEventKey:r,onSelect:a,alwaysOpen:c}),[r,a,c]);return b.jsx(Jl.Provider,{value:d,children:b.jsx(n,{ref:t,...l,className:xe(o,u,s&&`${u}-flush`)})})});cM.displayName="Accordion";const mo=Object.assign(cM,{Button:_y,Collapse:wy,Item:sM,Header:aM,Body:oM}),uge=e=>ie.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:xe(t.className,e)})),dge=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",fge=typeof document<"u",Y_=fge||dge?h.useLayoutEffect:h.useEffect,hge={[li]:"show",[Ui]:"show"},Cy=ie.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=h.useCallback((c,l)=>{nM(c),r==null||r(c,l)},[r]);return b.jsx(xy,{ref:o,addEndListener:tM,...a,onEnter:s,childRef:Ql(t),children:(c,l)=>ie.cloneElement(t,{...l,className:xe("fade",e,t.props.className,hge[c],n[c])})})});Cy.displayName="Fade";const pge={"aria-label":Qe.string,onClick:Qe.func,variant:Qe.oneOf(["white"])},$y=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:xe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));$y.displayName="CloseButton";$y.propTypes=pge;function mge(e){const t=h.useRef(e);return t.current=e,t}function gge(e){const t=mge(e);h.useEffect(()=>()=>t.current(),[])}const G_=e=>!e||typeof e=="function"?e:t=>{e.current=t};function vge(e,t){const n=G_(e),r=G_(t);return i=>{n&&n(i),r&&r(i)}}function Sy(e,t){return h.useMemo(()=>vge(e,t),[e,t])}var Pu;function K_(e){if((!Pu&&Pu!==0||e)&&Ss){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Pu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Pu}function bge(){return h.useState(null)}function Am(e){e===void 0&&(e=Vl());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function yge(e){const t=h.useRef(e);return t.current=e,t}function xge(e){const t=yge(e);h.useEffect(()=>()=>t.current(),[])}function wge(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Z_=Jb("modal-open");class Ey{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return wge(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(pi(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(Z_,""),pi(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Z_),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const jm=(e,t)=>Ss?e==null?(t||Vl()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function _ge(e,t){const n=ap(),[r,i]=h.useState(()=>jm(e,n==null?void 0:n.document));if(!r){const o=jm(e);o&&i(o)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const o=jm(e);o!==r&&i(o)},[e,r]),r}function Cge({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=h.useRef(null),a=h.useRef(t),s=Nn(n);h.useEffect(()=>{t?a.current=!0:s(o.current)},[t,s]);const c=Sy(o,Ql(e)),l=h.cloneElement(e,{ref:c});return t?l:i||!a.current&&r?null:l}const $ge=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Sge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ege(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:c}=e,l=Sge(e,$ge);const u=h.useRef(null),d=Sy(u,Ql(c)),f=C=>y=>{C&&u.current&&C(u.current,y)},p=h.useCallback(f(t),[t]),g=h.useCallback(f(n),[n]),m=h.useCallback(f(r),[r]),v=h.useCallback(f(i),[i]),x=h.useCallback(f(o),[o]),w=h.useCallback(f(a),[a]),_=h.useCallback(f(s),[s]);return Object.assign({},l,{nodeRef:u},t&&{onEnter:p},n&&{onEntering:g},r&&{onEntered:m},i&&{onExit:v},o&&{onExiting:x},a&&{onExited:w},s&&{addEndListener:_},{children:typeof c=="function"?(C,y)=>c(C,Object.assign({},y,{ref:d})):h.cloneElement(c,{ref:d})})}const Tge=["component"];function kge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Oge=ie.forwardRef((e,t)=>{let{component:n}=e,r=kge(e,Tge);const i=Ege(r);return b.jsx(n,Object.assign({ref:t},i))});function Mge({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),i=Nn(t);return Y_(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),Y_(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function Rge({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=h.useState(!t);t&&o&&a(!1);const s=Mge({in:!!t,onTransition:l=>{const u=()=>{l.isStale()||(l.in?r==null||r(l.element,l.initial):(a(!0),n==null||n(l.element)))};Promise.resolve(i(l)).then(u,d=>{throw l.in||a(!0),d})}}),c=Sy(s,Ql(e));return o&&!t?null:h.cloneElement(e,{ref:c})}function X_(e,t,n){return e?b.jsx(Oge,Object.assign({},n,{component:e})):t?b.jsx(Rge,Object.assign({},n,{transition:t})):b.jsx(Cge,Object.assign({},n))}const Age=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function jge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Nm;function Nge(e){return Nm||(Nm=new Ey({ownerDocument:e==null?void 0:e.document})),Nm}function Dge(e){const t=ap(),n=e||Nge(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:h.useCallback(i=>{r.current.backdrop=i},[])})}const lM=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:s=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:p,runBackdropTransition:g,autoFocus:m=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:w,renderDialog:_,renderBackdrop:C=ne=>b.jsx("div",Object.assign({},ne)),manager:y,container:$,onShow:E,onHide:T=()=>{},onExit:k,onExited:O,onExiting:S,onEnter:M,onEntering:A,onEntered:j}=e,L=jge(e,Age);const N=ap(),F=_ge($),U=Dge(y),z=XO(),I=QO(n),[W,Y]=h.useState(!n),J=h.useRef(null);h.useImperativeHandle(t,()=>U,[U]),Ss&&!I&&n&&(J.current=Am(N==null?void 0:N.document)),n&&W&&Y(!1);const X=Nn(()=>{if(U.add(),B.current=qi(document,"keydown",P),D.current=qi(document,"focus",()=>setTimeout(Q),!0),E&&E(),m){var ne,de;const oe=Am((ne=(de=U.dialog)==null?void 0:de.ownerDocument)!=null?ne:N==null?void 0:N.document);U.dialog&&oe&&!rf(U.dialog,oe)&&(J.current=oe,U.dialog.focus())}}),Z=Nn(()=>{if(U.remove(),B.current==null||B.current(),D.current==null||D.current(),x){var ne;(ne=J.current)==null||ne.focus==null||ne.focus(w),J.current=null}});h.useEffect(()=>{!n||!F||X()},[n,F,X]),h.useEffect(()=>{W&&Z()},[W,Z]),xge(()=>{Z()});const Q=Nn(()=>{if(!v||!z()||!U.isTopModal())return;const ne=Am(N==null?void 0:N.document);U.dialog&&ne&&!rf(U.dialog,ne)&&U.dialog.focus()}),te=Nn(ne=>{ne.target===ne.currentTarget&&(l==null||l(ne),s===!0&&T())}),P=Nn(ne=>{c&&ege(ne)&&U.isTopModal()&&(u==null||u(ne),ne.defaultPrevented||T())}),D=h.useRef(),B=h.useRef(),H=(...ne)=>{Y(!0),O==null||O(...ne)};if(!F)return null;const R=Object.assign({role:r,ref:U.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},L,{style:o,className:i,tabIndex:-1});let G=_?_(R):b.jsx("div",Object.assign({},R,{children:ie.cloneElement(a,{role:"document"})}));G=X_(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:k,onExiting:S,onExited:H,onEnter:M,onEntering:A,onEntered:j,children:G});let ee=null;return s&&(ee=C({ref:U.setBackdropRef,onClick:te}),ee=X_(p,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ee})),b.jsx(b.Fragment,{children:un.createPortal(b.jsxs(b.Fragment,{children:[ee,G]}),F)})});lM.displayName="Modal";const Ige=Object.assign(lM,{Manager:Ey});function Pge(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Lge(e,t){e.classList?e.classList.add(t):Pge(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Q_(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Fge(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Q_(e.className,t):e.setAttribute("class",Q_(e.className&&e.className.baseVal||"",t))}const xa={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Bge extends Ey{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,pi(n,{[t]:`${parseFloat(pi(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],pi(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Lge(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Ii(n,xa.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),Ii(n,xa.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),Ii(n,xa.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Fge(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Ii(n,xa.FIXED_CONTENT).forEach(o=>this.restore(r,o)),Ii(n,xa.STICKY_CONTENT).forEach(o=>this.restore(i,o)),Ii(n,xa.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Dm;function zge(e){return Dm||(Dm=new Bge(e)),Dm}const uM=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=kt(t,"modal-body"),b.jsx(n,{ref:i,className:xe(e,t),...r})));uM.displayName="ModalBody";const dM=ie.createContext({onHide(){}}),Ty=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:s,...c},l)=>{e=kt(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return b.jsx("div",{...c,ref:l,className:xe(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:b.jsx("div",{className:xe(`${e}-content`,n),children:a})})});Ty.displayName="ModalDialog";const fM=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=kt(t,"modal-footer"),b.jsx(n,{ref:i,className:xe(e,t),...r})));fM.displayName="ModalFooter";const hM=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=h.useContext(dM),c=nf(()=>{s==null||s.onHide(),r==null||r()});return b.jsxs("div",{ref:a,...o,children:[i,n&&b.jsx($y,{"aria-label":e,variant:t,onClick:c})]})});hM.displayName="AbstractModalHeader";const pM=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=kt(e,"modal-header"),b.jsx(hM,{ref:o,...i,className:xe(t,e),closeLabel:n,closeButton:r})));pM.displayName="ModalHeader";const Wge=uge("h4"),mM=ie.forwardRef(({className:e,bsPrefix:t,as:n=Wge,...r},i)=>(t=kt(t,"modal-title"),b.jsx(n,{ref:i,className:xe(e,t),...r})));mM.displayName="ModalTitle";function Uge(e){return b.jsx(Cy,{...e,timeout:null})}function Vge(e){return b.jsx(Cy,{...e,timeout:null})}const gM=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=Ty,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":l,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:g=!0,onEscapeKeyDown:m,onShow:v,onHide:x,container:w,autoFocus:_=!0,enforceFocus:C=!0,restoreFocus:y=!0,restoreFocusOptions:$,onEntered:E,onExit:T,onExiting:k,onEnter:O,onEntering:S,onExited:M,backdropClassName:A,manager:j,...L},N)=>{const[F,U]=h.useState({}),[z,I]=h.useState(!1),W=h.useRef(!1),Y=h.useRef(!1),J=h.useRef(null),[X,Z]=bge(),Q=Hl(N,Z),te=nf(x),P=IO();e=kt(e,"modal");const D=h.useMemo(()=>({onHide:te}),[te]);function B(){return j||zge({isRTL:P})}function H(ce){if(!Ss)return;const Oe=B().getScrollbarWidth()>0,Ue=ce.scrollHeight>Vl(ce).documentElement.clientHeight;U({paddingRight:Oe&&!Ue?K_():void 0,paddingLeft:!Oe&&Ue?K_():void 0})}const R=nf(()=>{X&&H(X.dialog)});gge(()=>{lv(window,"resize",R),J.current==null||J.current()});const G=()=>{W.current=!0},ee=ce=>{W.current&&X&&ce.target===X.dialog&&(Y.current=!0),W.current=!1},ne=()=>{I(!0),J.current=eM(X.dialog,()=>{I(!1)})},de=ce=>{ce.target===ce.currentTarget&&ne()},oe=ce=>{if(p==="static"){de(ce);return}if(Y.current||ce.target!==ce.currentTarget){Y.current=!1;return}x==null||x()},ae=ce=>{g?m==null||m(ce):(ce.preventDefault(),p==="static"&&ne())},me=(ce,Oe)=>{ce&&H(ce),O==null||O(ce,Oe)},ve=ce=>{J.current==null||J.current(),T==null||T(ce)},Ee=(ce,Oe)=>{S==null||S(ce,Oe),Qb(window,"resize",R)},Se=ce=>{ce&&(ce.style.display=""),M==null||M(ce),lv(window,"resize",R)},Me=h.useCallback(ce=>b.jsx("div",{...ce,className:xe(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),ge={...n,...F};ge.display="block";const _e=ce=>b.jsx("div",{role:"dialog",...ce,style:ge,className:xe(t,e,z&&`${e}-static`,!f&&"show"),onClick:p?oe:void 0,onMouseUp:ee,"data-bs-theme":s,"aria-label":u,"aria-labelledby":c,"aria-describedby":l,children:b.jsx(a,{...L,onMouseDown:G,className:r,contentClassName:i,children:o})});return b.jsx(dM.Provider,{value:D,children:b.jsx(Ige,{show:d,ref:Q,backdrop:p,container:w,keyboard:!0,autoFocus:_,enforceFocus:C,restoreFocus:y,restoreFocusOptions:$,onEscapeKeyDown:ae,onShow:v,onHide:x,onEnter:me,onEntering:Ee,onEntered:E,onExit:ve,onExiting:k,onExited:Se,manager:B(),transition:f?Uge:void 0,backdropTransition:f?Vge:void 0,renderBackdrop:Me,renderDialog:_e})})});gM.displayName="Modal";const ic=Object.assign(gM,{Body:uM,Header:pM,Title:mM,Footer:fM,Dialog:Ty,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Hge="_modal_1sw52_1",qge="_settings-item_1sw52_1",Yge="_label_1sw52_8",Gge="_content_1sw52_11",Kge="_column-item_1sw52_14",Zge="_is-hidden_1sw52_20",wa={modal:Hge,settingsItem:qge,label:Yge,content:Gge,columnItem:Kge,isHidden:Zge},Xge=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,IconComponent:o,resetToDefault:a})=>{const[s,c]=h.useState(r.value?r.value.toString():"");return h.useEffect(()=>{e&&c(r.value?r.value.toString():"")},[e,r.value]),b.jsxs(ic,{className:xe("settings-modal",wa.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[b.jsx(ic.Header,{closeButton:!0,children:b.jsx(ic.Title,{children:n==null?void 0:n.settingsModal.title})}),b.jsx(ic.Body,{children:b.jsxs(mo,{children:[b.jsxs(mo.Item,{eventKey:"general-settings",children:[b.jsx(mo.Header,{children:n==null?void 0:n.settingsModal.generalSettings}),b.jsx(mo.Body,{className:"d-flex flex-column gap-1",children:r.enabled?b.jsxs("div",{className:wa.settingsItem,children:[b.jsx("div",{className:xe("text-nowrap",wa.label),children:n==null?void 0:n.settingsModal.pageSize}),b.jsxs("div",{className:xe("text-nowrap",wa.content),children:[b.jsx(ef.Control,{"data-testId":"page-size-input",list:"pageSizes",max:1e3,min:0,size:"sm",type:"number",value:s,onChange:l=>{c(l.target.value),l.target.value&&r.onChange(Number(l.target.value))}}),b.jsxs("datalist",{id:"pageSizes",children:[b.jsx("option",{value:"10"}),b.jsx("option",{value:"20"}),b.jsx("option",{value:"30"}),b.jsx("option",{value:"50"}),b.jsx("option",{value:"100"})]})]})]}):null})]}),b.jsxs(mo.Item,{eventKey:"column-settings",children:[b.jsx(mo.Header,{children:n==null?void 0:n.settingsModal.columnSettings}),b.jsx(mo.Body,{className:"d-flex flex-column gap-1",children:i.allColumns.filter(l=>{var u;return l.getCanHide()&&((u=l.columnDef.meta)==null?void 0:u.hidden)!==!0}).map(l=>b.jsxs("div",{className:xe("column-item rounded border",wa.columnItem,{[wa.isHidden]:!l.getIsVisible()}),children:[Ume(l),b.jsx(ai,{color:"secondary",onClick:()=>l.toggleVisibility(),children:b.jsx(o,{icon:l.getIsVisible()?"visibility":"visibility-off"})})]},l.id))})]})]})}),b.jsxs(ic.Footer,{className:"d-flex justify-content-between align-items-center",children:[b.jsx(V_,{variant:"outline-secondary",onClick:()=>{a(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),b.jsx(V_,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},Qge=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],J_=new Map(Qge),Jge=(e,t,n,r,i,o)=>{const a=h.useState([0,0]),[s,c]=(e==null?void 0:e.cellSelectionState)??a,[l,u]=h.useState(),[d,f]=h.useState(),p=h.useCallback(v=>{e!=null&&e.disabled||c(v)},[e==null?void 0:e.disabled,c]),g=({fieldName:v,dataIndex:x})=>{u(v),f(x)},m=h.useCallback(v=>{if(e!=null&&e.disabled)return;const x=v.target;if(!(["INPUT","TEXTAREA"].includes(x.tagName)||x.isContentEditable))switch(v.code){case"Space":case"Enter":{v.preventDefault();const w=t.get(s[0]);if(e!=null&&e.onlyRowSelection){n[s[1]].toggleSelected();break}if(!w)return;w==="selection"&&n[s[1]].toggleSelected();break}case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":{v.preventDefault(),p(w=>{const _=[Math.min(Math.max(w[0]+J_.get(v.code)[0],0),t.size-1),Math.min(Math.max(w[1]+J_.get(v.code)[1],0),n.length-1)];if(r!==void 0){const C=Math.floor(_[1]/r);i(C)}return _});break}case"Tab":if(v.preventDefault(),v.shiftKey)p(w=>w[0]<=0?w[1]<=0?w:[t.size-1,w[1]-1]:[w[0]-1,w[1]]);else{p(w=>w[0]>=t.size-1?w[1]>=n.length-1?w:[0,w[1]+1]:[w[0]+1,w[1]]);break}}},[e==null?void 0:e.disabled,e==null?void 0:e.onlyRowSelection,t,s,n,p,r,i]);return h.useEffect(()=>{if(l===void 0)return;u(void 0);const v=[...t.entries()].findIndex(x=>x[1]===l);c(x=>[v,x[1]])},[l,c,t]),h.useEffect(()=>{if(d===void 0)return;f(void 0);const v=n.findIndex(x=>x.index===d);if(c(x=>[x[0],v]),r!==void 0){const x=Math.floor(v/r);i(x)}},[i,r,d,n,c]),h.useEffect(()=>{if((e==null?void 0:e.onCellSelect)===void 0)return;const v=new AbortController;return window.addEventListener("keydown",m,{signal:v.signal}),()=>v.abort()},[m,e==null?void 0:e.onCellSelect]),h.useEffect(()=>{var v;(v=o.current)==null||v.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[o,s]),h.useEffect(()=>{var x;if((e==null?void 0:e.onCellSelect)===void 0)return;if(((x=n[s[1]])==null?void 0:x.index)===void 0){n.length>0&&p(w=>[w[0],0]);return}const v=t.get(s[0]);if(v===void 0){console.error(`Tried to access non-existing key ${s[0]} from following map: `,t);return}e==null||e.onCellSelect(n[s[1]].index,v)},[e,p,n,s,t]),{selectedCoords:s,changeSelectedCoords:p,setSelectedCellByFNDI:g}},eve=e=>e.type==="number"?"sum":"uniqueCount",tve=(e,t,n)=>{var i;const r=t.column.columnDef;return(i=r.meta)!=null&&i.customCellRender?r.meta.customCellRender(t):r.type==="boolean"?n.boolean(t):r.type==="date"?n.date(t):r.type==="datetime"?n.datetime(t):r.type==="number"?n.number(t):M3(e,t)},nve=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(eve(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},rve=e=>{let{transform:t}=e;return{...t,y:0}},ive=h.forwardRef(({isLink:e,to:t,children:n,LinkComponent:r,onClick:i,onCellInteraction:o,...a},s)=>e&&t?b.jsx(r,{ref:s,to:t,onAuxClick:c=>{c.button===1&&(o==null||o())},onClick:()=>{i==null||i(),o==null||o()},onContextMenu:()=>{o==null||o()},...a,children:n}):b.jsx("div",{ref:s,onAuxClick:i?c=>{c.button===1&&(o==null||o())}:void 0,onClick:i?()=>{i==null||i(),o==null||o()}:void 0,onContextMenu:i?()=>{o==null||o()}:void 0,...a,children:n})),ove=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:o,texts:a,formatters:s,LinkComponent:c,onRowClick:l,rowNavigation:u,onCellInteraction:d},f)=>{var m,v,x;const p=t.column.columnDef,g=h.useMemo(()=>{var w,_,C,y,$;if(!((w=p.meta)!=null&&w.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((_=p.meta)!=null&&_.onCellClick)return["onClickOwn",()=>{var E,T;return(T=(E=p.meta)==null?void 0:E.onCellClick)==null?void 0:T.call(E,e.original)}];if((C=p.meta)!=null&&C.cellNavigation){const E=($=(y=p.meta)==null?void 0:y.cellNavigation)==null?void 0:$.call(y,e.original);if(E)return["navigateOwn",E]}if(l)return["onClick",()=>l==null?void 0:l(e.original)];if(u){const E=u==null?void 0:u(e.original);if(E)return["navigate",E]}}},[p,e,l,u,t]);return b.jsxs(ive,{className:xe((w=>{var E,T,k,O,S;const _=((E=p==null?void 0:p.meta)==null?void 0:E.alignment)??"left",C=w.column.getIsSorted(),y=w.cell.getIsGrouped(),$=w.row.getIsExpanded();return xe("td",Xe.td,{[Xe.left]:_==="left",[Xe.center]:_==="center",[Xe.right]:_==="right"},{sorted:C,[Xe.sorted]:C},{grouped:y,[Xe.grouped]:y},{expanded:$,[Xe.expanded]:$},{clickable:!!g,[Xe.clickable]:!!g},{"own-click":(T=g==null?void 0:g[0])==null?void 0:T.endsWith("Own"),[Xe.ownClick]:(k=g==null?void 0:g[0])==null?void 0:k.endsWith("Own")},r,(S=(O=p.meta)==null?void 0:O.className)==null?void 0:S.call(O,e.original))})(t.getContext()),n),isLink:!!((m=g==null?void 0:g[0])!=null&&m.startsWith("navigate")),LinkComponent:c,ref:f,style:{flex:`${t.column.getSize()} 1 0`,minWidth:t.column.getSize(),...i??{}},to:(v=g==null?void 0:g[0])!=null&&v.startsWith("navigate")?g[1]:void 0,onCellInteraction:d?()=>d==null?void 0:d(e.original):void 0,onClick:(x=g==null?void 0:g[0])!=null&&x.startsWith("onClick")?g[1]:void 0,children:[t.getIsGrouped()&&e.getCanExpand()?b.jsx(ai,{className:xe("expander-button",Xe.expanderButton),size:"sm",onClick:e.getToggleExpandedHandler(),children:b.jsx(o,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?nve(t.column.columnDef,t.getContext(),a):t.getIsPlaceholder()?null:tve(t.column.columnDef.cell,t.getContext(),s)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},ave=h.forwardRef(ove),sve=({table:e,additionalOptions:t,IconComponent:n,texts:r,formatters:i,bottomBar:o,testId:a,LinkComponent:s,className:c,rowsClassName:l,onRowClick:u,rowNavigation:d,onCellInteraction:f,cellSelection:p,getRowProps:g},m)=>{var X,Z,Q,te,P,D,B,H,R;const v={boolean:G=>Aue(G,n),date:jue,datetime:Nue,number:Due,...i},[x,w]=h.useState(!1),_=h.useMemo(()=>!!e.options.getPaginationRowModel,[e]),C=The(km(U3,{}),km(V3,{}),km(vy,{})),y=h.useMemo(()=>e.getState().columnOrder,[e]),$=G=>{const{active:ee,over:ne}=G;ee&&ne&&ee.id!==ne.id&&e.setColumnOrder(de=>{const oe=de.indexOf(ee.id),ae=de.indexOf(ne.id);return oe===-1||ae===-1?de:yy(de,oe,ae)})},[E,T]=h.useState(null),k=G=>{T(G)},O=G=>{if(!G.getCanPin())return"";const ee=G.getIsPinned(),ne=ee==="right"&&G.getIsFirstColumn("right"),de=ee==="left"&&G.getIsLastColumn("left");return xe({pinned:ee,[Xe.pinned]:ee,"first-right":ne,[Xe.firstRight]:ne,"last-left":de,[Xe.lastLeft]:de})},S=G=>{if(!G.getCanPin())return{};const ee=G.getIsPinned();return{left:ee==="left"?`${G.getStart("left")}px`:void 0,right:ee==="right"?`${G.getAfter("right")}px`:void 0}},M=e.getState().sorting;h.useEffect(()=>{var G,ee;if(M.length>0){const ne=M[0];if((G=document.activeElement)!=null&&G.classList.contains("filter"))return;(ee=document.getElementById(`filter-${ne.id}`))==null||ee.focus()}},[M]);const A=e.getRowModel().rows,j=new Map(e.getVisibleLeafColumns().map((G,ee)=>[ee,G.id])),L=h.useRef(null),{selectedCoords:N,changeSelectedCoords:F,setSelectedCellByFNDI:U}=Jge(p,j,A,_?((X=e.getState().pagination)==null?void 0:X.pageSize)??0:void 0,e.setPageIndex,L);h.useImperativeHandle(m,()=>({setSelectedCell:U}));const z=G=>{var ee;return p!=null&&p.onlyRowSelection&&((ee=A[N[1]])==null?void 0:ee.index)===G.index?xe(Xe.cellSelectedRow,"cell-selected-row",{[Xe.cellSelectionDisabled]:p.disabled}):""},I=(G,ee)=>{var ne;return(p==null?void 0:p.onCellSelect)===void 0||N[0]!==G||((ne=A[N[1]])==null?void 0:ne.index)!==ee||p.onlyRowSelection?"":p.disabled?"bg-primary-subtle":xe("selected-cell",Xe.selectedCell)},W=t.fullScreen.canFullScreen?((Z=t.fullScreen)==null?void 0:Z.isFullScreen)??!1:!1,Y=(Q=t.sizing)!=null&&Q.canSize?((te=t.sizing)==null?void 0:te.size)??"md":"md",J=e.getState().columnFilters;return b.jsx(Ope,{collisionDetection:Ahe,modifiers:[rve],sensors:C,onDragEnd:$,children:b.jsxs("div",{className:xe("tanstack-bnf-table-container",Xe.tableScrollContainer,{"full-screen":W,[Xe.fullScreen]:W}),children:[J&&J.length>0?b.jsx("div",{className:xe("remove-filters-button-wrapper",Xe.removeFiltersButtonWrapper),children:b.jsxs("button",{className:xe(Xe.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[b.jsx("div",{className:"d-flex align-items-center justify-content-center",children:b.jsx(n,{icon:"remove-filters"})}),(r==null?void 0:r.removeFilters)??"Zrušit filtry"]})}):null,b.jsxs("div",{className:xe("tanstack-bnf-table",Xe.table,{sm:Y==="sm",lg:Y==="lg",[Xe.sm]:Y==="sm",[Xe.lg]:Y==="lg"},c),"data-testid":a,children:[b.jsx("div",{className:xe("thead",Xe.thead),children:e.getHeaderGroups().map(G=>b.jsx("div",{className:xe("tr",Xe.tr),children:b.jsx(Wpe,{items:y,strategy:Bpe,children:G.headers.map(ee=>{var ne,de;return b.jsx(Fme,{className:O(ee.column),columnMenuPos:E,dragEnabled:t.enableReordering&&((de=(ne=ee.column.columnDef)==null?void 0:ne.meta)==null?void 0:de.enableReordering)!==!1,header:ee,IconComponent:n,style:S(ee.column),table:e,texts:r,onColumnMenu:k},ee.id)})})},G.id))}),b.jsxs("div",{className:xe("tbody",Xe.tbody),children:[(((D=(P=e.options)==null?void 0:P.data)==null?void 0:D.length)??0)===0?b.jsx("div",{className:xe("alert alert-warning empty-table-alert",Xe.emptyTableAlert),children:r.emptyTable}):null,e.getRowModel().rows.map((G,ee)=>{var ne;return b.jsx("div",{className:xe("tr",Xe.tr,z(G),g?(ne=g(G.original))==null?void 0:ne.className:null),role:"data-row",...g?g(G.original):{},children:G.getVisibleCells().map((de,oe)=>{var ae;return b.jsx(ave,{cell:de,className:xe(O(de.column),I(oe,G.index)),formatters:v,IconComponent:n,LinkComponent:s,ref:(p==null?void 0:p.onCellSelect)!==void 0&&N[0]===oe&&((ae=A[N[1]])==null?void 0:ae.index)===G.index?L:null,row:G,rowClassName:xe(...(l==null?void 0:l.filter(me=>me.selector(G.original)).map(me=>me.className))??[]),rowNavigation:d,style:S(de.column),texts:r,onCellInteraction:(p==null?void 0:p.onCellSelect)===void 0?f:me=>{var ve,Ee;F([oe,((ve=e.getState().pagination)==null?void 0:ve.pageIndex)*((Ee=e.getState().pagination)==null?void 0:Ee.pageSize)+ee]),f==null||f(me)},onRowClick:u},de.id)})},G.id)})]}),b.jsx(Xge,{columns:{allColumns:e.getAllColumns()},handleClose:()=>w(!1),IconComponent:n,pageSize:{enabled:_,value:((B=e.getState().pagination)==null?void 0:B.pageSize)??0,onChange:G=>e.setPageSize(G)},resetToDefault:t.resetToInitialValues,show:x,texts:r})]}),o!=null&&o.hidden?null:b.jsxs("div",{className:xe("bottom-bar",Xe.bottomBar),children:[b.jsxs("div",{className:xe("left-items",Xe.leftItems),children:[_?b.jsxs("div",{className:xe("pagination",Xe.pagination),children:[b.jsx(ai,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:b.jsx(n,{icon:"page-first"})}),b.jsx(ai,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:b.jsx(n,{icon:"page-previous"})}),b.jsx("div",{className:xe("page-info-text",Xe.pageInfoText),children:r.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),b.jsx(ai,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:b.jsx(n,{icon:"page-next"})}),b.jsx(ai,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:b.jsx(n,{icon:"page-last"})})]}):null,b.jsx("div",{className:xe("row-count-text",Xe.rowCountText),children:r.rowCountText(e.getRowCount())})]}),b.jsxs("div",{className:xe("right-items",Xe.rightItems),children:[(H=t.sizing)!=null&&H.canSize?b.jsxs(Tn,{drop:"up",children:[b.jsx(Tn.Toggle,{bsPrefix:"sizing-toggle",className:xe("sizing-toggle",Xe.sizingToggle),id:"table-sizing-button",size:"sm",children:r.sizing[Y]}),b.jsxs(Tn.Menu,{className:xe("shadow-lg sizing-menu",Xe.sizingMenu),children:[b.jsx(Tn.Item,{className:xe("sizing-menu-item",Xe.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:r.sizing.sm}),b.jsx(Tn.Item,{className:xe("sizing-menu-item",Xe.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:r.sizing.md}),b.jsx(Tn.Item,{className:xe("sizing-menu-item",Xe.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:r.sizing.lg})]})]}):null,(R=t.fullScreen)!=null&&R.canFullScreen?b.jsx(ai,{color:t.fullScreen.isFullScreen?"danger":"primary","data-testId":"table-fullscreen-button",onClick:()=>t.fullScreen.toggleFullScreen(),children:b.jsx(n,{icon:t.fullScreen.isFullScreen?"fullscreen-exit":"fullscreen"})}):null,t.excelExport.canExport?b.jsx(ai,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(r),children:b.jsx(n,{icon:"excel-export"})}):null,b.jsx(ai,{"data-testId":"table-settings-button",onClick:()=>w(!0),children:b.jsx(n,{icon:"settings"})})]})]})]})})};h.forwardRef(sve);const cve=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),vM=()=>{const e=lhe();return{accessor:(t,n)=>{const r=i=>cve(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}},ky=({InputContainer:e=Ml,formField:t,label:n,resetsFields:r,options:i,isNumber:o,size:a,showClearIcon:s,clearValue:c,noSortOptions:l,required:u,hidden:d,disabled:f,withoutLabel:p,hint:g,className:m})=>{const{register:v,formState:x,getValues:w,setValue:_,watch:C}=kn.useFormContext(),y=Ff({falseIfNotInit:!0});console.log("disabled ",f),console.log("formDisabled ",y);const[$,E]=h.useState(void 0),[T,k]=h.useState(!1),O=h.useMemo(()=>i.toSorted((j,L)=>l?0:(j.name??"").localeCompare(L.name??"")),[i,l]),S=h.useCallback(()=>{const j=c??null;o?_(t,j===null?null:Number(j),{shouldDirty:!0,shouldValidate:T}):_(t,(j==null?void 0:j.toString())??"",{shouldDirty:!0,shouldValidate:T})},[c,o,_,t,T]);h.useEffect(()=>{const j=t.split(".");let L=x.errors;j.forEach(N=>{L!==void 0&&(L=L[N])}),E(L)},[x,t]);const M=h.useMemo(()=>f||y,[f,y]);console.log(M),h.useEffect(()=>{_(t,w(t))},[O,t,w,_]),h.useEffect(()=>{x.isSubmitted&&k(!0)},[x]);const A=$!==void 0;return b.jsx(b.Fragment,{children:b.jsxs(e,{label:n??"",required:u,disabled:M,hidden:d,withoutLabel:p,isInvalid:A,hint:g,className:m,children:[b.jsxs(Kr.Select,{size:a,...v(t,{setValueAs:j=>o?j==null||j===""?null:parseInt(j,10):j==null||j===""?null:j,onChange:()=>{r&&r.forEach(j=>_(j,null,{shouldDirty:!0,shouldValidate:T}))}}),isInvalid:A,hidden:d,disabled:M,className:"w-100",children:[b.jsx("option",{value:""}),O.map(j=>b.jsx("option",{value:j.id??"",children:j.name},j.id))]}),s&&C(t)&&b.jsx("div",{className:"luminus-input-remove-icon inset",children:b.jsx(Ol,{color:"secondary",size:"sm",onClick:S,children:b.jsx(Cl,{})})}),$&&b.jsx(zf,{message:$.message})]})})},Oy=({InputContainer:e=Ml,formField:t,label:n,resetsFields:r,size:i,showClearIcon:o,clearValue:a,required:s,hidden:c,disabled:l,rows:u,withoutLabel:d,customFormControlProps:f,minLength:p,maxLength:g,hint:m,onChange:v,className:x})=>{const{register:w,formState:_,setValue:C,watch:y}=kn.useFormContext(),$=Ff({falseIfNotInit:!0}),[E,T]=h.useState(void 0),[k,O]=h.useState(!1),S=h.useCallback(()=>{const L=a??null;C(t,(L==null?void 0:L.toString())??"",{shouldDirty:!0,shouldValidate:k})},[a,C,t,k]),M=h.useCallback(()=>{const L=t.split(".");let N=_.errors;L.forEach(F=>{N!==void 0&&(N=N[F])}),T(N)},[_,t]),A=h.useMemo(()=>l||$,[l,$]);h.useEffect(()=>{M()},[M]),h.useEffect(()=>{_.isSubmitted&&O(!0)},[_]);const j=E!==void 0;return b.jsxs(e,{label:n??"",required:s,disabled:A,hidden:c,withoutLabel:d,isInvalid:j,className:x,hint:m,isForTextAreaInput:!0,children:[b.jsx(Kr.Control,{as:"textarea",size:i,...w(t,{setValueAs:L=>L==null||L===""?null:L,onChange:L=>{var N;r&&r.forEach(F=>C(F,null,{shouldDirty:!0,shouldValidate:k})),v&&v((N=L.target)!=null&&N.value?L.target.value.toString():null)}}),isInvalid:j,hidden:c,disabled:A,rows:u??2,className:"w-100",minLength:p,maxLength:g,...f}),o&&y(t)&&b.jsx("div",{className:"luminus-input-remove-icon",children:b.jsx(Ol,{color:"secondary",size:"sm",onClick:S,children:b.jsx(Cl,{})})}),E&&b.jsx(zf,{message:E.message})]})},rs=h.forwardRef(({InputContainer:e=Ml,type:t,formField:n,label:r,placeholder:i,size:o,resetsFields:a,showClearIcon:s,clearValue:c,required:l,hidden:u,disabled:d,withoutLabel:f,list:p,step:g,CustomOnChangeComponent:m,noSelectOnFocus:v,minLength:x,maxLength:w,hint:_,onChange:C,className:y,autoComplete:$},E)=>{const{register:T,formState:k,setValue:O,watch:S}=kn.useFormContext(),M=Ff({falseIfNotInit:!0}),[A,j]=h.useState(void 0),[L,N]=h.useState(!1),F=h.useCallback(()=>{const P=c??null;t==="number"?O(n,P!==null?Number(P):null,{shouldDirty:!0,shouldValidate:L}):O(n,(P==null?void 0:P.toString())??"",{shouldDirty:!0,shouldValidate:L})},[c,t,O,n,L]),U=h.useCallback(()=>{const P=n.split(".");let D=k.errors;P.forEach(B=>{D!==void 0&&(D=D[B])}),j(D)},[k,n]),z=h.useMemo(()=>d||M,[d,M]);h.useEffect(()=>{U()},[U]),h.useEffect(()=>{k.isSubmitted&&N(!0)},[k]);const I=A!==void 0,[W,Y]=h.useState(!1),J=S(n),X=d0(t,J??null,W),{ref:Z,...Q}=T(n,{setValueAs:P=>t==="number"?P==null||P===""?null:Number(P):P==null||P===""?null:P,onChange:P=>{var D;a&&a.forEach(B=>O(B,null,{shouldDirty:!0,shouldValidate:L})),C&&C((D=P.target)!=null&&D.value?t==="number"?Number(P.target.value)??null:P.target.value.toString():null)},onBlur:()=>Y(!1)}),te=h.useRef(null);return h.useImperativeHandle(E,()=>te.current,[te]),b.jsxs(e,{label:r??"",required:l,disabled:z,hidden:u,withoutLabel:f,isInvalid:I,hint:_,className:y,children:[b.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[b.jsx(Kr.Control,{type:X,placeholder:i??r,size:o,onFocus:P=>{Y(!0),!v&&P.target.select()},...Q,ref:P=>{Z(P),te.current=P},isInvalid:I,hidden:u,disabled:z,list:p,className:"w-100",step:g,minLength:x,maxLength:w,autoComplete:$}),m&&b.jsx("div",{className:"custom-picker-button",children:m})]}),s&&S(n)&&b.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:b.jsx(Ol,{color:"secondary",size:"sm",onClick:F,children:b.jsx(Cl,{})})}),A&&b.jsx(zf,{message:A.message})]})}),eC=(e,t,n)=>{if(e&&"reportValidity"in e){const r=kn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},bM=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?eC(r.ref,n,e):r.refs&&r.refs.forEach(i=>eC(i,n,e))}},lve=(e,t)=>{t.shouldUseNativeValidation&&bM(e,t);const n={};for(const r in e){const i=kn.get(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(uve(t.names||Object.keys(e),r)){const a=Object.assign({},kn.get(n,r));kn.set(a,"root",o),kn.set(n,r,a)}else kn.set(n,r,o)}return n},uve=(e,t)=>e.some(n=>n.startsWith(t+"."));var dve=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,o=r.message,a=r.path.join(".");if(!n[a])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[a]={message:s.message,type:s.code}}else n[a]={message:o,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[a].types,l=c&&c[r.code];n[a]=kn.appendErrors(a,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n},hp=function(e,t,n){return n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,s){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return o.shouldUseNativeValidation&&bM({},o),{errors:{},values:n.raw?r:l}})}catch(l){return s(l)}return c&&c.then?c.then(void 0,s):c}(0,function(a){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(a))return{values:{},errors:lve(dve(a.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw a}))}catch(a){return Promise.reject(a)}}};const fve="_wrapper_1tb6d_1",hve="_controls_1tb6d_16",pve="_explorerWindow_1tb6d_20",mve="_folderList_1tb6d_28",gve="_fileList_1tb6d_35",vve="_dndText_1tb6d_61",bve="_extensionIcon_1tb6d_72",go={wrapper:fve,controls:hve,explorerWindow:pve,folderList:mve,fileList:gve,dndText:vve,extensionIcon:bve},hn=h.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),yve="_defaultFolder_8tlxv_1",xve="_names_8tlxv_5",wve="_folderType_8tlxv_9",Im={defaultFolder:yve,names:xve,folderType:wve},yM=({isActive:e,isDefault:t,folderName:n,typeName:r})=>{const{ProjectIconComponent:i}=h.useContext(sn);return b.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[b.jsx(i,{icon:`folder${e?"-filled":""}`,className:ue("d-inline-block",t?Im.defaultFolder:"text-primary"),iconProps:{className:"d-block"},size:18}),b.jsxs("div",{className:ue("d-flex flex-column gap-0 align-items-start",Im.names),children:[b.jsx("span",{className:e?"fw-bold":"",children:n}),r?b.jsxs("span",{className:Im.folderType,children:["(",r,")"]}):null]})]})},_ve=({customText:e})=>{const{reducer:[t,n]}=h.useContext(hn),r=h.useCallback(()=>{n({type:"select-folder",folderId:"root"})},[n]);return b.jsx("li",{children:b.jsx("button",{onClick:r,type:"button",className:ue("border-0 bg-transparent"),children:b.jsx(yM,{folderName:e??"root",isActive:t.activeFolder==="root",typeName:"",isDefault:!0})})})};function Cve(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const xM=()=>{const e=If(),{startLoading:t,stopLoading:n}=h.useContext(Tf),{reducer:[,r]}=h.useContext(hn),i=h.useCallback(async(a,s)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:a,name:s}),r({type:"update-folders",folderIds:[a],newProperties:{name:s}})}finally{n("documents-renameFolder")}},[e,r,t,n]),o=h.useCallback(async a=>{t("documentsFolderCreate");try{const s=await e.post("/documents/folder",a);r({type:"create-folder",folderData:a,folderId:s.data.id,isOnlyRead:s.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:i,createFolder:o}},$ve=()=>{const{reducer:[e],entityId:t,entityType:n}=h.useContext(hn),{zNumberRequired:r,zStringRequired:i}=Lf(),{createFolder:o}=xM(),a=vn.object({name:i(),documentTypeId:r()}),s=kn.useForm({resolver:hp(a)}),c=h.useCallback(async l=>{const u={...l,dbObjectId:t.toString(),entity:n,parentFolderId:e.activeFolder==="root"?null:e.activeFolder};await o(u)},[o,t,n,e.activeFolder]);return{formMethods:s,onSubmit:c}},Sve=({handleClose:e})=>{var a;const{texts:{documents:t}}=h.useContext(sn),{reducer:[n],entityType:r}=h.useContext(hn);if(Cve(n),n.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:i,formMethods:o}=$ve();return b.jsx(b.Fragment,{children:b.jsx(kn.FormProvider,{...o,children:b.jsxs(Kr,{onSubmit:o.handleSubmit(i),children:[b.jsx(Wn.Header,{closeButton:!0,children:b.jsx(Wn.Title,{children:t.createFolderInFolder(((a=n.foldersMap.get(n.chosenFolderId))==null?void 0:a.name)??r)})}),b.jsxs(Wn.Body,{children:[b.jsx(rs,{formField:"name",type:"text",label:t.name,required:!0}),b.jsx(ky,{options:n.documentTypes,formField:"documentTypeId",label:t.folderType,isNumber:!0,required:!0})]}),b.jsxs(Wn.Footer,{children:[b.jsx(Uo,{onClick:e,variant:"outlined",color:"secondary",children:t.cancel}),b.jsx(Uo,{type:"submit",children:t.createFolder})]})]})})})},wM=100,Eve=(e,t)=>{const n=If(),{startLoading:r,stopLoading:i}=h.useContext(Tf),{loadDocuments:o}=h.useContext(hn),{zStringRequired:a,zString:s,zNumberRequired:c,zDateRequired:l}=Lf(),u=vn.object({name:a(),description:s(),validToDate:l(),documentTypeId:c()}),d=kn.useForm({resolver:hp(u),defaultValues:{...e,validToDate:Of(e.validToDate)}}),f=h.useCallback(async p=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,p),await o(),t()}finally{i("documents-updateProperties")}},[n,e.id,t,o,r,i]);return{formMethods:d,onSubmit:f}},Tve=({handleClose:e,file:t})=>{const{texts:{documents:n}}=h.useContext(sn),{reducer:[r]}=h.useContext(hn),{formMethods:i,onSubmit:o}=Eve(t,e);return b.jsxs(b.Fragment,{children:[b.jsx(Wn.Header,{closeButton:!0,children:b.jsx(Wn.Title,{children:n.editFileProperties})}),b.jsx(kn.FormProvider,{...i,children:b.jsxs(Kr,{onSubmit:i.handleSubmit(o),children:[b.jsxs(Wn.Body,{children:[b.jsx(rs,{formField:"name",type:"text",label:n.name,required:!0}),b.jsx(rs,{formField:"validToDate",type:"date",label:n.validSince,required:!0}),b.jsx(ky,{formField:"documentTypeId",label:n.category,options:r.documentTypes,isNumber:!0,required:!0}),b.jsx(Oy,{formField:"description",label:n.description,customFormControlProps:{maxLength:wM}})]}),b.jsxs(Wn.Footer,{children:[b.jsx(Uo,{onClick:e,color:"secondary",variant:"outlined",children:n.cancel}),b.jsx(Uo,{type:"submit",children:n.save})]})]})})]})},kve=({handleClose:e})=>{const{reducer:[t]}=h.useContext(hn),n=h.useMemo(()=>{if(t.markedFiles.length===1)return t.constantFiles.find(r=>r.id===t.markedFiles[0])},[t.constantFiles,t.markedFiles]);return n===void 0?(e(),b.jsx(b.Fragment,{})):b.jsx(Tve,{file:n,handleClose:e})},Ove=()=>{const{reducer:[e,t]}=h.useContext(hn),n=h.useCallback(()=>{t({type:"close-modal"})},[t]),r=h.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return b.jsx(Sve,{handleClose:n});case"edit-file-properties":return b.jsx(kve,{handleClose:n});default:return null}},[e.state,e.modalType]);return b.jsx(Wn,{show:e.state==="openned-modal",onHide:n,children:r})},tC="documents_drag_image_element",Lu="drop-container-highlight-class",nC="data-drop-container-id",rC="data-draggable-id",Mve=()=>{const e=document.getElementById(tC);if(e!==null)return e;const t=document.createElement("div");return t.id=tC,t.style.position="absolute",t.style.top=`${-window.outerHeight}px`,t.style.left=`${-window.outerWidth}px`,t.style.width="50px",t.style.height="50px",t.style.backgroundColor="rgba(0, 0, 0, 0.5)",t.style.color="white",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.fontSize="16px",t.style.borderRadius="5px",document.body.appendChild(t),t},My=()=>{const{apiActions:{moveDocuments:e},reducer:[t]}=h.useContext(hn),n=h.useCallback(l=>{var u;if(t.markedFiles.length>0){const d=Mve();d.innerHTML=t.markedFiles.length.toString(),l.dataTransfer.setDragImage(d,0,0),l.dataTransfer.clearData(),l.dataTransfer.setData("application/json",JSON.stringify(t.markedFiles)),l.dataTransfer.dropEffect="none",l.dataTransfer.effectAllowed="move"}else l.dataTransfer.setData("application/json",JSON.stringify([parseInt(((u=l.currentTarget.attributes.getNamedItem(rC))==null?void 0:u.nodeValue)??"",10)])),l.dataTransfer.dropEffect="none",l.dataTransfer.effectAllowed="move"},[t.markedFiles]),r=h.useCallback(l=>({[rC]:l,draggable:t.markedFiles.length===0||t.markedFiles.includes(l),onDragStart:n}),[n,t.markedFiles]),i=h.useCallback(l=>u=>{var p;u.preventDefault(),u.stopPropagation(),u.currentTarget.classList.remove(Lu);const d=u.dataTransfer.files;if(l&&d&&d.length>0){l(d);return}const f=u.dataTransfer.getData("application/json");if(f){const g=JSON.parse(f),m=parseInt(((p=u.currentTarget.attributes.getNamedItem(nC))==null?void 0:p.value)??"",10);e(m,g)}},[e]),o=h.useCallback(()=>l=>{l.preventDefault(),l.stopPropagation()},[]),a=h.useCallback(l=>u=>{u.preventDefault(),u.stopPropagation(),u.dataTransfer.types.includes("Files")?(u.dataTransfer.dropEffect="copy",u.currentTarget.classList.add(Lu)):!l&&u.dataTransfer.types.includes("application/json")?(u.dataTransfer.dropEffect="move",u.currentTarget.classList.add(Lu)):u.dataTransfer.dropEffect="none"},[]),s=h.useCallback(l=>{l.preventDefault(),l.stopPropagation(),l.target===l.currentTarget&&(l.dataTransfer.dropEffect="none",l.currentTarget.classList.remove(Lu))},[]),c=h.useCallback((l,u)=>({onDrop:i(u==null?void 0:u.onFilesDrop),onDragOver:o(),onDragEnter:a(u==null?void 0:u.ignoreInner),onDragLeave:s,[nC]:l}),[i,o,a,s]);return{getDraggableProps:r,getDropProps:c}};function _M(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const i=e.childrenIds[r];if(i===t)return!0;const o=n.get(i);if(o&&_M(o,t,n))return!0}return!1}function Rve(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function CM(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${CM(n.parentId,t)}/${n.name}`}const Ave=()=>{const{zString:e,zStringRequired:t,zNumberRequired:n}=Lf();return{formSchema:h.useMemo(()=>vn.object({validToDate:t(),description:e(),name:e(),documentTypeId:n()}),[n,e,t])}},Ry=({handleClose:e,files:t,targetFolderId:n})=>{var f;const{texts:{documents:r}}=h.useContext(sn),{reducer:[i],apiActions:{uploadFiles:o}}=h.useContext(hn),a=h.useMemo(()=>[...t],[t]),s=h.useMemo(()=>n??i.activeFolder,[i.activeFolder,n]),c=h.useMemo(()=>s==="root"?void 0:i.foldersMap.get(s),[s,i.foldersMap]),{formSchema:l}=Ave(),u=kn.useForm({resolver:hp(l),defaultValues:{validToDate:Of(new Date().toISOString()),documentTypeId:(f=i.documentTypes.find(p=>{var g;return p.name===((g=i.foldersMap.get(s))==null?void 0:g.defaultDocType)}))==null?void 0:f.id}}),d=h.useCallback(async p=>{s!=="root"&&(await o(t,{folderId:s,...p}),e())},[t,e,s,o]);return b.jsxs(Wn,{show:!0,onHide:e,children:[b.jsx(Wn.Header,{closeButton:!0,children:b.jsxs("div",{children:[r.uploadFilesPrompt(t.length,c.name),b.jsx("ul",{children:a.map((p,g)=>b.jsxs("li",{children:[p.name," - ",Ua(p.size)]},`${p.name}-${g}`))})]})}),b.jsx(kn.FormProvider,{...u,children:b.jsxs(Kr,{onSubmit:u.handleSubmit(d),children:[b.jsxs(Wn.Body,{children:[b.jsx(ky,{formField:"documentTypeId",label:r.documentType,options:i.documentTypes,isNumber:!0,required:!0}),b.jsx(rs,{formField:"validToDate",label:r.validSince,type:"date",required:!0}),a.length===1?b.jsx(rs,{formField:"name",label:r.name,type:"text"}):null,b.jsx(Oy,{formField:"description",label:r.description,customFormControlProps:{maxLength:wM}})]}),b.jsxs(Wn.Footer,{children:[b.jsx(Uo,{variant:"outlined",color:"secondary",onClick:e,children:r.cancel}),b.jsx(Uo,{type:"submit",children:r.upload})]})]})})]})},jve="_folder_1cktt_1",Nve="_collapseArrowDiv_1cktt_8",Dve="_button_1cktt_20",Ive="_nestedList_1cktt_24",Pve="_numberOfFiles_1cktt_31",Lve="_collapseArrow_1cktt_8",vo={folder:jve,collapseArrowDiv:Nve,button:Dve,nestedList:Ive,numberOfFiles:Pve,collapseArrow:Lve},$M=({dirId:e,writePermissions:t})=>{const{ProjectIconComponent:n}=h.useContext(sn),{reducer:[r,i]}=h.useContext(hn),{getDropProps:o}=My(),[a,s]=h.useState(null),[c,l]=h.useState(!0),u=h.useMemo(()=>{const m=r.foldersMap.get(e);if(m===void 0)throw new Error(`tried to get dir with id ${e}`);return m},[e,r.foldersMap]),d=h.useCallback(()=>{r.activeFolder!=="root"&&_M(u,r.activeFolder,r.foldersMap)&&i({type:"select-folder",folderId:e}),l(!0)},[e,u,i,r.activeFolder,r.foldersMap]),f=h.useMemo(()=>u.childrenIds.length>0,[u.childrenIds.length]),p=h.useCallback(()=>{i({type:"select-folder",folderId:e})},[e,i]),g=h.useMemo(()=>r.filteredFiles.filter(m=>m.folderId===e&&m.archive===!1).length,[e,r.filteredFiles]);return b.jsxs(b.Fragment,{children:[b.jsxs("li",{className:vo.folder,children:[b.jsx("div",{className:vo.collapseArrowDiv,children:f?c?b.jsx("button",{onClick:()=>l(!1),type:"button",children:b.jsx(n,{icon:"chevron-right",iconProps:{className:vo.collapseArrow}})}):b.jsx("button",{onClick:d,type:"button",children:b.jsx(n,{icon:"chevron-down",iconProps:{className:vo.collapseArrow}})}):null}),b.jsx("button",{className:ue(vo.button),onClick:p,type:"button",...t&&!u.onlyRead?o(e,{onFilesDrop:m=>s(m)}):{},children:b.jsxs("div",{className:"d-flex align-items-center gap-2",children:[b.jsx(yM,{isDefault:u.isDefault,folderName:u.name,typeName:u.defaultDocType??"",isActive:e===r.activeFolder}),g>0?b.jsxs("span",{className:vo.numberOfFiles,children:["[",g,"]"]}):void 0]})}),f?c?null:b.jsx("ul",{className:vo.nestedList,children:u==null?void 0:u.childrenIds.map(m=>b.jsx($M,{dirId:m,writePermissions:t},m))}):void 0]}),a!==null?b.jsx(Ry,{files:a,handleClose:()=>s(null),targetFolderId:e}):null]})},Fve="_wrapper_1th2u_1",Bve="_downloadButton_1th2u_9",yv={wrapper:Fve,downloadButton:Bve};function zve(e){return ft({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"},child:[]}]})(e)}function Wve(e){return ft({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 80c8.8 0 16 7.2 16 16V415.8l-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3V96c0-8.8 7.2-16 16-16H448zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function Uve(e){return ft({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23 1.5q.41 0 .7.3.3.29.3.7v19q0 .41-.3.7-.29.3-.7.3H7q-.41 0-.7-.3-.3-.29-.3-.7V18H1q-.41 0-.7-.3-.3-.29-.3-.7V7q0-.41.3-.7Q.58 6 1 6h5V2.5q0-.41.3-.7.29-.3.7-.3zM6 13.28l1.42 2.66h2.14l-2.38-3.87 2.34-3.8H7.46l-1.3 2.4-.05.08-.04.09-.64-1.28-.66-1.29H2.59l2.27 3.82-2.48 3.85h2.16zM14.25 21v-3H7.5v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3H7.5v3zm8.25 15v-3h-6.75v3zm0-4.5v-3.75h-6.75v3.75zm0-5.25V7.5h-6.75v3.75zm0-5.25V3h-6.75v3Z"},child:[]}]})(e)}function Vve(e){return ft({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.004 1.5q.41 0 .703.293t.293.703v19.008q0 .41-.293.703t-.703.293H6.996q-.41 0-.703-.293T6 21.504V18H.996q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6H6V2.496q0-.41.293-.703t.703-.293zM6.035 11.203l1.442 4.735h1.64l1.57-7.876H9.036l-.937 4.653-1.325-4.5H5.38l-1.406 4.523-.938-4.675H1.312l1.57 7.874h1.641zM22.5 21v-3h-15v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3h-15v3Z"},child:[]}]})(e)}const Hve="_excel_18ggp_1",qve="_word_18ggp_5",Yve="_pdf_18ggp_9",Gve="_image_18ggp_13",Fu={excel:Hve,word:qve,pdf:Yve,image:Gve},SM=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return b.jsx("span",{className:ue(t,Fu.image),children:b.jsx(Wve,{...n})});case"XLS":case"XLSX":case"CSV":return b.jsx(Uve,{className:ue(t,Fu.excel),...n});case"DOC":case"DOCM":case"DOCX":return b.jsx(Vve,{className:ue(t,Fu.word),...n});case"PDF":return b.jsx(w9,{className:ue(t,Fu.pdf),...n});default:return b.jsx(zve,{})}},Kve=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=h.useContext(sn),{apiActions:{downloadFile:n},reducer:[r]}=h.useContext(hn),i=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),o=h.useCallback((c,l,u)=>c?yS(l??"")&&localStorage.getItem("file-download-try-opening")!=="false"?b.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:f=>{f.stopPropagation(),n(u,!0)},children:c}):c:"",[n]),a=vM();return{columns:h.useMemo(()=>[a.accessor("id",{header:"id",type:"number",meta:{hidden:!0}}),...i?[a.accessor("folderName",{header:t.folder,type:"string"})]:[],a.accessor("--icon",{header:"",type:"string",size:36,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:c=>{const l=c.row.getValue("fileExtension"),u=c.row.getValue("id");return o(b.jsx(SM,{fileExtension:(l==null?void 0:l.toString())??"",className:yv.extensionIcon,size:18}),(l==null?void 0:l.toString())??"",Number((u==null?void 0:u.toString())??""))}}}),a.accessor("name",{header:t.name,type:"string",meta:{customCellRender:c=>{const l=c.row.getValue("name"),u=c.row.getValue("fileExtension"),d=c.row.getValue("id");return o((l==null?void 0:l.toString())??"",(u==null?void 0:u.toString())??"",Number((d==null?void 0:d.toString())??""))}}}),a.accessor("description",{header:t.description,type:"string"}),a.accessor("fileExtension",{header:t.fileExtension,type:"string",size:50,meta:{filterVariant:"select"}}),a.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:c=>{const l=c.row.getValue("id");return b.jsx(Bf,{className:yv.downloadButton,onClick:()=>n(Number((l==null?void 0:l.toString())??""),!1),children:b.jsx(e,{icon:"file-download",size:18})})}}}),a.accessor("documentTypeName",{header:t.documentType,type:"string",meta:{filterVariant:"select"}}),a.accessor("validToDate",{header:t.validSince,type:"date"}),a.accessor("size",{header:t.size,type:"number",meta:{filterVariant:"none",customCellRender:c=>{var u;const l=Number(((u=c.getValue())==null?void 0:u.toString())??"");return l!==void 0?Ua(l*1024*1024):""}}}),a.accessor("archive",{header:t.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:c=>c.getValue()?t.yes[0]:t.no[0]}})],[e,t.archived,t.description,t.documentType,t.fileExtension,t.folder,t.name,t.no,t.size,t.validSince,t.yes,n,i,o,a])}},Zve=({BnfTableComponent:e,tableIdentifier:t,writePermissions:n})=>{const{reducer:[r,i]}=h.useContext(hn),{columns:o}=Kve(),a=h.useCallback(p=>{i({type:"mark-files-by-action",setStateAction:p})},[i]),s=h.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),c=h.useMemo(()=>{var p;return r.activeFolder==="root"?!1:((p=r.foldersMap.get(r.activeFolder))==null?void 0:p.onlyRead)??!1},[r.activeFolder,r.foldersMap]),l=h.useMemo(()=>({enabled:n&&!s,getRowId:p=>{var g;return((g=p.id)==null?void 0:g.toString())??""},selectedRows:Object.fromEntries(r.markedFiles.map(p=>[p.toString(),!0])),setSelectedRows:p=>{const g=Object.keys(p).filter(m=>p[m]).map(m=>Number(m));a(g)}}),[s,r.markedFiles,n,a]),u=h.useMemo(()=>r.activeFolder==="root"?r.filteredFiles:r.filteredFiles.filter(p=>p.folderId===r.activeFolder),[r.activeFolder,r.filteredFiles]),{getDraggableProps:d}=My(),f=h.useCallback(p=>n===!1||c?{}:d(p.id),[d,c,n]);return b.jsx("div",{className:ue(yv.wrapper),children:b.jsx(e,{data:u,columns:o,rowSelection:l,getRowProps:f,initState:{columnFilters:[{id:"archive",value:"false"}]},tableId:t,bottomBar:{hidden:!0}},r.activeFolder)})},Xve="_wrapper_1q562_1",Qve="_divButtons_1q562_10",Pm={wrapper:Xve,divButtons:Qve},Jve="_wrapper_1bpdd_1",e0e="_fileInput_1bpdd_5",iC={wrapper:Jve,fileInput:e0e},t0e=({entityId:e,entityType:t,children:n,disabled:r})=>{const i=h.useRef(null),[o,a]=h.useState(null),{reducer:[s]}=h.useContext(hn),c=f=>{var p;(((p=f.target.files)==null?void 0:p.length)??0)>0&&a(f.target.files)},l=h.useCallback(()=>{a(null),i.current&&(i.current.value="")},[]),u=h.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=h.useMemo(()=>r||s.activeFolder==="root",[r,s.activeFolder]);return b.jsxs("div",{className:iC.wrapper,children:[b.jsx("label",{htmlFor:u,className:ue("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),b.jsx("input",{id:u,type:"file",multiple:!0,onChange:c,className:iC.fileInput,ref:i,disabled:d}),o!==null?b.jsx(Ry,{handleClose:l,files:o}):void 0]})},jr=({children:e,onClick:t,className:n,disabled:r=!1})=>b.jsx(Bf,{onClick:t,className:n,disabled:r,children:e}),n0e=({className:e,entityId:t,entityType:n})=>{var E,T;const{texts:{documents:r}}=h.useContext(sn),{prompt:i}=tS(),{confirm:o}=l0(),{apiActions:a,reducer:[s,c]}=h.useContext(hn),{deleteFiles:l,renameFiles:u,downloadAsZip:d,archivateFiles:f,deleteDirectory:p}=a,{renameFolder:g}=xM(),m=h.useMemo(()=>s.markedFiles.length===0,[s.markedFiles.length]),v=h.useMemo(()=>s.markedFiles.length===1,[s.markedFiles.length]),x=h.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFolderName,{input:"input"});k!==null&&g(s.activeFolder,k)},[r.enterNewFolderName,i,g,s.activeFolder]),w=h.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFileName,{input:"input"});k!==null&&u(k)},[r.enterNewFileName,i,u,s.activeFolder]),_=h.useMemo(()=>s.activeFolder==="root",[s.activeFolder]),C=h.useMemo(()=>{var k;return s.activeFolder==="root"?!1:((k=s.foldersMap.get(s.activeFolder))==null?void 0:k.onlyRead)??!1},[s.activeFolder,s.foldersMap]),y=h.useMemo(()=>s.markedFiles.every(k=>{var O;return((O=s.constantFiles.find(S=>S.id===k))==null?void 0:O.archive)===!1}),[s.constantFiles,s.markedFiles]),$=h.useMemo(()=>s.markedFiles.every(k=>{var O;return((O=s.constantFiles.find(S=>S.id===k))==null?void 0:O.archive)===!0}),[s.constantFiles,s.markedFiles]);return b.jsx("div",{className:ue(e,Pm.wrapper,s.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:s.state!=="folder-choosing"?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:Pm.divButtons,children:[b.jsx(t0e,{entityId:t,entityType:n,disabled:C,children:r.uploadFiles}),b.jsx(jr,{onClick:()=>{c({type:"open-modal",modalType:"create-folder",chosenFolderId:s.activeFolder??"root"})},disabled:C,children:r.createFolder}),b.jsx(jr,{disabled:s.activeFolder==="root"||((E=s.foldersMap.get(s.activeFolder))==null?void 0:E.isDefault),onClick:async()=>{var O;await o(`${r.deleteFolder} ${(O=s.foldersMap.get(s.activeFolder))==null?void 0:O.name}?`)&&p(s.activeFolder)},children:r.deleteFolder}),b.jsx(jr,{disabled:s.activeFolder==="root"||((T=s.foldersMap.get(s.activeFolder))==null?void 0:T.isDefault),onClick:x,children:r.renameFolder})]}),!_&&!C?b.jsxs("div",{className:Pm.divButtons,children:[b.jsx(jr,{onClick:()=>{c({type:"open-modal",modalType:"edit-file-properties"})},disabled:!v,children:r.editFileProperties}),b.jsx(jr,{onClick:async()=>{await o(r.confirmDeleteFile(s.markedFiles.length))&&l(s.markedFiles)},disabled:m,children:r.delete}),$?b.jsx(jr,{onClick:async()=>{await o(r.confirmDearchiveFile(s.markedFiles.length))&&await f(!0)},disabled:m,children:r.dearchivate}):b.jsx(jr,{onClick:async()=>{await o(r.confirmArchiveFile(s.markedFiles.length))&&await f()},disabled:m||!y,children:r.archivate}),b.jsx(jr,{onClick:w,disabled:m,children:r.rename}),b.jsx(jr,{onClick:d,disabled:m,children:r.downloadZip})]}):null]}):s.state==="folder-choosing"?b.jsx(b.Fragment,{children:b.jsx(jr,{onClick:()=>c({type:"return-from-folder-choosing"}),className:ue("ignore-dim","body-background-color"),children:r.back})}):void 0})},r0e=({file:e})=>{const{confirm:t}=l0(),{reducer:[n],apiActions:{downloadFile:r}}=h.useContext(hn),{texts:{documents:i}}=h.useContext(sn),o=h.useCallback(async()=>{await t(i.confirmFileDownload(e.name,e.size==null?void 0:Ua(e.size*1024*1024)))&&r(e.id)},[t,i,r,e.id,e.name,e.size]);return b.jsxs(Sf,{action:!0,onClick:o,children:[b.jsx(jn,{variant:"body",className:"text-muted",children:CM(e.folderId,n.foldersMap)}),b.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[b.jsx(jn,{variant:"body",children:e.name}),b.jsx(jn,{variant:"body",children:e.size==null?null:Ua(e.size*1024*1024)})]})]})},i0e="_typeSelect_m3myk_1",o0e={typeSelect:i0e},a0e=()=>{const{reducer:[e]}=h.useContext(hn),{texts:{documents:t}}=h.useContext(sn),[n,r]=h.useState(""),[i,o]=h.useState(null),a=h.useMemo(()=>{const c=new Map;return e.filteredFiles.forEach(u=>{c.get(u.documentTypeId)===void 0&&c.set(u.documentTypeId,u.documentTypeName)}),[{id:null,name:t.all},...Array.from(c).map(u=>({id:u[0],name:u[1]}))]},[t.all,e.filteredFiles]),s=h.useMemo(()=>e.filteredFiles.filter(c=>n0(c.name,n)&&(i===null||c.documentTypeId===i)),[n,i,e.filteredFiles]);return b.jsxs("div",{className:"d-flex h-100 flex-column",children:[b.jsxs("div",{className:"d-flex gap-1 mb-1",children:[b.jsx(TE,{options:a,label:t.documentType,value:i,onChange:o,isNumber:!0,size:"sm",className:o0e.typeSelect}),b.jsx($E,{label:t.search,type:"text",value:n,onChange:c=>r(c===null?"":c),className:"flex-grow-1",size:"sm"})]}),b.jsx(k$,{className:"overflow-y-auto",children:s.map(c=>b.jsx(r0e,{file:c},c.id))})]})};function s0e(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function c0e(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,s0e(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,o)=>{const a=n.get(i);if(a===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${o}`);a.childrenIds.push(o)}),{dirsMap:n,rootIds:t}}function oC(e,t){const n=t.toUpperCase();return e.filter(r=>{var o;const i=(o=r.name)==null?void 0:o.toUpperCase();return i==null?void 0:i.includes(n)})}function l0e(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const u0e=([e,t],n,r)=>{const{texts:{documents:i}}=h.useContext(sn),{startLoading:o,stopLoading:a}=h.useContext(Tf),{addNotification:s}=Df(),c=If(),l=h.useCallback(async _=>{o("documentList");try{const y=(await c.get(`/documents/${n}/${r}`)).data,{dirsMap:$,rootIds:E}=c0e(y.folders),T=l0e(y.documents,$);t({type:"load-data",files:T,foldersMap:$,rootFolderIds:E,setActiveFolder:_})}finally{a("documentList")}},[c,t,r,n,o,a]);h.useEffect(()=>{l(!0)},[l]);const u=h.useCallback(async()=>{o("documents-types");try{const _=await c.get(`/documents/types/${n}`);if(_.status!==200)throw new Error(`Unexpected status code: ${_.status}`);t({type:"load-document-types",documentTypes:_.data})}finally{a("documents-types")}},[c,t,n,o,a]);h.useEffect(()=>{u()},[u]);const d=h.useCallback(async(_,C)=>{const y=C??e.markedFiles;o("documentsMove");try{await c.put(`/documents/move-to-folder?folderId=${_}`,y),t({type:"update-files",fileIds:y,newProperties:{folderId:_}}),s(i.fileMoveSuccessful(y.length,e.foldersMap.get(_).name),"success")}finally{a("documentsMove")}},[e.markedFiles,e.foldersMap,o,c,t,s,i,a]),f=h.useCallback(async _=>{const C=_??e.markedFiles;o("documentsFilesDelete");try{const y=await c.delete(`/documents/delete?${ig(C,"documentIds")}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"delete-files",fileIds:C}),s(i.fileDeleteSuccessful(C.length),"success")}finally{a("documentsFilesDelete")}},[e.markedFiles,o,c,t,s,i,a]),p=h.useCallback(async _=>{var C;if(!(_==="root"||(C=e.foldersMap.get(_))!=null&&C.isDefault)){o("documentsFolderDelete");try{const y=await c.delete(`/documents/folder/${_}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"delete-folder",folderId:_}),s(i.folderDeleteSuccessful(e.foldersMap.get(_).name),"success")}finally{a("documentsFolderDelete")}}},[e.foldersMap,o,c,t,s,i,a]),g=h.useCallback(async _=>{o("documentsRename");try{const C=await c.put("/documents/update-name",{documentIds:e.markedFiles,name:_});if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);l()}finally{a("documentsRename")}},[o,c,e.markedFiles,l,a]),m=h.useCallback(async _=>{o("documents-archivate");try{const C=await c.put(`/documents/${_?"dearchive":"archive"}`,e.markedFiles);if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!_}}),s((_?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{a("documents-archivate")}},[o,c,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,a]),v=h.useCallback(async()=>{var C;if(e.activeFolder==="root")return;const _=e.markedFiles.length;s(i.downloadAsZip(_),"info"),o("documents-ZIP_download");try{const y=await c.get(`/documents/download-zip?${ig(e.markedFiles,"documentIds")}`,{responseType:"blob"});md(y.data,(((C=e.foldersMap.get(e.activeFolder))==null?void 0:C.name)??"")+"_files")}finally{a("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,o,c,a]),x=h.useCallback(async(_,C)=>{s(i.downloadingFile,"info"),o("documents-downloading_file");try{const y=await c.get(`/documents/${_}?isSmall=true`,{responseType:"blob"}),$=e.constantFiles.find(T=>T.id===_),E=`${($==null?void 0:$.name)??_.toString()}.${$!=null&&$.fileExtension?$==null?void 0:$.fileExtension.toLowerCase():"unknown"}`;md(y.data,E,C)}finally{a("documents-downloading_file")}},[s,i.downloadingFile,o,c,e.constantFiles,a]),w=h.useCallback(async(_,C)=>{o("documents-upload"),s(i.uploadingDocuments,"info");try{await c.postForm("/documents/upload",{files:_,...C}),await l()}finally{a("documents-upload")}},[o,s,i.uploadingDocuments,c,l,a]);return{loadDocuments:l,moveDocuments:d,deleteFiles:f,deleteDirectory:p,renameFiles:g,archivateFiles:m,downloadAsZip:v,downloadFile:x,uploadFiles:w}},d0e=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:oC(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const o=t.rootFolderIds.find(a=>t.files.some(s=>s.archive===!1&&s.folderId===a))??"root";i.activeFolder=o}return i}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const i=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(o=>o!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-files-by-action":{const i=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(i=>i.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(i=>i.folderId===e.activeFolder).map(i=>i.id),state:"explorer"}:{...e,markedFiles:[],state:"explorer"};case"enter-folder-choosing":return e.state==="folder-choosing"||e.state==="openned-modal"?e:{...e,state:"folder-choosing",canTargetRoot:t.canTargetRoot??!1,previousState:e.state,choosingType:t.choosingType};case"return-from-folder-choosing":return e.state!=="folder-choosing"?e:{...e,state:e.previousState};case"update-files":return{...e,filteredFiles:[...e.filteredFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],constantFiles:[...e.constantFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],markedFiles:[],state:"explorer"};case"update-folders":{const i=new Map(e.foldersMap);return t.folderIds.forEach(o=>{i.set(o,{...e.foldersMap.get(o),...t.newProperties})}),{...e,foldersMap:i}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(i=>!t.fileIds.includes(i.id))],constantFiles:[...e.constantFiles.filter(i=>!t.fileIds.includes(i.id))],markedFiles:e.markedFiles.filter(i=>!t.fileIds.includes(i)),state:"explorer"};case"open-modal":switch(t.modalType){case"create-folder":return{...e,state:"openned-modal",modalType:t.modalType,chosenFolderId:t.chosenFolderId};default:return{...e,state:"openned-modal",modalType:t.modalType}}case"close-modal":return{...e,state:"explorer"};case"delete-folder":{const i=new Map(e.foldersMap),o=(n=i.get(t.folderId))==null?void 0:n.parentId;let a=[...e.rootFolderIds];if(o){const s=JSON.parse(JSON.stringify(i.get(o)));s.childrenIds=s.childrenIds.filter(c=>c!==t.folderId),i.set(o,s)}else a=a.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:a,foldersMap:i,activeFolder:"root"}}case"create-folder":{const i=new Map(e.foldersMap);i.set(t.folderId,{name:t.folderData.name,defaultDocType:(r=e.documentTypes.find(a=>a.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const o=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)o.push(t.folderId);else{const a=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(a));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:o,foldersMap:i}}case"search-files":{const i=oC(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(o=>i.map(a=>a.id).includes(o))}}default:throw new Error("Wrong action.type specified.")}},f0e=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=h.useReducer(d0e,e);return[t,n]},h0e=h.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:i,customRootFolderName:o,writePermissions:a=!0,...s})=>{const{isMobile:c}=kl(),{ProjectIconComponent:l,texts:{documents:u}}=h.useContext(sn),[d,f]=f0e(),[p,g]=h.useState(null),{loadDocuments:m,...v}=u0e([d,f],e,t),x=h.useMemo(()=>({entityId:t,entityType:e,apiActions:v,loadDocuments:m,reducer:[d,f]}),[t,e,v,m,d,f]),{getDropProps:w}=My();return c?b.jsx(hn.Provider,{value:x,children:b.jsx(a0e,{})}):b.jsx("div",{...s,className:ue(go.wrapper,n),onDragOver:_=>{_.dataTransfer.dropEffect="none",_.stopPropagation(),_.preventDefault()},onDragEnter:_=>{_.dataTransfer.dropEffect="none",_.stopPropagation(),_.preventDefault()},children:b.jsxs(hn.Provider,{value:x,children:[b.jsx("div",{className:ue(d.state==="folder-choosing"?"dim-others":void 0,go.explorerWindow),children:b.jsxs("ul",{className:go.folderList,children:[b.jsx(_ve,{customText:o??e}),d.rootFolderIds.map(_=>b.jsx($M,{dirId:_,writePermissions:a},_))]})}),b.jsxs("div",{className:ue(go.explorerWindow,go.fileList),...a&&Rve(d)?w(d.activeFolder,{onFilesDrop:_=>g(_),ignoreInner:!0}):{},children:[b.jsxs("div",{className:go.dndText,children:[b.jsx(l,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),b.jsx("span",{children:u.dropToUpload})]}),b.jsx(Zve,{tableIdentifier:i,BnfTableComponent:r,writePermissions:a},(d.activeFolder==="root").toString())]}),a?b.jsx(n0e,{className:go.controls,entityType:e,entityId:t}):null,b.jsx(Ove,{}),p!==null?b.jsx(Ry,{files:p,handleClose:()=>g(null),targetFolderId:d.activeFolder==="root"?void 0:d.activeFolder}):null]})})}),p0e=h.createContext(void 0);exports.AbstractModalHeader=D$;exports.Alert=y0;exports.ApprovalState=Z8;exports.AuthContext=kf;exports.AvatarIcon=lE;exports.Backdrop=wE;exports.BaseModal=M$;exports.BootstrapModalManager=R$;exports.Button=Nv;exports.Col=Iv;exports.ConfirmContext=J$;exports.ContextButton=Bf;exports.CustomSelectInput=TE;exports.DelegationContext=sS;exports.Documents=h0e;exports.Dropdown=p0;exports.Dropdown$1=Wa;exports.DropdownDivider=uE;exports.DropdownItem=Oa;exports.DropdownToggle=h0;exports.ENTERED=Fi;exports.ENTERING=si;exports.EXITED=Di;exports.EXITING=id;exports.FaMinus=b9;exports.FaPlus=y9;exports.FaSearch=x9;exports.Fade=Ki;exports.FileExtensionIcon=SM;exports.FileUploadContextButton=kI;exports.FloatingLabelInput=Wf;exports.Form=Kr;exports.FormCheckInput=$f;exports.FormControl=v$;exports.FormDisabledContext=sE;exports.FormSelect=qv;exports.FromToDatePickerDropdownToggle=_9;exports.HelmetContext=aE;exports.HookFormTextAreaInput=Oy;exports.HookFormTextInput=rs;exports.HtmlTooltip=dS;exports.IconButton=Ol;exports.Ie=K8;exports.InputAnchorContainer=CE;exports.InvalidFeedback=zf;exports.ListGroup=k$;exports.ListGroupItem=Sf;exports.LoadingContext=Tf;exports.LoginState=oS;exports.LuminusComponentsContext=sn;exports.MdArrowRight=Pj;exports.MdCheck=Lj;exports.MdCircle=Ij;exports.MdClear=Cl;exports.MdOutlineAddCircleOutline=Hj;exports.MdOutlineArrowOutward=Fj;exports.MdOutlineCameraAlt=Xj;exports.MdOutlineChevronRight=t8;exports.MdOutlineClose=X$;exports.MdOutlineDelete=K$;exports.MdOutlineEdit=Qj;exports.MdOutlineExpand=zj;exports.MdOutlineFileUpload=Z$;exports.MdOutlineKeyboardArrowLeft=Gj;exports.MdOutlineKeyboardArrowRight=Kj;exports.MdOutlineKeyboardDoubleArrowLeft=Zj;exports.MdOutlineMenu=n8;exports.MdOutlinePhotoLibrary=Jj;exports.MdOutlineStar=o8;exports.MdOutlineSubdirectoryArrowRight=i8;exports.MdSave=Dj;exports.MdSaveAs=Nj;exports.MdSearch=jj;exports.MiniDetailWrapper=EE;exports.Modal=Wn;exports.ModalContext=Zv;exports.NoInputContainer=_E;exports.Oe=K;exports.PageContainer=Lce;exports.PrimaryButton=Uo;exports.PromptContext=eS;exports.Re=Ece;exports.ResponsiveContextDropdown=xE;exports.ResponsiveContextDropdownItem=v0;exports.RowLabelInput=Ml;exports.ShortcutLinksContext=p0e;exports.SideContentBar=xO;exports.SimpleDropdownToggle=f0;exports.SimplePicker=fE;exports.SimpleTooltip=t0;exports.Spinner=Jv;exports.TextInput=$E;exports.TransitionWrapper=EC;exports.Typography=jn;exports.UserAvatarToggle=BI;exports.UserContext=aS;exports._=nte;exports._extends=rd;exports._inheritsLoose=bC;exports._objectWithoutPropertiesLoose=$v;exports.a=dE;exports.addLeadingZeros=Pt;exports.atobUtf8=hS;exports.axios=tn;exports.buildEmployeeNameString=h7;exports.buildOrgUnitString=p7;exports.buildVehicleNameString=f7;exports.cancelToken=yD;exports.capitalizeFirstLetter=d7;exports.classNames=ue;exports.classes=cE;exports.compareDate=v7;exports.compareDateTime=b7;exports.constructFrom=mi;exports.context=_f;exports.differenceInCalendarDays=fC;exports.divWithClassName=Ov;exports.extractErrorsFromResponse=e0;exports.extractFilename=vS;exports.extractPermissionsFromResponse=uS;exports.fixNameIdNulls=cS;exports.format=Cv;exports.formatDate=l7;exports.formatDateTime=u7;exports.formatFileSize=Ua;exports.getDateString=$7;exports.getDaysDifference=y7;exports.getDefaultExportFromCjs=rn;exports.getFirstDayOfMonth=mS;exports.getFirstDayOfOffsetMonth=x7;exports.getFirstDayOfYear=_7;exports.getLastDayOfMonth=gS;exports.getLastDayOfOffsetMonth=w7;exports.getLastDayOfYear=C7;exports.getSharedManager=A$;exports.getTimezoneOffsetInMilliseconds=Bm;exports.hasOnlyNullValues=lS;exports.hookFormSetServerErrors=Q8;exports.invariant=zm;exports.isExtensionOpenable=yS;exports.isFileOpenable=bS;exports.isISODate=pS;exports.isPast=mC;exports.isPrimitive=pd;exports.isValidDate=g7;exports.joinStrings=Mc;exports.jsxRuntimeExports=b;exports.millisecondsInHour=ff;exports.millisecondsInMinute=wv;exports.millisecondsInWeek=xv;exports.msToStartOfNextDay=m7;exports.parseISO=pf;exports.pe=$ie;exports.replaceNullValuesOnlyObjectsWithNulls=X8;exports.requireReactIs=Ev;exports.saveFile=md;exports.saveFileFromResponse=T7;exports.secondsInDay=_v;exports.secondsInHour=sC;exports.secondsInMinute=e6;exports.secondsInMonth=lC;exports.secondsInQuarter=n6;exports.secondsInWeek=t6;exports.secondsInYear=cC;exports.shortenText=c7;exports.startOfDay=Fm;exports.startOfWeek=Ia;exports.stringContains=og;exports.stringSearchWithin=n0;exports.stringStartsWith=xS;exports.style=Yi;exports.t=hp;exports.toDate=Ln;exports.transitionEndListener=$C;exports.triggerBrowserReflow=SC;exports.trimIsoDate=Of;exports.truncateText=fS;exports.u=vM;exports.urlfyArray=ig;exports.useAuth=HS;exports.useAxios=If;exports.useBootstrapBreakpoints=yC;exports.useBootstrapMinBreakpoint=xC;exports.useBootstrapPrefix=mt;exports.useClickOutside=nE;exports.useClipboard=oE;exports.useCol=DC;exports.useConfirm=l0;exports.useCookies=c0;exports.useEventCallback=en;exports.useFormControlType=d0;exports.useFormDisabledContext=Ff;exports.useIsomorphicEffect=Sc;exports.useKeyPress=iE;exports.useNotifications=Df;exports.usePermissions=rE;exports.usePrompt=tS;exports.useSwipeable=b0;exports.useWindowSize=kl;exports.useZodSchemaTypes=Lf;exports.z=vn;
|