bitz-react-admin-ui 2.6.5 → 2.6.7

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.
@@ -29,6 +29,7 @@ type CustomActionsFunType<T> = (record: T, index: number) => CustomAction[];
29
29
  /** 按钮操作列属性 */
30
30
  interface BitzTableActionProps<T = any> {
31
31
  loading?: boolean;
32
+ useMaxWidth?: boolean;
32
33
  /**
33
34
  * 操作按钮组,主要操作、次要操作、下拉列表(含危险操作)
34
35
  * @次要操作 次要操作以下拉菜单显示,如果actionGroup的长度大于3,从第4个开始直到最后的所有按钮都为次要操作按钮
@@ -1,297 +1,297 @@
1
- import { commonjsGlobal as R } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
- import { __module as U } from "../../../../../_virtual/dayjs.min2.mjs";
3
- var V;
4
- function et() {
5
- return V ? U.exports : (V = 1, function(B, K) {
6
- (function(C, k) {
7
- B.exports = k();
8
- })(R, function() {
9
- var C = 1e3, k = 6e4, q = 36e5, A = "millisecond", S = "second", w = "minute", _ = "hour", M = "day", T = "week", m = "month", F = "quarter", y = "year", O = "date", J = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(i) {
10
- var n = ["th", "st", "nd", "rd"], t = i % 100;
11
- return "[" + i + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
12
- } }, I = function(i, n, t) {
13
- var r = String(i);
14
- return !r || r.length >= n ? i : "" + Array(n + 1 - r.length).join(t) + i;
15
- }, Q = { s: I, z: function(i) {
16
- var n = -i.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60;
17
- return (n <= 0 ? "+" : "-") + I(r, 2, "0") + ":" + I(e, 2, "0");
18
- }, m: function i(n, t) {
19
- if (n.date() < t.date())
20
- return -i(t, n);
21
- var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, m), s = t - e < 0, u = n.clone().add(r + (s ? -1 : 1), m);
22
- return +(-(r + (t - e) / (s ? e - u : u - e)) || 0);
23
- }, a: function(i) {
24
- return i < 0 ? Math.ceil(i) || 0 : Math.floor(i);
25
- }, p: function(i) {
26
- return { M: m, y, w: T, d: M, D: O, h: _, m: w, s: S, ms: A, Q: F }[i] || String(i || "").toLowerCase().replace(/s$/, "");
27
- }, u: function(i) {
28
- return i === void 0;
29
- } }, x = "en", D = {};
30
- D[x] = P;
31
- var Z = "$isDayjsObject", N = function(i) {
32
- return i instanceof L || !(!i || !i[Z]);
33
- }, j = function i(n, t, r) {
34
- var e;
35
- if (!n)
36
- return x;
37
- if (typeof n == "string") {
38
- var s = n.toLowerCase();
39
- D[s] && (e = s), t && (D[s] = t, e = s);
40
- var u = n.split("-");
41
- if (!e && u.length > 1)
42
- return i(u[0]);
43
- } else {
44
- var o = n.name;
45
- D[o] = n, e = o;
46
- }
47
- return !r && e && (x = e), e || !r && x;
48
- }, f = function(i, n) {
49
- if (N(i))
50
- return i.clone();
51
- var t = typeof n == "object" ? n : {};
52
- return t.date = i, t.args = arguments, new L(t);
53
- }, a = Q;
54
- a.l = j, a.i = N, a.w = function(i, n) {
55
- return f(i, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
56
- };
57
- var L = function() {
58
- function i(t) {
59
- this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
60
- }
61
- var n = i.prototype;
62
- return n.parse = function(t) {
63
- this.$d = function(r) {
64
- var e = r.date, s = r.utc;
65
- if (e === null)
66
- return /* @__PURE__ */ new Date(NaN);
67
- if (a.u(e))
68
- return /* @__PURE__ */ new Date();
69
- if (e instanceof Date)
70
- return new Date(e);
71
- if (typeof e == "string" && !/Z$/i.test(e)) {
72
- var u = e.match(E);
73
- if (u) {
74
- var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
75
- return s ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
76
- }
77
- }
1
+ import { commonjsGlobal as Q, getDefaultExportFromCjs as K } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
+ import { __module as E } from "../../../../../_virtual/dayjs.min.mjs";
3
+ (function(V, X) {
4
+ (function(W, k) {
5
+ V.exports = k();
6
+ })(Q, function() {
7
+ var W = 1e3, k = 6e4, N = 36e5, A = "millisecond", S = "second", w = "minute", O = "hour", M = "day", T = "week", m = "month", U = "quarter", y = "year", _ = "date", J = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, G = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
8
+ var n = ["th", "st", "nd", "rd"], t = s % 100;
9
+ return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
10
+ } }, I = function(s, n, t) {
11
+ var r = String(s);
12
+ return !r || r.length >= n ? s : "" + Array(n + 1 - r.length).join(t) + s;
13
+ }, P = { s: I, z: function(s) {
14
+ var n = -s.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60;
15
+ return (n <= 0 ? "+" : "-") + I(r, 2, "0") + ":" + I(e, 2, "0");
16
+ }, m: function s(n, t) {
17
+ if (n.date() < t.date())
18
+ return -s(t, n);
19
+ var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, m), i = t - e < 0, u = n.clone().add(r + (i ? -1 : 1), m);
20
+ return +(-(r + (t - e) / (i ? e - u : u - e)) || 0);
21
+ }, a: function(s) {
22
+ return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
23
+ }, p: function(s) {
24
+ return { M: m, y, w: T, d: M, D: _, h: O, m: w, s: S, ms: A, Q: U }[s] || String(s || "").toLowerCase().replace(/s$/, "");
25
+ }, u: function(s) {
26
+ return s === void 0;
27
+ } }, x = "en", D = {};
28
+ D[x] = G;
29
+ var Z = "$isDayjsObject", F = function(s) {
30
+ return s instanceof C || !(!s || !s[Z]);
31
+ }, j = function s(n, t, r) {
32
+ var e;
33
+ if (!n)
34
+ return x;
35
+ if (typeof n == "string") {
36
+ var i = n.toLowerCase();
37
+ D[i] && (e = i), t && (D[i] = t, e = i);
38
+ var u = n.split("-");
39
+ if (!e && u.length > 1)
40
+ return s(u[0]);
41
+ } else {
42
+ var o = n.name;
43
+ D[o] = n, e = o;
44
+ }
45
+ return !r && e && (x = e), e || !r && x;
46
+ }, f = function(s, n) {
47
+ if (F(s))
48
+ return s.clone();
49
+ var t = typeof n == "object" ? n : {};
50
+ return t.date = s, t.args = arguments, new C(t);
51
+ }, a = P;
52
+ a.l = j, a.i = F, a.w = function(s, n) {
53
+ return f(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
54
+ };
55
+ var C = function() {
56
+ function s(t) {
57
+ this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
58
+ }
59
+ var n = s.prototype;
60
+ return n.parse = function(t) {
61
+ this.$d = function(r) {
62
+ var e = r.date, i = r.utc;
63
+ if (e === null)
64
+ return /* @__PURE__ */ new Date(NaN);
65
+ if (a.u(e))
66
+ return /* @__PURE__ */ new Date();
67
+ if (e instanceof Date)
78
68
  return new Date(e);
79
- }(t), this.init();
80
- }, n.init = function() {
81
- var t = this.$d;
82
- this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
83
- }, n.$utils = function() {
84
- return a;
85
- }, n.isValid = function() {
86
- return this.$d.toString() !== J;
87
- }, n.isSame = function(t, r) {
88
- var e = f(t);
89
- return this.startOf(r) <= e && e <= this.endOf(r);
90
- }, n.isAfter = function(t, r) {
91
- return f(t) < this.startOf(r);
92
- }, n.isBefore = function(t, r) {
93
- return this.endOf(r) < f(t);
94
- }, n.$g = function(t, r, e) {
95
- return a.u(t) ? this[r] : this.set(e, t);
96
- }, n.unix = function() {
97
- return Math.floor(this.valueOf() / 1e3);
98
- }, n.valueOf = function() {
99
- return this.$d.getTime();
100
- }, n.startOf = function(t, r) {
101
- var e = this, s = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
102
- var v = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
103
- return s ? v : v.endOf(M);
104
- }, c = function(p, $) {
105
- return a.w(e.toDate()[p].apply(e.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
106
- }, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
107
- switch (u) {
108
- case y:
109
- return s ? o(1, 0) : o(31, 11);
110
- case m:
111
- return s ? o(1, d) : o(0, d + 1);
112
- case T:
113
- var g = this.$locale().weekStart || 0, Y = (h < g ? h + 7 : h) - g;
114
- return o(s ? l - Y : l + (6 - Y), d);
115
- case M:
116
- case O:
117
- return c(b + "Hours", 0);
118
- case _:
119
- return c(b + "Minutes", 1);
120
- case w:
121
- return c(b + "Seconds", 2);
122
- case S:
123
- return c(b + "Milliseconds", 3);
124
- default:
125
- return this.clone();
126
- }
127
- }, n.endOf = function(t) {
128
- return this.startOf(t, !1);
129
- }, n.$set = function(t, r) {
130
- var e, s = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[O] = u + "Date", e[m] = u + "Month", e[y] = u + "FullYear", e[_] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[A] = u + "Milliseconds", e)[s], c = s === M ? this.$D + (r - this.$W) : r;
131
- if (s === m || s === y) {
132
- var h = this.clone().set(O, 1);
133
- h.$d[o](c), h.init(), this.$d = h.set(O, Math.min(this.$D, h.daysInMonth())).$d;
134
- } else
135
- o && this.$d[o](c);
136
- return this.init(), this;
137
- }, n.set = function(t, r) {
138
- return this.clone().$set(t, r);
139
- }, n.get = function(t) {
140
- return this[a.p(t)]();
141
- }, n.add = function(t, r) {
142
- var e, s = this;
143
- t = Number(t);
144
- var u = a.p(r), o = function(d) {
145
- var l = f(s);
146
- return a.w(l.date(l.date() + Math.round(d * t)), s);
147
- };
148
- if (u === m)
149
- return this.set(m, this.$M + t);
150
- if (u === y)
151
- return this.set(y, this.$y + t);
152
- if (u === M)
153
- return o(1);
154
- if (u === T)
155
- return o(7);
156
- var c = (e = {}, e[w] = k, e[_] = q, e[S] = C, e)[u] || 1, h = this.$d.getTime() + t * c;
157
- return a.w(h, this);
158
- }, n.subtract = function(t, r) {
159
- return this.add(-1 * t, r);
160
- }, n.format = function(t) {
161
- var r = this, e = this.$locale();
162
- if (!this.isValid())
163
- return e.invalidDate || J;
164
- var s = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, v, H, W) {
165
- return $ && ($[v] || $(r, s)) || H[v].slice(0, W);
166
- }, Y = function($) {
167
- return a.s(o % 12 || 12, $, "0");
168
- }, p = b || function($, v, H) {
169
- var W = $ < 12 ? "AM" : "PM";
170
- return H ? W.toLowerCase() : W;
171
- };
172
- return s.replace(G, function($, v) {
173
- return v || function(H) {
174
- switch (H) {
175
- case "YY":
176
- return String(r.$y).slice(-2);
177
- case "YYYY":
178
- return a.s(r.$y, 4, "0");
179
- case "M":
180
- return h + 1;
181
- case "MM":
182
- return a.s(h + 1, 2, "0");
183
- case "MMM":
184
- return g(e.monthsShort, h, l, 3);
185
- case "MMMM":
186
- return g(l, h);
187
- case "D":
188
- return r.$D;
189
- case "DD":
190
- return a.s(r.$D, 2, "0");
191
- case "d":
192
- return String(r.$W);
193
- case "dd":
194
- return g(e.weekdaysMin, r.$W, d, 2);
195
- case "ddd":
196
- return g(e.weekdaysShort, r.$W, d, 3);
197
- case "dddd":
198
- return d[r.$W];
199
- case "H":
200
- return String(o);
201
- case "HH":
202
- return a.s(o, 2, "0");
203
- case "h":
204
- return Y(1);
205
- case "hh":
206
- return Y(2);
207
- case "a":
208
- return p(o, c, !0);
209
- case "A":
210
- return p(o, c, !1);
211
- case "m":
212
- return String(c);
213
- case "mm":
214
- return a.s(c, 2, "0");
215
- case "s":
216
- return String(r.$s);
217
- case "ss":
218
- return a.s(r.$s, 2, "0");
219
- case "SSS":
220
- return a.s(r.$ms, 3, "0");
221
- case "Z":
222
- return u;
223
- }
224
- return null;
225
- }($) || u.replace(":", "");
226
- });
227
- }, n.utcOffset = function() {
228
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
229
- }, n.diff = function(t, r, e) {
230
- var s, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * k, d = this - c, l = function() {
231
- return a.m(u, c);
232
- };
233
- switch (o) {
234
- case y:
235
- s = l() / 12;
236
- break;
237
- case m:
238
- s = l();
239
- break;
240
- case F:
241
- s = l() / 3;
242
- break;
243
- case T:
244
- s = (d - h) / 6048e5;
245
- break;
246
- case M:
247
- s = (d - h) / 864e5;
248
- break;
249
- case _:
250
- s = d / q;
251
- break;
252
- case w:
253
- s = d / k;
254
- break;
255
- case S:
256
- s = d / C;
257
- break;
258
- default:
259
- s = d;
69
+ if (typeof e == "string" && !/Z$/i.test(e)) {
70
+ var u = e.match(q);
71
+ if (u) {
72
+ var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
73
+ return i ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
74
+ }
260
75
  }
261
- return e ? s : a.a(s);
262
- }, n.daysInMonth = function() {
263
- return this.endOf(m).$D;
264
- }, n.$locale = function() {
265
- return D[this.$L];
266
- }, n.locale = function(t, r) {
267
- if (!t)
268
- return this.$L;
269
- var e = this.clone(), s = j(t, r, !0);
270
- return s && (e.$L = s), e;
271
- }, n.clone = function() {
272
- return a.w(this.$d, this);
273
- }, n.toDate = function() {
274
- return new Date(this.valueOf());
275
- }, n.toJSON = function() {
276
- return this.isValid() ? this.toISOString() : null;
277
- }, n.toISOString = function() {
278
- return this.$d.toISOString();
279
- }, n.toString = function() {
280
- return this.$d.toUTCString();
281
- }, i;
282
- }(), z = L.prototype;
283
- return f.prototype = z, [["$ms", A], ["$s", S], ["$m", w], ["$H", _], ["$W", M], ["$M", m], ["$y", y], ["$D", O]].forEach(function(i) {
284
- z[i[1]] = function(n) {
285
- return this.$g(n, i[0], i[1]);
76
+ return new Date(e);
77
+ }(t), this.init();
78
+ }, n.init = function() {
79
+ var t = this.$d;
80
+ this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
81
+ }, n.$utils = function() {
82
+ return a;
83
+ }, n.isValid = function() {
84
+ return this.$d.toString() !== J;
85
+ }, n.isSame = function(t, r) {
86
+ var e = f(t);
87
+ return this.startOf(r) <= e && e <= this.endOf(r);
88
+ }, n.isAfter = function(t, r) {
89
+ return f(t) < this.startOf(r);
90
+ }, n.isBefore = function(t, r) {
91
+ return this.endOf(r) < f(t);
92
+ }, n.$g = function(t, r, e) {
93
+ return a.u(t) ? this[r] : this.set(e, t);
94
+ }, n.unix = function() {
95
+ return Math.floor(this.valueOf() / 1e3);
96
+ }, n.valueOf = function() {
97
+ return this.$d.getTime();
98
+ }, n.startOf = function(t, r) {
99
+ var e = this, i = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
100
+ var v = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
101
+ return i ? v : v.endOf(M);
102
+ }, c = function(p, $) {
103
+ return a.w(e.toDate()[p].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
104
+ }, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
105
+ switch (u) {
106
+ case y:
107
+ return i ? o(1, 0) : o(31, 11);
108
+ case m:
109
+ return i ? o(1, d) : o(0, d + 1);
110
+ case T:
111
+ var g = this.$locale().weekStart || 0, Y = (h < g ? h + 7 : h) - g;
112
+ return o(i ? l - Y : l + (6 - Y), d);
113
+ case M:
114
+ case _:
115
+ return c(b + "Hours", 0);
116
+ case O:
117
+ return c(b + "Minutes", 1);
118
+ case w:
119
+ return c(b + "Seconds", 2);
120
+ case S:
121
+ return c(b + "Milliseconds", 3);
122
+ default:
123
+ return this.clone();
124
+ }
125
+ }, n.endOf = function(t) {
126
+ return this.startOf(t, !1);
127
+ }, n.$set = function(t, r) {
128
+ var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[_] = u + "Date", e[m] = u + "Month", e[y] = u + "FullYear", e[O] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[A] = u + "Milliseconds", e)[i], c = i === M ? this.$D + (r - this.$W) : r;
129
+ if (i === m || i === y) {
130
+ var h = this.clone().set(_, 1);
131
+ h.$d[o](c), h.init(), this.$d = h.set(_, Math.min(this.$D, h.daysInMonth())).$d;
132
+ } else
133
+ o && this.$d[o](c);
134
+ return this.init(), this;
135
+ }, n.set = function(t, r) {
136
+ return this.clone().$set(t, r);
137
+ }, n.get = function(t) {
138
+ return this[a.p(t)]();
139
+ }, n.add = function(t, r) {
140
+ var e, i = this;
141
+ t = Number(t);
142
+ var u = a.p(r), o = function(d) {
143
+ var l = f(i);
144
+ return a.w(l.date(l.date() + Math.round(d * t)), i);
145
+ };
146
+ if (u === m)
147
+ return this.set(m, this.$M + t);
148
+ if (u === y)
149
+ return this.set(y, this.$y + t);
150
+ if (u === M)
151
+ return o(1);
152
+ if (u === T)
153
+ return o(7);
154
+ var c = (e = {}, e[w] = k, e[O] = N, e[S] = W, e)[u] || 1, h = this.$d.getTime() + t * c;
155
+ return a.w(h, this);
156
+ }, n.subtract = function(t, r) {
157
+ return this.add(-1 * t, r);
158
+ }, n.format = function(t) {
159
+ var r = this, e = this.$locale();
160
+ if (!this.isValid())
161
+ return e.invalidDate || J;
162
+ var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, v, H, L) {
163
+ return $ && ($[v] || $(r, i)) || H[v].slice(0, L);
164
+ }, Y = function($) {
165
+ return a.s(o % 12 || 12, $, "0");
166
+ }, p = b || function($, v, H) {
167
+ var L = $ < 12 ? "AM" : "PM";
168
+ return H ? L.toLowerCase() : L;
169
+ };
170
+ return i.replace(B, function($, v) {
171
+ return v || function(H) {
172
+ switch (H) {
173
+ case "YY":
174
+ return String(r.$y).slice(-2);
175
+ case "YYYY":
176
+ return a.s(r.$y, 4, "0");
177
+ case "M":
178
+ return h + 1;
179
+ case "MM":
180
+ return a.s(h + 1, 2, "0");
181
+ case "MMM":
182
+ return g(e.monthsShort, h, l, 3);
183
+ case "MMMM":
184
+ return g(l, h);
185
+ case "D":
186
+ return r.$D;
187
+ case "DD":
188
+ return a.s(r.$D, 2, "0");
189
+ case "d":
190
+ return String(r.$W);
191
+ case "dd":
192
+ return g(e.weekdaysMin, r.$W, d, 2);
193
+ case "ddd":
194
+ return g(e.weekdaysShort, r.$W, d, 3);
195
+ case "dddd":
196
+ return d[r.$W];
197
+ case "H":
198
+ return String(o);
199
+ case "HH":
200
+ return a.s(o, 2, "0");
201
+ case "h":
202
+ return Y(1);
203
+ case "hh":
204
+ return Y(2);
205
+ case "a":
206
+ return p(o, c, !0);
207
+ case "A":
208
+ return p(o, c, !1);
209
+ case "m":
210
+ return String(c);
211
+ case "mm":
212
+ return a.s(c, 2, "0");
213
+ case "s":
214
+ return String(r.$s);
215
+ case "ss":
216
+ return a.s(r.$s, 2, "0");
217
+ case "SSS":
218
+ return a.s(r.$ms, 3, "0");
219
+ case "Z":
220
+ return u;
221
+ }
222
+ return null;
223
+ }($) || u.replace(":", "");
224
+ });
225
+ }, n.utcOffset = function() {
226
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
227
+ }, n.diff = function(t, r, e) {
228
+ var i, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * k, d = this - c, l = function() {
229
+ return a.m(u, c);
286
230
  };
287
- }), f.extend = function(i, n) {
288
- return i.$i || (i(n, L, f), i.$i = !0), f;
289
- }, f.locale = j, f.isDayjs = N, f.unix = function(i) {
290
- return f(1e3 * i);
291
- }, f.en = D[x], f.Ls = D, f.p = {}, f;
292
- });
293
- }(U), U.exports);
294
- }
231
+ switch (o) {
232
+ case y:
233
+ i = l() / 12;
234
+ break;
235
+ case m:
236
+ i = l();
237
+ break;
238
+ case U:
239
+ i = l() / 3;
240
+ break;
241
+ case T:
242
+ i = (d - h) / 6048e5;
243
+ break;
244
+ case M:
245
+ i = (d - h) / 864e5;
246
+ break;
247
+ case O:
248
+ i = d / N;
249
+ break;
250
+ case w:
251
+ i = d / k;
252
+ break;
253
+ case S:
254
+ i = d / W;
255
+ break;
256
+ default:
257
+ i = d;
258
+ }
259
+ return e ? i : a.a(i);
260
+ }, n.daysInMonth = function() {
261
+ return this.endOf(m).$D;
262
+ }, n.$locale = function() {
263
+ return D[this.$L];
264
+ }, n.locale = function(t, r) {
265
+ if (!t)
266
+ return this.$L;
267
+ var e = this.clone(), i = j(t, r, !0);
268
+ return i && (e.$L = i), e;
269
+ }, n.clone = function() {
270
+ return a.w(this.$d, this);
271
+ }, n.toDate = function() {
272
+ return new Date(this.valueOf());
273
+ }, n.toJSON = function() {
274
+ return this.isValid() ? this.toISOString() : null;
275
+ }, n.toISOString = function() {
276
+ return this.$d.toISOString();
277
+ }, n.toString = function() {
278
+ return this.$d.toUTCString();
279
+ }, s;
280
+ }(), z = C.prototype;
281
+ return f.prototype = z, [["$ms", A], ["$s", S], ["$m", w], ["$H", O], ["$W", M], ["$M", m], ["$y", y], ["$D", _]].forEach(function(s) {
282
+ z[s[1]] = function(n) {
283
+ return this.$g(n, s[0], s[1]);
284
+ };
285
+ }), f.extend = function(s, n) {
286
+ return s.$i || (s(n, C, f), s.$i = !0), f;
287
+ }, f.locale = j, f.isDayjs = F, f.unix = function(s) {
288
+ return f(1e3 * s);
289
+ }, f.en = D[x], f.Ls = D, f.p = {}, f;
290
+ });
291
+ })(E);
292
+ var R = E.exports;
293
+ const nt = /* @__PURE__ */ K(R);
295
294
  export {
296
- et as __require
295
+ R as d,
296
+ nt as default
297
297
  };
@@ -1,19 +1,19 @@
1
- import { commonjsGlobal as o } from "../../../../../../_virtual/_commonjsHelpers.mjs";
2
- import { __module as d } from "../../../../../../_virtual/zh-cn.mjs";
3
- import { __require as i } from "../dayjs.min.mjs";
4
- (function(l, s) {
5
- (function(Y, m) {
6
- l.exports = m(i());
7
- })(o, function(Y) {
1
+ import { commonjsGlobal as n } from "../../../../../../_virtual/_commonjsHelpers.mjs";
2
+ import { __module as e } from "../../../../../../_virtual/zh-cn.mjs";
3
+ import { d as s } from "../dayjs.min.mjs";
4
+ (function(o, i) {
5
+ (function(r, m) {
6
+ o.exports = m(s);
7
+ })(n, function(r) {
8
8
  function m(_) {
9
9
  return _ && typeof _ == "object" && "default" in _ ? _ : { default: _ };
10
10
  }
11
- var n = m(Y), e = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(_, r) {
12
- return r === "W" ? _ + "周" : _ + "日";
13
- }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(_, r) {
14
- var t = 100 * _ + r;
11
+ var l = m(r), d = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(_, Y) {
12
+ return Y === "W" ? _ + "周" : _ + "日";
13
+ }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(_, Y) {
14
+ var t = 100 * _ + Y;
15
15
  return t < 600 ? "凌晨" : t < 900 ? "早上" : t < 1100 ? "上午" : t < 1300 ? "中午" : t < 1800 ? "下午" : "晚上";
16
16
  } };
17
- return n.default.locale(e, null, !0), e;
17
+ return l.default.locale(d, null, !0), d;
18
18
  });
19
- })(d);
19
+ })(e);