luigi12345 commited on
Commit
246872f
1 Parent(s): b3873d4

373ee6412b0e0c44c7f672d53725e36dc06fbb0fcb10580328d9f29a96cbb516

Browse files
Files changed (50) hide show
  1. workers1/auto3d/node_modules/date-fns/nextThursday.d.ts +22 -0
  2. workers1/auto3d/node_modules/date-fns/nextThursday.js +26 -0
  3. workers1/auto3d/node_modules/date-fns/nextThursday.mjs +27 -0
  4. workers1/auto3d/node_modules/date-fns/nextTuesday.d.mts +22 -0
  5. workers1/auto3d/node_modules/date-fns/nextTuesday.d.ts +22 -0
  6. workers1/auto3d/node_modules/date-fns/nextTuesday.js +26 -0
  7. workers1/auto3d/node_modules/date-fns/nextTuesday.mjs +27 -0
  8. workers1/auto3d/node_modules/date-fns/nextWednesday.d.mts +22 -0
  9. workers1/auto3d/node_modules/date-fns/nextWednesday.d.ts +22 -0
  10. workers1/auto3d/node_modules/date-fns/nextWednesday.js +26 -0
  11. workers1/auto3d/node_modules/date-fns/nextWednesday.mjs +27 -0
  12. workers1/auto3d/node_modules/date-fns/package.json +0 -0
  13. workers1/auto3d/node_modules/date-fns/parse/_lib/Parser.d.mts +34 -0
  14. workers1/auto3d/node_modules/date-fns/parse/_lib/Parser.d.ts +34 -0
  15. workers1/auto3d/node_modules/date-fns/parse/_lib/Parser.js +28 -0
  16. workers1/auto3d/node_modules/date-fns/parse/_lib/Parser.mjs +25 -0
  17. workers1/auto3d/node_modules/date-fns/parse/_lib/Setter.d.mts +50 -0
  18. workers1/auto3d/node_modules/date-fns/parse/_lib/Setter.d.ts +50 -0
  19. workers1/auto3d/node_modules/date-fns/parse/_lib/Setter.js +59 -0
  20. workers1/auto3d/node_modules/date-fns/parse/_lib/Setter.mjs +51 -0
  21. workers1/auto3d/node_modules/date-fns/parse/_lib/constants.d.mts +28 -0
  22. workers1/auto3d/node_modules/date-fns/parse/_lib/constants.d.ts +28 -0
  23. workers1/auto3d/node_modules/date-fns/parse/_lib/constants.js +33 -0
  24. workers1/auto3d/node_modules/date-fns/parse/_lib/constants.mjs +31 -0
  25. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.d.mts +17 -0
  26. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.d.ts +17 -0
  27. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +57 -0
  28. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.mjs +53 -0
  29. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMParser.d.mts +17 -0
  30. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMParser.d.ts +17 -0
  31. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +57 -0
  32. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMParser.mjs +53 -0
  33. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DateParser.d.mts +15 -0
  34. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DateParser.d.ts +15 -0
  35. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DateParser.js +64 -0
  36. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DateParser.mjs +61 -0
  37. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.d.mts +15 -0
  38. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.d.ts +15 -0
  39. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +62 -0
  40. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.mjs +59 -0
  41. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayParser.d.mts +15 -0
  42. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayParser.d.ts +15 -0
  43. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayParser.js +65 -0
  44. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayParser.mjs +62 -0
  45. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.d.mts +17 -0
  46. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.d.ts +17 -0
  47. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +58 -0
  48. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.mjs +54 -0
  49. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/EraParser.d.mts +14 -0
  50. workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/EraParser.d.ts +14 -0
workers1/auto3d/node_modules/date-fns/nextThursday.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name nextThursday
3
+ * @category Weekday Helpers
4
+ * @summary When is the next Thursday?
5
+ *
6
+ * @description
7
+ * When is the next Thursday?
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The date to start counting from
12
+ *
13
+ * @returns The next Thursday
14
+ *
15
+ * @example
16
+ * // When is the next Thursday after Mar, 22, 2020?
17
+ * const result = nextThursday(new Date(2020, 2, 22))
18
+ * //=> Thur Mar 26 2020 00:00:00
19
+ */
20
+ export declare function nextThursday<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): DateType;
workers1/auto3d/node_modules/date-fns/nextThursday.js ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.nextThursday = nextThursday;
3
+ var _index = require("./nextDay.js");
4
+
5
+ /**
6
+ * @name nextThursday
7
+ * @category Weekday Helpers
8
+ * @summary When is the next Thursday?
9
+ *
10
+ * @description
11
+ * When is the next Thursday?
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param date - The date to start counting from
16
+ *
17
+ * @returns The next Thursday
18
+ *
19
+ * @example
20
+ * // When is the next Thursday after Mar, 22, 2020?
21
+ * const result = nextThursday(new Date(2020, 2, 22))
22
+ * //=> Thur Mar 26 2020 00:00:00
23
+ */
24
+ function nextThursday(date) {
25
+ return (0, _index.nextDay)(date, 4);
26
+ }
workers1/auto3d/node_modules/date-fns/nextThursday.mjs ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { nextDay } from "./nextDay.mjs";
2
+
3
+ /**
4
+ * @name nextThursday
5
+ * @category Weekday Helpers
6
+ * @summary When is the next Thursday?
7
+ *
8
+ * @description
9
+ * When is the next Thursday?
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param date - The date to start counting from
14
+ *
15
+ * @returns The next Thursday
16
+ *
17
+ * @example
18
+ * // When is the next Thursday after Mar, 22, 2020?
19
+ * const result = nextThursday(new Date(2020, 2, 22))
20
+ * //=> Thur Mar 26 2020 00:00:00
21
+ */
22
+ export function nextThursday(date) {
23
+ return nextDay(date, 4);
24
+ }
25
+
26
+ // Fallback for modularized imports:
27
+ export default nextThursday;
workers1/auto3d/node_modules/date-fns/nextTuesday.d.mts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name nextTuesday
3
+ * @category Weekday Helpers
4
+ * @summary When is the next Tuesday?
5
+ *
6
+ * @description
7
+ * When is the next Tuesday?
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The date to start counting from
12
+ *
13
+ * @returns The next Tuesday
14
+ *
15
+ * @example
16
+ * // When is the next Tuesday after Mar, 22, 2020?
17
+ * const result = nextTuesday(new Date(2020, 2, 22))
18
+ * //=> Tue Mar 24 2020 00:00:00
19
+ */
20
+ export declare function nextTuesday<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): DateType;
workers1/auto3d/node_modules/date-fns/nextTuesday.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name nextTuesday
3
+ * @category Weekday Helpers
4
+ * @summary When is the next Tuesday?
5
+ *
6
+ * @description
7
+ * When is the next Tuesday?
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The date to start counting from
12
+ *
13
+ * @returns The next Tuesday
14
+ *
15
+ * @example
16
+ * // When is the next Tuesday after Mar, 22, 2020?
17
+ * const result = nextTuesday(new Date(2020, 2, 22))
18
+ * //=> Tue Mar 24 2020 00:00:00
19
+ */
20
+ export declare function nextTuesday<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): DateType;
workers1/auto3d/node_modules/date-fns/nextTuesday.js ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.nextTuesday = nextTuesday;
3
+ var _index = require("./nextDay.js");
4
+
5
+ /**
6
+ * @name nextTuesday
7
+ * @category Weekday Helpers
8
+ * @summary When is the next Tuesday?
9
+ *
10
+ * @description
11
+ * When is the next Tuesday?
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param date - The date to start counting from
16
+ *
17
+ * @returns The next Tuesday
18
+ *
19
+ * @example
20
+ * // When is the next Tuesday after Mar, 22, 2020?
21
+ * const result = nextTuesday(new Date(2020, 2, 22))
22
+ * //=> Tue Mar 24 2020 00:00:00
23
+ */
24
+ function nextTuesday(date) {
25
+ return (0, _index.nextDay)(date, 2);
26
+ }
workers1/auto3d/node_modules/date-fns/nextTuesday.mjs ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { nextDay } from "./nextDay.mjs";
2
+
3
+ /**
4
+ * @name nextTuesday
5
+ * @category Weekday Helpers
6
+ * @summary When is the next Tuesday?
7
+ *
8
+ * @description
9
+ * When is the next Tuesday?
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param date - The date to start counting from
14
+ *
15
+ * @returns The next Tuesday
16
+ *
17
+ * @example
18
+ * // When is the next Tuesday after Mar, 22, 2020?
19
+ * const result = nextTuesday(new Date(2020, 2, 22))
20
+ * //=> Tue Mar 24 2020 00:00:00
21
+ */
22
+ export function nextTuesday(date) {
23
+ return nextDay(date, 2);
24
+ }
25
+
26
+ // Fallback for modularized imports:
27
+ export default nextTuesday;
workers1/auto3d/node_modules/date-fns/nextWednesday.d.mts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name nextWednesday
3
+ * @category Weekday Helpers
4
+ * @summary When is the next Wednesday?
5
+ *
6
+ * @description
7
+ * When is the next Wednesday?
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The date to start counting from
12
+ *
13
+ * @returns The next Wednesday
14
+ *
15
+ * @example
16
+ * // When is the next Wednesday after Mar, 22, 2020?
17
+ * const result = nextWednesday(new Date(2020, 2, 22))
18
+ * //=> Wed Mar 25 2020 00:00:00
19
+ */
20
+ export declare function nextWednesday<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): DateType;
workers1/auto3d/node_modules/date-fns/nextWednesday.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @name nextWednesday
3
+ * @category Weekday Helpers
4
+ * @summary When is the next Wednesday?
5
+ *
6
+ * @description
7
+ * When is the next Wednesday?
8
+ *
9
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
+ *
11
+ * @param date - The date to start counting from
12
+ *
13
+ * @returns The next Wednesday
14
+ *
15
+ * @example
16
+ * // When is the next Wednesday after Mar, 22, 2020?
17
+ * const result = nextWednesday(new Date(2020, 2, 22))
18
+ * //=> Wed Mar 25 2020 00:00:00
19
+ */
20
+ export declare function nextWednesday<DateType extends Date>(
21
+ date: DateType | number | string,
22
+ ): DateType;
workers1/auto3d/node_modules/date-fns/nextWednesday.js ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.nextWednesday = nextWednesday;
3
+ var _index = require("./nextDay.js");
4
+
5
+ /**
6
+ * @name nextWednesday
7
+ * @category Weekday Helpers
8
+ * @summary When is the next Wednesday?
9
+ *
10
+ * @description
11
+ * When is the next Wednesday?
12
+ *
13
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
14
+ *
15
+ * @param date - The date to start counting from
16
+ *
17
+ * @returns The next Wednesday
18
+ *
19
+ * @example
20
+ * // When is the next Wednesday after Mar, 22, 2020?
21
+ * const result = nextWednesday(new Date(2020, 2, 22))
22
+ * //=> Wed Mar 25 2020 00:00:00
23
+ */
24
+ function nextWednesday(date) {
25
+ return (0, _index.nextDay)(date, 3);
26
+ }
workers1/auto3d/node_modules/date-fns/nextWednesday.mjs ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { nextDay } from "./nextDay.mjs";
2
+
3
+ /**
4
+ * @name nextWednesday
5
+ * @category Weekday Helpers
6
+ * @summary When is the next Wednesday?
7
+ *
8
+ * @description
9
+ * When is the next Wednesday?
10
+ *
11
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
12
+ *
13
+ * @param date - The date to start counting from
14
+ *
15
+ * @returns The next Wednesday
16
+ *
17
+ * @example
18
+ * // When is the next Wednesday after Mar, 22, 2020?
19
+ * const result = nextWednesday(new Date(2020, 2, 22))
20
+ * //=> Wed Mar 25 2020 00:00:00
21
+ */
22
+ export function nextWednesday(date) {
23
+ return nextDay(date, 3);
24
+ }
25
+
26
+ // Fallback for modularized imports:
27
+ export default nextWednesday;
workers1/auto3d/node_modules/date-fns/package.json ADDED
The diff for this file is too large to render. See raw diff
 
workers1/auto3d/node_modules/date-fns/parse/_lib/Parser.d.mts ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { Match } from "../../locale/types.js";
2
+ import { ValueSetter } from "./Setter.js";
3
+ import type { ParseFlags, ParseResult, ParserOptions } from "./types.js";
4
+ export declare abstract class Parser<Value> {
5
+ abstract incompatibleTokens: string[] | "*";
6
+ abstract priority: number;
7
+ subPriority?: number;
8
+ run(
9
+ dateString: string,
10
+ token: string,
11
+ match: Match,
12
+ options: ParserOptions,
13
+ ): {
14
+ setter: ValueSetter<Value>;
15
+ rest: string;
16
+ } | null;
17
+ protected abstract parse(
18
+ dateString: string,
19
+ token: string,
20
+ match: Match,
21
+ options: ParserOptions,
22
+ ): ParseResult<Value>;
23
+ protected validate<DateType extends Date>(
24
+ _utcDate: DateType,
25
+ _value: Value,
26
+ _options: ParserOptions,
27
+ ): boolean;
28
+ protected abstract set<DateType extends Date>(
29
+ date: DateType,
30
+ flags: ParseFlags,
31
+ value: Value,
32
+ options: ParserOptions,
33
+ ): DateType | [DateType, ParseFlags];
34
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/Parser.d.ts ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { Match } from "../../locale/types.js";
2
+ import { ValueSetter } from "./Setter.js";
3
+ import type { ParseFlags, ParseResult, ParserOptions } from "./types.js";
4
+ export declare abstract class Parser<Value> {
5
+ abstract incompatibleTokens: string[] | "*";
6
+ abstract priority: number;
7
+ subPriority?: number;
8
+ run(
9
+ dateString: string,
10
+ token: string,
11
+ match: Match,
12
+ options: ParserOptions,
13
+ ): {
14
+ setter: ValueSetter<Value>;
15
+ rest: string;
16
+ } | null;
17
+ protected abstract parse(
18
+ dateString: string,
19
+ token: string,
20
+ match: Match,
21
+ options: ParserOptions,
22
+ ): ParseResult<Value>;
23
+ protected validate<DateType extends Date>(
24
+ _utcDate: DateType,
25
+ _value: Value,
26
+ _options: ParserOptions,
27
+ ): boolean;
28
+ protected abstract set<DateType extends Date>(
29
+ date: DateType,
30
+ flags: ParseFlags,
31
+ value: Value,
32
+ options: ParserOptions,
33
+ ): DateType | [DateType, ParseFlags];
34
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/Parser.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.Parser = void 0;
3
+ var _Setter = require("./Setter.js");
4
+
5
+ class Parser {
6
+ run(dateString, token, match, options) {
7
+ const result = this.parse(dateString, token, match, options);
8
+ if (!result) {
9
+ return null;
10
+ }
11
+
12
+ return {
13
+ setter: new _Setter.ValueSetter(
14
+ result.value,
15
+ this.validate,
16
+ this.set,
17
+ this.priority,
18
+ this.subPriority,
19
+ ),
20
+ rest: result.rest,
21
+ };
22
+ }
23
+
24
+ validate(_utcDate, _value, _options) {
25
+ return true;
26
+ }
27
+ }
28
+ exports.Parser = Parser;
workers1/auto3d/node_modules/date-fns/parse/_lib/Parser.mjs ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { ValueSetter } from "./Setter.mjs";
2
+
3
+ export class Parser {
4
+ run(dateString, token, match, options) {
5
+ const result = this.parse(dateString, token, match, options);
6
+ if (!result) {
7
+ return null;
8
+ }
9
+
10
+ return {
11
+ setter: new ValueSetter(
12
+ result.value,
13
+ this.validate,
14
+ this.set,
15
+ this.priority,
16
+ this.subPriority,
17
+ ),
18
+ rest: result.rest,
19
+ };
20
+ }
21
+
22
+ validate(_utcDate, _value, _options) {
23
+ return true;
24
+ }
25
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/Setter.d.mts ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { ParseFlags, ParserOptions } from "./types.js";
2
+ export declare abstract class Setter {
3
+ abstract priority: number;
4
+ subPriority: number;
5
+ validate<DateType extends Date>(
6
+ _utcDate: DateType,
7
+ _options?: ParserOptions,
8
+ ): boolean;
9
+ abstract set<DateType extends Date>(
10
+ utcDate: DateType,
11
+ flags: ParseFlags,
12
+ options: ParserOptions,
13
+ ): DateType | [DateType, ParseFlags];
14
+ }
15
+ export declare class ValueSetter<Value> extends Setter {
16
+ private value;
17
+ private validateValue;
18
+ private setValue;
19
+ priority: number;
20
+ constructor(
21
+ value: Value,
22
+ validateValue: <DateType extends Date>(
23
+ utcDate: DateType,
24
+ value: Value,
25
+ options: ParserOptions,
26
+ ) => boolean,
27
+ setValue: <DateType extends Date>(
28
+ utcDate: DateType,
29
+ flags: ParseFlags,
30
+ value: Value,
31
+ options: ParserOptions,
32
+ ) => DateType | [DateType, ParseFlags],
33
+ priority: number,
34
+ subPriority?: number,
35
+ );
36
+ validate<DateType extends Date>(
37
+ date: DateType,
38
+ options: ParserOptions,
39
+ ): boolean;
40
+ set<DateType extends Date>(
41
+ date: DateType,
42
+ flags: ParseFlags,
43
+ options: ParserOptions,
44
+ ): DateType | [DateType, ParseFlags];
45
+ }
46
+ export declare class DateToSystemTimezoneSetter extends Setter {
47
+ priority: number;
48
+ subPriority: number;
49
+ set<DateType extends Date>(date: DateType, flags: ParseFlags): DateType;
50
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/Setter.d.ts ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { ParseFlags, ParserOptions } from "./types.js";
2
+ export declare abstract class Setter {
3
+ abstract priority: number;
4
+ subPriority: number;
5
+ validate<DateType extends Date>(
6
+ _utcDate: DateType,
7
+ _options?: ParserOptions,
8
+ ): boolean;
9
+ abstract set<DateType extends Date>(
10
+ utcDate: DateType,
11
+ flags: ParseFlags,
12
+ options: ParserOptions,
13
+ ): DateType | [DateType, ParseFlags];
14
+ }
15
+ export declare class ValueSetter<Value> extends Setter {
16
+ private value;
17
+ private validateValue;
18
+ private setValue;
19
+ priority: number;
20
+ constructor(
21
+ value: Value,
22
+ validateValue: <DateType extends Date>(
23
+ utcDate: DateType,
24
+ value: Value,
25
+ options: ParserOptions,
26
+ ) => boolean,
27
+ setValue: <DateType extends Date>(
28
+ utcDate: DateType,
29
+ flags: ParseFlags,
30
+ value: Value,
31
+ options: ParserOptions,
32
+ ) => DateType | [DateType, ParseFlags],
33
+ priority: number,
34
+ subPriority?: number,
35
+ );
36
+ validate<DateType extends Date>(
37
+ date: DateType,
38
+ options: ParserOptions,
39
+ ): boolean;
40
+ set<DateType extends Date>(
41
+ date: DateType,
42
+ flags: ParseFlags,
43
+ options: ParserOptions,
44
+ ): DateType | [DateType, ParseFlags];
45
+ }
46
+ export declare class DateToSystemTimezoneSetter extends Setter {
47
+ priority: number;
48
+ subPriority: number;
49
+ set<DateType extends Date>(date: DateType, flags: ParseFlags): DateType;
50
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/Setter.js ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.ValueSetter =
3
+ exports.Setter =
4
+ exports.DateToSystemTimezoneSetter =
5
+ void 0;
6
+ var _index = require("../../transpose.js");
7
+ var _index2 = require("../../constructFrom.js");
8
+
9
+ const TIMEZONE_UNIT_PRIORITY = 10;
10
+
11
+ class Setter {
12
+ subPriority = 0;
13
+
14
+ validate(_utcDate, _options) {
15
+ return true;
16
+ }
17
+ }
18
+ exports.Setter = Setter;
19
+
20
+ class ValueSetter extends Setter {
21
+ constructor(
22
+ value,
23
+
24
+ validateValue,
25
+
26
+ setValue,
27
+
28
+ priority,
29
+ subPriority,
30
+ ) {
31
+ super();
32
+ this.value = value;
33
+ this.validateValue = validateValue;
34
+ this.setValue = setValue;
35
+ this.priority = priority;
36
+ if (subPriority) {
37
+ this.subPriority = subPriority;
38
+ }
39
+ }
40
+
41
+ validate(date, options) {
42
+ return this.validateValue(date, this.value, options);
43
+ }
44
+
45
+ set(date, flags, options) {
46
+ return this.setValue(date, flags, this.value, options);
47
+ }
48
+ }
49
+ exports.ValueSetter = ValueSetter;
50
+
51
+ class DateToSystemTimezoneSetter extends Setter {
52
+ priority = TIMEZONE_UNIT_PRIORITY;
53
+ subPriority = -1;
54
+ set(date, flags) {
55
+ if (flags.timestampIsSet) return date;
56
+ return (0, _index2.constructFrom)(date, (0, _index.transpose)(date, Date));
57
+ }
58
+ }
59
+ exports.DateToSystemTimezoneSetter = DateToSystemTimezoneSetter;
workers1/auto3d/node_modules/date-fns/parse/_lib/Setter.mjs ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { transpose } from "../../transpose.mjs";
2
+ import { constructFrom } from "../../constructFrom.mjs";
3
+
4
+ const TIMEZONE_UNIT_PRIORITY = 10;
5
+
6
+ export class Setter {
7
+ subPriority = 0;
8
+
9
+ validate(_utcDate, _options) {
10
+ return true;
11
+ }
12
+ }
13
+
14
+ export class ValueSetter extends Setter {
15
+ constructor(
16
+ value,
17
+
18
+ validateValue,
19
+
20
+ setValue,
21
+
22
+ priority,
23
+ subPriority,
24
+ ) {
25
+ super();
26
+ this.value = value;
27
+ this.validateValue = validateValue;
28
+ this.setValue = setValue;
29
+ this.priority = priority;
30
+ if (subPriority) {
31
+ this.subPriority = subPriority;
32
+ }
33
+ }
34
+
35
+ validate(date, options) {
36
+ return this.validateValue(date, this.value, options);
37
+ }
38
+
39
+ set(date, flags, options) {
40
+ return this.setValue(date, flags, this.value, options);
41
+ }
42
+ }
43
+
44
+ export class DateToSystemTimezoneSetter extends Setter {
45
+ priority = TIMEZONE_UNIT_PRIORITY;
46
+ subPriority = -1;
47
+ set(date, flags) {
48
+ if (flags.timestampIsSet) return date;
49
+ return constructFrom(date, transpose(date, Date));
50
+ }
51
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/constants.d.mts ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export declare const numericPatterns: {
2
+ month: RegExp;
3
+ date: RegExp;
4
+ dayOfYear: RegExp;
5
+ week: RegExp;
6
+ hour23h: RegExp;
7
+ hour24h: RegExp;
8
+ hour11h: RegExp;
9
+ hour12h: RegExp;
10
+ minute: RegExp;
11
+ second: RegExp;
12
+ singleDigit: RegExp;
13
+ twoDigits: RegExp;
14
+ threeDigits: RegExp;
15
+ fourDigits: RegExp;
16
+ anyDigitsSigned: RegExp;
17
+ singleDigitSigned: RegExp;
18
+ twoDigitsSigned: RegExp;
19
+ threeDigitsSigned: RegExp;
20
+ fourDigitsSigned: RegExp;
21
+ };
22
+ export declare const timezonePatterns: {
23
+ basicOptionalMinutes: RegExp;
24
+ basic: RegExp;
25
+ basicOptionalSeconds: RegExp;
26
+ extended: RegExp;
27
+ extendedOptionalSeconds: RegExp;
28
+ };
workers1/auto3d/node_modules/date-fns/parse/_lib/constants.d.ts ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export declare const numericPatterns: {
2
+ month: RegExp;
3
+ date: RegExp;
4
+ dayOfYear: RegExp;
5
+ week: RegExp;
6
+ hour23h: RegExp;
7
+ hour24h: RegExp;
8
+ hour11h: RegExp;
9
+ hour12h: RegExp;
10
+ minute: RegExp;
11
+ second: RegExp;
12
+ singleDigit: RegExp;
13
+ twoDigits: RegExp;
14
+ threeDigits: RegExp;
15
+ fourDigits: RegExp;
16
+ anyDigitsSigned: RegExp;
17
+ singleDigitSigned: RegExp;
18
+ twoDigitsSigned: RegExp;
19
+ threeDigitsSigned: RegExp;
20
+ fourDigitsSigned: RegExp;
21
+ };
22
+ export declare const timezonePatterns: {
23
+ basicOptionalMinutes: RegExp;
24
+ basic: RegExp;
25
+ basicOptionalSeconds: RegExp;
26
+ extended: RegExp;
27
+ extendedOptionalSeconds: RegExp;
28
+ };
workers1/auto3d/node_modules/date-fns/parse/_lib/constants.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.timezonePatterns = exports.numericPatterns = void 0;
3
+ const numericPatterns = (exports.numericPatterns = {
4
+ month: /^(1[0-2]|0?\d)/, // 0 to 12
5
+ date: /^(3[0-1]|[0-2]?\d)/, // 0 to 31
6
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, // 0 to 366
7
+ week: /^(5[0-3]|[0-4]?\d)/, // 0 to 53
8
+ hour23h: /^(2[0-3]|[0-1]?\d)/, // 0 to 23
9
+ hour24h: /^(2[0-4]|[0-1]?\d)/, // 0 to 24
10
+ hour11h: /^(1[0-1]|0?\d)/, // 0 to 11
11
+ hour12h: /^(1[0-2]|0?\d)/, // 0 to 12
12
+ minute: /^[0-5]?\d/, // 0 to 59
13
+ second: /^[0-5]?\d/, // 0 to 59
14
+
15
+ singleDigit: /^\d/, // 0 to 9
16
+ twoDigits: /^\d{1,2}/, // 0 to 99
17
+ threeDigits: /^\d{1,3}/, // 0 to 999
18
+ fourDigits: /^\d{1,4}/, // 0 to 9999
19
+
20
+ anyDigitsSigned: /^-?\d+/,
21
+ singleDigitSigned: /^-?\d/, // 0 to 9, -0 to -9
22
+ twoDigitsSigned: /^-?\d{1,2}/, // 0 to 99, -0 to -99
23
+ threeDigitsSigned: /^-?\d{1,3}/, // 0 to 999, -0 to -999
24
+ fourDigitsSigned: /^-?\d{1,4}/, // 0 to 9999, -0 to -9999
25
+ });
26
+
27
+ const timezonePatterns = (exports.timezonePatterns = {
28
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
29
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
30
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
31
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
32
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/,
33
+ });
workers1/auto3d/node_modules/date-fns/parse/_lib/constants.mjs ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export const numericPatterns = {
2
+ month: /^(1[0-2]|0?\d)/, // 0 to 12
3
+ date: /^(3[0-1]|[0-2]?\d)/, // 0 to 31
4
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, // 0 to 366
5
+ week: /^(5[0-3]|[0-4]?\d)/, // 0 to 53
6
+ hour23h: /^(2[0-3]|[0-1]?\d)/, // 0 to 23
7
+ hour24h: /^(2[0-4]|[0-1]?\d)/, // 0 to 24
8
+ hour11h: /^(1[0-1]|0?\d)/, // 0 to 11
9
+ hour12h: /^(1[0-2]|0?\d)/, // 0 to 12
10
+ minute: /^[0-5]?\d/, // 0 to 59
11
+ second: /^[0-5]?\d/, // 0 to 59
12
+
13
+ singleDigit: /^\d/, // 0 to 9
14
+ twoDigits: /^\d{1,2}/, // 0 to 99
15
+ threeDigits: /^\d{1,3}/, // 0 to 999
16
+ fourDigits: /^\d{1,4}/, // 0 to 9999
17
+
18
+ anyDigitsSigned: /^-?\d+/,
19
+ singleDigitSigned: /^-?\d/, // 0 to 9, -0 to -9
20
+ twoDigitsSigned: /^-?\d{1,2}/, // 0 to 99, -0 to -99
21
+ threeDigitsSigned: /^-?\d{1,3}/, // 0 to 999, -0 to -999
22
+ fourDigitsSigned: /^-?\d{1,4}/, // 0 to 9999, -0 to -9999
23
+ };
24
+
25
+ export const timezonePatterns = {
26
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
27
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
28
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
29
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
30
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/,
31
+ };
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.d.mts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult } from "../types.js";
4
+ export declare class AMPMMidnightParser extends Parser<LocaleDayPeriod> {
5
+ priority: number;
6
+ parse(
7
+ dateString: string,
8
+ token: string,
9
+ match: Match,
10
+ ): ParseResult<LocaleDayPeriod>;
11
+ set<DateType extends Date>(
12
+ date: DateType,
13
+ _flags: ParseFlags,
14
+ value: LocaleDayPeriod,
15
+ ): DateType;
16
+ incompatibleTokens: string[];
17
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.d.ts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult } from "../types.js";
4
+ export declare class AMPMMidnightParser extends Parser<LocaleDayPeriod> {
5
+ priority: number;
6
+ parse(
7
+ dateString: string,
8
+ token: string,
9
+ match: Match,
10
+ ): ParseResult<LocaleDayPeriod>;
11
+ set<DateType extends Date>(
12
+ date: DateType,
13
+ _flags: ParseFlags,
14
+ value: LocaleDayPeriod,
15
+ ): DateType;
16
+ incompatibleTokens: string[];
17
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.AMPMMidnightParser = void 0;
3
+ var _Parser = require("../Parser.js");
4
+
5
+ var _utils = require("../utils.js");
6
+
7
+ class AMPMMidnightParser extends _Parser.Parser {
8
+ priority = 80;
9
+
10
+ parse(dateString, token, match) {
11
+ switch (token) {
12
+ case "b":
13
+ case "bb":
14
+ case "bbb":
15
+ return (
16
+ match.dayPeriod(dateString, {
17
+ width: "abbreviated",
18
+ context: "formatting",
19
+ }) ||
20
+ match.dayPeriod(dateString, {
21
+ width: "narrow",
22
+ context: "formatting",
23
+ })
24
+ );
25
+
26
+ case "bbbbb":
27
+ return match.dayPeriod(dateString, {
28
+ width: "narrow",
29
+ context: "formatting",
30
+ });
31
+ case "bbbb":
32
+ default:
33
+ return (
34
+ match.dayPeriod(dateString, {
35
+ width: "wide",
36
+ context: "formatting",
37
+ }) ||
38
+ match.dayPeriod(dateString, {
39
+ width: "abbreviated",
40
+ context: "formatting",
41
+ }) ||
42
+ match.dayPeriod(dateString, {
43
+ width: "narrow",
44
+ context: "formatting",
45
+ })
46
+ );
47
+ }
48
+ }
49
+
50
+ set(date, _flags, value) {
51
+ date.setHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0);
52
+ return date;
53
+ }
54
+
55
+ incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
56
+ }
57
+ exports.AMPMMidnightParser = AMPMMidnightParser;
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.mjs ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { Parser } from "../Parser.mjs";
2
+ import { dayPeriodEnumToHours } from "../utils.mjs";
3
+
4
+ export class AMPMMidnightParser extends Parser {
5
+ priority = 80;
6
+
7
+ parse(dateString, token, match) {
8
+ switch (token) {
9
+ case "b":
10
+ case "bb":
11
+ case "bbb":
12
+ return (
13
+ match.dayPeriod(dateString, {
14
+ width: "abbreviated",
15
+ context: "formatting",
16
+ }) ||
17
+ match.dayPeriod(dateString, {
18
+ width: "narrow",
19
+ context: "formatting",
20
+ })
21
+ );
22
+
23
+ case "bbbbb":
24
+ return match.dayPeriod(dateString, {
25
+ width: "narrow",
26
+ context: "formatting",
27
+ });
28
+ case "bbbb":
29
+ default:
30
+ return (
31
+ match.dayPeriod(dateString, {
32
+ width: "wide",
33
+ context: "formatting",
34
+ }) ||
35
+ match.dayPeriod(dateString, {
36
+ width: "abbreviated",
37
+ context: "formatting",
38
+ }) ||
39
+ match.dayPeriod(dateString, {
40
+ width: "narrow",
41
+ context: "formatting",
42
+ })
43
+ );
44
+ }
45
+ }
46
+
47
+ set(date, _flags, value) {
48
+ date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);
49
+ return date;
50
+ }
51
+
52
+ incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
53
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMParser.d.mts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult } from "../types.js";
4
+ export declare class AMPMParser extends Parser<LocaleDayPeriod> {
5
+ priority: number;
6
+ parse(
7
+ dateString: string,
8
+ token: string,
9
+ match: Match,
10
+ ): ParseResult<LocaleDayPeriod>;
11
+ set<DateType extends Date>(
12
+ date: DateType,
13
+ _flags: ParseFlags,
14
+ value: LocaleDayPeriod,
15
+ ): DateType;
16
+ incompatibleTokens: string[];
17
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMParser.d.ts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult } from "../types.js";
4
+ export declare class AMPMParser extends Parser<LocaleDayPeriod> {
5
+ priority: number;
6
+ parse(
7
+ dateString: string,
8
+ token: string,
9
+ match: Match,
10
+ ): ParseResult<LocaleDayPeriod>;
11
+ set<DateType extends Date>(
12
+ date: DateType,
13
+ _flags: ParseFlags,
14
+ value: LocaleDayPeriod,
15
+ ): DateType;
16
+ incompatibleTokens: string[];
17
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.AMPMParser = void 0;
3
+ var _Parser = require("../Parser.js");
4
+
5
+ var _utils = require("../utils.js");
6
+
7
+ class AMPMParser extends _Parser.Parser {
8
+ priority = 80;
9
+
10
+ parse(dateString, token, match) {
11
+ switch (token) {
12
+ case "a":
13
+ case "aa":
14
+ case "aaa":
15
+ return (
16
+ match.dayPeriod(dateString, {
17
+ width: "abbreviated",
18
+ context: "formatting",
19
+ }) ||
20
+ match.dayPeriod(dateString, {
21
+ width: "narrow",
22
+ context: "formatting",
23
+ })
24
+ );
25
+
26
+ case "aaaaa":
27
+ return match.dayPeriod(dateString, {
28
+ width: "narrow",
29
+ context: "formatting",
30
+ });
31
+ case "aaaa":
32
+ default:
33
+ return (
34
+ match.dayPeriod(dateString, {
35
+ width: "wide",
36
+ context: "formatting",
37
+ }) ||
38
+ match.dayPeriod(dateString, {
39
+ width: "abbreviated",
40
+ context: "formatting",
41
+ }) ||
42
+ match.dayPeriod(dateString, {
43
+ width: "narrow",
44
+ context: "formatting",
45
+ })
46
+ );
47
+ }
48
+ }
49
+
50
+ set(date, _flags, value) {
51
+ date.setHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0);
52
+ return date;
53
+ }
54
+
55
+ incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
56
+ }
57
+ exports.AMPMParser = AMPMParser;
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/AMPMParser.mjs ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { Parser } from "../Parser.mjs";
2
+ import { dayPeriodEnumToHours } from "../utils.mjs";
3
+
4
+ export class AMPMParser extends Parser {
5
+ priority = 80;
6
+
7
+ parse(dateString, token, match) {
8
+ switch (token) {
9
+ case "a":
10
+ case "aa":
11
+ case "aaa":
12
+ return (
13
+ match.dayPeriod(dateString, {
14
+ width: "abbreviated",
15
+ context: "formatting",
16
+ }) ||
17
+ match.dayPeriod(dateString, {
18
+ width: "narrow",
19
+ context: "formatting",
20
+ })
21
+ );
22
+
23
+ case "aaaaa":
24
+ return match.dayPeriod(dateString, {
25
+ width: "narrow",
26
+ context: "formatting",
27
+ });
28
+ case "aaaa":
29
+ default:
30
+ return (
31
+ match.dayPeriod(dateString, {
32
+ width: "wide",
33
+ context: "formatting",
34
+ }) ||
35
+ match.dayPeriod(dateString, {
36
+ width: "abbreviated",
37
+ context: "formatting",
38
+ }) ||
39
+ match.dayPeriod(dateString, {
40
+ width: "narrow",
41
+ context: "formatting",
42
+ })
43
+ );
44
+ }
45
+ }
46
+
47
+ set(date, _flags, value) {
48
+ date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);
49
+ return date;
50
+ }
51
+
52
+ incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
53
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DateParser.d.mts ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult } from "../types.js";
4
+ export declare class DateParser extends Parser<number> {
5
+ priority: number;
6
+ subPriority: number;
7
+ parse(dateString: string, token: string, match: Match): ParseResult<number>;
8
+ validate<DateType extends Date>(date: DateType, value: number): boolean;
9
+ set<DateType extends Date>(
10
+ date: DateType,
11
+ _flags: ParseFlags,
12
+ value: number,
13
+ ): DateType;
14
+ incompatibleTokens: string[];
15
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DateParser.d.ts ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult } from "../types.js";
4
+ export declare class DateParser extends Parser<number> {
5
+ priority: number;
6
+ subPriority: number;
7
+ parse(dateString: string, token: string, match: Match): ParseResult<number>;
8
+ validate<DateType extends Date>(date: DateType, value: number): boolean;
9
+ set<DateType extends Date>(
10
+ date: DateType,
11
+ _flags: ParseFlags,
12
+ value: number,
13
+ ): DateType;
14
+ incompatibleTokens: string[];
15
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DateParser.js ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.DateParser = void 0;
3
+ var _constants = require("../constants.js");
4
+ var _Parser = require("../Parser.js");
5
+
6
+ var _utils = require("../utils.js");
7
+
8
+ const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
9
+ const DAYS_IN_MONTH_LEAP_YEAR = [
10
+ 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
11
+ ];
12
+
13
+ // Day of the month
14
+ class DateParser extends _Parser.Parser {
15
+ priority = 90;
16
+ subPriority = 1;
17
+
18
+ parse(dateString, token, match) {
19
+ switch (token) {
20
+ case "d":
21
+ return (0, _utils.parseNumericPattern)(
22
+ _constants.numericPatterns.date,
23
+ dateString,
24
+ );
25
+ case "do":
26
+ return match.ordinalNumber(dateString, { unit: "date" });
27
+ default:
28
+ return (0, _utils.parseNDigits)(token.length, dateString);
29
+ }
30
+ }
31
+
32
+ validate(date, value) {
33
+ const year = date.getFullYear();
34
+ const isLeapYear = (0, _utils.isLeapYearIndex)(year);
35
+ const month = date.getMonth();
36
+ if (isLeapYear) {
37
+ return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
38
+ } else {
39
+ return value >= 1 && value <= DAYS_IN_MONTH[month];
40
+ }
41
+ }
42
+
43
+ set(date, _flags, value) {
44
+ date.setDate(value);
45
+ date.setHours(0, 0, 0, 0);
46
+ return date;
47
+ }
48
+
49
+ incompatibleTokens = [
50
+ "Y",
51
+ "R",
52
+ "q",
53
+ "Q",
54
+ "w",
55
+ "I",
56
+ "D",
57
+ "i",
58
+ "e",
59
+ "c",
60
+ "t",
61
+ "T",
62
+ ];
63
+ }
64
+ exports.DateParser = DateParser;
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DateParser.mjs ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { numericPatterns } from "../constants.mjs";
2
+ import { Parser } from "../Parser.mjs";
3
+ import {
4
+ isLeapYearIndex,
5
+ parseNDigits,
6
+ parseNumericPattern,
7
+ } from "../utils.mjs";
8
+
9
+ const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
10
+ const DAYS_IN_MONTH_LEAP_YEAR = [
11
+ 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
12
+ ];
13
+
14
+ // Day of the month
15
+ export class DateParser extends Parser {
16
+ priority = 90;
17
+ subPriority = 1;
18
+
19
+ parse(dateString, token, match) {
20
+ switch (token) {
21
+ case "d":
22
+ return parseNumericPattern(numericPatterns.date, dateString);
23
+ case "do":
24
+ return match.ordinalNumber(dateString, { unit: "date" });
25
+ default:
26
+ return parseNDigits(token.length, dateString);
27
+ }
28
+ }
29
+
30
+ validate(date, value) {
31
+ const year = date.getFullYear();
32
+ const isLeapYear = isLeapYearIndex(year);
33
+ const month = date.getMonth();
34
+ if (isLeapYear) {
35
+ return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
36
+ } else {
37
+ return value >= 1 && value <= DAYS_IN_MONTH[month];
38
+ }
39
+ }
40
+
41
+ set(date, _flags, value) {
42
+ date.setDate(value);
43
+ date.setHours(0, 0, 0, 0);
44
+ return date;
45
+ }
46
+
47
+ incompatibleTokens = [
48
+ "Y",
49
+ "R",
50
+ "q",
51
+ "Q",
52
+ "w",
53
+ "I",
54
+ "D",
55
+ "i",
56
+ "e",
57
+ "c",
58
+ "t",
59
+ "T",
60
+ ];
61
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.d.mts ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult } from "../types.js";
4
+ export declare class DayOfYearParser extends Parser<number> {
5
+ priority: number;
6
+ subpriority: number;
7
+ parse(dateString: string, token: string, match: Match): ParseResult<number>;
8
+ validate<DateType extends Date>(date: DateType, value: number): boolean;
9
+ set<DateType extends Date>(
10
+ date: DateType,
11
+ _flags: ParseFlags,
12
+ value: number,
13
+ ): DateType;
14
+ incompatibleTokens: string[];
15
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.d.ts ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult } from "../types.js";
4
+ export declare class DayOfYearParser extends Parser<number> {
5
+ priority: number;
6
+ subpriority: number;
7
+ parse(dateString: string, token: string, match: Match): ParseResult<number>;
8
+ validate<DateType extends Date>(date: DateType, value: number): boolean;
9
+ set<DateType extends Date>(
10
+ date: DateType,
11
+ _flags: ParseFlags,
12
+ value: number,
13
+ ): DateType;
14
+ incompatibleTokens: string[];
15
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.DayOfYearParser = void 0;
3
+ var _constants = require("../constants.js");
4
+ var _Parser = require("../Parser.js");
5
+
6
+ var _utils = require("../utils.js");
7
+
8
+ class DayOfYearParser extends _Parser.Parser {
9
+ priority = 90;
10
+
11
+ subpriority = 1;
12
+
13
+ parse(dateString, token, match) {
14
+ switch (token) {
15
+ case "D":
16
+ case "DD":
17
+ return (0, _utils.parseNumericPattern)(
18
+ _constants.numericPatterns.dayOfYear,
19
+ dateString,
20
+ );
21
+ case "Do":
22
+ return match.ordinalNumber(dateString, { unit: "date" });
23
+ default:
24
+ return (0, _utils.parseNDigits)(token.length, dateString);
25
+ }
26
+ }
27
+
28
+ validate(date, value) {
29
+ const year = date.getFullYear();
30
+ const isLeapYear = (0, _utils.isLeapYearIndex)(year);
31
+ if (isLeapYear) {
32
+ return value >= 1 && value <= 366;
33
+ } else {
34
+ return value >= 1 && value <= 365;
35
+ }
36
+ }
37
+
38
+ set(date, _flags, value) {
39
+ date.setMonth(0, value);
40
+ date.setHours(0, 0, 0, 0);
41
+ return date;
42
+ }
43
+
44
+ incompatibleTokens = [
45
+ "Y",
46
+ "R",
47
+ "q",
48
+ "Q",
49
+ "M",
50
+ "L",
51
+ "w",
52
+ "I",
53
+ "d",
54
+ "E",
55
+ "i",
56
+ "e",
57
+ "c",
58
+ "t",
59
+ "T",
60
+ ];
61
+ }
62
+ exports.DayOfYearParser = DayOfYearParser;
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.mjs ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { numericPatterns } from "../constants.mjs";
2
+ import { Parser } from "../Parser.mjs";
3
+ import {
4
+ isLeapYearIndex,
5
+ parseNDigits,
6
+ parseNumericPattern,
7
+ } from "../utils.mjs";
8
+
9
+ export class DayOfYearParser extends Parser {
10
+ priority = 90;
11
+
12
+ subpriority = 1;
13
+
14
+ parse(dateString, token, match) {
15
+ switch (token) {
16
+ case "D":
17
+ case "DD":
18
+ return parseNumericPattern(numericPatterns.dayOfYear, dateString);
19
+ case "Do":
20
+ return match.ordinalNumber(dateString, { unit: "date" });
21
+ default:
22
+ return parseNDigits(token.length, dateString);
23
+ }
24
+ }
25
+
26
+ validate(date, value) {
27
+ const year = date.getFullYear();
28
+ const isLeapYear = isLeapYearIndex(year);
29
+ if (isLeapYear) {
30
+ return value >= 1 && value <= 366;
31
+ } else {
32
+ return value >= 1 && value <= 365;
33
+ }
34
+ }
35
+
36
+ set(date, _flags, value) {
37
+ date.setMonth(0, value);
38
+ date.setHours(0, 0, 0, 0);
39
+ return date;
40
+ }
41
+
42
+ incompatibleTokens = [
43
+ "Y",
44
+ "R",
45
+ "q",
46
+ "Q",
47
+ "M",
48
+ "L",
49
+ "w",
50
+ "I",
51
+ "d",
52
+ "E",
53
+ "i",
54
+ "e",
55
+ "c",
56
+ "t",
57
+ "T",
58
+ ];
59
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayParser.d.mts ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
4
+ export declare class DayParser extends Parser<number> {
5
+ priority: number;
6
+ parse(dateString: string, token: string, match: Match): ParseResult<number>;
7
+ validate<DateType extends Date>(_date: DateType, value: number): boolean;
8
+ set<DateType extends Date>(
9
+ date: DateType,
10
+ _flags: ParseFlags,
11
+ value: number,
12
+ options: ParserOptions,
13
+ ): DateType;
14
+ incompatibleTokens: string[];
15
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayParser.d.ts ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
4
+ export declare class DayParser extends Parser<number> {
5
+ priority: number;
6
+ parse(dateString: string, token: string, match: Match): ParseResult<number>;
7
+ validate<DateType extends Date>(_date: DateType, value: number): boolean;
8
+ set<DateType extends Date>(
9
+ date: DateType,
10
+ _flags: ParseFlags,
11
+ value: number,
12
+ options: ParserOptions,
13
+ ): DateType;
14
+ incompatibleTokens: string[];
15
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayParser.js ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.DayParser = void 0;
3
+ var _index = require("../../../setDay.js");
4
+ var _Parser = require("../Parser.js");
5
+
6
+ // Day of week
7
+ class DayParser extends _Parser.Parser {
8
+ priority = 90;
9
+
10
+ parse(dateString, token, match) {
11
+ switch (token) {
12
+ // Tue
13
+ case "E":
14
+ case "EE":
15
+ case "EEE":
16
+ return (
17
+ match.day(dateString, {
18
+ width: "abbreviated",
19
+ context: "formatting",
20
+ }) ||
21
+ match.day(dateString, { width: "short", context: "formatting" }) ||
22
+ match.day(dateString, { width: "narrow", context: "formatting" })
23
+ );
24
+
25
+ // T
26
+ case "EEEEE":
27
+ return match.day(dateString, {
28
+ width: "narrow",
29
+ context: "formatting",
30
+ });
31
+ // Tu
32
+ case "EEEEEE":
33
+ return (
34
+ match.day(dateString, { width: "short", context: "formatting" }) ||
35
+ match.day(dateString, { width: "narrow", context: "formatting" })
36
+ );
37
+
38
+ // Tuesday
39
+ case "EEEE":
40
+ default:
41
+ return (
42
+ match.day(dateString, { width: "wide", context: "formatting" }) ||
43
+ match.day(dateString, {
44
+ width: "abbreviated",
45
+ context: "formatting",
46
+ }) ||
47
+ match.day(dateString, { width: "short", context: "formatting" }) ||
48
+ match.day(dateString, { width: "narrow", context: "formatting" })
49
+ );
50
+ }
51
+ }
52
+
53
+ validate(_date, value) {
54
+ return value >= 0 && value <= 6;
55
+ }
56
+
57
+ set(date, _flags, value, options) {
58
+ date = (0, _index.setDay)(date, value, options);
59
+ date.setHours(0, 0, 0, 0);
60
+ return date;
61
+ }
62
+
63
+ incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
64
+ }
65
+ exports.DayParser = DayParser;
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayParser.mjs ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { setDay } from "../../../setDay.mjs";
2
+ import { Parser } from "../Parser.mjs";
3
+
4
+ // Day of week
5
+ export class DayParser extends Parser {
6
+ priority = 90;
7
+
8
+ parse(dateString, token, match) {
9
+ switch (token) {
10
+ // Tue
11
+ case "E":
12
+ case "EE":
13
+ case "EEE":
14
+ return (
15
+ match.day(dateString, {
16
+ width: "abbreviated",
17
+ context: "formatting",
18
+ }) ||
19
+ match.day(dateString, { width: "short", context: "formatting" }) ||
20
+ match.day(dateString, { width: "narrow", context: "formatting" })
21
+ );
22
+
23
+ // T
24
+ case "EEEEE":
25
+ return match.day(dateString, {
26
+ width: "narrow",
27
+ context: "formatting",
28
+ });
29
+ // Tu
30
+ case "EEEEEE":
31
+ return (
32
+ match.day(dateString, { width: "short", context: "formatting" }) ||
33
+ match.day(dateString, { width: "narrow", context: "formatting" })
34
+ );
35
+
36
+ // Tuesday
37
+ case "EEEE":
38
+ default:
39
+ return (
40
+ match.day(dateString, { width: "wide", context: "formatting" }) ||
41
+ match.day(dateString, {
42
+ width: "abbreviated",
43
+ context: "formatting",
44
+ }) ||
45
+ match.day(dateString, { width: "short", context: "formatting" }) ||
46
+ match.day(dateString, { width: "narrow", context: "formatting" })
47
+ );
48
+ }
49
+ }
50
+
51
+ validate(_date, value) {
52
+ return value >= 0 && value <= 6;
53
+ }
54
+
55
+ set(date, _flags, value, options) {
56
+ date = setDay(date, value, options);
57
+ date.setHours(0, 0, 0, 0);
58
+ return date;
59
+ }
60
+
61
+ incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
62
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.d.mts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult } from "../types.js";
4
+ export declare class DayPeriodParser extends Parser<LocaleDayPeriod> {
5
+ priority: number;
6
+ parse(
7
+ dateString: string,
8
+ token: string,
9
+ match: Match,
10
+ ): ParseResult<LocaleDayPeriod>;
11
+ set<DateType extends Date>(
12
+ date: DateType,
13
+ _flags: ParseFlags,
14
+ value: LocaleDayPeriod,
15
+ ): DateType;
16
+ incompatibleTokens: string[];
17
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.d.ts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
2
+ import { Parser } from "../Parser.js";
3
+ import type { ParseFlags, ParseResult } from "../types.js";
4
+ export declare class DayPeriodParser extends Parser<LocaleDayPeriod> {
5
+ priority: number;
6
+ parse(
7
+ dateString: string,
8
+ token: string,
9
+ match: Match,
10
+ ): ParseResult<LocaleDayPeriod>;
11
+ set<DateType extends Date>(
12
+ date: DateType,
13
+ _flags: ParseFlags,
14
+ value: LocaleDayPeriod,
15
+ ): DateType;
16
+ incompatibleTokens: string[];
17
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ exports.DayPeriodParser = void 0;
3
+ var _Parser = require("../Parser.js");
4
+
5
+ var _utils = require("../utils.js");
6
+
7
+ // in the morning, in the afternoon, in the evening, at night
8
+ class DayPeriodParser extends _Parser.Parser {
9
+ priority = 80;
10
+
11
+ parse(dateString, token, match) {
12
+ switch (token) {
13
+ case "B":
14
+ case "BB":
15
+ case "BBB":
16
+ return (
17
+ match.dayPeriod(dateString, {
18
+ width: "abbreviated",
19
+ context: "formatting",
20
+ }) ||
21
+ match.dayPeriod(dateString, {
22
+ width: "narrow",
23
+ context: "formatting",
24
+ })
25
+ );
26
+
27
+ case "BBBBB":
28
+ return match.dayPeriod(dateString, {
29
+ width: "narrow",
30
+ context: "formatting",
31
+ });
32
+ case "BBBB":
33
+ default:
34
+ return (
35
+ match.dayPeriod(dateString, {
36
+ width: "wide",
37
+ context: "formatting",
38
+ }) ||
39
+ match.dayPeriod(dateString, {
40
+ width: "abbreviated",
41
+ context: "formatting",
42
+ }) ||
43
+ match.dayPeriod(dateString, {
44
+ width: "narrow",
45
+ context: "formatting",
46
+ })
47
+ );
48
+ }
49
+ }
50
+
51
+ set(date, _flags, value) {
52
+ date.setHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0);
53
+ return date;
54
+ }
55
+
56
+ incompatibleTokens = ["a", "b", "t", "T"];
57
+ }
58
+ exports.DayPeriodParser = DayPeriodParser;
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.mjs ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { Parser } from "../Parser.mjs";
2
+ import { dayPeriodEnumToHours } from "../utils.mjs";
3
+
4
+ // in the morning, in the afternoon, in the evening, at night
5
+ export class DayPeriodParser extends Parser {
6
+ priority = 80;
7
+
8
+ parse(dateString, token, match) {
9
+ switch (token) {
10
+ case "B":
11
+ case "BB":
12
+ case "BBB":
13
+ return (
14
+ match.dayPeriod(dateString, {
15
+ width: "abbreviated",
16
+ context: "formatting",
17
+ }) ||
18
+ match.dayPeriod(dateString, {
19
+ width: "narrow",
20
+ context: "formatting",
21
+ })
22
+ );
23
+
24
+ case "BBBBB":
25
+ return match.dayPeriod(dateString, {
26
+ width: "narrow",
27
+ context: "formatting",
28
+ });
29
+ case "BBBB":
30
+ default:
31
+ return (
32
+ match.dayPeriod(dateString, {
33
+ width: "wide",
34
+ context: "formatting",
35
+ }) ||
36
+ match.dayPeriod(dateString, {
37
+ width: "abbreviated",
38
+ context: "formatting",
39
+ }) ||
40
+ match.dayPeriod(dateString, {
41
+ width: "narrow",
42
+ context: "formatting",
43
+ })
44
+ );
45
+ }
46
+ }
47
+
48
+ set(date, _flags, value) {
49
+ date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);
50
+ return date;
51
+ }
52
+
53
+ incompatibleTokens = ["a", "b", "t", "T"];
54
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/EraParser.d.mts ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { Match } from "../../../locale/types.js";
2
+ import type { Era } from "../../../types.js";
3
+ import { Parser } from "../Parser.js";
4
+ import type { ParseFlags, ParseResult } from "../types.js";
5
+ export declare class EraParser extends Parser<number> {
6
+ priority: number;
7
+ parse(dateString: string, token: string, match: Match): ParseResult<Era>;
8
+ set<DateType extends Date>(
9
+ date: DateType,
10
+ flags: ParseFlags,
11
+ value: number,
12
+ ): DateType;
13
+ incompatibleTokens: string[];
14
+ }
workers1/auto3d/node_modules/date-fns/parse/_lib/parsers/EraParser.d.ts ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { Match } from "../../../locale/types.js";
2
+ import type { Era } from "../../../types.js";
3
+ import { Parser } from "../Parser.js";
4
+ import type { ParseFlags, ParseResult } from "../types.js";
5
+ export declare class EraParser extends Parser<number> {
6
+ priority: number;
7
+ parse(dateString: string, token: string, match: Match): ParseResult<Era>;
8
+ set<DateType extends Date>(
9
+ date: DateType,
10
+ flags: ParseFlags,
11
+ value: number,
12
+ ): DateType;
13
+ incompatibleTokens: string[];
14
+ }