zh-CN.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. function de(i) {
  2. return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
  3. }
  4. var W = { exports: {} }, Z = { exports: {} }, ve = Z.exports, re;
  5. function $e() {
  6. return re || (re = 1, function(i, m) {
  7. (function(d, a) {
  8. i.exports = a();
  9. })(ve, function() {
  10. var d = 1e3, a = 6e4, h = 36e5, p = "millisecond", c = "second", _ = "minute", x = "hour", Y = "day", N = "week", S = "month", G = "quarter", g = "year", q = "date", X = "Invalid Date", he = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ye = /\[([^\]]+)]|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, _e = { 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(o) {
  11. var r = ["th", "st", "nd", "rd"], e = o % 100;
  12. return "[" + o + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
  13. } }, I = function(o, r, e) {
  14. var n = String(o);
  15. return !n || n.length >= r ? o : "" + Array(r + 1 - n.length).join(e) + o;
  16. }, me = { s: I, z: function(o) {
  17. var r = -o.utcOffset(), e = Math.abs(r), n = Math.floor(e / 60), t = e % 60;
  18. return (r <= 0 ? "+" : "-") + I(n, 2, "0") + ":" + I(t, 2, "0");
  19. }, m: function o(r, e) {
  20. if (r.date() < e.date()) return -o(e, r);
  21. var n = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(n, S), s = e - t < 0, u = r.clone().add(n + (s ? -1 : 1), S);
  22. return +(-(n + (e - t) / (s ? t - u : u - t)) || 0);
  23. }, a: function(o) {
  24. return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
  25. }, p: function(o) {
  26. return { M: S, y: g, w: N, d: Y, D: q, h: x, m: _, s: c, ms: p, Q: G }[o] || String(o || "").toLowerCase().replace(/s$/, "");
  27. }, u: function(o) {
  28. return o === void 0;
  29. } }, L = "en", w = {};
  30. w[L] = _e;
  31. var ee = "$isDayjsObject", E = function(o) {
  32. return o instanceof A || !(!o || !o[ee]);
  33. }, z = function o(r, e, n) {
  34. var t;
  35. if (!r) return L;
  36. if (typeof r == "string") {
  37. var s = r.toLowerCase();
  38. w[s] && (t = s), e && (w[s] = e, t = s);
  39. var u = r.split("-");
  40. if (!t && u.length > 1) return o(u[0]);
  41. } else {
  42. var l = r.name;
  43. w[l] = r, t = l;
  44. }
  45. return !n && t && (L = t), t || !n && L;
  46. }, v = function(o, r) {
  47. if (E(o)) return o.clone();
  48. var e = typeof r == "object" ? r : {};
  49. return e.date = o, e.args = arguments, new A(e);
  50. }, f = me;
  51. f.l = z, f.i = E, f.w = function(o, r) {
  52. return v(o, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
  53. };
  54. var A = function() {
  55. function o(e) {
  56. this.$L = z(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[ee] = !0;
  57. }
  58. var r = o.prototype;
  59. return r.parse = function(e) {
  60. this.$d = function(n) {
  61. var t = n.date, s = n.utc;
  62. if (t === null) return /* @__PURE__ */ new Date(NaN);
  63. if (f.u(t)) return /* @__PURE__ */ new Date();
  64. if (t instanceof Date) return new Date(t);
  65. if (typeof t == "string" && !/Z$/i.test(t)) {
  66. var u = t.match(he);
  67. if (u) {
  68. var l = u[2] - 1 || 0, y = (u[7] || "0").substring(0, 3);
  69. return s ? new Date(Date.UTC(u[1], l, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y)) : new Date(u[1], l, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y);
  70. }
  71. }
  72. return new Date(t);
  73. }(e), this.init();
  74. }, r.init = function() {
  75. var e = this.$d;
  76. this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
  77. }, r.$utils = function() {
  78. return f;
  79. }, r.isValid = function() {
  80. return this.$d.toString() !== X;
  81. }, r.isSame = function(e, n) {
  82. var t = v(e);
  83. return this.startOf(n) <= t && t <= this.endOf(n);
  84. }, r.isAfter = function(e, n) {
  85. return v(e) < this.startOf(n);
  86. }, r.isBefore = function(e, n) {
  87. return this.endOf(n) < v(e);
  88. }, r.$g = function(e, n, t) {
  89. return f.u(e) ? this[n] : this.set(t, e);
  90. }, r.unix = function() {
  91. return Math.floor(this.valueOf() / 1e3);
  92. }, r.valueOf = function() {
  93. return this.$d.getTime();
  94. }, r.startOf = function(e, n) {
  95. var t = this, s = !!f.u(n) || n, u = f.p(e), l = function(P, D) {
  96. var O = f.w(t.$u ? Date.UTC(t.$y, D, P) : new Date(t.$y, D, P), t);
  97. return s ? O : O.endOf(Y);
  98. }, y = function(P, D) {
  99. return f.w(t.toDate()[P].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), t);
  100. }, $ = this.$W, M = this.$M, b = this.$D, k = "set" + (this.$u ? "UTC" : "");
  101. switch (u) {
  102. case g:
  103. return s ? l(1, 0) : l(31, 11);
  104. case S:
  105. return s ? l(1, M) : l(0, M + 1);
  106. case N:
  107. var j = this.$locale().weekStart || 0, C = ($ < j ? $ + 7 : $) - j;
  108. return l(s ? b - C : b + (6 - C), M);
  109. case Y:
  110. case q:
  111. return y(k + "Hours", 0);
  112. case x:
  113. return y(k + "Minutes", 1);
  114. case _:
  115. return y(k + "Seconds", 2);
  116. case c:
  117. return y(k + "Milliseconds", 3);
  118. default:
  119. return this.clone();
  120. }
  121. }, r.endOf = function(e) {
  122. return this.startOf(e, !1);
  123. }, r.$set = function(e, n) {
  124. var t, s = f.p(e), u = "set" + (this.$u ? "UTC" : ""), l = (t = {}, t[Y] = u + "Date", t[q] = u + "Date", t[S] = u + "Month", t[g] = u + "FullYear", t[x] = u + "Hours", t[_] = u + "Minutes", t[c] = u + "Seconds", t[p] = u + "Milliseconds", t)[s], y = s === Y ? this.$D + (n - this.$W) : n;
  125. if (s === S || s === g) {
  126. var $ = this.clone().set(q, 1);
  127. $.$d[l](y), $.init(), this.$d = $.set(q, Math.min(this.$D, $.daysInMonth())).$d;
  128. } else l && this.$d[l](y);
  129. return this.init(), this;
  130. }, r.set = function(e, n) {
  131. return this.clone().$set(e, n);
  132. }, r.get = function(e) {
  133. return this[f.p(e)]();
  134. }, r.add = function(e, n) {
  135. var t, s = this;
  136. e = Number(e);
  137. var u = f.p(n), l = function(M) {
  138. var b = v(s);
  139. return f.w(b.date(b.date() + Math.round(M * e)), s);
  140. };
  141. if (u === S) return this.set(S, this.$M + e);
  142. if (u === g) return this.set(g, this.$y + e);
  143. if (u === Y) return l(1);
  144. if (u === N) return l(7);
  145. var y = (t = {}, t[_] = a, t[x] = h, t[c] = d, t)[u] || 1, $ = this.$d.getTime() + e * y;
  146. return f.w($, this);
  147. }, r.subtract = function(e, n) {
  148. return this.add(-1 * e, n);
  149. }, r.format = function(e) {
  150. var n = this, t = this.$locale();
  151. if (!this.isValid()) return t.invalidDate || X;
  152. var s = e || "YYYY-MM-DDTHH:mm:ssZ", u = f.z(this), l = this.$H, y = this.$m, $ = this.$M, M = t.weekdays, b = t.months, k = t.meridiem, j = function(D, O, T, F) {
  153. return D && (D[O] || D(n, s)) || T[O].slice(0, F);
  154. }, C = function(D) {
  155. return f.s(l % 12 || 12, D, "0");
  156. }, P = k || function(D, O, T) {
  157. var F = D < 12 ? "AM" : "PM";
  158. return T ? F.toLowerCase() : F;
  159. };
  160. return s.replace(ye, function(D, O) {
  161. return O || function(T) {
  162. switch (T) {
  163. case "YY":
  164. return String(n.$y).slice(-2);
  165. case "YYYY":
  166. return f.s(n.$y, 4, "0");
  167. case "M":
  168. return $ + 1;
  169. case "MM":
  170. return f.s($ + 1, 2, "0");
  171. case "MMM":
  172. return j(t.monthsShort, $, b, 3);
  173. case "MMMM":
  174. return j(b, $);
  175. case "D":
  176. return n.$D;
  177. case "DD":
  178. return f.s(n.$D, 2, "0");
  179. case "d":
  180. return String(n.$W);
  181. case "dd":
  182. return j(t.weekdaysMin, n.$W, M, 2);
  183. case "ddd":
  184. return j(t.weekdaysShort, n.$W, M, 3);
  185. case "dddd":
  186. return M[n.$W];
  187. case "H":
  188. return String(l);
  189. case "HH":
  190. return f.s(l, 2, "0");
  191. case "h":
  192. return C(1);
  193. case "hh":
  194. return C(2);
  195. case "a":
  196. return P(l, y, !0);
  197. case "A":
  198. return P(l, y, !1);
  199. case "m":
  200. return String(y);
  201. case "mm":
  202. return f.s(y, 2, "0");
  203. case "s":
  204. return String(n.$s);
  205. case "ss":
  206. return f.s(n.$s, 2, "0");
  207. case "SSS":
  208. return f.s(n.$ms, 3, "0");
  209. case "Z":
  210. return u;
  211. }
  212. return null;
  213. }(D) || u.replace(":", "");
  214. });
  215. }, r.utcOffset = function() {
  216. return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
  217. }, r.diff = function(e, n, t) {
  218. var s, u = this, l = f.p(n), y = v(e), $ = (y.utcOffset() - this.utcOffset()) * a, M = this - y, b = function() {
  219. return f.m(u, y);
  220. };
  221. switch (l) {
  222. case g:
  223. s = b() / 12;
  224. break;
  225. case S:
  226. s = b();
  227. break;
  228. case G:
  229. s = b() / 3;
  230. break;
  231. case N:
  232. s = (M - $) / 6048e5;
  233. break;
  234. case Y:
  235. s = (M - $) / 864e5;
  236. break;
  237. case x:
  238. s = M / h;
  239. break;
  240. case _:
  241. s = M / a;
  242. break;
  243. case c:
  244. s = M / d;
  245. break;
  246. default:
  247. s = M;
  248. }
  249. return t ? s : f.a(s);
  250. }, r.daysInMonth = function() {
  251. return this.endOf(S).$D;
  252. }, r.$locale = function() {
  253. return w[this.$L];
  254. }, r.locale = function(e, n) {
  255. if (!e) return this.$L;
  256. var t = this.clone(), s = z(e, n, !0);
  257. return s && (t.$L = s), t;
  258. }, r.clone = function() {
  259. return f.w(this.$d, this);
  260. }, r.toDate = function() {
  261. return new Date(this.valueOf());
  262. }, r.toJSON = function() {
  263. return this.isValid() ? this.toISOString() : null;
  264. }, r.toISOString = function() {
  265. return this.$d.toISOString();
  266. }, r.toString = function() {
  267. return this.$d.toUTCString();
  268. }, o;
  269. }(), te = A.prototype;
  270. return v.prototype = te, [["$ms", p], ["$s", c], ["$m", _], ["$H", x], ["$W", Y], ["$M", S], ["$y", g], ["$D", q]].forEach(function(o) {
  271. te[o[1]] = function(r) {
  272. return this.$g(r, o[0], o[1]);
  273. };
  274. }), v.extend = function(o, r) {
  275. return o.$i || (o(r, A, v), o.$i = !0), v;
  276. }, v.locale = z, v.isDayjs = E, v.unix = function(o) {
  277. return v(1e3 * o);
  278. }, v.en = w[L], v.Ls = w, v.p = {}, v;
  279. });
  280. }(Z)), Z.exports;
  281. }
  282. var Me = W.exports, ne;
  283. function xe() {
  284. return ne || (ne = 1, function(i, m) {
  285. (function(d, a) {
  286. i.exports = a($e());
  287. })(Me, function(d) {
  288. function a(c) {
  289. return c && typeof c == "object" && "default" in c ? c : { default: c };
  290. }
  291. var h = a(d), p = { name: "zh", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(c, _) {
  292. return _ === "W" ? c + "周" : c + "日";
  293. }, 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(c, _) {
  294. var x = 100 * c + _;
  295. return x < 600 ? "凌晨" : x < 900 ? "早上" : x < 1100 ? "上午" : x < 1300 ? "中午" : x < 1800 ? "下午" : "晚上";
  296. } };
  297. return h.default.locale(p, null, !0), p;
  298. });
  299. }(W)), W.exports;
  300. }
  301. var De = xe();
  302. const be = /* @__PURE__ */ de(De);
  303. var H = {}, K = { exports: {} }, ie;
  304. function Se() {
  305. return ie || (ie = 1, function(i) {
  306. function m(d) {
  307. return d && d.__esModule ? d : {
  308. default: d
  309. };
  310. }
  311. i.exports = m, i.exports.__esModule = !0, i.exports.default = i.exports;
  312. }(K)), K.exports;
  313. }
  314. var U = { exports: {} }, J = { exports: {} }, B = { exports: {} }, V = { exports: {} }, oe;
  315. function pe() {
  316. return oe || (oe = 1, function(i) {
  317. function m(d) {
  318. "@babel/helpers - typeof";
  319. return i.exports = m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
  320. return typeof a;
  321. } : function(a) {
  322. return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
  323. }, i.exports.__esModule = !0, i.exports.default = i.exports, m(d);
  324. }
  325. i.exports = m, i.exports.__esModule = !0, i.exports.default = i.exports;
  326. }(V)), V.exports;
  327. }
  328. var Q = { exports: {} }, se;
  329. function Ye() {
  330. return se || (se = 1, function(i) {
  331. var m = pe().default;
  332. function d(a, h) {
  333. if (m(a) != "object" || !a) return a;
  334. var p = a[Symbol.toPrimitive];
  335. if (p !== void 0) {
  336. var c = p.call(a, h || "default");
  337. if (m(c) != "object") return c;
  338. throw new TypeError("@@toPrimitive must return a primitive value.");
  339. }
  340. return (h === "string" ? String : Number)(a);
  341. }
  342. i.exports = d, i.exports.__esModule = !0, i.exports.default = i.exports;
  343. }(Q)), Q.exports;
  344. }
  345. var ue;
  346. function ge() {
  347. return ue || (ue = 1, function(i) {
  348. var m = pe().default, d = Ye();
  349. function a(h) {
  350. var p = d(h, "string");
  351. return m(p) == "symbol" ? p : p + "";
  352. }
  353. i.exports = a, i.exports.__esModule = !0, i.exports.default = i.exports;
  354. }(B)), B.exports;
  355. }
  356. var ae;
  357. function Oe() {
  358. return ae || (ae = 1, function(i) {
  359. var m = ge();
  360. function d(a, h, p) {
  361. return (h = m(h)) in a ? Object.defineProperty(a, h, {
  362. value: p,
  363. enumerable: !0,
  364. configurable: !0,
  365. writable: !0
  366. }) : a[h] = p, a;
  367. }
  368. i.exports = d, i.exports.__esModule = !0, i.exports.default = i.exports;
  369. }(J)), J.exports;
  370. }
  371. var ce;
  372. function we() {
  373. return ce || (ce = 1, function(i) {
  374. var m = Oe();
  375. function d(h, p) {
  376. var c = Object.keys(h);
  377. if (Object.getOwnPropertySymbols) {
  378. var _ = Object.getOwnPropertySymbols(h);
  379. p && (_ = _.filter(function(x) {
  380. return Object.getOwnPropertyDescriptor(h, x).enumerable;
  381. })), c.push.apply(c, _);
  382. }
  383. return c;
  384. }
  385. function a(h) {
  386. for (var p = 1; p < arguments.length; p++) {
  387. var c = arguments[p] != null ? arguments[p] : {};
  388. p % 2 ? d(Object(c), !0).forEach(function(_) {
  389. m(h, _, c[_]);
  390. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(h, Object.getOwnPropertyDescriptors(c)) : d(Object(c)).forEach(function(_) {
  391. Object.defineProperty(h, _, Object.getOwnPropertyDescriptor(c, _));
  392. });
  393. }
  394. return h;
  395. }
  396. i.exports = a, i.exports.__esModule = !0, i.exports.default = i.exports;
  397. }(U)), U.exports;
  398. }
  399. var R = {}, fe;
  400. function je() {
  401. return fe || (fe = 1, Object.defineProperty(R, "__esModule", {
  402. value: !0
  403. }), R.commonLocale = void 0, R.commonLocale = {
  404. yearFormat: "YYYY",
  405. dayFormat: "D",
  406. cellMeridiemFormat: "A",
  407. monthBeforeYear: !0
  408. }), R;
  409. }
  410. var le;
  411. function Pe() {
  412. if (le) return H;
  413. le = 1;
  414. var i = Se().default;
  415. Object.defineProperty(H, "__esModule", {
  416. value: !0
  417. }), H.default = void 0;
  418. var m = i(we()), d = je(), a = (0, m.default)((0, m.default)({}, d.commonLocale), {}, {
  419. locale: "zh_CN",
  420. today: "今天",
  421. now: "此刻",
  422. backToToday: "返回今天",
  423. ok: "确定",
  424. timeSelect: "选择时间",
  425. dateSelect: "选择日期",
  426. weekSelect: "选择周",
  427. clear: "清除",
  428. month: "月",
  429. year: "年",
  430. previousMonth: "上个月 (翻页上键)",
  431. nextMonth: "下个月 (翻页下键)",
  432. monthSelect: "选择月份",
  433. yearSelect: "选择年份",
  434. decadeSelect: "选择年代",
  435. previousYear: "上一年 (Control键加左方向键)",
  436. nextYear: "下一年 (Control键加右方向键)",
  437. previousDecade: "上一年代",
  438. nextDecade: "下一年代",
  439. previousCentury: "上一世纪",
  440. nextCentury: "下一世纪",
  441. yearFormat: "YYYY年",
  442. cellDateFormat: "D",
  443. monthBeforeYear: !1
  444. });
  445. return H.default = a, H;
  446. }
  447. var qe = Pe();
  448. const ke = /* @__PURE__ */ de(qe), Le = {
  449. design: {
  450. Confirm: {
  451. cancel: "取消",
  452. confirm: "确定"
  453. },
  454. Slider: {
  455. resetTo: "恢复至"
  456. },
  457. Picker: {
  458. ...be,
  459. ...ke
  460. },
  461. CascaderList: {
  462. empty: "无"
  463. },
  464. Select: {
  465. empty: "无"
  466. }
  467. }
  468. };
  469. export {
  470. Le as default
  471. };