@das-fed/upf-utils 6.4.0-dev.256 → 6.4.0-dev.258

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 (102) hide show
  1. package/api-services/es5.js +2076 -2504
  2. package/api-services/index.js +1557 -1843
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +1493 -1931
  5. package/api-services/modules/app-manage/index.js +1194 -1494
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +1358 -1796
  8. package/api-services/modules/authentication/index.js +1049 -1349
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +1412 -1860
  11. package/api-services/modules/bems/index.js +1123 -1437
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +1558 -1986
  14. package/api-services/modules/contract/index.js +1257 -1543
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +1362 -1800
  17. package/api-services/modules/duty-manage/index.js +1053 -1353
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1493 -1931
  20. package/api-services/modules/enterpriseright/index.js +1194 -1494
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +2189 -2627
  23. package/api-services/modules/file/es5.js +2136 -2574
  24. package/api-services/modules/file/index.js +1644 -1944
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +1404 -1854
  27. package/api-services/modules/gateway-edge/index.js +1114 -1432
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1654 -1954
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +1558 -1996
  32. package/api-services/modules/iot/index.js +1244 -1544
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +1495 -1935
  35. package/api-services/modules/justauth/index.js +1192 -1496
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +1560 -1986
  38. package/api-services/modules/knowledge/index.js +1265 -1547
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +1559 -1985
  41. package/api-services/modules/link/index.js +1261 -1543
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +1404 -1854
  44. package/api-services/modules/permission/index.js +1114 -1432
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +1614 -2040
  47. package/api-services/modules/platformManage/index.js +1304 -1586
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +1405 -1852
  50. package/api-services/modules/portal/index.js +1117 -1431
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +1493 -1931
  53. package/api-services/modules/space-manage/index.js +1194 -1494
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +1360 -1801
  56. package/api-services/modules/super-admin/index.js +1046 -1350
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +1560 -1986
  59. package/api-services/modules/supplier/index.js +1257 -1539
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +1405 -1852
  62. package/api-services/modules/supplychain-manage/index.js +1117 -1431
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +1555 -1981
  65. package/api-services/modules/systemConfiguration/index.js +1255 -1537
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +1493 -1931
  68. package/api-services/modules/tool/index.js +1194 -1494
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +1495 -1933
  71. package/api-services/src/create-service/index.js +1199 -1499
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +1709 -2147
  74. package/common-info/getPermissionMethod/es5.js +1866 -2295
  75. package/common-info/getPermissionMethod/index.js +1504 -1790
  76. package/common-info/getPermissionMethod/index.js.gz +0 -0
  77. package/common-info/index.js +1294 -1594
  78. package/common-info/index.js.gz +0 -0
  79. package/common-tools/es5.d.ts +0 -1
  80. package/common-tools/es5.js +0 -9
  81. package/common-tools/index.d.ts +0 -1
  82. package/common-tools/index.js +0 -1
  83. package/common-tools/timezone-format/es5.d.ts +76 -4
  84. package/common-tools/timezone-format/es5.js +453 -439
  85. package/common-tools/timezone-format/index.d.ts +76 -4
  86. package/common-tools/timezone-format/index.js +320 -322
  87. package/common-tools/timezone-format/index.js.gz +0 -0
  88. package/create-api-service/es5.js +1496 -1936
  89. package/create-api-service/index.js +1197 -1501
  90. package/create-api-service/index.js.gz +0 -0
  91. package/esm-map.json +13 -13
  92. package/index.d.ts +0 -1
  93. package/index.js +0 -1
  94. package/package.json +3 -3
  95. package/common-tools/timezone-format/get-iana-data/dayjs-timezone-iana-plugin.d.ts +0 -72
  96. package/common-tools/timezone-format/get-iana-data/es5.d.ts +0 -3
  97. package/common-tools/timezone-format/get-iana-data/es5.js +0 -353
  98. package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +0 -21
  99. package/common-tools/timezone-format/get-iana-data/index.d.ts +0 -3
  100. package/common-tools/timezone-format/get-iana-data/index.js +0 -213
  101. package/common-tools/timezone-format/get-iana-data/index.js.gz +0 -0
  102. package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +0 -30
@@ -1,9 +1,8 @@
1
1
  import u from "dayjs";
2
- import Le from "dayjs/plugin/utc";
3
- import ve from "dayjs/plugin/timezone";
4
- import "@das-fed/upf-utils/config";
5
- const ie = "/api/admin/basic-application/sys-info/v1/license/time-zone-packed-data";
6
- function be() {
2
+ import Pe from "dayjs/plugin/utc";
3
+ import Ue from "dayjs/plugin/timezone";
4
+ const K = "/api/admin/basic-application/sys-info/v1/license/time-zone-packed-data";
5
+ function me() {
7
6
  if (typeof localStorage > "u")
8
7
  return null;
9
8
  try {
@@ -12,18 +11,18 @@ function be() {
12
11
  return null;
13
12
  }
14
13
  }
15
- function Ce() {
16
- const e = be();
14
+ function de() {
15
+ const e = me();
17
16
  if (!(e == null || e === ""))
18
17
  return e.trim().startsWith("Bearer ") ? e.trim() : `Bearer ${e.trim()}`;
19
18
  }
20
- function ce(e = {}) {
21
- const t = e.authorization !== void 0 ? e.authorization === "" || e.authorization == null ? void 0 : e.authorization : Ce(), n = { ...e.headers || {} };
19
+ function B(e = {}) {
20
+ const t = e.authorization !== void 0 ? e.authorization === "" || e.authorization == null ? void 0 : e.authorization : de(), n = { ...e.headers || {} };
22
21
  if (t != null && t !== "" && (n.Authorization = t), Object.keys(n).length !== 0)
23
22
  return { headers: n };
24
23
  }
25
- let N = null, z = null;
26
- const W = [
24
+ let M = null, z = null;
25
+ const ne = [
27
26
  "utc",
28
27
  "uct",
29
28
  "zulu",
@@ -42,8 +41,8 @@ const W = [
42
41
  "etc/gmt+0",
43
42
  "etc/gmt-0",
44
43
  "etc/greenwich"
45
- ], ke = { u: [1 / 0], o: [0] };
46
- function ue(e) {
44
+ ], je = { u: [1 / 0], o: [0] };
45
+ function W(e) {
47
46
  if (!e || typeof e != "object")
48
47
  throw new Error("Invalid IANA response: expected an object");
49
48
  const t = e;
@@ -56,7 +55,7 @@ function ue(e) {
56
55
  links: Array.isArray(n) ? n : []
57
56
  };
58
57
  }
59
- async function Ne(e, t) {
58
+ async function Oe(e, t) {
60
59
  if (typeof fetch != "function")
61
60
  throw new Error("fetch is not available. Pass preloadFromApi options.fetchJson.");
62
61
  const n = await fetch(e, t);
@@ -64,143 +63,143 @@ async function Ne(e, t) {
64
63
  throw new Error(`IANA request failed: ${n.status} ${n.statusText}`);
65
64
  return n.json();
66
65
  }
67
- function fe(e) {
68
- return z = ue(e), N = $e(z), z;
66
+ function q(e) {
67
+ return z = W(e), M = Ie(z), z;
69
68
  }
70
- function Me() {
69
+ function Te() {
71
70
  return z;
72
71
  }
73
- async function Pe(e = {}) {
74
- const t = e.url ?? ie, n = ce({
72
+ async function he(e = {}) {
73
+ const t = e.url ?? K, n = B({
75
74
  authorization: e.authorization,
76
75
  headers: e.headers
77
- }), r = await (e.fetchJson ?? Ne)(t, n), s = e.parseResponse ? e.parseResponse(r) : ue(r);
78
- return fe(s);
76
+ }), r = await (e.fetchJson ?? Oe)(t, n), a = e.parseResponse ? e.parseResponse(r) : W(r);
77
+ return q(a);
79
78
  }
80
- function Ue() {
81
- N = null, z = null;
79
+ function ge() {
80
+ M = null, z = null;
82
81
  }
83
- function q(e) {
82
+ function re(e) {
84
83
  return e > 96 ? e - 87 : e > 64 ? e - 29 : e - 48;
85
84
  }
86
- function Fe(e) {
85
+ function $e(e) {
87
86
  let t = 1, n = 0, o = 0, r = 1;
88
- const s = e.split("."), a = s[0], c = s[1] || "";
87
+ const a = e.split("."), s = a[0], c = a[1] || "";
89
88
  e.charCodeAt(0) === 45 && (t = -1);
90
- for (let i = 0; i < a.length; i++) {
91
- const f = a.charCodeAt(i);
92
- f !== 45 && (n = 60 * n + q(f));
89
+ for (let i = 0; i < s.length; i++) {
90
+ const f = s.charCodeAt(i);
91
+ f !== 45 && (n = 60 * n + re(f));
93
92
  }
94
93
  for (let i = 0; i < c.length; i++)
95
- r = r / 60, o += q(c.charCodeAt(i)) * r;
94
+ r = r / 60, o += re(c.charCodeAt(i)) * r;
96
95
  return (n + o) * t;
97
96
  }
98
- function Y(e) {
97
+ function R(e) {
99
98
  const t = [];
100
99
  for (const n of e)
101
- t.push(Fe(n));
100
+ t.push($e(n));
102
101
  return t;
103
102
  }
104
- function Q(e) {
103
+ function oe(e) {
105
104
  const t = e.trim();
106
105
  return t ? t.split(" ") : [];
107
106
  }
108
- function Oe(e) {
107
+ function xe(e) {
109
108
  let t = 0;
110
109
  const n = [];
111
110
  for (const o of e)
112
111
  t += o, n.push(Math.round(t * 6e4));
113
112
  return n.push(1 / 0), n;
114
113
  }
115
- function je(e, t) {
114
+ function Ve(e, t) {
116
115
  const n = [];
117
116
  for (const o of t)
118
117
  n.push(e[o]);
119
118
  return n;
120
119
  }
121
- function M(e) {
120
+ function F(e) {
122
121
  return typeof e == "string" ? e.trim().toLowerCase() : "";
123
122
  }
124
- function xe(e) {
123
+ function Re(e) {
125
124
  const t = e.split("|");
126
125
  if (t.length < 5)
127
126
  throw new Error("Invalid packed zone format");
128
- const n = M(t[0]), o = Y(Q(t[2])), r = Y(t[3].split("")), s = Oe(Y(Q(t[4]))), a = je(o, r);
127
+ const n = F(t[0]), o = R(oe(t[2])), r = R(t[3].split("")), a = xe(R(oe(t[4]))), s = Ve(o, r);
129
128
  return {
130
129
  name: n,
131
130
  rule: {
132
- u: s,
133
- o: a
131
+ u: a,
132
+ o: s
134
133
  }
135
134
  };
136
135
  }
137
- function Ve(e, t, n) {
138
- const o = M(t), r = M(n);
136
+ function Ye(e, t, n) {
137
+ const o = F(t), r = F(n);
139
138
  if (!o || !r) return;
140
- const s = e[o], a = e[r];
141
- s && !a ? e[r] = s : a && !s && (e[o] = a);
139
+ const a = e[o], s = e[r];
140
+ a && !s ? e[r] = a : s && !a && (e[o] = s);
142
141
  }
143
- function Ye(e) {
144
- const t = W.map((n) => e[n]).find(Boolean) || ke;
145
- W.forEach((n) => {
142
+ function Ge(e) {
143
+ const t = ne.map((n) => e[n]).find(Boolean) || je;
144
+ ne.forEach((n) => {
146
145
  e[n] || (e[n] = t);
147
146
  });
148
147
  }
149
- function $e(e) {
148
+ function Ie(e) {
150
149
  if (!e || !Array.isArray(e.zones))
151
150
  throw new TypeError("packed iana data must contain zones array");
152
151
  const t = {};
153
152
  for (const o of e.zones) {
154
- const r = xe(o);
153
+ const r = Re(o);
155
154
  t[r.name] = r.rule;
156
155
  }
157
156
  const n = e.links || [];
158
157
  for (const o of n) {
159
158
  const r = o.split("|");
160
- r.length < 2 || Ve(t, r[0], r[1]);
159
+ r.length < 2 || Ye(t, r[0], r[1]);
161
160
  }
162
- return Ye(t), t;
161
+ return Ge(t), t;
163
162
  }
164
- function Re() {
165
- if (!N)
163
+ function He() {
164
+ if (!M)
166
165
  throw new Error(
167
166
  "IANA data not loaded. Await dayjsTimezoneIanaPlugin.preloadFromApi({ url: ... }) before dayjs.extend(dayjsTimezoneIanaPlugin)."
168
167
  );
169
- return N;
168
+ return M;
170
169
  }
171
- function Ge(e, t, n) {
172
- const o = M(t), r = n[o];
170
+ function Je(e, t, n) {
171
+ const o = F(t), r = n[o];
173
172
  if (r === void 0)
174
173
  throw Error("Unknown Time Zone " + t);
175
- const s = r.o, a = r.u, c = a.length - 1;
174
+ const a = r.o, s = r.u, c = s.length - 1;
176
175
  for (let i = 0; i < c; i++) {
177
- let f = s[i];
178
- const l = s[i && i - 1];
179
- if (f > l && (f = l), e < a[i] - f * 6e4)
180
- return s[i];
176
+ let f = a[i];
177
+ const l = a[i && i - 1];
178
+ if (f > l && (f = l), e < s[i] - f * 6e4)
179
+ return a[i];
181
180
  }
182
- return s[c];
181
+ return a[c];
183
182
  }
184
- const He = (e, t, n) => {
183
+ const Ke = (e, t, n) => {
185
184
  var i, f;
186
185
  let o = "";
187
- const r = n.tz, s = (i = r == null ? void 0 : r.guess) == null ? void 0 : i.bind(r), a = (f = r == null ? void 0 : r.setDefault) == null ? void 0 : f.bind(r), c = (l, d, p) => {
188
- const C = p || d || o, Z = p ? d : void 0;
189
- return (typeof n.utc == "function" ? n.utc(l, Z) : n(l, Z).utc()).tz(C);
186
+ const r = n.tz, a = (i = r == null ? void 0 : r.guess) == null ? void 0 : i.bind(r), s = (f = r == null ? void 0 : r.setDefault) == null ? void 0 : f.bind(r), c = (l, d, Z) => {
187
+ const v = Z || d || o, g = Z ? d : void 0;
188
+ return (typeof n.utc == "function" ? n.utc(l, g) : n(l, g).utc()).tz(v);
190
189
  };
191
190
  r && Object.assign(c, r), c.setDefault = (l) => {
192
- o = l, a == null || a(l);
193
- }, c.guess = () => s ? s() : typeof Intl < "u" && typeof Intl.DateTimeFormat == "function" ? Intl.DateTimeFormat().resolvedOptions().timeZone || o || "UTC" : o || "UTC", n.tz = c, t.prototype.tz = function(l = o, d) {
191
+ o = l, s == null || s(l);
192
+ }, c.guess = () => a ? a() : typeof Intl < "u" && typeof Intl.DateTimeFormat == "function" ? Intl.DateTimeFormat().resolvedOptions().timeZone || o || "UTC" : o || "UTC", n.tz = c, t.prototype.tz = function(l = o, d) {
194
193
  var D;
195
- const p = l || ((D = c.guess) == null ? void 0 : D.call(c)) || "UTC", C = this.utc().valueOf(), Z = Ge(C, p, Re());
196
- return this.utcOffset(-Z, d);
194
+ const Z = l || ((D = c.guess) == null ? void 0 : D.call(c)) || "UTC", v = this.utc().valueOf(), g = Je(v, Z, He());
195
+ return this.utcOffset(-g, d);
197
196
  };
198
- }, T = He;
199
- T.preloadFromApi = Pe;
200
- T.preloadFromData = fe;
201
- T.getCachedPackedData = Me;
202
- T.clearIanaCache = Ue;
203
- function Je(e) {
197
+ }, L = Ke;
198
+ L.preloadFromApi = he;
199
+ L.preloadFromData = q;
200
+ L.getCachedPackedData = Te;
201
+ L.clearIanaCache = ge;
202
+ function ye(e) {
204
203
  if (!e || typeof e != "object")
205
204
  throw new Error("Invalid IANA response: expected an object");
206
205
  const t = e;
@@ -213,7 +212,7 @@ function Je(e) {
213
212
  links: Array.isArray(n) ? n : []
214
213
  };
215
214
  }
216
- function le(e, t) {
215
+ function Ze(e, t) {
217
216
  const n = e == null ? void 0 : e.tz;
218
217
  if (!n || typeof n != "object" && typeof n != "function" || typeof n.load != "function")
219
218
  throw new Error("moment.tz.load is missing. Import moment-timezone before calling loadIanaData.");
@@ -221,7 +220,7 @@ function le(e, t) {
221
220
  throw new Error("Invalid packed IANA data: zones must be an array");
222
221
  n.load(t);
223
222
  }
224
- async function Ke(e, t) {
223
+ async function Be(e, t) {
225
224
  if (typeof fetch != "function")
226
225
  throw new Error("fetch is not available. Pass loadIanaFromApi options.fetchJson in Node or polyfill fetch.");
227
226
  const n = await fetch(e, t);
@@ -229,21 +228,21 @@ async function Ke(e, t) {
229
228
  throw new Error(`IANA request failed: ${n.status} ${n.statusText}`);
230
229
  return n.json();
231
230
  }
232
- async function X(e, t, n) {
233
- let o = ie, r = {};
231
+ async function We(e, t, n) {
232
+ let o = K, r = {};
234
233
  typeof t == "string" ? (o = t, r = n ?? {}) : t != null && (r = t);
235
- const s = ce({
234
+ const a = B({
236
235
  authorization: r.authorization,
237
236
  headers: r.headers
238
- }), c = await (r.fetchJson ?? Ke)(o, s), i = r.parseResponse ? r.parseResponse(c) : Je(c);
239
- return le(e, i), i;
237
+ }), c = await (r.fetchJson ?? Be)(o, a), i = r.parseResponse ? r.parseResponse(c) : ye(c);
238
+ return Ze(e, i), i;
240
239
  }
241
- u.extend(Le);
242
- u.extend(ve);
243
- const I = "zh-CN", Be = "YYYY.MM.DD HH:mm:ss", A = "YYYY-MM-DD HH:mm:ss", me = "YYYY-MM-DD HH:mm", O = "UTC", H = "timeZone", de = "timezonechange", We = "__UPF_TIMEZONE_CHANGE__", $ = "__UPF_IANA_TIMEZONE_DATA__", qe = "ianatimezonedatachange", ee = {
240
+ u.extend(Pe);
241
+ u.extend(Ue);
242
+ const p = L, Ot = W, $t = q, xt = Te, Vt = he, Rt = ge, Yt = Ie, Gt = K, Ht = me, Jt = de, Kt = B, Bt = ye, De = Ze, Wt = De, Y = We, qt = Y, y = "zh-CN", qe = "YYYY.MM.DD HH:mm:ss", w = "YYYY-MM-DD HH:mm:ss", pe = "YYYY-MM-DD HH:mm", O = "UTC", Q = "timeZone", Ae = "timezonechange", Qe = "__UPF_TIMEZONE_CHANGE__", G = "__UPF_IANA_TIMEZONE_DATA__", Xe = "ianatimezonedatachange", ae = {
244
243
  zh: "夏令时",
245
244
  default: "DST"
246
- }, Qe = [
245
+ }, et = [
247
246
  "UTC",
248
247
  "UCT",
249
248
  "Zulu",
@@ -263,27 +262,27 @@ const I = "zh-CN", Be = "YYYY.MM.DD HH:mm:ss", A = "YYYY-MM-DD HH:mm:ss", me = "
263
262
  "Etc/GMT-0",
264
263
  "Etc/Greenwich"
265
264
  ], E = /* @__PURE__ */ new Set();
266
- var se, ae;
267
- const Xe = (ae = (se = u.tz) == null ? void 0 : se.guess) == null ? void 0 : ae.bind(u.tz);
268
- let w = !1, te = "", k = null;
269
- const m = (e) => (e || "").trim(), R = (e) => {
265
+ var fe, le;
266
+ const tt = (le = (fe = u.tz) == null ? void 0 : fe.guess) == null ? void 0 : le.bind(u.tz);
267
+ let A = !1, se = "", N = null;
268
+ const m = (e) => (e || "").trim(), H = (e) => {
270
269
  const t = m(e);
271
270
  t && E.add(t);
272
- }, et = () => Qe.forEach(R), g = () => typeof window > "u" ? void 0 : window, tt = (e) => e === "iana" ? "iana" : "fallback", P = (e, t) => {
271
+ }, nt = () => et.forEach(H), h = () => typeof window > "u" ? void 0 : window, rt = (e) => e === "iana" ? "iana" : "fallback", P = (e, t) => {
273
272
  if (!e || typeof e != "object") return null;
274
273
  const n = e;
275
274
  if (!Array.isArray(n.zones)) return null;
276
- const o = n.zones.filter((s) => typeof s == "string");
275
+ const o = n.zones.filter((a) => typeof a == "string");
277
276
  if (!o.length) return null;
278
- const r = Array.isArray(n.links) ? n.links.filter((s) => typeof s == "string") : [];
277
+ const r = Array.isArray(n.links) ? n.links.filter((a) => typeof a == "string") : [];
279
278
  return {
280
279
  version: typeof n.version == "string" ? n.version : void 0,
281
280
  zones: o,
282
281
  links: r,
283
- source: tt(t || n.source),
282
+ source: rt(t || n.source),
284
283
  timestamp: Number(n.timestamp || Date.now())
285
284
  };
286
- }, ne = (e) => {
285
+ }, ie = (e) => {
287
286
  var t;
288
287
  return e ? [
289
288
  e.source,
@@ -292,28 +291,28 @@ const m = (e) => (e || "").trim(), R = (e) => {
292
291
  e.zones.length,
293
292
  ((t = e.links) == null ? void 0 : t.length) || 0
294
293
  ].join("|") : "";
295
- }, Te = (e, t = {}) => {
296
- const n = g();
294
+ }, we = (e, t = {}) => {
295
+ const n = h();
297
296
  if (!n) return null;
298
297
  const o = P(e, t.source);
299
298
  if (!o) return null;
300
299
  try {
301
- const r = P(n[$]);
300
+ const r = P(n[G]);
302
301
  if ((r == null ? void 0 : r.source) === "iana" && o.source !== "iana") return r;
303
- n[$] = o, t.dispatchEvent !== !1 && n.dispatchEvent(new CustomEvent(qe, { detail: o }));
302
+ n[G] = o, t.dispatchEvent !== !1 && n.dispatchEvent(new CustomEvent(Xe, { detail: o }));
304
303
  } catch {
305
304
  }
306
305
  return o;
307
- }, he = () => {
308
- const e = g();
306
+ }, Ee = () => {
307
+ const e = h();
309
308
  try {
310
- return P(e == null ? void 0 : e[$]);
309
+ return P(e == null ? void 0 : e[G]);
311
310
  } catch {
312
311
  return null;
313
312
  }
314
- }, nt = () => {
313
+ }, ot = () => {
315
314
  var t;
316
- const e = g();
315
+ const e = h();
317
316
  if (!(e != null && e.name)) return null;
318
317
  try {
319
318
  const n = (t = JSON.parse(e.name || "{}")) == null ? void 0 : t.parentData;
@@ -321,20 +320,20 @@ const m = (e) => (e || "").trim(), R = (e) => {
321
320
  } catch {
322
321
  return null;
323
322
  }
324
- }, j = () => {
323
+ }, $ = () => {
325
324
  try {
326
- return typeof sessionStorage > "u" ? "" : m(sessionStorage.getItem(H));
325
+ return typeof sessionStorage > "u" ? "" : m(sessionStorage.getItem(Q));
327
326
  } catch {
328
327
  return "";
329
328
  }
330
- }, rt = (e) => {
329
+ }, at = (e) => {
331
330
  try {
332
- typeof sessionStorage < "u" && sessionStorage.setItem(H, e);
331
+ typeof sessionStorage < "u" && sessionStorage.setItem(Q, e);
333
332
  } catch {
334
333
  }
335
- }, J = () => {
334
+ }, X = () => {
336
335
  var t;
337
- const e = g();
336
+ const e = h();
338
337
  try {
339
338
  return m((t = e == null ? void 0 : e.__UPF_TIMEZONE_SNAPSHOT__) == null ? void 0 : t.timeZone);
340
339
  } catch {
@@ -342,7 +341,7 @@ const m = (e) => (e || "").trim(), R = (e) => {
342
341
  }
343
342
  }, x = () => {
344
343
  var t;
345
- const e = g();
344
+ const e = h();
346
345
  if (!(e != null && e.name)) return "";
347
346
  try {
348
347
  const n = (t = JSON.parse(e.name || "{}")) == null ? void 0 : t.parentData;
@@ -350,29 +349,29 @@ const m = (e) => (e || "").trim(), R = (e) => {
350
349
  } catch {
351
350
  return "";
352
351
  }
353
- }, ge = (e, t) => ({
352
+ }, ze = (e, t) => ({
354
353
  timeZone: m(e),
355
354
  source: t,
356
355
  timestamp: Date.now()
357
356
  });
358
- let U = J() || x() || j();
359
- const Ze = {
357
+ let U = X() || x() || $();
358
+ const Se = {
360
359
  get value() {
361
360
  return U;
362
361
  },
363
362
  set value(e) {
364
- ut(e, { source: "clientTimeZone.value" });
363
+ mt(e, { source: "clientTimeZone.value" });
365
364
  }
366
- }, G = /* @__PURE__ */ new Set();
367
- let re = !1;
368
- const ye = () => {
365
+ }, J = /* @__PURE__ */ new Set();
366
+ let ce = !1;
367
+ const _e = () => {
369
368
  if (!(typeof Intl > "u" || typeof Intl.DateTimeFormat != "function"))
370
369
  try {
371
370
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
372
371
  } catch {
373
372
  return;
374
373
  }
375
- }, ot = (e) => {
374
+ }, st = (e) => {
376
375
  if (!e) return !1;
377
376
  if (typeof Intl > "u" || typeof Intl.DateTimeFormat != "function") return !0;
378
377
  try {
@@ -380,174 +379,173 @@ const ye = () => {
380
379
  } catch {
381
380
  return !1;
382
381
  }
383
- }, L = (e) => {
382
+ }, b = (e) => {
384
383
  const t = m(e);
385
- return t ? E.size ? E.has(t) : ot(t) : !1;
384
+ return t ? E.size ? E.has(t) : st(t) : !1;
386
385
  }, S = (e) => (E.clear(), e.zones.forEach((t) => {
387
386
  const n = t.split("|")[0];
388
- R(n);
387
+ H(n);
389
388
  }), (e.links || []).forEach((t) => {
390
389
  t.split("|").forEach((n) => {
391
- R(n);
390
+ H(n);
392
391
  });
393
- }), et(), Array.from(E)), Ft = () => Array.from(E), st = async (e, t = {}) => {
394
- const n = t.runtimeSource || "fallback", o = he();
392
+ }), nt(), Array.from(E)), Qt = () => Array.from(E), it = async (e, t = {}) => {
393
+ const n = t.runtimeSource || "fallback", o = Ee();
395
394
  if ((o == null ? void 0 : o.source) === "iana" && n !== "iana") {
396
- const a = T.preloadFromData(o), c = S(a);
397
- return w || (u.extend(T), w = !0), F(t.defaultTimeZone), { data: a, knownTimeZones: c };
395
+ const s = p.preloadFromData(o), c = S(s);
396
+ return A || (u.extend(p), A = !0), j(t.defaultTimeZone), { data: s, knownTimeZones: c };
398
397
  }
399
- const r = T.preloadFromData(e), s = S(r);
400
- if (w || (u.extend(T), w = !0), F(t.defaultTimeZone), t.writeRuntimeSnapshot !== !1) {
401
- const a = { ...r, timestamp: e == null ? void 0 : e.timestamp };
402
- Te(a, { source: n });
398
+ const r = p.preloadFromData(e), a = S(r);
399
+ if (A || (u.extend(p), A = !0), j(t.defaultTimeZone), t.writeRuntimeSnapshot !== !1) {
400
+ const s = { ...r, timestamp: e == null ? void 0 : e.timestamp };
401
+ we(s, { source: n });
403
402
  }
404
- return { data: r, knownTimeZones: s };
405
- }, Ot = async (e = {}) => {
406
- const t = await T.preloadFromApi(e), n = S(t);
407
- return w || (u.extend(T), w = !0), F(e.defaultTimeZone), e.writeRuntimeSnapshot !== !1 && Te(t, { source: e.runtimeSource || "iana" }), { data: t, knownTimeZones: n };
408
- }, jt = (e, t) => (le(e, t), S(t), t), xt = async (e, t = {}) => {
409
- const { url: n, ...o } = t, r = n ? await X(e, n, o) : await X(e, o);
403
+ return { data: r, knownTimeZones: a };
404
+ }, Xt = async (e = {}) => {
405
+ const t = await p.preloadFromApi(e), n = S(t);
406
+ return A || (u.extend(p), A = !0), j(e.defaultTimeZone), e.writeRuntimeSnapshot !== !1 && we(t, { source: e.runtimeSource || "iana" }), { data: t, knownTimeZones: n };
407
+ }, en = (e, t) => (De(e, t), S(t), t), tn = async (e, t = {}) => {
408
+ const { url: n, ...o } = t, r = n ? await Y(e, n, o) : await Y(e, o);
410
409
  return S(r), r;
411
- }, at = () => {
410
+ }, ct = () => {
412
411
  var n;
413
- const e = (n = u.tz) == null ? void 0 : n.guess, t = typeof e == "function" ? e : Xe;
412
+ const e = (n = u.tz) == null ? void 0 : n.guess, t = typeof e == "function" ? e : tt;
414
413
  try {
415
414
  return t == null ? void 0 : t();
416
415
  } catch {
417
416
  return;
418
417
  }
419
- }, F = (e) => {
418
+ }, j = (e) => {
420
419
  var o, r;
421
420
  const t = m(e), n = u.tz;
422
- return t ? L(t) ? ((r = n == null ? void 0 : n.setDefault) == null || r.call(n, t), !0) : !1 : ((o = n == null ? void 0 : n.setDefault) == null || o.call(n, O), !0);
423
- }, Ie = () => {
424
- const e = nt(), t = ne(e);
425
- return !e || !t || ne(he()) === t ? Promise.resolve(null) : (k && te === t || (te = t, k = st(e, {
426
- defaultTimeZone: U || x() || j(),
421
+ return t ? b(t) ? ((r = n == null ? void 0 : n.setDefault) == null || r.call(n, t), !0) : !1 : ((o = n == null ? void 0 : n.setDefault) == null || o.call(n, O), !0);
422
+ }, ut = () => {
423
+ const e = ot(), t = ie(e);
424
+ return !e || !t || ie(Ee()) === t ? Promise.resolve(null) : (N && se === t || (se = t, N = it(e, {
425
+ defaultTimeZone: U || x() || $(),
427
426
  runtimeSource: e.source
428
- }).catch((n) => null)), k);
429
- }, it = (e) => {
430
- G.forEach((t) => {
427
+ }).catch((n) => null)), N);
428
+ }, ft = (e) => {
429
+ J.forEach((t) => {
431
430
  try {
432
431
  t(e.timeZone, e);
433
432
  } catch {
434
433
  }
435
434
  });
436
- }, ct = (e) => {
435
+ }, lt = (e) => {
437
436
  var t;
438
437
  try {
439
- (t = g()) == null || t.dispatchEvent(new CustomEvent(de, { detail: e }));
438
+ (t = h()) == null || t.dispatchEvent(new CustomEvent(Ae, { detail: e }));
440
439
  } catch {
441
440
  }
442
- }, K = (e, t = {}) => {
443
- const n = m(e), o = ge(n, t.source), r = U !== n;
441
+ }, ee = (e, t = {}) => {
442
+ const n = m(e), o = ze(n, t.source), r = U !== n;
444
443
  r && (U = n);
445
444
  try {
446
- const s = g();
447
- s && (s.__UPF_TIMEZONE_SNAPSHOT__ = o);
445
+ const a = h();
446
+ a && (a.__UPF_TIMEZONE_SNAPSHOT__ = o);
448
447
  } catch {
449
448
  }
450
- return t.persist !== !1 && rt(n), t.syncDefault !== !1 && F(n), t.notify !== !1 && r && it(o), t.dispatchEvent !== !1 && ct(o), n;
451
- }, ut = (e, t = {}) => K(m(e), {
449
+ return t.persist !== !1 && at(n), t.syncDefault !== !1 && j(n), t.notify !== !1 && r && ft(o), t.dispatchEvent !== !1 && lt(o), n;
450
+ }, mt = (e, t = {}) => ee(m(e), {
452
451
  persist: !0,
453
452
  notify: !0,
454
453
  dispatchEvent: !0,
455
454
  syncDefault: !0,
456
455
  ...t
457
- }), Vt = (e = "sync") => {
458
- Ie();
459
- const t = J() || x() || j();
460
- return t || Ze.value ? K(t, { source: e, persist: !1, dispatchEvent: !1 }) : "";
461
- }, Yt = (e) => (G.add(e), () => G.delete(e)), ft = (e) => {
462
- var n, o, r, s;
463
- if (typeof e == "string") return ge(e);
456
+ }), nn = (e = "sync") => {
457
+ ut();
458
+ const t = X() || x() || $();
459
+ return t || Se.value ? ee(t, { source: e, persist: !1, dispatchEvent: !1 }) : "";
460
+ }, rn = (e) => (J.add(e), () => J.delete(e)), dt = (e) => {
461
+ var n, o, r, a;
462
+ if (typeof e == "string") return ze(e);
464
463
  if (!e || typeof e != "object") return null;
465
464
  const t = "timeZone" in e ? e.timeZone : e != null && e.detail && "timeZone" in e.detail ? e.detail.timeZone : e != null && e.params && "timeZone" in e.params ? e.params.timeZone : void 0;
466
465
  return t == null ? null : {
467
466
  timeZone: m(t),
468
467
  source: e.source || ((n = e.detail) == null ? void 0 : n.source) || ((o = e.params) == null ? void 0 : o.source),
469
- timestamp: Number(e.timestamp || ((r = e.detail) == null ? void 0 : r.timestamp) || ((s = e.params) == null ? void 0 : s.timestamp) || Date.now())
468
+ timestamp: Number(e.timestamp || ((r = e.detail) == null ? void 0 : r.timestamp) || ((a = e.params) == null ? void 0 : a.timestamp) || Date.now())
470
469
  };
471
- }, B = (e, t) => {
472
- const n = ft(e);
473
- n && K(n.timeZone, {
470
+ }, te = (e, t) => {
471
+ const n = dt(e);
472
+ n && ee(n.timeZone, {
474
473
  source: n.source || t,
475
474
  persist: !1,
476
475
  dispatchEvent: !1
477
476
  });
478
- }, lt = (e) => {
479
- B(e.detail, "window-event");
480
- }, mt = (e) => {
481
- e.key === H && B({ timeZone: e.newValue || "", source: "storage" }, "storage");
482
- }, dt = (e) => {
477
+ }, Tt = (e) => {
478
+ te(e.detail, "window-event");
479
+ }, ht = (e) => {
480
+ e.key === Q && te({ timeZone: e.newValue || "", source: "storage" }, "storage");
481
+ }, gt = (e) => {
483
482
  const t = e.data;
484
- !t || t.type !== We || B(t.detail || t, "message");
485
- }, Tt = () => {
486
- const e = g();
487
- return !e || re ? !1 : (re = !0, e.addEventListener(de, lt), e.addEventListener("storage", mt), e.addEventListener("message", dt), !0);
483
+ !t || t.type !== Qe || te(t.detail || t, "message");
484
+ }, It = () => {
485
+ const e = h();
486
+ return !e || ce ? !1 : (ce = !0, e.addEventListener(Ae, Tt), e.addEventListener("storage", ht), e.addEventListener("message", gt), !0);
488
487
  };
489
- Tt();
490
- Ie();
491
- const ht = () => {
492
- const t = m(Ze.value) || J() || x() || j() || at() || ye();
493
- return L(t) ? m(t) : O;
494
- }, h = (e) => {
495
- const t = m(e) || ht();
496
- return L(t) ? t : O;
497
- }, gt = () => {
488
+ It();
489
+ const yt = () => {
490
+ const t = m(Se.value) || X() || x() || $() || ct() || _e();
491
+ return b(t) ? m(t) : O;
492
+ }, T = (e) => {
493
+ const t = m(e) || yt();
494
+ return b(t) ? t : O;
495
+ }, Zt = () => {
498
496
  var e;
499
- return typeof window < "u" && ((e = window.navigator) != null && e.language) ? window.navigator.language : I;
500
- }, Zt = (e, t = []) => {
501
- const o = e || gt() || I, r = o.toLowerCase();
497
+ return typeof window < "u" && ((e = window.navigator) != null && e.language) ? window.navigator.language : y;
498
+ }, Dt = (e, t = []) => {
499
+ const o = e || Zt() || y, r = o.toLowerCase();
502
500
  if (!t.length)
503
- return r === "en" ? "en-US" : r === "zh" || r === "zh-cn" ? I : o;
504
- const s = t.find((i) => i.toLowerCase() === r);
505
- if (s) return s;
506
- const a = r.split("-")[0], c = t.find((i) => i.toLowerCase().split("-")[0] === a);
507
- return c || (a === "en" ? t.find((i) => i.toLowerCase().startsWith("en-")) || o : a === "zh" ? t.find((i) => i.toLowerCase().startsWith("zh-")) || I : o);
508
- }, v = (e) => {
501
+ return r === "en" ? "en-US" : r === "zh" || r === "zh-cn" ? y : o;
502
+ const a = t.find((i) => i.toLowerCase() === r);
503
+ if (a) return a;
504
+ const s = r.split("-")[0], c = t.find((i) => i.toLowerCase().split("-")[0] === s);
505
+ return c || (s === "en" ? t.find((i) => i.toLowerCase().startsWith("en-")) || o : s === "zh" ? t.find((i) => i.toLowerCase().startsWith("zh-")) || y : o);
506
+ }, C = (e) => {
509
507
  if (u.isDayjs(e)) return e;
510
508
  if (e == null || e === "") return u();
511
- const t = u(b(e));
509
+ const t = u(k(e));
512
510
  return t.isValid() ? t : u();
513
- }, _ = (e) => e == null || e === "", b = (e) => {
511
+ }, _ = (e) => e == null || e === "", k = (e) => {
514
512
  if (typeof e != "string") return e;
515
513
  const t = e.trim();
516
514
  return /^\d{13}$/.test(t) ? Number(t) : /^\d{10}$/.test(t) ? Number(t) * 1e3 : e;
517
- }, pe = (e) => u.isDayjs(e) ? e : _(e) ? u() : u(b(e)), De = (e, t = !1) => {
515
+ }, Le = (e) => u.isDayjs(e) ? e : _(e) ? u() : u(k(e)), be = (e, t = !1) => {
518
516
  const n = m(e);
519
- return n ? h(n) : t ? h() : "";
520
- }, yt = (e, t) => v(e).tz(h(t)).utcOffset(), It = (e, t, n = me) => v(e).tz(h(t)).format(n), pt = (e, t) => pe(e).format(t.format), we = (e, t) => {
521
- const n = t.format || A, o = De(t.timeZone, t.useClientTimeZone);
522
- if (!o) return pt(e, { format: n });
517
+ return n ? T(n) : t ? T() : "";
518
+ }, pt = (e, t) => C(e).tz(T(t)).utcOffset(), At = (e, t, n = pe) => C(e).tz(T(t)).format(n), wt = (e, t) => Le(e).format(t.format), Ce = (e, t) => {
519
+ const n = t.format || w, o = be(t.timeZone, t.useClientTimeZone);
520
+ if (!o) return wt(e, { format: n });
523
521
  if (t.inputMode === "local")
524
- return _(e) ? u().tz(o).format(n) : u.tz(b(e), o).format(n);
525
- const r = pe(e);
522
+ return _(e) ? u().tz(o).format(n) : u.tz(k(e), o).format(n);
523
+ const r = Le(e);
526
524
  return r.isValid() ? r.tz(o).format(n) : r.format(n);
527
- }, Dt = (e) => typeof e == "function", wt = (e, t) => {
525
+ }, Et = (e) => typeof e == "function", zt = (e, t) => {
528
526
  var i, f;
529
- const { moment: n } = t, o = t.format || A;
530
- if (!Dt(n)) return we(e, { ...t, dateLibrary: "dayjs" });
531
- const r = _(e) ? void 0 : b(e), s = De(t.timeZone, t.useClientTimeZone);
532
- if (!s || typeof n.tz != "function") return n(r).format(o);
527
+ const { moment: n } = t, o = t.format || w;
528
+ if (!Et(n)) return Ce(e, { ...t, dateLibrary: "dayjs" });
529
+ const r = _(e) ? void 0 : k(e), a = be(t.timeZone, t.useClientTimeZone);
530
+ if (!a || typeof n.tz != "function") return n(r).format(o);
533
531
  if (t.inputMode === "local")
534
- return _(e) ? ((f = (i = n()).tz) == null ? void 0 : f.call(i, s).format(o)) || n().format(o) : n.tz(r, s).format(o);
535
- const a = n(r);
536
- return (typeof a.tz == "function" ? a.tz(s) : n.tz(r, s)).format(o);
537
- }, At = (e, t = {}) => {
532
+ return _(e) ? ((f = (i = n()).tz) == null ? void 0 : f.call(i, a).format(o)) || n().format(o) : n.tz(r, a).format(o);
533
+ const s = n(r);
534
+ return (typeof s.tz == "function" ? s.tz(a) : n.tz(r, a)).format(o);
535
+ }, St = (e, t = {}) => {
538
536
  const n = typeof t == "string" ? { format: t } : t || {}, o = {
539
537
  ...n,
540
- format: n.format || A
538
+ format: n.format || w
541
539
  };
542
- return o.dateLibrary === "moment" ? wt(e, o) : we(e, o);
543
- }, $t = (e, t = A, n = {}) => At(e, { ...n, format: t }), y = (e) => String(e).padStart(2, "0"), Et = (e) => u.isDayjs(e) ? e.toDate() : _(e) ? /* @__PURE__ */ new Date() : new Date(b(e)), oe = (e, t, n) => t.replace(/YYYY/g, n.year || `${e.getFullYear()}`).replace(/MM/g, n.month || y(e.getMonth() + 1)).replace(/DD/g, n.day || y(e.getDate())).replace(/HH/g, n.hour || y(e.getHours())).replace(/mm/g, n.minute || y(e.getMinutes())).replace(/ss/g, n.second || y(e.getSeconds())), zt = () => ye() || O;
544
- function Rt(e, t, n = A, o = I) {
545
- const r = typeof t == "object" && t !== null ? t : { timeZone: t, format: n, locale: o }, s = Et(e);
546
- if (Number.isNaN(s.getTime())) return "";
547
- const a = m(r.timeZone) || zt(), c = r.format || A;
540
+ return o.dateLibrary === "moment" ? zt(e, o) : Ce(e, o);
541
+ }, on = (e, t = w, n = {}) => St(e, { ...n, format: t }), I = (e) => String(e).padStart(2, "0"), _t = (e) => u.isDayjs(e) ? e.toDate() : _(e) ? /* @__PURE__ */ new Date() : new Date(k(e)), ue = (e, t, n) => t.replace(/YYYY/g, n.year || `${e.getFullYear()}`).replace(/MM/g, n.month || I(e.getMonth() + 1)).replace(/DD/g, n.day || I(e.getDate())).replace(/HH/g, n.hour || I(e.getHours())).replace(/mm/g, n.minute || I(e.getMinutes())).replace(/ss/g, n.second || I(e.getSeconds())), Lt = () => _e() || O;
542
+ function an(e, t, n = w, o = y) {
543
+ const r = typeof t == "object" && t !== null ? t : { timeZone: t, format: n, locale: o }, a = _t(e);
544
+ if (Number.isNaN(a.getTime())) return "";
545
+ const s = m(r.timeZone) || Lt(), c = r.format || w;
548
546
  try {
549
- const f = new Intl.DateTimeFormat(r.locale || I, {
550
- timeZone: a,
547
+ const f = new Intl.DateTimeFormat(r.locale || y, {
548
+ timeZone: s,
551
549
  year: "numeric",
552
550
  month: "2-digit",
553
551
  day: "2-digit",
@@ -555,151 +553,151 @@ function Rt(e, t, n = A, o = I) {
555
553
  minute: "2-digit",
556
554
  second: "2-digit",
557
555
  hour12: !1
558
- }).formatToParts(s).reduce((l, d) => (d.type !== "literal" && (l[d.type] = d.value), l), {});
559
- return oe(s, c, f);
556
+ }).formatToParts(a).reduce((l, d) => (d.type !== "literal" && (l[d.type] = d.value), l), {});
557
+ return ue(a, c, f);
560
558
  } catch {
561
- return oe(s, c, {});
559
+ return ue(a, c, {});
562
560
  }
563
561
  }
564
- const Ae = (e) => `UTC${e}`, Ee = (e, t) => {
565
- const n = yt(e, t), o = n >= 0 ? "+" : "-", r = Math.abs(n);
566
- return `UTC${o}${y(Math.floor(r / 60))}:${y(r % 60)}`;
567
- }, St = (e, t = /* @__PURE__ */ new Date()) => {
562
+ const ke = (e) => `UTC${e}`, ve = (e, t) => {
563
+ const n = pt(e, t), o = n >= 0 ? "+" : "-", r = Math.abs(n);
564
+ return `UTC${o}${I(Math.floor(r / 60))}:${I(r % 60)}`;
565
+ }, bt = (e, t = /* @__PURE__ */ new Date()) => {
568
566
  const n = e.currentUtcOffsetText || e.baseUtcOffsetText;
569
- return n ? `UTC${n}` : Ee(t, e.timeZoneId);
570
- }, _t = (e, t) => {
567
+ return n ? `UTC${n}` : ve(t, e.timeZoneId);
568
+ }, Ct = (e, t) => {
571
569
  const n = e.match(/([+-]\d{1,2})(?::?(\d{2}))?/) || [];
572
570
  if (!n[1]) return t;
573
- const o = n[1].startsWith("-") ? "-" : "+", r = n[1].replace(/[+-]/, "").padStart(2, "0"), s = n[2] || "00";
574
- return `UTC${o}${r}:${s}`;
575
- }, Lt = (e, t, n) => {
576
- var r, s;
577
- const o = Ae(n.format("Z"));
571
+ const o = n[1].startsWith("-") ? "-" : "+", r = n[1].replace(/[+-]/, "").padStart(2, "0"), a = n[2] || "00";
572
+ return `UTC${o}${r}:${a}`;
573
+ }, kt = (e, t, n) => {
574
+ var r, a;
575
+ const o = ke(n.format("Z"));
578
576
  try {
579
- const a = Intl.DateTimeFormat.supportedLocalesOf([t])[0] || t, c = (s = (r = new Intl.DateTimeFormat(a, { timeZone: e, timeZoneName: "long" }).formatToParts(n.toDate()).find((i) => i.type === "timeZoneName")) == null ? void 0 : r.value) == null ? void 0 : s.trim();
580
- return c ? /^(gmt|utc)/i.test(c) ? _t(c, o) : c : o;
577
+ const s = Intl.DateTimeFormat.supportedLocalesOf([t])[0] || t, c = (a = (r = new Intl.DateTimeFormat(s, { timeZone: e, timeZoneName: "long" }).formatToParts(n.toDate()).find((i) => i.type === "timeZoneName")) == null ? void 0 : r.value) == null ? void 0 : a.trim();
578
+ return c ? /^(gmt|utc)/i.test(c) ? Ct(c, o) : c : o;
581
579
  } catch {
582
580
  return o;
583
581
  }
584
- }, ze = (e, t) => {
582
+ }, Ne = (e, t) => {
585
583
  const n = t.year();
586
584
  return Array.from(
587
585
  new Set(
588
586
  Array.from({ length: 12 }, (o, r) => {
589
- const s = `${r + 1}`.padStart(2, "0"), a = `${n}-${s}-15 12:00:00`;
590
- return u.tz(a, e).utcOffset();
587
+ const a = `${r + 1}`.padStart(2, "0"), s = `${n}-${a}-15 12:00:00`;
588
+ return u.tz(s, e).utcOffset();
591
589
  })
592
590
  )
593
591
  );
594
- }, Se = (e, t) => {
595
- const n = h(e);
596
- if (!L(n)) return !1;
597
- const o = v(t).tz(n);
598
- return ze(n, o).length > 1;
592
+ }, Me = (e, t) => {
593
+ const n = T(e);
594
+ if (!b(n)) return !1;
595
+ const o = C(t).tz(n);
596
+ return Ne(n, o).length > 1;
599
597
  }, V = (e, t) => {
600
- const n = h(e);
601
- if (!L(n)) return !1;
602
- const o = v(t).tz(n), r = ze(n, o);
598
+ const n = T(e);
599
+ if (!b(n)) return !1;
600
+ const o = C(t).tz(n), r = Ne(n, o);
603
601
  return r.length <= 1 ? !1 : o.utcOffset() === Math.max(...r);
604
- }, Gt = (e, t) => V(e, t), _e = (e) => {
602
+ }, sn = (e, t) => V(e, t), Fe = (e) => {
605
603
  if (e === 1 || e === "1") return !0;
606
604
  if (e === 0 || e === "0") return !1;
607
605
  }, vt = (e, t) => {
608
- const n = _e(e.dynamicOffsetFlag);
609
- return typeof n == "boolean" ? n : Se(e.timeZoneId, t);
610
- }, bt = (e, t) => {
611
- const n = _e(e.currentDstFlag);
606
+ const n = Fe(e.dynamicOffsetFlag);
607
+ return typeof n == "boolean" ? n : Me(e.timeZoneId, t);
608
+ }, Nt = (e, t) => {
609
+ const n = Fe(e.currentDstFlag);
612
610
  return typeof n == "boolean" ? n : V(e.timeZoneId, t);
613
- }, Ht = (e, t = /* @__PURE__ */ new Date()) => e.map((n) => {
614
- const o = n.tzShowName || St(n, t), r = vt(n, t);
611
+ }, cn = (e, t = /* @__PURE__ */ new Date()) => e.map((n) => {
612
+ const o = n.tzShowName || bt(n, t), r = vt(n, t);
615
613
  return {
616
614
  value: n.timeZoneId,
617
615
  zoneName: o,
618
616
  label: o,
619
617
  hasDST: r,
620
- isDST: r ? bt(n, t) : !1
618
+ isDST: r ? Nt(n, t) : !1
621
619
  };
622
- }), Ct = (e) => {
620
+ }), Mt = (e) => {
623
621
  const t = e.toLowerCase().split("-")[0];
624
- return ee[t] || ee.default;
625
- }, kt = (e) => typeof e.showDaylightSavingLabel == "boolean" ? e.showDaylightSavingLabel : e.showDaylightSavingMarker ?? !0, Jt = (e, t, n = {}) => {
622
+ return ae[t] || ae.default;
623
+ }, Ft = (e) => typeof e.showDaylightSavingLabel == "boolean" ? e.showDaylightSavingLabel : e.showDaylightSavingMarker ?? !0, un = (e, t, n = {}) => {
626
624
  const {
627
625
  showZoneLabel: o = !0,
628
626
  zoneLabel: r,
629
- hasDST: s,
630
- isDST: a,
627
+ hasDST: a,
628
+ isDST: s,
631
629
  standardTimeLabel: c,
632
630
  daylightSavingLabel: i,
633
- format: f = me
634
- } = n, l = h(t), d = It(e, l, f), p = typeof s == "boolean" ? s : Se(l, e), Z = (typeof a == "boolean" ? a : V(l, e)) ? i : c, D = p && Z ? `[${Z}]` : "";
635
- return o ? [d, r || Ee(e, l), D].filter(Boolean).join(" ") : [d, D].filter(Boolean).join(" ");
636
- }, Kt = (e = {}) => {
637
- const t = Zt(e.locale, e.supportedLocales), n = h(e.timeZone), o = v(e.value).tz(n), r = Lt(n, t, o), s = Ae(o.format("Z")), a = V(n, o), c = a ? Ct(t) : "", i = kt(e), f = a && i ? `${r} - ${c}` : r;
631
+ format: f = pe
632
+ } = n, l = T(t), d = At(e, l, f), Z = typeof a == "boolean" ? a : Me(l, e), g = (typeof s == "boolean" ? s : V(l, e)) ? i : c, D = Z && g ? `[${g}]` : "";
633
+ return o ? [d, r || ve(e, l), D].filter(Boolean).join(" ") : [d, D].filter(Boolean).join(" ");
634
+ }, fn = (e = {}) => {
635
+ const t = Dt(e.locale, e.supportedLocales), n = T(e.timeZone), o = C(e.value).tz(n), r = kt(n, t, o), a = ke(o.format("Z")), s = V(n, o), c = s ? Mt(t) : "", i = Ft(e), f = s && i ? `${r} - ${c}` : r;
638
636
  return {
639
- formattedValue: o.format(e.format || Be),
637
+ formattedValue: o.format(e.format || qe),
640
638
  locale: t,
641
639
  timeZone: n,
642
640
  timeZoneName: r,
643
641
  timeZoneLabel: f,
644
- offsetLabel: s,
642
+ offsetLabel: a,
645
643
  offsetMinutes: o.utcOffset(),
646
- isDaylightSavingTime: a,
644
+ isDaylightSavingTime: s,
647
645
  daylightSavingLabel: c
648
646
  };
649
647
  };
650
648
  export {
651
- qe as IANA_TIMEZONE_DATA_CHANGE_EVENT,
652
- de as TIMEZONE_CHANGE_EVENT,
653
- ie as TIME_ZONE_PACKED_DATA_URL,
654
- $ as UPF_IANA_TIMEZONE_DATA_KEY,
655
- We as UPF_TIMEZONE_MESSAGE_TYPE,
656
- st as applyDayjsIanaTimeZoneData,
657
- jt as applyMomentIanaTimeZoneData,
658
- ue as assertPackedIanaData,
659
- Je as assertPackedIanaTzData,
660
- ce as buildIanaFetchInit,
661
- Ht as buildTimeZoneDisplayOptions,
662
- Ue as clearDayjsIanaCache,
663
- Ze as clientTimeZone,
664
- $e as createIanaDbFromPackedData,
665
- T as dayjsTimezoneIanaPlugin,
666
- Ie as ensureInjectedIanaTimeZoneData,
667
- Jt as formatClientLocalDateTimeLine,
668
- It as formatInTimeZone,
669
- At as formatLocalDateTime,
670
- Rt as formatLocalDateTimeIntl,
671
- Ee as formatTimeZoneOffsetLabel,
672
- be as getAccessTokenFromLocalStorage,
673
- zt as getBrowserTimeZone,
674
- Me as getCachedDayjsPackedIanaData,
675
- ht as getClientTimeZone,
676
- Ce as getDefaultIanaAuthorization,
677
- Ft as getKnownTimeZoneIds,
678
- he as getRuntimeIanaTimeZoneDataSnapshot,
679
- Kt as getTimeZoneDisplayInfo,
680
- yt as getZoneUtcOffset,
681
- Tt as initClientTimeZoneSync,
682
- Gt as isDaylightSavingTime,
683
- L as isKnownTimeZone,
684
- Ot as loadDayjsIanaTimeZoneData,
685
- le as loadIanaData,
686
- X as loadIanaFromApi,
687
- le as loadMomentIanaData,
688
- X as loadMomentIanaFromApi,
689
- xt as loadMomentIanaTimeZoneData,
690
- Zt as normalizeLocaleCode,
691
- Yt as onClientTimeZoneChange,
692
- Pe as preloadDayjsIanaFromApi,
693
- fe as preloadDayjsIanaFromData,
694
- nt as readInjectedParentIanaTimeZoneDataSnapshot,
649
+ Xe as IANA_TIMEZONE_DATA_CHANGE_EVENT,
650
+ Ae as TIMEZONE_CHANGE_EVENT,
651
+ Gt as TIME_ZONE_PACKED_DATA_URL,
652
+ G as UPF_IANA_TIMEZONE_DATA_KEY,
653
+ Qe as UPF_TIMEZONE_MESSAGE_TYPE,
654
+ it as applyDayjsIanaTimeZoneData,
655
+ en as applyMomentIanaTimeZoneData,
656
+ Ot as assertPackedIanaData,
657
+ Bt as assertPackedIanaTzData,
658
+ Kt as buildIanaFetchInit,
659
+ cn as buildTimeZoneDisplayOptions,
660
+ Rt as clearDayjsIanaCache,
661
+ Se as clientTimeZone,
662
+ Yt as createIanaDbFromPackedData,
663
+ p as dayjsTimezoneIanaPlugin,
664
+ ut as ensureInjectedIanaTimeZoneData,
665
+ un as formatClientLocalDateTimeLine,
666
+ At as formatInTimeZone,
667
+ St as formatLocalDateTime,
668
+ an as formatLocalDateTimeIntl,
669
+ ve as formatTimeZoneOffsetLabel,
670
+ Ht as getAccessTokenFromLocalStorage,
671
+ Lt as getBrowserTimeZone,
672
+ xt as getCachedDayjsPackedIanaData,
673
+ yt as getClientTimeZone,
674
+ Jt as getDefaultIanaAuthorization,
675
+ Qt as getKnownTimeZoneIds,
676
+ Ee as getRuntimeIanaTimeZoneDataSnapshot,
677
+ fn as getTimeZoneDisplayInfo,
678
+ pt as getZoneUtcOffset,
679
+ It as initClientTimeZoneSync,
680
+ sn as isDaylightSavingTime,
681
+ b as isKnownTimeZone,
682
+ Xt as loadDayjsIanaTimeZoneData,
683
+ Wt as loadIanaData,
684
+ qt as loadIanaFromApi,
685
+ De as loadMomentIanaData,
686
+ Y as loadMomentIanaFromApi,
687
+ tn as loadMomentIanaTimeZoneData,
688
+ Dt as normalizeLocaleCode,
689
+ rn as onClientTimeZoneChange,
690
+ Vt as preloadDayjsIanaFromApi,
691
+ $t as preloadDayjsIanaFromData,
692
+ ot as readInjectedParentIanaTimeZoneDataSnapshot,
695
693
  S as rebuildKnownTimeZoneIds,
696
- h as resolveTimeZone,
697
- St as resolveUtcOffsetFallback,
698
- ut as setClientTimeZone,
699
- F as setDefaultTimeZone,
700
- Te as setRuntimeIanaTimeZoneDataSnapshot,
701
- Vt as syncClientTimeZone,
702
- Se as timeZoneHasDST,
694
+ T as resolveTimeZone,
695
+ bt as resolveUtcOffsetFallback,
696
+ mt as setClientTimeZone,
697
+ j as setDefaultTimeZone,
698
+ we as setRuntimeIanaTimeZoneDataSnapshot,
699
+ nn as syncClientTimeZone,
700
+ Me as timeZoneHasDST,
703
701
  V as timeZoneIsDST,
704
- $t as toLocalDate
702
+ on as toLocalDate
705
703
  };