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

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