@das-fed/upf-utils 6.4.0-dev.261 → 6.4.0-dev.263

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