umaki 0.6.2 → 0.7.0

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.
Files changed (141) hide show
  1. package/README.md +22 -0
  2. package/dist/LICENSE.txt +1 -1
  3. package/dist/_virtual/_commonjsHelpers.cjs.js +0 -13
  4. package/dist/_virtual/_commonjsHelpers.es.js +0 -13
  5. package/dist/_virtual/isBetween.cjs.js +6 -14
  6. package/dist/_virtual/isBetween.cjs2.js +4 -0
  7. package/dist/_virtual/isBetween.es.js +5 -13
  8. package/dist/_virtual/isBetween.es2.js +4 -0
  9. package/dist/_virtual/timezone.cjs.js +6 -14
  10. package/dist/_virtual/timezone.cjs2.js +4 -0
  11. package/dist/_virtual/timezone.es.js +5 -13
  12. package/dist/_virtual/timezone.es2.js +4 -0
  13. package/dist/_virtual/utc.cjs.js +6 -14
  14. package/dist/_virtual/utc.cjs2.js +4 -0
  15. package/dist/_virtual/utc.es.js +5 -13
  16. package/dist/_virtual/utc.es2.js +4 -0
  17. package/dist/index.cjs.js +6 -15
  18. package/dist/index.es.js +4 -13
  19. package/dist/libs/config/defaultConfig.cjs.js +0 -11
  20. package/dist/libs/config/defaultConfig.es.js +0 -11
  21. package/dist/libs/config/getConfig.cjs.js +0 -11
  22. package/dist/libs/config/getConfig.es.js +0 -11
  23. package/dist/libs/config/index.d.ts +1 -1
  24. package/dist/libs/config/setConfig.cjs.js +0 -11
  25. package/dist/libs/config/setConfig.es.js +0 -11
  26. package/dist/libs/control/bgScrollStop.cjs.js +0 -11
  27. package/dist/libs/control/bgScrollStop.es.js +0 -11
  28. package/dist/libs/control/pd.cjs.js +0 -11
  29. package/dist/libs/control/pd.es.js +0 -11
  30. package/dist/libs/control/scrollToHash.cjs.js +0 -11
  31. package/dist/libs/control/scrollToHash.es.js +0 -11
  32. package/dist/libs/control/videoPlayControl.cjs.js +0 -11
  33. package/dist/libs/control/videoPlayControl.es.js +0 -11
  34. package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +2 -13
  35. package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +2 -13
  36. package/dist/libs/convert/jsonStringToJsonObject.cjs.js +0 -11
  37. package/dist/libs/convert/jsonStringToJsonObject.es.js +0 -11
  38. package/dist/libs/eventControl/debounce.cjs.js +0 -11
  39. package/dist/libs/eventControl/debounce.es.js +0 -11
  40. package/dist/libs/eventControl/throttle.cjs.js +0 -11
  41. package/dist/libs/eventControl/throttle.es.js +0 -11
  42. package/dist/libs/get/getAspectRatio.cjs.js +0 -11
  43. package/dist/libs/get/getAspectRatio.es.js +0 -11
  44. package/dist/libs/get/getClassNames.cjs.js +0 -11
  45. package/dist/libs/get/getClassNames.es.js +0 -11
  46. package/dist/libs/get/getDocumentHeight.cjs.js +0 -11
  47. package/dist/libs/get/getDocumentHeight.es.js +0 -11
  48. package/dist/libs/get/getEventPaths.cjs.js +1 -13
  49. package/dist/libs/get/getEventPaths.es.js +1 -13
  50. package/dist/libs/get/getGcd.cjs.js +0 -11
  51. package/dist/libs/get/getGcd.es.js +0 -11
  52. package/dist/libs/get/getGravatarUrl.cjs.js +9 -0
  53. package/dist/libs/get/getGravatarUrl.d.ts +12 -0
  54. package/dist/libs/get/getGravatarUrl.es.js +9 -0
  55. package/dist/libs/get/getGravatarUrl.test.d.ts +1 -0
  56. package/dist/libs/get/getOrientation.cjs.js +0 -11
  57. package/dist/libs/get/getOrientation.es.js +0 -11
  58. package/dist/libs/get/getParentList.cjs.js +0 -11
  59. package/dist/libs/get/getParentList.es.js +0 -11
  60. package/dist/libs/get/getQueryParams.cjs.js +0 -11
  61. package/dist/libs/get/getQueryParams.es.js +0 -11
  62. package/dist/libs/get/getRem.cjs.js +4 -13
  63. package/dist/libs/get/getRem.d.ts +1 -0
  64. package/dist/libs/get/getRem.es.js +4 -13
  65. package/dist/libs/get/getScrollbarWidth.cjs.js +0 -11
  66. package/dist/libs/get/getScrollbarWidth.es.js +0 -11
  67. package/dist/libs/get/getSessionStorage.cjs.js +0 -11
  68. package/dist/libs/get/getSessionStorage.es.js +0 -11
  69. package/dist/libs/get/getStringLength.cjs.js +0 -11
  70. package/dist/libs/get/getStringLength.es.js +0 -11
  71. package/dist/libs/get/getStylePropertyValue.cjs.js +0 -11
  72. package/dist/libs/get/getStylePropertyValue.es.js +0 -11
  73. package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -12
  74. package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -12
  75. package/dist/libs/get/getUaData.cjs.js +1 -12
  76. package/dist/libs/get/getUaData.es.js +1 -12
  77. package/dist/libs/get/index.d.ts +1 -0
  78. package/dist/libs/is/checkDeviceSize.cjs.js +0 -11
  79. package/dist/libs/is/checkDeviceSize.es.js +0 -11
  80. package/dist/libs/is/index.d.ts +1 -1
  81. package/dist/libs/is/isAfterDateTime.cjs.js +0 -11
  82. package/dist/libs/is/isAfterDateTime.es.js +0 -11
  83. package/dist/libs/is/isBetweenDateTime.cjs.js +1 -12
  84. package/dist/libs/is/isBetweenDateTime.es.js +1 -12
  85. package/dist/libs/is/isExistAllElements.cjs.js +0 -11
  86. package/dist/libs/is/isExistAllElements.es.js +0 -11
  87. package/dist/libs/is/isIpad.cjs.js +0 -11
  88. package/dist/libs/is/isIpad.es.js +0 -11
  89. package/dist/libs/is/isKeyExists.cjs.js +1 -12
  90. package/dist/libs/is/isKeyExists.es.js +1 -12
  91. package/dist/libs/is/isSafari.cjs.js +0 -11
  92. package/dist/libs/is/isSafari.es.js +0 -11
  93. package/dist/libs/is/isScrollable.cjs.js +0 -11
  94. package/dist/libs/is/isScrollable.es.js +0 -11
  95. package/dist/libs/is/isTouchSupport.cjs.js +2 -13
  96. package/dist/libs/is/isTouchSupport.es.js +2 -13
  97. package/dist/libs/remove/removeAllHtmlTags.cjs.js +0 -11
  98. package/dist/libs/remove/removeAllHtmlTags.es.js +0 -11
  99. package/dist/libs/remove/removeAttribute.cjs.js +0 -11
  100. package/dist/libs/remove/removeAttribute.es.js +0 -11
  101. package/dist/libs/remove/removeSessionStorage.cjs.js +0 -11
  102. package/dist/libs/remove/removeSessionStorage.es.js +0 -11
  103. package/dist/libs/remove/removeStylePropertyValue.cjs.js +0 -11
  104. package/dist/libs/remove/removeStylePropertyValue.es.js +0 -11
  105. package/dist/libs/security/htmlSanitize.cjs.js +0 -11
  106. package/dist/libs/security/htmlSanitize.es.js +0 -11
  107. package/dist/libs/set/set100vh.cjs.js +0 -11
  108. package/dist/libs/set/set100vh.es.js +0 -11
  109. package/dist/libs/set/set100vw.cjs.js +0 -11
  110. package/dist/libs/set/set100vw.es.js +0 -11
  111. package/dist/libs/set/setAttribute.cjs.js +0 -11
  112. package/dist/libs/set/setAttribute.es.js +0 -11
  113. package/dist/libs/set/setScrollPositionToCenter.cjs.js +0 -11
  114. package/dist/libs/set/setScrollPositionToCenter.es.js +0 -11
  115. package/dist/libs/set/setSessionStorage.cjs.js +0 -11
  116. package/dist/libs/set/setSessionStorage.es.js +0 -11
  117. package/dist/libs/set/setStylePropertyValue.cjs.js +0 -11
  118. package/dist/libs/set/setStylePropertyValue.es.js +0 -11
  119. package/dist/libs/to/toBoolean.cjs.js +0 -11
  120. package/dist/libs/to/toBoolean.es.js +0 -11
  121. package/dist/libs/to/toPositiveNumber.cjs.js +0 -11
  122. package/dist/libs/to/toPositiveNumber.es.js +0 -11
  123. package/dist/libs/transform/wrapTextWithSpans.cjs.js +0 -11
  124. package/dist/libs/transform/wrapTextWithSpans.es.js +0 -11
  125. package/dist/libs/wait/sleep.cjs.js +0 -11
  126. package/dist/libs/wait/sleep.es.js +0 -11
  127. package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +0 -11
  128. package/dist/libs/wait/waitForAllMediaLoaded.es.js +0 -11
  129. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.cjs.js +23 -0
  130. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.es.js +23 -0
  131. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.cjs.js +71 -0
  132. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.es.js +71 -0
  133. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.cjs.js +83 -0
  134. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.es.js +83 -0
  135. package/package.json +20 -18
  136. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.cjs.js +0 -30
  137. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.es.js +0 -30
  138. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.cjs.js +0 -78
  139. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.es.js +0 -78
  140. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.cjs.js +0 -91
  141. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.es.js +0 -91
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umaki",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "description": "A utility that is often used in web production.",
5
5
  "author": "TsubasaHiga",
6
6
  "homepage": "https://github.com/TsubasaHiga/umaki",
@@ -9,7 +9,7 @@
9
9
  "utility",
10
10
  "library"
11
11
  ],
12
- "packageManager": "pnpm@8.15.4",
12
+ "packageManager": "pnpm@10.24.0",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "https://github.com/TsubasaHiga/umaki"
@@ -39,27 +39,29 @@
39
39
  "format": "biome format"
40
40
  },
41
41
  "dependencies": {
42
- "dayjs": "^1.11.13",
42
+ "@types/md5": "^2.3.6",
43
+ "dayjs": "^1.11.19",
43
44
  "image-size": "^1.1.1",
44
- "isomorphic-dompurify": "^2.23.0",
45
- "query-string": "^9.1.1",
45
+ "isomorphic-dompurify": "^2.33.0",
46
+ "md5": "^2.3.0",
47
+ "query-string": "^9.3.1",
46
48
  "runes2": "^1.1.4",
47
- "store2": "^2.14.3",
49
+ "store2": "^2.14.4",
48
50
  "ua-parser-js": "^1.0.39"
49
51
  },
50
52
  "devDependencies": {
51
- "@biomejs/biome": "1.9.4",
52
- "@types/node": "^22.8.6",
53
+ "@biomejs/biome": "2.3.8",
54
+ "@types/node": "^24.10.1",
53
55
  "@types/ua-parser-js": "^0.7.39",
54
- "@vitest/coverage-v8": "2.1.4",
55
- "happy-dom": "^15.7.4",
56
- "jsdom": "^26.1.0",
57
- "rollup-plugin-license": "^3.5.3",
58
- "rollup-plugin-visualizer": "^5.12.0",
59
- "typescript": "~5.6.3",
60
- "vite": "^5.4.10",
61
- "vite-plugin-dts": "^4.3.0",
62
- "vite-tsconfig-paths": "^5.0.1",
63
- "vitest": "^2.1.4"
56
+ "@vitest/coverage-v8": "4.0.15",
57
+ "happy-dom": "^20.0.11",
58
+ "jsdom": "^26.0.0",
59
+ "rollup-plugin-license": "^3.6.0",
60
+ "rollup-plugin-visualizer": "^6.0.5",
61
+ "typescript": "~5.9.3",
62
+ "vite": "^7.2.6",
63
+ "vite-plugin-dts": "^4.5.4",
64
+ "vite-tsconfig-paths": "^5.1.4",
65
+ "vitest": "^4.0.15"
64
66
  }
65
67
  }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
14
- const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs.js");
15
- const isBetween$1 = require("../../../../../../_virtual/isBetween.cjs.js");
16
- (function(module2, exports2) {
17
- !function(e, i) {
18
- module2.exports = i();
19
- }(_commonjsHelpers.commonjsGlobal, function() {
20
- return function(e, i, t) {
21
- i.prototype.isBetween = function(e2, i2, s, f) {
22
- var n = t(e2), o = t(i2), r = "(" === (f = f || "()")[0], u = ")" === f[1];
23
- return (r ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s)) || (r ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s));
24
- };
25
- };
26
- });
27
- })(isBetween$1.__module);
28
- var isBetweenExports = isBetween$1.__module.exports;
29
- const isBetween = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(isBetweenExports);
30
- exports.default = isBetween;
@@ -1,30 +0,0 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
- import { commonjsGlobal, getDefaultExportFromCjs } from "../../../../../../_virtual/_commonjsHelpers.es.js";
13
- import { __module as isBetween$1 } from "../../../../../../_virtual/isBetween.es.js";
14
- (function(module, exports) {
15
- !function(e, i) {
16
- module.exports = i();
17
- }(commonjsGlobal, function() {
18
- return function(e, i, t) {
19
- i.prototype.isBetween = function(e2, i2, s, f) {
20
- var n = t(e2), o = t(i2), r = "(" === (f = f || "()")[0], u = ")" === f[1];
21
- return (r ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s)) || (r ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s));
22
- };
23
- };
24
- });
25
- })(isBetween$1);
26
- var isBetweenExports = isBetween$1.exports;
27
- const isBetween = /* @__PURE__ */ getDefaultExportFromCjs(isBetweenExports);
28
- export {
29
- isBetween as default
30
- };
@@ -1,78 +0,0 @@
1
- "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
14
- const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs.js");
15
- const timezone$1 = require("../../../../../../_virtual/timezone.cjs.js");
16
- (function(module2, exports2) {
17
- !function(t, e) {
18
- module2.exports = e();
19
- }(_commonjsHelpers.commonjsGlobal, function() {
20
- var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
21
- return function(n, i, o) {
22
- var r, a = function(t2, n2, i2) {
23
- void 0 === i2 && (i2 = {});
24
- var o2 = new Date(t2), r2 = function(t3, n3) {
25
- void 0 === n3 && (n3 = {});
26
- var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
27
- return r3 || (r3 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t3, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e[o3] = r3), r3;
28
- }(n2, i2);
29
- return r2.formatToParts(o2);
30
- }, u = function(e2, n2) {
31
- for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
32
- var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
33
- c >= 0 && (r2[c] = parseInt(m, 10));
34
- }
35
- var d = r2[3], l = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
36
- return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
37
- }, f = i.prototype;
38
- f.tz = function(t2, e2) {
39
- void 0 === t2 && (t2 = r);
40
- var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t2 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
41
- if (!Number(s2)) n2 = this.utcOffset(0, e2);
42
- else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
43
- var m = n2.utcOffset();
44
- n2 = n2.add(i2 - m, "minute");
45
- }
46
- return n2.$x.$timezone = t2, n2;
47
- }, f.offsetName = function(t2) {
48
- var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find(function(t3) {
49
- return "timezonename" === t3.type.toLowerCase();
50
- });
51
- return n2 && n2.value;
52
- };
53
- var s = f.startOf;
54
- f.startOf = function(t2, e2) {
55
- if (!this.$x || !this.$x.$timezone) return s.call(this, t2, e2);
56
- var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
57
- return s.call(n2, t2, e2).tz(this.$x.$timezone, true);
58
- }, o.tz = function(t2, e2, n2) {
59
- var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
60
- if ("string" != typeof t2) return o(t2).tz(a2);
61
- var s2 = function(t3, e3, n3) {
62
- var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
63
- if (e3 === o2) return [i3, e3];
64
- var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
65
- return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
66
- }(o.utc(t2, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
67
- return d.$x.$timezone = a2, d;
68
- }, o.tz.guess = function() {
69
- return Intl.DateTimeFormat().resolvedOptions().timeZone;
70
- }, o.tz.setDefault = function(t2) {
71
- r = t2;
72
- };
73
- };
74
- });
75
- })(timezone$1.__module);
76
- var timezoneExports = timezone$1.__module.exports;
77
- const timezone = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(timezoneExports);
78
- exports.default = timezone;
@@ -1,78 +0,0 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
- import { getDefaultExportFromCjs, commonjsGlobal } from "../../../../../../_virtual/_commonjsHelpers.es.js";
13
- import { __module as timezone$1 } from "../../../../../../_virtual/timezone.es.js";
14
- (function(module, exports) {
15
- !function(t, e) {
16
- module.exports = e();
17
- }(commonjsGlobal, function() {
18
- var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
19
- return function(n, i, o) {
20
- var r, a = function(t2, n2, i2) {
21
- void 0 === i2 && (i2 = {});
22
- var o2 = new Date(t2), r2 = function(t3, n3) {
23
- void 0 === n3 && (n3 = {});
24
- var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
25
- return r3 || (r3 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t3, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e[o3] = r3), r3;
26
- }(n2, i2);
27
- return r2.formatToParts(o2);
28
- }, u = function(e2, n2) {
29
- for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
30
- var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
31
- c >= 0 && (r2[c] = parseInt(m, 10));
32
- }
33
- var d = r2[3], l = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
34
- return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
35
- }, f = i.prototype;
36
- f.tz = function(t2, e2) {
37
- void 0 === t2 && (t2 = r);
38
- var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t2 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
39
- if (!Number(s2)) n2 = this.utcOffset(0, e2);
40
- else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
41
- var m = n2.utcOffset();
42
- n2 = n2.add(i2 - m, "minute");
43
- }
44
- return n2.$x.$timezone = t2, n2;
45
- }, f.offsetName = function(t2) {
46
- var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find(function(t3) {
47
- return "timezonename" === t3.type.toLowerCase();
48
- });
49
- return n2 && n2.value;
50
- };
51
- var s = f.startOf;
52
- f.startOf = function(t2, e2) {
53
- if (!this.$x || !this.$x.$timezone) return s.call(this, t2, e2);
54
- var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
55
- return s.call(n2, t2, e2).tz(this.$x.$timezone, true);
56
- }, o.tz = function(t2, e2, n2) {
57
- var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
58
- if ("string" != typeof t2) return o(t2).tz(a2);
59
- var s2 = function(t3, e3, n3) {
60
- var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
61
- if (e3 === o2) return [i3, e3];
62
- var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
63
- return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
64
- }(o.utc(t2, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
65
- return d.$x.$timezone = a2, d;
66
- }, o.tz.guess = function() {
67
- return Intl.DateTimeFormat().resolvedOptions().timeZone;
68
- }, o.tz.setDefault = function(t2) {
69
- r = t2;
70
- };
71
- };
72
- });
73
- })(timezone$1);
74
- var timezoneExports = timezone$1.exports;
75
- const timezone = /* @__PURE__ */ getDefaultExportFromCjs(timezoneExports);
76
- export {
77
- timezone as default
78
- };
@@ -1,91 +0,0 @@
1
- "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
14
- const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs.js");
15
- const utc$1 = require("../../../../../../_virtual/utc.cjs.js");
16
- (function(module2, exports2) {
17
- !function(t, i) {
18
- module2.exports = i();
19
- }(_commonjsHelpers.commonjsGlobal, function() {
20
- var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
21
- return function(s, f, n) {
22
- var u = f.prototype;
23
- n.utc = function(t2) {
24
- var i2 = { date: t2, utc: true, args: arguments };
25
- return new f(i2);
26
- }, u.utc = function(i2) {
27
- var e2 = n(this.toDate(), { locale: this.$L, utc: true });
28
- return i2 ? e2.add(this.utcOffset(), t) : e2;
29
- }, u.local = function() {
30
- return n(this.toDate(), { locale: this.$L, utc: false });
31
- };
32
- var o = u.parse;
33
- u.parse = function(t2) {
34
- t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
35
- };
36
- var r = u.init;
37
- u.init = function() {
38
- if (this.$u) {
39
- var t2 = this.$d;
40
- this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
41
- } else r.call(this);
42
- };
43
- var a = u.utcOffset;
44
- u.utcOffset = function(s2, f2) {
45
- var n2 = this.$utils().u;
46
- if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
47
- if ("string" == typeof s2 && (s2 = function(t2) {
48
- void 0 === t2 && (t2 = "");
49
- var s3 = t2.match(i);
50
- if (!s3) return null;
51
- var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
52
- return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
53
- }(s2), null === s2)) return this;
54
- var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2, o2 = this;
55
- if (f2) return o2.$offset = u2, o2.$u = 0 === s2, o2;
56
- if (0 !== s2) {
57
- var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
58
- (o2 = this.local().add(u2 + r2, t)).$offset = u2, o2.$x.$localOffset = r2;
59
- } else o2 = this.utc();
60
- return o2;
61
- };
62
- var h = u.format;
63
- u.format = function(t2) {
64
- var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
65
- return h.call(this, i2);
66
- }, u.valueOf = function() {
67
- var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
68
- return this.$d.valueOf() - 6e4 * t2;
69
- }, u.isUTC = function() {
70
- return !!this.$u;
71
- }, u.toISOString = function() {
72
- return this.toDate().toISOString();
73
- }, u.toString = function() {
74
- return this.toDate().toUTCString();
75
- };
76
- var l = u.toDate;
77
- u.toDate = function(t2) {
78
- return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
79
- };
80
- var c = u.diff;
81
- u.diff = function(t2, i2, e2) {
82
- if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
83
- var s2 = this.local(), f2 = n(t2).local();
84
- return c.call(s2, f2, i2, e2);
85
- };
86
- };
87
- });
88
- })(utc$1.__module);
89
- var utcExports = utc$1.__module.exports;
90
- const utc = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(utcExports);
91
- exports.default = utc;
@@ -1,91 +0,0 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
- import { getDefaultExportFromCjs, commonjsGlobal } from "../../../../../../_virtual/_commonjsHelpers.es.js";
13
- import { __module as utc$1 } from "../../../../../../_virtual/utc.es.js";
14
- (function(module, exports) {
15
- !function(t, i) {
16
- module.exports = i();
17
- }(commonjsGlobal, function() {
18
- var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
19
- return function(s, f, n) {
20
- var u = f.prototype;
21
- n.utc = function(t2) {
22
- var i2 = { date: t2, utc: true, args: arguments };
23
- return new f(i2);
24
- }, u.utc = function(i2) {
25
- var e2 = n(this.toDate(), { locale: this.$L, utc: true });
26
- return i2 ? e2.add(this.utcOffset(), t) : e2;
27
- }, u.local = function() {
28
- return n(this.toDate(), { locale: this.$L, utc: false });
29
- };
30
- var o = u.parse;
31
- u.parse = function(t2) {
32
- t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
33
- };
34
- var r = u.init;
35
- u.init = function() {
36
- if (this.$u) {
37
- var t2 = this.$d;
38
- this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
39
- } else r.call(this);
40
- };
41
- var a = u.utcOffset;
42
- u.utcOffset = function(s2, f2) {
43
- var n2 = this.$utils().u;
44
- if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
45
- if ("string" == typeof s2 && (s2 = function(t2) {
46
- void 0 === t2 && (t2 = "");
47
- var s3 = t2.match(i);
48
- if (!s3) return null;
49
- var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
50
- return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
51
- }(s2), null === s2)) return this;
52
- var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2, o2 = this;
53
- if (f2) return o2.$offset = u2, o2.$u = 0 === s2, o2;
54
- if (0 !== s2) {
55
- var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
56
- (o2 = this.local().add(u2 + r2, t)).$offset = u2, o2.$x.$localOffset = r2;
57
- } else o2 = this.utc();
58
- return o2;
59
- };
60
- var h = u.format;
61
- u.format = function(t2) {
62
- var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
63
- return h.call(this, i2);
64
- }, u.valueOf = function() {
65
- var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
66
- return this.$d.valueOf() - 6e4 * t2;
67
- }, u.isUTC = function() {
68
- return !!this.$u;
69
- }, u.toISOString = function() {
70
- return this.toDate().toISOString();
71
- }, u.toString = function() {
72
- return this.toDate().toUTCString();
73
- };
74
- var l = u.toDate;
75
- u.toDate = function(t2) {
76
- return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
77
- };
78
- var c = u.diff;
79
- u.diff = function(t2, i2, e2) {
80
- if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
81
- var s2 = this.local(), f2 = n(t2).local();
82
- return c.call(s2, f2, i2, e2);
83
- };
84
- };
85
- });
86
- })(utc$1);
87
- var utcExports = utc$1.exports;
88
- const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
89
- export {
90
- utc as default
91
- };