umaki 0.6.3 → 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 (130) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs.js +0 -13
  2. package/dist/_virtual/_commonjsHelpers.es.js +0 -13
  3. package/dist/_virtual/isBetween.cjs.js +6 -14
  4. package/dist/_virtual/isBetween.cjs2.js +4 -0
  5. package/dist/_virtual/isBetween.es.js +5 -13
  6. package/dist/_virtual/isBetween.es2.js +4 -0
  7. package/dist/_virtual/timezone.cjs.js +6 -14
  8. package/dist/_virtual/timezone.cjs2.js +4 -0
  9. package/dist/_virtual/timezone.es.js +5 -13
  10. package/dist/_virtual/timezone.es2.js +4 -0
  11. package/dist/_virtual/utc.cjs.js +6 -14
  12. package/dist/_virtual/utc.cjs2.js +4 -0
  13. package/dist/_virtual/utc.es.js +5 -13
  14. package/dist/_virtual/utc.es2.js +4 -0
  15. package/dist/index.cjs.js +4 -15
  16. package/dist/index.es.js +2 -13
  17. package/dist/libs/config/defaultConfig.cjs.js +0 -11
  18. package/dist/libs/config/defaultConfig.es.js +0 -11
  19. package/dist/libs/config/getConfig.cjs.js +0 -11
  20. package/dist/libs/config/getConfig.es.js +0 -11
  21. package/dist/libs/config/index.d.ts +1 -1
  22. package/dist/libs/config/setConfig.cjs.js +0 -11
  23. package/dist/libs/config/setConfig.es.js +0 -11
  24. package/dist/libs/control/bgScrollStop.cjs.js +0 -11
  25. package/dist/libs/control/bgScrollStop.es.js +0 -11
  26. package/dist/libs/control/pd.cjs.js +0 -11
  27. package/dist/libs/control/pd.es.js +0 -11
  28. package/dist/libs/control/scrollToHash.cjs.js +0 -11
  29. package/dist/libs/control/scrollToHash.es.js +0 -11
  30. package/dist/libs/control/videoPlayControl.cjs.js +0 -11
  31. package/dist/libs/control/videoPlayControl.es.js +0 -11
  32. package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +2 -13
  33. package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +2 -13
  34. package/dist/libs/convert/jsonStringToJsonObject.cjs.js +0 -11
  35. package/dist/libs/convert/jsonStringToJsonObject.es.js +0 -11
  36. package/dist/libs/eventControl/debounce.cjs.js +0 -11
  37. package/dist/libs/eventControl/debounce.es.js +0 -11
  38. package/dist/libs/eventControl/throttle.cjs.js +0 -11
  39. package/dist/libs/eventControl/throttle.es.js +0 -11
  40. package/dist/libs/get/getAspectRatio.cjs.js +0 -11
  41. package/dist/libs/get/getAspectRatio.es.js +0 -11
  42. package/dist/libs/get/getClassNames.cjs.js +0 -11
  43. package/dist/libs/get/getClassNames.es.js +0 -11
  44. package/dist/libs/get/getDocumentHeight.cjs.js +0 -11
  45. package/dist/libs/get/getDocumentHeight.es.js +0 -11
  46. package/dist/libs/get/getEventPaths.cjs.js +1 -13
  47. package/dist/libs/get/getEventPaths.es.js +1 -13
  48. package/dist/libs/get/getGcd.cjs.js +0 -11
  49. package/dist/libs/get/getGcd.es.js +0 -11
  50. package/dist/libs/get/getGravatarUrl.cjs.js +0 -11
  51. package/dist/libs/get/getGravatarUrl.es.js +0 -11
  52. package/dist/libs/get/getOrientation.cjs.js +0 -11
  53. package/dist/libs/get/getOrientation.es.js +0 -11
  54. package/dist/libs/get/getParentList.cjs.js +0 -11
  55. package/dist/libs/get/getParentList.es.js +0 -11
  56. package/dist/libs/get/getQueryParams.cjs.js +0 -11
  57. package/dist/libs/get/getQueryParams.es.js +0 -11
  58. package/dist/libs/get/getRem.cjs.js +4 -13
  59. package/dist/libs/get/getRem.d.ts +1 -0
  60. package/dist/libs/get/getRem.es.js +4 -13
  61. package/dist/libs/get/getScrollbarWidth.cjs.js +0 -11
  62. package/dist/libs/get/getScrollbarWidth.es.js +0 -11
  63. package/dist/libs/get/getSessionStorage.cjs.js +0 -11
  64. package/dist/libs/get/getSessionStorage.es.js +0 -11
  65. package/dist/libs/get/getStringLength.cjs.js +0 -11
  66. package/dist/libs/get/getStringLength.es.js +0 -11
  67. package/dist/libs/get/getStylePropertyValue.cjs.js +0 -11
  68. package/dist/libs/get/getStylePropertyValue.es.js +0 -11
  69. package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -12
  70. package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -12
  71. package/dist/libs/get/getUaData.cjs.js +1 -12
  72. package/dist/libs/get/getUaData.es.js +1 -12
  73. package/dist/libs/is/checkDeviceSize.cjs.js +0 -11
  74. package/dist/libs/is/checkDeviceSize.es.js +0 -11
  75. package/dist/libs/is/index.d.ts +1 -1
  76. package/dist/libs/is/isAfterDateTime.cjs.js +0 -11
  77. package/dist/libs/is/isAfterDateTime.es.js +0 -11
  78. package/dist/libs/is/isBetweenDateTime.cjs.js +1 -12
  79. package/dist/libs/is/isBetweenDateTime.es.js +1 -12
  80. package/dist/libs/is/isExistAllElements.cjs.js +0 -11
  81. package/dist/libs/is/isExistAllElements.es.js +0 -11
  82. package/dist/libs/is/isIpad.cjs.js +0 -11
  83. package/dist/libs/is/isIpad.es.js +0 -11
  84. package/dist/libs/is/isKeyExists.cjs.js +1 -12
  85. package/dist/libs/is/isKeyExists.es.js +1 -12
  86. package/dist/libs/is/isSafari.cjs.js +0 -11
  87. package/dist/libs/is/isSafari.es.js +0 -11
  88. package/dist/libs/is/isScrollable.cjs.js +0 -11
  89. package/dist/libs/is/isScrollable.es.js +0 -11
  90. package/dist/libs/is/isTouchSupport.cjs.js +2 -13
  91. package/dist/libs/is/isTouchSupport.es.js +2 -13
  92. package/dist/libs/remove/removeAllHtmlTags.cjs.js +0 -11
  93. package/dist/libs/remove/removeAllHtmlTags.es.js +0 -11
  94. package/dist/libs/remove/removeAttribute.cjs.js +0 -11
  95. package/dist/libs/remove/removeAttribute.es.js +0 -11
  96. package/dist/libs/remove/removeSessionStorage.cjs.js +0 -11
  97. package/dist/libs/remove/removeSessionStorage.es.js +0 -11
  98. package/dist/libs/remove/removeStylePropertyValue.cjs.js +0 -11
  99. package/dist/libs/remove/removeStylePropertyValue.es.js +0 -11
  100. package/dist/libs/security/htmlSanitize.cjs.js +0 -11
  101. package/dist/libs/security/htmlSanitize.es.js +0 -11
  102. package/dist/libs/set/set100vh.cjs.js +0 -11
  103. package/dist/libs/set/set100vh.es.js +0 -11
  104. package/dist/libs/set/set100vw.cjs.js +0 -11
  105. package/dist/libs/set/set100vw.es.js +0 -11
  106. package/dist/libs/set/setAttribute.cjs.js +0 -11
  107. package/dist/libs/set/setAttribute.es.js +0 -11
  108. package/dist/libs/set/setScrollPositionToCenter.cjs.js +0 -11
  109. package/dist/libs/set/setScrollPositionToCenter.es.js +0 -11
  110. package/dist/libs/set/setSessionStorage.cjs.js +0 -11
  111. package/dist/libs/set/setSessionStorage.es.js +0 -11
  112. package/dist/libs/set/setStylePropertyValue.cjs.js +0 -11
  113. package/dist/libs/set/setStylePropertyValue.es.js +0 -11
  114. package/dist/libs/to/toBoolean.cjs.js +0 -11
  115. package/dist/libs/to/toBoolean.es.js +0 -11
  116. package/dist/libs/to/toPositiveNumber.cjs.js +0 -11
  117. package/dist/libs/to/toPositiveNumber.es.js +0 -11
  118. package/dist/libs/transform/wrapTextWithSpans.cjs.js +0 -11
  119. package/dist/libs/transform/wrapTextWithSpans.es.js +0 -11
  120. package/dist/libs/wait/sleep.cjs.js +0 -11
  121. package/dist/libs/wait/sleep.es.js +0 -11
  122. package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +0 -11
  123. package/dist/libs/wait/waitForAllMediaLoaded.es.js +0 -11
  124. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.cjs.js +21 -28
  125. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.es.js +20 -27
  126. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.cjs.js +69 -76
  127. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.es.js +68 -75
  128. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.cjs.js +81 -88
  129. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.es.js +80 -87
  130. package/package.json +19 -19
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.3
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
1
  const toBoolean = (booleanStr) => {
13
2
  return booleanStr ? booleanStr.toLowerCase() === "true" : false;
14
3
  };
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.3
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const toPositiveNumber = (n) => Math.abs(n);
15
4
  exports.toPositiveNumber = toPositiveNumber;
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.3
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
1
  const toPositiveNumber = (n) => Math.abs(n);
13
2
  export {
14
3
  toPositiveNumber
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.3
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const wrapTextWithSpans = (element) => {
15
4
  if (!element) return;
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.3
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
1
  const wrapTextWithSpans = (element) => {
13
2
  if (!element) return;
14
3
  if (element.nodeType === Node.TEXT_NODE) {
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.3
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const sleep = (time) => {
15
4
  return new Promise((resolve) => setTimeout(resolve, time * 1e3, "foo"));
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.3
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
1
  const sleep = (time) => {
13
2
  return new Promise((resolve) => setTimeout(resolve, time * 1e3, "foo"));
14
3
  };
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.3
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const waitForAllMediaLoaded = async (firstViewOnly = false) => {
15
4
  if (!document.images) return Promise.resolve(true);
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.3
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
1
  const waitForAllMediaLoaded = async (firstViewOnly = false) => {
13
2
  if (!document.images) return Promise.resolve(true);
14
3
  if (document.images.length === 0) return Promise.resolve(true);
@@ -1,30 +1,23 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.3
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, exports$1) {
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));
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const isBetween$1 = require("../../../../../../_virtual/isBetween.cjs2.js");
4
+ var isBetween = isBetween$1.__module.exports;
5
+ var hasRequiredIsBetween;
6
+ function requireIsBetween() {
7
+ if (hasRequiredIsBetween) return isBetween$1.__module.exports;
8
+ hasRequiredIsBetween = 1;
9
+ (function(module2, exports$1) {
10
+ !(function(e, i) {
11
+ module2.exports = i();
12
+ })(isBetween, (function() {
13
+ return function(e, i, t) {
14
+ i.prototype.isBetween = function(e2, i2, s, f) {
15
+ var n = t(e2), o = t(i2), r = "(" === (f = f || "()")[0], u = ")" === f[1];
16
+ 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));
17
+ };
24
18
  };
25
- };
26
- });
27
- })(isBetween$1.__module);
28
- var isBetweenExports = isBetween$1.__module.exports;
29
- const isBetween = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(isBetweenExports);
30
- exports.default = isBetween;
19
+ }));
20
+ })(isBetween$1.__module);
21
+ return isBetween$1.__module.exports;
22
+ }
23
+ exports.__require = requireIsBetween;
@@ -1,30 +1,23 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.3
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$1) {
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));
1
+ import { __module as isBetween$1 } from "../../../../../../_virtual/isBetween.es2.js";
2
+ var isBetween = isBetween$1.exports;
3
+ var hasRequiredIsBetween;
4
+ function requireIsBetween() {
5
+ if (hasRequiredIsBetween) return isBetween$1.exports;
6
+ hasRequiredIsBetween = 1;
7
+ (function(module, exports$1) {
8
+ !(function(e, i) {
9
+ module.exports = i();
10
+ })(isBetween, (function() {
11
+ return function(e, i, t) {
12
+ i.prototype.isBetween = function(e2, i2, s, f) {
13
+ var n = t(e2), o = t(i2), r = "(" === (f = f || "()")[0], u = ")" === f[1];
14
+ 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));
15
+ };
22
16
  };
23
- };
24
- });
25
- })(isBetween$1);
26
- var isBetweenExports = isBetween$1.exports;
27
- const isBetween = /* @__PURE__ */ getDefaultExportFromCjs(isBetweenExports);
17
+ }));
18
+ })(isBetween$1);
19
+ return isBetween$1.exports;
20
+ }
28
21
  export {
29
- isBetween as default
22
+ requireIsBetween as __require
30
23
  };
@@ -1,78 +1,71 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.3
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, exports$1) {
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;
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const timezone$1 = require("../../../../../../_virtual/timezone.cjs2.js");
4
+ var timezone = timezone$1.__module.exports;
5
+ var hasRequiredTimezone;
6
+ function requireTimezone() {
7
+ if (hasRequiredTimezone) return timezone$1.__module.exports;
8
+ hasRequiredTimezone = 1;
9
+ (function(module2, exports$1) {
10
+ !(function(t, e) {
11
+ module2.exports = e();
12
+ })(timezone, (function() {
13
+ var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
14
+ return function(n, i, o) {
15
+ var r, a = function(t2, n2, i2) {
16
+ void 0 === i2 && (i2 = {});
17
+ var o2 = new Date(t2), r2 = (function(t3, n3) {
18
+ void 0 === n3 && (n3 = {});
19
+ var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
20
+ 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;
21
+ })(n2, i2);
22
+ return r2.formatToParts(o2);
23
+ }, u = function(e2, n2) {
24
+ for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
25
+ var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
26
+ c >= 0 && (r2[c] = parseInt(m, 10));
27
+ }
28
+ var d = r2[3], l = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
29
+ return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
30
+ }, f = i.prototype;
31
+ f.tz = function(t2, e2) {
32
+ void 0 === t2 && (t2 = r);
33
+ 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;
34
+ if (!Number(s2)) n2 = this.utcOffset(0, e2);
35
+ else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
36
+ var m = n2.utcOffset();
37
+ n2 = n2.add(i2 - m, "minute");
38
+ }
39
+ return n2.$x.$timezone = t2, n2;
40
+ }, f.offsetName = function(t2) {
41
+ var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find((function(t3) {
42
+ return "timezonename" === t3.type.toLowerCase();
43
+ }));
44
+ return n2 && n2.value;
45
+ };
46
+ var s = f.startOf;
47
+ f.startOf = function(t2, e2) {
48
+ if (!this.$x || !this.$x.$timezone) return s.call(this, t2, e2);
49
+ var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
50
+ return s.call(n2, t2, e2).tz(this.$x.$timezone, true);
51
+ }, o.tz = function(t2, e2, n2) {
52
+ var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
53
+ if ("string" != typeof t2) return o(t2).tz(a2);
54
+ var s2 = (function(t3, e3, n3) {
55
+ var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
56
+ if (e3 === o2) return [i3, e3];
57
+ var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
58
+ return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
59
+ })(o.utc(t2, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
60
+ return d.$x.$timezone = a2, d;
61
+ }, o.tz.guess = function() {
62
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
63
+ }, o.tz.setDefault = function(t2) {
64
+ r = t2;
65
+ };
52
66
  };
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;
67
+ }));
68
+ })(timezone$1.__module);
69
+ return timezone$1.__module.exports;
70
+ }
71
+ exports.__require = requireTimezone;
@@ -1,78 +1,71 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.3
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$1) {
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;
1
+ import { __module as timezone$1 } from "../../../../../../_virtual/timezone.es2.js";
2
+ var timezone = timezone$1.exports;
3
+ var hasRequiredTimezone;
4
+ function requireTimezone() {
5
+ if (hasRequiredTimezone) return timezone$1.exports;
6
+ hasRequiredTimezone = 1;
7
+ (function(module, exports$1) {
8
+ !(function(t, e) {
9
+ module.exports = e();
10
+ })(timezone, (function() {
11
+ var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
12
+ return function(n, i, o) {
13
+ var r, a = function(t2, n2, i2) {
14
+ void 0 === i2 && (i2 = {});
15
+ var o2 = new Date(t2), r2 = (function(t3, n3) {
16
+ void 0 === n3 && (n3 = {});
17
+ var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
18
+ 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;
19
+ })(n2, i2);
20
+ return r2.formatToParts(o2);
21
+ }, u = function(e2, n2) {
22
+ for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
23
+ var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
24
+ c >= 0 && (r2[c] = parseInt(m, 10));
25
+ }
26
+ var d = r2[3], l = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
27
+ return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
28
+ }, f = i.prototype;
29
+ f.tz = function(t2, e2) {
30
+ void 0 === t2 && (t2 = r);
31
+ 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;
32
+ if (!Number(s2)) n2 = this.utcOffset(0, e2);
33
+ else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
34
+ var m = n2.utcOffset();
35
+ n2 = n2.add(i2 - m, "minute");
36
+ }
37
+ return n2.$x.$timezone = t2, n2;
38
+ }, f.offsetName = function(t2) {
39
+ var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find((function(t3) {
40
+ return "timezonename" === t3.type.toLowerCase();
41
+ }));
42
+ return n2 && n2.value;
43
+ };
44
+ var s = f.startOf;
45
+ f.startOf = function(t2, e2) {
46
+ if (!this.$x || !this.$x.$timezone) return s.call(this, t2, e2);
47
+ var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
48
+ return s.call(n2, t2, e2).tz(this.$x.$timezone, true);
49
+ }, o.tz = function(t2, e2, n2) {
50
+ var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
51
+ if ("string" != typeof t2) return o(t2).tz(a2);
52
+ var s2 = (function(t3, e3, n3) {
53
+ var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
54
+ if (e3 === o2) return [i3, e3];
55
+ var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
56
+ return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
57
+ })(o.utc(t2, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
58
+ return d.$x.$timezone = a2, d;
59
+ }, o.tz.guess = function() {
60
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
61
+ }, o.tz.setDefault = function(t2) {
62
+ r = t2;
63
+ };
50
64
  };
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);
65
+ }));
66
+ })(timezone$1);
67
+ return timezone$1.exports;
68
+ }
76
69
  export {
77
- timezone as default
70
+ requireTimezone as __require
78
71
  };