@mailstep/design-system 0.8.16-beta.4 → 0.8.16-beta.6
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/package.json +1 -1
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +1 -1
- package/ui/Blocks/CommonGrid/styles.js +1 -1
- package/ui/Elements/Select/components/CountMultiValue.js +1 -1
- package/ui/Elements/Select/themes/selectStyles.js +1 -1
- package/ui/Forms/Checkbox/styles.js +1 -1
- package/ui/Forms/Input/styles.js +1 -1
- package/ui/index.es.js +5 -4
- package/ui/index.umd.js +5 -4
package/package.json
CHANGED
|
@@ -91,6 +91,6 @@ var TextRange = function (props) {
|
|
|
91
91
|
var onChangeComparator = useEvent(function (option) {
|
|
92
92
|
onChange({ comparator: option.value, value: fieldValue, isInvalid: isInvalid });
|
|
93
93
|
});
|
|
94
|
-
return (_jsxs("div", { ref: pickerRef, children: [_jsx(Input, __assign({ name: name, "data-test": name, "data-cy": "".concat(name, "Inp"), value: fieldValue, label: label, onChange: onChangeTextInput, iconOnClick: !eqOnly ? togglePicker : undefined, icon: !eqOnly ? 'ellipsisVertical' : 'warning', iconPlacement: "right", iconTooltip: eqOnly ? eqOnlyTxt : undefined, type: "text", className: className, error: (!!validation && isInvalid && validation.errorMsg) || '', errorAppearance:
|
|
94
|
+
return (_jsxs("div", { ref: pickerRef, children: [_jsx(Input, __assign({ name: name, "data-test": name, "data-cy": "".concat(name, "Inp"), value: fieldValue, label: label, onChange: onChangeTextInput, iconOnClick: !eqOnly ? togglePicker : undefined, icon: !eqOnly ? 'ellipsisVertical' : 'warning', iconPlacement: "right", iconTooltip: eqOnly ? eqOnlyTxt : undefined, type: "text", className: className, error: (!!validation && isInvalid && validation.errorMsg) || '', errorAppearance: "tooltip", autoComplete: "off" }, rest)), isOpen && (_jsx(OverlayComponent, { children: _jsx(IconList, { list: comparatorOptions, selected: comparator, onClick: onChangeComparator }) }))] }));
|
|
95
95
|
};
|
|
96
96
|
export default TextRange;
|
|
@@ -22,7 +22,7 @@ export var CommonGridWrap = styled(x.div)(templateObject_3 || (templateObject_3
|
|
|
22
22
|
return (withPagination ? gridFooterHeight : 0);
|
|
23
23
|
});
|
|
24
24
|
export var StyledButtonStrip = styled(x.div)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: relative;\n padding: 18px 20px;\n display: flex;\n justify-content: space-between;\n width: 100%;\n min-height: ", "px;\n flex-wrap: wrap;\n z-index: 3;\n"], ["\n position: relative;\n padding: 18px 20px;\n display: flex;\n justify-content: space-between;\n width: 100%;\n min-height: ", "px;\n flex-wrap: wrap;\n z-index: 3;\n"])), gridButtonStripHeight);
|
|
25
|
-
export var CommonGridWithStyles = styled(CommonGrid)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: calc(100% - ", "px);\n\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n }\n\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n\n & .body {\n flex-grow: 1;\n }\n\n & .gridWrapper {\n background-color: ", ";\n width: auto;\n padding-bottom: 35px;\n\n @media (min-width: 1024px) {\n height: 100%;\n overflow-y: auto;\n padding-bottom: 0;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 4px;\n padding-right: 4px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n\n .sticky-right,\n .sticky-left {\n background: white;\n }\n\n .sticky-right {\n border-left: 1px solid #dfe1e6;\n }\n\n .sticky-left {\n border-right: 1px solid #dfe1e6;\n }\n\n &:hover,\n &.checked,\n &.selected {\n background-color: red30;\n }\n }\n\n .dataRow:nth-child(even) {\n .sticky-left,\n .sticky-right {\n background-color: bgLightGray;\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n z-index: 1;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"], ["\n height: calc(100% - ", "px);\n\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n }\n\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n\n & .body {\n flex-grow: 1;\n }\n\n & .gridWrapper {\n background-color: ", ";\n width: auto;\n padding-bottom: 35px;\n\n @media (min-width: 1024px) {\n height: 100%;\n overflow-y: auto;\n padding-bottom: 0;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 4px;\n padding-right: 4px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n\n .sticky-right,\n .sticky-left {\n background: white;\n }\n\n .sticky-right {\n border-left: 1px solid #dfe1e6;\n }\n\n .sticky-left {\n border-right: 1px solid #dfe1e6;\n }\n\n &:hover,\n &.checked,\n &.selected {\n background-color: red30;\n }\n }\n\n .dataRow:nth-child(even) {\n .sticky-left,\n .sticky-right {\n background-color: bgLightGray;\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n z-index: 1;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"])), function (_a) {
|
|
25
|
+
export var CommonGridWithStyles = styled(CommonGrid)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: calc(100% - ", "px);\n\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n }\n\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n\n & .body {\n flex-grow: 1;\n }\n\n & .gridWrapper {\n background-color: ", ";\n width: auto;\n padding-bottom: 35px;\n\n @media (min-width: 1024px) {\n height: 100%;\n overflow-y: auto;\n padding-bottom: 0;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 4px;\n padding-right: 4px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n\n .sticky-right,\n .sticky-left {\n background-color: white;\n }\n\n .sticky-right {\n border-left: 1px solid #dfe1e6;\n }\n\n .sticky-left {\n border-right: 1px solid #dfe1e6;\n }\n\n &:hover,\n &.checked,\n &.selected {\n background-color: red30;\n }\n }\n\n .dataRow:nth-child(even) {\n .sticky-left,\n .sticky-right {\n background-color: bgLightGray;\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n z-index: 1;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"], ["\n height: calc(100% - ", "px);\n\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n }\n\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n\n & .sticky {\n background-color: bgLightGray1;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n\n & .body {\n flex-grow: 1;\n }\n\n & .gridWrapper {\n background-color: ", ";\n width: auto;\n padding-bottom: 35px;\n\n @media (min-width: 1024px) {\n height: 100%;\n overflow-y: auto;\n padding-bottom: 0;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 4px;\n padding-right: 4px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n\n .sticky-right,\n .sticky-left {\n background-color: white;\n }\n\n .sticky-right {\n border-left: 1px solid #dfe1e6;\n }\n\n .sticky-left {\n border-right: 1px solid #dfe1e6;\n }\n\n &:hover,\n &.checked,\n &.selected {\n background-color: red30;\n }\n }\n\n .dataRow:nth-child(even) {\n .sticky-left,\n .sticky-right {\n background-color: bgLightGray;\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n z-index: 1;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"])), function (_a) {
|
|
26
26
|
var withButtonStrip = _a.withButtonStrip;
|
|
27
27
|
return (withButtonStrip ? gridButtonStripHeight : 0);
|
|
28
28
|
}, th('fonts.primary'), gridRowHeight, function (_a) {
|
|
@@ -17,7 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
17
17
|
import { components as selectComponents } from 'react-select';
|
|
18
18
|
import styled, { th } from '@xstyled/styled-components';
|
|
19
19
|
// MultiValue container with count of selected options
|
|
20
|
-
var StyledNumber = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: ", ";\n height: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n border-radius: md;\n padding: 2px 6px;\n"], ["\n background: ", ";\n height: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n border-radius: md;\n padding: 2px 6px;\n"])), th.color('lightGray7'));
|
|
20
|
+
var StyledNumber = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n border-radius: md;\n padding: 2px 6px;\n"], ["\n background-color: ", ";\n height: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n border-radius: md;\n padding: 2px 6px;\n"])), th.color('lightGray7'));
|
|
21
21
|
var CountMultiValue = function (props) {
|
|
22
22
|
var _a, _b;
|
|
23
23
|
var shortValues = props.selectProps.shortValues;
|
|
@@ -37,7 +37,7 @@ export var CustomStyles = {
|
|
|
37
37
|
},
|
|
38
38
|
multiValue: function (styles, state) {
|
|
39
39
|
var theme = state.theme;
|
|
40
|
-
return __assign(__assign({}, styles), { color: theme.colors.inputTextColor, fontWeight: theme.textWeightNormal, backgroundColor:
|
|
40
|
+
return __assign(__assign({}, styles), { color: theme.colors.inputTextColor, fontWeight: theme.textWeightNormal, backgroundColor: theme.colors.lightGray7, borderRadius: '4px', '& svg': {
|
|
41
41
|
color: theme.colors.inputTextColor,
|
|
42
42
|
}, ' > div': {
|
|
43
43
|
fontSize: '12px',
|
|
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import styled, { th } from '@xstyled/styled-components';
|
|
6
6
|
import { Icon } from '../../Elements/Icon';
|
|
7
|
-
export var FakeInput = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n min-width: ", ";\n height: ", ";\n border-radius: md;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n transform: rotate(0);\n overflow: hidden;\n border: slim;\n border-color: lightGray5;\n\n input[type='checkbox']:not(:disabled):hover + & {\n border-color: gray1;\n }\n\n input[type='checkbox']:disabled + & {\n background-color: white;\n border-color: lightGray7;\n }\n\n input[type='checkbox']:checked:disabled + & {\n background-color: bgLightGray1;\n border-color: bgLightGray1;\n }\n\n input[type='checkbox']:checked:not(:disabled) + & {\n transform: rotate(0deg);\n background-color: red1;\n border-color: red1;\n }\n\n input[type='checkbox']:not(:checked):not(:disabled) + & {\n transform: rotate(90deg);\n background-color:
|
|
7
|
+
export var FakeInput = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n min-width: ", ";\n height: ", ";\n border-radius: md;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n transform: rotate(0);\n overflow: hidden;\n border: slim;\n border-color: lightGray5;\n\n input[type='checkbox']:not(:disabled):hover + & {\n border-color: gray1;\n }\n\n input[type='checkbox']:disabled + & {\n background-color: white;\n border-color: lightGray7;\n }\n\n input[type='checkbox']:checked:disabled + & {\n background-color: bgLightGray1;\n border-color: bgLightGray1;\n }\n\n input[type='checkbox']:checked:not(:disabled) + & {\n transform: rotate(0deg);\n background-color: red1;\n border-color: red1;\n }\n\n input[type='checkbox']:not(:checked):not(:disabled) + & {\n transform: rotate(90deg);\n background-color: transparent;\n border-color: lightGray5;\n }\n"], ["\n width: ", ";\n min-width: ", ";\n height: ", ";\n border-radius: md;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n transform: rotate(0);\n overflow: hidden;\n border: slim;\n border-color: lightGray5;\n\n input[type='checkbox']:not(:disabled):hover + & {\n border-color: gray1;\n }\n\n input[type='checkbox']:disabled + & {\n background-color: white;\n border-color: lightGray7;\n }\n\n input[type='checkbox']:checked:disabled + & {\n background-color: bgLightGray1;\n border-color: bgLightGray1;\n }\n\n input[type='checkbox']:checked:not(:disabled) + & {\n transform: rotate(0deg);\n background-color: red1;\n border-color: red1;\n }\n\n input[type='checkbox']:not(:checked):not(:disabled) + & {\n transform: rotate(90deg);\n background-color: transparent;\n border-color: lightGray5;\n }\n"])), function (_a) {
|
|
8
8
|
var size = _a.size;
|
|
9
9
|
return size;
|
|
10
10
|
}, function (_a) {
|
package/ui/Forms/Input/styles.js
CHANGED
|
@@ -29,7 +29,7 @@ export var IconsController = styled.div(templateObject_3 || (templateObject_3 =
|
|
|
29
29
|
export var IconWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n svg {\n :hover {\n cursor: pointer;\n color: blue2;\n }\n }\n"], ["\n display: flex;\n svg {\n :hover {\n cursor: pointer;\n color: blue2;\n }\n }\n"])));
|
|
30
30
|
export var StyledInput = styled.input.attrs(function (props) { return ({
|
|
31
31
|
as: props.$asTextArea ? 'textarea' : 'input'
|
|
32
|
-
}); })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n border: slim;\n border-color: ", ";\n box-sizing: border-box;\n background-clip: padding-box;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n padding-right: ", "em;\n display: block;\n width: ", ";\n font-family: ", ";\n font-size: 14px;\n font-weight: normal;\n transition: inputTransition;\n resize: none;\n overflow: hidden;\n\n ~ ", " {\n svg {\n stroke: lightGray3;\n }\n }\n\n ::placeholder {\n color: gray1;\n opacity: 1;\n }\n\n :focus {\n background-color: white;\n border-color: blue2;\n color: typoPrimary;\n outline: 0;\n\n ~ ", " {\n svg {\n stroke: blue2;\n color: blue2;\n }\n }\n }\n ", ";\n ", ";\n :disabled,\n :disabled:hover {\n background-color: bgLightGray1;\n border-color: lightGray6;\n color: neutral300;\n }\n\n text-overflow: ellipsis;\n\n -moz-appearance: textfield;\n appearance: textfield;\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n"], ["\n ", ";\n border: slim;\n border-color: ", ";\n box-sizing: border-box;\n background-clip: padding-box;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n padding-right: ", "em;\n display: block;\n width: ", ";\n font-family: ", ";\n font-size: 14px;\n font-weight: normal;\n transition: inputTransition;\n resize: none;\n overflow: hidden;\n\n ~ ", " {\n svg {\n stroke: lightGray3;\n }\n }\n\n ::placeholder {\n color: gray1;\n opacity: 1;\n }\n\n :focus {\n background-color: white;\n border-color: blue2;\n color: typoPrimary;\n outline: 0;\n\n ~ ", " {\n svg {\n stroke: blue2;\n color: blue2;\n }\n }\n }\n ", ";\n ", ";\n :disabled,\n :disabled:hover {\n background-color: bgLightGray1;\n border-color: lightGray6;\n color: neutral300;\n }\n\n text-overflow: ellipsis;\n\n -moz-appearance: textfield;\n appearance: textfield;\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n"])), system, function (_a) {
|
|
32
|
+
}); })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n border: slim;\n border-color: ", ";\n background-color: transparent;\n box-sizing: border-box;\n background-clip: padding-box;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n padding-right: ", "em;\n display: block;\n width: ", ";\n font-family: ", ";\n font-size: 14px;\n font-weight: normal;\n transition: inputTransition;\n resize: none;\n overflow: hidden;\n\n ~ ", " {\n svg {\n stroke: lightGray3;\n }\n }\n\n ::placeholder {\n color: gray1;\n opacity: 1;\n }\n\n :focus {\n background-color: white;\n border-color: blue2;\n color: typoPrimary;\n outline: 0;\n\n ~ ", " {\n svg {\n stroke: blue2;\n color: blue2;\n }\n }\n }\n ", ";\n ", ";\n :disabled,\n :disabled:hover {\n background-color: bgLightGray1;\n border-color: lightGray6;\n color: neutral300;\n }\n\n text-overflow: ellipsis;\n\n -moz-appearance: textfield;\n appearance: textfield;\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n"], ["\n ", ";\n border: slim;\n border-color: ", ";\n background-color: transparent;\n box-sizing: border-box;\n background-clip: padding-box;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n padding-right: ", "em;\n display: block;\n width: ", ";\n font-family: ", ";\n font-size: 14px;\n font-weight: normal;\n transition: inputTransition;\n resize: none;\n overflow: hidden;\n\n ~ ", " {\n svg {\n stroke: lightGray3;\n }\n }\n\n ::placeholder {\n color: gray1;\n opacity: 1;\n }\n\n :focus {\n background-color: white;\n border-color: blue2;\n color: typoPrimary;\n outline: 0;\n\n ~ ", " {\n svg {\n stroke: blue2;\n color: blue2;\n }\n }\n }\n ", ";\n ", ";\n :disabled,\n :disabled:hover {\n background-color: bgLightGray1;\n border-color: lightGray6;\n color: neutral300;\n }\n\n text-overflow: ellipsis;\n\n -moz-appearance: textfield;\n appearance: textfield;\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n"])), system, function (_a) {
|
|
33
33
|
var $isInvalid = _a.$isInvalid;
|
|
34
34
|
return ($isInvalid ? th.color('red1') : th.color('lightGray6'));
|
|
35
35
|
}, function (props) { return resolvePaddingRight(props); }, function (props) { return props.type !== 'checkbox' ? '100%' : 'auto'; }, th('fonts.primary'), InputIcon, InputIcon, function (_a) {
|
package/ui/index.es.js
CHANGED
|
@@ -14791,7 +14791,7 @@ const Soe = /* @__PURE__ */ ir(xoe), oB = (e) => {
|
|
|
14791
14791
|
|
|
14792
14792
|
input[type='checkbox']:not(:checked):not(:disabled) + & {
|
|
14793
14793
|
transform: rotate(90deg);
|
|
14794
|
-
background-color:
|
|
14794
|
+
background-color: transparent;
|
|
14795
14795
|
border-color: lightGray5;
|
|
14796
14796
|
}
|
|
14797
14797
|
`, Ioe = Y(At)`
|
|
@@ -19142,7 +19142,7 @@ const QB = Y.div`
|
|
|
19142
19142
|
l && /* @__PURE__ */ p.jsx(jue, { onReset: n })
|
|
19143
19143
|
] });
|
|
19144
19144
|
}, Hue = Y.div`
|
|
19145
|
-
background: ${W.color("lightGray7")};
|
|
19145
|
+
background-color: ${W.color("lightGray7")};
|
|
19146
19146
|
height: 25px;
|
|
19147
19147
|
justify-content: center;
|
|
19148
19148
|
align-items: center;
|
|
@@ -19258,7 +19258,7 @@ const QB = Y.div`
|
|
|
19258
19258
|
...e,
|
|
19259
19259
|
color: n.colors.inputTextColor,
|
|
19260
19260
|
fontWeight: n.textWeightNormal,
|
|
19261
|
-
backgroundColor:
|
|
19261
|
+
backgroundColor: n.colors.lightGray7,
|
|
19262
19262
|
borderRadius: "4px",
|
|
19263
19263
|
"& svg": {
|
|
19264
19264
|
color: n.colors.inputTextColor
|
|
@@ -27929,6 +27929,7 @@ const BAe = (e) => {
|
|
|
27929
27929
|
border-color: ${({
|
|
27930
27930
|
$isInvalid: e
|
|
27931
27931
|
}) => e ? W.color("red1") : W.color("lightGray6")};
|
|
27932
|
+
background-color: transparent;
|
|
27932
27933
|
box-sizing: border-box;
|
|
27933
27934
|
background-clip: padding-box;
|
|
27934
27935
|
padding-top: 0.5em;
|
|
@@ -40513,7 +40514,7 @@ const mwe = (e = {}, t) => l7e(e, (n) => {
|
|
|
40513
40514
|
|
|
40514
40515
|
.sticky-right,
|
|
40515
40516
|
.sticky-left {
|
|
40516
|
-
background: white;
|
|
40517
|
+
background-color: white;
|
|
40517
40518
|
}
|
|
40518
40519
|
|
|
40519
40520
|
.sticky-right {
|
package/ui/index.umd.js
CHANGED
|
@@ -1217,7 +1217,7 @@ Message: ${e}`),e}}const Aa=e=>typeof e=="string",f7=e=>typeof e=="function",SD=
|
|
|
1217
1217
|
|
|
1218
1218
|
input[type='checkbox']:not(:checked):not(:disabled) + & {
|
|
1219
1219
|
transform: rotate(90deg);
|
|
1220
|
-
background-color:
|
|
1220
|
+
background-color: transparent;
|
|
1221
1221
|
border-color: lightGray5;
|
|
1222
1222
|
}
|
|
1223
1223
|
`,Aoe=Y(lt)`
|
|
@@ -1458,7 +1458,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1458
1458
|
background-color: ${({isSelected:e})=>e?V.color("red30"):V.color("bgLightGray1")};
|
|
1459
1459
|
}
|
|
1460
1460
|
`,Lue=({onCustomSelectAll:e,onCustomDeselectAll:t,value:n,options:r,maxMenuHeight:i,theme:o})=>{const l=o.optionVariant==="checkbox",c=o.optionVariant==="toggle",d=C.useRef(null),[f,A]=C.useState(!1),[g,v]=C.useState(!1),y=C.useCallback(()=>{g?g&&(v(!1),t()):(v(!0),e({options:r}))},[g,t,e,r]);return C.useEffect(()=>{var w;(w=d==null?void 0:d.current)!=null&&w.offsetHeight&&A(d.current.offsetHeight*((r==null?void 0:r.length)||0)>i)},[f,i,r==null?void 0:r.length,n]),C.useEffect(()=>{n&&Array.isArray(n)&&((r==null?void 0:r.length)===n.length&&v(!0),(r==null?void 0:r.length)!==n.length&&v(!1))},[i,r==null?void 0:r.length,n]),r!=null&&r.length?p.jsxs(Mue,{isSelected:g,onClick:y,ref:d,additionalPadding:f,children:[(l||c)&&p.jsxs(rF,{children:[l&&p.jsx(b1,{checked:g,size:2,readOnly:!0}),c&&p.jsx(M1,{name:"",checked:g,spaceAround:!1,variant:"grid"})]}),p.jsx(ft,{id:"datagrid.filterCell.selectAllLabel",message:"select all"})," (",r==null?void 0:r.length,")"]}):null},Oue=e=>{const{theme:t}=e,{resetGrid:n,onCustomSelectAll:r,onCustomDeselectAll:i,value:o,resetGridButton:l,selectAllButton:c,maxMenuHeight:d,isLoading:f}=e.selectProps,A=C.useMemo(()=>{var g,v;return(v=(g=e.children)==null?void 0:g.map)==null?void 0:v.call(g,({props:{value:y,label:w}})=>({label:w,value:y}))},[e.children]);return p.jsxs(Jr.components.MenuList,{...e,children:[c&&!f&&p.jsx(Lue,{theme:t,onCustomSelectAll:r,onCustomDeselectAll:i,value:o,options:A,maxMenuHeight:d}),e.children,l&&p.jsx(kue,{onReset:n})]})},Pue=Y.div`
|
|
1461
|
-
background: ${V.color("lightGray7")};
|
|
1461
|
+
background-color: ${V.color("lightGray7")};
|
|
1462
1462
|
height: 25px;
|
|
1463
1463
|
justify-content: center;
|
|
1464
1464
|
align-items: center;
|
|
@@ -1474,7 +1474,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1474
1474
|
& > * {
|
|
1475
1475
|
color: ${({hasValue:e})=>e?"black":"#a3b3c1"};
|
|
1476
1476
|
}
|
|
1477
|
-
`,jue=e=>{var l,c;const{children:t,...n}=e,r=(l=n.selectProps)==null?void 0:l.icon,i=n.hasValue,o=(c=n.selectProps)==null?void 0:c.onIconClick;return p.jsxs(p.Fragment,{children:[r&&p.jsx(Nue,{className:"inputIcon",hasValue:i,onMouseDown:o,children:p.jsx(lt,{icon:r})}),p.jsx(Jr.components.ValueContainer,{...n,children:t})]})},Rue=e=>{const t=e.getStyles("option",e),{data:n,selectOption:r,innerProps:i}=e,o=C.useCallback(()=>r(n),[n,r]);return p.jsx("div",{style:t,onClick:o,onMouseOver:i.onMouseOver,onMouseMove:i.onMouseMove,children:e.label})},zue=C.memo(Rue,(e,t)=>{var n,r;return e.isFocused===t.isFocused&&((n=e.data)==null?void 0:n.label)===((r=t.data)==null?void 0:r.label)}),Wue={control:(e,{selectProps:t,theme:n,isFocused:r,isDisabled:i})=>{const o=n.colors;return{...e,borderColor:t.isInvalid?o.primary:r?o.inputTextColor:o.inputBorderColor,backgroundColor:i?o.menuHoverBackgroundColor:o.whiteBackgroundColor,boxShadow:n.focusBoxShadow,borderRadius:n.borderRadius,"& input":{fontWeight:n.textWeightNormal,fontFamily:n.font},"&:hover":{...e["&:hover"]??{},borderColor:o.inputBorderHoverColor},fontSize:"14px",minWidth:"min-content",".inputIcon":{color:i?o.defaultControlColor:t.value?o.inputTextColor:o.defaultControlColor}}},valueContainer:(e,{theme:t})=>({...e,width:"50px",flexWrap:t.flexWrap}),singleValue:(e,{selectProps:t,theme:n,isDisabled:r})=>({...e,position:"absolute",top:"50%",transform:"translateY(-50%)",color:t.isInvalid?n.colors.primary:r?n.colors.disabledTextColor:n.colors.inputTextColor,fontSize:"14px",fontWeight:n.textWeightNormal}),multiValue:(e,t)=>{const{theme:n}=t;return{...e,color:n.colors.inputTextColor,fontWeight:n.textWeightNormal,backgroundColor:"#E7EBEF",borderRadius:"4px","& svg":{color:n.colors.inputTextColor}," > div":{fontSize:"12px"}}},multiValueLabel:e=>({...e,fontSize:"unset",padding:"5px"}),multiValueRemove:(e,{theme:t})=>({...e,color:t.colors.inputBorderColor}),placeholder:(e,t)=>{const{theme:n,selectProps:r}=t;return{...e,fontSize:"14px",fontWeight:n.textWeightNormal,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 8px)",color:r.isDarkPlaceholderText?n.colors.inputTextColor:n.colors.placeholderTextColor}},loadingMessage:(e,{theme:t})=>({...e,color:t.colors.optionTextColor}),noOptionsMessage:(e,{theme:t})=>({...e,color:t.colors.optionTextColor}),input:(e,{theme:t})=>({...e,color:t.colors.inputTextColor}),option:(e,{isSelected:t,theme:n,isDisabled:r,selectProps:i})=>{const o=n.colors.optionTextColor;return{color:t?n.colors.primary:o,backgroundColor:t?n.colors.activeOptionBackground:void 0,fontWeight:n.textWeightNormal,fontSize:"14px",cursor:r?"default":"pointer",display:"flex",flexDirection:"row",alignItems:"center",padding:"7px 10px",minHeight:"36px",marginRight:"4px",marginBottom:"2px",lineHeight:"22px",borderRadius:V.radius("ml")({theme:i==null?void 0:i.systemTheme}),"&:hover":{backgroundColor:t?n.colors.hoverToActiveOptionBackground:r?void 0:n.colors.menuHoverBackgroundColor}}},menu:(e,t)=>{const{theme:n}=t;return{...e,boxShadow:"0 2px 20px 0 rgba(0, 0, 0, 0.10);",marginTop:"4px",paddingTop:"0",borderRadius:"10px",zIndex:3,minWidth:"max-content",backgroundColor:n.colors.whiteBackgroundColor}},menuList:(e,{theme:t})=>({...e,margin:"8px 4px 8px 8px","::-webkit-scrollbar-thumb":{border:"none",borderRadius:"4px",height:"47px",backgroundColor:t.colors.defaultControlColor,"&:hover":{backgroundColor:t.colors.dropdownIndicatorColor}},"::-webkit-scrollbar":{width:"10px"},"::-webkit-scrollbar-track":{backgroundColor:t.colors.menuHoverBackgroundColor,borderRadius:"6px"}}),dropdownIndicator:(e,t)=>{const{theme:n,isDisabled:r}=t;return{...e,justifyContent:"center",alignItems:"center","& svg":{stroke:r?n.colors.dropdownIndicatorColor:n.colors.inputTextColor},padding:"0px 5px 0px 0px","@media (min-width: 1024px)":{padding:"0px 10px 0px 1px"}}},clearIndicator:(e,t)=>{const{theme:n}=t;return{...e,justifyContent:"center",alignItems:"center",padding:n.narrowIndicators?"0px 4px 0px 0px":"0px 4px",color:n.colors.dropdownIndicatorColor}},indicatorSeparator:()=>({display:"none"})},Vue=(e,t,n)=>{const r=V.color("blue2")({theme:e}),i={primary:V.color("red1")({theme:e}),inputTextColor:r,whiteBackgroundColor:V.color("white")({theme:e}),optionTextColor:V.color("blue2")({theme:e}),menuHoverBackgroundColor:V.color("bgLightGray1")({theme:e}),inputDisabledColor:V.color("lightGray1")({theme:e}),inputBorderColor:V.color("lightGray3")({theme:e}),placeholderTextColor:V.color("lightGray3")({theme:e}),defaultControlColor:V.color("lightGray5")({theme:e}),disabledTextColor:V.color("lightGray6")({theme:e}),dropdownIndicatorColor:V.color("gray1")({theme:e}),inputBorderHoverColor:V.color("gray5")({theme:e}),activeOptionBackground:V.color("red20")({theme:e}),hoverToActiveOptionBackground:V.color("red30")({theme:e})};return o=>({...o,colors:i,focusBoxShadow:null,height:"38px",flexWrap:n?"nowrap":"wrap",textWeightNormal:V.fontWeight("normal")({theme:e}),optionVariant:t,borderRadius:V.radius("lg")({theme:e}),font:V.font("primary")({theme:e}),narrowIndicators:!!n})},iF=(e="form",t="default",n="default",r="default",i=!1,o=!1,l=!1)=>{const c=ut();return C.useMemo(()=>{const d={ValueContainer:jue};d.DropdownIndicator=Fue,n==="count"&&(d.MultiValue=Tue),r==="search"&&(d.DropdownIndicator=null),(l||o)&&(d.MenuList=Oue),d.Input=Due;const f=Vue(c,t,e=="gridFilter"),A=Wue;return d.Option=Iue,i&&(d.Option=zue),[d,f,A]},[n,r,l,o,e,i,c,t])},aF=[],Hue=()=>je._({id:"select.noOptions",message:"no options"}),Gue=()=>je._({id:"components.dropdown.loading",message:"Loading..."}),Y3=({label:e,name:t,value:n="",options:r=aF,defaultOptions:i,loadOptions:o,onChange:l,onBlur:c,error:d,isInvalid:f,isLoading:A,isDarkPlaceholderText:g,spaceAround:v=!1,disabled:y,onInputChange:w,isSearchable:S,isMulti:I,className:E,useSimplifiedOptions:M=!1,showSelectAllButton:L=!1,showResetGridButton:T=!1,shortValues:P=!0,style:R,optionVariant:F,multiLabelVariant:W,containerVariant:_,placeholder:U,placeholderIcon:B,innerRef:H,maxMenuHeight:ee,getOptionValue:oe,resetGrid:ie,onIconClick:q,...ue})=>{const pe=!!o;L&&!I&&console.error("CheckboxSelect incompatible props");const fe=C.useCallback(({options:De})=>{l==null||l(De||[])},[l,r]),J=C.useCallback(()=>{typeof l=="function"&&(l==null||l(aF))},[l]),z=_==="search"&&!B&&B!==null?"search":B||void 0,$=T&&L&&ee?ee-30:ee,[ae,ce,se]=iF(R,F,W,_,M,L,T),K=pe?tF:vue;let ne;const le=C.useMemo(()=>oe||(De=>De==null?void 0:De.value),[oe]);Array.isArray(n)?(ne=(i||r).filter(De=>n.includes(le(De))),ne=ne!=null&&ne.length?ne:null):n!==void 0&&(ne=(i||r).find(De=>le(De)===n)||null);const ge=ut(),be=C.useMemo(()=>o?async De=>await o(De):void 0,[o]);return p.jsxs(ms,{spaceAround:v,className:E,children:[p.jsxs(eF,{children:[e&&p.jsx(Fc,{htmlFor:t,children:e}),p.jsx(K,{id:t,name:t,options:r,loadOptions:be,defaultOptions:i,value:ne,onChange:l,onBlur:c,isDisabled:y||A,isLoading:A,isInvalid:f!==void 0?f:!!d,isDarkPlaceholderText:g,placeholder:U||je._({id:"components.dropdown.placeholder",message:"Select..."}),styles:se,theme:ce,icon:z,onIconClick:q,hideSelectedOptions:!!(I&&W!="count"),onInputChange:w,isSearchable:pe||S,isMulti:I,classNamePrefix:"react-select",components:ae,closeMenuOnSelect:I?!1:void 0,noOptionsMessage:Hue,...ue,ref:H,tabIndex:null,systemTheme:ge,resetGrid:ie,onCustomSelectAll:fe,onCustomDeselectAll:J,selectAllButton:L,resetGridButton:T,maxMenuHeight:$,getOptionValue:oe,loadingMessage:Gue,shortValues:P})]}),d&&p.jsx(C1,{children:d})]})};let _ue=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var _7,oF;function Uue(){if(oF)return _7;oF=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return _7=e,_7}var U7,sF;function Zue(){if(sF)return U7;sF=1;function e(t,n,r){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(o);++i<o;)l[i]=t[i+n];return l}return U7=e,U7}var Z7,lF;function Yue(){if(lF)return Z7;lF=1;var e=Hg(),t=Zue();function n(r,i){return i.length<2?r:e(r,t(i,0,-1))}return Z7=n,Z7}var Y7,cF;function Jue(){if(cF)return Y7;cF=1;var e=$f(),t=Uue(),n=Yue(),r=Lc();function i(o,l){return l=e(l,o),o=n(o,l),o==null||delete o[r(t(l))]}return Y7=i,Y7}var J7,uF;function Xue(){if(uF)return J7;uF=1;var e=uD();function t(n){return e(n)?void 0:n}return J7=t,J7}var X7,dF;function fF(){if(dF)return X7;dF=1;var e=Ng(),t=t7(),n=Jue(),r=$f(),i=v1(),o=Xue(),l=gD(),c=XT(),d=1,f=2,A=4,g=l(function(v,y){var w={};if(v==null)return w;var S=!1;y=e(y,function(E){return E=r(E,v),S||(S=E.length>1),E}),i(v,c(v),w),S&&(w=t(w,d|f|A,o));for(var I=y.length;I--;)n(w,y[I]);return w});return X7=g,X7}var Que=c7,AF=Que("omit",fF());AF.placeholder=A3();var Kue=AF;const que=Hn(Kue),Q7=`_create_${_ue()}_`,$ue=Jr.createFilter(),e0e=(e,t)=>(e==null?void 0:e.value)==Q7?!0:$ue(e,t),K7=e=>e===null?null:Array.isArray(e)?e.map(t=>t.value):e.value,t0e=()=>je._({id:"components.dropdown.loading",message:"Loading..."}),q7=e=>{const{name:t,onChange:n,onBlur:r,onValueChange:i,loadOptions:o,asyncLoadMinChars:l=0,isLocked:c,lockedText:d=je._({id:"components.dropdown.notReact",message:"Select related values first..."}),disabled:f,placeholder:A=je._({id:"components.dropdown.placeholder",message:"Select..."}),preload:g,initialOptions:v,onCreateOption:y,options:w,filterOption:S,shouldReloadOptions:I=!1}=e,[E,M]=C.useState(!1),L=!!o||!!y,T=C.useCallback(q=>o?q.length<l?je._({id:"components.dropdown.writeMoreChars",message:"Write at least ${asyncLoadMinChars} characters."}):je._({id:"dataGrid.filterCell",message:"Type to filter"}):je._({id:"components.dropdown.noOptions",message:"No options"}),[o,l]),P=C.useCallback(async q=>y?q.trim()?await Promise.resolve([...w||[],{value:Q7,label:`${q} (${je._({id:"components.dropdown.newOption",message:"new value"})})`,inputValue:q}]):await Promise.resolve(w||[]):!o||q.length<l?await Promise.resolve([]):await o(q,!1),[y,o,l,w]),[R,F]=C.useState(w||[]);C.useEffect(()=>{o&&g&&!e.value&&o("",!1).then(F)},[o]);const[W,_]=C.useState(null);C.useEffect(()=>{if(v&&v.length){const q=v.find(ue=>ue.value==e.value)||null;_(q)}o&&!v&&e.value&&o(String(e.value),!0).then(q=>{_((q==null?void 0:q[0])||null)})},[v,_]),C.useEffect(()=>{I&&F(w||[])},[w]);const U=C.useCallback(async q=>{var pe,fe,J;let ue;if(y&&(q==null?void 0:q.value)==Q7)if(q!=null&&q.inputValue&&((fe=(pe=q==null?void 0:q.inputValue)==null?void 0:pe.trim())==null?void 0:fe.length)<2){e==null||e.form.setFieldTouched(t,!0,!0),e==null||e.form.setFieldError(t,je._({id:"form.general.min2Chars",message:"Minimal length is 2 characters."}));return}else{M(!0);const z=await y(((J=q==null?void 0:q.inputValue)==null?void 0:J.trim())??"");ue=K7(z),M(!1)}else ue=K7(q),o&&_(q);n&&n({target:{name:t??"",type:"change",value:ue}}),i&&i(ue)},[y,o,n,i,e==null?void 0:e.form,t]),B=C.useCallback(q=>{r&&r({target:{name:t,type:"blur",value:K7(q)}})},[t,r]),H=["onValueChange","placeholder","options","loadOptions","asyncLoadMinChars"],oe=c&&!f?d:A,ie=C.useMemo(()=>{if(!L)return;const q=y?w:R;return W?q?[...q,W]:[W]:q||void 0},[L,R,y,w,W]);return p.jsx(Y3,{...que(H,e),filterOption:S||e0e,disabled:f||c,onChange:U,onBlur:B,placeholder:oe,loadingMessage:t0e,noOptionsMessage:T,loadOptions:L?P:void 0,containerVariant:L?"search":void 0,defaultOptions:ie,options:L?void 0:w,isLoading:E||e.isLoading})};function n0e(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 r0e=n0e,$7=EO(),i0e=QP,a0e=ag,o0e=1/0,s0e=$7&&1/a0e(new $7([,-0]))[1]==o0e?function(e){return new $7(e)}:i0e,l0e=s0e,c0e=XL,u0e=fT,d0e=r0e,f0e=QL,A0e=l0e,h0e=ag,p0e=200;function g0e(e,t,n){var r=-1,i=u0e,o=e.length,l=!0,c=[],d=c;if(n)l=!1,i=d0e;else if(o>=p0e){var f=t?null:A0e(e);if(f)return h0e(f);l=!1,i=f0e,d=new c0e}else d=t?[]:c;e:for(;++r<o;){var A=e[r],g=t?t(A):A;if(A=n||A!==0?A:0,l&&g===g){for(var v=d.length;v--;)if(d[v]===g)continue e;t&&d.push(g),c.push(A)}else i(d,g,n)||(d!==c&&d.push(g),c.push(A))}return c}var m0e=g0e,v0e=n3,y0e=m0e;function b0e(e,t){return e&&e.length?y0e(e,v0e(t)):[]}var C0e=b0e;const w0e=Hn(C0e),J3=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&"label"in t&&"value"in t),x0e=120,hF=({onChange:e,isClearable:t=!0,disabled:n,placeholder:r,showValue:i=!0,columnWidth:o,isMulti:l,value:c,options:d,checkAllButton:f,asyncLoadKey:A,onAsyncLoadFilterOptions:g,withNotEqComparator:v=!0})=>{const[y,w]=C.useState([]),[S,I]=C.useState(!1),E=!!A,M=C.useMemo(()=>J3(c)?c.some(U=>U.isNotEq):S,[c,S]),L=C.useCallback(U=>{e==null||e(!bQ(U)||!(U!=null&&U.length)?null:U==null?void 0:U.map(B=>({...B,isNotEq:M})))},[e,M]),T=C.useCallback(async U=>{let B=[];return A&&(B=await(g==null?void 0:g(A,U))||[]),w(B),B},[A,g]),P=C.useCallback(U=>{if(U.preventDefault(),U.stopPropagation(),!c||!J3(c)){I(H=>!H);return}const B=c==null?void 0:c.map(H=>({...H,isNotEq:!M}));e(B)},[c,M,e]),R=C.useMemo(()=>l&&E&&J3(c)?w0e([...y,...c],"value"):void 0,[E,c,y]),F=o&&o>x0e,W=F?t:!1,_=r||(E?je._({id:"dataGrid.filterCell",message:"Type to filter"}):void 0);if(l){const U=F&&E?M?"notEqual":"equals":null,B=i?J3(c)?c.map(H=>String(H.value)):c:void 0;return p.jsx(Y3,{maxMenuHeight:250,onChange:L,value:B,options:R||d,showSelectAllButton:f,style:"gridFilter",loadOptions:E?T:void 0,defaultOptions:R,placeholder:_,noOptionsMessage:()=>null,containerVariant:E?"search":void 0,placeholderIcon:U,onIconClick:v?P:void 0,optionVariant:"checkbox",multiLabelVariant:"count",isMulti:!0,disabled:n,isClearable:W})}return p.jsx(q7,{maxMenuHeight:250,onChange:e,value:i?c:void 0,options:d,style:"gridFilter",loadOptions:E?T:void 0,placeholder:_,placeholderIcon:F?void 0:null,isClearable:W,disabled:n})},S0e=()=>[{value:"",label:je._({id:"dataGrid.columnActive.filterOptions.all",message:"All"})},{value:"1",label:je._({id:"dataGrid.columnActive.filterOptions.yes",message:"Yes"})},{value:"0",label:je._({id:"dataGrid.columnActive.filterOptions.no",message:"No"})}],I0e=e=>{const t=C.useMemo(()=>S0e(),[]);return p.jsx(hF,{options:t,...e,isClearable:!1})};class bl extends Error{}class E0e extends bl{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class k0e extends bl{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class M0e extends bl{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Wc extends bl{}class pF extends bl{constructor(t){super(`Invalid unit ${t}`)}}class br extends bl{}class ys extends bl{constructor(){super("Zone is an abstract class")}}const Pe="numeric",ha="short",bi="long",X3={year:Pe,month:Pe,day:Pe},gF={year:Pe,month:ha,day:Pe},L0e={year:Pe,month:ha,day:Pe,weekday:ha},mF={year:Pe,month:bi,day:Pe},vF={year:Pe,month:bi,day:Pe,weekday:bi},yF={hour:Pe,minute:Pe},bF={hour:Pe,minute:Pe,second:Pe},CF={hour:Pe,minute:Pe,second:Pe,timeZoneName:ha},wF={hour:Pe,minute:Pe,second:Pe,timeZoneName:bi},xF={hour:Pe,minute:Pe,hourCycle:"h23"},SF={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23"},IF={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:ha},EF={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:bi},kF={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe},MF={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe,second:Pe},LF={year:Pe,month:ha,day:Pe,hour:Pe,minute:Pe},OF={year:Pe,month:ha,day:Pe,hour:Pe,minute:Pe,second:Pe},O0e={year:Pe,month:ha,day:Pe,weekday:ha,hour:Pe,minute:Pe},PF={year:Pe,month:bi,day:Pe,hour:Pe,minute:Pe,timeZoneName:ha},TF={year:Pe,month:bi,day:Pe,hour:Pe,minute:Pe,second:Pe,timeZoneName:ha},DF={year:Pe,month:bi,day:Pe,weekday:bi,hour:Pe,minute:Pe,timeZoneName:bi},BF={year:Pe,month:bi,day:Pe,weekday:bi,hour:Pe,minute:Pe,second:Pe,timeZoneName:bi};class L1{get type(){throw new ys}get name(){throw new ys}get ianaName(){return this.name}get isUniversal(){throw new ys}offsetName(t,n){throw new ys}formatOffset(t,n){throw new ys}offset(t){throw new ys}equals(t){throw new ys}get isValid(){throw new ys}}let em=null;class Q3 extends L1{static get instance(){return em===null&&(em=new Q3),em}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return oN(t,n,r)}formatOffset(t,n){return D1(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const tm=new Map;function P0e(e){let t=tm.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),tm.set(e,t)),t}const T0e={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function D0e(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,l,c,d,f,A]=r;return[l,i,o,c,d,f,A]}function B0e(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:o,value:l}=n[i],c=T0e[o];o==="era"?r[c]=l:Ke(c)||(r[c]=parseInt(l,10))}return r}const nm=new Map;class ko extends L1{static create(t){let n=nm.get(t);return n===void 0&&nm.set(t,n=new ko(t)),n}static resetCache(){nm.clear(),tm.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=ko.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return oN(t,n,r,this.name)}formatOffset(t,n){return D1(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=P0e(this.name);let[i,o,l,c,d,f,A]=r.formatToParts?B0e(r,n):D0e(r,n);c==="BC"&&(i=-Math.abs(i)+1);const v=tA({year:i,month:o,day:l,hour:d===24?0:d,minute:f,second:A,millisecond:0});let y=+n;const w=y%1e3;return y-=w>=0?w:1e3+w,(v-y)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let FF={};function F0e(e,t={}){const n=JSON.stringify([e,t]);let r=FF[n];return r||(r=new Intl.ListFormat(e,t),FF[n]=r),r}const rm=new Map;function im(e,t={}){const n=JSON.stringify([e,t]);let r=rm.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),rm.set(n,r)),r}const am=new Map;function N0e(e,t={}){const n=JSON.stringify([e,t]);let r=am.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),am.set(n,r)),r}const om=new Map;function j0e(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=om.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(e,t),om.set(i,o)),o}let O1=null;function R0e(){return O1||(O1=new Intl.DateTimeFormat().resolvedOptions().locale,O1)}const sm=new Map;function NF(e){let t=sm.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),sm.set(e,t)),t}const lm=new Map;function z0e(e){let t=lm.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...jF,...t}),lm.set(e,t)}return t}function W0e(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=im(e).resolvedOptions(),i=e}catch{const d=e.substring(0,n);r=im(d).resolvedOptions(),i=d}const{numberingSystem:o,calendar:l}=r;return[i,o,l]}}function V0e(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function H0e(e){const t=[];for(let n=1;n<=12;n++){const r=Ue.utc(2009,n,1);t.push(e(r))}return t}function G0e(e){const t=[];for(let n=1;n<=7;n++){const r=Ue.utc(2016,11,13+n);t.push(e(r))}return t}function K3(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function _0e(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||NF(e.locale).numberingSystem==="latn"}class U0e{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:o,...l}=r;if(!n||Object.keys(l).length>0){const c={useGrouping:!1,...r};r.padTo>0&&(c.minimumIntegerDigits=r.padTo),this.inf=N0e(t,c)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):mm(t,3);return En(n,this.padTo)}}}class Z0e{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const l=-1*(t.offset/60),c=l>=0?`Etc/GMT+${l}`:`Etc/GMT${l}`;t.offset!==0&&ko.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=im(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Y0e{constructor(t,n,r){this.opts={style:"long",...r},!n&&nN()&&(this.rtf=j0e(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):p1e(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const jF={firstDay:1,minimalDays:4,weekend:[6,7]};let $t=class Af{static fromOpts(t){return Af.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,o=!1){const l=t||gn.defaultLocale,c=l||(o?"en-US":R0e()),d=n||gn.defaultNumberingSystem,f=r||gn.defaultOutputCalendar,A=pm(i)||gn.defaultWeekSettings;return new Af(c,d,f,A,l)}static resetCache(){O1=null,rm.clear(),am.clear(),om.clear(),sm.clear(),lm.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return Af.create(t,n,r,i)}constructor(t,n,r,i,o){const[l,c,d]=W0e(t);this.locale=l,this.numberingSystem=n||c||null,this.outputCalendar=r||d||null,this.weekSettings=i,this.intl=V0e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=_0e(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Af.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,pm(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return K3(this,t,cN,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const i=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";if(!this.monthsCache[o][t]){const l=r?c=>this.dtFormatter(c,i).format():c=>this.extract(c,i,"month");this.monthsCache[o][t]=H0e(l)}return this.monthsCache[o][t]})}weekdays(t,n=!1){return K3(this,t,fN,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=G0e(o=>this.extract(o,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return K3(this,void 0,()=>AN,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ue.utc(2016,11,13,9),Ue.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return K3(this,t,hN,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ue.utc(-40,1,1),Ue.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),o=i.formatToParts(),l=o.find(c=>c.type.toLowerCase()===r);return l?l.value:null}numberFormatter(t={}){return new U0e(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Z0e(t,this.intl,n)}relFormatter(t={}){return new Y0e(this.intl,this.isEnglish(),t)}listFormatter(t={}){return F0e(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||NF(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:rN()?z0e(this.locale):jF}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},cm=null;class Fr extends L1{static get utcInstance(){return cm===null&&(cm=new Fr(0)),cm}static instance(t){return t===0?Fr.utcInstance:new Fr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Fr(nA(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${D1(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${D1(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return D1(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class J0e extends L1{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function bs(e,t){if(Ke(e)||e===null)return t;if(e instanceof L1)return e;if(e1e(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Q3.instance:n==="utc"||n==="gmt"?Fr.utcInstance:Fr.parseSpecifier(n)||ko.create(e)}else return Cs(e)?Fr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new J0e(e)}const um={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},RF={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},X0e=um.hanidec.replace(/[\[|\]]/g,"").split("");function Q0e(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(um.hanidec)!==-1)t+=X0e.indexOf(e[n]);else for(const i in RF){const[o,l]=RF[i];r>=o&&r<=l&&(t+=r-o)}}return parseInt(t,10)}else return t}const dm=new Map;function K0e(){dm.clear()}function pa({numberingSystem:e},t=""){const n=e||"latn";let r=dm.get(n);r===void 0&&(r=new Map,dm.set(n,r));let i=r.get(t);return i===void 0&&(i=new RegExp(`${um[n]}${t}`),r.set(t,i)),i}let zF=()=>Date.now(),WF="system",VF=null,HF=null,GF=null,_F=60,UF,ZF=null;class gn{static get now(){return zF}static set now(t){zF=t}static set defaultZone(t){WF=t}static get defaultZone(){return bs(WF,Q3.instance)}static get defaultLocale(){return VF}static set defaultLocale(t){VF=t}static get defaultNumberingSystem(){return HF}static set defaultNumberingSystem(t){HF=t}static get defaultOutputCalendar(){return GF}static set defaultOutputCalendar(t){GF=t}static get defaultWeekSettings(){return ZF}static set defaultWeekSettings(t){ZF=pm(t)}static get twoDigitCutoffYear(){return _F}static set twoDigitCutoffYear(t){_F=t%100}static get throwOnInvalid(){return UF}static set throwOnInvalid(t){UF=t}static resetCaches(){$t.resetCache(),ko.resetCache(),Ue.resetCache(),K0e()}}class ga{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const YF=[0,31,59,90,120,151,181,212,243,273,304,334],JF=[0,31,60,91,121,152,182,213,244,274,305,335];function Ri(e,t){return new ga("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function fm(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function XF(e,t,n){return n+(P1(e)?JF:YF)[t-1]}function QF(e,t){const n=P1(e)?JF:YF,r=n.findIndex(o=>o<t),i=t-n[r];return{month:r+1,day:i}}function Am(e,t){return(e-t+7)%7+1}function q3(e,t=4,n=1){const{year:r,month:i,day:o}=e,l=XF(r,i,o),c=Am(fm(r,i,o),n);let d=Math.floor((l-c+14-t)/7),f;return d<1?(f=r-1,d=T1(f,t,n)):d>T1(r,t,n)?(f=r+1,d=1):f=r,{weekYear:f,weekNumber:d,weekday:c,...iA(e)}}function KF(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:o}=e,l=Am(fm(r,1,t),n),c=Hc(r);let d=i*7+o-l-7+t,f;d<1?(f=r-1,d+=Hc(f)):d>c?(f=r+1,d-=Hc(r)):f=r;const{month:A,day:g}=QF(f,d);return{year:f,month:A,day:g,...iA(e)}}function hm(e){const{year:t,month:n,day:r}=e,i=XF(t,n,r);return{year:t,ordinal:i,...iA(e)}}function qF(e){const{year:t,ordinal:n}=e,{month:r,day:i}=QF(t,n);return{year:t,month:r,day:i,...iA(e)}}function $F(e,t){if(!Ke(e.localWeekday)||!Ke(e.localWeekNumber)||!Ke(e.localWeekYear)){if(!Ke(e.weekday)||!Ke(e.weekNumber)||!Ke(e.weekYear))throw new Wc("Cannot mix locale-based week fields with ISO-based week fields");return Ke(e.localWeekday)||(e.weekday=e.localWeekday),Ke(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ke(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function q0e(e,t=4,n=1){const r=$3(e.weekYear),i=zi(e.weekNumber,1,T1(e.weekYear,t,n)),o=zi(e.weekday,1,7);return r?i?o?!1:Ri("weekday",e.weekday):Ri("week",e.weekNumber):Ri("weekYear",e.weekYear)}function $0e(e){const t=$3(e.year),n=zi(e.ordinal,1,Hc(e.year));return t?n?!1:Ri("ordinal",e.ordinal):Ri("year",e.year)}function eN(e){const t=$3(e.year),n=zi(e.month,1,12),r=zi(e.day,1,eA(e.year,e.month));return t?n?r?!1:Ri("day",e.day):Ri("month",e.month):Ri("year",e.year)}function tN(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=zi(t,0,23)||t===24&&n===0&&r===0&&i===0,l=zi(n,0,59),c=zi(r,0,59),d=zi(i,0,999);return o?l?c?d?!1:Ri("millisecond",i):Ri("second",r):Ri("minute",n):Ri("hour",t)}function Ke(e){return typeof e>"u"}function Cs(e){return typeof e=="number"}function $3(e){return typeof e=="number"&&e%1===0}function e1e(e){return typeof e=="string"}function t1e(e){return Object.prototype.toString.call(e)==="[object Date]"}function nN(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function rN(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function n1e(e){return Array.isArray(e)?e:[e]}function iN(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const o=[t(i),i];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function r1e(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Vc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function pm(e){if(e==null)return null;if(typeof e!="object")throw new br("Week settings must be an object");if(!zi(e.firstDay,1,7)||!zi(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!zi(t,1,7)))throw new br("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function zi(e,t,n){return $3(e)&&e>=t&&e<=n}function i1e(e,t){return e-t*Math.floor(e/t)}function En(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function ws(e){if(!(Ke(e)||e===null||e===""))return parseInt(e,10)}function Cl(e){if(!(Ke(e)||e===null||e===""))return parseFloat(e)}function gm(e){if(!(Ke(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function mm(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function P1(e){return e%4===0&&(e%100!==0||e%400===0)}function Hc(e){return P1(e)?366:365}function eA(e,t){const n=i1e(t-1,12)+1,r=e+(t-n)/12;return n===2?P1(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function tA(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function aN(e,t,n){return-Am(fm(e,1,t),n)+t-1}function T1(e,t=4,n=1){const r=aN(e,t,n),i=aN(e+1,t,n);return(Hc(e)-r+i)/7}function vm(e){return e>99?e:e>gn.twoDigitCutoffYear?1900+e:2e3+e}function oN(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const l={timeZoneName:t,...o},c=new Intl.DateTimeFormat(n,l).formatToParts(i).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function nA(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function sN(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new br(`Invalid unit value ${e}`);return t}function rA(e,t){const n={};for(const r in e)if(Vc(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=sN(i)}return n}function D1(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${En(n,2)}:${En(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${En(n,2)}${En(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function iA(e){return r1e(e,["hour","minute","second","millisecond"])}const a1e=["January","February","March","April","May","June","July","August","September","October","November","December"],lN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],o1e=["J","F","M","A","M","J","J","A","S","O","N","D"];function cN(e){switch(e){case"narrow":return[...o1e];case"short":return[...lN];case"long":return[...a1e];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const uN=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],dN=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],s1e=["M","T","W","T","F","S","S"];function fN(e){switch(e){case"narrow":return[...s1e];case"short":return[...dN];case"long":return[...uN];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const AN=["AM","PM"],l1e=["Before Christ","Anno Domini"],c1e=["BC","AD"],u1e=["B","A"];function hN(e){switch(e){case"narrow":return[...u1e];case"short":return[...c1e];case"long":return[...l1e];default:return null}}function d1e(e){return AN[e.hour<12?0:1]}function f1e(e,t){return fN(t)[e.weekday-1]}function A1e(e,t){return cN(t)[e.month-1]}function h1e(e,t){return hN(t)[e.year<0?0:1]}function p1e(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&o){const g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`}}const l=Object.is(t,-0)||t<0,c=Math.abs(t),d=c===1,f=i[e],A=r?d?f[1]:f[2]||f[1]:d?i[e][0]:e;return l?`${c} ${A} ago`:`in ${c} ${A}`}function pN(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const g1e={D:X3,DD:gF,DDD:mF,DDDD:vF,t:yF,tt:bF,ttt:CF,tttt:wF,T:xF,TT:SF,TTT:IF,TTTT:EF,f:kF,ff:LF,fff:PF,ffff:DF,F:MF,FF:OF,FFF:TF,FFFF:BF};class Cr{static create(t,n={}){return new Cr(t,n)}static parseFormat(t){let n=null,r="",i=!1;const o=[];for(let l=0;l<t.length;l++){const c=t.charAt(l);c==="'"?((r.length>0||i)&&o.push({literal:i||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",i=!i):i||c===n?r+=c:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=c,n=c)}return r.length>0&&o.push({literal:i||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(t){return g1e[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return En(t,n);const i={...this.opts};return n>0&&(i.padTo=n),r&&(i.signDisplay=r),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(y,w)=>this.loc.extract(t,y,w),l=y=>t.isOffsetFixed&&t.offset===0&&y.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,y.format):"",c=()=>r?d1e(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(y,w)=>r?A1e(t,y):o(w?{month:y}:{month:y,day:"numeric"},"month"),f=(y,w)=>r?f1e(t,y):o(w?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),A=y=>{const w=Cr.macroTokenToFormatOpts(y);return w?this.formatWithSystemDefault(t,w):y},g=y=>r?h1e(t,y):o({era:y},"era"),v=y=>{switch(y){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return f("short",!0);case"cccc":return f("long",!0);case"ccccc":return f("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return f("short",!1);case"EEEE":return f("long",!1);case"EEEEE":return f("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return A(y)}};return pN(Cr.parseFormat(n),v)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,i=A=>{switch(A[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=(A,g)=>v=>{const y=i(v);if(y){const w=g.isNegativeDuration&&y!==g.largestUnit?r:1;let S;return this.opts.signMode==="negativeLargestOnly"&&y!==g.largestUnit?S="never":this.opts.signMode==="all"?S="always":S="auto",this.num(A.get(y)*w,v.length,S)}else return v},l=Cr.parseFormat(n),c=l.reduce((A,{literal:g,val:v})=>g?A:A.concat(v),[]),d=t.shiftTo(...c.map(i).filter(A=>A)),f={isNegativeDuration:d<0,largestUnit:Object.keys(d.values)[0]};return pN(l,o(d,f))}}const gN=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Gc(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function _c(...e){return t=>e.reduce(([n,r,i],o)=>{const[l,c,d]=o(t,i);return[{...n,...l},c||r,d]},[{},null,1]).slice(0,2)}function Uc(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function mN(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=ws(t[n+i]);return[r,null,n+i]}}const vN=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,m1e=`(?:${vN.source}?(?:\\[(${gN.source})\\])?)?`,ym=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,yN=RegExp(`${ym.source}${m1e}`),bm=RegExp(`(?:[Tt]${yN.source})?`),v1e=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,y1e=/(\d{4})-?W(\d\d)(?:-?(\d))?/,b1e=/(\d{4})-?(\d{3})/,C1e=mN("weekYear","weekNumber","weekDay"),w1e=mN("year","ordinal"),x1e=/(\d{4})-(\d\d)-(\d\d)/,bN=RegExp(`${ym.source} ?(?:${vN.source}|(${gN.source}))?`),S1e=RegExp(`(?: ${bN.source})?`);function Zc(e,t,n){const r=e[t];return Ke(r)?n:ws(r)}function I1e(e,t){return[{year:Zc(e,t),month:Zc(e,t+1,1),day:Zc(e,t+2,1)},null,t+3]}function Yc(e,t){return[{hours:Zc(e,t,0),minutes:Zc(e,t+1,0),seconds:Zc(e,t+2,0),milliseconds:gm(e[t+3])},null,t+4]}function B1(e,t){const n=!e[t]&&!e[t+1],r=nA(e[t+1],e[t+2]),i=n?null:Fr.instance(r);return[{},i,t+3]}function F1(e,t){const n=e[t]?ko.create(e[t]):null;return[{},n,t+1]}const E1e=RegExp(`^T?${ym.source}$`),k1e=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function M1e(e){const[t,n,r,i,o,l,c,d,f]=e,A=t[0]==="-",g=d&&d[0]==="-",v=(y,w=!1)=>y!==void 0&&(w||y&&A)?-y:y;return[{years:v(Cl(n)),months:v(Cl(r)),weeks:v(Cl(i)),days:v(Cl(o)),hours:v(Cl(l)),minutes:v(Cl(c)),seconds:v(Cl(d),d==="-0"),milliseconds:v(gm(f),g)}]}const L1e={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Cm(e,t,n,r,i,o,l){const c={year:t.length===2?vm(ws(t)):ws(t),month:lN.indexOf(n)+1,day:ws(r),hour:ws(i),minute:ws(o)};return l&&(c.second=ws(l)),e&&(c.weekday=e.length>3?uN.indexOf(e)+1:dN.indexOf(e)+1),c}const O1e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function P1e(e){const[,t,n,r,i,o,l,c,d,f,A,g]=e,v=Cm(t,i,r,n,o,l,c);let y;return d?y=L1e[d]:f?y=0:y=nA(A,g),[v,new Fr(y)]}function T1e(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const D1e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,B1e=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,F1e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function CN(e){const[,t,n,r,i,o,l,c]=e;return[Cm(t,i,r,n,o,l,c),Fr.utcInstance]}function N1e(e){const[,t,n,r,i,o,l,c]=e;return[Cm(t,c,n,r,i,o,l),Fr.utcInstance]}const j1e=Gc(v1e,bm),R1e=Gc(y1e,bm),z1e=Gc(b1e,bm),W1e=Gc(yN),wN=_c(I1e,Yc,B1,F1),V1e=_c(C1e,Yc,B1,F1),H1e=_c(w1e,Yc,B1,F1),G1e=_c(Yc,B1,F1);function _1e(e){return Uc(e,[j1e,wN],[R1e,V1e],[z1e,H1e],[W1e,G1e])}function U1e(e){return Uc(T1e(e),[O1e,P1e])}function Z1e(e){return Uc(e,[D1e,CN],[B1e,CN],[F1e,N1e])}function Y1e(e){return Uc(e,[k1e,M1e])}const J1e=_c(Yc);function X1e(e){return Uc(e,[E1e,J1e])}const Q1e=Gc(x1e,S1e),K1e=Gc(bN),q1e=_c(Yc,B1,F1);function $1e(e){return Uc(e,[Q1e,wN],[K1e,q1e])}const xN="Invalid Duration",SN={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},e2e={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...SN},Wi=146097/400,Jc=146097/4800,t2e={years:{quarters:4,months:12,weeks:Wi/7,days:Wi,hours:Wi*24,minutes:Wi*24*60,seconds:Wi*24*60*60,milliseconds:Wi*24*60*60*1e3},quarters:{months:3,weeks:Wi/28,days:Wi/4,hours:Wi*24/4,minutes:Wi*24*60/4,seconds:Wi*24*60*60/4,milliseconds:Wi*24*60*60*1e3/4},months:{weeks:Jc/7,days:Jc,hours:Jc*24,minutes:Jc*24*60,seconds:Jc*24*60*60,milliseconds:Jc*24*60*60*1e3},...SN},wl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],n2e=wl.slice(0).reverse();function Mo(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new wr(r)}function IN(e,t){let n=t.milliseconds??0;for(const r of n2e.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function EN(e,t){const n=IN(e,t)<0?-1:1;wl.reduceRight((r,i)=>{if(Ke(t[i]))return r;if(r){const o=t[r]*n,l=e[i][r],c=Math.floor(o/l);t[i]+=c*n,t[r]-=c*l*n}return i},null),wl.reduce((r,i)=>{if(Ke(t[i]))return r;if(r){const o=t[r]%1;t[r]-=o,t[i]+=o*e[r][i]}return i},null)}function kN(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}let wr=class pr{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?t2e:e2e;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||$t.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return pr.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new br(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new pr({values:rA(t,pr.normalizeUnit),loc:$t.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Cs(t))return pr.fromMillis(t);if(pr.isDuration(t))return t;if(typeof t=="object")return pr.fromObject(t);throw new br(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=Y1e(t);return r?pr.fromObject(r,n):pr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=X1e(t);return r?pr.fromObject(r,n):pr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the Duration is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new M0e(r);return new pr({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new pF(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Cr.create(this.loc,r).formatDurationFromString(this,t):xN}toHuman(t={}){if(!this.isValid)return xN;const n=t.showZeros!==!1,r=wl.map(i=>{const o=this.values[i];return Ke(o)||o===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=mm(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ue.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?IN(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=pr.fromDurationLike(t),r={};for(const i of wl)(Vc(n.values,i)||Vc(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Mo(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=pr.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=sN(t(this.values[r],r));return Mo(this,{values:n},!0)}get(t){return this[pr.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...rA(t,pr.normalizeUnit)};return Mo(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const l={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Mo(this,l)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return EN(this.matrix,t),Mo(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=kN(this.normalize().shiftToAll().toObject());return Mo(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(l=>pr.normalizeUnit(l));const n={},r={},i=this.toObject();let o;for(const l of wl)if(t.indexOf(l)>=0){o=l;let c=0;for(const f in r)c+=this.matrix[f][l]*r[f],r[f]=0;Cs(i[l])&&(c+=i[l]);const d=Math.trunc(c);n[l]=d,r[l]=(c*1e3-d*1e3)/1e3}else Cs(i[l])&&(r[l]=i[l]);for(const l in r)r[l]!==0&&(n[o]+=l===o?r[l]:r[l]/this.matrix[o][l]);return EN(this.matrix,n),Mo(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Mo(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=kN(this.values);return Mo(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of wl)if(!n(this.values[r],t.values[r]))return!1;return!0}};const Xc="Invalid Interval";function r2e(e,t){return!e||!e.isValid?mn.invalid("missing or invalid start"):!t||!t.isValid?mn.invalid("missing or invalid end"):t<e?mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the Interval is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new k0e(r);return new mn({invalid:r})}static fromDateTimes(t,n){const r=R1(t),i=R1(n),o=r2e(r,i);return o??new mn({start:r,end:i})}static after(t,n){const r=wr.fromDurationLike(n),i=R1(t);return mn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=wr.fromDurationLike(n),i=R1(t);return mn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let o,l;try{o=Ue.fromISO(r,n),l=o.isValid}catch{l=!1}let c,d;try{c=Ue.fromISO(i,n),d=c.isValid}catch{d=!1}if(l&&d)return mn.fromDateTimes(o,c);if(l){const f=wr.fromISO(i,n);if(f.isValid)return mn.after(o,f)}else if(d){const f=wr.fromISO(r,n);if(f.isValid)return mn.before(c,f)}}return mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let i;return n!=null&&n.useLocaleWeeks?i=this.end.reconfigure({locale:r.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(r,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(R1).filter(l=>this.contains(l)).sort((l,c)=>l.toMillis()-c.toMillis()),r=[];let{s:i}=this,o=0;for(;i<this.e;){const l=n[o]||this.e,c=+l>+this.e?this.e:l;r.push(mn.fromDateTimes(i,c)),i=c,o+=1}return r}splitBy(t){const n=wr.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,o;const l=[];for(;r<this.e;){const c=this.start.plus(n.mapUnits(d=>d*i));o=+c>+this.e?this.e:c,l.push(mn.fromDateTimes(r,o)),r=o,i+=1}return l}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],l)=>o?o.overlaps(l)||o.abutsStart(l)?[i,o.union(l)]:[i.concat([o]),l]:[i,l],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],o=t.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),l=Array.prototype.concat(...o),c=l.sort((d,f)=>d.time-f.time);for(const d of c)r+=d.type==="s"?1:-1,r===1?n=d.time:(n&&+n!=+d.time&&i.push(mn.fromDateTimes(n,d.time)),n=null);return mn.merge(i)}difference(...t){return mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Xc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=X3,n={}){return this.isValid?Cr.create(this.s.loc.clone(n),t).formatInterval(this):Xc}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Xc}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Xc}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Xc}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Xc}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):wr.invalid(this.invalidReason)}mapEndpoints(t){return mn.fromDateTimes(t(this.s),t(this.e))}}class aA{static hasDST(t=gn.defaultZone){const n=Ue.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ko.isValidZone(t)}static normalizeZone(t){return bs(t,gn.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||$t.create(n,r,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||$t.create(n,r,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||$t.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||$t.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return $t.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return $t.create(n,null,"gregory").eras(t)}static features(){return{relative:nN(),localeWeek:rN()}}}function MN(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(wr.fromMillis(r).as("days"))}function i2e(e,t,n){const r=[["years",(d,f)=>f.year-d.year],["quarters",(d,f)=>f.quarter-d.quarter+(f.year-d.year)*4],["months",(d,f)=>f.month-d.month+(f.year-d.year)*12],["weeks",(d,f)=>{const A=MN(d,f);return(A-A%7)/7}],["days",MN]],i={},o=e;let l,c;for(const[d,f]of r)n.indexOf(d)>=0&&(l=d,i[d]=f(e,t),c=o.plus(i),c>t?(i[d]--,e=o.plus(i),e>t&&(c=e,i[d]--,e=o.plus(i))):e=c);return[e,i,c,l]}function a2e(e,t,n,r){let[i,o,l,c]=i2e(e,t,n);const d=t-i,f=n.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);f.length===0&&(l<t&&(l=i.plus({[c]:1})),l!==i&&(o[c]=(o[c]||0)+d/(l-i)));const A=wr.fromObject(o,r);return f.length>0?wr.fromMillis(d,r).shiftTo(...f).plus(A):A}const o2e="missing Intl.DateTimeFormat.formatToParts support";function St(e,t=n=>n){return{regex:e,deser:([n])=>t(Q0e(n))}}const LN="[ ]",ON=new RegExp(LN,"g");function s2e(e){return e.replace(/\./g,"\\.?").replace(ON,LN)}function PN(e){return e.replace(/\./g,"").replace(ON," ").toLowerCase()}function ma(e,t){return e===null?null:{regex:RegExp(e.map(s2e).join("|")),deser:([n])=>e.findIndex(r=>PN(n)===PN(r))+t}}function TN(e,t){return{regex:e,deser:([,n,r])=>nA(n,r),groups:t}}function oA(e){return{regex:e,deser:([t])=>t}}function l2e(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function c2e(e,t){const n=pa(t),r=pa(t,"{2}"),i=pa(t,"{3}"),o=pa(t,"{4}"),l=pa(t,"{6}"),c=pa(t,"{1,2}"),d=pa(t,"{1,3}"),f=pa(t,"{1,6}"),A=pa(t,"{1,9}"),g=pa(t,"{2,4}"),v=pa(t,"{4,6}"),y=I=>({regex:RegExp(l2e(I.val)),deser:([E])=>E,literal:!0}),S=(I=>{if(e.literal)return y(I);switch(I.val){case"G":return ma(t.eras("short"),0);case"GG":return ma(t.eras("long"),0);case"y":return St(f);case"yy":return St(g,vm);case"yyyy":return St(o);case"yyyyy":return St(v);case"yyyyyy":return St(l);case"M":return St(c);case"MM":return St(r);case"MMM":return ma(t.months("short",!0),1);case"MMMM":return ma(t.months("long",!0),1);case"L":return St(c);case"LL":return St(r);case"LLL":return ma(t.months("short",!1),1);case"LLLL":return ma(t.months("long",!1),1);case"d":return St(c);case"dd":return St(r);case"o":return St(d);case"ooo":return St(i);case"HH":return St(r);case"H":return St(c);case"hh":return St(r);case"h":return St(c);case"mm":return St(r);case"m":return St(c);case"q":return St(c);case"qq":return St(r);case"s":return St(c);case"ss":return St(r);case"S":return St(d);case"SSS":return St(i);case"u":return oA(A);case"uu":return oA(c);case"uuu":return St(n);case"a":return ma(t.meridiems(),0);case"kkkk":return St(o);case"kk":return St(g,vm);case"W":return St(c);case"WW":return St(r);case"E":case"c":return St(n);case"EEE":return ma(t.weekdays("short",!1),1);case"EEEE":return ma(t.weekdays("long",!1),1);case"ccc":return ma(t.weekdays("short",!0),1);case"cccc":return ma(t.weekdays("long",!0),1);case"Z":case"ZZ":return TN(new RegExp(`([+-]${c.source})(?::(${r.source}))?`),2);case"ZZZ":return TN(new RegExp(`([+-]${c.source})(${r.source})?`),2);case"z":return oA(/[a-z_+-/]{1,256}?/i);case" ":return oA(/[^\S\n\r]/);default:return y(I)}})(e)||{invalidReason:o2e};return S.token=e,S}const u2e={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function d2e(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const d=/^\s+$/.test(i);return{literal:!d,val:d?" ":i}}const o=t[r];let l=r;r==="hour"&&(t.hour12!=null?l=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?l="hour12":l="hour24":l=n.hour12?"hour12":"hour24");let c=u2e[l];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function f2e(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function A2e(e,t,n){const r=e.match(t);if(r){const i={};let o=1;for(const l in n)if(Vc(n,l)){const c=n[l],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(r.slice(o,o+d))),o+=d}return[r,i]}else return[r,{}]}function h2e(e){const t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Ke(e.z)||(n=ko.create(e.z)),Ke(e.Z)||(n||(n=new Fr(e.Z)),r=e.Z),Ke(e.q)||(e.M=(e.q-1)*3+1),Ke(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ke(e.u)||(e.S=gm(e.u)),[Object.keys(e).reduce((o,l)=>{const c=t(l);return c&&(o[c]=e[l]),o},{}),n,r]}let wm=null;function p2e(){return wm||(wm=Ue.fromMillis(1555555555555)),wm}function g2e(e,t){if(e.literal)return e;const n=Cr.macroTokenToFormatOpts(e.val),r=NN(n,t);return r==null||r.includes(void 0)?e:r}function DN(e,t){return Array.prototype.concat(...e.map(n=>g2e(n,t)))}class BN{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=DN(Cr.parseFormat(n),t),this.units=this.tokens.map(r=>c2e(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=f2e(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,r]=A2e(t,this.regex,this.handlers),[i,o,l]=r?h2e(r):[null,null,void 0];if(Vc(r,"a")&&Vc(r,"H"))throw new Wc("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:o,specificOffset:l}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function FN(e,t,n){return new BN(e,n).explainFromTokens(t)}function m2e(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:l}=FN(e,t,n);return[r,i,o,l]}function NN(e,t){if(!e)return null;const r=Cr.create(t,e).dtFormatter(p2e()),i=r.formatToParts(),o=r.resolvedOptions();return i.map(l=>d2e(l,e,o))}const xm="Invalid DateTime",jN=864e13;function N1(e){return new ga("unsupported zone",`the zone "${e.name}" is not supported`)}function Sm(e){return e.weekData===null&&(e.weekData=q3(e.c)),e.weekData}function Im(e){return e.localWeekData===null&&(e.localWeekData=q3(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function xl(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ue({...n,...t,old:n})}function RN(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const o=n.offset(r);return i===o?[r,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function sA(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function lA(e,t,n){return RN(tA(e),t,n)}function zN(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:r,month:i,day:Math.min(e.c.day,eA(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},l=wr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=tA(o);let[d,f]=RN(c,n,e.zone);return l!==0&&(d+=l,f=e.zone.offset(d)),{ts:d,o:f}}function Qc(e,t,n,r,i,o){const{setZone:l,zone:c}=n;if(e&&Object.keys(e).length!==0||t){const d=t||c,f=Ue.fromObject(e,{...n,zone:d,specificOffset:o});return l?f:f.setZone(c)}else return Ue.invalid(new ga("unparsable",`the input "${i}" can't be parsed as ${r}`))}function cA(e,t,n=!0){return e.isValid?Cr.create($t.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Em(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=En(e.c.year,r?6:4),n==="year")return i;if(t){if(i+="-",i+=En(e.c.month),n==="month")return i;i+="-"}else if(i+=En(e.c.month),n==="month")return i;return i+=En(e.c.day),i}function WN(e,t,n,r,i,o,l){let c=!n||e.c.millisecond!==0||e.c.second!==0,d="";switch(l){case"day":case"month":case"year":break;default:if(d+=En(e.c.hour),l==="hour")break;if(t){if(d+=":",d+=En(e.c.minute),l==="minute")break;c&&(d+=":",d+=En(e.c.second))}else{if(d+=En(e.c.minute),l==="minute")break;c&&(d+=En(e.c.second))}if(l==="second")break;c&&(!r||e.c.millisecond!==0)&&(d+=".",d+=En(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!o?d+="Z":e.o<0?(d+="-",d+=En(Math.trunc(-e.o/60)),d+=":",d+=En(Math.trunc(-e.o%60))):(d+="+",d+=En(Math.trunc(e.o/60)),d+=":",d+=En(Math.trunc(e.o%60)))),o&&(d+="["+e.zone.ianaName+"]"),d}const VN={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},v2e={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},y2e={ordinal:1,hour:0,minute:0,second:0,millisecond:0},uA=["year","month","day","hour","minute","second","millisecond"],b2e=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],C2e=["year","ordinal","hour","minute","second","millisecond"];function dA(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new pF(e);return t}function HN(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return dA(e)}}function w2e(e){if(j1===void 0&&(j1=gn.now()),e.type!=="iana")return e.offset(j1);const t=e.name;let n=km.get(t);return n===void 0&&(n=e.offset(j1),km.set(t,n)),n}function GN(e,t){const n=bs(t.zone,gn.defaultZone);if(!n.isValid)return Ue.invalid(N1(n));const r=$t.fromObject(t);let i,o;if(Ke(e.year))i=gn.now();else{for(const d of uA)Ke(e[d])&&(e[d]=VN[d]);const l=eN(e)||tN(e);if(l)return Ue.invalid(l);const c=w2e(n);[i,o]=lA(e,c,n)}return new Ue({ts:i,zone:n,loc:r,o})}function _N(e,t,n){const r=Ke(n.round)?!0:n.round,i=Ke(n.rounding)?"trunc":n.rounding,o=(c,d)=>(c=mm(c,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(c,d)),l=c=>n.calendary?t.hasSame(e,c)?0:t.startOf(c).diff(e.startOf(c),c).get(c):t.diff(e,c).get(c);if(n.unit)return o(l(n.unit),n.unit);for(const c of n.units){const d=l(c);if(Math.abs(d)>=1)return o(d,c)}return o(e>t?-0:0,n.units[n.units.length-1])}function UN(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let j1;const km=new Map;class Ue{constructor(t){const n=t.zone||gn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new ga("invalid input"):null)||(n.isValid?null:N1(n));this.ts=Ke(t.ts)?gn.now():t.ts;let i=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,o]=[t.old.c,t.old.o];else{const c=Cs(t.o)&&!t.old?t.o:n.offset(this.ts);i=sA(this.ts,c),r=Number.isNaN(i.year)?new ga("invalid input"):null,i=r?null:i,o=r?null:c}this._zone=n,this.loc=t.loc||$t.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new Ue({})}static local(){const[t,n]=UN(arguments),[r,i,o,l,c,d,f]=n;return GN({year:r,month:i,day:o,hour:l,minute:c,second:d,millisecond:f},t)}static utc(){const[t,n]=UN(arguments),[r,i,o,l,c,d,f]=n;return t.zone=Fr.utcInstance,GN({year:r,month:i,day:o,hour:l,minute:c,second:d,millisecond:f},t)}static fromJSDate(t,n={}){const r=t1e(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ue.invalid("invalid input");const i=bs(n.zone,gn.defaultZone);return i.isValid?new Ue({ts:r,zone:i,loc:$t.fromObject(n)}):Ue.invalid(N1(i))}static fromMillis(t,n={}){if(Cs(t))return t<-jN||t>jN?Ue.invalid("Timestamp out of range"):new Ue({ts:t,zone:bs(n.zone,gn.defaultZone),loc:$t.fromObject(n)});throw new br(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Cs(t))return new Ue({ts:t*1e3,zone:bs(n.zone,gn.defaultZone),loc:$t.fromObject(n)});throw new br("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=bs(n.zone,gn.defaultZone);if(!r.isValid)return Ue.invalid(N1(r));const i=$t.fromObject(n),o=rA(t,HN),{minDaysInFirstWeek:l,startOfWeek:c}=$F(o,i),d=gn.now(),f=Ke(n.specificOffset)?r.offset(d):n.specificOffset,A=!Ke(o.ordinal),g=!Ke(o.year),v=!Ke(o.month)||!Ke(o.day),y=g||v,w=o.weekYear||o.weekNumber;if((y||A)&&w)throw new Wc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&A)throw new Wc("Can't mix ordinal dates with month/day");const S=w||o.weekday&&!y;let I,E,M=sA(d,f);S?(I=b2e,E=v2e,M=q3(M,l,c)):A?(I=C2e,E=y2e,M=hm(M)):(I=uA,E=VN);let L=!1;for(const U of I){const B=o[U];Ke(B)?L?o[U]=E[U]:o[U]=M[U]:L=!0}const T=S?q0e(o,l,c):A?$0e(o):eN(o),P=T||tN(o);if(P)return Ue.invalid(P);const R=S?KF(o,l,c):A?qF(o):o,[F,W]=lA(R,f,r),_=new Ue({ts:F,zone:r,o:W,loc:i});return o.weekday&&y&&t.weekday!==_.weekday?Ue.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${_.toISO()}`):_.isValid?_:Ue.invalid(_.invalid)}static fromISO(t,n={}){const[r,i]=_1e(t);return Qc(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=U1e(t);return Qc(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=Z1e(t);return Qc(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Ke(t)||Ke(n))throw new br("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,d,f,A]=m2e(l,t,n);return A?Ue.invalid(A):Qc(c,d,r,`format ${n}`,t,f)}static fromString(t,n,r={}){return Ue.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=$1e(t);return Qc(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the DateTime is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new E0e(r);return new Ue({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=NN(t,$t.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return DN(Cr.parseFormat(t),$t.fromObject(n)).map(i=>i.val).join("")}static resetCache(){j1=void 0,km.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Sm(this).weekYear:NaN}get weekNumber(){return this.isValid?Sm(this).weekNumber:NaN}get weekday(){return this.isValid?Sm(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Im(this).weekday:NaN}get localWeekNumber(){return this.isValid?Im(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Im(this).weekYear:NaN}get ordinal(){return this.isValid?hm(this.c).ordinal:NaN}get monthShort(){return this.isValid?aA.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?aA.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?aA.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?aA.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=tA(this.c),i=this.zone.offset(r-t),o=this.zone.offset(r+t),l=this.zone.offset(r-i*n),c=this.zone.offset(r-o*n);if(l===c)return[this];const d=r-l*n,f=r-c*n,A=sA(d,l),g=sA(f,c);return A.hour===g.hour&&A.minute===g.minute&&A.second===g.second&&A.millisecond===g.millisecond?[xl(this,{ts:d}),xl(this,{ts:f})]:[this]}get isInLeapYear(){return P1(this.year)}get daysInMonth(){return eA(this.year,this.month)}get daysInYear(){return this.isValid?Hc(this.year):NaN}get weeksInWeekYear(){return this.isValid?T1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?T1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=Cr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Fr.instance(t),n)}toLocal(){return this.setZone(gn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=bs(t,gn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const o=t.offset(this.ts),l=this.toObject();[i]=lA(l,o,t)}return xl(this,{ts:i,zone:t})}else return Ue.invalid(N1(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return xl(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=rA(t,HN),{minDaysInFirstWeek:r,startOfWeek:i}=$F(n,this.loc),o=!Ke(n.weekYear)||!Ke(n.weekNumber)||!Ke(n.weekday),l=!Ke(n.ordinal),c=!Ke(n.year),d=!Ke(n.month)||!Ke(n.day),f=c||d,A=n.weekYear||n.weekNumber;if((f||l)&&A)throw new Wc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&l)throw new Wc("Can't mix ordinal dates with month/day");let g;o?g=KF({...q3(this.c,r,i),...n},r,i):Ke(n.ordinal)?(g={...this.toObject(),...n},Ke(n.day)&&(g.day=Math.min(eA(g.year,g.month),g.day))):g=qF({...hm(this.c),...n});const[v,y]=lA(g,this.o,this.zone);return xl(this,{ts:v,o:y})}plus(t){if(!this.isValid)return this;const n=wr.fromDurationLike(t);return xl(this,zN(this,n))}minus(t){if(!this.isValid)return this;const n=wr.fromDurationLike(t).negate();return xl(this,zN(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=wr.normalizeUnit(t);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks")if(n){const o=this.loc.getStartOfWeek(),{weekday:l}=this;l<o&&(r.weekNumber=this.weekNumber-1),r.weekday=o}else r.weekday=1;if(i==="quarters"){const o=Math.ceil(this.month/3);r.month=(o-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?Cr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):xm}toLocaleString(t=X3,n={}){return this.isValid?Cr.create(this.loc.clone(n),t).formatDateTime(this):xm}toLocaleParts(t={}){return this.isValid?Cr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:o=!1,precision:l="milliseconds"}={}){if(!this.isValid)return null;l=dA(l);const c=t==="extended";let d=Em(this,c,l);return uA.indexOf(l)>=3&&(d+="T"),d+=WN(this,c,n,r,i,o,l),d}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Em(this,t==="extended",dA(n)):null}toISOWeekDate(){return cA(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:o=!1,format:l="extended",precision:c="milliseconds"}={}){return this.isValid?(c=dA(c),(i&&uA.indexOf(c)>=3?"T":"")+WN(this,l==="extended",n,t,r,o,c)):null}toRFC2822(){return cA(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return cA(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Em(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),cA(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():xm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return wr.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=n1e(n).map(wr.normalizeUnit),l=t.valueOf()>this.valueOf(),c=l?this:t,d=l?t:this,f=a2e(c,d,o,i);return l?f.negate():f}diffNow(t="milliseconds",n={}){return this.diff(Ue.now(),t,n)}until(t){return this.isValid?mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(n,r)<=i&&i<=o.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ue.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),_N(n,this.plus(r),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?_N(t.base||Ue.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ue.isDateTime))throw new br("min requires all arguments be DateTimes");return iN(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ue.isDateTime))throw new br("max requires all arguments be DateTimes");return iN(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return FN(l,t,n)}static fromStringExplain(t,n,r={}){return Ue.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:i=null}=n,o=$t.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new BN(o,t)}static fromFormatParser(t,n,r={}){if(Ke(t)||Ke(n))throw new br("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!l.equals(n.locale))throw new br(`fromFormatParser called with a locale of ${l}, but the format parser was created for ${n.locale}`);const{result:c,zone:d,specificOffset:f,invalidReason:A}=n.explainFromTokens(t);return A?Ue.invalid(A):Qc(c,d,r,`format ${n.format}`,t,f)}static get DATE_SHORT(){return X3}static get DATE_MED(){return gF}static get DATE_MED_WITH_WEEKDAY(){return L0e}static get DATE_FULL(){return mF}static get DATE_HUGE(){return vF}static get TIME_SIMPLE(){return yF}static get TIME_WITH_SECONDS(){return bF}static get TIME_WITH_SHORT_OFFSET(){return CF}static get TIME_WITH_LONG_OFFSET(){return wF}static get TIME_24_SIMPLE(){return xF}static get TIME_24_WITH_SECONDS(){return SF}static get TIME_24_WITH_SHORT_OFFSET(){return IF}static get TIME_24_WITH_LONG_OFFSET(){return EF}static get DATETIME_SHORT(){return kF}static get DATETIME_SHORT_WITH_SECONDS(){return MF}static get DATETIME_MED(){return LF}static get DATETIME_MED_WITH_SECONDS(){return OF}static get DATETIME_MED_WITH_WEEKDAY(){return O0e}static get DATETIME_FULL(){return PF}static get DATETIME_FULL_WITH_SECONDS(){return TF}static get DATETIME_HUGE(){return DF}static get DATETIME_HUGE_WITH_SECONDS(){return BF}}function R1(e){if(Ue.isDateTime(e))return e;if(e&&e.valueOf&&Cs(e.valueOf()))return Ue.fromJSDate(e);if(e&&typeof e=="object")return Ue.fromObject(e);throw new br(`Unknown datetime argument: ${e}, of type ${typeof e}`)}//! moment.js
|
|
1477
|
+
`,jue=e=>{var l,c;const{children:t,...n}=e,r=(l=n.selectProps)==null?void 0:l.icon,i=n.hasValue,o=(c=n.selectProps)==null?void 0:c.onIconClick;return p.jsxs(p.Fragment,{children:[r&&p.jsx(Nue,{className:"inputIcon",hasValue:i,onMouseDown:o,children:p.jsx(lt,{icon:r})}),p.jsx(Jr.components.ValueContainer,{...n,children:t})]})},Rue=e=>{const t=e.getStyles("option",e),{data:n,selectOption:r,innerProps:i}=e,o=C.useCallback(()=>r(n),[n,r]);return p.jsx("div",{style:t,onClick:o,onMouseOver:i.onMouseOver,onMouseMove:i.onMouseMove,children:e.label})},zue=C.memo(Rue,(e,t)=>{var n,r;return e.isFocused===t.isFocused&&((n=e.data)==null?void 0:n.label)===((r=t.data)==null?void 0:r.label)}),Wue={control:(e,{selectProps:t,theme:n,isFocused:r,isDisabled:i})=>{const o=n.colors;return{...e,borderColor:t.isInvalid?o.primary:r?o.inputTextColor:o.inputBorderColor,backgroundColor:i?o.menuHoverBackgroundColor:o.whiteBackgroundColor,boxShadow:n.focusBoxShadow,borderRadius:n.borderRadius,"& input":{fontWeight:n.textWeightNormal,fontFamily:n.font},"&:hover":{...e["&:hover"]??{},borderColor:o.inputBorderHoverColor},fontSize:"14px",minWidth:"min-content",".inputIcon":{color:i?o.defaultControlColor:t.value?o.inputTextColor:o.defaultControlColor}}},valueContainer:(e,{theme:t})=>({...e,width:"50px",flexWrap:t.flexWrap}),singleValue:(e,{selectProps:t,theme:n,isDisabled:r})=>({...e,position:"absolute",top:"50%",transform:"translateY(-50%)",color:t.isInvalid?n.colors.primary:r?n.colors.disabledTextColor:n.colors.inputTextColor,fontSize:"14px",fontWeight:n.textWeightNormal}),multiValue:(e,t)=>{const{theme:n}=t;return{...e,color:n.colors.inputTextColor,fontWeight:n.textWeightNormal,backgroundColor:n.colors.lightGray7,borderRadius:"4px","& svg":{color:n.colors.inputTextColor}," > div":{fontSize:"12px"}}},multiValueLabel:e=>({...e,fontSize:"unset",padding:"5px"}),multiValueRemove:(e,{theme:t})=>({...e,color:t.colors.inputBorderColor}),placeholder:(e,t)=>{const{theme:n,selectProps:r}=t;return{...e,fontSize:"14px",fontWeight:n.textWeightNormal,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 8px)",color:r.isDarkPlaceholderText?n.colors.inputTextColor:n.colors.placeholderTextColor}},loadingMessage:(e,{theme:t})=>({...e,color:t.colors.optionTextColor}),noOptionsMessage:(e,{theme:t})=>({...e,color:t.colors.optionTextColor}),input:(e,{theme:t})=>({...e,color:t.colors.inputTextColor}),option:(e,{isSelected:t,theme:n,isDisabled:r,selectProps:i})=>{const o=n.colors.optionTextColor;return{color:t?n.colors.primary:o,backgroundColor:t?n.colors.activeOptionBackground:void 0,fontWeight:n.textWeightNormal,fontSize:"14px",cursor:r?"default":"pointer",display:"flex",flexDirection:"row",alignItems:"center",padding:"7px 10px",minHeight:"36px",marginRight:"4px",marginBottom:"2px",lineHeight:"22px",borderRadius:V.radius("ml")({theme:i==null?void 0:i.systemTheme}),"&:hover":{backgroundColor:t?n.colors.hoverToActiveOptionBackground:r?void 0:n.colors.menuHoverBackgroundColor}}},menu:(e,t)=>{const{theme:n}=t;return{...e,boxShadow:"0 2px 20px 0 rgba(0, 0, 0, 0.10);",marginTop:"4px",paddingTop:"0",borderRadius:"10px",zIndex:3,minWidth:"max-content",backgroundColor:n.colors.whiteBackgroundColor}},menuList:(e,{theme:t})=>({...e,margin:"8px 4px 8px 8px","::-webkit-scrollbar-thumb":{border:"none",borderRadius:"4px",height:"47px",backgroundColor:t.colors.defaultControlColor,"&:hover":{backgroundColor:t.colors.dropdownIndicatorColor}},"::-webkit-scrollbar":{width:"10px"},"::-webkit-scrollbar-track":{backgroundColor:t.colors.menuHoverBackgroundColor,borderRadius:"6px"}}),dropdownIndicator:(e,t)=>{const{theme:n,isDisabled:r}=t;return{...e,justifyContent:"center",alignItems:"center","& svg":{stroke:r?n.colors.dropdownIndicatorColor:n.colors.inputTextColor},padding:"0px 5px 0px 0px","@media (min-width: 1024px)":{padding:"0px 10px 0px 1px"}}},clearIndicator:(e,t)=>{const{theme:n}=t;return{...e,justifyContent:"center",alignItems:"center",padding:n.narrowIndicators?"0px 4px 0px 0px":"0px 4px",color:n.colors.dropdownIndicatorColor}},indicatorSeparator:()=>({display:"none"})},Vue=(e,t,n)=>{const r=V.color("blue2")({theme:e}),i={primary:V.color("red1")({theme:e}),inputTextColor:r,whiteBackgroundColor:V.color("white")({theme:e}),optionTextColor:V.color("blue2")({theme:e}),menuHoverBackgroundColor:V.color("bgLightGray1")({theme:e}),inputDisabledColor:V.color("lightGray1")({theme:e}),inputBorderColor:V.color("lightGray3")({theme:e}),placeholderTextColor:V.color("lightGray3")({theme:e}),defaultControlColor:V.color("lightGray5")({theme:e}),disabledTextColor:V.color("lightGray6")({theme:e}),dropdownIndicatorColor:V.color("gray1")({theme:e}),inputBorderHoverColor:V.color("gray5")({theme:e}),activeOptionBackground:V.color("red20")({theme:e}),hoverToActiveOptionBackground:V.color("red30")({theme:e})};return o=>({...o,colors:i,focusBoxShadow:null,height:"38px",flexWrap:n?"nowrap":"wrap",textWeightNormal:V.fontWeight("normal")({theme:e}),optionVariant:t,borderRadius:V.radius("lg")({theme:e}),font:V.font("primary")({theme:e}),narrowIndicators:!!n})},iF=(e="form",t="default",n="default",r="default",i=!1,o=!1,l=!1)=>{const c=ut();return C.useMemo(()=>{const d={ValueContainer:jue};d.DropdownIndicator=Fue,n==="count"&&(d.MultiValue=Tue),r==="search"&&(d.DropdownIndicator=null),(l||o)&&(d.MenuList=Oue),d.Input=Due;const f=Vue(c,t,e=="gridFilter"),A=Wue;return d.Option=Iue,i&&(d.Option=zue),[d,f,A]},[n,r,l,o,e,i,c,t])},aF=[],Hue=()=>je._({id:"select.noOptions",message:"no options"}),Gue=()=>je._({id:"components.dropdown.loading",message:"Loading..."}),Y3=({label:e,name:t,value:n="",options:r=aF,defaultOptions:i,loadOptions:o,onChange:l,onBlur:c,error:d,isInvalid:f,isLoading:A,isDarkPlaceholderText:g,spaceAround:v=!1,disabled:y,onInputChange:w,isSearchable:S,isMulti:I,className:E,useSimplifiedOptions:M=!1,showSelectAllButton:L=!1,showResetGridButton:T=!1,shortValues:P=!0,style:R,optionVariant:F,multiLabelVariant:W,containerVariant:_,placeholder:U,placeholderIcon:B,innerRef:H,maxMenuHeight:ee,getOptionValue:oe,resetGrid:ie,onIconClick:q,...ue})=>{const pe=!!o;L&&!I&&console.error("CheckboxSelect incompatible props");const fe=C.useCallback(({options:De})=>{l==null||l(De||[])},[l,r]),J=C.useCallback(()=>{typeof l=="function"&&(l==null||l(aF))},[l]),z=_==="search"&&!B&&B!==null?"search":B||void 0,$=T&&L&&ee?ee-30:ee,[ae,ce,se]=iF(R,F,W,_,M,L,T),K=pe?tF:vue;let ne;const le=C.useMemo(()=>oe||(De=>De==null?void 0:De.value),[oe]);Array.isArray(n)?(ne=(i||r).filter(De=>n.includes(le(De))),ne=ne!=null&&ne.length?ne:null):n!==void 0&&(ne=(i||r).find(De=>le(De)===n)||null);const ge=ut(),be=C.useMemo(()=>o?async De=>await o(De):void 0,[o]);return p.jsxs(ms,{spaceAround:v,className:E,children:[p.jsxs(eF,{children:[e&&p.jsx(Fc,{htmlFor:t,children:e}),p.jsx(K,{id:t,name:t,options:r,loadOptions:be,defaultOptions:i,value:ne,onChange:l,onBlur:c,isDisabled:y||A,isLoading:A,isInvalid:f!==void 0?f:!!d,isDarkPlaceholderText:g,placeholder:U||je._({id:"components.dropdown.placeholder",message:"Select..."}),styles:se,theme:ce,icon:z,onIconClick:q,hideSelectedOptions:!!(I&&W!="count"),onInputChange:w,isSearchable:pe||S,isMulti:I,classNamePrefix:"react-select",components:ae,closeMenuOnSelect:I?!1:void 0,noOptionsMessage:Hue,...ue,ref:H,tabIndex:null,systemTheme:ge,resetGrid:ie,onCustomSelectAll:fe,onCustomDeselectAll:J,selectAllButton:L,resetGridButton:T,maxMenuHeight:$,getOptionValue:oe,loadingMessage:Gue,shortValues:P})]}),d&&p.jsx(C1,{children:d})]})};let _ue=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var _7,oF;function Uue(){if(oF)return _7;oF=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return _7=e,_7}var U7,sF;function Zue(){if(sF)return U7;sF=1;function e(t,n,r){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(o);++i<o;)l[i]=t[i+n];return l}return U7=e,U7}var Z7,lF;function Yue(){if(lF)return Z7;lF=1;var e=Hg(),t=Zue();function n(r,i){return i.length<2?r:e(r,t(i,0,-1))}return Z7=n,Z7}var Y7,cF;function Jue(){if(cF)return Y7;cF=1;var e=$f(),t=Uue(),n=Yue(),r=Lc();function i(o,l){return l=e(l,o),o=n(o,l),o==null||delete o[r(t(l))]}return Y7=i,Y7}var J7,uF;function Xue(){if(uF)return J7;uF=1;var e=uD();function t(n){return e(n)?void 0:n}return J7=t,J7}var X7,dF;function fF(){if(dF)return X7;dF=1;var e=Ng(),t=t7(),n=Jue(),r=$f(),i=v1(),o=Xue(),l=gD(),c=XT(),d=1,f=2,A=4,g=l(function(v,y){var w={};if(v==null)return w;var S=!1;y=e(y,function(E){return E=r(E,v),S||(S=E.length>1),E}),i(v,c(v),w),S&&(w=t(w,d|f|A,o));for(var I=y.length;I--;)n(w,y[I]);return w});return X7=g,X7}var Que=c7,AF=Que("omit",fF());AF.placeholder=A3();var Kue=AF;const que=Hn(Kue),Q7=`_create_${_ue()}_`,$ue=Jr.createFilter(),e0e=(e,t)=>(e==null?void 0:e.value)==Q7?!0:$ue(e,t),K7=e=>e===null?null:Array.isArray(e)?e.map(t=>t.value):e.value,t0e=()=>je._({id:"components.dropdown.loading",message:"Loading..."}),q7=e=>{const{name:t,onChange:n,onBlur:r,onValueChange:i,loadOptions:o,asyncLoadMinChars:l=0,isLocked:c,lockedText:d=je._({id:"components.dropdown.notReact",message:"Select related values first..."}),disabled:f,placeholder:A=je._({id:"components.dropdown.placeholder",message:"Select..."}),preload:g,initialOptions:v,onCreateOption:y,options:w,filterOption:S,shouldReloadOptions:I=!1}=e,[E,M]=C.useState(!1),L=!!o||!!y,T=C.useCallback(q=>o?q.length<l?je._({id:"components.dropdown.writeMoreChars",message:"Write at least ${asyncLoadMinChars} characters."}):je._({id:"dataGrid.filterCell",message:"Type to filter"}):je._({id:"components.dropdown.noOptions",message:"No options"}),[o,l]),P=C.useCallback(async q=>y?q.trim()?await Promise.resolve([...w||[],{value:Q7,label:`${q} (${je._({id:"components.dropdown.newOption",message:"new value"})})`,inputValue:q}]):await Promise.resolve(w||[]):!o||q.length<l?await Promise.resolve([]):await o(q,!1),[y,o,l,w]),[R,F]=C.useState(w||[]);C.useEffect(()=>{o&&g&&!e.value&&o("",!1).then(F)},[o]);const[W,_]=C.useState(null);C.useEffect(()=>{if(v&&v.length){const q=v.find(ue=>ue.value==e.value)||null;_(q)}o&&!v&&e.value&&o(String(e.value),!0).then(q=>{_((q==null?void 0:q[0])||null)})},[v,_]),C.useEffect(()=>{I&&F(w||[])},[w]);const U=C.useCallback(async q=>{var pe,fe,J;let ue;if(y&&(q==null?void 0:q.value)==Q7)if(q!=null&&q.inputValue&&((fe=(pe=q==null?void 0:q.inputValue)==null?void 0:pe.trim())==null?void 0:fe.length)<2){e==null||e.form.setFieldTouched(t,!0,!0),e==null||e.form.setFieldError(t,je._({id:"form.general.min2Chars",message:"Minimal length is 2 characters."}));return}else{M(!0);const z=await y(((J=q==null?void 0:q.inputValue)==null?void 0:J.trim())??"");ue=K7(z),M(!1)}else ue=K7(q),o&&_(q);n&&n({target:{name:t??"",type:"change",value:ue}}),i&&i(ue)},[y,o,n,i,e==null?void 0:e.form,t]),B=C.useCallback(q=>{r&&r({target:{name:t,type:"blur",value:K7(q)}})},[t,r]),H=["onValueChange","placeholder","options","loadOptions","asyncLoadMinChars"],oe=c&&!f?d:A,ie=C.useMemo(()=>{if(!L)return;const q=y?w:R;return W?q?[...q,W]:[W]:q||void 0},[L,R,y,w,W]);return p.jsx(Y3,{...que(H,e),filterOption:S||e0e,disabled:f||c,onChange:U,onBlur:B,placeholder:oe,loadingMessage:t0e,noOptionsMessage:T,loadOptions:L?P:void 0,containerVariant:L?"search":void 0,defaultOptions:ie,options:L?void 0:w,isLoading:E||e.isLoading})};function n0e(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 r0e=n0e,$7=EO(),i0e=QP,a0e=ag,o0e=1/0,s0e=$7&&1/a0e(new $7([,-0]))[1]==o0e?function(e){return new $7(e)}:i0e,l0e=s0e,c0e=XL,u0e=fT,d0e=r0e,f0e=QL,A0e=l0e,h0e=ag,p0e=200;function g0e(e,t,n){var r=-1,i=u0e,o=e.length,l=!0,c=[],d=c;if(n)l=!1,i=d0e;else if(o>=p0e){var f=t?null:A0e(e);if(f)return h0e(f);l=!1,i=f0e,d=new c0e}else d=t?[]:c;e:for(;++r<o;){var A=e[r],g=t?t(A):A;if(A=n||A!==0?A:0,l&&g===g){for(var v=d.length;v--;)if(d[v]===g)continue e;t&&d.push(g),c.push(A)}else i(d,g,n)||(d!==c&&d.push(g),c.push(A))}return c}var m0e=g0e,v0e=n3,y0e=m0e;function b0e(e,t){return e&&e.length?y0e(e,v0e(t)):[]}var C0e=b0e;const w0e=Hn(C0e),J3=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&"label"in t&&"value"in t),x0e=120,hF=({onChange:e,isClearable:t=!0,disabled:n,placeholder:r,showValue:i=!0,columnWidth:o,isMulti:l,value:c,options:d,checkAllButton:f,asyncLoadKey:A,onAsyncLoadFilterOptions:g,withNotEqComparator:v=!0})=>{const[y,w]=C.useState([]),[S,I]=C.useState(!1),E=!!A,M=C.useMemo(()=>J3(c)?c.some(U=>U.isNotEq):S,[c,S]),L=C.useCallback(U=>{e==null||e(!bQ(U)||!(U!=null&&U.length)?null:U==null?void 0:U.map(B=>({...B,isNotEq:M})))},[e,M]),T=C.useCallback(async U=>{let B=[];return A&&(B=await(g==null?void 0:g(A,U))||[]),w(B),B},[A,g]),P=C.useCallback(U=>{if(U.preventDefault(),U.stopPropagation(),!c||!J3(c)){I(H=>!H);return}const B=c==null?void 0:c.map(H=>({...H,isNotEq:!M}));e(B)},[c,M,e]),R=C.useMemo(()=>l&&E&&J3(c)?w0e([...y,...c],"value"):void 0,[E,c,y]),F=o&&o>x0e,W=F?t:!1,_=r||(E?je._({id:"dataGrid.filterCell",message:"Type to filter"}):void 0);if(l){const U=F&&E?M?"notEqual":"equals":null,B=i?J3(c)?c.map(H=>String(H.value)):c:void 0;return p.jsx(Y3,{maxMenuHeight:250,onChange:L,value:B,options:R||d,showSelectAllButton:f,style:"gridFilter",loadOptions:E?T:void 0,defaultOptions:R,placeholder:_,noOptionsMessage:()=>null,containerVariant:E?"search":void 0,placeholderIcon:U,onIconClick:v?P:void 0,optionVariant:"checkbox",multiLabelVariant:"count",isMulti:!0,disabled:n,isClearable:W})}return p.jsx(q7,{maxMenuHeight:250,onChange:e,value:i?c:void 0,options:d,style:"gridFilter",loadOptions:E?T:void 0,placeholder:_,placeholderIcon:F?void 0:null,isClearable:W,disabled:n})},S0e=()=>[{value:"",label:je._({id:"dataGrid.columnActive.filterOptions.all",message:"All"})},{value:"1",label:je._({id:"dataGrid.columnActive.filterOptions.yes",message:"Yes"})},{value:"0",label:je._({id:"dataGrid.columnActive.filterOptions.no",message:"No"})}],I0e=e=>{const t=C.useMemo(()=>S0e(),[]);return p.jsx(hF,{options:t,...e,isClearable:!1})};class bl extends Error{}class E0e extends bl{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class k0e extends bl{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class M0e extends bl{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Wc extends bl{}class pF extends bl{constructor(t){super(`Invalid unit ${t}`)}}class br extends bl{}class ys extends bl{constructor(){super("Zone is an abstract class")}}const Pe="numeric",ha="short",bi="long",X3={year:Pe,month:Pe,day:Pe},gF={year:Pe,month:ha,day:Pe},L0e={year:Pe,month:ha,day:Pe,weekday:ha},mF={year:Pe,month:bi,day:Pe},vF={year:Pe,month:bi,day:Pe,weekday:bi},yF={hour:Pe,minute:Pe},bF={hour:Pe,minute:Pe,second:Pe},CF={hour:Pe,minute:Pe,second:Pe,timeZoneName:ha},wF={hour:Pe,minute:Pe,second:Pe,timeZoneName:bi},xF={hour:Pe,minute:Pe,hourCycle:"h23"},SF={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23"},IF={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:ha},EF={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:bi},kF={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe},MF={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe,second:Pe},LF={year:Pe,month:ha,day:Pe,hour:Pe,minute:Pe},OF={year:Pe,month:ha,day:Pe,hour:Pe,minute:Pe,second:Pe},O0e={year:Pe,month:ha,day:Pe,weekday:ha,hour:Pe,minute:Pe},PF={year:Pe,month:bi,day:Pe,hour:Pe,minute:Pe,timeZoneName:ha},TF={year:Pe,month:bi,day:Pe,hour:Pe,minute:Pe,second:Pe,timeZoneName:ha},DF={year:Pe,month:bi,day:Pe,weekday:bi,hour:Pe,minute:Pe,timeZoneName:bi},BF={year:Pe,month:bi,day:Pe,weekday:bi,hour:Pe,minute:Pe,second:Pe,timeZoneName:bi};class L1{get type(){throw new ys}get name(){throw new ys}get ianaName(){return this.name}get isUniversal(){throw new ys}offsetName(t,n){throw new ys}formatOffset(t,n){throw new ys}offset(t){throw new ys}equals(t){throw new ys}get isValid(){throw new ys}}let em=null;class Q3 extends L1{static get instance(){return em===null&&(em=new Q3),em}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return oN(t,n,r)}formatOffset(t,n){return D1(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const tm=new Map;function P0e(e){let t=tm.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),tm.set(e,t)),t}const T0e={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function D0e(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,l,c,d,f,A]=r;return[l,i,o,c,d,f,A]}function B0e(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:o,value:l}=n[i],c=T0e[o];o==="era"?r[c]=l:Ke(c)||(r[c]=parseInt(l,10))}return r}const nm=new Map;class ko extends L1{static create(t){let n=nm.get(t);return n===void 0&&nm.set(t,n=new ko(t)),n}static resetCache(){nm.clear(),tm.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=ko.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return oN(t,n,r,this.name)}formatOffset(t,n){return D1(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=P0e(this.name);let[i,o,l,c,d,f,A]=r.formatToParts?B0e(r,n):D0e(r,n);c==="BC"&&(i=-Math.abs(i)+1);const v=tA({year:i,month:o,day:l,hour:d===24?0:d,minute:f,second:A,millisecond:0});let y=+n;const w=y%1e3;return y-=w>=0?w:1e3+w,(v-y)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let FF={};function F0e(e,t={}){const n=JSON.stringify([e,t]);let r=FF[n];return r||(r=new Intl.ListFormat(e,t),FF[n]=r),r}const rm=new Map;function im(e,t={}){const n=JSON.stringify([e,t]);let r=rm.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),rm.set(n,r)),r}const am=new Map;function N0e(e,t={}){const n=JSON.stringify([e,t]);let r=am.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),am.set(n,r)),r}const om=new Map;function j0e(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=om.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(e,t),om.set(i,o)),o}let O1=null;function R0e(){return O1||(O1=new Intl.DateTimeFormat().resolvedOptions().locale,O1)}const sm=new Map;function NF(e){let t=sm.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),sm.set(e,t)),t}const lm=new Map;function z0e(e){let t=lm.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...jF,...t}),lm.set(e,t)}return t}function W0e(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=im(e).resolvedOptions(),i=e}catch{const d=e.substring(0,n);r=im(d).resolvedOptions(),i=d}const{numberingSystem:o,calendar:l}=r;return[i,o,l]}}function V0e(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function H0e(e){const t=[];for(let n=1;n<=12;n++){const r=Ue.utc(2009,n,1);t.push(e(r))}return t}function G0e(e){const t=[];for(let n=1;n<=7;n++){const r=Ue.utc(2016,11,13+n);t.push(e(r))}return t}function K3(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function _0e(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||NF(e.locale).numberingSystem==="latn"}class U0e{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:o,...l}=r;if(!n||Object.keys(l).length>0){const c={useGrouping:!1,...r};r.padTo>0&&(c.minimumIntegerDigits=r.padTo),this.inf=N0e(t,c)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):mm(t,3);return En(n,this.padTo)}}}class Z0e{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const l=-1*(t.offset/60),c=l>=0?`Etc/GMT+${l}`:`Etc/GMT${l}`;t.offset!==0&&ko.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=im(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Y0e{constructor(t,n,r){this.opts={style:"long",...r},!n&&nN()&&(this.rtf=j0e(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):p1e(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const jF={firstDay:1,minimalDays:4,weekend:[6,7]};let $t=class Af{static fromOpts(t){return Af.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,o=!1){const l=t||gn.defaultLocale,c=l||(o?"en-US":R0e()),d=n||gn.defaultNumberingSystem,f=r||gn.defaultOutputCalendar,A=pm(i)||gn.defaultWeekSettings;return new Af(c,d,f,A,l)}static resetCache(){O1=null,rm.clear(),am.clear(),om.clear(),sm.clear(),lm.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return Af.create(t,n,r,i)}constructor(t,n,r,i,o){const[l,c,d]=W0e(t);this.locale=l,this.numberingSystem=n||c||null,this.outputCalendar=r||d||null,this.weekSettings=i,this.intl=V0e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=_0e(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Af.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,pm(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return K3(this,t,cN,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const i=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";if(!this.monthsCache[o][t]){const l=r?c=>this.dtFormatter(c,i).format():c=>this.extract(c,i,"month");this.monthsCache[o][t]=H0e(l)}return this.monthsCache[o][t]})}weekdays(t,n=!1){return K3(this,t,fN,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=G0e(o=>this.extract(o,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return K3(this,void 0,()=>AN,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ue.utc(2016,11,13,9),Ue.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return K3(this,t,hN,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ue.utc(-40,1,1),Ue.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),o=i.formatToParts(),l=o.find(c=>c.type.toLowerCase()===r);return l?l.value:null}numberFormatter(t={}){return new U0e(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Z0e(t,this.intl,n)}relFormatter(t={}){return new Y0e(this.intl,this.isEnglish(),t)}listFormatter(t={}){return F0e(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||NF(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:rN()?z0e(this.locale):jF}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},cm=null;class Fr extends L1{static get utcInstance(){return cm===null&&(cm=new Fr(0)),cm}static instance(t){return t===0?Fr.utcInstance:new Fr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Fr(nA(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${D1(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${D1(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return D1(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class J0e extends L1{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function bs(e,t){if(Ke(e)||e===null)return t;if(e instanceof L1)return e;if(e1e(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Q3.instance:n==="utc"||n==="gmt"?Fr.utcInstance:Fr.parseSpecifier(n)||ko.create(e)}else return Cs(e)?Fr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new J0e(e)}const um={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},RF={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},X0e=um.hanidec.replace(/[\[|\]]/g,"").split("");function Q0e(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(um.hanidec)!==-1)t+=X0e.indexOf(e[n]);else for(const i in RF){const[o,l]=RF[i];r>=o&&r<=l&&(t+=r-o)}}return parseInt(t,10)}else return t}const dm=new Map;function K0e(){dm.clear()}function pa({numberingSystem:e},t=""){const n=e||"latn";let r=dm.get(n);r===void 0&&(r=new Map,dm.set(n,r));let i=r.get(t);return i===void 0&&(i=new RegExp(`${um[n]}${t}`),r.set(t,i)),i}let zF=()=>Date.now(),WF="system",VF=null,HF=null,GF=null,_F=60,UF,ZF=null;class gn{static get now(){return zF}static set now(t){zF=t}static set defaultZone(t){WF=t}static get defaultZone(){return bs(WF,Q3.instance)}static get defaultLocale(){return VF}static set defaultLocale(t){VF=t}static get defaultNumberingSystem(){return HF}static set defaultNumberingSystem(t){HF=t}static get defaultOutputCalendar(){return GF}static set defaultOutputCalendar(t){GF=t}static get defaultWeekSettings(){return ZF}static set defaultWeekSettings(t){ZF=pm(t)}static get twoDigitCutoffYear(){return _F}static set twoDigitCutoffYear(t){_F=t%100}static get throwOnInvalid(){return UF}static set throwOnInvalid(t){UF=t}static resetCaches(){$t.resetCache(),ko.resetCache(),Ue.resetCache(),K0e()}}class ga{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const YF=[0,31,59,90,120,151,181,212,243,273,304,334],JF=[0,31,60,91,121,152,182,213,244,274,305,335];function Ri(e,t){return new ga("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function fm(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function XF(e,t,n){return n+(P1(e)?JF:YF)[t-1]}function QF(e,t){const n=P1(e)?JF:YF,r=n.findIndex(o=>o<t),i=t-n[r];return{month:r+1,day:i}}function Am(e,t){return(e-t+7)%7+1}function q3(e,t=4,n=1){const{year:r,month:i,day:o}=e,l=XF(r,i,o),c=Am(fm(r,i,o),n);let d=Math.floor((l-c+14-t)/7),f;return d<1?(f=r-1,d=T1(f,t,n)):d>T1(r,t,n)?(f=r+1,d=1):f=r,{weekYear:f,weekNumber:d,weekday:c,...iA(e)}}function KF(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:o}=e,l=Am(fm(r,1,t),n),c=Hc(r);let d=i*7+o-l-7+t,f;d<1?(f=r-1,d+=Hc(f)):d>c?(f=r+1,d-=Hc(r)):f=r;const{month:A,day:g}=QF(f,d);return{year:f,month:A,day:g,...iA(e)}}function hm(e){const{year:t,month:n,day:r}=e,i=XF(t,n,r);return{year:t,ordinal:i,...iA(e)}}function qF(e){const{year:t,ordinal:n}=e,{month:r,day:i}=QF(t,n);return{year:t,month:r,day:i,...iA(e)}}function $F(e,t){if(!Ke(e.localWeekday)||!Ke(e.localWeekNumber)||!Ke(e.localWeekYear)){if(!Ke(e.weekday)||!Ke(e.weekNumber)||!Ke(e.weekYear))throw new Wc("Cannot mix locale-based week fields with ISO-based week fields");return Ke(e.localWeekday)||(e.weekday=e.localWeekday),Ke(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ke(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function q0e(e,t=4,n=1){const r=$3(e.weekYear),i=zi(e.weekNumber,1,T1(e.weekYear,t,n)),o=zi(e.weekday,1,7);return r?i?o?!1:Ri("weekday",e.weekday):Ri("week",e.weekNumber):Ri("weekYear",e.weekYear)}function $0e(e){const t=$3(e.year),n=zi(e.ordinal,1,Hc(e.year));return t?n?!1:Ri("ordinal",e.ordinal):Ri("year",e.year)}function eN(e){const t=$3(e.year),n=zi(e.month,1,12),r=zi(e.day,1,eA(e.year,e.month));return t?n?r?!1:Ri("day",e.day):Ri("month",e.month):Ri("year",e.year)}function tN(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=zi(t,0,23)||t===24&&n===0&&r===0&&i===0,l=zi(n,0,59),c=zi(r,0,59),d=zi(i,0,999);return o?l?c?d?!1:Ri("millisecond",i):Ri("second",r):Ri("minute",n):Ri("hour",t)}function Ke(e){return typeof e>"u"}function Cs(e){return typeof e=="number"}function $3(e){return typeof e=="number"&&e%1===0}function e1e(e){return typeof e=="string"}function t1e(e){return Object.prototype.toString.call(e)==="[object Date]"}function nN(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function rN(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function n1e(e){return Array.isArray(e)?e:[e]}function iN(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const o=[t(i),i];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function r1e(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Vc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function pm(e){if(e==null)return null;if(typeof e!="object")throw new br("Week settings must be an object");if(!zi(e.firstDay,1,7)||!zi(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!zi(t,1,7)))throw new br("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function zi(e,t,n){return $3(e)&&e>=t&&e<=n}function i1e(e,t){return e-t*Math.floor(e/t)}function En(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function ws(e){if(!(Ke(e)||e===null||e===""))return parseInt(e,10)}function Cl(e){if(!(Ke(e)||e===null||e===""))return parseFloat(e)}function gm(e){if(!(Ke(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function mm(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function P1(e){return e%4===0&&(e%100!==0||e%400===0)}function Hc(e){return P1(e)?366:365}function eA(e,t){const n=i1e(t-1,12)+1,r=e+(t-n)/12;return n===2?P1(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function tA(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function aN(e,t,n){return-Am(fm(e,1,t),n)+t-1}function T1(e,t=4,n=1){const r=aN(e,t,n),i=aN(e+1,t,n);return(Hc(e)-r+i)/7}function vm(e){return e>99?e:e>gn.twoDigitCutoffYear?1900+e:2e3+e}function oN(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const l={timeZoneName:t,...o},c=new Intl.DateTimeFormat(n,l).formatToParts(i).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function nA(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function sN(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new br(`Invalid unit value ${e}`);return t}function rA(e,t){const n={};for(const r in e)if(Vc(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=sN(i)}return n}function D1(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${En(n,2)}:${En(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${En(n,2)}${En(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function iA(e){return r1e(e,["hour","minute","second","millisecond"])}const a1e=["January","February","March","April","May","June","July","August","September","October","November","December"],lN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],o1e=["J","F","M","A","M","J","J","A","S","O","N","D"];function cN(e){switch(e){case"narrow":return[...o1e];case"short":return[...lN];case"long":return[...a1e];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const uN=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],dN=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],s1e=["M","T","W","T","F","S","S"];function fN(e){switch(e){case"narrow":return[...s1e];case"short":return[...dN];case"long":return[...uN];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const AN=["AM","PM"],l1e=["Before Christ","Anno Domini"],c1e=["BC","AD"],u1e=["B","A"];function hN(e){switch(e){case"narrow":return[...u1e];case"short":return[...c1e];case"long":return[...l1e];default:return null}}function d1e(e){return AN[e.hour<12?0:1]}function f1e(e,t){return fN(t)[e.weekday-1]}function A1e(e,t){return cN(t)[e.month-1]}function h1e(e,t){return hN(t)[e.year<0?0:1]}function p1e(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&o){const g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`}}const l=Object.is(t,-0)||t<0,c=Math.abs(t),d=c===1,f=i[e],A=r?d?f[1]:f[2]||f[1]:d?i[e][0]:e;return l?`${c} ${A} ago`:`in ${c} ${A}`}function pN(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const g1e={D:X3,DD:gF,DDD:mF,DDDD:vF,t:yF,tt:bF,ttt:CF,tttt:wF,T:xF,TT:SF,TTT:IF,TTTT:EF,f:kF,ff:LF,fff:PF,ffff:DF,F:MF,FF:OF,FFF:TF,FFFF:BF};class Cr{static create(t,n={}){return new Cr(t,n)}static parseFormat(t){let n=null,r="",i=!1;const o=[];for(let l=0;l<t.length;l++){const c=t.charAt(l);c==="'"?((r.length>0||i)&&o.push({literal:i||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",i=!i):i||c===n?r+=c:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=c,n=c)}return r.length>0&&o.push({literal:i||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(t){return g1e[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return En(t,n);const i={...this.opts};return n>0&&(i.padTo=n),r&&(i.signDisplay=r),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(y,w)=>this.loc.extract(t,y,w),l=y=>t.isOffsetFixed&&t.offset===0&&y.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,y.format):"",c=()=>r?d1e(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(y,w)=>r?A1e(t,y):o(w?{month:y}:{month:y,day:"numeric"},"month"),f=(y,w)=>r?f1e(t,y):o(w?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),A=y=>{const w=Cr.macroTokenToFormatOpts(y);return w?this.formatWithSystemDefault(t,w):y},g=y=>r?h1e(t,y):o({era:y},"era"),v=y=>{switch(y){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return f("short",!0);case"cccc":return f("long",!0);case"ccccc":return f("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return f("short",!1);case"EEEE":return f("long",!1);case"EEEEE":return f("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return A(y)}};return pN(Cr.parseFormat(n),v)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,i=A=>{switch(A[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=(A,g)=>v=>{const y=i(v);if(y){const w=g.isNegativeDuration&&y!==g.largestUnit?r:1;let S;return this.opts.signMode==="negativeLargestOnly"&&y!==g.largestUnit?S="never":this.opts.signMode==="all"?S="always":S="auto",this.num(A.get(y)*w,v.length,S)}else return v},l=Cr.parseFormat(n),c=l.reduce((A,{literal:g,val:v})=>g?A:A.concat(v),[]),d=t.shiftTo(...c.map(i).filter(A=>A)),f={isNegativeDuration:d<0,largestUnit:Object.keys(d.values)[0]};return pN(l,o(d,f))}}const gN=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Gc(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function _c(...e){return t=>e.reduce(([n,r,i],o)=>{const[l,c,d]=o(t,i);return[{...n,...l},c||r,d]},[{},null,1]).slice(0,2)}function Uc(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function mN(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=ws(t[n+i]);return[r,null,n+i]}}const vN=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,m1e=`(?:${vN.source}?(?:\\[(${gN.source})\\])?)?`,ym=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,yN=RegExp(`${ym.source}${m1e}`),bm=RegExp(`(?:[Tt]${yN.source})?`),v1e=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,y1e=/(\d{4})-?W(\d\d)(?:-?(\d))?/,b1e=/(\d{4})-?(\d{3})/,C1e=mN("weekYear","weekNumber","weekDay"),w1e=mN("year","ordinal"),x1e=/(\d{4})-(\d\d)-(\d\d)/,bN=RegExp(`${ym.source} ?(?:${vN.source}|(${gN.source}))?`),S1e=RegExp(`(?: ${bN.source})?`);function Zc(e,t,n){const r=e[t];return Ke(r)?n:ws(r)}function I1e(e,t){return[{year:Zc(e,t),month:Zc(e,t+1,1),day:Zc(e,t+2,1)},null,t+3]}function Yc(e,t){return[{hours:Zc(e,t,0),minutes:Zc(e,t+1,0),seconds:Zc(e,t+2,0),milliseconds:gm(e[t+3])},null,t+4]}function B1(e,t){const n=!e[t]&&!e[t+1],r=nA(e[t+1],e[t+2]),i=n?null:Fr.instance(r);return[{},i,t+3]}function F1(e,t){const n=e[t]?ko.create(e[t]):null;return[{},n,t+1]}const E1e=RegExp(`^T?${ym.source}$`),k1e=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function M1e(e){const[t,n,r,i,o,l,c,d,f]=e,A=t[0]==="-",g=d&&d[0]==="-",v=(y,w=!1)=>y!==void 0&&(w||y&&A)?-y:y;return[{years:v(Cl(n)),months:v(Cl(r)),weeks:v(Cl(i)),days:v(Cl(o)),hours:v(Cl(l)),minutes:v(Cl(c)),seconds:v(Cl(d),d==="-0"),milliseconds:v(gm(f),g)}]}const L1e={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Cm(e,t,n,r,i,o,l){const c={year:t.length===2?vm(ws(t)):ws(t),month:lN.indexOf(n)+1,day:ws(r),hour:ws(i),minute:ws(o)};return l&&(c.second=ws(l)),e&&(c.weekday=e.length>3?uN.indexOf(e)+1:dN.indexOf(e)+1),c}const O1e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function P1e(e){const[,t,n,r,i,o,l,c,d,f,A,g]=e,v=Cm(t,i,r,n,o,l,c);let y;return d?y=L1e[d]:f?y=0:y=nA(A,g),[v,new Fr(y)]}function T1e(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const D1e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,B1e=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,F1e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function CN(e){const[,t,n,r,i,o,l,c]=e;return[Cm(t,i,r,n,o,l,c),Fr.utcInstance]}function N1e(e){const[,t,n,r,i,o,l,c]=e;return[Cm(t,c,n,r,i,o,l),Fr.utcInstance]}const j1e=Gc(v1e,bm),R1e=Gc(y1e,bm),z1e=Gc(b1e,bm),W1e=Gc(yN),wN=_c(I1e,Yc,B1,F1),V1e=_c(C1e,Yc,B1,F1),H1e=_c(w1e,Yc,B1,F1),G1e=_c(Yc,B1,F1);function _1e(e){return Uc(e,[j1e,wN],[R1e,V1e],[z1e,H1e],[W1e,G1e])}function U1e(e){return Uc(T1e(e),[O1e,P1e])}function Z1e(e){return Uc(e,[D1e,CN],[B1e,CN],[F1e,N1e])}function Y1e(e){return Uc(e,[k1e,M1e])}const J1e=_c(Yc);function X1e(e){return Uc(e,[E1e,J1e])}const Q1e=Gc(x1e,S1e),K1e=Gc(bN),q1e=_c(Yc,B1,F1);function $1e(e){return Uc(e,[Q1e,wN],[K1e,q1e])}const xN="Invalid Duration",SN={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},e2e={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...SN},Wi=146097/400,Jc=146097/4800,t2e={years:{quarters:4,months:12,weeks:Wi/7,days:Wi,hours:Wi*24,minutes:Wi*24*60,seconds:Wi*24*60*60,milliseconds:Wi*24*60*60*1e3},quarters:{months:3,weeks:Wi/28,days:Wi/4,hours:Wi*24/4,minutes:Wi*24*60/4,seconds:Wi*24*60*60/4,milliseconds:Wi*24*60*60*1e3/4},months:{weeks:Jc/7,days:Jc,hours:Jc*24,minutes:Jc*24*60,seconds:Jc*24*60*60,milliseconds:Jc*24*60*60*1e3},...SN},wl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],n2e=wl.slice(0).reverse();function Mo(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new wr(r)}function IN(e,t){let n=t.milliseconds??0;for(const r of n2e.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function EN(e,t){const n=IN(e,t)<0?-1:1;wl.reduceRight((r,i)=>{if(Ke(t[i]))return r;if(r){const o=t[r]*n,l=e[i][r],c=Math.floor(o/l);t[i]+=c*n,t[r]-=c*l*n}return i},null),wl.reduce((r,i)=>{if(Ke(t[i]))return r;if(r){const o=t[r]%1;t[r]-=o,t[i]+=o*e[r][i]}return i},null)}function kN(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}let wr=class pr{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?t2e:e2e;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||$t.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return pr.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new br(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new pr({values:rA(t,pr.normalizeUnit),loc:$t.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Cs(t))return pr.fromMillis(t);if(pr.isDuration(t))return t;if(typeof t=="object")return pr.fromObject(t);throw new br(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=Y1e(t);return r?pr.fromObject(r,n):pr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=X1e(t);return r?pr.fromObject(r,n):pr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the Duration is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new M0e(r);return new pr({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new pF(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Cr.create(this.loc,r).formatDurationFromString(this,t):xN}toHuman(t={}){if(!this.isValid)return xN;const n=t.showZeros!==!1,r=wl.map(i=>{const o=this.values[i];return Ke(o)||o===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=mm(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ue.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?IN(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=pr.fromDurationLike(t),r={};for(const i of wl)(Vc(n.values,i)||Vc(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Mo(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=pr.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=sN(t(this.values[r],r));return Mo(this,{values:n},!0)}get(t){return this[pr.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...rA(t,pr.normalizeUnit)};return Mo(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const l={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Mo(this,l)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return EN(this.matrix,t),Mo(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=kN(this.normalize().shiftToAll().toObject());return Mo(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(l=>pr.normalizeUnit(l));const n={},r={},i=this.toObject();let o;for(const l of wl)if(t.indexOf(l)>=0){o=l;let c=0;for(const f in r)c+=this.matrix[f][l]*r[f],r[f]=0;Cs(i[l])&&(c+=i[l]);const d=Math.trunc(c);n[l]=d,r[l]=(c*1e3-d*1e3)/1e3}else Cs(i[l])&&(r[l]=i[l]);for(const l in r)r[l]!==0&&(n[o]+=l===o?r[l]:r[l]/this.matrix[o][l]);return EN(this.matrix,n),Mo(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Mo(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=kN(this.values);return Mo(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of wl)if(!n(this.values[r],t.values[r]))return!1;return!0}};const Xc="Invalid Interval";function r2e(e,t){return!e||!e.isValid?mn.invalid("missing or invalid start"):!t||!t.isValid?mn.invalid("missing or invalid end"):t<e?mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the Interval is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new k0e(r);return new mn({invalid:r})}static fromDateTimes(t,n){const r=R1(t),i=R1(n),o=r2e(r,i);return o??new mn({start:r,end:i})}static after(t,n){const r=wr.fromDurationLike(n),i=R1(t);return mn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=wr.fromDurationLike(n),i=R1(t);return mn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let o,l;try{o=Ue.fromISO(r,n),l=o.isValid}catch{l=!1}let c,d;try{c=Ue.fromISO(i,n),d=c.isValid}catch{d=!1}if(l&&d)return mn.fromDateTimes(o,c);if(l){const f=wr.fromISO(i,n);if(f.isValid)return mn.after(o,f)}else if(d){const f=wr.fromISO(r,n);if(f.isValid)return mn.before(c,f)}}return mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let i;return n!=null&&n.useLocaleWeeks?i=this.end.reconfigure({locale:r.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(r,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(R1).filter(l=>this.contains(l)).sort((l,c)=>l.toMillis()-c.toMillis()),r=[];let{s:i}=this,o=0;for(;i<this.e;){const l=n[o]||this.e,c=+l>+this.e?this.e:l;r.push(mn.fromDateTimes(i,c)),i=c,o+=1}return r}splitBy(t){const n=wr.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,o;const l=[];for(;r<this.e;){const c=this.start.plus(n.mapUnits(d=>d*i));o=+c>+this.e?this.e:c,l.push(mn.fromDateTimes(r,o)),r=o,i+=1}return l}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],l)=>o?o.overlaps(l)||o.abutsStart(l)?[i,o.union(l)]:[i.concat([o]),l]:[i,l],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],o=t.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),l=Array.prototype.concat(...o),c=l.sort((d,f)=>d.time-f.time);for(const d of c)r+=d.type==="s"?1:-1,r===1?n=d.time:(n&&+n!=+d.time&&i.push(mn.fromDateTimes(n,d.time)),n=null);return mn.merge(i)}difference(...t){return mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Xc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=X3,n={}){return this.isValid?Cr.create(this.s.loc.clone(n),t).formatInterval(this):Xc}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Xc}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Xc}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Xc}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Xc}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):wr.invalid(this.invalidReason)}mapEndpoints(t){return mn.fromDateTimes(t(this.s),t(this.e))}}class aA{static hasDST(t=gn.defaultZone){const n=Ue.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ko.isValidZone(t)}static normalizeZone(t){return bs(t,gn.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||$t.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||$t.create(n,r,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||$t.create(n,r,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||$t.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||$t.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return $t.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return $t.create(n,null,"gregory").eras(t)}static features(){return{relative:nN(),localeWeek:rN()}}}function MN(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(wr.fromMillis(r).as("days"))}function i2e(e,t,n){const r=[["years",(d,f)=>f.year-d.year],["quarters",(d,f)=>f.quarter-d.quarter+(f.year-d.year)*4],["months",(d,f)=>f.month-d.month+(f.year-d.year)*12],["weeks",(d,f)=>{const A=MN(d,f);return(A-A%7)/7}],["days",MN]],i={},o=e;let l,c;for(const[d,f]of r)n.indexOf(d)>=0&&(l=d,i[d]=f(e,t),c=o.plus(i),c>t?(i[d]--,e=o.plus(i),e>t&&(c=e,i[d]--,e=o.plus(i))):e=c);return[e,i,c,l]}function a2e(e,t,n,r){let[i,o,l,c]=i2e(e,t,n);const d=t-i,f=n.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);f.length===0&&(l<t&&(l=i.plus({[c]:1})),l!==i&&(o[c]=(o[c]||0)+d/(l-i)));const A=wr.fromObject(o,r);return f.length>0?wr.fromMillis(d,r).shiftTo(...f).plus(A):A}const o2e="missing Intl.DateTimeFormat.formatToParts support";function St(e,t=n=>n){return{regex:e,deser:([n])=>t(Q0e(n))}}const LN="[ ]",ON=new RegExp(LN,"g");function s2e(e){return e.replace(/\./g,"\\.?").replace(ON,LN)}function PN(e){return e.replace(/\./g,"").replace(ON," ").toLowerCase()}function ma(e,t){return e===null?null:{regex:RegExp(e.map(s2e).join("|")),deser:([n])=>e.findIndex(r=>PN(n)===PN(r))+t}}function TN(e,t){return{regex:e,deser:([,n,r])=>nA(n,r),groups:t}}function oA(e){return{regex:e,deser:([t])=>t}}function l2e(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function c2e(e,t){const n=pa(t),r=pa(t,"{2}"),i=pa(t,"{3}"),o=pa(t,"{4}"),l=pa(t,"{6}"),c=pa(t,"{1,2}"),d=pa(t,"{1,3}"),f=pa(t,"{1,6}"),A=pa(t,"{1,9}"),g=pa(t,"{2,4}"),v=pa(t,"{4,6}"),y=I=>({regex:RegExp(l2e(I.val)),deser:([E])=>E,literal:!0}),S=(I=>{if(e.literal)return y(I);switch(I.val){case"G":return ma(t.eras("short"),0);case"GG":return ma(t.eras("long"),0);case"y":return St(f);case"yy":return St(g,vm);case"yyyy":return St(o);case"yyyyy":return St(v);case"yyyyyy":return St(l);case"M":return St(c);case"MM":return St(r);case"MMM":return ma(t.months("short",!0),1);case"MMMM":return ma(t.months("long",!0),1);case"L":return St(c);case"LL":return St(r);case"LLL":return ma(t.months("short",!1),1);case"LLLL":return ma(t.months("long",!1),1);case"d":return St(c);case"dd":return St(r);case"o":return St(d);case"ooo":return St(i);case"HH":return St(r);case"H":return St(c);case"hh":return St(r);case"h":return St(c);case"mm":return St(r);case"m":return St(c);case"q":return St(c);case"qq":return St(r);case"s":return St(c);case"ss":return St(r);case"S":return St(d);case"SSS":return St(i);case"u":return oA(A);case"uu":return oA(c);case"uuu":return St(n);case"a":return ma(t.meridiems(),0);case"kkkk":return St(o);case"kk":return St(g,vm);case"W":return St(c);case"WW":return St(r);case"E":case"c":return St(n);case"EEE":return ma(t.weekdays("short",!1),1);case"EEEE":return ma(t.weekdays("long",!1),1);case"ccc":return ma(t.weekdays("short",!0),1);case"cccc":return ma(t.weekdays("long",!0),1);case"Z":case"ZZ":return TN(new RegExp(`([+-]${c.source})(?::(${r.source}))?`),2);case"ZZZ":return TN(new RegExp(`([+-]${c.source})(${r.source})?`),2);case"z":return oA(/[a-z_+-/]{1,256}?/i);case" ":return oA(/[^\S\n\r]/);default:return y(I)}})(e)||{invalidReason:o2e};return S.token=e,S}const u2e={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function d2e(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const d=/^\s+$/.test(i);return{literal:!d,val:d?" ":i}}const o=t[r];let l=r;r==="hour"&&(t.hour12!=null?l=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?l="hour12":l="hour24":l=n.hour12?"hour12":"hour24");let c=u2e[l];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function f2e(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function A2e(e,t,n){const r=e.match(t);if(r){const i={};let o=1;for(const l in n)if(Vc(n,l)){const c=n[l],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(r.slice(o,o+d))),o+=d}return[r,i]}else return[r,{}]}function h2e(e){const t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Ke(e.z)||(n=ko.create(e.z)),Ke(e.Z)||(n||(n=new Fr(e.Z)),r=e.Z),Ke(e.q)||(e.M=(e.q-1)*3+1),Ke(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ke(e.u)||(e.S=gm(e.u)),[Object.keys(e).reduce((o,l)=>{const c=t(l);return c&&(o[c]=e[l]),o},{}),n,r]}let wm=null;function p2e(){return wm||(wm=Ue.fromMillis(1555555555555)),wm}function g2e(e,t){if(e.literal)return e;const n=Cr.macroTokenToFormatOpts(e.val),r=NN(n,t);return r==null||r.includes(void 0)?e:r}function DN(e,t){return Array.prototype.concat(...e.map(n=>g2e(n,t)))}class BN{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=DN(Cr.parseFormat(n),t),this.units=this.tokens.map(r=>c2e(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=f2e(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,r]=A2e(t,this.regex,this.handlers),[i,o,l]=r?h2e(r):[null,null,void 0];if(Vc(r,"a")&&Vc(r,"H"))throw new Wc("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:o,specificOffset:l}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function FN(e,t,n){return new BN(e,n).explainFromTokens(t)}function m2e(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:l}=FN(e,t,n);return[r,i,o,l]}function NN(e,t){if(!e)return null;const r=Cr.create(t,e).dtFormatter(p2e()),i=r.formatToParts(),o=r.resolvedOptions();return i.map(l=>d2e(l,e,o))}const xm="Invalid DateTime",jN=864e13;function N1(e){return new ga("unsupported zone",`the zone "${e.name}" is not supported`)}function Sm(e){return e.weekData===null&&(e.weekData=q3(e.c)),e.weekData}function Im(e){return e.localWeekData===null&&(e.localWeekData=q3(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function xl(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ue({...n,...t,old:n})}function RN(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const o=n.offset(r);return i===o?[r,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function sA(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function lA(e,t,n){return RN(tA(e),t,n)}function zN(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:r,month:i,day:Math.min(e.c.day,eA(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},l=wr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=tA(o);let[d,f]=RN(c,n,e.zone);return l!==0&&(d+=l,f=e.zone.offset(d)),{ts:d,o:f}}function Qc(e,t,n,r,i,o){const{setZone:l,zone:c}=n;if(e&&Object.keys(e).length!==0||t){const d=t||c,f=Ue.fromObject(e,{...n,zone:d,specificOffset:o});return l?f:f.setZone(c)}else return Ue.invalid(new ga("unparsable",`the input "${i}" can't be parsed as ${r}`))}function cA(e,t,n=!0){return e.isValid?Cr.create($t.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Em(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=En(e.c.year,r?6:4),n==="year")return i;if(t){if(i+="-",i+=En(e.c.month),n==="month")return i;i+="-"}else if(i+=En(e.c.month),n==="month")return i;return i+=En(e.c.day),i}function WN(e,t,n,r,i,o,l){let c=!n||e.c.millisecond!==0||e.c.second!==0,d="";switch(l){case"day":case"month":case"year":break;default:if(d+=En(e.c.hour),l==="hour")break;if(t){if(d+=":",d+=En(e.c.minute),l==="minute")break;c&&(d+=":",d+=En(e.c.second))}else{if(d+=En(e.c.minute),l==="minute")break;c&&(d+=En(e.c.second))}if(l==="second")break;c&&(!r||e.c.millisecond!==0)&&(d+=".",d+=En(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!o?d+="Z":e.o<0?(d+="-",d+=En(Math.trunc(-e.o/60)),d+=":",d+=En(Math.trunc(-e.o%60))):(d+="+",d+=En(Math.trunc(e.o/60)),d+=":",d+=En(Math.trunc(e.o%60)))),o&&(d+="["+e.zone.ianaName+"]"),d}const VN={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},v2e={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},y2e={ordinal:1,hour:0,minute:0,second:0,millisecond:0},uA=["year","month","day","hour","minute","second","millisecond"],b2e=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],C2e=["year","ordinal","hour","minute","second","millisecond"];function dA(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new pF(e);return t}function HN(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return dA(e)}}function w2e(e){if(j1===void 0&&(j1=gn.now()),e.type!=="iana")return e.offset(j1);const t=e.name;let n=km.get(t);return n===void 0&&(n=e.offset(j1),km.set(t,n)),n}function GN(e,t){const n=bs(t.zone,gn.defaultZone);if(!n.isValid)return Ue.invalid(N1(n));const r=$t.fromObject(t);let i,o;if(Ke(e.year))i=gn.now();else{for(const d of uA)Ke(e[d])&&(e[d]=VN[d]);const l=eN(e)||tN(e);if(l)return Ue.invalid(l);const c=w2e(n);[i,o]=lA(e,c,n)}return new Ue({ts:i,zone:n,loc:r,o})}function _N(e,t,n){const r=Ke(n.round)?!0:n.round,i=Ke(n.rounding)?"trunc":n.rounding,o=(c,d)=>(c=mm(c,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(c,d)),l=c=>n.calendary?t.hasSame(e,c)?0:t.startOf(c).diff(e.startOf(c),c).get(c):t.diff(e,c).get(c);if(n.unit)return o(l(n.unit),n.unit);for(const c of n.units){const d=l(c);if(Math.abs(d)>=1)return o(d,c)}return o(e>t?-0:0,n.units[n.units.length-1])}function UN(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let j1;const km=new Map;class Ue{constructor(t){const n=t.zone||gn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new ga("invalid input"):null)||(n.isValid?null:N1(n));this.ts=Ke(t.ts)?gn.now():t.ts;let i=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,o]=[t.old.c,t.old.o];else{const c=Cs(t.o)&&!t.old?t.o:n.offset(this.ts);i=sA(this.ts,c),r=Number.isNaN(i.year)?new ga("invalid input"):null,i=r?null:i,o=r?null:c}this._zone=n,this.loc=t.loc||$t.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new Ue({})}static local(){const[t,n]=UN(arguments),[r,i,o,l,c,d,f]=n;return GN({year:r,month:i,day:o,hour:l,minute:c,second:d,millisecond:f},t)}static utc(){const[t,n]=UN(arguments),[r,i,o,l,c,d,f]=n;return t.zone=Fr.utcInstance,GN({year:r,month:i,day:o,hour:l,minute:c,second:d,millisecond:f},t)}static fromJSDate(t,n={}){const r=t1e(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ue.invalid("invalid input");const i=bs(n.zone,gn.defaultZone);return i.isValid?new Ue({ts:r,zone:i,loc:$t.fromObject(n)}):Ue.invalid(N1(i))}static fromMillis(t,n={}){if(Cs(t))return t<-jN||t>jN?Ue.invalid("Timestamp out of range"):new Ue({ts:t,zone:bs(n.zone,gn.defaultZone),loc:$t.fromObject(n)});throw new br(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Cs(t))return new Ue({ts:t*1e3,zone:bs(n.zone,gn.defaultZone),loc:$t.fromObject(n)});throw new br("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=bs(n.zone,gn.defaultZone);if(!r.isValid)return Ue.invalid(N1(r));const i=$t.fromObject(n),o=rA(t,HN),{minDaysInFirstWeek:l,startOfWeek:c}=$F(o,i),d=gn.now(),f=Ke(n.specificOffset)?r.offset(d):n.specificOffset,A=!Ke(o.ordinal),g=!Ke(o.year),v=!Ke(o.month)||!Ke(o.day),y=g||v,w=o.weekYear||o.weekNumber;if((y||A)&&w)throw new Wc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&A)throw new Wc("Can't mix ordinal dates with month/day");const S=w||o.weekday&&!y;let I,E,M=sA(d,f);S?(I=b2e,E=v2e,M=q3(M,l,c)):A?(I=C2e,E=y2e,M=hm(M)):(I=uA,E=VN);let L=!1;for(const U of I){const B=o[U];Ke(B)?L?o[U]=E[U]:o[U]=M[U]:L=!0}const T=S?q0e(o,l,c):A?$0e(o):eN(o),P=T||tN(o);if(P)return Ue.invalid(P);const R=S?KF(o,l,c):A?qF(o):o,[F,W]=lA(R,f,r),_=new Ue({ts:F,zone:r,o:W,loc:i});return o.weekday&&y&&t.weekday!==_.weekday?Ue.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${_.toISO()}`):_.isValid?_:Ue.invalid(_.invalid)}static fromISO(t,n={}){const[r,i]=_1e(t);return Qc(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=U1e(t);return Qc(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=Z1e(t);return Qc(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Ke(t)||Ke(n))throw new br("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,d,f,A]=m2e(l,t,n);return A?Ue.invalid(A):Qc(c,d,r,`format ${n}`,t,f)}static fromString(t,n,r={}){return Ue.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=$1e(t);return Qc(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new br("need to specify a reason the DateTime is invalid");const r=t instanceof ga?t:new ga(t,n);if(gn.throwOnInvalid)throw new E0e(r);return new Ue({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=NN(t,$t.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return DN(Cr.parseFormat(t),$t.fromObject(n)).map(i=>i.val).join("")}static resetCache(){j1=void 0,km.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Sm(this).weekYear:NaN}get weekNumber(){return this.isValid?Sm(this).weekNumber:NaN}get weekday(){return this.isValid?Sm(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Im(this).weekday:NaN}get localWeekNumber(){return this.isValid?Im(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Im(this).weekYear:NaN}get ordinal(){return this.isValid?hm(this.c).ordinal:NaN}get monthShort(){return this.isValid?aA.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?aA.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?aA.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?aA.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=tA(this.c),i=this.zone.offset(r-t),o=this.zone.offset(r+t),l=this.zone.offset(r-i*n),c=this.zone.offset(r-o*n);if(l===c)return[this];const d=r-l*n,f=r-c*n,A=sA(d,l),g=sA(f,c);return A.hour===g.hour&&A.minute===g.minute&&A.second===g.second&&A.millisecond===g.millisecond?[xl(this,{ts:d}),xl(this,{ts:f})]:[this]}get isInLeapYear(){return P1(this.year)}get daysInMonth(){return eA(this.year,this.month)}get daysInYear(){return this.isValid?Hc(this.year):NaN}get weeksInWeekYear(){return this.isValid?T1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?T1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=Cr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Fr.instance(t),n)}toLocal(){return this.setZone(gn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=bs(t,gn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const o=t.offset(this.ts),l=this.toObject();[i]=lA(l,o,t)}return xl(this,{ts:i,zone:t})}else return Ue.invalid(N1(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return xl(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=rA(t,HN),{minDaysInFirstWeek:r,startOfWeek:i}=$F(n,this.loc),o=!Ke(n.weekYear)||!Ke(n.weekNumber)||!Ke(n.weekday),l=!Ke(n.ordinal),c=!Ke(n.year),d=!Ke(n.month)||!Ke(n.day),f=c||d,A=n.weekYear||n.weekNumber;if((f||l)&&A)throw new Wc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&l)throw new Wc("Can't mix ordinal dates with month/day");let g;o?g=KF({...q3(this.c,r,i),...n},r,i):Ke(n.ordinal)?(g={...this.toObject(),...n},Ke(n.day)&&(g.day=Math.min(eA(g.year,g.month),g.day))):g=qF({...hm(this.c),...n});const[v,y]=lA(g,this.o,this.zone);return xl(this,{ts:v,o:y})}plus(t){if(!this.isValid)return this;const n=wr.fromDurationLike(t);return xl(this,zN(this,n))}minus(t){if(!this.isValid)return this;const n=wr.fromDurationLike(t).negate();return xl(this,zN(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=wr.normalizeUnit(t);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks")if(n){const o=this.loc.getStartOfWeek(),{weekday:l}=this;l<o&&(r.weekNumber=this.weekNumber-1),r.weekday=o}else r.weekday=1;if(i==="quarters"){const o=Math.ceil(this.month/3);r.month=(o-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?Cr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):xm}toLocaleString(t=X3,n={}){return this.isValid?Cr.create(this.loc.clone(n),t).formatDateTime(this):xm}toLocaleParts(t={}){return this.isValid?Cr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:o=!1,precision:l="milliseconds"}={}){if(!this.isValid)return null;l=dA(l);const c=t==="extended";let d=Em(this,c,l);return uA.indexOf(l)>=3&&(d+="T"),d+=WN(this,c,n,r,i,o,l),d}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Em(this,t==="extended",dA(n)):null}toISOWeekDate(){return cA(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:o=!1,format:l="extended",precision:c="milliseconds"}={}){return this.isValid?(c=dA(c),(i&&uA.indexOf(c)>=3?"T":"")+WN(this,l==="extended",n,t,r,o,c)):null}toRFC2822(){return cA(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return cA(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Em(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),cA(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():xm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return wr.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=n1e(n).map(wr.normalizeUnit),l=t.valueOf()>this.valueOf(),c=l?this:t,d=l?t:this,f=a2e(c,d,o,i);return l?f.negate():f}diffNow(t="milliseconds",n={}){return this.diff(Ue.now(),t,n)}until(t){return this.isValid?mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(n,r)<=i&&i<=o.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ue.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),_N(n,this.plus(r),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?_N(t.base||Ue.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ue.isDateTime))throw new br("min requires all arguments be DateTimes");return iN(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ue.isDateTime))throw new br("max requires all arguments be DateTimes");return iN(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return FN(l,t,n)}static fromStringExplain(t,n,r={}){return Ue.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:i=null}=n,o=$t.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new BN(o,t)}static fromFormatParser(t,n,r={}){if(Ke(t)||Ke(n))throw new br("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:o=null}=r,l=$t.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!l.equals(n.locale))throw new br(`fromFormatParser called with a locale of ${l}, but the format parser was created for ${n.locale}`);const{result:c,zone:d,specificOffset:f,invalidReason:A}=n.explainFromTokens(t);return A?Ue.invalid(A):Qc(c,d,r,`format ${n.format}`,t,f)}static get DATE_SHORT(){return X3}static get DATE_MED(){return gF}static get DATE_MED_WITH_WEEKDAY(){return L0e}static get DATE_FULL(){return mF}static get DATE_HUGE(){return vF}static get TIME_SIMPLE(){return yF}static get TIME_WITH_SECONDS(){return bF}static get TIME_WITH_SHORT_OFFSET(){return CF}static get TIME_WITH_LONG_OFFSET(){return wF}static get TIME_24_SIMPLE(){return xF}static get TIME_24_WITH_SECONDS(){return SF}static get TIME_24_WITH_SHORT_OFFSET(){return IF}static get TIME_24_WITH_LONG_OFFSET(){return EF}static get DATETIME_SHORT(){return kF}static get DATETIME_SHORT_WITH_SECONDS(){return MF}static get DATETIME_MED(){return LF}static get DATETIME_MED_WITH_SECONDS(){return OF}static get DATETIME_MED_WITH_WEEKDAY(){return O0e}static get DATETIME_FULL(){return PF}static get DATETIME_FULL_WITH_SECONDS(){return TF}static get DATETIME_HUGE(){return DF}static get DATETIME_HUGE_WITH_SECONDS(){return BF}}function R1(e){if(Ue.isDateTime(e))return e;if(e&&e.valueOf&&Cs(e.valueOf()))return Ue.fromJSDate(e);if(e&&typeof e=="object")return Ue.fromObject(e);throw new br(`Unknown datetime argument: ${e}, of type ${typeof e}`)}//! moment.js
|
|
1478
1478
|
//! version : 2.30.1
|
|
1479
1479
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
1480
1480
|
//! license : MIT
|
|
@@ -1516,6 +1516,7 @@ Me.version="2.30.1",x2e(tn),Me.fn=Ee,Me.min=dfe,Me.max=ffe,Me.now=Afe,Me.utc=Xa,
|
|
|
1516
1516
|
${Co};
|
|
1517
1517
|
border: slim;
|
|
1518
1518
|
border-color: ${({$isInvalid:e})=>e?V.color("red1"):V.color("lightGray6")};
|
|
1519
|
+
background-color: transparent;
|
|
1519
1520
|
box-sizing: border-box;
|
|
1520
1521
|
background-clip: padding-box;
|
|
1521
1522
|
padding-top: 0.5em;
|
|
@@ -2751,7 +2752,7 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
2751
2752
|
|
|
2752
2753
|
.sticky-right,
|
|
2753
2754
|
.sticky-left {
|
|
2754
|
-
background: white;
|
|
2755
|
+
background-color: white;
|
|
2755
2756
|
}
|
|
2756
2757
|
|
|
2757
2758
|
.sticky-right {
|