@fluid-app/fluid-cli-theme-dev 0.1.534 → 0.1.536
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist-cli-preview/.vite/manifest.json +276 -295
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Combobox-CJDvxjNn.js → Combobox-D4l7DbBy.js} +54 -53
- package/dist/dist-cli-preview/chunks/{ContactsScreen-DD3XWK3Q.js → ContactsScreen-CEtA3-1c.js} +903 -850
- package/dist/dist-cli-preview/chunks/MediaScreen-C2rOxuuv.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-iVdfo0DH.js → MemberManagementProviders-B_YXVcDi.js} +13 -13
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-BulCAnNO.js → MemberShareablesScreen-UNjYr5R6.js} +4207 -3757
- package/dist/dist-cli-preview/chunks/{MessagingScreen-DlDsOy19.js → MessagingScreen-Btga_V0H.js} +24118 -21933
- package/dist/dist-cli-preview/chunks/MobileActionSheet-CrEH2vO7.js +1384 -0
- package/dist/dist-cli-preview/chunks/{MySiteScreen-BfPfyV4m.js → MySiteScreen-B1fGtPDj.js} +177 -163
- package/dist/dist-cli-preview/chunks/OrdersScreen-Bf9DtOCA.js +9 -0
- package/dist/dist-cli-preview/chunks/{OrdersScreen-C4yi3z2p.js → OrdersScreen-DyyL-P7j.js} +35 -34
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-tws56I3H.js +8 -0
- package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-Clys_Bme.js → PortalTenantClientProvider-DUOOCXfW.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-e4QhExeS.js → ProfileScreen-wZO6QMrU.js} +259 -234
- package/dist/dist-cli-preview/chunks/ResponsiveDialog-DSDcOjhm.js +731 -0
- package/dist/dist-cli-preview/chunks/Select-DmRoXIkQ.js +2499 -0
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DysTJ6w_.js → SubscriptionsScreen-BR2C0m7M.js} +3 -3
- package/dist/dist-cli-preview/chunks/Textarea-C59p5Cek.js +365 -0
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-B3e0JV6I.js → account-screen-runtime-BqMndJcu.js} +1389 -1409
- package/dist/dist-cli-preview/chunks/{arrow-left-BOYuYcvT.js → arrow-left-CFy5J6Id.js} +1 -1
- package/dist/dist-cli-preview/chunks/{cli-preview-cY0EPyxC.js → cli-preview-DZOhxtLy.js} +10 -10
- package/dist/dist-cli-preview/chunks/{client.gen-jwIybX1j.js → client.gen-DTVKCFco.js} +12 -12
- package/dist/dist-cli-preview/chunks/{copy-Cm_EKxcg.js → copy-Da4VLOCZ.js} +1 -1
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-BCS0247N.js → countries-api-adapter-Bh5QfCO1.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-CZi7shLR.js → create-card-entry-container-ohrRYgww.js} +1939 -1929
- package/dist/dist-cli-preview/chunks/{hey-api-client-B6n5a7q-.js → hey-api-client-BIjWueui.js} +1 -1
- package/dist/dist-cli-preview/chunks/{index-CfLLmITa.js → index-BMWjXC9i.js} +405 -869
- package/dist/dist-cli-preview/chunks/{index-DFIsiT9r.js → index-BVehJyDQ.js} +2080 -2372
- package/dist/dist-cli-preview/chunks/index-_r1wSvno.js +427 -0
- package/dist/dist-cli-preview/chunks/{isAfter-D0zQuNEJ.js → isAfter-BR4uNpua.js} +145 -156
- package/dist/dist-cli-preview/chunks/{map-pin-Vt1smsNu.js → map-pin-C_cK_i_W.js} +1 -1
- package/dist/dist-cli-preview/chunks/messaging-B1UjYRdl.js +4 -0
- package/dist/dist-cli-preview/chunks/{mount-account-screen-BOVvR3Og.js → mount-account-screen-JJGALFRE.js} +8 -8
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-D756rD78.js → navigate-account-screen-C0VoUNOi.js} +1 -1
- package/dist/dist-cli-preview/chunks/schemas-D0s3rDQw.js +4851 -0
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-HNXiCpo6.js → screen-route-slug-utils-n2BiDZmp.js} +205 -260
- package/dist/dist-cli-preview/chunks/search-zEnxG69C.js +14 -0
- package/dist/dist-cli-preview/chunks/sheet-haptics-context-p5ZPxslK.js +133 -0
- package/dist/dist-cli-preview/chunks/{sidebar-BDgHluGp.js → sidebar-CjPHl33n.js} +8 -8
- package/dist/dist-cli-preview/chunks/{sortable.esm-Cw91KlVU.js → sortable.esm-CrxUZkb-.js} +373 -362
- package/dist/dist-cli-preview/chunks/{store-api-context-BCaEZBlj.js → store-api-context-0k_ECvSE.js} +1 -1
- package/dist/dist-cli-preview/chunks/translation-api-context-factory-CP0LBb-M.js +74 -0
- package/dist/dist-cli-preview/chunks/{use-mobile-BztyG-mE.js → use-mobile-DIhDH3dI.js} +1 -1
- package/dist/dist-cli-preview/chunks/{use-optional-store-Dl6PSQur.js → use-optional-store-t4xzc2Rl.js} +2 -2
- package/dist/dist-cli-preview/chunks/use-store-YC0Ovzht.js +76 -0
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-fL_VYHHr.js → useInfiniteQuery-Bnzu0kZa.js} +9 -20
- package/dist/dist-cli-preview/chunks/{users-B3YJ3D1U.js → users-CabXl4EL.js} +1 -1
- package/package.json +2 -2
- package/dist/dist-cli-preview/chunks/Breadcrumb-ixf0cTR_.js +0 -91
- package/dist/dist-cli-preview/chunks/MediaScreen-D8WSOaze.js +0 -8
- package/dist/dist-cli-preview/chunks/MobileActionSheet-aGr-nGxu.js +0 -3884
- package/dist/dist-cli-preview/chunks/OrdersScreen-hidM-JR_.js +0 -9
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-BIqSXZ5B.js +0 -8
- package/dist/dist-cli-preview/chunks/ellipsis-C1sJRT_T.js +0 -15
- package/dist/dist-cli-preview/chunks/eye-BHBOtWLw.js +0 -20
- package/dist/dist-cli-preview/chunks/index-COIiY5Im.js +0 -135
- package/dist/dist-cli-preview/chunks/log-out-segl_UhK.js +0 -30
- package/dist/dist-cli-preview/chunks/messaging-C_IkzF0O.js +0 -4
- package/dist/dist-cli-preview/chunks/pause-YWP8mWBs.js +0 -41
- package/dist/dist-cli-preview/chunks/schemas-BiM-ImW1.js +0 -5565
- package/dist/dist-cli-preview/chunks/sheet-haptics-context-d9udqor0.js +0 -116
- package/dist/dist-cli-preview/chunks/trash-2-CZEbdFT_.js +0 -17
- package/dist/dist-cli-preview/chunks/use-store-aahN8SDp.js +0 -400
- package/dist/dist-cli-preview/chunks/user-B4pULYRZ.js +0 -14
|
@@ -1,25 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.575.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const _ = [
|
|
9
|
-
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
10
|
-
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
11
|
-
], Rt = H("lock", _), E = 6048e5, Q = 864e5, At = 6e4, Vt = 36e5, Jt = 1e3, D = Symbol.for("constructDateFrom");
|
|
1
|
+
const jt = 6e4, It = 36e5, Lt = 1e3, D = Symbol.for("constructDateFrom");
|
|
12
2
|
function m(t, e) {
|
|
13
3
|
return typeof t == "function" ? t(e) : t && typeof t == "object" && D in t ? t[D](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
14
4
|
}
|
|
15
5
|
function f(t, e) {
|
|
16
6
|
return m(e || t, t);
|
|
17
7
|
}
|
|
18
|
-
function
|
|
8
|
+
function Gt(t, e, n) {
|
|
19
9
|
const r = f(t, n?.in);
|
|
20
10
|
return isNaN(e) ? m(n?.in || t, NaN) : (e && r.setDate(r.getDate() + e), r);
|
|
21
11
|
}
|
|
22
|
-
function
|
|
12
|
+
function Bt(t, e, n) {
|
|
23
13
|
const r = f(t, n?.in);
|
|
24
14
|
if (isNaN(e)) return m(t, NaN);
|
|
25
15
|
if (!e)
|
|
@@ -33,9 +23,9 @@ function zt(t, e, n) {
|
|
|
33
23
|
a
|
|
34
24
|
), r);
|
|
35
25
|
}
|
|
36
|
-
let
|
|
26
|
+
let q = {};
|
|
37
27
|
function O() {
|
|
38
|
-
return
|
|
28
|
+
return q;
|
|
39
29
|
}
|
|
40
30
|
function M(t, e) {
|
|
41
31
|
const n = O(), r = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = f(t, e?.in), o = a.getDay(), i = (o < r ? 7 : 0) + o - r;
|
|
@@ -44,7 +34,7 @@ function M(t, e) {
|
|
|
44
34
|
function P(t, e) {
|
|
45
35
|
return M(t, { ...e, weekStartsOn: 1 });
|
|
46
36
|
}
|
|
47
|
-
function
|
|
37
|
+
function E(t, e) {
|
|
48
38
|
const n = f(t, e?.in), r = n.getFullYear(), a = m(n, 0);
|
|
49
39
|
a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
50
40
|
const o = P(a), i = m(n, 0);
|
|
@@ -52,7 +42,7 @@ function N(t, e) {
|
|
|
52
42
|
const u = P(i);
|
|
53
43
|
return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
|
|
54
44
|
}
|
|
55
|
-
function
|
|
45
|
+
function W(t) {
|
|
56
46
|
const e = f(t), n = new Date(
|
|
57
47
|
Date.UTC(
|
|
58
48
|
e.getFullYear(),
|
|
@@ -66,40 +56,40 @@ function v(t) {
|
|
|
66
56
|
);
|
|
67
57
|
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
68
58
|
}
|
|
69
|
-
function
|
|
59
|
+
function H(t, ...e) {
|
|
70
60
|
const n = m.bind(
|
|
71
61
|
null,
|
|
72
62
|
e.find((r) => typeof r == "object")
|
|
73
63
|
);
|
|
74
64
|
return e.map(n);
|
|
75
65
|
}
|
|
76
|
-
function
|
|
66
|
+
function v(t, e) {
|
|
77
67
|
const n = f(t, e?.in);
|
|
78
68
|
return n.setHours(0, 0, 0, 0), n;
|
|
79
69
|
}
|
|
80
|
-
function
|
|
81
|
-
const [r, a] =
|
|
70
|
+
function _(t, e, n) {
|
|
71
|
+
const [r, a] = H(
|
|
82
72
|
n?.in,
|
|
83
73
|
t,
|
|
84
74
|
e
|
|
85
|
-
), o =
|
|
86
|
-
return Math.round((u - h) /
|
|
75
|
+
), o = v(r), i = v(a), u = +o - W(o), h = +i - W(i);
|
|
76
|
+
return Math.round((u - h) / 864e5);
|
|
87
77
|
}
|
|
88
|
-
function
|
|
89
|
-
const n =
|
|
78
|
+
function Q(t, e) {
|
|
79
|
+
const n = E(t, e), r = m(t, 0);
|
|
90
80
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), P(r);
|
|
91
81
|
}
|
|
92
|
-
function
|
|
82
|
+
function X(t) {
|
|
93
83
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
94
84
|
}
|
|
95
|
-
function
|
|
96
|
-
return !(!
|
|
85
|
+
function j(t) {
|
|
86
|
+
return !(!X(t) && typeof t != "number" || isNaN(+f(t)));
|
|
97
87
|
}
|
|
98
|
-
function
|
|
88
|
+
function I(t, e) {
|
|
99
89
|
const n = f(t, e?.in);
|
|
100
90
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
101
91
|
}
|
|
102
|
-
const
|
|
92
|
+
const L = {
|
|
103
93
|
lessThanXSeconds: {
|
|
104
94
|
one: "less than a second",
|
|
105
95
|
other: "less than {{count}} seconds"
|
|
@@ -161,9 +151,9 @@ const A = {
|
|
|
161
151
|
one: "almost 1 year",
|
|
162
152
|
other: "almost {{count}} years"
|
|
163
153
|
}
|
|
164
|
-
},
|
|
154
|
+
}, G = (t, e, n) => {
|
|
165
155
|
let r;
|
|
166
|
-
const a =
|
|
156
|
+
const a = L[t];
|
|
167
157
|
return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
168
158
|
};
|
|
169
159
|
function x(t) {
|
|
@@ -172,42 +162,42 @@ function x(t) {
|
|
|
172
162
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
173
163
|
};
|
|
174
164
|
}
|
|
175
|
-
const
|
|
165
|
+
const B = {
|
|
176
166
|
full: "EEEE, MMMM do, y",
|
|
177
167
|
long: "MMMM do, y",
|
|
178
168
|
medium: "MMM d, y",
|
|
179
169
|
short: "MM/dd/yyyy"
|
|
180
|
-
},
|
|
170
|
+
}, R = {
|
|
181
171
|
full: "h:mm:ss a zzzz",
|
|
182
172
|
long: "h:mm:ss a z",
|
|
183
173
|
medium: "h:mm:ss a",
|
|
184
174
|
short: "h:mm a"
|
|
185
|
-
},
|
|
175
|
+
}, A = {
|
|
186
176
|
full: "{{date}} 'at' {{time}}",
|
|
187
177
|
long: "{{date}} 'at' {{time}}",
|
|
188
178
|
medium: "{{date}}, {{time}}",
|
|
189
179
|
short: "{{date}}, {{time}}"
|
|
190
|
-
},
|
|
180
|
+
}, V = {
|
|
191
181
|
date: x({
|
|
192
|
-
formats:
|
|
182
|
+
formats: B,
|
|
193
183
|
defaultWidth: "full"
|
|
194
184
|
}),
|
|
195
185
|
time: x({
|
|
196
|
-
formats:
|
|
186
|
+
formats: R,
|
|
197
187
|
defaultWidth: "full"
|
|
198
188
|
}),
|
|
199
189
|
dateTime: x({
|
|
200
|
-
formats:
|
|
190
|
+
formats: A,
|
|
201
191
|
defaultWidth: "full"
|
|
202
192
|
})
|
|
203
|
-
},
|
|
193
|
+
}, J = {
|
|
204
194
|
lastWeek: "'last' eeee 'at' p",
|
|
205
195
|
yesterday: "'yesterday at' p",
|
|
206
196
|
today: "'today at' p",
|
|
207
197
|
tomorrow: "'tomorrow at' p",
|
|
208
198
|
nextWeek: "eeee 'at' p",
|
|
209
199
|
other: "P"
|
|
210
|
-
},
|
|
200
|
+
}, $ = (t, e, n, r) => J[t];
|
|
211
201
|
function b(t) {
|
|
212
202
|
return (e, n) => {
|
|
213
203
|
const r = n?.context ? String(n.context) : "standalone";
|
|
@@ -223,15 +213,15 @@ function b(t) {
|
|
|
223
213
|
return a[o];
|
|
224
214
|
};
|
|
225
215
|
}
|
|
226
|
-
const
|
|
216
|
+
const z = {
|
|
227
217
|
narrow: ["B", "A"],
|
|
228
218
|
abbreviated: ["BC", "AD"],
|
|
229
219
|
wide: ["Before Christ", "Anno Domini"]
|
|
230
|
-
},
|
|
220
|
+
}, U = {
|
|
231
221
|
narrow: ["1", "2", "3", "4"],
|
|
232
222
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
233
223
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
234
|
-
},
|
|
224
|
+
}, K = {
|
|
235
225
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
236
226
|
abbreviated: [
|
|
237
227
|
"Jan",
|
|
@@ -261,7 +251,7 @@ const tt = {
|
|
|
261
251
|
"November",
|
|
262
252
|
"December"
|
|
263
253
|
]
|
|
264
|
-
},
|
|
254
|
+
}, Z = {
|
|
265
255
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
266
256
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
267
257
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -274,7 +264,7 @@ const tt = {
|
|
|
274
264
|
"Friday",
|
|
275
265
|
"Saturday"
|
|
276
266
|
]
|
|
277
|
-
},
|
|
267
|
+
}, tt = {
|
|
278
268
|
narrow: {
|
|
279
269
|
am: "a",
|
|
280
270
|
pm: "p",
|
|
@@ -305,7 +295,7 @@ const tt = {
|
|
|
305
295
|
evening: "evening",
|
|
306
296
|
night: "night"
|
|
307
297
|
}
|
|
308
|
-
},
|
|
298
|
+
}, et = {
|
|
309
299
|
narrow: {
|
|
310
300
|
am: "a",
|
|
311
301
|
pm: "p",
|
|
@@ -336,7 +326,7 @@ const tt = {
|
|
|
336
326
|
evening: "in the evening",
|
|
337
327
|
night: "at night"
|
|
338
328
|
}
|
|
339
|
-
},
|
|
329
|
+
}, nt = (t, e) => {
|
|
340
330
|
const n = Number(t), r = n % 100;
|
|
341
331
|
if (r > 20 || r < 10)
|
|
342
332
|
switch (r % 10) {
|
|
@@ -348,29 +338,29 @@ const tt = {
|
|
|
348
338
|
return n + "rd";
|
|
349
339
|
}
|
|
350
340
|
return n + "th";
|
|
351
|
-
},
|
|
352
|
-
ordinalNumber:
|
|
341
|
+
}, rt = {
|
|
342
|
+
ordinalNumber: nt,
|
|
353
343
|
era: b({
|
|
354
|
-
values:
|
|
344
|
+
values: z,
|
|
355
345
|
defaultWidth: "wide"
|
|
356
346
|
}),
|
|
357
347
|
quarter: b({
|
|
358
|
-
values:
|
|
348
|
+
values: U,
|
|
359
349
|
defaultWidth: "wide",
|
|
360
350
|
argumentCallback: (t) => t - 1
|
|
361
351
|
}),
|
|
362
352
|
month: b({
|
|
363
|
-
values:
|
|
353
|
+
values: K,
|
|
364
354
|
defaultWidth: "wide"
|
|
365
355
|
}),
|
|
366
356
|
day: b({
|
|
367
|
-
values:
|
|
357
|
+
values: Z,
|
|
368
358
|
defaultWidth: "wide"
|
|
369
359
|
}),
|
|
370
360
|
dayPeriod: b({
|
|
371
|
-
values:
|
|
361
|
+
values: tt,
|
|
372
362
|
defaultWidth: "wide",
|
|
373
|
-
formattingValues:
|
|
363
|
+
formattingValues: et,
|
|
374
364
|
defaultFormattingWidth: "wide"
|
|
375
365
|
})
|
|
376
366
|
};
|
|
@@ -379,9 +369,9 @@ function p(t) {
|
|
|
379
369
|
const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], o = e.match(a);
|
|
380
370
|
if (!o)
|
|
381
371
|
return null;
|
|
382
|
-
const i = o[0], u = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], h = Array.isArray(u) ?
|
|
372
|
+
const i = o[0], u = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], h = Array.isArray(u) ? ot(u, (c) => c.test(i)) : (
|
|
383
373
|
// [TODO] -- I challenge you to fix the type
|
|
384
|
-
|
|
374
|
+
at(u, (c) => c.test(i))
|
|
385
375
|
);
|
|
386
376
|
let l;
|
|
387
377
|
l = t.valueCallback ? t.valueCallback(h) : h, l = n.valueCallback ? (
|
|
@@ -392,17 +382,17 @@ function p(t) {
|
|
|
392
382
|
return { value: l, rest: d };
|
|
393
383
|
};
|
|
394
384
|
}
|
|
395
|
-
function
|
|
385
|
+
function at(t, e) {
|
|
396
386
|
for (const n in t)
|
|
397
387
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
398
388
|
return n;
|
|
399
389
|
}
|
|
400
|
-
function
|
|
390
|
+
function ot(t, e) {
|
|
401
391
|
for (let n = 0; n < t.length; n++)
|
|
402
392
|
if (e(t[n]))
|
|
403
393
|
return n;
|
|
404
394
|
}
|
|
405
|
-
function
|
|
395
|
+
function it(t) {
|
|
406
396
|
return (e, n = {}) => {
|
|
407
397
|
const r = e.match(t.matchPattern);
|
|
408
398
|
if (!r) return null;
|
|
@@ -414,23 +404,23 @@ function dt(t) {
|
|
|
414
404
|
return { value: i, rest: u };
|
|
415
405
|
};
|
|
416
406
|
}
|
|
417
|
-
const
|
|
407
|
+
const st = /^(\d+)(th|st|nd|rd)?/i, ut = /\d+/i, ct = {
|
|
418
408
|
narrow: /^(b|a)/i,
|
|
419
409
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
420
410
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
421
|
-
},
|
|
411
|
+
}, dt = {
|
|
422
412
|
any: [/^b/i, /^(a|c)/i]
|
|
423
|
-
},
|
|
413
|
+
}, ft = {
|
|
424
414
|
narrow: /^[1234]/i,
|
|
425
415
|
abbreviated: /^q[1234]/i,
|
|
426
416
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
427
|
-
},
|
|
417
|
+
}, ht = {
|
|
428
418
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
429
|
-
},
|
|
419
|
+
}, mt = {
|
|
430
420
|
narrow: /^[jfmasond]/i,
|
|
431
421
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
432
422
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
433
|
-
},
|
|
423
|
+
}, lt = {
|
|
434
424
|
narrow: [
|
|
435
425
|
/^j/i,
|
|
436
426
|
/^f/i,
|
|
@@ -459,18 +449,18 @@ const ft = /^(\d+)(th|st|nd|rd)?/i, ht = /\d+/i, mt = {
|
|
|
459
449
|
/^n/i,
|
|
460
450
|
/^d/i
|
|
461
451
|
]
|
|
462
|
-
},
|
|
452
|
+
}, gt = {
|
|
463
453
|
narrow: /^[smtwf]/i,
|
|
464
454
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
465
455
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
466
456
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
467
|
-
},
|
|
457
|
+
}, wt = {
|
|
468
458
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
469
459
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
470
|
-
},
|
|
460
|
+
}, yt = {
|
|
471
461
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
472
462
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
473
|
-
},
|
|
463
|
+
}, bt = {
|
|
474
464
|
any: {
|
|
475
465
|
am: /^a/i,
|
|
476
466
|
pm: /^p/i,
|
|
@@ -481,64 +471,64 @@ const ft = /^(\d+)(th|st|nd|rd)?/i, ht = /\d+/i, mt = {
|
|
|
481
471
|
evening: /evening/i,
|
|
482
472
|
night: /night/i
|
|
483
473
|
}
|
|
484
|
-
},
|
|
485
|
-
ordinalNumber:
|
|
486
|
-
matchPattern:
|
|
487
|
-
parsePattern:
|
|
474
|
+
}, pt = {
|
|
475
|
+
ordinalNumber: it({
|
|
476
|
+
matchPattern: st,
|
|
477
|
+
parsePattern: ut,
|
|
488
478
|
valueCallback: (t) => parseInt(t, 10)
|
|
489
479
|
}),
|
|
490
480
|
era: p({
|
|
491
|
-
matchPatterns:
|
|
481
|
+
matchPatterns: ct,
|
|
492
482
|
defaultMatchWidth: "wide",
|
|
493
|
-
parsePatterns:
|
|
483
|
+
parsePatterns: dt,
|
|
494
484
|
defaultParseWidth: "any"
|
|
495
485
|
}),
|
|
496
486
|
quarter: p({
|
|
497
|
-
matchPatterns:
|
|
487
|
+
matchPatterns: ft,
|
|
498
488
|
defaultMatchWidth: "wide",
|
|
499
|
-
parsePatterns:
|
|
489
|
+
parsePatterns: ht,
|
|
500
490
|
defaultParseWidth: "any",
|
|
501
491
|
valueCallback: (t) => t + 1
|
|
502
492
|
}),
|
|
503
493
|
month: p({
|
|
504
|
-
matchPatterns:
|
|
494
|
+
matchPatterns: mt,
|
|
505
495
|
defaultMatchWidth: "wide",
|
|
506
|
-
parsePatterns:
|
|
496
|
+
parsePatterns: lt,
|
|
507
497
|
defaultParseWidth: "any"
|
|
508
498
|
}),
|
|
509
499
|
day: p({
|
|
510
|
-
matchPatterns:
|
|
500
|
+
matchPatterns: gt,
|
|
511
501
|
defaultMatchWidth: "wide",
|
|
512
|
-
parsePatterns:
|
|
502
|
+
parsePatterns: wt,
|
|
513
503
|
defaultParseWidth: "any"
|
|
514
504
|
}),
|
|
515
505
|
dayPeriod: p({
|
|
516
|
-
matchPatterns:
|
|
506
|
+
matchPatterns: yt,
|
|
517
507
|
defaultMatchWidth: "any",
|
|
518
|
-
parsePatterns:
|
|
508
|
+
parsePatterns: bt,
|
|
519
509
|
defaultParseWidth: "any"
|
|
520
510
|
})
|
|
521
|
-
},
|
|
511
|
+
}, Mt = {
|
|
522
512
|
code: "en-US",
|
|
523
|
-
formatDistance:
|
|
524
|
-
formatLong:
|
|
525
|
-
formatRelative:
|
|
526
|
-
localize:
|
|
527
|
-
match:
|
|
513
|
+
formatDistance: G,
|
|
514
|
+
formatLong: V,
|
|
515
|
+
formatRelative: $,
|
|
516
|
+
localize: rt,
|
|
517
|
+
match: pt,
|
|
528
518
|
options: {
|
|
529
519
|
weekStartsOn: 0,
|
|
530
520
|
firstWeekContainsDate: 1
|
|
531
521
|
}
|
|
532
522
|
};
|
|
533
|
-
function
|
|
523
|
+
function Pt(t, e) {
|
|
534
524
|
const n = f(t, e?.in);
|
|
535
|
-
return
|
|
525
|
+
return _(n, I(n)) + 1;
|
|
536
526
|
}
|
|
537
|
-
function
|
|
538
|
-
const n = f(t, e?.in), r = +P(n) - +
|
|
539
|
-
return Math.round(r /
|
|
527
|
+
function Ot(t, e) {
|
|
528
|
+
const n = f(t, e?.in), r = +P(n) - +Q(n);
|
|
529
|
+
return Math.round(r / 6048e5) + 1;
|
|
540
530
|
}
|
|
541
|
-
function
|
|
531
|
+
function N(t, e) {
|
|
542
532
|
const n = f(t, e?.in), r = n.getFullYear(), a = O(), o = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, i = m(e?.in || t, 0);
|
|
543
533
|
i.setFullYear(r + 1, 0, o), i.setHours(0, 0, 0, 0);
|
|
544
534
|
const u = M(i, e), h = m(e?.in || t, 0);
|
|
@@ -546,13 +536,13 @@ function C(t, e) {
|
|
|
546
536
|
const l = M(h, e);
|
|
547
537
|
return +n >= +u ? r + 1 : +n >= +l ? r : r - 1;
|
|
548
538
|
}
|
|
549
|
-
function
|
|
550
|
-
const n = O(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a =
|
|
539
|
+
function kt(t, e) {
|
|
540
|
+
const n = O(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = N(t, e), o = m(e?.in || t, 0);
|
|
551
541
|
return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), M(o, e);
|
|
552
542
|
}
|
|
553
|
-
function
|
|
554
|
-
const n = f(t, e?.in), r = +M(n, e) - +
|
|
555
|
-
return Math.round(r /
|
|
543
|
+
function xt(t, e) {
|
|
544
|
+
const n = f(t, e?.in), r = +M(n, e) - +kt(n, e);
|
|
545
|
+
return Math.round(r / 6048e5) + 1;
|
|
556
546
|
}
|
|
557
547
|
function s(t, e) {
|
|
558
548
|
const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
|
|
@@ -648,7 +638,7 @@ const g = {
|
|
|
648
638
|
},
|
|
649
639
|
// Local week-numbering year
|
|
650
640
|
Y: function(t, e, n, r) {
|
|
651
|
-
const a =
|
|
641
|
+
const a = N(t, r), o = a > 0 ? a : 1 - a;
|
|
652
642
|
if (e === "YY") {
|
|
653
643
|
const i = o % 100;
|
|
654
644
|
return s(i, 2);
|
|
@@ -657,7 +647,7 @@ const g = {
|
|
|
657
647
|
},
|
|
658
648
|
// ISO week-numbering year
|
|
659
649
|
R: function(t, e) {
|
|
660
|
-
const n =
|
|
650
|
+
const n = E(t);
|
|
661
651
|
return s(n, e.length);
|
|
662
652
|
},
|
|
663
653
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -802,12 +792,12 @@ const g = {
|
|
|
802
792
|
},
|
|
803
793
|
// Local week of year
|
|
804
794
|
w: function(t, e, n, r) {
|
|
805
|
-
const a =
|
|
795
|
+
const a = xt(t, r);
|
|
806
796
|
return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : s(a, e.length);
|
|
807
797
|
},
|
|
808
798
|
// ISO week of year
|
|
809
799
|
I: function(t, e, n) {
|
|
810
|
-
const r =
|
|
800
|
+
const r = Ot(t);
|
|
811
801
|
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : s(r, e.length);
|
|
812
802
|
},
|
|
813
803
|
// Day of the month
|
|
@@ -816,7 +806,7 @@ const g = {
|
|
|
816
806
|
},
|
|
817
807
|
// Day of year
|
|
818
808
|
D: function(t, e, n) {
|
|
819
|
-
const r =
|
|
809
|
+
const r = Pt(t);
|
|
820
810
|
return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : s(r, e.length);
|
|
821
811
|
},
|
|
822
812
|
// Day of week
|
|
@@ -1197,7 +1187,7 @@ const F = (t, e) => {
|
|
|
1197
1187
|
default:
|
|
1198
1188
|
return e.date({ width: "full" });
|
|
1199
1189
|
}
|
|
1200
|
-
},
|
|
1190
|
+
}, C = (t, e) => {
|
|
1201
1191
|
switch (t) {
|
|
1202
1192
|
case "p":
|
|
1203
1193
|
return e.time({ width: "short" });
|
|
@@ -1209,7 +1199,7 @@ const F = (t, e) => {
|
|
|
1209
1199
|
default:
|
|
1210
1200
|
return e.time({ width: "full" });
|
|
1211
1201
|
}
|
|
1212
|
-
},
|
|
1202
|
+
}, Dt = (t, e) => {
|
|
1213
1203
|
const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
1214
1204
|
if (!a)
|
|
1215
1205
|
return F(t, e);
|
|
@@ -1229,46 +1219,46 @@ const F = (t, e) => {
|
|
|
1229
1219
|
o = e.dateTime({ width: "full" });
|
|
1230
1220
|
break;
|
|
1231
1221
|
}
|
|
1232
|
-
return o.replace("{{date}}", F(r, e)).replace("{{time}}",
|
|
1233
|
-
},
|
|
1234
|
-
p:
|
|
1235
|
-
P:
|
|
1236
|
-
},
|
|
1237
|
-
function
|
|
1238
|
-
return
|
|
1222
|
+
return o.replace("{{date}}", F(r, e)).replace("{{time}}", C(a, e));
|
|
1223
|
+
}, Wt = {
|
|
1224
|
+
p: C,
|
|
1225
|
+
P: Dt
|
|
1226
|
+
}, vt = /^D+$/, St = /^Y+$/, Yt = ["D", "DD", "YY", "YYYY"];
|
|
1227
|
+
function Tt(t) {
|
|
1228
|
+
return vt.test(t);
|
|
1239
1229
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return
|
|
1230
|
+
function Ft(t) {
|
|
1231
|
+
return St.test(t);
|
|
1242
1232
|
}
|
|
1243
|
-
function
|
|
1244
|
-
const r =
|
|
1245
|
-
if (console.warn(r),
|
|
1233
|
+
function Et(t, e, n) {
|
|
1234
|
+
const r = Nt(t, e, n);
|
|
1235
|
+
if (console.warn(r), Yt.includes(t)) throw new RangeError(r);
|
|
1246
1236
|
}
|
|
1247
|
-
function
|
|
1237
|
+
function Nt(t, e, n) {
|
|
1248
1238
|
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
1249
1239
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1250
1240
|
}
|
|
1251
|
-
const
|
|
1252
|
-
function
|
|
1253
|
-
const r = O(), a = r.locale ??
|
|
1254
|
-
if (!
|
|
1241
|
+
const Ct = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, qt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ht = /^'([^]*?)'?$/, _t = /''/g, Qt = /[a-zA-Z]/;
|
|
1242
|
+
function Rt(t, e, n) {
|
|
1243
|
+
const r = O(), a = r.locale ?? Mt, o = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, u = f(t, n?.in);
|
|
1244
|
+
if (!j(u))
|
|
1255
1245
|
throw new RangeError("Invalid time value");
|
|
1256
|
-
let h = e.match(
|
|
1246
|
+
let h = e.match(qt).map((d) => {
|
|
1257
1247
|
const c = d[0];
|
|
1258
1248
|
if (c === "p" || c === "P") {
|
|
1259
|
-
const k =
|
|
1249
|
+
const k = Wt[c];
|
|
1260
1250
|
return k(d, a.formatLong);
|
|
1261
1251
|
}
|
|
1262
1252
|
return d;
|
|
1263
|
-
}).join("").match(
|
|
1253
|
+
}).join("").match(Ct).map((d) => {
|
|
1264
1254
|
if (d === "''")
|
|
1265
1255
|
return { isToken: !1, value: "'" };
|
|
1266
1256
|
const c = d[0];
|
|
1267
1257
|
if (c === "'")
|
|
1268
|
-
return { isToken: !1, value:
|
|
1258
|
+
return { isToken: !1, value: Xt(d) };
|
|
1269
1259
|
if (S[c])
|
|
1270
1260
|
return { isToken: !0, value: d };
|
|
1271
|
-
if (c.match(
|
|
1261
|
+
if (c.match(Qt))
|
|
1272
1262
|
throw new RangeError(
|
|
1273
1263
|
"Format string contains an unescaped latin alphabet character `" + c + "`"
|
|
1274
1264
|
);
|
|
@@ -1283,42 +1273,41 @@ function Ut(t, e, n) {
|
|
|
1283
1273
|
return h.map((d) => {
|
|
1284
1274
|
if (!d.isToken) return d.value;
|
|
1285
1275
|
const c = d.value;
|
|
1286
|
-
(
|
|
1276
|
+
(Ft(c) || Tt(c)) && Et(c, e, String(t));
|
|
1287
1277
|
const k = S[c[0]];
|
|
1288
1278
|
return k(u, c, a.localize, l);
|
|
1289
1279
|
}).join("");
|
|
1290
1280
|
}
|
|
1291
|
-
function
|
|
1292
|
-
const e = t.match(
|
|
1293
|
-
return e ? e[1].replace(
|
|
1281
|
+
function Xt(t) {
|
|
1282
|
+
const e = t.match(Ht);
|
|
1283
|
+
return e ? e[1].replace(_t, "'") : t;
|
|
1294
1284
|
}
|
|
1295
|
-
function
|
|
1285
|
+
function At(t, e) {
|
|
1296
1286
|
return +f(t) > +f(e);
|
|
1297
1287
|
}
|
|
1298
1288
|
export {
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
zt as b,
|
|
1289
|
+
Gt as a,
|
|
1290
|
+
Bt as b,
|
|
1302
1291
|
m as c,
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1292
|
+
jt as d,
|
|
1293
|
+
Lt as e,
|
|
1294
|
+
N as f,
|
|
1306
1295
|
O as g,
|
|
1307
1296
|
P as h,
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1297
|
+
xt as i,
|
|
1298
|
+
Ot as j,
|
|
1299
|
+
W as k,
|
|
1300
|
+
Mt as l,
|
|
1301
|
+
It as m,
|
|
1302
|
+
Wt as n,
|
|
1303
|
+
Ft as o,
|
|
1304
|
+
Tt as p,
|
|
1305
|
+
Rt as q,
|
|
1306
|
+
At as r,
|
|
1318
1307
|
M as s,
|
|
1319
1308
|
f as t,
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1309
|
+
H as u,
|
|
1310
|
+
v,
|
|
1311
|
+
Et as w,
|
|
1312
|
+
_ as x
|
|
1324
1313
|
};
|