@bynder/compact-view 5.2.2 → 5.2.4
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/AccessToken2.js +1 -1
- package/ActiveFilters.js +49 -50
- package/AddMedia.js +19 -18
- package/Advanced.js +13 -13
- package/App.js +60 -59
- package/Arrow.js +1 -1
- package/AssetFilter.js +38 -38
- package/AssetItem.js +10 -17
- package/AssetList.js +5 -5
- package/AssetTypeItem.js +21 -21
- package/AssetsView.js +13 -13
- package/Axios2.js +82 -76
- package/AxiosError.js +36 -35
- package/ButtonAction.js +1 -1
- package/CanceledError.js +15 -8
- package/Card.js +1 -1
- package/Chip.js +1 -1
- package/CollectionCard.js +22 -22
- package/CollectionItem.js +9 -9
- package/CollectionList.js +5 -5
- package/CollectionView.js +11 -11
- package/ColorPicker.js +1 -1
- package/ColorPickerSolid.js +3 -3
- package/ColorPickerWithOpacity.js +3 -3
- package/Component.js +158 -0
- package/Component2.js +4 -0
- package/ConfigContext.js +7 -8
- package/Container.js +1 -1
- package/ContextAction.js +1 -1
- package/ControlGroup.js +6 -6
- package/Dat.js +33 -32
- package/DatDropdownItem.js +1 -1
- package/DesignSystemProvider.js +7 -7
- package/DirectionSelect.js +11 -10
- package/DomainInput.js +19 -11
- package/Draggable.js +337 -0
- package/Draggable2.js +4 -0
- package/DraggableCore.js +312 -0
- package/DraggableCore2.js +4 -0
- package/Dropdown.js +37 -37
- package/Dropdown2.js +1 -1
- package/DropdownListItem.js +1 -1
- package/FieldSelect.js +19 -17
- package/FileSelector.js +38 -37
- package/FontPicker.js +1 -1
- package/Form.js +1 -1
- package/Header.js +5 -4
- package/HttpStatusCode.js +7 -1
- package/InfiniteScroll.js +1 -1
- package/InlineBanner.js +1 -1
- package/Input.js +1 -1
- package/InterceptorManager.js +2 -1
- package/Item.js +8 -8
- package/Item4.js +2 -2
- package/LeftArrow.js +1 -1
- package/ListItem2.js +1 -1
- package/ModalBase.js +15 -15
- package/NoResults.js +1 -1
- package/Option_new.js +36 -29
- package/ReactPropTypesSecret.js +10 -0
- package/RightArrow.js +1 -1
- package/SearchInput.js +1 -1
- package/SearchInput2.js +1 -1
- package/SelectionFooter.js +41 -31
- package/Shield.js +2 -2
- package/Smartfilters_new.js +107 -98
- package/StatefulAssetList.js +50 -50
- package/StoreInitializer.js +32 -16
- package/SwitchNLS.js +1 -1
- package/TagItem.js +15 -15
- package/Tags.js +1 -1
- package/Toolbar.js +23 -20
- package/Tooltip2.js +1 -1
- package/ViewSwitch.js +17 -15
- package/_commonjsHelpers.js +28 -3
- package/adapters.js +54 -42
- package/api/filterAssets.d.ts +1 -1
- package/api/getAssets.d.ts +1 -1
- package/api/getFilters.d.ts +1 -1
- package/api/rest/index.d.ts +1 -1
- package/api/rest/types.d.ts +1 -1
- package/api2.js +1 -1
- package/asset.type.js +1 -1
- package/axios.js +1 -1
- package/bodyScrollLock.esm.js +68 -0
- package/buildURL.js +13 -15
- package/checkGlobals.js +1 -1
- package/cjs.js +7 -0
- package/cjs2.js +15 -0
- package/cjs3.js +4 -0
- package/clsx.m.js +6 -0
- package/clsx.m2.js +15 -0
- package/combineMetaproperties.js +3 -1
- package/composeSignals.js +1 -1
- package/cookieStore.js +1 -1
- package/cookies.js +13 -11
- package/currentScopes.js +1 -1
- package/data.js +1 -1
- package/devUtils.js +1 -1
- package/dispatchRequest.js +5 -5
- package/domFns.js +151 -0
- package/domFns2.js +4 -0
- package/factoryWithThrowingShims.js +52 -0
- package/fetch2.js +156 -128
- package/filter/AssetFilterContext.d.ts +3 -3
- package/getPrefix.js +35 -0
- package/getPrefix2.js +4 -0
- package/goober.modern.js +75 -0
- package/handlers.js +1 -1
- package/iconBase.js +56 -0
- package/iconContext.js +12 -0
- package/iconsManifest.js +222 -0
- package/index-esm.js +1 -4
- package/index.browser.js +1 -1
- package/index.m.js +9 -0
- package/index.m2.js +17 -0
- package/index10.js +1 -1
- package/index11.js +181 -15
- package/index112.js +1 -1
- package/index12.js +313 -36
- package/index13.js +5 -2430
- package/index14.js +3 -557
- package/index15.js +15 -55
- package/index16.js +3 -2
- package/index17.js +3 -87
- package/index18.js +36 -7
- package/index19.js +3 -60
- package/index20.js +2429 -12
- package/index21.js +557 -10
- package/index22.js +1 -1
- package/index23.js +119 -6
- package/index24.js +39 -7
- package/index25.js +2 -5
- package/index26.js +86 -9
- package/index27.js +55 -8
- package/index28.js +6 -636
- package/index29.js +8692 -74
- package/index3.js +1684 -5
- package/index30.js +2 -5
- package/index31.js +4 -20
- package/index310.js +2 -0
- package/index32.js +11 -2
- package/index33.js +5083 -4
- package/index34.js +2 -18
- package/index35.js +59 -5
- package/index36.js +2 -2
- package/index37.js +13 -11
- package/index38.js +46 -10
- package/index39.js +6 -12
- package/index4.js +5 -1684
- package/index40.js +8 -11
- package/index41.js +26 -18
- package/index42.js +2 -64
- package/index43.js +63 -5
- package/index44.js +9 -55
- package/index45.js +7 -67
- package/index46.js +8 -31
- package/index47.js +5 -11
- package/index48.js +10 -121
- package/index49.js +9 -86
- package/index5.js +215 -23
- package/index50.js +636 -7
- package/index51.js +74 -11
- package/index52.js +4 -13
- package/index53.js +19 -13
- package/index54.js +4 -6
- package/index55.js +18 -7
- package/index56.js +5 -14
- package/index57.js +10 -28
- package/index58.js +10 -15
- package/index59.js +15 -0
- package/index6.js +250 -299
- package/index60.js +13 -0
- package/index61.js +21 -0
- package/index62.js +8 -0
- package/index63.js +57 -0
- package/index64.js +4 -0
- package/index65.js +69 -0
- package/index66.js +33 -0
- package/index67.js +13 -0
- package/index68.js +123 -0
- package/index69.js +88 -0
- package/index7.js +25 -2
- package/index70.js +10 -0
- package/index71.js +13 -0
- package/index72.js +13 -225
- package/index73.js +16 -0
- package/index74.js +9 -0
- package/index75.js +228 -0
- package/index76.js +9 -0
- package/index77.js +17 -0
- package/index78.js +31 -0
- package/index79.js +18 -0
- package/index8.js +1537 -1536
- package/index9.js +1 -1
- package/isAbsoluteURL.js +1 -1
- package/isURLSameOrigin.js +1 -1
- package/localization.js +15 -15
- package/log.js +14 -0
- package/log2.js +4 -0
- package/matchRequestUrl.js +1 -1
- package/mergeConfig.js +37 -32
- package/notify.js +2 -2
- package/package.json +1 -1
- package/positionFns.js +101 -0
- package/positionFns2.js +4 -0
- package/react-laag.esm.js +957 -0
- package/react.js +8 -8
- package/react2.js +9 -9
- package/resolveConfig.js +23 -23
- package/select/add-media/AddMedia.d.ts +3 -1
- package/select/current-selection/SelectedItems.d.ts +1 -1
- package/shims.js +29 -0
- package/shims2.js +4 -0
- package/store/StoreInitializer.d.ts +5 -1
- package/store/useAssetFilterStore.d.ts +55 -0
- package/store/useSelectionStore.d.ts +47 -0
- package/styled-components.browser.esm.js +2 -2
- package/throttle.js +1 -1
- package/toURLEncodedForm.js +11 -10
- package/tokenExpirationHelper.js +1 -1
- package/transformData.js +1 -1
- package/transitional.js +4 -3
- package/useAssetFilterStore.js +152 -0
- package/useDatStore.js +1 -1
- package/useEffectEvent.js +7 -7
- package/useFonts.js +1 -1
- package/useOrderingStore.js +1 -1
- package/useRouterStore.js +1 -1
- package/useSearchStore.js +1 -1
- package/useSelectionStore.js +131 -0
- package/useSimilaritySearchStore.js +1 -1
- package/useTranslate.js +1 -1
- package/utils/combineMetaproperties.d.ts +2 -0
- package/utils6.js +160 -118
- package/xhr.js +47 -46
- package/AssetFilterContext.js +0 -161
- package/Middleware.js +0 -49
- package/SelectionContext.js +0 -143
- package/middleware2.js +0 -177
- package/select/SelectionContext.d.ts +0 -30
package/index65.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var r = {
|
|
2
|
+
lessThanXSeconds: {
|
|
3
|
+
one: "less than a second",
|
|
4
|
+
other: "less than {{count}} seconds"
|
|
5
|
+
},
|
|
6
|
+
xSeconds: {
|
|
7
|
+
one: "1 second",
|
|
8
|
+
other: "{{count}} seconds"
|
|
9
|
+
},
|
|
10
|
+
halfAMinute: "half a minute",
|
|
11
|
+
lessThanXMinutes: {
|
|
12
|
+
one: "less than a minute",
|
|
13
|
+
other: "less than {{count}} minutes"
|
|
14
|
+
},
|
|
15
|
+
xMinutes: {
|
|
16
|
+
one: "1 minute",
|
|
17
|
+
other: "{{count}} minutes"
|
|
18
|
+
},
|
|
19
|
+
aboutXHours: {
|
|
20
|
+
one: "about 1 hour",
|
|
21
|
+
other: "about {{count}} hours"
|
|
22
|
+
},
|
|
23
|
+
xHours: {
|
|
24
|
+
one: "1 hour",
|
|
25
|
+
other: "{{count}} hours"
|
|
26
|
+
},
|
|
27
|
+
xDays: {
|
|
28
|
+
one: "1 day",
|
|
29
|
+
other: "{{count}} days"
|
|
30
|
+
},
|
|
31
|
+
aboutXWeeks: {
|
|
32
|
+
one: "about 1 week",
|
|
33
|
+
other: "about {{count}} weeks"
|
|
34
|
+
},
|
|
35
|
+
xWeeks: {
|
|
36
|
+
one: "1 week",
|
|
37
|
+
other: "{{count}} weeks"
|
|
38
|
+
},
|
|
39
|
+
aboutXMonths: {
|
|
40
|
+
one: "about 1 month",
|
|
41
|
+
other: "about {{count}} months"
|
|
42
|
+
},
|
|
43
|
+
xMonths: {
|
|
44
|
+
one: "1 month",
|
|
45
|
+
other: "{{count}} months"
|
|
46
|
+
},
|
|
47
|
+
aboutXYears: {
|
|
48
|
+
one: "about 1 year",
|
|
49
|
+
other: "about {{count}} years"
|
|
50
|
+
},
|
|
51
|
+
xYears: {
|
|
52
|
+
one: "1 year",
|
|
53
|
+
other: "{{count}} years"
|
|
54
|
+
},
|
|
55
|
+
overXYears: {
|
|
56
|
+
one: "over 1 year",
|
|
57
|
+
other: "over {{count}} years"
|
|
58
|
+
},
|
|
59
|
+
almostXYears: {
|
|
60
|
+
one: "almost 1 year",
|
|
61
|
+
other: "almost {{count}} years"
|
|
62
|
+
}
|
|
63
|
+
}, u = function(a, n, o) {
|
|
64
|
+
var e, t = r[a];
|
|
65
|
+
return typeof t == "string" ? e = t : n === 1 ? e = t.one : e = t.other.replace("{{count}}", n.toString()), o != null && o.addSuffix ? o.comparison && o.comparison > 0 ? "in " + e : e + " ago" : e;
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
u as default
|
|
69
|
+
};
|
package/index66.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import t from "./index76.js";
|
|
2
|
+
var m = {
|
|
3
|
+
full: "EEEE, MMMM do, y",
|
|
4
|
+
long: "MMMM do, y",
|
|
5
|
+
medium: "MMM d, y",
|
|
6
|
+
short: "MM/dd/yyyy"
|
|
7
|
+
}, a = {
|
|
8
|
+
full: "h:mm:ss a zzzz",
|
|
9
|
+
long: "h:mm:ss a z",
|
|
10
|
+
medium: "h:mm:ss a",
|
|
11
|
+
short: "h:mm a"
|
|
12
|
+
}, d = {
|
|
13
|
+
full: "{{date}} 'at' {{time}}",
|
|
14
|
+
long: "{{date}} 'at' {{time}}",
|
|
15
|
+
medium: "{{date}}, {{time}}",
|
|
16
|
+
short: "{{date}}, {{time}}"
|
|
17
|
+
}, o = {
|
|
18
|
+
date: t({
|
|
19
|
+
formats: m,
|
|
20
|
+
defaultWidth: "full"
|
|
21
|
+
}),
|
|
22
|
+
time: t({
|
|
23
|
+
formats: a,
|
|
24
|
+
defaultWidth: "full"
|
|
25
|
+
}),
|
|
26
|
+
dateTime: t({
|
|
27
|
+
formats: d,
|
|
28
|
+
defaultWidth: "full"
|
|
29
|
+
})
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
o as default
|
|
33
|
+
};
|
package/index67.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var t = {
|
|
2
|
+
lastWeek: "'last' eeee 'at' p",
|
|
3
|
+
yesterday: "'yesterday at' p",
|
|
4
|
+
today: "'today at' p",
|
|
5
|
+
tomorrow: "'tomorrow at' p",
|
|
6
|
+
nextWeek: "eeee 'at' p",
|
|
7
|
+
other: "P"
|
|
8
|
+
}, p = function(e, o, r, l) {
|
|
9
|
+
return t[e];
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
p as default
|
|
13
|
+
};
|
package/index68.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import e from "./index77.js";
|
|
2
|
+
var t = {
|
|
3
|
+
narrow: ["B", "A"],
|
|
4
|
+
abbreviated: ["BC", "AD"],
|
|
5
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
6
|
+
}, o = {
|
|
7
|
+
narrow: ["1", "2", "3", "4"],
|
|
8
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
9
|
+
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
10
|
+
}, d = {
|
|
11
|
+
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
12
|
+
abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
13
|
+
wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
|
14
|
+
}, m = {
|
|
15
|
+
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
16
|
+
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
17
|
+
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
18
|
+
wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
19
|
+
}, u = {
|
|
20
|
+
narrow: {
|
|
21
|
+
am: "a",
|
|
22
|
+
pm: "p",
|
|
23
|
+
midnight: "mi",
|
|
24
|
+
noon: "n",
|
|
25
|
+
morning: "morning",
|
|
26
|
+
afternoon: "afternoon",
|
|
27
|
+
evening: "evening",
|
|
28
|
+
night: "night"
|
|
29
|
+
},
|
|
30
|
+
abbreviated: {
|
|
31
|
+
am: "AM",
|
|
32
|
+
pm: "PM",
|
|
33
|
+
midnight: "midnight",
|
|
34
|
+
noon: "noon",
|
|
35
|
+
morning: "morning",
|
|
36
|
+
afternoon: "afternoon",
|
|
37
|
+
evening: "evening",
|
|
38
|
+
night: "night"
|
|
39
|
+
},
|
|
40
|
+
wide: {
|
|
41
|
+
am: "a.m.",
|
|
42
|
+
pm: "p.m.",
|
|
43
|
+
midnight: "midnight",
|
|
44
|
+
noon: "noon",
|
|
45
|
+
morning: "morning",
|
|
46
|
+
afternoon: "afternoon",
|
|
47
|
+
evening: "evening",
|
|
48
|
+
night: "night"
|
|
49
|
+
}
|
|
50
|
+
}, g = {
|
|
51
|
+
narrow: {
|
|
52
|
+
am: "a",
|
|
53
|
+
pm: "p",
|
|
54
|
+
midnight: "mi",
|
|
55
|
+
noon: "n",
|
|
56
|
+
morning: "in the morning",
|
|
57
|
+
afternoon: "in the afternoon",
|
|
58
|
+
evening: "in the evening",
|
|
59
|
+
night: "at night"
|
|
60
|
+
},
|
|
61
|
+
abbreviated: {
|
|
62
|
+
am: "AM",
|
|
63
|
+
pm: "PM",
|
|
64
|
+
midnight: "midnight",
|
|
65
|
+
noon: "noon",
|
|
66
|
+
morning: "in the morning",
|
|
67
|
+
afternoon: "in the afternoon",
|
|
68
|
+
evening: "in the evening",
|
|
69
|
+
night: "at night"
|
|
70
|
+
},
|
|
71
|
+
wide: {
|
|
72
|
+
am: "a.m.",
|
|
73
|
+
pm: "p.m.",
|
|
74
|
+
midnight: "midnight",
|
|
75
|
+
noon: "noon",
|
|
76
|
+
morning: "in the morning",
|
|
77
|
+
afternoon: "in the afternoon",
|
|
78
|
+
evening: "in the evening",
|
|
79
|
+
night: "at night"
|
|
80
|
+
}
|
|
81
|
+
}, h = function(a, v) {
|
|
82
|
+
var n = Number(a), r = n % 100;
|
|
83
|
+
if (r > 20 || r < 10)
|
|
84
|
+
switch (r % 10) {
|
|
85
|
+
case 1:
|
|
86
|
+
return n + "st";
|
|
87
|
+
case 2:
|
|
88
|
+
return n + "nd";
|
|
89
|
+
case 3:
|
|
90
|
+
return n + "rd";
|
|
91
|
+
}
|
|
92
|
+
return n + "th";
|
|
93
|
+
}, b = {
|
|
94
|
+
ordinalNumber: h,
|
|
95
|
+
era: e({
|
|
96
|
+
values: t,
|
|
97
|
+
defaultWidth: "wide"
|
|
98
|
+
}),
|
|
99
|
+
quarter: e({
|
|
100
|
+
values: o,
|
|
101
|
+
defaultWidth: "wide",
|
|
102
|
+
argumentCallback: function(a) {
|
|
103
|
+
return a - 1;
|
|
104
|
+
}
|
|
105
|
+
}),
|
|
106
|
+
month: e({
|
|
107
|
+
values: d,
|
|
108
|
+
defaultWidth: "wide"
|
|
109
|
+
}),
|
|
110
|
+
day: e({
|
|
111
|
+
values: m,
|
|
112
|
+
defaultWidth: "wide"
|
|
113
|
+
}),
|
|
114
|
+
dayPeriod: e({
|
|
115
|
+
values: u,
|
|
116
|
+
defaultWidth: "wide",
|
|
117
|
+
formattingValues: g,
|
|
118
|
+
defaultFormattingWidth: "wide"
|
|
119
|
+
})
|
|
120
|
+
};
|
|
121
|
+
export {
|
|
122
|
+
b as default
|
|
123
|
+
};
|
package/index69.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import a from "./index78.js";
|
|
2
|
+
import e from "./index79.js";
|
|
3
|
+
var i = /^(\d+)(th|st|nd|rd)?/i, n = /\d+/i, s = {
|
|
4
|
+
narrow: /^(b|a)/i,
|
|
5
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
6
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
7
|
+
}, d = {
|
|
8
|
+
any: [/^b/i, /^(a|c)/i]
|
|
9
|
+
}, o = {
|
|
10
|
+
narrow: /^[1234]/i,
|
|
11
|
+
abbreviated: /^q[1234]/i,
|
|
12
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
13
|
+
}, m = {
|
|
14
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
15
|
+
}, u = {
|
|
16
|
+
narrow: /^[jfmasond]/i,
|
|
17
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
18
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
19
|
+
}, h = {
|
|
20
|
+
narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
|
|
21
|
+
any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
|
|
22
|
+
}, c = {
|
|
23
|
+
narrow: /^[smtwf]/i,
|
|
24
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
25
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
26
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
27
|
+
}, P = {
|
|
28
|
+
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
29
|
+
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
30
|
+
}, f = {
|
|
31
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
32
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
33
|
+
}, l = {
|
|
34
|
+
any: {
|
|
35
|
+
am: /^a/i,
|
|
36
|
+
pm: /^p/i,
|
|
37
|
+
midnight: /^mi/i,
|
|
38
|
+
noon: /^no/i,
|
|
39
|
+
morning: /morning/i,
|
|
40
|
+
afternoon: /afternoon/i,
|
|
41
|
+
evening: /evening/i,
|
|
42
|
+
night: /night/i
|
|
43
|
+
}
|
|
44
|
+
}, v = {
|
|
45
|
+
ordinalNumber: e({
|
|
46
|
+
matchPattern: i,
|
|
47
|
+
parsePattern: n,
|
|
48
|
+
valueCallback: function(t) {
|
|
49
|
+
return parseInt(t, 10);
|
|
50
|
+
}
|
|
51
|
+
}),
|
|
52
|
+
era: a({
|
|
53
|
+
matchPatterns: s,
|
|
54
|
+
defaultMatchWidth: "wide",
|
|
55
|
+
parsePatterns: d,
|
|
56
|
+
defaultParseWidth: "any"
|
|
57
|
+
}),
|
|
58
|
+
quarter: a({
|
|
59
|
+
matchPatterns: o,
|
|
60
|
+
defaultMatchWidth: "wide",
|
|
61
|
+
parsePatterns: m,
|
|
62
|
+
defaultParseWidth: "any",
|
|
63
|
+
valueCallback: function(t) {
|
|
64
|
+
return t + 1;
|
|
65
|
+
}
|
|
66
|
+
}),
|
|
67
|
+
month: a({
|
|
68
|
+
matchPatterns: u,
|
|
69
|
+
defaultMatchWidth: "wide",
|
|
70
|
+
parsePatterns: h,
|
|
71
|
+
defaultParseWidth: "any"
|
|
72
|
+
}),
|
|
73
|
+
day: a({
|
|
74
|
+
matchPatterns: c,
|
|
75
|
+
defaultMatchWidth: "wide",
|
|
76
|
+
parsePatterns: P,
|
|
77
|
+
defaultParseWidth: "any"
|
|
78
|
+
}),
|
|
79
|
+
dayPeriod: a({
|
|
80
|
+
matchPatterns: f,
|
|
81
|
+
defaultMatchWidth: "any",
|
|
82
|
+
parsePatterns: l,
|
|
83
|
+
defaultParseWidth: "any"
|
|
84
|
+
})
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
v as default
|
|
88
|
+
};
|
package/index7.js
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
var f, h;
|
|
2
|
+
function c() {
|
|
3
|
+
return h || (h = 1, f = function(e, r, a, i) {
|
|
4
|
+
var t = a ? a.call(i, e, r) : void 0;
|
|
5
|
+
if (t !== void 0)
|
|
6
|
+
return !!t;
|
|
7
|
+
if (e === r)
|
|
8
|
+
return !0;
|
|
9
|
+
if (typeof e != "object" || !e || typeof r != "object" || !r)
|
|
10
|
+
return !1;
|
|
11
|
+
var n = Object.keys(e), q = Object.keys(r);
|
|
12
|
+
if (n.length !== q.length)
|
|
13
|
+
return !1;
|
|
14
|
+
for (var w = Object.prototype.hasOwnProperty.bind(r), u = 0; u < n.length; u++) {
|
|
15
|
+
var l = n[u];
|
|
16
|
+
if (!w(l))
|
|
17
|
+
return !1;
|
|
18
|
+
var s = e[l], v = r[l];
|
|
19
|
+
if (t = a ? a.call(i, s, v, l) : void 0, t === !1 || t === void 0 && s !== v)
|
|
20
|
+
return !1;
|
|
21
|
+
}
|
|
22
|
+
return !0;
|
|
23
|
+
}), f;
|
|
24
|
+
}
|
|
2
25
|
export {
|
|
3
|
-
|
|
26
|
+
c as __require
|
|
4
27
|
};
|
package/index70.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import s from "./index46.js";
|
|
2
|
+
import f from "./index47.js";
|
|
3
|
+
function i(a) {
|
|
4
|
+
f(1, arguments);
|
|
5
|
+
var e = 1, t = s(a), r = t.getUTCDay(), o = (r < e ? 7 : 0) + r - e;
|
|
6
|
+
return t.setUTCDate(t.getUTCDate() - o), t.setUTCHours(0, 0, 0, 0), t;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
i as default
|
|
10
|
+
};
|
package/index71.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import o from "./index59.js";
|
|
2
|
+
import f from "./index70.js";
|
|
3
|
+
import u from "./index47.js";
|
|
4
|
+
function O(e) {
|
|
5
|
+
u(1, arguments);
|
|
6
|
+
var t = o(e), r = /* @__PURE__ */ new Date(0);
|
|
7
|
+
r.setUTCFullYear(t, 0, 4), r.setUTCHours(0, 0, 0, 0);
|
|
8
|
+
var a = f(r);
|
|
9
|
+
return a;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
O as default
|
|
13
|
+
};
|
package/index72.js
CHANGED
|
@@ -1,228 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
n.push({ type: "OPEN", index: e, value: r[e++] });
|
|
14
|
-
continue;
|
|
15
|
-
}
|
|
16
|
-
if (i === "}") {
|
|
17
|
-
n.push({ type: "CLOSE", index: e, value: r[e++] });
|
|
18
|
-
continue;
|
|
19
|
-
}
|
|
20
|
-
if (i === ":") {
|
|
21
|
-
for (var f = "", a = e + 1; a < r.length; ) {
|
|
22
|
-
var c = r.charCodeAt(a);
|
|
23
|
-
if (
|
|
24
|
-
// `0-9`
|
|
25
|
-
c >= 48 && c <= 57 || // `A-Z`
|
|
26
|
-
c >= 65 && c <= 90 || // `a-z`
|
|
27
|
-
c >= 97 && c <= 122 || // `_`
|
|
28
|
-
c === 95
|
|
29
|
-
) {
|
|
30
|
-
f += r[a++];
|
|
31
|
-
continue;
|
|
32
|
-
}
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
if (!f)
|
|
36
|
-
throw new TypeError("Missing parameter name at ".concat(e));
|
|
37
|
-
n.push({ type: "NAME", index: e, value: f }), e = a;
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
if (i === "(") {
|
|
41
|
-
var v = 1, h = "", a = e + 1;
|
|
42
|
-
if (r[a] === "?")
|
|
43
|
-
throw new TypeError('Pattern cannot start with "?" at '.concat(a));
|
|
44
|
-
for (; a < r.length; ) {
|
|
45
|
-
if (r[a] === "\\") {
|
|
46
|
-
h += r[a++] + r[a++];
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
if (r[a] === ")") {
|
|
50
|
-
if (v--, v === 0) {
|
|
51
|
-
a++;
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
} else if (r[a] === "(" && (v++, r[a + 1] !== "?"))
|
|
55
|
-
throw new TypeError("Capturing groups are not allowed at ".concat(a));
|
|
56
|
-
h += r[a++];
|
|
57
|
-
}
|
|
58
|
-
if (v)
|
|
59
|
-
throw new TypeError("Unbalanced pattern at ".concat(e));
|
|
60
|
-
if (!h)
|
|
61
|
-
throw new TypeError("Missing pattern at ".concat(e));
|
|
62
|
-
n.push({ type: "PATTERN", index: e, value: h }), e = a;
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
n.push({ type: "CHAR", index: e, value: r[e++] });
|
|
66
|
-
}
|
|
67
|
-
return n.push({ type: "END", index: e, value: "" }), n;
|
|
68
|
-
}
|
|
69
|
-
function I(r, n) {
|
|
70
|
-
n === void 0 && (n = {});
|
|
71
|
-
for (var e = H(r), i = n.prefixes, f = i === void 0 ? "./" : i, a = n.delimiter, c = a === void 0 ? "/#?" : a, v = [], h = 0, g = 0, d = "", u = function(x) {
|
|
72
|
-
if (g < e.length && e[g].type === x)
|
|
73
|
-
return e[g++].value;
|
|
74
|
-
}, E = function(x) {
|
|
75
|
-
var o = u(x);
|
|
76
|
-
if (o !== void 0)
|
|
77
|
-
return o;
|
|
78
|
-
var s = e[g], M = s.type, S = s.index;
|
|
79
|
-
throw new TypeError("Unexpected ".concat(M, " at ").concat(S, ", expected ").concat(x));
|
|
80
|
-
}, l = function() {
|
|
81
|
-
for (var x = "", o; o = u("CHAR") || u("ESCAPED_CHAR"); )
|
|
82
|
-
x += o;
|
|
83
|
-
return x;
|
|
84
|
-
}, N = function(x) {
|
|
85
|
-
for (var o = 0, s = c; o < s.length; o++) {
|
|
86
|
-
var M = s[o];
|
|
87
|
-
if (x.indexOf(M) > -1)
|
|
88
|
-
return !0;
|
|
89
|
-
}
|
|
90
|
-
return !1;
|
|
91
|
-
}, A = function(x) {
|
|
92
|
-
var o = v[v.length - 1], s = x || (o && typeof o == "string" ? o : "");
|
|
93
|
-
if (o && !s)
|
|
94
|
-
throw new TypeError('Must have text between two parameters, missing text after "'.concat(o.name, '"'));
|
|
95
|
-
return !s || N(s) ? "[^".concat(y(c), "]+?") : "(?:(?!".concat(y(s), ")[^").concat(y(c), "])+?");
|
|
96
|
-
}; g < e.length; ) {
|
|
97
|
-
var R = u("CHAR"), p = u("NAME"), C = u("PATTERN");
|
|
98
|
-
if (p || C) {
|
|
99
|
-
var m = R || "";
|
|
100
|
-
f.indexOf(m) === -1 && (d += m, m = ""), d && (v.push(d), d = ""), v.push({
|
|
101
|
-
name: p || h++,
|
|
102
|
-
prefix: m,
|
|
103
|
-
suffix: "",
|
|
104
|
-
pattern: C || A(m),
|
|
105
|
-
modifier: u("MODIFIER") || ""
|
|
106
|
-
});
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
var t = R || u("ESCAPED_CHAR");
|
|
110
|
-
if (t) {
|
|
111
|
-
d += t;
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
d && (v.push(d), d = "");
|
|
115
|
-
var T = u("OPEN");
|
|
116
|
-
if (T) {
|
|
117
|
-
var m = l(), w = u("NAME") || "", P = u("PATTERN") || "", O = l();
|
|
118
|
-
E("CLOSE"), v.push({
|
|
119
|
-
name: w || (P ? h++ : ""),
|
|
120
|
-
pattern: w && !P ? A(m) : P,
|
|
121
|
-
prefix: m,
|
|
122
|
-
suffix: O,
|
|
123
|
-
modifier: u("MODIFIER") || ""
|
|
124
|
-
});
|
|
125
|
-
continue;
|
|
126
|
-
}
|
|
127
|
-
E("END");
|
|
128
|
-
}
|
|
129
|
-
return v;
|
|
130
|
-
}
|
|
131
|
-
function U(r, n) {
|
|
132
|
-
var e = [], i = b(r, e, n);
|
|
133
|
-
return _(i, e, n);
|
|
134
|
-
}
|
|
135
|
-
function _(r, n, e) {
|
|
136
|
-
e === void 0 && (e = {});
|
|
137
|
-
var i = e.decode, f = i === void 0 ? function(a) {
|
|
138
|
-
return a;
|
|
139
|
-
} : i;
|
|
140
|
-
return function(a) {
|
|
141
|
-
var c = r.exec(a);
|
|
142
|
-
if (!c)
|
|
143
|
-
return !1;
|
|
144
|
-
for (var v = c[0], h = c.index, g = /* @__PURE__ */ Object.create(null), d = function(E) {
|
|
145
|
-
if (c[E] === void 0)
|
|
146
|
-
return "continue";
|
|
147
|
-
var l = n[E - 1];
|
|
148
|
-
l.modifier === "*" || l.modifier === "+" ? g[l.name] = c[E].split(l.prefix + l.suffix).map(function(N) {
|
|
149
|
-
return f(N, l);
|
|
150
|
-
}) : g[l.name] = f(c[E], l);
|
|
151
|
-
}, u = 1; u < c.length; u++)
|
|
152
|
-
d(u);
|
|
153
|
-
return { path: v, index: h, params: g };
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
function y(r) {
|
|
157
|
-
return r.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
|
158
|
-
}
|
|
159
|
-
function D(r) {
|
|
160
|
-
return r && r.sensitive ? "" : "i";
|
|
161
|
-
}
|
|
162
|
-
function F(r, n) {
|
|
163
|
-
if (!n)
|
|
164
|
-
return r;
|
|
165
|
-
for (var e = /\((?:\?<(.*?)>)?(?!\?)/g, i = 0, f = e.exec(r.source); f; )
|
|
166
|
-
n.push({
|
|
167
|
-
// Use parenthesized substring match if available, index otherwise
|
|
168
|
-
name: f[1] || i++,
|
|
169
|
-
prefix: "",
|
|
170
|
-
suffix: "",
|
|
171
|
-
modifier: "",
|
|
172
|
-
pattern: ""
|
|
173
|
-
}), f = e.exec(r.source);
|
|
174
|
-
return r;
|
|
175
|
-
}
|
|
176
|
-
function W(r, n, e) {
|
|
177
|
-
var i = r.map(function(f) {
|
|
178
|
-
return b(f, n, e).source;
|
|
179
|
-
});
|
|
180
|
-
return new RegExp("(?:".concat(i.join("|"), ")"), D(e));
|
|
181
|
-
}
|
|
182
|
-
function $(r, n, e) {
|
|
183
|
-
return L(I(r, e), n, e);
|
|
184
|
-
}
|
|
185
|
-
function L(r, n, e) {
|
|
186
|
-
e === void 0 && (e = {});
|
|
187
|
-
for (var i = e.strict, f = i === void 0 ? !1 : i, a = e.start, c = a === void 0 ? !0 : a, v = e.end, h = v === void 0 ? !0 : v, g = e.encode, d = g === void 0 ? function(o) {
|
|
188
|
-
return o;
|
|
189
|
-
} : g, u = e.delimiter, E = u === void 0 ? "/#?" : u, l = e.endsWith, N = l === void 0 ? "" : l, A = "[".concat(y(N), "]|$"), R = "[".concat(y(E), "]"), p = c ? "^" : "", C = 0, m = r; C < m.length; C++) {
|
|
190
|
-
var t = m[C];
|
|
191
|
-
if (typeof t == "string")
|
|
192
|
-
p += y(d(t));
|
|
193
|
-
else {
|
|
194
|
-
var T = y(d(t.prefix)), w = y(d(t.suffix));
|
|
195
|
-
if (t.pattern)
|
|
196
|
-
if (n && n.push(t), T || w)
|
|
197
|
-
if (t.modifier === "+" || t.modifier === "*") {
|
|
198
|
-
var P = t.modifier === "*" ? "?" : "";
|
|
199
|
-
p += "(?:".concat(T, "((?:").concat(t.pattern, ")(?:").concat(w).concat(T, "(?:").concat(t.pattern, "))*)").concat(w, ")").concat(P);
|
|
200
|
-
} else
|
|
201
|
-
p += "(?:".concat(T, "(").concat(t.pattern, ")").concat(w, ")").concat(t.modifier);
|
|
202
|
-
else {
|
|
203
|
-
if (t.modifier === "+" || t.modifier === "*")
|
|
204
|
-
throw new TypeError('Can not repeat "'.concat(t.name, '" without a prefix and suffix'));
|
|
205
|
-
p += "(".concat(t.pattern, ")").concat(t.modifier);
|
|
206
|
-
}
|
|
207
|
-
else
|
|
208
|
-
p += "(?:".concat(T).concat(w, ")").concat(t.modifier);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
if (h)
|
|
212
|
-
f || (p += "".concat(R, "?")), p += e.endsWith ? "(?=".concat(A, ")") : "$";
|
|
213
|
-
else {
|
|
214
|
-
var O = r[r.length - 1], x = typeof O == "string" ? R.indexOf(O[O.length - 1]) > -1 : O === void 0;
|
|
215
|
-
f || (p += "(?:".concat(R, "(?=").concat(A, "))?")), x || (p += "(?=".concat(R, "|").concat(A, ")"));
|
|
216
|
-
}
|
|
217
|
-
return new RegExp(p, D(e));
|
|
218
|
-
}
|
|
219
|
-
function b(r, n, e) {
|
|
220
|
-
return r instanceof RegExp ? F(r, n) : Array.isArray(r) ? W(r, n, e) : $(r, n, e);
|
|
1
|
+
import p from "./index46.js";
|
|
2
|
+
import w from "./index47.js";
|
|
3
|
+
import c from "./index45.js";
|
|
4
|
+
import { getDefaultOptions as k } from "./index54.js";
|
|
5
|
+
function C(O, e) {
|
|
6
|
+
var l, r, a, i, n, d, v, u;
|
|
7
|
+
w(1, arguments);
|
|
8
|
+
var s = k(), o = c((l = (r = (a = (i = e?.weekStartsOn) !== null && i !== void 0 ? i : e == null || (n = e.locale) === null || n === void 0 || (d = n.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && a !== void 0 ? a : s.weekStartsOn) !== null && r !== void 0 ? r : (v = s.locale) === null || v === void 0 || (u = v.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && l !== void 0 ? l : 0);
|
|
9
|
+
if (!(o >= 0 && o <= 6))
|
|
10
|
+
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
11
|
+
var t = p(O), f = t.getUTCDay(), m = (f < o ? 7 : 0) + f - o;
|
|
12
|
+
return t.setUTCDate(t.getUTCDate() - m), t.setUTCHours(0, 0, 0, 0), t;
|
|
221
13
|
}
|
|
222
14
|
export {
|
|
223
|
-
|
|
224
|
-
I as parse,
|
|
225
|
-
b as pathToRegexp,
|
|
226
|
-
_ as regexpToFunction,
|
|
227
|
-
L as tokensToRegexp
|
|
15
|
+
C as default
|
|
228
16
|
};
|
package/index73.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import k from "./index61.js";
|
|
2
|
+
import W from "./index47.js";
|
|
3
|
+
import p from "./index72.js";
|
|
4
|
+
import _ from "./index45.js";
|
|
5
|
+
import { getDefaultOptions as c } from "./index54.js";
|
|
6
|
+
function U(v, e) {
|
|
7
|
+
var t, o, r, l, i, a, n, f;
|
|
8
|
+
W(1, arguments);
|
|
9
|
+
var s = c(), u = _((t = (o = (r = (l = e?.firstWeekContainsDate) !== null && l !== void 0 ? l : e == null || (i = e.locale) === null || i === void 0 || (a = i.options) === null || a === void 0 ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : s.firstWeekContainsDate) !== null && o !== void 0 ? o : (n = s.locale) === null || n === void 0 || (f = n.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), m = k(v, e), d = /* @__PURE__ */ new Date(0);
|
|
10
|
+
d.setUTCFullYear(m, 0, u), d.setUTCHours(0, 0, 0, 0);
|
|
11
|
+
var C = p(d, e);
|
|
12
|
+
return C;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
U as default
|
|
16
|
+
};
|
package/index74.js
ADDED