@crmchatreactcomponent/quick-messages 0.0.4 → 0.0.5

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.
package/dist/index.es.js CHANGED
@@ -1,51 +1,54 @@
1
- import { jsx as p, jsxs as P, Fragment as Qt } from "react/jsx-runtime";
2
- import * as j from "react";
3
- import fe, { useContext as lt, useMemo as ce, useState as V, useEffect as de, createContext as en, useRef as ut, useDebugValue as hn, createElement as qo, useLayoutEffect as Bo, useCallback as pn } from "react";
4
- import { ConfigProvider as Ho, theme as Wo, Popover as Jn, Space as $, message as Uo, Modal as Zn, Table as Be, Empty as Qn, Button as Z, Flex as Ze, Input as _t, Popconfirm as Vo, Menu as Ko, Alert as Yo, ColorPicker as Xo, Tooltip as Jo } from "antd";
5
- import Zo, { EmojiStyle as Qo, Theme as gn } from "emoji-picker-react";
6
- import { useTranslation as Ae, I18nextProvider as ea } from "react-i18next";
7
- import ta from "i18next";
8
- function er() {
9
- const { theme: e } = lt(Ho.ConfigContext);
10
- return ce(() => (e == null ? void 0 : e.algorithm) === Wo.darkAlgorithm, [e]);
1
+ import { jsx as t, jsxs as m, Fragment as w } from "react/jsx-runtime";
2
+ import { useContext as F, useMemo as S, useState as v, useEffect as D, createContext as j, useRef as _ } from "react";
3
+ import { ConfigProvider as Me, theme as Ee, Popover as T, Space as C, message as Ge, Modal as I, Table as E, Empty as P, Button as b, Flex as G, Input as $, Popconfirm as $e, Menu as we, Alert as Le, ColorPicker as Ae, Tooltip as Ne } from "antd";
4
+ import Oe, { EmojiStyle as Fe, Theme as L } from "emoji-picker-react";
5
+ import { useTranslation as z, I18nextProvider as je } from "react-i18next";
6
+ import y from "styled-components";
7
+ import { DeleteOutlined as _e, EditOutlined as Te, PlusOutlined as Ie, SettingOutlined as Pe } from "@ant-design/icons";
8
+ import { useLocalStorage as We } from "react-use";
9
+ import Be from "color";
10
+ import He from "i18next";
11
+ function W() {
12
+ const { theme: e } = F(Me.ConfigContext);
13
+ return S(() => (e == null ? void 0 : e.algorithm) === Ee.darkAlgorithm, [e]);
11
14
  }
12
- const na = Qo.FACEBOOK, gc = ({
15
+ const Ke = Fe.FACEBOOK, St = ({
13
16
  children: e,
14
- disabled: t = !1,
15
- onSelect: n = () => {
17
+ disabled: n = !1,
18
+ onSelect: a = () => {
16
19
  },
17
20
  onOpenChange: r = () => {
18
21
  }
19
22
  }) => {
20
- const [o, a] = V(!1), i = er();
21
- de(() => {
22
- r(o);
23
- }, [o]);
24
- function s(l) {
25
- n(l.emoji), a(!1);
26
- }
27
- function c(l) {
28
- t || a(l);
29
- }
30
- return /* @__PURE__ */ p(
31
- Jn,
23
+ const [i, l] = v(!1), u = W();
24
+ D(() => {
25
+ r(i);
26
+ }, [i]);
27
+ function f(d) {
28
+ a(d.emoji), l(!1);
29
+ }
30
+ function c(d) {
31
+ n || l(d);
32
+ }
33
+ return /* @__PURE__ */ t(
34
+ T,
32
35
  {
33
36
  title: "",
34
- open: o,
37
+ open: i,
35
38
  onOpenChange: c,
36
39
  overlayInnerStyle: {
37
40
  backgroundColor: "transparent",
38
41
  padding: 0
39
42
  },
40
43
  trigger: ["click"],
41
- content: /* @__PURE__ */ p($, { direction: "vertical", size: 12, children: /* @__PURE__ */ p(
42
- Zo,
44
+ content: /* @__PURE__ */ t(C, { direction: "vertical", size: 12, children: /* @__PURE__ */ t(
45
+ Oe,
43
46
  {
44
47
  skinTonesDisabled: !0,
45
- onEmojiClick: s,
46
- emojiStyle: na,
48
+ onEmojiClick: f,
49
+ emojiStyle: Ke,
47
50
  lazyLoadEmojis: !1,
48
- theme: i ? gn.DARK : gn.LIGHT
51
+ theme: u ? L.DARK : L.LIGHT
49
52
  }
50
53
  ) }),
51
54
  destroyTooltipOnHide: !0,
@@ -53,1198 +56,61 @@ const na = Qo.FACEBOOK, gc = ({
53
56
  }
54
57
  );
55
58
  };
56
- function ra() {
59
+ function Re() {
57
60
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
58
- const t = Math.random() * 16 | 0;
59
- return (e == "x" ? t : t & 3 | 8).toString(16);
61
+ const n = Math.random() * 16 | 0;
62
+ return (e == "x" ? n : n & 3 | 8).toString(16);
60
63
  });
61
64
  }
62
- function tr(e, t) {
63
- return e.length > t ? e.substring(0, t) + "…" : e;
65
+ function B(e, n) {
66
+ return e.length > n ? e.substring(0, n) + "…" : e;
64
67
  }
65
- const nr = en(null);
66
- function mc(e) {
67
- const [t, n] = Uo.useMessage(), [r, o] = Zn.useModal();
68
- return /* @__PURE__ */ P(
69
- nr.Provider,
68
+ const H = j(null);
69
+ function Dt(e) {
70
+ const [n, a] = Ge.useMessage(), [r, i] = I.useModal();
71
+ return /* @__PURE__ */ m(
72
+ H.Provider,
70
73
  {
71
74
  value: {
72
- messageApi: t,
75
+ messageApi: n,
73
76
  modalApi: r
74
77
  },
75
78
  children: [
76
- n,
77
- o,
79
+ a,
80
+ i,
78
81
  e.children
79
82
  ]
80
83
  }
81
84
  );
82
85
  }
83
- var _ = function() {
84
- return _ = Object.assign || function(t) {
85
- for (var n, r = 1, o = arguments.length; r < o; r++) {
86
- n = arguments[r];
87
- for (var a in n)
88
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
89
- }
90
- return t;
91
- }, _.apply(this, arguments);
92
- };
93
- function xe(e, t, n) {
94
- if (n || arguments.length === 2)
95
- for (var r = 0, o = t.length, a; r < o; r++)
96
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
97
- return e.concat(a || Array.prototype.slice.call(t));
98
- }
99
- function oa(e) {
100
- var t = /* @__PURE__ */ Object.create(null);
101
- return function(n) {
102
- return t[n] === void 0 && (t[n] = e(n)), t[n];
103
- };
104
- }
105
- var aa = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, ia = /* @__PURE__ */ oa(
106
- function(e) {
107
- return aa.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
108
- }
109
- /* Z+1 */
110
- );
111
- function rr(e) {
112
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
113
- }
114
- var O = "-ms-", $e = "-moz-", C = "-webkit-", or = "comm", ft = "rule", tn = "decl", sa = "@import", ar = "@keyframes", ca = "@layer", ir = Math.abs, nn = String.fromCharCode, Ft = Object.assign;
115
- function la(e, t) {
116
- return D(e, 0) ^ 45 ? (((t << 2 ^ D(e, 0)) << 2 ^ D(e, 1)) << 2 ^ D(e, 2)) << 2 ^ D(e, 3) : 0;
117
- }
118
- function sr(e) {
119
- return e.trim();
120
- }
121
- function J(e, t) {
122
- return (e = t.exec(e)) ? e[0] : e;
123
- }
124
- function y(e, t, n) {
125
- return e.replace(t, n);
126
- }
127
- function Qe(e, t, n) {
128
- return e.indexOf(t, n);
129
- }
130
- function D(e, t) {
131
- return e.charCodeAt(t) | 0;
132
- }
133
- function Ce(e, t, n) {
134
- return e.slice(t, n);
135
- }
136
- function U(e) {
137
- return e.length;
138
- }
139
- function cr(e) {
140
- return e.length;
141
- }
142
- function ze(e, t) {
143
- return t.push(e), e;
144
- }
145
- function ua(e, t) {
146
- return e.map(t).join("");
147
- }
148
- function mn(e, t) {
149
- return e.filter(function(n) {
150
- return !J(n, t);
151
- });
152
- }
153
- var dt = 1, ke = 1, lr = 0, B = 0, T = 0, Me = "";
154
- function ht(e, t, n, r, o, a, i, s) {
155
- return { value: e, root: t, parent: n, type: r, props: o, children: a, line: dt, column: ke, length: i, return: "", siblings: s };
156
- }
157
- function ee(e, t) {
158
- return Ft(ht("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
159
- }
160
- function be(e) {
161
- for (; e.root; )
162
- e = ee(e.root, { children: [e] });
163
- ze(e, e.siblings);
164
- }
165
- function fa() {
166
- return T;
167
- }
168
- function da() {
169
- return T = B > 0 ? D(Me, --B) : 0, ke--, T === 10 && (ke = 1, dt--), T;
170
- }
171
- function W() {
172
- return T = B < lr ? D(Me, B++) : 0, ke++, T === 10 && (ke = 1, dt++), T;
173
- }
174
- function le() {
175
- return D(Me, B);
176
- }
177
- function et() {
178
- return B;
179
- }
180
- function pt(e, t) {
181
- return Ce(Me, e, t);
182
- }
183
- function Rt(e) {
184
- switch (e) {
185
- case 0:
186
- case 9:
187
- case 10:
188
- case 13:
189
- case 32:
190
- return 5;
191
- case 33:
192
- case 43:
193
- case 44:
194
- case 47:
195
- case 62:
196
- case 64:
197
- case 126:
198
- case 59:
199
- case 123:
200
- case 125:
201
- return 4;
202
- case 58:
203
- return 3;
204
- case 34:
205
- case 39:
206
- case 40:
207
- case 91:
208
- return 2;
209
- case 41:
210
- case 93:
211
- return 1;
212
- }
213
- return 0;
214
- }
215
- function ha(e) {
216
- return dt = ke = 1, lr = U(Me = e), B = 0, [];
217
- }
218
- function pa(e) {
219
- return Me = "", e;
220
- }
221
- function Et(e) {
222
- return sr(pt(B - 1, jt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
223
- }
224
- function ga(e) {
225
- for (; (T = le()) && T < 33; )
226
- W();
227
- return Rt(e) > 2 || Rt(T) > 3 ? "" : " ";
228
- }
229
- function ma(e, t) {
230
- for (; --t && W() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
231
- ;
232
- return pt(e, et() + (t < 6 && le() == 32 && W() == 32));
233
- }
234
- function jt(e) {
235
- for (; W(); )
236
- switch (T) {
237
- case e:
238
- return B;
239
- case 34:
240
- case 39:
241
- e !== 34 && e !== 39 && jt(T);
242
- break;
243
- case 40:
244
- e === 41 && jt(e);
245
- break;
246
- case 92:
247
- W();
248
- break;
249
- }
250
- return B;
251
- }
252
- function ya(e, t) {
253
- for (; W() && e + T !== 57; )
254
- if (e + T === 84 && le() === 47)
255
- break;
256
- return "/*" + pt(t, B - 1) + "*" + nn(e === 47 ? e : W());
257
- }
258
- function ba(e) {
259
- for (; !Rt(le()); )
260
- W();
261
- return pt(e, B);
262
- }
263
- function va(e) {
264
- return pa(tt("", null, null, null, [""], e = ha(e), 0, [0], e));
265
- }
266
- function tt(e, t, n, r, o, a, i, s, c) {
267
- for (var l = 0, d = 0, u = i, f = 0, h = 0, m = 0, x = 1, M = 1, v = 1, S = 0, k = "", E = o, A = a, w = r, b = k; M; )
268
- switch (m = S, S = W()) {
269
- case 40:
270
- if (m != 108 && D(b, u - 1) == 58) {
271
- Qe(b += y(Et(S), "&", "&\f"), "&\f", ir(l ? s[l - 1] : 0)) != -1 && (v = -1);
272
- break;
273
- }
274
- case 34:
275
- case 39:
276
- case 91:
277
- b += Et(S);
278
- break;
279
- case 9:
280
- case 10:
281
- case 13:
282
- case 32:
283
- b += ga(m);
284
- break;
285
- case 92:
286
- b += ma(et() - 1, 7);
287
- continue;
288
- case 47:
289
- switch (le()) {
290
- case 42:
291
- case 47:
292
- ze(wa(ya(W(), et()), t, n, c), c);
293
- break;
294
- default:
295
- b += "/";
296
- }
297
- break;
298
- case 123 * x:
299
- s[l++] = U(b) * v;
300
- case 125 * x:
301
- case 59:
302
- case 0:
303
- switch (S) {
304
- case 0:
305
- case 125:
306
- M = 0;
307
- case 59 + d:
308
- v == -1 && (b = y(b, /\f/g, "")), h > 0 && U(b) - u && ze(h > 32 ? bn(b + ";", r, n, u - 1, c) : bn(y(b, " ", "") + ";", r, n, u - 2, c), c);
309
- break;
310
- case 59:
311
- b += ";";
312
- default:
313
- if (ze(w = yn(b, t, n, l, d, o, s, k, E = [], A = [], u, a), a), S === 123)
314
- if (d === 0)
315
- tt(b, t, w, w, E, a, u, s, A);
316
- else
317
- switch (f === 99 && D(b, 3) === 110 ? 100 : f) {
318
- case 100:
319
- case 108:
320
- case 109:
321
- case 115:
322
- tt(e, w, w, r && ze(yn(e, w, w, 0, 0, o, s, k, o, E = [], u, A), A), o, A, u, s, r ? E : A);
323
- break;
324
- default:
325
- tt(b, w, w, w, [""], A, 0, s, A);
326
- }
327
- }
328
- l = d = h = 0, x = v = 1, k = b = "", u = i;
329
- break;
330
- case 58:
331
- u = 1 + U(b), h = m;
332
- default:
333
- if (x < 1) {
334
- if (S == 123)
335
- --x;
336
- else if (S == 125 && x++ == 0 && da() == 125)
337
- continue;
338
- }
339
- switch (b += nn(S), S * x) {
340
- case 38:
341
- v = d > 0 ? 1 : (b += "\f", -1);
342
- break;
343
- case 44:
344
- s[l++] = (U(b) - 1) * v, v = 1;
345
- break;
346
- case 64:
347
- le() === 45 && (b += Et(W())), f = le(), d = u = U(k = b += ba(et())), S++;
348
- break;
349
- case 45:
350
- m === 45 && U(b) == 2 && (x = 0);
351
- }
352
- }
353
- return a;
354
- }
355
- function yn(e, t, n, r, o, a, i, s, c, l, d, u) {
356
- for (var f = o - 1, h = o === 0 ? a : [""], m = cr(h), x = 0, M = 0, v = 0; x < r; ++x)
357
- for (var S = 0, k = Ce(e, f + 1, f = ir(M = i[x])), E = e; S < m; ++S)
358
- (E = sr(M > 0 ? h[S] + " " + k : y(k, /&\f/g, h[S]))) && (c[v++] = E);
359
- return ht(e, t, n, o === 0 ? ft : s, c, l, d, u);
360
- }
361
- function wa(e, t, n, r) {
362
- return ht(e, t, n, or, nn(fa()), Ce(e, 2, -2), 0, r);
363
- }
364
- function bn(e, t, n, r, o) {
365
- return ht(e, t, n, tn, Ce(e, 0, r), Ce(e, r + 1, -1), r, o);
366
- }
367
- function ur(e, t, n) {
368
- switch (la(e, t)) {
369
- case 5103:
370
- return C + "print-" + e + e;
371
- case 5737:
372
- case 4201:
373
- case 3177:
374
- case 3433:
375
- case 1641:
376
- case 4457:
377
- case 2921:
378
- case 5572:
379
- case 6356:
380
- case 5844:
381
- case 3191:
382
- case 6645:
383
- case 3005:
384
- case 6391:
385
- case 5879:
386
- case 5623:
387
- case 6135:
388
- case 4599:
389
- case 4855:
390
- case 4215:
391
- case 6389:
392
- case 5109:
393
- case 5365:
394
- case 5621:
395
- case 3829:
396
- return C + e + e;
397
- case 4789:
398
- return $e + e + e;
399
- case 5349:
400
- case 4246:
401
- case 4810:
402
- case 6968:
403
- case 2756:
404
- return C + e + $e + e + O + e + e;
405
- case 5936:
406
- switch (D(e, t + 11)) {
407
- case 114:
408
- return C + e + O + y(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
409
- case 108:
410
- return C + e + O + y(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
411
- case 45:
412
- return C + e + O + y(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
413
- }
414
- case 6828:
415
- case 4268:
416
- case 2903:
417
- return C + e + O + e + e;
418
- case 6165:
419
- return C + e + O + "flex-" + e + e;
420
- case 5187:
421
- return C + e + y(e, /(\w+).+(:[^]+)/, C + "box-$1$2" + O + "flex-$1$2") + e;
422
- case 5443:
423
- return C + e + O + "flex-item-" + y(e, /flex-|-self/g, "") + (J(e, /flex-|baseline/) ? "" : O + "grid-row-" + y(e, /flex-|-self/g, "")) + e;
424
- case 4675:
425
- return C + e + O + "flex-line-pack" + y(e, /align-content|flex-|-self/g, "") + e;
426
- case 5548:
427
- return C + e + O + y(e, "shrink", "negative") + e;
428
- case 5292:
429
- return C + e + O + y(e, "basis", "preferred-size") + e;
430
- case 6060:
431
- return C + "box-" + y(e, "-grow", "") + C + e + O + y(e, "grow", "positive") + e;
432
- case 4554:
433
- return C + y(e, /([^-])(transform)/g, "$1" + C + "$2") + e;
434
- case 6187:
435
- return y(y(y(e, /(zoom-|grab)/, C + "$1"), /(image-set)/, C + "$1"), e, "") + e;
436
- case 5495:
437
- case 3959:
438
- return y(e, /(image-set\([^]*)/, C + "$1$`$1");
439
- case 4968:
440
- return y(y(e, /(.+:)(flex-)?(.*)/, C + "box-pack:$3" + O + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + C + e + e;
441
- case 4200:
442
- if (!J(e, /flex-|baseline/))
443
- return O + "grid-column-align" + Ce(e, t) + e;
444
- break;
445
- case 2592:
446
- case 3360:
447
- return O + y(e, "template-", "") + e;
448
- case 4384:
449
- case 3616:
450
- return n && n.some(function(r, o) {
451
- return t = o, J(r.props, /grid-\w+-end/);
452
- }) ? ~Qe(e + (n = n[t].value), "span", 0) ? e : O + y(e, "-start", "") + e + O + "grid-row-span:" + (~Qe(n, "span", 0) ? J(n, /\d+/) : +J(n, /\d+/) - +J(e, /\d+/)) + ";" : O + y(e, "-start", "") + e;
453
- case 4896:
454
- case 4128:
455
- return n && n.some(function(r) {
456
- return J(r.props, /grid-\w+-start/);
457
- }) ? e : O + y(y(e, "-end", "-span"), "span ", "") + e;
458
- case 4095:
459
- case 3583:
460
- case 4068:
461
- case 2532:
462
- return y(e, /(.+)-inline(.+)/, C + "$1$2") + e;
463
- case 8116:
464
- case 7059:
465
- case 5753:
466
- case 5535:
467
- case 5445:
468
- case 5701:
469
- case 4933:
470
- case 4677:
471
- case 5533:
472
- case 5789:
473
- case 5021:
474
- case 4765:
475
- if (U(e) - 1 - t > 6)
476
- switch (D(e, t + 1)) {
477
- case 109:
478
- if (D(e, t + 4) !== 45)
479
- break;
480
- case 102:
481
- return y(e, /(.+:)(.+)-([^]+)/, "$1" + C + "$2-$3$1" + $e + (D(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
482
- case 115:
483
- return ~Qe(e, "stretch", 0) ? ur(y(e, "stretch", "fill-available"), t, n) + e : e;
484
- }
485
- break;
486
- case 5152:
487
- case 5920:
488
- return y(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, a, i, s, c, l) {
489
- return O + o + ":" + a + l + (i ? O + o + "-span:" + (s ? c : +c - +a) + l : "") + e;
490
- });
491
- case 4949:
492
- if (D(e, t + 6) === 121)
493
- return y(e, ":", ":" + C) + e;
494
- break;
495
- case 6444:
496
- switch (D(e, D(e, 14) === 45 ? 18 : 11)) {
497
- case 120:
498
- return y(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + C + (D(e, 14) === 45 ? "inline-" : "") + "box$3$1" + C + "$2$3$1" + O + "$2box$3") + e;
499
- case 100:
500
- return y(e, ":", ":" + O) + e;
501
- }
502
- break;
503
- case 5719:
504
- case 2647:
505
- case 2135:
506
- case 3927:
507
- case 2391:
508
- return y(e, "scroll-", "scroll-snap-") + e;
509
- }
510
- return e;
511
- }
512
- function at(e, t) {
513
- for (var n = "", r = 0; r < e.length; r++)
514
- n += t(e[r], r, e, t) || "";
515
- return n;
516
- }
517
- function xa(e, t, n, r) {
518
- switch (e.type) {
519
- case ca:
520
- if (e.children.length)
521
- break;
522
- case sa:
523
- case tn:
524
- return e.return = e.return || e.value;
525
- case or:
526
- return "";
527
- case ar:
528
- return e.return = e.value + "{" + at(e.children, r) + "}";
529
- case ft:
530
- if (!U(e.value = e.props.join(",")))
531
- return "";
532
- }
533
- return U(n = at(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
534
- }
535
- function Ca(e) {
536
- var t = cr(e);
537
- return function(n, r, o, a) {
538
- for (var i = "", s = 0; s < t; s++)
539
- i += e[s](n, r, o, a) || "";
540
- return i;
541
- };
542
- }
543
- function ka(e) {
544
- return function(t) {
545
- t.root || (t = t.return) && e(t);
546
- };
547
- }
548
- function Sa(e, t, n, r) {
549
- if (e.length > -1 && !e.return)
550
- switch (e.type) {
551
- case tn:
552
- e.return = ur(e.value, e.length, n);
553
- return;
554
- case ar:
555
- return at([ee(e, { value: y(e.value, "@", "@" + C) })], r);
556
- case ft:
557
- if (e.length)
558
- return ua(n = e.props, function(o) {
559
- switch (J(o, r = /(::plac\w+|:read-\w+)/)) {
560
- case ":read-only":
561
- case ":read-write":
562
- be(ee(e, { props: [y(o, /:(read-\w+)/, ":" + $e + "$1")] })), be(ee(e, { props: [o] })), Ft(e, { props: mn(n, r) });
563
- break;
564
- case "::placeholder":
565
- be(ee(e, { props: [y(o, /:(plac\w+)/, ":" + C + "input-$1")] })), be(ee(e, { props: [y(o, /:(plac\w+)/, ":" + $e + "$1")] })), be(ee(e, { props: [y(o, /:(plac\w+)/, O + "input-$1")] })), be(ee(e, { props: [o] })), Ft(e, { props: mn(n, r) });
566
- break;
567
- }
568
- return "";
569
- });
570
- }
571
- }
572
- var Ea = {
573
- animationIterationCount: 1,
574
- borderImageOutset: 1,
575
- borderImageSlice: 1,
576
- borderImageWidth: 1,
577
- boxFlex: 1,
578
- boxFlexGroup: 1,
579
- boxOrdinalGroup: 1,
580
- columnCount: 1,
581
- columns: 1,
582
- flex: 1,
583
- flexGrow: 1,
584
- flexPositive: 1,
585
- flexShrink: 1,
586
- flexNegative: 1,
587
- flexOrder: 1,
588
- gridRow: 1,
589
- gridRowEnd: 1,
590
- gridRowSpan: 1,
591
- gridRowStart: 1,
592
- gridColumn: 1,
593
- gridColumnEnd: 1,
594
- gridColumnSpan: 1,
595
- gridColumnStart: 1,
596
- msGridRow: 1,
597
- msGridRowSpan: 1,
598
- msGridColumn: 1,
599
- msGridColumnSpan: 1,
600
- fontWeight: 1,
601
- lineHeight: 1,
602
- opacity: 1,
603
- order: 1,
604
- orphans: 1,
605
- tabSize: 1,
606
- widows: 1,
607
- zIndex: 1,
608
- zoom: 1,
609
- WebkitLineClamp: 1,
610
- // SVG-related properties
611
- fillOpacity: 1,
612
- floodOpacity: 1,
613
- stopOpacity: 1,
614
- strokeDasharray: 1,
615
- strokeDashoffset: 1,
616
- strokeMiterlimit: 1,
617
- strokeOpacity: 1,
618
- strokeWidth: 1
619
- }, he = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", fr = "active", dr = "data-styled-version", gt = "6.1.8", rn = `/*!sc*/
620
- `, on = typeof window < "u" && "HTMLElement" in window, Oa = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), vn = /invalid hook call/i, He = /* @__PURE__ */ new Set(), Aa = function(e, t) {
621
- if (process.env.NODE_ENV !== "production") {
622
- var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
623
- `) + `You may see this warning because you've called styled inside another component.
624
- To resolve this only create new StyledComponents outside of any render method and function component.`, o = console.error;
625
- try {
626
- var a = !0;
627
- console.error = function(i) {
628
- for (var s = [], c = 1; c < arguments.length; c++)
629
- s[c - 1] = arguments[c];
630
- vn.test(i) ? (a = !1, He.delete(r)) : o.apply(void 0, xe([i], s, !1));
631
- }, ut(), a && !He.has(r) && (console.warn(r), He.add(r));
632
- } catch (i) {
633
- vn.test(i.message) && He.delete(r);
634
- } finally {
635
- console.error = o;
636
- }
637
- }
638
- }, mt = Object.freeze([]), Se = Object.freeze({});
639
- function Ma(e, t, n) {
640
- return n === void 0 && (n = Se), e.theme !== n.theme && e.theme || t || n.theme;
641
- }
642
- var Lt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Na = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Pa = /(^-|-$)/g;
643
- function wn(e) {
644
- return e.replace(Na, "-").replace(Pa, "");
645
- }
646
- var Ta = /(a)(d)/gi, We = 52, xn = function(e) {
647
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
648
- };
649
- function Gt(e) {
650
- var t, n = "";
651
- for (t = Math.abs(e); t > We; t = t / We | 0)
652
- n = xn(t % We) + n;
653
- return (xn(t % We) + n).replace(Ta, "$1-$2");
654
- }
655
- var Ot, hr = 5381, ie = function(e, t) {
656
- for (var n = t.length; n; )
657
- e = 33 * e ^ t.charCodeAt(--n);
658
- return e;
659
- }, pr = function(e) {
660
- return ie(hr, e);
661
- };
662
- function Ia(e) {
663
- return Gt(pr(e) >>> 0);
664
- }
665
- function gr(e) {
666
- return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
667
- }
668
- function At(e) {
669
- return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
670
- }
671
- var mr = typeof Symbol == "function" && Symbol.for, yr = mr ? Symbol.for("react.memo") : 60115, Da = mr ? Symbol.for("react.forward_ref") : 60112, za = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, $a = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, br = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, _a = ((Ot = {})[Da] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Ot[yr] = br, Ot);
672
- function Cn(e) {
673
- return ("type" in (t = e) && t.type.$$typeof) === yr ? br : "$$typeof" in e ? _a[e.$$typeof] : za;
674
- var t;
675
- }
676
- var Fa = Object.defineProperty, Ra = Object.getOwnPropertyNames, kn = Object.getOwnPropertySymbols, ja = Object.getOwnPropertyDescriptor, La = Object.getPrototypeOf, Sn = Object.prototype;
677
- function vr(e, t, n) {
678
- if (typeof t != "string") {
679
- if (Sn) {
680
- var r = La(t);
681
- r && r !== Sn && vr(e, r, n);
682
- }
683
- var o = Ra(t);
684
- kn && (o = o.concat(kn(t)));
685
- for (var a = Cn(e), i = Cn(t), s = 0; s < o.length; ++s) {
686
- var c = o[s];
687
- if (!(c in $a || n && n[c] || i && c in i || a && c in a)) {
688
- var l = ja(t, c);
689
- try {
690
- Fa(e, c, l);
691
- } catch {
692
- }
693
- }
694
- }
695
- }
696
- return e;
697
- }
698
- function Ee(e) {
699
- return typeof e == "function";
700
- }
701
- function an(e) {
702
- return typeof e == "object" && "styledComponentId" in e;
703
- }
704
- function se(e, t) {
705
- return e && t ? "".concat(e, " ").concat(t) : e || t || "";
706
- }
707
- function En(e, t) {
708
- if (e.length === 0)
709
- return "";
710
- for (var n = e[0], r = 1; r < e.length; r++)
711
- n += t ? t + e[r] : e[r];
712
- return n;
713
- }
714
- function Oe(e) {
715
- return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
716
- }
717
- function qt(e, t, n) {
718
- if (n === void 0 && (n = !1), !n && !Oe(e) && !Array.isArray(e))
719
- return t;
720
- if (Array.isArray(t))
721
- for (var r = 0; r < t.length; r++)
722
- e[r] = qt(e[r], t[r]);
723
- else if (Oe(t))
724
- for (var r in t)
725
- e[r] = qt(e[r], t[r]);
726
- return e;
727
- }
728
- function sn(e, t) {
729
- Object.defineProperty(e, "toString", { value: t });
730
- }
731
- var Ga = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
732
-
733
- `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
734
-
735
- - Are you trying to reuse it across renders?
736
- - Are you accidentally calling collectStyles twice?
737
-
738
- `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
739
-
740
- `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
741
-
742
- - Does this error occur on the client and is your target falsy?
743
- - Does this error occur on the server and is the sheet falsy?
744
-
745
- `, 5: `The clone method cannot be used on the client!
746
-
747
- - Are you running in a client-like environment on the server?
748
- - Are you trying to run SSR on the client?
749
-
750
- `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
751
-
752
- - Are you using a custom target that isn't mounted?
753
- - Does your document not have a valid head element?
754
- - Have you accidentally removed a style tag manually?
755
-
756
- `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
757
-
758
- `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
759
-
760
- `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
761
-
762
- `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
763
-
764
- `, 14: `ThemeProvider: "theme" prop is required.
765
-
766
- `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
767
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
768
- as for instance in your render method then you may be running into this limitation.
769
-
770
- `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
771
- Has styled-components' style tag been unmounted or altered by another script?
772
- `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
773
- function qa() {
774
- for (var e = [], t = 0; t < arguments.length; t++)
775
- e[t] = arguments[t];
776
- for (var n = e[0], r = [], o = 1, a = e.length; o < a; o += 1)
777
- r.push(e[o]);
778
- return r.forEach(function(i) {
779
- n = n.replace(/%[a-z]/, i);
780
- }), n;
781
- }
782
- function Ne(e) {
783
- for (var t = [], n = 1; n < arguments.length; n++)
784
- t[n - 1] = arguments[n];
785
- return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(qa.apply(void 0, xe([Ga[e]], t, !1)).trim());
786
- }
787
- var Ba = function() {
788
- function e(t) {
789
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
790
- }
791
- return e.prototype.indexOfGroup = function(t) {
792
- for (var n = 0, r = 0; r < t; r++)
793
- n += this.groupSizes[r];
794
- return n;
795
- }, e.prototype.insertRules = function(t, n) {
796
- if (t >= this.groupSizes.length) {
797
- for (var r = this.groupSizes, o = r.length, a = o; t >= a; )
798
- if ((a <<= 1) < 0)
799
- throw Ne(16, "".concat(t));
800
- this.groupSizes = new Uint32Array(a), this.groupSizes.set(r), this.length = a;
801
- for (var i = o; i < a; i++)
802
- this.groupSizes[i] = 0;
803
- }
804
- for (var s = this.indexOfGroup(t + 1), c = (i = 0, n.length); i < c; i++)
805
- this.tag.insertRule(s, n[i]) && (this.groupSizes[t]++, s++);
806
- }, e.prototype.clearGroup = function(t) {
807
- if (t < this.length) {
808
- var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
809
- this.groupSizes[t] = 0;
810
- for (var a = r; a < o; a++)
811
- this.tag.deleteRule(r);
812
- }
813
- }, e.prototype.getGroup = function(t) {
814
- var n = "";
815
- if (t >= this.length || this.groupSizes[t] === 0)
816
- return n;
817
- for (var r = this.groupSizes[t], o = this.indexOfGroup(t), a = o + r, i = o; i < a; i++)
818
- n += "".concat(this.tag.getRule(i)).concat(rn);
819
- return n;
820
- }, e;
821
- }(), nt = /* @__PURE__ */ new Map(), it = /* @__PURE__ */ new Map(), rt = 1, Ue = function(e) {
822
- if (nt.has(e))
823
- return nt.get(e);
824
- for (; it.has(rt); )
825
- rt++;
826
- var t = rt++;
827
- if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > 1073741824))
828
- throw Ne(16, "".concat(t));
829
- return nt.set(e, t), it.set(t, e), t;
830
- }, Ha = function(e, t) {
831
- rt = t + 1, nt.set(e, t), it.set(t, e);
832
- }, Wa = "style[".concat(he, "][").concat(dr, '="').concat(gt, '"]'), Ua = new RegExp("^".concat(he, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Va = function(e, t, n) {
833
- for (var r, o = n.split(","), a = 0, i = o.length; a < i; a++)
834
- (r = o[a]) && e.registerName(t, r);
835
- }, Ka = function(e, t) {
836
- for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(rn), o = [], a = 0, i = r.length; a < i; a++) {
837
- var s = r[a].trim();
838
- if (s) {
839
- var c = s.match(Ua);
840
- if (c) {
841
- var l = 0 | parseInt(c[1], 10), d = c[2];
842
- l !== 0 && (Ha(d, l), Va(e, d, c[3]), e.getTag().insertRules(l, o)), o.length = 0;
843
- } else
844
- o.push(s);
845
- }
846
- }
847
- };
848
- function Ya() {
849
- return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
850
- }
851
- var wr = function(e) {
852
- var t = document.head, n = e || t, r = document.createElement("style"), o = function(s) {
853
- var c = Array.from(s.querySelectorAll("style[".concat(he, "]")));
854
- return c[c.length - 1];
855
- }(n), a = o !== void 0 ? o.nextSibling : null;
856
- r.setAttribute(he, fr), r.setAttribute(dr, gt);
857
- var i = Ya();
858
- return i && r.setAttribute("nonce", i), n.insertBefore(r, a), r;
859
- }, Xa = function() {
860
- function e(t) {
861
- this.element = wr(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
862
- if (n.sheet)
863
- return n.sheet;
864
- for (var r = document.styleSheets, o = 0, a = r.length; o < a; o++) {
865
- var i = r[o];
866
- if (i.ownerNode === n)
867
- return i;
868
- }
869
- throw Ne(17);
870
- }(this.element), this.length = 0;
871
- }
872
- return e.prototype.insertRule = function(t, n) {
873
- try {
874
- return this.sheet.insertRule(n, t), this.length++, !0;
875
- } catch {
876
- return !1;
877
- }
878
- }, e.prototype.deleteRule = function(t) {
879
- this.sheet.deleteRule(t), this.length--;
880
- }, e.prototype.getRule = function(t) {
881
- var n = this.sheet.cssRules[t];
882
- return n && n.cssText ? n.cssText : "";
883
- }, e;
884
- }(), Ja = function() {
885
- function e(t) {
886
- this.element = wr(t), this.nodes = this.element.childNodes, this.length = 0;
887
- }
888
- return e.prototype.insertRule = function(t, n) {
889
- if (t <= this.length && t >= 0) {
890
- var r = document.createTextNode(n);
891
- return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
892
- }
893
- return !1;
894
- }, e.prototype.deleteRule = function(t) {
895
- this.element.removeChild(this.nodes[t]), this.length--;
896
- }, e.prototype.getRule = function(t) {
897
- return t < this.length ? this.nodes[t].textContent : "";
898
- }, e;
899
- }(), Za = function() {
900
- function e(t) {
901
- this.rules = [], this.length = 0;
902
- }
903
- return e.prototype.insertRule = function(t, n) {
904
- return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
905
- }, e.prototype.deleteRule = function(t) {
906
- this.rules.splice(t, 1), this.length--;
907
- }, e.prototype.getRule = function(t) {
908
- return t < this.length ? this.rules[t] : "";
909
- }, e;
910
- }(), On = on, Qa = { isServer: !on, useCSSOMInjection: !Oa }, xr = function() {
911
- function e(t, n, r) {
912
- t === void 0 && (t = Se), n === void 0 && (n = {});
913
- var o = this;
914
- this.options = _(_({}, Qa), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && on && On && (On = !1, function(a) {
915
- for (var i = document.querySelectorAll(Wa), s = 0, c = i.length; s < c; s++) {
916
- var l = i[s];
917
- l && l.getAttribute(he) !== fr && (Ka(a, l), l.parentNode && l.parentNode.removeChild(l));
918
- }
919
- }(this)), sn(this, function() {
920
- return function(a) {
921
- for (var i = a.getTag(), s = i.length, c = "", l = function(u) {
922
- var f = function(v) {
923
- return it.get(v);
924
- }(u);
925
- if (f === void 0)
926
- return "continue";
927
- var h = a.names.get(f), m = i.getGroup(u);
928
- if (h === void 0 || m.length === 0)
929
- return "continue";
930
- var x = "".concat(he, ".g").concat(u, '[id="').concat(f, '"]'), M = "";
931
- h !== void 0 && h.forEach(function(v) {
932
- v.length > 0 && (M += "".concat(v, ","));
933
- }), c += "".concat(m).concat(x, '{content:"').concat(M, '"}').concat(rn);
934
- }, d = 0; d < s; d++)
935
- l(d);
936
- return c;
937
- }(o);
938
- });
939
- }
940
- return e.registerId = function(t) {
941
- return Ue(t);
942
- }, e.prototype.reconstructWithOptions = function(t, n) {
943
- return n === void 0 && (n = !0), new e(_(_({}, this.options), t), this.gs, n && this.names || void 0);
944
- }, e.prototype.allocateGSInstance = function(t) {
945
- return this.gs[t] = (this.gs[t] || 0) + 1;
946
- }, e.prototype.getTag = function() {
947
- return this.tag || (this.tag = (t = function(n) {
948
- var r = n.useCSSOMInjection, o = n.target;
949
- return n.isServer ? new Za(o) : r ? new Xa(o) : new Ja(o);
950
- }(this.options), new Ba(t)));
951
- var t;
952
- }, e.prototype.hasNameForId = function(t, n) {
953
- return this.names.has(t) && this.names.get(t).has(n);
954
- }, e.prototype.registerName = function(t, n) {
955
- if (Ue(t), this.names.has(t))
956
- this.names.get(t).add(n);
957
- else {
958
- var r = /* @__PURE__ */ new Set();
959
- r.add(n), this.names.set(t, r);
960
- }
961
- }, e.prototype.insertRules = function(t, n, r) {
962
- this.registerName(t, n), this.getTag().insertRules(Ue(t), r);
963
- }, e.prototype.clearNames = function(t) {
964
- this.names.has(t) && this.names.get(t).clear();
965
- }, e.prototype.clearRules = function(t) {
966
- this.getTag().clearGroup(Ue(t)), this.clearNames(t);
967
- }, e.prototype.clearTag = function() {
968
- this.tag = void 0;
969
- }, e;
970
- }(), ei = /&/g, ti = /^\s*\/\/.*$/gm;
971
- function Cr(e, t) {
972
- return e.map(function(n) {
973
- return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
974
- return "".concat(t, " ").concat(r);
975
- })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = Cr(n.children, t)), n;
976
- });
977
- }
978
- function ni(e) {
979
- var t, n, r, o = e === void 0 ? Se : e, a = o.options, i = a === void 0 ? Se : a, s = o.plugins, c = s === void 0 ? mt : s, l = function(f, h, m) {
980
- return m.startsWith(n) && m.endsWith(n) && m.replaceAll(n, "").length > 0 ? ".".concat(t) : f;
981
- }, d = c.slice();
982
- d.push(function(f) {
983
- f.type === ft && f.value.includes("&") && (f.props[0] = f.props[0].replace(ei, n).replace(r, l));
984
- }), i.prefix && d.push(Sa), d.push(xa);
985
- var u = function(f, h, m, x) {
986
- h === void 0 && (h = ""), m === void 0 && (m = ""), x === void 0 && (x = "&"), t = x, n = h, r = new RegExp("\\".concat(n, "\\b"), "g");
987
- var M = f.replace(ti, ""), v = va(m || h ? "".concat(m, " ").concat(h, " { ").concat(M, " }") : M);
988
- i.namespace && (v = Cr(v, i.namespace));
989
- var S = [];
990
- return at(v, Ca(d.concat(ka(function(k) {
991
- return S.push(k);
992
- })))), S;
993
- };
994
- return u.hash = c.length ? c.reduce(function(f, h) {
995
- return h.name || Ne(15), ie(f, h.name);
996
- }, hr).toString() : "", u;
997
- }
998
- var ri = new xr(), Bt = ni(), kr = fe.createContext({ shouldForwardProp: void 0, styleSheet: ri, stylis: Bt });
999
- kr.Consumer;
1000
- fe.createContext(void 0);
1001
- function An() {
1002
- return lt(kr);
1003
- }
1004
- var Mn = function() {
1005
- function e(t, n) {
1006
- var r = this;
1007
- this.inject = function(o, a) {
1008
- a === void 0 && (a = Bt);
1009
- var i = r.name + a.hash;
1010
- o.hasNameForId(r.id, i) || o.insertRules(r.id, i, a(r.rules, i, "@keyframes"));
1011
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, sn(this, function() {
1012
- throw Ne(12, String(r.name));
1013
- });
1014
- }
1015
- return e.prototype.getName = function(t) {
1016
- return t === void 0 && (t = Bt), this.name + t.hash;
1017
- }, e;
1018
- }(), oi = function(e) {
1019
- return e >= "A" && e <= "Z";
1020
- };
1021
- function Nn(e) {
1022
- for (var t = "", n = 0; n < e.length; n++) {
1023
- var r = e[n];
1024
- if (n === 1 && r === "-" && e[0] === "-")
1025
- return e;
1026
- oi(r) ? t += "-" + r.toLowerCase() : t += r;
1027
- }
1028
- return t.startsWith("ms-") ? "-" + t : t;
1029
- }
1030
- var Sr = function(e) {
1031
- return e == null || e === !1 || e === "";
1032
- }, Er = function(e) {
1033
- var t, n, r = [];
1034
- for (var o in e) {
1035
- var a = e[o];
1036
- e.hasOwnProperty(o) && !Sr(a) && (Array.isArray(a) && a.isCss || Ee(a) ? r.push("".concat(Nn(o), ":"), a, ";") : Oe(a) ? r.push.apply(r, xe(xe(["".concat(o, " {")], Er(a), !1), ["}"], !1)) : r.push("".concat(Nn(o), ": ").concat((t = o, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Ea || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1037
- }
1038
- return r;
1039
- };
1040
- function ue(e, t, n, r) {
1041
- if (Sr(e))
1042
- return [];
1043
- if (an(e))
1044
- return [".".concat(e.styledComponentId)];
1045
- if (Ee(e)) {
1046
- if (!Ee(a = e) || a.prototype && a.prototype.isReactComponent || !t)
1047
- return [e];
1048
- var o = e(t);
1049
- return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Mn || Oe(o) || o === null || console.error("".concat(gr(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), ue(o, t, n, r);
1050
- }
1051
- var a;
1052
- return e instanceof Mn ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Oe(e) ? Er(e) : Array.isArray(e) ? Array.prototype.concat.apply(mt, e.map(function(i) {
1053
- return ue(i, t, n, r);
1054
- })) : [e.toString()];
1055
- }
1056
- function ai(e) {
1057
- for (var t = 0; t < e.length; t += 1) {
1058
- var n = e[t];
1059
- if (Ee(n) && !an(n))
1060
- return !1;
1061
- }
1062
- return !0;
1063
- }
1064
- var ii = pr(gt), si = function() {
1065
- function e(t, n, r) {
1066
- this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && ai(t), this.componentId = n, this.baseHash = ie(ii, n), this.baseStyle = r, xr.registerId(n);
1067
- }
1068
- return e.prototype.generateAndInjectStyles = function(t, n, r) {
1069
- var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
1070
- if (this.isStatic && !r.hash)
1071
- if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId))
1072
- o = se(o, this.staticRulesId);
1073
- else {
1074
- var a = En(ue(this.rules, t, n, r)), i = Gt(ie(this.baseHash, a) >>> 0);
1075
- if (!n.hasNameForId(this.componentId, i)) {
1076
- var s = r(a, ".".concat(i), void 0, this.componentId);
1077
- n.insertRules(this.componentId, i, s);
1078
- }
1079
- o = se(o, i), this.staticRulesId = i;
1080
- }
1081
- else {
1082
- for (var c = ie(this.baseHash, r.hash), l = "", d = 0; d < this.rules.length; d++) {
1083
- var u = this.rules[d];
1084
- if (typeof u == "string")
1085
- l += u, process.env.NODE_ENV !== "production" && (c = ie(c, u));
1086
- else if (u) {
1087
- var f = En(ue(u, t, n, r));
1088
- c = ie(c, f + d), l += f;
1089
- }
1090
- }
1091
- if (l) {
1092
- var h = Gt(c >>> 0);
1093
- n.hasNameForId(this.componentId, h) || n.insertRules(this.componentId, h, r(l, ".".concat(h), void 0, this.componentId)), o = se(o, h);
1094
- }
1095
- }
1096
- return o;
1097
- }, e;
1098
- }(), Or = fe.createContext(void 0);
1099
- Or.Consumer;
1100
- var Mt = {}, Pn = /* @__PURE__ */ new Set();
1101
- function ci(e, t, n) {
1102
- var r = an(e), o = e, a = !At(e), i = t.attrs, s = i === void 0 ? mt : i, c = t.componentId, l = c === void 0 ? function(E, A) {
1103
- var w = typeof E != "string" ? "sc" : wn(E);
1104
- Mt[w] = (Mt[w] || 0) + 1;
1105
- var b = "".concat(w, "-").concat(Ia(gt + w + Mt[w]));
1106
- return A ? "".concat(A, "-").concat(b) : b;
1107
- }(t.displayName, t.parentComponentId) : c, d = t.displayName, u = d === void 0 ? function(E) {
1108
- return At(E) ? "styled.".concat(E) : "Styled(".concat(gr(E), ")");
1109
- }(e) : d, f = t.displayName && t.componentId ? "".concat(wn(t.displayName), "-").concat(t.componentId) : t.componentId || l, h = r && o.attrs ? o.attrs.concat(s).filter(Boolean) : s, m = t.shouldForwardProp;
1110
- if (r && o.shouldForwardProp) {
1111
- var x = o.shouldForwardProp;
1112
- if (t.shouldForwardProp) {
1113
- var M = t.shouldForwardProp;
1114
- m = function(E, A) {
1115
- return x(E, A) && M(E, A);
1116
- };
1117
- } else
1118
- m = x;
1119
- }
1120
- var v = new si(n, f, r ? o.componentStyle : void 0);
1121
- function S(E, A) {
1122
- return function(w, b, oe) {
1123
- var me = w.attrs, _o = w.componentStyle, Fo = w.defaultProps, Ro = w.foldedComponentIds, fn = w.styledComponentId, jo = w.target, Lo = fe.useContext(Or), Go = An(), xt = w.shouldForwardProp || Go.shouldForwardProp;
1124
- process.env.NODE_ENV !== "production" && hn(fn);
1125
- var dn = Ma(b, Lo, Fo) || Se, Y = function(Le, Ie, Ge) {
1126
- for (var ye, ae = _(_({}, Ie), { className: void 0, theme: Ge }), St = 0; St < Le.length; St += 1) {
1127
- var qe = Ee(ye = Le[St]) ? ye(ae) : ye;
1128
- for (var Q in qe)
1129
- ae[Q] = Q === "className" ? se(ae[Q], qe[Q]) : Q === "style" ? _(_({}, ae[Q]), qe[Q]) : qe[Q];
1130
- }
1131
- return Ie.className && (ae.className = se(ae.className, Ie.className)), ae;
1132
- }(me, b, dn), Pe = Y.as || jo, Te = {};
1133
- for (var G in Y)
1134
- Y[G] === void 0 || G[0] === "$" || G === "as" || G === "theme" && Y.theme === dn || (G === "forwardedAs" ? Te.as = Y.forwardedAs : xt && !xt(G, Pe) || (Te[G] = Y[G], xt || process.env.NODE_ENV !== "development" || ia(G) || Pn.has(G) || !Lt.has(Pe) || (Pn.add(G), console.warn('styled-components: it looks like an unknown prop "'.concat(G, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1135
- var Ct = function(Le, Ie) {
1136
- var Ge = An(), ye = Le.generateAndInjectStyles(Ie, Ge.styleSheet, Ge.stylis);
1137
- return process.env.NODE_ENV !== "production" && hn(ye), ye;
1138
- }(_o, Y);
1139
- process.env.NODE_ENV !== "production" && w.warnTooManyClasses && w.warnTooManyClasses(Ct);
1140
- var kt = se(Ro, fn);
1141
- return Ct && (kt += " " + Ct), Y.className && (kt += " " + Y.className), Te[At(Pe) && !Lt.has(Pe) ? "class" : "className"] = kt, Te.ref = oe, qo(Pe, Te);
1142
- }(k, E, A);
1143
- }
1144
- S.displayName = u;
1145
- var k = fe.forwardRef(S);
1146
- return k.attrs = h, k.componentStyle = v, k.displayName = u, k.shouldForwardProp = m, k.foldedComponentIds = r ? se(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = f, k.target = r ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
1147
- return this._foldedDefaultProps;
1148
- }, set: function(E) {
1149
- this._foldedDefaultProps = r ? function(A) {
1150
- for (var w = [], b = 1; b < arguments.length; b++)
1151
- w[b - 1] = arguments[b];
1152
- for (var oe = 0, me = w; oe < me.length; oe++)
1153
- qt(A, me[oe], !0);
1154
- return A;
1155
- }({}, o.defaultProps, E) : E;
1156
- } }), process.env.NODE_ENV !== "production" && (Aa(u, f), k.warnTooManyClasses = /* @__PURE__ */ function(E, A) {
1157
- var w = {}, b = !1;
1158
- return function(oe) {
1159
- if (!b && (w[oe] = !0, Object.keys(w).length >= 200)) {
1160
- var me = A ? ' with the id of "'.concat(A, '"') : "";
1161
- console.warn("Over ".concat(200, " classes were generated for component ").concat(E).concat(me, `.
1162
- `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1163
- Example:
1164
- const Component = styled.div.attrs(props => ({
1165
- style: {
1166
- background: props.background,
1167
- },
1168
- }))\`width: 100%;\`
1169
-
1170
- <Component />`), b = !0, w = {};
1171
- }
1172
- };
1173
- }(u, f)), sn(k, function() {
1174
- return ".".concat(k.styledComponentId);
1175
- }), a && vr(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
1176
- }
1177
- function Tn(e, t) {
1178
- for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1)
1179
- n.push(t[r], e[r + 1]);
1180
- return n;
1181
- }
1182
- var In = function(e) {
1183
- return Object.assign(e, { isCss: !0 });
1184
- };
1185
- function li(e) {
1186
- for (var t = [], n = 1; n < arguments.length; n++)
1187
- t[n - 1] = arguments[n];
1188
- if (Ee(e) || Oe(e))
1189
- return In(ue(Tn(mt, xe([e], t, !0))));
1190
- var r = e;
1191
- return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? ue(r) : In(ue(Tn(r, t)));
1192
- }
1193
- function Ht(e, t, n) {
1194
- if (n === void 0 && (n = Se), !t)
1195
- throw Ne(1, t);
1196
- var r = function(o) {
1197
- for (var a = [], i = 1; i < arguments.length; i++)
1198
- a[i - 1] = arguments[i];
1199
- return e(t, n, li.apply(void 0, xe([o], a, !1)));
1200
- };
1201
- return r.attrs = function(o) {
1202
- return Ht(e, t, _(_({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
1203
- }, r.withConfig = function(o) {
1204
- return Ht(e, t, _(_({}, n), o));
1205
- }, r;
1206
- }
1207
- var Ar = function(e) {
1208
- return Ht(ci, e);
1209
- }, K = Ar;
1210
- Lt.forEach(function(e) {
1211
- K[e] = Ar(e);
1212
- });
1213
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1214
- Perhaps you're looking to import 'styled-components/native'?
1215
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1216
- var Ve = "__sc-".concat(he, "__");
1217
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Ve] || (window[Ve] = 0), window[Ve] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1218
-
1219
- See https://s-c.sh/2BAXzed for more info.`), window[Ve] += 1);
1220
- const ui = ({
86
+ const qe = ({
1221
87
  data: e = [],
1222
- onChange: t = () => {
88
+ onChange: n = () => {
1223
89
  },
1224
- tableHeight: n = "460px",
90
+ tableHeight: a = "460px",
1225
91
  limitation: r = {}
1226
92
  }) => {
1227
- const { messageApi: o } = lt(nr), { title: a = 15, content: i = 2e3 } = r, { t: s } = Ae();
1228
- function c(u) {
1229
- const f = e.findIndex((h) => h.label === u.label);
1230
- e[f] = u, t([...e]);
93
+ const { messageApi: i } = F(H), { title: l = 15, content: u = 2e3 } = r, { t: f } = z();
94
+ function c(g) {
95
+ const o = e.findIndex((s) => s.label === g.label);
96
+ e[o] = g, n([...e]);
1231
97
  }
1232
- function l() {
1233
- const u = [
98
+ function d() {
99
+ const g = [
1234
100
  {
1235
101
  label: `#${e.length + 1}`,
1236
102
  content: ""
1237
103
  },
1238
104
  ...e
1239
105
  ];
1240
- t(u), o.success(s("createSuccessfully"));
106
+ n(g), i.success(f("createSuccessfully"));
1241
107
  }
1242
- function d(u) {
1243
- const f = e.filter((h) => h.label !== u);
1244
- t(f);
108
+ function x(g) {
109
+ const o = e.filter((s) => s.label !== g);
110
+ n(o);
1245
111
  }
1246
- return /* @__PURE__ */ P(
1247
- Be,
112
+ return /* @__PURE__ */ m(
113
+ E,
1248
114
  {
1249
115
  bordered: !0,
1250
116
  dataSource: e,
@@ -1252,12 +118,12 @@ const ui = ({
1252
118
  rowKey: "label",
1253
119
  size: "small",
1254
120
  scroll: {
1255
- y: n,
121
+ y: a,
1256
122
  x: !0
1257
123
  },
1258
124
  locale: {
1259
- emptyText: () => /* @__PURE__ */ P(
1260
- $,
125
+ emptyText: () => /* @__PURE__ */ m(
126
+ C,
1261
127
  {
1262
128
  direction: "vertical",
1263
129
  size: 24,
@@ -1267,40 +133,40 @@ const ui = ({
1267
133
  padding: "62px 0px"
1268
134
  },
1269
135
  children: [
1270
- /* @__PURE__ */ p(Qn, {}),
1271
- /* @__PURE__ */ p(Z, { type: "primary", onClick: l, children: s("create") })
136
+ /* @__PURE__ */ t(P, {}),
137
+ /* @__PURE__ */ t(b, { type: "primary", onClick: d, children: f("create") })
1272
138
  ]
1273
139
  }
1274
140
  )
1275
141
  },
1276
- footer: () => /* @__PURE__ */ P(Ze, { style: { width: "100%" }, justify: "space-between", children: [
1277
- /* @__PURE__ */ p($, { children: /* @__PURE__ */ p("div", {}) }),
1278
- /* @__PURE__ */ p($, { children: /* @__PURE__ */ p(Z, { type: "primary", onClick: l, children: s("create") }) })
142
+ footer: () => /* @__PURE__ */ m(G, { style: { width: "100%" }, justify: "space-between", children: [
143
+ /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t("div", {}) }),
144
+ /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(b, { type: "primary", onClick: d, children: f("create") }) })
1279
145
  ] }),
1280
146
  children: [
1281
- /* @__PURE__ */ p(
1282
- Be.Column,
147
+ /* @__PURE__ */ t(
148
+ E.Column,
1283
149
  {
1284
- title: s("titleFieldName"),
150
+ title: f("titleFieldName"),
1285
151
  dataIndex: "label",
1286
152
  width: 400,
1287
- render: (u, f) => /* @__PURE__ */ p(
1288
- Dn,
153
+ render: (g, o) => /* @__PURE__ */ t(
154
+ A,
1289
155
  {
1290
- maxLength: a,
156
+ maxLength: l,
1291
157
  type: "input",
1292
- value: u,
1293
- onChange: (h) => {
1294
- if (f.label !== h) {
1295
- if (e.find((m) => m.label === h)) {
1296
- o.error(s("cannotSavedMessageCuzLabelExisted"));
158
+ value: g,
159
+ onChange: (s) => {
160
+ if (o.label !== s) {
161
+ if (e.find((h) => h.label === s)) {
162
+ i.error(f("cannotSavedMessageCuzLabelExisted"));
1297
163
  return;
1298
164
  }
1299
- if (h.trim() === "") {
1300
- o.error(s("cannotSavedMessageCuzLabelEmpty"));
165
+ if (s.trim() === "") {
166
+ i.error(f("cannotSavedMessageCuzLabelEmpty"));
1301
167
  return;
1302
168
  }
1303
- f.label = h, c(f);
169
+ o.label = s, c(o);
1304
170
  }
1305
171
  }
1306
172
  }
@@ -1308,44 +174,44 @@ const ui = ({
1308
174
  },
1309
175
  "label"
1310
176
  ),
1311
- /* @__PURE__ */ p(
1312
- Be.Column,
177
+ /* @__PURE__ */ t(
178
+ E.Column,
1313
179
  {
1314
- title: s("content"),
180
+ title: f("content"),
1315
181
  dataIndex: "content",
1316
182
  width: 400,
1317
- render: (u, f) => /* @__PURE__ */ p(
1318
- Dn,
183
+ render: (g, o) => /* @__PURE__ */ t(
184
+ A,
1319
185
  {
1320
- maxLength: i,
186
+ maxLength: u,
1321
187
  type: "textarea",
1322
- value: u,
1323
- onChange: (h) => {
1324
- if (h.trim() === "") {
1325
- o.error(s("cannotSavedMessageCuzContentEmpty"));
188
+ value: g,
189
+ onChange: (s) => {
190
+ if (s.trim() === "") {
191
+ i.error(f("cannotSavedMessageCuzContentEmpty"));
1326
192
  return;
1327
193
  }
1328
- f.content = h, c(f);
194
+ o.content = s, c(o);
1329
195
  }
1330
196
  }
1331
197
  )
1332
198
  },
1333
199
  "content"
1334
200
  ),
1335
- /* @__PURE__ */ p(
1336
- Be.Column,
201
+ /* @__PURE__ */ t(
202
+ E.Column,
1337
203
  {
1338
204
  title: "操作",
1339
205
  dataIndex: "id",
1340
206
  width: 120,
1341
- render: (u, f) => /* @__PURE__ */ p($, { size: 4, children: /* @__PURE__ */ p(
1342
- Z,
207
+ render: (g, o) => /* @__PURE__ */ t(C, { size: 4, children: /* @__PURE__ */ t(
208
+ b,
1343
209
  {
1344
210
  size: "small",
1345
211
  type: "text",
1346
212
  danger: !0,
1347
- onClick: () => d(f.label),
1348
- children: s("delete")
213
+ onClick: () => x(o.label),
214
+ children: f("delete")
1349
215
  }
1350
216
  ) })
1351
217
  },
@@ -1354,7 +220,7 @@ const ui = ({
1354
220
  ]
1355
221
  }
1356
222
  );
1357
- }, fi = K.div`
223
+ }, Ue = y.div`
1358
224
  border: 1px solid transparent;
1359
225
  padding: 0 4px;
1360
226
  margin: 0 -4px;
@@ -1365,24 +231,24 @@ const ui = ({
1365
231
  border-color: ${(e) => e.$isDark ? "#4d4848" : "#c0bbbb"};
1366
232
  }
1367
233
  `;
1368
- function Dn(e) {
1369
- const [t, n] = V(!1), r = ut(null), o = er();
1370
- de(() => {
1371
- t && r.current && (e.type === "input" ? r.current.select() : r.current.focus());
1372
- }, [t, e.type]);
1373
- function a() {
1374
- n(!0);
234
+ function A(e) {
235
+ const [n, a] = v(!1), r = _(null), i = W();
236
+ D(() => {
237
+ n && r.current && (e.type === "input" ? r.current.select() : r.current.focus());
238
+ }, [n, e.type]);
239
+ function l() {
240
+ a(!0);
1375
241
  }
1376
- function i(c) {
1377
- n(!1), e.onChange(c);
242
+ function u(c) {
243
+ a(!1), e.onChange(c);
1378
244
  }
1379
- function s(c) {
245
+ function f(c) {
1380
246
  e.onChange(c), r.current.blur();
1381
247
  }
1382
- if (t) {
248
+ if (n) {
1383
249
  if (e.type === "textarea")
1384
- return /* @__PURE__ */ p("div", { style: { paddingBottom: 18 }, children: /* @__PURE__ */ p(
1385
- _t.TextArea,
250
+ return /* @__PURE__ */ t("div", { style: { paddingBottom: 18 }, children: /* @__PURE__ */ t(
251
+ $.TextArea,
1386
252
  {
1387
253
  showCount: !0,
1388
254
  maxLength: e.maxLength,
@@ -1391,23 +257,23 @@ function Dn(e) {
1391
257
  size: "small",
1392
258
  style: { width: "100%" },
1393
259
  autoSize: { minRows: 4, maxRows: 4 },
1394
- onBlur: (c) => i(c.target.value),
260
+ onBlur: (c) => u(c.target.value),
1395
261
  onKeyDown: (c) => {
1396
262
  if (c.key === "Enter") {
1397
263
  if (c.shiftKey || c.ctrlKey || c.metaKey)
1398
264
  return;
1399
265
  {
1400
266
  c.preventDefault();
1401
- const l = c.target;
1402
- return s(l.value), !1;
267
+ const d = c.target;
268
+ return f(d.value), !1;
1403
269
  }
1404
270
  }
1405
271
  }
1406
272
  }
1407
273
  ) });
1408
274
  if (e.type === "input")
1409
- return /* @__PURE__ */ p(
1410
- _t,
275
+ return /* @__PURE__ */ t(
276
+ $,
1411
277
  {
1412
278
  showCount: !0,
1413
279
  maxLength: e.maxLength,
@@ -1415,15 +281,15 @@ function Dn(e) {
1415
281
  ref: r,
1416
282
  size: "small",
1417
283
  style: { width: "100%" },
1418
- onBlur: (c) => i(c.target.value),
284
+ onBlur: (c) => u(c.target.value),
1419
285
  onPressEnter: (c) => {
1420
- const l = c.target;
1421
- s(l.value);
286
+ const d = c.target;
287
+ f(d.value);
1422
288
  }
1423
289
  }
1424
290
  );
1425
291
  }
1426
- return /* @__PURE__ */ p(fi, { onClick: a, $isDark: o, children: /* @__PURE__ */ p(
292
+ return /* @__PURE__ */ t(Ue, { onClick: l, $isDark: i, children: /* @__PURE__ */ t(
1427
293
  "div",
1428
294
  {
1429
295
  style: { minHeight: 22 },
@@ -1435,941 +301,11 @@ function Dn(e) {
1435
301
  }
1436
302
  ) });
1437
303
  }
1438
- var di = /* @__PURE__ */ en({});
1439
- const Mr = di;
1440
- function pe() {
1441
- return pe = Object.assign ? Object.assign.bind() : function(e) {
1442
- for (var t = 1; t < arguments.length; t++) {
1443
- var n = arguments[t];
1444
- for (var r in n)
1445
- Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1446
- }
1447
- return e;
1448
- }, pe.apply(this, arguments);
1449
- }
1450
- function hi(e) {
1451
- if (Array.isArray(e))
1452
- return e;
1453
- }
1454
- function pi(e, t) {
1455
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1456
- if (n != null) {
1457
- var r, o, a, i, s = [], c = !0, l = !1;
1458
- try {
1459
- if (a = (n = n.call(e)).next, t === 0) {
1460
- if (Object(n) !== n)
1461
- return;
1462
- c = !1;
1463
- } else
1464
- for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0)
1465
- ;
1466
- } catch (d) {
1467
- l = !0, o = d;
1468
- } finally {
1469
- try {
1470
- if (!c && n.return != null && (i = n.return(), Object(i) !== i))
1471
- return;
1472
- } finally {
1473
- if (l)
1474
- throw o;
1475
- }
1476
- }
1477
- return s;
1478
- }
1479
- }
1480
- function zn(e, t) {
1481
- (t == null || t > e.length) && (t = e.length);
1482
- for (var n = 0, r = new Array(t); n < t; n++)
1483
- r[n] = e[n];
1484
- return r;
1485
- }
1486
- function gi(e, t) {
1487
- if (e) {
1488
- if (typeof e == "string")
1489
- return zn(e, t);
1490
- var n = Object.prototype.toString.call(e).slice(8, -1);
1491
- if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
1492
- return Array.from(e);
1493
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1494
- return zn(e, t);
1495
- }
1496
- }
1497
- function mi() {
1498
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1499
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1500
- }
1501
- function Nr(e, t) {
1502
- return hi(e) || pi(e, t) || gi(e, t) || mi();
1503
- }
1504
- function ge(e) {
1505
- "@babel/helpers - typeof";
1506
- return ge = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1507
- return typeof t;
1508
- } : function(t) {
1509
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1510
- }, ge(e);
1511
- }
1512
- function yi(e, t) {
1513
- if (ge(e) != "object" || !e)
1514
- return e;
1515
- var n = e[Symbol.toPrimitive];
1516
- if (n !== void 0) {
1517
- var r = n.call(e, t || "default");
1518
- if (ge(r) != "object")
1519
- return r;
1520
- throw new TypeError("@@toPrimitive must return a primitive value.");
1521
- }
1522
- return (t === "string" ? String : Number)(e);
1523
- }
1524
- function bi(e) {
1525
- var t = yi(e, "string");
1526
- return ge(t) == "symbol" ? t : String(t);
1527
- }
1528
- function Wt(e, t, n) {
1529
- return t = bi(t), t in e ? Object.defineProperty(e, t, {
1530
- value: n,
1531
- enumerable: !0,
1532
- configurable: !0,
1533
- writable: !0
1534
- }) : e[t] = n, e;
1535
- }
1536
- function vi(e, t) {
1537
- if (e == null)
1538
- return {};
1539
- var n = {}, r = Object.keys(e), o, a;
1540
- for (a = 0; a < r.length; a++)
1541
- o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1542
- return n;
1543
- }
1544
- function Pr(e, t) {
1545
- if (e == null)
1546
- return {};
1547
- var n = vi(e, t), r, o;
1548
- if (Object.getOwnPropertySymbols) {
1549
- var a = Object.getOwnPropertySymbols(e);
1550
- for (o = 0; o < a.length; o++)
1551
- r = a[o], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
1552
- }
1553
- return n;
1554
- }
1555
- var Tr = { exports: {} };
1556
- /*!
1557
- Copyright (c) 2018 Jed Watson.
1558
- Licensed under the MIT License (MIT), see
1559
- http://jedwatson.github.io/classnames
1560
- */
1561
- (function(e) {
1562
- (function() {
1563
- var t = {}.hasOwnProperty;
1564
- function n() {
1565
- for (var a = "", i = 0; i < arguments.length; i++) {
1566
- var s = arguments[i];
1567
- s && (a = o(a, r(s)));
1568
- }
1569
- return a;
1570
- }
1571
- function r(a) {
1572
- if (typeof a == "string" || typeof a == "number")
1573
- return a;
1574
- if (typeof a != "object")
1575
- return "";
1576
- if (Array.isArray(a))
1577
- return n.apply(null, a);
1578
- if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
1579
- return a.toString();
1580
- var i = "";
1581
- for (var s in a)
1582
- t.call(a, s) && a[s] && (i = o(i, s));
1583
- return i;
1584
- }
1585
- function o(a, i) {
1586
- return i ? a ? a + " " + i : a + i : a;
1587
- }
1588
- e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
1589
- })();
1590
- })(Tr);
1591
- var wi = Tr.exports;
1592
- const xi = /* @__PURE__ */ rr(wi);
1593
- function q(e, t) {
1594
- Ci(e) && (e = "100%");
1595
- const n = ki(e);
1596
- return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
1597
- }
1598
- function Ci(e) {
1599
- return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
1600
- }
1601
- function ki(e) {
1602
- return typeof e == "string" && e.indexOf("%") !== -1;
1603
- }
1604
- function Si(e) {
1605
- return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
1606
- }
1607
- function Ke(e) {
1608
- return Number(e) <= 1 ? `${Number(e) * 100}%` : e;
1609
- }
1610
- function Nt(e) {
1611
- return e.length === 1 ? "0" + e : String(e);
1612
- }
1613
- function Ei(e, t, n) {
1614
- return {
1615
- r: q(e, 255) * 255,
1616
- g: q(t, 255) * 255,
1617
- b: q(n, 255) * 255
1618
- };
1619
- }
1620
- function Pt(e, t, n) {
1621
- return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
1622
- }
1623
- function Oi(e, t, n) {
1624
- let r, o, a;
1625
- if (e = q(e, 360), t = q(t, 100), n = q(n, 100), t === 0)
1626
- o = n, a = n, r = n;
1627
- else {
1628
- const i = n < 0.5 ? n * (1 + t) : n + t - n * t, s = 2 * n - i;
1629
- r = Pt(s, i, e + 1 / 3), o = Pt(s, i, e), a = Pt(s, i, e - 1 / 3);
1630
- }
1631
- return { r: r * 255, g: o * 255, b: a * 255 };
1632
- }
1633
- function Ai(e, t, n) {
1634
- e = q(e, 255), t = q(t, 255), n = q(n, 255);
1635
- const r = Math.max(e, t, n), o = Math.min(e, t, n);
1636
- let a = 0;
1637
- const i = r, s = r - o, c = r === 0 ? 0 : s / r;
1638
- if (r === o)
1639
- a = 0;
1640
- else {
1641
- switch (r) {
1642
- case e:
1643
- a = (t - n) / s + (t < n ? 6 : 0);
1644
- break;
1645
- case t:
1646
- a = (n - e) / s + 2;
1647
- break;
1648
- case n:
1649
- a = (e - t) / s + 4;
1650
- break;
1651
- }
1652
- a /= 6;
1653
- }
1654
- return { h: a, s: c, v: i };
1655
- }
1656
- function Mi(e, t, n) {
1657
- e = q(e, 360) * 6, t = q(t, 100), n = q(n, 100);
1658
- const r = Math.floor(e), o = e - r, a = n * (1 - t), i = n * (1 - o * t), s = n * (1 - (1 - o) * t), c = r % 6, l = [n, i, a, a, s, n][c], d = [s, n, n, i, a, a][c], u = [a, a, s, n, n, i][c];
1659
- return { r: l * 255, g: d * 255, b: u * 255 };
1660
- }
1661
- function Ni(e, t, n, r) {
1662
- const o = [
1663
- Nt(Math.round(e).toString(16)),
1664
- Nt(Math.round(t).toString(16)),
1665
- Nt(Math.round(n).toString(16))
1666
- ];
1667
- return r && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
1668
- }
1669
- function $n(e) {
1670
- return F(e) / 255;
1671
- }
1672
- function F(e) {
1673
- return parseInt(e, 16);
1674
- }
1675
- const _n = {
1676
- aliceblue: "#f0f8ff",
1677
- antiquewhite: "#faebd7",
1678
- aqua: "#00ffff",
1679
- aquamarine: "#7fffd4",
1680
- azure: "#f0ffff",
1681
- beige: "#f5f5dc",
1682
- bisque: "#ffe4c4",
1683
- black: "#000000",
1684
- blanchedalmond: "#ffebcd",
1685
- blue: "#0000ff",
1686
- blueviolet: "#8a2be2",
1687
- brown: "#a52a2a",
1688
- burlywood: "#deb887",
1689
- cadetblue: "#5f9ea0",
1690
- chartreuse: "#7fff00",
1691
- chocolate: "#d2691e",
1692
- coral: "#ff7f50",
1693
- cornflowerblue: "#6495ed",
1694
- cornsilk: "#fff8dc",
1695
- crimson: "#dc143c",
1696
- cyan: "#00ffff",
1697
- darkblue: "#00008b",
1698
- darkcyan: "#008b8b",
1699
- darkgoldenrod: "#b8860b",
1700
- darkgray: "#a9a9a9",
1701
- darkgreen: "#006400",
1702
- darkgrey: "#a9a9a9",
1703
- darkkhaki: "#bdb76b",
1704
- darkmagenta: "#8b008b",
1705
- darkolivegreen: "#556b2f",
1706
- darkorange: "#ff8c00",
1707
- darkorchid: "#9932cc",
1708
- darkred: "#8b0000",
1709
- darksalmon: "#e9967a",
1710
- darkseagreen: "#8fbc8f",
1711
- darkslateblue: "#483d8b",
1712
- darkslategray: "#2f4f4f",
1713
- darkslategrey: "#2f4f4f",
1714
- darkturquoise: "#00ced1",
1715
- darkviolet: "#9400d3",
1716
- deeppink: "#ff1493",
1717
- deepskyblue: "#00bfff",
1718
- dimgray: "#696969",
1719
- dimgrey: "#696969",
1720
- dodgerblue: "#1e90ff",
1721
- firebrick: "#b22222",
1722
- floralwhite: "#fffaf0",
1723
- forestgreen: "#228b22",
1724
- fuchsia: "#ff00ff",
1725
- gainsboro: "#dcdcdc",
1726
- ghostwhite: "#f8f8ff",
1727
- goldenrod: "#daa520",
1728
- gold: "#ffd700",
1729
- gray: "#808080",
1730
- green: "#008000",
1731
- greenyellow: "#adff2f",
1732
- grey: "#808080",
1733
- honeydew: "#f0fff0",
1734
- hotpink: "#ff69b4",
1735
- indianred: "#cd5c5c",
1736
- indigo: "#4b0082",
1737
- ivory: "#fffff0",
1738
- khaki: "#f0e68c",
1739
- lavenderblush: "#fff0f5",
1740
- lavender: "#e6e6fa",
1741
- lawngreen: "#7cfc00",
1742
- lemonchiffon: "#fffacd",
1743
- lightblue: "#add8e6",
1744
- lightcoral: "#f08080",
1745
- lightcyan: "#e0ffff",
1746
- lightgoldenrodyellow: "#fafad2",
1747
- lightgray: "#d3d3d3",
1748
- lightgreen: "#90ee90",
1749
- lightgrey: "#d3d3d3",
1750
- lightpink: "#ffb6c1",
1751
- lightsalmon: "#ffa07a",
1752
- lightseagreen: "#20b2aa",
1753
- lightskyblue: "#87cefa",
1754
- lightslategray: "#778899",
1755
- lightslategrey: "#778899",
1756
- lightsteelblue: "#b0c4de",
1757
- lightyellow: "#ffffe0",
1758
- lime: "#00ff00",
1759
- limegreen: "#32cd32",
1760
- linen: "#faf0e6",
1761
- magenta: "#ff00ff",
1762
- maroon: "#800000",
1763
- mediumaquamarine: "#66cdaa",
1764
- mediumblue: "#0000cd",
1765
- mediumorchid: "#ba55d3",
1766
- mediumpurple: "#9370db",
1767
- mediumseagreen: "#3cb371",
1768
- mediumslateblue: "#7b68ee",
1769
- mediumspringgreen: "#00fa9a",
1770
- mediumturquoise: "#48d1cc",
1771
- mediumvioletred: "#c71585",
1772
- midnightblue: "#191970",
1773
- mintcream: "#f5fffa",
1774
- mistyrose: "#ffe4e1",
1775
- moccasin: "#ffe4b5",
1776
- navajowhite: "#ffdead",
1777
- navy: "#000080",
1778
- oldlace: "#fdf5e6",
1779
- olive: "#808000",
1780
- olivedrab: "#6b8e23",
1781
- orange: "#ffa500",
1782
- orangered: "#ff4500",
1783
- orchid: "#da70d6",
1784
- palegoldenrod: "#eee8aa",
1785
- palegreen: "#98fb98",
1786
- paleturquoise: "#afeeee",
1787
- palevioletred: "#db7093",
1788
- papayawhip: "#ffefd5",
1789
- peachpuff: "#ffdab9",
1790
- peru: "#cd853f",
1791
- pink: "#ffc0cb",
1792
- plum: "#dda0dd",
1793
- powderblue: "#b0e0e6",
1794
- purple: "#800080",
1795
- rebeccapurple: "#663399",
1796
- red: "#ff0000",
1797
- rosybrown: "#bc8f8f",
1798
- royalblue: "#4169e1",
1799
- saddlebrown: "#8b4513",
1800
- salmon: "#fa8072",
1801
- sandybrown: "#f4a460",
1802
- seagreen: "#2e8b57",
1803
- seashell: "#fff5ee",
1804
- sienna: "#a0522d",
1805
- silver: "#c0c0c0",
1806
- skyblue: "#87ceeb",
1807
- slateblue: "#6a5acd",
1808
- slategray: "#708090",
1809
- slategrey: "#708090",
1810
- snow: "#fffafa",
1811
- springgreen: "#00ff7f",
1812
- steelblue: "#4682b4",
1813
- tan: "#d2b48c",
1814
- teal: "#008080",
1815
- thistle: "#d8bfd8",
1816
- tomato: "#ff6347",
1817
- turquoise: "#40e0d0",
1818
- violet: "#ee82ee",
1819
- wheat: "#f5deb3",
1820
- white: "#ffffff",
1821
- whitesmoke: "#f5f5f5",
1822
- yellow: "#ffff00",
1823
- yellowgreen: "#9acd32"
1824
- };
1825
- function De(e) {
1826
- let t = { r: 0, g: 0, b: 0 }, n = 1, r = null, o = null, a = null, i = !1, s = !1;
1827
- return typeof e == "string" && (e = Ii(e)), typeof e == "object" && (X(e.r) && X(e.g) && X(e.b) ? (t = Ei(e.r, e.g, e.b), i = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : X(e.h) && X(e.s) && X(e.v) ? (r = Ke(e.s), o = Ke(e.v), t = Mi(e.h, r, o), i = !0, s = "hsv") : X(e.h) && X(e.s) && X(e.l) && (r = Ke(e.s), a = Ke(e.l), t = Oi(e.h, r, a), i = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = Si(n), {
1828
- ok: i,
1829
- format: e.format || s,
1830
- r: Math.min(255, Math.max(t.r, 0)),
1831
- g: Math.min(255, Math.max(t.g, 0)),
1832
- b: Math.min(255, Math.max(t.b, 0)),
1833
- a: n
1834
- };
1835
- }
1836
- const Pi = "[-\\+]?\\d+%?", Ti = "[-\\+]?\\d*\\.\\d+%?", te = `(?:${Ti})|(?:${Pi})`, Tt = `[\\s|\\(]+(${te})[,|\\s]+(${te})[,|\\s]+(${te})\\s*\\)?`, It = `[\\s|\\(]+(${te})[,|\\s]+(${te})[,|\\s]+(${te})[,|\\s]+(${te})\\s*\\)?`, H = {
1837
- CSS_UNIT: new RegExp(te),
1838
- rgb: new RegExp("rgb" + Tt),
1839
- rgba: new RegExp("rgba" + It),
1840
- hsl: new RegExp("hsl" + Tt),
1841
- hsla: new RegExp("hsla" + It),
1842
- hsv: new RegExp("hsv" + Tt),
1843
- hsva: new RegExp("hsva" + It),
1844
- hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1845
- hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
1846
- hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1847
- hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
1848
- };
1849
- function Ii(e) {
1850
- if (e = e.trim().toLowerCase(), e.length === 0)
1851
- return !1;
1852
- let t = !1;
1853
- if (_n[e])
1854
- e = _n[e], t = !0;
1855
- else if (e === "transparent")
1856
- return { r: 0, g: 0, b: 0, a: 0, format: "name" };
1857
- let n = H.rgb.exec(e);
1858
- return n ? { r: n[1], g: n[2], b: n[3] } : (n = H.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = H.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = H.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = H.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = H.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = H.hex8.exec(e), n ? {
1859
- r: F(n[1]),
1860
- g: F(n[2]),
1861
- b: F(n[3]),
1862
- a: $n(n[4]),
1863
- format: t ? "name" : "hex8"
1864
- } : (n = H.hex6.exec(e), n ? {
1865
- r: F(n[1]),
1866
- g: F(n[2]),
1867
- b: F(n[3]),
1868
- format: t ? "name" : "hex"
1869
- } : (n = H.hex4.exec(e), n ? {
1870
- r: F(n[1] + n[1]),
1871
- g: F(n[2] + n[2]),
1872
- b: F(n[3] + n[3]),
1873
- a: $n(n[4] + n[4]),
1874
- format: t ? "name" : "hex8"
1875
- } : (n = H.hex3.exec(e), n ? {
1876
- r: F(n[1] + n[1]),
1877
- g: F(n[2] + n[2]),
1878
- b: F(n[3] + n[3]),
1879
- format: t ? "name" : "hex"
1880
- } : !1)))))))));
1881
- }
1882
- function X(e) {
1883
- return !!H.CSS_UNIT.exec(String(e));
1884
- }
1885
- var Ye = 2, Fn = 0.16, Di = 0.05, zi = 0.05, $i = 0.15, Ir = 5, Dr = 4, _i = [{
1886
- index: 7,
1887
- opacity: 0.15
1888
- }, {
1889
- index: 6,
1890
- opacity: 0.25
1891
- }, {
1892
- index: 5,
1893
- opacity: 0.3
1894
- }, {
1895
- index: 5,
1896
- opacity: 0.45
1897
- }, {
1898
- index: 5,
1899
- opacity: 0.65
1900
- }, {
1901
- index: 5,
1902
- opacity: 0.85
1903
- }, {
1904
- index: 4,
1905
- opacity: 0.9
1906
- }, {
1907
- index: 3,
1908
- opacity: 0.95
1909
- }, {
1910
- index: 2,
1911
- opacity: 0.97
1912
- }, {
1913
- index: 1,
1914
- opacity: 0.98
1915
- }];
1916
- function Rn(e) {
1917
- var t = e.r, n = e.g, r = e.b, o = Ai(t, n, r);
1918
- return {
1919
- h: o.h * 360,
1920
- s: o.s,
1921
- v: o.v
1922
- };
1923
- }
1924
- function Xe(e) {
1925
- var t = e.r, n = e.g, r = e.b;
1926
- return "#".concat(Ni(t, n, r, !1));
1927
- }
1928
- function Fi(e, t, n) {
1929
- var r = n / 100, o = {
1930
- r: (t.r - e.r) * r + e.r,
1931
- g: (t.g - e.g) * r + e.g,
1932
- b: (t.b - e.b) * r + e.b
1933
- };
1934
- return o;
1935
- }
1936
- function jn(e, t, n) {
1937
- var r;
1938
- return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? r = n ? Math.round(e.h) - Ye * t : Math.round(e.h) + Ye * t : r = n ? Math.round(e.h) + Ye * t : Math.round(e.h) - Ye * t, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
1939
- }
1940
- function Ln(e, t, n) {
1941
- if (e.h === 0 && e.s === 0)
1942
- return e.s;
1943
- var r;
1944
- return n ? r = e.s - Fn * t : t === Dr ? r = e.s + Fn : r = e.s + Di * t, r > 1 && (r = 1), n && t === Ir && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2));
1945
- }
1946
- function Gn(e, t, n) {
1947
- var r;
1948
- return n ? r = e.v + zi * t : r = e.v - $i * t, r > 1 && (r = 1), Number(r.toFixed(2));
1949
- }
1950
- function Ut(e) {
1951
- for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], r = De(e), o = Ir; o > 0; o -= 1) {
1952
- var a = Rn(r), i = Xe(De({
1953
- h: jn(a, o, !0),
1954
- s: Ln(a, o, !0),
1955
- v: Gn(a, o, !0)
1956
- }));
1957
- n.push(i);
1958
- }
1959
- n.push(Xe(r));
1960
- for (var s = 1; s <= Dr; s += 1) {
1961
- var c = Rn(r), l = Xe(De({
1962
- h: jn(c, s),
1963
- s: Ln(c, s),
1964
- v: Gn(c, s)
1965
- }));
1966
- n.push(l);
1967
- }
1968
- return t.theme === "dark" ? _i.map(function(d) {
1969
- var u = d.index, f = d.opacity, h = Xe(Fi(De(t.backgroundColor || "#141414"), De(n[u]), f * 100));
1970
- return h;
1971
- }) : n;
1972
- }
1973
- var Dt = {
1974
- red: "#F5222D",
1975
- volcano: "#FA541C",
1976
- orange: "#FA8C16",
1977
- gold: "#FAAD14",
1978
- yellow: "#FADB14",
1979
- lime: "#A0D911",
1980
- green: "#52C41A",
1981
- cyan: "#13C2C2",
1982
- blue: "#1677FF",
1983
- geekblue: "#2F54EB",
1984
- purple: "#722ED1",
1985
- magenta: "#EB2F96",
1986
- grey: "#666666"
1987
- }, ot = {}, zt = {};
1988
- Object.keys(Dt).forEach(function(e) {
1989
- ot[e] = Ut(Dt[e]), ot[e].primary = ot[e][5], zt[e] = Ut(Dt[e], {
1990
- theme: "dark",
1991
- backgroundColor: "#141414"
1992
- }), zt[e].primary = zt[e][5];
1993
- });
1994
- var Ri = ot.blue;
1995
- function qn(e, t) {
1996
- var n = Object.keys(e);
1997
- if (Object.getOwnPropertySymbols) {
1998
- var r = Object.getOwnPropertySymbols(e);
1999
- t && (r = r.filter(function(o) {
2000
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
2001
- })), n.push.apply(n, r);
2002
- }
2003
- return n;
2004
- }
2005
- function ne(e) {
2006
- for (var t = 1; t < arguments.length; t++) {
2007
- var n = arguments[t] != null ? arguments[t] : {};
2008
- t % 2 ? qn(Object(n), !0).forEach(function(r) {
2009
- Wt(e, r, n[r]);
2010
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qn(Object(n)).forEach(function(r) {
2011
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
2012
- });
2013
- }
2014
- return e;
2015
- }
2016
- function ji() {
2017
- return !!(typeof window < "u" && window.document && window.document.createElement);
2018
- }
2019
- function Li(e, t) {
2020
- if (!e)
2021
- return !1;
2022
- if (e.contains)
2023
- return e.contains(t);
2024
- for (var n = t; n; ) {
2025
- if (n === e)
2026
- return !0;
2027
- n = n.parentNode;
2028
- }
2029
- return !1;
2030
- }
2031
- var Bn = "data-rc-order", Hn = "data-rc-priority", Gi = "rc-util-key", Vt = /* @__PURE__ */ new Map();
2032
- function zr() {
2033
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
2034
- return t ? t.startsWith("data-") ? t : "data-".concat(t) : Gi;
2035
- }
2036
- function cn(e) {
2037
- if (e.attachTo)
2038
- return e.attachTo;
2039
- var t = document.querySelector("head");
2040
- return t || document.body;
2041
- }
2042
- function qi(e) {
2043
- return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
2044
- }
2045
- function $r(e) {
2046
- return Array.from((Vt.get(e) || e).children).filter(function(t) {
2047
- return t.tagName === "STYLE";
2048
- });
2049
- }
2050
- function _r(e) {
2051
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2052
- if (!ji())
2053
- return null;
2054
- var n = t.csp, r = t.prepend, o = t.priority, a = o === void 0 ? 0 : o, i = qi(r), s = i === "prependQueue", c = document.createElement("style");
2055
- c.setAttribute(Bn, i), s && a && c.setAttribute(Hn, "".concat(a)), n != null && n.nonce && (c.nonce = n == null ? void 0 : n.nonce), c.innerHTML = e;
2056
- var l = cn(t), d = l.firstChild;
2057
- if (r) {
2058
- if (s) {
2059
- var u = $r(l).filter(function(f) {
2060
- if (!["prepend", "prependQueue"].includes(f.getAttribute(Bn)))
2061
- return !1;
2062
- var h = Number(f.getAttribute(Hn) || 0);
2063
- return a >= h;
2064
- });
2065
- if (u.length)
2066
- return l.insertBefore(c, u[u.length - 1].nextSibling), c;
2067
- }
2068
- l.insertBefore(c, d);
2069
- } else
2070
- l.appendChild(c);
2071
- return c;
2072
- }
2073
- function Bi(e) {
2074
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = cn(t);
2075
- return $r(n).find(function(r) {
2076
- return r.getAttribute(zr(t)) === e;
2077
- });
2078
- }
2079
- function Hi(e, t) {
2080
- var n = Vt.get(e);
2081
- if (!n || !Li(document, n)) {
2082
- var r = _r("", t), o = r.parentNode;
2083
- Vt.set(e, o), e.removeChild(r);
2084
- }
2085
- }
2086
- function Wi(e, t) {
2087
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = cn(n);
2088
- Hi(r, n);
2089
- var o = Bi(t, n);
2090
- if (o) {
2091
- var a, i;
2092
- if ((a = n.csp) !== null && a !== void 0 && a.nonce && o.nonce !== ((i = n.csp) === null || i === void 0 ? void 0 : i.nonce)) {
2093
- var s;
2094
- o.nonce = (s = n.csp) === null || s === void 0 ? void 0 : s.nonce;
2095
- }
2096
- return o.innerHTML !== e && (o.innerHTML = e), o;
2097
- }
2098
- var c = _r(e, n);
2099
- return c.setAttribute(zr(n), t), c;
2100
- }
2101
- function Fr(e) {
2102
- var t;
2103
- return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
2104
- }
2105
- function Ui(e) {
2106
- return Fr(e) instanceof ShadowRoot;
2107
- }
2108
- function Vi(e) {
2109
- return Ui(e) ? Fr(e) : null;
2110
- }
2111
- var Kt = {}, ln = [], Ki = function(t) {
2112
- ln.push(t);
2113
- };
2114
- function Yi(e, t) {
2115
- if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
2116
- var n = ln.reduce(function(r, o) {
2117
- return o(r ?? "", "warning");
2118
- }, t);
2119
- n && console.error("Warning: ".concat(n));
2120
- }
2121
- }
2122
- function Xi(e, t) {
2123
- if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
2124
- var n = ln.reduce(function(r, o) {
2125
- return o(r ?? "", "note");
2126
- }, t);
2127
- n && console.warn("Note: ".concat(n));
2128
- }
2129
- }
2130
- function Ji() {
2131
- Kt = {};
2132
- }
2133
- function Rr(e, t, n) {
2134
- !t && !Kt[n] && (e(!1, n), Kt[n] = !0);
2135
- }
2136
- function yt(e, t) {
2137
- Rr(Yi, e, t);
2138
- }
2139
- function Zi(e, t) {
2140
- Rr(Xi, e, t);
2141
- }
2142
- yt.preMessage = Ki;
2143
- yt.resetWarned = Ji;
2144
- yt.noteOnce = Zi;
2145
- function Qi(e) {
2146
- return e.replace(/-(.)/g, function(t, n) {
2147
- return n.toUpperCase();
2148
- });
2149
- }
2150
- function es(e, t) {
2151
- yt(e, "[@ant-design/icons] ".concat(t));
2152
- }
2153
- function Wn(e) {
2154
- return ge(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (ge(e.icon) === "object" || typeof e.icon == "function");
2155
- }
2156
- function Un() {
2157
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2158
- return Object.keys(e).reduce(function(t, n) {
2159
- var r = e[n];
2160
- switch (n) {
2161
- case "class":
2162
- t.className = r, delete t.class;
2163
- break;
2164
- default:
2165
- delete t[n], t[Qi(n)] = r;
2166
- }
2167
- return t;
2168
- }, {});
2169
- }
2170
- function Yt(e, t, n) {
2171
- return n ? /* @__PURE__ */ fe.createElement(e.tag, ne(ne({
2172
- key: t
2173
- }, Un(e.attrs)), n), (e.children || []).map(function(r, o) {
2174
- return Yt(r, "".concat(t, "-").concat(e.tag, "-").concat(o));
2175
- })) : /* @__PURE__ */ fe.createElement(e.tag, ne({
2176
- key: t
2177
- }, Un(e.attrs)), (e.children || []).map(function(r, o) {
2178
- return Yt(r, "".concat(t, "-").concat(e.tag, "-").concat(o));
2179
- }));
2180
- }
2181
- function jr(e) {
2182
- return Ut(e)[0];
2183
- }
2184
- function Lr(e) {
2185
- return e ? Array.isArray(e) ? e : [e] : [];
2186
- }
2187
- var ts = `
2188
- .anticon {
2189
- display: inline-block;
2190
- color: inherit;
2191
- font-style: normal;
2192
- line-height: 0;
2193
- text-align: center;
2194
- text-transform: none;
2195
- vertical-align: -0.125em;
2196
- text-rendering: optimizeLegibility;
2197
- -webkit-font-smoothing: antialiased;
2198
- -moz-osx-font-smoothing: grayscale;
2199
- }
2200
-
2201
- .anticon > * {
2202
- line-height: 1;
2203
- }
2204
-
2205
- .anticon svg {
2206
- display: inline-block;
2207
- }
2208
-
2209
- .anticon::before {
2210
- display: none;
2211
- }
2212
-
2213
- .anticon .anticon-icon {
2214
- display: block;
2215
- }
2216
-
2217
- .anticon[tabindex] {
2218
- cursor: pointer;
2219
- }
2220
-
2221
- .anticon-spin::before,
2222
- .anticon-spin {
2223
- display: inline-block;
2224
- -webkit-animation: loadingCircle 1s infinite linear;
2225
- animation: loadingCircle 1s infinite linear;
2226
- }
2227
-
2228
- @-webkit-keyframes loadingCircle {
2229
- 100% {
2230
- -webkit-transform: rotate(360deg);
2231
- transform: rotate(360deg);
2232
- }
2233
- }
2234
-
2235
- @keyframes loadingCircle {
2236
- 100% {
2237
- -webkit-transform: rotate(360deg);
2238
- transform: rotate(360deg);
2239
- }
2240
- }
2241
- `, ns = function(t) {
2242
- var n = lt(Mr), r = n.csp, o = n.prefixCls, a = ts;
2243
- o && (a = a.replace(/anticon/g, o)), de(function() {
2244
- var i = t.current, s = Vi(i);
2245
- Wi(a, "@ant-design-icons", {
2246
- prepend: !0,
2247
- csp: r,
2248
- attachTo: s
2249
- });
2250
- }, []);
2251
- }, rs = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], _e = {
2252
- primaryColor: "#333",
2253
- secondaryColor: "#E6E6E6",
2254
- calculated: !1
2255
- };
2256
- function os(e) {
2257
- var t = e.primaryColor, n = e.secondaryColor;
2258
- _e.primaryColor = t, _e.secondaryColor = n || jr(t), _e.calculated = !!n;
2259
- }
2260
- function as() {
2261
- return ne({}, _e);
2262
- }
2263
- var bt = function(t) {
2264
- var n = t.icon, r = t.className, o = t.onClick, a = t.style, i = t.primaryColor, s = t.secondaryColor, c = Pr(t, rs), l = j.useRef(), d = _e;
2265
- if (i && (d = {
2266
- primaryColor: i,
2267
- secondaryColor: s || jr(i)
2268
- }), ns(l), es(Wn(n), "icon should be icon definiton, but got ".concat(n)), !Wn(n))
2269
- return null;
2270
- var u = n;
2271
- return u && typeof u.icon == "function" && (u = ne(ne({}, u), {}, {
2272
- icon: u.icon(d.primaryColor, d.secondaryColor)
2273
- })), Yt(u.icon, "svg-".concat(u.name), ne(ne({
2274
- className: r,
2275
- onClick: o,
2276
- style: a,
2277
- "data-icon": u.name,
2278
- width: "1em",
2279
- height: "1em",
2280
- fill: "currentColor",
2281
- "aria-hidden": "true"
2282
- }, c), {}, {
2283
- ref: l
2284
- }));
2285
- };
2286
- bt.displayName = "IconReact";
2287
- bt.getTwoToneColors = as;
2288
- bt.setTwoToneColors = os;
2289
- const un = bt;
2290
- function Gr(e) {
2291
- var t = Lr(e), n = Nr(t, 2), r = n[0], o = n[1];
2292
- return un.setTwoToneColors({
2293
- primaryColor: r,
2294
- secondaryColor: o
2295
- });
2296
- }
2297
- function is() {
2298
- var e = un.getTwoToneColors();
2299
- return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
2300
- }
2301
- var ss = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
2302
- Gr(Ri.primary);
2303
- var vt = /* @__PURE__ */ j.forwardRef(function(e, t) {
2304
- var n, r = e.className, o = e.icon, a = e.spin, i = e.rotate, s = e.tabIndex, c = e.onClick, l = e.twoToneColor, d = Pr(e, ss), u = j.useContext(Mr), f = u.prefixCls, h = f === void 0 ? "anticon" : f, m = u.rootClassName, x = xi(m, h, (n = {}, Wt(n, "".concat(h, "-").concat(o.name), !!o.name), Wt(n, "".concat(h, "-spin"), !!a || o.name === "loading"), n), r), M = s;
2305
- M === void 0 && c && (M = -1);
2306
- var v = i ? {
2307
- msTransform: "rotate(".concat(i, "deg)"),
2308
- transform: "rotate(".concat(i, "deg)")
2309
- } : void 0, S = Lr(l), k = Nr(S, 2), E = k[0], A = k[1];
2310
- return /* @__PURE__ */ j.createElement("span", pe({
2311
- role: "img",
2312
- "aria-label": o.name
2313
- }, d, {
2314
- ref: t,
2315
- tabIndex: M,
2316
- onClick: c,
2317
- className: x
2318
- }), /* @__PURE__ */ j.createElement(un, {
2319
- icon: o,
2320
- primaryColor: E,
2321
- secondaryColor: A,
2322
- style: v
2323
- }));
2324
- });
2325
- vt.displayName = "AntdIcon";
2326
- vt.getTwoToneColor = is;
2327
- vt.setTwoToneColor = Gr;
2328
- const wt = vt;
2329
- var cs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" };
2330
- const ls = cs;
2331
- var qr = function(t, n) {
2332
- return /* @__PURE__ */ j.createElement(wt, pe({}, t, {
2333
- ref: n,
2334
- icon: ls
2335
- }));
2336
- };
2337
- process.env.NODE_ENV !== "production" && (qr.displayName = "DeleteOutlined");
2338
- const us = /* @__PURE__ */ j.forwardRef(qr);
2339
- var fs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" };
2340
- const ds = fs;
2341
- var Br = function(t, n) {
2342
- return /* @__PURE__ */ j.createElement(wt, pe({}, t, {
2343
- ref: n,
2344
- icon: ds
2345
- }));
2346
- };
2347
- process.env.NODE_ENV !== "production" && (Br.displayName = "EditOutlined");
2348
- const hs = /* @__PURE__ */ j.forwardRef(Br);
2349
- var ps = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
2350
- const gs = ps;
2351
- var Hr = function(t, n) {
2352
- return /* @__PURE__ */ j.createElement(wt, pe({}, t, {
2353
- ref: n,
2354
- icon: gs
2355
- }));
2356
- };
2357
- process.env.NODE_ENV !== "production" && (Hr.displayName = "PlusOutlined");
2358
- const ms = /* @__PURE__ */ j.forwardRef(Hr);
2359
- var ys = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" } }] }, name: "setting", theme: "outlined" };
2360
- const bs = ys;
2361
- var Wr = function(t, n) {
2362
- return /* @__PURE__ */ j.createElement(wt, pe({}, t, {
2363
- ref: n,
2364
- icon: bs
2365
- }));
2366
- };
2367
- process.env.NODE_ENV !== "production" && (Wr.displayName = "SettingOutlined");
2368
- const vs = /* @__PURE__ */ j.forwardRef(Wr), ws = K.div``, xs = K.div`
304
+ const Qe = y.div``, Ve = y.div`
2369
305
  min-height: 380px;
2370
- `, Cs = K.span`
306
+ `, Ze = y.span`
2371
307
  font-size: 12px;
2372
- `, ks = K.div`
308
+ `, Je = y.div`
2373
309
  &:hover {
2374
310
  .ant-btn {
2375
311
  display: block;
@@ -2378,53 +314,53 @@ const vs = /* @__PURE__ */ j.forwardRef(Wr), ws = K.div``, xs = K.div`
2378
314
  .ant-btn {
2379
315
  display: none;
2380
316
  }
2381
- `, Ss = K.div`
317
+ `, Xe = y.div`
2382
318
  background-color: ${(e) => e.$color};
2383
319
  width: 12px;
2384
320
  height: 12px;
2385
321
  border: 1px solid #fff;
2386
322
  border-radius: 4px;
2387
- `, Es = ({
323
+ `, Ye = ({
2388
324
  data: e = [],
2389
- onChange: t = () => {
325
+ onChange: n = () => {
2390
326
  },
2391
- ...n
327
+ ...a
2392
328
  }) => {
2393
- const [r, o] = V([]), { t: a } = Ae();
2394
- de(() => {
2395
- e.length > 0 && o([e[0].id]);
329
+ const [r, i] = v([]), { t: l } = z();
330
+ D(() => {
331
+ e.length > 0 && i([e[0].id]);
2396
332
  }, []);
2397
- const i = ce(() => e.map((f) => ({
2398
- key: f.id,
2399
- label: /* @__PURE__ */ p(ks, { children: /* @__PURE__ */ P(Ze, { justify: "space-between", align: "center", children: [
2400
- /* @__PURE__ */ P($, { children: [
2401
- /* @__PURE__ */ p("span", { children: f.title }),
2402
- f.data.length ? /* @__PURE__ */ P(Cs, { children: [
333
+ const u = S(() => e.map((o) => ({
334
+ key: o.id,
335
+ label: /* @__PURE__ */ t(Je, { children: /* @__PURE__ */ m(G, { justify: "space-between", align: "center", children: [
336
+ /* @__PURE__ */ m(C, { children: [
337
+ /* @__PURE__ */ t("span", { children: o.title }),
338
+ o.data.length ? /* @__PURE__ */ m(Ze, { children: [
2403
339
  "(",
2404
- f.data.length,
340
+ o.data.length,
2405
341
  ")"
2406
342
  ] }) : null
2407
343
  ] }),
2408
- /* @__PURE__ */ P($, { size: 8, children: [
2409
- /* @__PURE__ */ p(Ss, { $color: f.color }),
2410
- /* @__PURE__ */ p(
2411
- Os,
344
+ /* @__PURE__ */ m(C, { size: 8, children: [
345
+ /* @__PURE__ */ t(Xe, { $color: o.color }),
346
+ /* @__PURE__ */ t(
347
+ et,
2412
348
  {
2413
- data: f,
2414
- onSaved: (h) => c(f.id, h)
349
+ data: o,
350
+ onSaved: (s) => c(o.id, s)
2415
351
  }
2416
352
  ),
2417
- /* @__PURE__ */ p(
2418
- Vo,
353
+ /* @__PURE__ */ t(
354
+ $e,
2419
355
  {
2420
- title: a("confirmDelete"),
2421
- onConfirm: () => l(f.id),
2422
- children: /* @__PURE__ */ p(
2423
- Z,
356
+ title: l("confirmDelete"),
357
+ onConfirm: () => d(o.id),
358
+ children: /* @__PURE__ */ t(
359
+ b,
2424
360
  {
2425
361
  danger: !0,
2426
362
  size: "small",
2427
- icon: /* @__PURE__ */ p(us, {}),
363
+ icon: /* @__PURE__ */ t(_e, {}),
2428
364
  type: "text"
2429
365
  }
2430
366
  )
@@ -2432,1192 +368,216 @@ const vs = /* @__PURE__ */ j.forwardRef(Wr), ws = K.div``, xs = K.div`
2432
368
  )
2433
369
  ] })
2434
370
  ] }) })
2435
- })), [e]), s = ce(() => {
2436
- const f = r[0];
2437
- if (f) {
2438
- const h = e.find((m) => m.id === f);
2439
- if (h)
2440
- return h.data;
371
+ })), [e]), f = S(() => {
372
+ const o = r[0];
373
+ if (o) {
374
+ const s = e.find((h) => h.id === o);
375
+ if (s)
376
+ return s.data;
2441
377
  }
2442
378
  return !1;
2443
379
  }, [r, e]);
2444
- function c(f, h) {
2445
- const m = [...e], x = m.findIndex((M) => M.id === f);
2446
- ~x && (m[x] = {
2447
- ...m[x],
2448
- ...h
2449
- }), t(m);
2450
- }
2451
- function l(f) {
2452
- const h = [...e].filter((m) => m.id !== f);
2453
- t(h);
2454
- }
2455
- function d(f) {
2456
- const h = [...e], m = r[0];
2457
- if (m) {
2458
- const x = h.find((M) => M.id === m);
2459
- x && (x.data = f);
2460
- }
2461
- t(h);
2462
- }
2463
- function u(f) {
2464
- const h = ra(), m = [...e];
2465
- m.push({
2466
- id: h,
2467
- color: f.color,
2468
- title: f.title,
380
+ function c(o, s) {
381
+ const h = [...e], k = h.findIndex((M) => M.id === o);
382
+ ~k && (h[k] = {
383
+ ...h[k],
384
+ ...s
385
+ }), n(h);
386
+ }
387
+ function d(o) {
388
+ const s = [...e].filter((h) => h.id !== o);
389
+ n(s);
390
+ }
391
+ function x(o) {
392
+ const s = [...e], h = r[0];
393
+ if (h) {
394
+ const k = s.find((M) => M.id === h);
395
+ k && (k.data = o);
396
+ }
397
+ n(s);
398
+ }
399
+ function g(o) {
400
+ const s = Re(), h = [...e];
401
+ h.push({
402
+ id: s,
403
+ color: o.color,
404
+ title: o.title,
2469
405
  data: []
2470
- }), t(m), o([h]);
2471
- }
2472
- return i.length === 0 ? /* @__PURE__ */ P(Ze, { vertical: !0, align: "center", gap: 8, children: [
2473
- /* @__PURE__ */ p(Qn, { description: a("noData") }),
2474
- /* @__PURE__ */ p(Vn, { onCreate: u })
2475
- ] }) : /* @__PURE__ */ p(ws, { children: /* @__PURE__ */ P(Ze, { gap: 16, children: [
2476
- /* @__PURE__ */ P($, { direction: "vertical", children: [
2477
- /* @__PURE__ */ p(xs, { children: /* @__PURE__ */ p(
2478
- Ko,
406
+ }), n(h), i([s]);
407
+ }
408
+ return u.length === 0 ? /* @__PURE__ */ m(G, { vertical: !0, align: "center", gap: 8, children: [
409
+ /* @__PURE__ */ t(P, { description: l("noData") }),
410
+ /* @__PURE__ */ t(N, { onCreate: g })
411
+ ] }) : /* @__PURE__ */ t(Qe, { children: /* @__PURE__ */ m(G, { gap: 16, children: [
412
+ /* @__PURE__ */ m(C, { direction: "vertical", children: [
413
+ /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(
414
+ we,
2479
415
  {
2480
- items: i,
416
+ items: u,
2481
417
  style: { width: 300 },
2482
418
  selectedKeys: r,
2483
- onSelect: ({ key: f }) => {
2484
- o([f]);
419
+ onSelect: ({ key: o }) => {
420
+ i([o]);
2485
421
  }
2486
422
  }
2487
423
  ) }),
2488
- /* @__PURE__ */ p(Vn, { onCreate: u, block: !0 })
424
+ /* @__PURE__ */ t(N, { onCreate: g, block: !0 })
2489
425
  ] }),
2490
- s ? /* @__PURE__ */ p(
2491
- ui,
426
+ f ? /* @__PURE__ */ t(
427
+ qe,
2492
428
  {
2493
- data: s,
2494
- onChange: d,
2495
- ...n
429
+ data: f,
430
+ onChange: x,
431
+ ...a
2496
432
  }
2497
- ) : /* @__PURE__ */ p(
2498
- Yo,
433
+ ) : /* @__PURE__ */ t(
434
+ Le,
2499
435
  {
2500
436
  type: "info",
2501
- message: a("selectAGroupFirst"),
437
+ message: l("selectAGroupFirst"),
2502
438
  style: { height: 60, minWidth: 400 }
2503
439
  }
2504
440
  )
2505
441
  ] }) });
2506
442
  };
2507
- function Os(e) {
2508
- const [t, n] = V({ title: "", color: "" });
2509
- return /* @__PURE__ */ p(
2510
- Ur,
443
+ function et(e) {
444
+ const [n, a] = v({ title: "", color: "" });
445
+ return /* @__PURE__ */ t(
446
+ K,
2511
447
  {
2512
448
  isEdit: !1,
2513
449
  onCompleteChange: e.onSaved,
2514
- data: t,
450
+ data: n,
2515
451
  onOpenChange: (r) => {
2516
- r && n(e.data);
452
+ r && a(e.data);
2517
453
  },
2518
- onDataChange: (r) => n(r),
2519
- children: /* @__PURE__ */ p(Z, { size: "small", icon: /* @__PURE__ */ p(hs, {}), type: "text" })
454
+ onDataChange: (r) => a(r),
455
+ children: /* @__PURE__ */ t(b, { size: "small", icon: /* @__PURE__ */ t(Te, {}), type: "text" })
2520
456
  }
2521
457
  );
2522
458
  }
2523
- function Vn(e) {
2524
- const { t } = Ae(), n = {
459
+ function N(e) {
460
+ const { t: n } = z(), a = {
2525
461
  title: "",
2526
462
  color: "#1677FF"
2527
- }, [r, o] = V({
2528
- ...n
463
+ }, [r, i] = v({
464
+ ...a
2529
465
  });
2530
- return /* @__PURE__ */ p(
2531
- Ur,
466
+ return /* @__PURE__ */ t(
467
+ K,
2532
468
  {
2533
469
  isEdit: !1,
2534
470
  onCompleteChange: e.onCreate,
2535
471
  data: r,
2536
- onOpenChange: (a) => {
2537
- a && o({
2538
- ...n
472
+ onOpenChange: (l) => {
473
+ l && i({
474
+ ...a
2539
475
  });
2540
476
  },
2541
- onDataChange: (a) => o(a),
2542
- children: /* @__PURE__ */ p(Z, { block: !!e.block, icon: /* @__PURE__ */ p(ms, {}), children: t("addNewGroup") })
477
+ onDataChange: (l) => i(l),
478
+ children: /* @__PURE__ */ t(b, { block: !!e.block, icon: /* @__PURE__ */ t(Ie, {}), children: n("addNewGroup") })
2543
479
  }
2544
480
  );
2545
481
  }
2546
- function Ur(e) {
2547
- const [t, n] = V(!1), [r, o] = V(""), a = ut(null), { t: i } = Ae();
2548
- de(() => {
2549
- e.onOpenChange(t);
2550
- }, [t]), de(() => {
2551
- t ? (o(e.data.color), setTimeout(() => {
2552
- var l;
2553
- (l = a.current) == null || l.focus();
2554
- }, 300)) : o("");
482
+ function K(e) {
483
+ const [n, a] = v(!1), [r, i] = v(""), l = _(null), { t: u } = z();
484
+ D(() => {
485
+ e.onOpenChange(n);
486
+ }, [n]), D(() => {
487
+ n ? (i(e.data.color), setTimeout(() => {
488
+ var d;
489
+ (d = l.current) == null || d.focus();
490
+ }, 300)) : i("");
2555
491
  }, [e.data]);
2556
- function s() {
492
+ function f() {
2557
493
  e.data.title.trim().length !== 0 && (e.onCompleteChange({
2558
494
  title: e.data.title.trim(),
2559
495
  color: e.data.color
2560
- }), n(!1));
496
+ }), a(!1));
2561
497
  }
2562
- function c(l, d) {
498
+ function c(d, x) {
2563
499
  e.onDataChange({
2564
500
  ...e.data,
2565
- [l]: d
501
+ [d]: x
2566
502
  });
2567
503
  }
2568
- return /* @__PURE__ */ p(Qt, { children: /* @__PURE__ */ p(
2569
- Jn,
504
+ return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(
505
+ T,
2570
506
  {
2571
- title: e.isEdit ? i("editGroup") : i("createGroup"),
2572
- open: t,
2573
- onOpenChange: n,
507
+ title: e.isEdit ? u("editGroup") : u("createGroup"),
508
+ open: n,
509
+ onOpenChange: a,
2574
510
  trigger: ["click"],
2575
- content: /* @__PURE__ */ P($, { direction: "vertical", size: 16, children: [
2576
- /* @__PURE__ */ P($, { size: 16, children: [
2577
- /* @__PURE__ */ P("span", { children: [
2578
- i("titleFieldName"),
511
+ content: /* @__PURE__ */ m(C, { direction: "vertical", size: 16, children: [
512
+ /* @__PURE__ */ m(C, { size: 16, children: [
513
+ /* @__PURE__ */ m("span", { children: [
514
+ u("titleFieldName"),
2579
515
  ":"
2580
516
  ] }),
2581
- /* @__PURE__ */ p(
2582
- _t,
517
+ /* @__PURE__ */ t(
518
+ $,
2583
519
  {
2584
- ref: a,
520
+ ref: l,
2585
521
  showCount: !0,
2586
522
  maxLength: 20,
2587
523
  value: e.data.title,
2588
- onChange: (l) => c("title", l.target.value)
524
+ onChange: (d) => c("title", d.target.value)
2589
525
  }
2590
526
  )
2591
527
  ] }),
2592
- /* @__PURE__ */ P($, { size: 16, children: [
2593
- /* @__PURE__ */ P("span", { children: [
2594
- i("colorFieldName"),
528
+ /* @__PURE__ */ m(C, { size: 16, children: [
529
+ /* @__PURE__ */ m("span", { children: [
530
+ u("colorFieldName"),
2595
531
  ":"
2596
532
  ] }),
2597
- r && /* @__PURE__ */ p(
2598
- Xo,
533
+ r && /* @__PURE__ */ t(
534
+ Ae,
2599
535
  {
2600
536
  value: r,
2601
- onChange: (l) => o(`#${l.toHex()}`),
537
+ onChange: (d) => i(`#${d.toHex()}`),
2602
538
  showText: !0,
2603
- onChangeComplete: (l) => {
2604
- c("color", `#${l.toHex()}`);
539
+ onChangeComplete: (d) => {
540
+ c("color", `#${d.toHex()}`);
2605
541
  }
2606
542
  }
2607
543
  )
2608
544
  ] }),
2609
- /* @__PURE__ */ p(Z, { block: !0, type: "primary", onClick: s, children: e.isEdit ? i("create") : i("save") })
545
+ /* @__PURE__ */ t(b, { block: !0, type: "primary", onClick: f, children: e.isEdit ? u("create") : u("save") })
2610
546
  ] }),
2611
547
  children: e.children
2612
548
  }
2613
549
  ) });
2614
550
  }
2615
- const As = ({ open: e, onOpenChange: t = () => {
2616
- }, children: n, ...r }) => {
2617
- const [o, a] = V(e), { t: i } = Ae();
2618
- return de(() => {
2619
- a(!!e);
2620
- }, [e]), /* @__PURE__ */ P(Qt, { children: [
2621
- /* @__PURE__ */ p(
2622
- Zn,
551
+ const tt = ({ open: e, onOpenChange: n = () => {
552
+ }, children: a, ...r }) => {
553
+ const [i, l] = v(e), { t: u } = z();
554
+ return D(() => {
555
+ l(!!e);
556
+ }, [e]), /* @__PURE__ */ m(w, { children: [
557
+ /* @__PURE__ */ t(
558
+ I,
2623
559
  {
2624
- title: i("quickMessageConfigs"),
2625
- open: o,
560
+ title: u("quickMessageConfigs"),
561
+ open: i,
2626
562
  onCancel: () => {
2627
- a(!1), t(!1);
563
+ l(!1), n(!1);
2628
564
  },
2629
565
  width: 980,
2630
566
  footer: null,
2631
- children: /* @__PURE__ */ p(Es, { ...r })
567
+ children: /* @__PURE__ */ t(Ye, { ...r })
2632
568
  }
2633
569
  ),
2634
- /* @__PURE__ */ p(
570
+ /* @__PURE__ */ t(
2635
571
  "span",
2636
572
  {
2637
573
  onClick: () => {
2638
- a(!0), t(!0);
574
+ l(!0), n(!0);
2639
575
  },
2640
- children: n
576
+ children: a
2641
577
  }
2642
578
  )
2643
579
  ] });
2644
- };
2645
- var Kn = function() {
2646
- }, Ms = typeof window < "u", Ns = function(e, t, n) {
2647
- if (!Ms)
2648
- return [t, Kn, Kn];
2649
- if (!e)
2650
- throw new Error("useLocalStorage key may not be falsy");
2651
- var r = n ? n.raw ? function(d) {
2652
- return d;
2653
- } : n.deserializer : JSON.parse, o = ut(function(d) {
2654
- try {
2655
- var u = n ? n.raw ? String : n.serializer : JSON.stringify, f = localStorage.getItem(d);
2656
- return f !== null ? r(f) : (t && localStorage.setItem(d, u(t)), t);
2657
- } catch {
2658
- return t;
2659
- }
2660
- }), a = V(function() {
2661
- return o.current(e);
2662
- }), i = a[0], s = a[1];
2663
- Bo(function() {
2664
- return s(o.current(e));
2665
- }, [e]);
2666
- var c = pn(function(d) {
2667
- try {
2668
- var u = typeof d == "function" ? d(i) : d;
2669
- if (typeof u > "u")
2670
- return;
2671
- var f = void 0;
2672
- n ? n.raw ? typeof u == "string" ? f = u : f = JSON.stringify(u) : n.serializer ? f = n.serializer(u) : f = JSON.stringify(u) : f = JSON.stringify(u), localStorage.setItem(e, f), s(r(f));
2673
- } catch {
2674
- }
2675
- }, [e, s]), l = pn(function() {
2676
- try {
2677
- localStorage.removeItem(e), s(void 0);
2678
- } catch {
2679
- }
2680
- }, [e, s]);
2681
- return [i, c, l];
2682
- };
2683
- const Ps = Ns;
2684
- var Vr = { exports: {} }, Kr = {
2685
- aliceblue: [240, 248, 255],
2686
- antiquewhite: [250, 235, 215],
2687
- aqua: [0, 255, 255],
2688
- aquamarine: [127, 255, 212],
2689
- azure: [240, 255, 255],
2690
- beige: [245, 245, 220],
2691
- bisque: [255, 228, 196],
2692
- black: [0, 0, 0],
2693
- blanchedalmond: [255, 235, 205],
2694
- blue: [0, 0, 255],
2695
- blueviolet: [138, 43, 226],
2696
- brown: [165, 42, 42],
2697
- burlywood: [222, 184, 135],
2698
- cadetblue: [95, 158, 160],
2699
- chartreuse: [127, 255, 0],
2700
- chocolate: [210, 105, 30],
2701
- coral: [255, 127, 80],
2702
- cornflowerblue: [100, 149, 237],
2703
- cornsilk: [255, 248, 220],
2704
- crimson: [220, 20, 60],
2705
- cyan: [0, 255, 255],
2706
- darkblue: [0, 0, 139],
2707
- darkcyan: [0, 139, 139],
2708
- darkgoldenrod: [184, 134, 11],
2709
- darkgray: [169, 169, 169],
2710
- darkgreen: [0, 100, 0],
2711
- darkgrey: [169, 169, 169],
2712
- darkkhaki: [189, 183, 107],
2713
- darkmagenta: [139, 0, 139],
2714
- darkolivegreen: [85, 107, 47],
2715
- darkorange: [255, 140, 0],
2716
- darkorchid: [153, 50, 204],
2717
- darkred: [139, 0, 0],
2718
- darksalmon: [233, 150, 122],
2719
- darkseagreen: [143, 188, 143],
2720
- darkslateblue: [72, 61, 139],
2721
- darkslategray: [47, 79, 79],
2722
- darkslategrey: [47, 79, 79],
2723
- darkturquoise: [0, 206, 209],
2724
- darkviolet: [148, 0, 211],
2725
- deeppink: [255, 20, 147],
2726
- deepskyblue: [0, 191, 255],
2727
- dimgray: [105, 105, 105],
2728
- dimgrey: [105, 105, 105],
2729
- dodgerblue: [30, 144, 255],
2730
- firebrick: [178, 34, 34],
2731
- floralwhite: [255, 250, 240],
2732
- forestgreen: [34, 139, 34],
2733
- fuchsia: [255, 0, 255],
2734
- gainsboro: [220, 220, 220],
2735
- ghostwhite: [248, 248, 255],
2736
- gold: [255, 215, 0],
2737
- goldenrod: [218, 165, 32],
2738
- gray: [128, 128, 128],
2739
- green: [0, 128, 0],
2740
- greenyellow: [173, 255, 47],
2741
- grey: [128, 128, 128],
2742
- honeydew: [240, 255, 240],
2743
- hotpink: [255, 105, 180],
2744
- indianred: [205, 92, 92],
2745
- indigo: [75, 0, 130],
2746
- ivory: [255, 255, 240],
2747
- khaki: [240, 230, 140],
2748
- lavender: [230, 230, 250],
2749
- lavenderblush: [255, 240, 245],
2750
- lawngreen: [124, 252, 0],
2751
- lemonchiffon: [255, 250, 205],
2752
- lightblue: [173, 216, 230],
2753
- lightcoral: [240, 128, 128],
2754
- lightcyan: [224, 255, 255],
2755
- lightgoldenrodyellow: [250, 250, 210],
2756
- lightgray: [211, 211, 211],
2757
- lightgreen: [144, 238, 144],
2758
- lightgrey: [211, 211, 211],
2759
- lightpink: [255, 182, 193],
2760
- lightsalmon: [255, 160, 122],
2761
- lightseagreen: [32, 178, 170],
2762
- lightskyblue: [135, 206, 250],
2763
- lightslategray: [119, 136, 153],
2764
- lightslategrey: [119, 136, 153],
2765
- lightsteelblue: [176, 196, 222],
2766
- lightyellow: [255, 255, 224],
2767
- lime: [0, 255, 0],
2768
- limegreen: [50, 205, 50],
2769
- linen: [250, 240, 230],
2770
- magenta: [255, 0, 255],
2771
- maroon: [128, 0, 0],
2772
- mediumaquamarine: [102, 205, 170],
2773
- mediumblue: [0, 0, 205],
2774
- mediumorchid: [186, 85, 211],
2775
- mediumpurple: [147, 112, 219],
2776
- mediumseagreen: [60, 179, 113],
2777
- mediumslateblue: [123, 104, 238],
2778
- mediumspringgreen: [0, 250, 154],
2779
- mediumturquoise: [72, 209, 204],
2780
- mediumvioletred: [199, 21, 133],
2781
- midnightblue: [25, 25, 112],
2782
- mintcream: [245, 255, 250],
2783
- mistyrose: [255, 228, 225],
2784
- moccasin: [255, 228, 181],
2785
- navajowhite: [255, 222, 173],
2786
- navy: [0, 0, 128],
2787
- oldlace: [253, 245, 230],
2788
- olive: [128, 128, 0],
2789
- olivedrab: [107, 142, 35],
2790
- orange: [255, 165, 0],
2791
- orangered: [255, 69, 0],
2792
- orchid: [218, 112, 214],
2793
- palegoldenrod: [238, 232, 170],
2794
- palegreen: [152, 251, 152],
2795
- paleturquoise: [175, 238, 238],
2796
- palevioletred: [219, 112, 147],
2797
- papayawhip: [255, 239, 213],
2798
- peachpuff: [255, 218, 185],
2799
- peru: [205, 133, 63],
2800
- pink: [255, 192, 203],
2801
- plum: [221, 160, 221],
2802
- powderblue: [176, 224, 230],
2803
- purple: [128, 0, 128],
2804
- rebeccapurple: [102, 51, 153],
2805
- red: [255, 0, 0],
2806
- rosybrown: [188, 143, 143],
2807
- royalblue: [65, 105, 225],
2808
- saddlebrown: [139, 69, 19],
2809
- salmon: [250, 128, 114],
2810
- sandybrown: [244, 164, 96],
2811
- seagreen: [46, 139, 87],
2812
- seashell: [255, 245, 238],
2813
- sienna: [160, 82, 45],
2814
- silver: [192, 192, 192],
2815
- skyblue: [135, 206, 235],
2816
- slateblue: [106, 90, 205],
2817
- slategray: [112, 128, 144],
2818
- slategrey: [112, 128, 144],
2819
- snow: [255, 250, 250],
2820
- springgreen: [0, 255, 127],
2821
- steelblue: [70, 130, 180],
2822
- tan: [210, 180, 140],
2823
- teal: [0, 128, 128],
2824
- thistle: [216, 191, 216],
2825
- tomato: [255, 99, 71],
2826
- turquoise: [64, 224, 208],
2827
- violet: [238, 130, 238],
2828
- wheat: [245, 222, 179],
2829
- white: [255, 255, 255],
2830
- whitesmoke: [245, 245, 245],
2831
- yellow: [255, 255, 0],
2832
- yellowgreen: [154, 205, 50]
2833
- }, Yr = { exports: {} }, Ts = function(t) {
2834
- return !t || typeof t == "string" ? !1 : t instanceof Array || Array.isArray(t) || t.length >= 0 && (t.splice instanceof Function || Object.getOwnPropertyDescriptor(t, t.length - 1) && t.constructor.name !== "String");
2835
- }, Is = Ts, Ds = Array.prototype.concat, zs = Array.prototype.slice, Yn = Yr.exports = function(t) {
2836
- for (var n = [], r = 0, o = t.length; r < o; r++) {
2837
- var a = t[r];
2838
- Is(a) ? n = Ds.call(n, zs.call(a)) : n.push(a);
2839
- }
2840
- return n;
2841
- };
2842
- Yn.wrap = function(e) {
2843
- return function() {
2844
- return e(Yn(arguments));
2845
- };
2846
- };
2847
- var $s = Yr.exports, Fe = Kr, je = $s, Xr = Object.hasOwnProperty, Jr = /* @__PURE__ */ Object.create(null);
2848
- for (var $t in Fe)
2849
- Xr.call(Fe, $t) && (Jr[Fe[$t]] = $t);
2850
- var L = Vr.exports = {
2851
- to: {},
2852
- get: {}
2853
- };
2854
- L.get = function(e) {
2855
- var t = e.substring(0, 3).toLowerCase(), n, r;
2856
- switch (t) {
2857
- case "hsl":
2858
- n = L.get.hsl(e), r = "hsl";
2859
- break;
2860
- case "hwb":
2861
- n = L.get.hwb(e), r = "hwb";
2862
- break;
2863
- default:
2864
- n = L.get.rgb(e), r = "rgb";
2865
- break;
2866
- }
2867
- return n ? { model: r, value: n } : null;
2868
- };
2869
- L.get.rgb = function(e) {
2870
- if (!e)
2871
- return null;
2872
- var t = /^#([a-f0-9]{3,4})$/i, n = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, r = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, o = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, a = /^(\w+)$/, i = [0, 0, 0, 1], s, c, l;
2873
- if (s = e.match(n)) {
2874
- for (l = s[2], s = s[1], c = 0; c < 3; c++) {
2875
- var d = c * 2;
2876
- i[c] = parseInt(s.slice(d, d + 2), 16);
2877
- }
2878
- l && (i[3] = parseInt(l, 16) / 255);
2879
- } else if (s = e.match(t)) {
2880
- for (s = s[1], l = s[3], c = 0; c < 3; c++)
2881
- i[c] = parseInt(s[c] + s[c], 16);
2882
- l && (i[3] = parseInt(l + l, 16) / 255);
2883
- } else if (s = e.match(r)) {
2884
- for (c = 0; c < 3; c++)
2885
- i[c] = parseInt(s[c + 1], 0);
2886
- s[4] && (s[5] ? i[3] = parseFloat(s[4]) * 0.01 : i[3] = parseFloat(s[4]));
2887
- } else if (s = e.match(o)) {
2888
- for (c = 0; c < 3; c++)
2889
- i[c] = Math.round(parseFloat(s[c + 1]) * 2.55);
2890
- s[4] && (s[5] ? i[3] = parseFloat(s[4]) * 0.01 : i[3] = parseFloat(s[4]));
2891
- } else
2892
- return (s = e.match(a)) ? s[1] === "transparent" ? [0, 0, 0, 0] : Xr.call(Fe, s[1]) ? (i = Fe[s[1]], i[3] = 1, i) : null : null;
2893
- for (c = 0; c < 3; c++)
2894
- i[c] = re(i[c], 0, 255);
2895
- return i[3] = re(i[3], 0, 1), i;
2896
- };
2897
- L.get.hsl = function(e) {
2898
- if (!e)
2899
- return null;
2900
- var t = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, n = e.match(t);
2901
- if (n) {
2902
- var r = parseFloat(n[4]), o = (parseFloat(n[1]) % 360 + 360) % 360, a = re(parseFloat(n[2]), 0, 100), i = re(parseFloat(n[3]), 0, 100), s = re(isNaN(r) ? 1 : r, 0, 1);
2903
- return [o, a, i, s];
2904
- }
2905
- return null;
2906
- };
2907
- L.get.hwb = function(e) {
2908
- if (!e)
2909
- return null;
2910
- var t = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, n = e.match(t);
2911
- if (n) {
2912
- var r = parseFloat(n[4]), o = (parseFloat(n[1]) % 360 + 360) % 360, a = re(parseFloat(n[2]), 0, 100), i = re(parseFloat(n[3]), 0, 100), s = re(isNaN(r) ? 1 : r, 0, 1);
2913
- return [o, a, i, s];
2914
- }
2915
- return null;
2916
- };
2917
- L.to.hex = function() {
2918
- var e = je(arguments);
2919
- return "#" + Je(e[0]) + Je(e[1]) + Je(e[2]) + (e[3] < 1 ? Je(Math.round(e[3] * 255)) : "");
2920
- };
2921
- L.to.rgb = function() {
2922
- var e = je(arguments);
2923
- return e.length < 4 || e[3] === 1 ? "rgb(" + Math.round(e[0]) + ", " + Math.round(e[1]) + ", " + Math.round(e[2]) + ")" : "rgba(" + Math.round(e[0]) + ", " + Math.round(e[1]) + ", " + Math.round(e[2]) + ", " + e[3] + ")";
2924
- };
2925
- L.to.rgb.percent = function() {
2926
- var e = je(arguments), t = Math.round(e[0] / 255 * 100), n = Math.round(e[1] / 255 * 100), r = Math.round(e[2] / 255 * 100);
2927
- return e.length < 4 || e[3] === 1 ? "rgb(" + t + "%, " + n + "%, " + r + "%)" : "rgba(" + t + "%, " + n + "%, " + r + "%, " + e[3] + ")";
2928
- };
2929
- L.to.hsl = function() {
2930
- var e = je(arguments);
2931
- return e.length < 4 || e[3] === 1 ? "hsl(" + e[0] + ", " + e[1] + "%, " + e[2] + "%)" : "hsla(" + e[0] + ", " + e[1] + "%, " + e[2] + "%, " + e[3] + ")";
2932
- };
2933
- L.to.hwb = function() {
2934
- var e = je(arguments), t = "";
2935
- return e.length >= 4 && e[3] !== 1 && (t = ", " + e[3]), "hwb(" + e[0] + ", " + e[1] + "%, " + e[2] + "%" + t + ")";
2936
- };
2937
- L.to.keyword = function(e) {
2938
- return Jr[e.slice(0, 3)];
2939
- };
2940
- function re(e, t, n) {
2941
- return Math.min(Math.max(t, e), n);
2942
- }
2943
- function Je(e) {
2944
- var t = Math.round(e).toString(16).toUpperCase();
2945
- return t.length < 2 ? "0" + t : t;
2946
- }
2947
- var _s = Vr.exports;
2948
- const Re = Kr, Zr = {};
2949
- for (const e of Object.keys(Re))
2950
- Zr[Re[e]] = e;
2951
- const g = {
2952
- rgb: { channels: 3, labels: "rgb" },
2953
- hsl: { channels: 3, labels: "hsl" },
2954
- hsv: { channels: 3, labels: "hsv" },
2955
- hwb: { channels: 3, labels: "hwb" },
2956
- cmyk: { channels: 4, labels: "cmyk" },
2957
- xyz: { channels: 3, labels: "xyz" },
2958
- lab: { channels: 3, labels: "lab" },
2959
- lch: { channels: 3, labels: "lch" },
2960
- hex: { channels: 1, labels: ["hex"] },
2961
- keyword: { channels: 1, labels: ["keyword"] },
2962
- ansi16: { channels: 1, labels: ["ansi16"] },
2963
- ansi256: { channels: 1, labels: ["ansi256"] },
2964
- hcg: { channels: 3, labels: ["h", "c", "g"] },
2965
- apple: { channels: 3, labels: ["r16", "g16", "b16"] },
2966
- gray: { channels: 1, labels: ["gray"] }
2967
- };
2968
- var Qr = g;
2969
- for (const e of Object.keys(g)) {
2970
- if (!("channels" in g[e]))
2971
- throw new Error("missing channels property: " + e);
2972
- if (!("labels" in g[e]))
2973
- throw new Error("missing channel labels property: " + e);
2974
- if (g[e].labels.length !== g[e].channels)
2975
- throw new Error("channel and label counts mismatch: " + e);
2976
- const { channels: t, labels: n } = g[e];
2977
- delete g[e].channels, delete g[e].labels, Object.defineProperty(g[e], "channels", { value: t }), Object.defineProperty(g[e], "labels", { value: n });
2978
- }
2979
- g.rgb.hsl = function(e) {
2980
- const t = e[0] / 255, n = e[1] / 255, r = e[2] / 255, o = Math.min(t, n, r), a = Math.max(t, n, r), i = a - o;
2981
- let s, c;
2982
- a === o ? s = 0 : t === a ? s = (n - r) / i : n === a ? s = 2 + (r - t) / i : r === a && (s = 4 + (t - n) / i), s = Math.min(s * 60, 360), s < 0 && (s += 360);
2983
- const l = (o + a) / 2;
2984
- return a === o ? c = 0 : l <= 0.5 ? c = i / (a + o) : c = i / (2 - a - o), [s, c * 100, l * 100];
2985
- };
2986
- g.rgb.hsv = function(e) {
2987
- let t, n, r, o, a;
2988
- const i = e[0] / 255, s = e[1] / 255, c = e[2] / 255, l = Math.max(i, s, c), d = l - Math.min(i, s, c), u = function(f) {
2989
- return (l - f) / 6 / d + 1 / 2;
2990
- };
2991
- return d === 0 ? (o = 0, a = 0) : (a = d / l, t = u(i), n = u(s), r = u(c), i === l ? o = r - n : s === l ? o = 1 / 3 + t - r : c === l && (o = 2 / 3 + n - t), o < 0 ? o += 1 : o > 1 && (o -= 1)), [
2992
- o * 360,
2993
- a * 100,
2994
- l * 100
2995
- ];
2996
- };
2997
- g.rgb.hwb = function(e) {
2998
- const t = e[0], n = e[1];
2999
- let r = e[2];
3000
- const o = g.rgb.hsl(e)[0], a = 1 / 255 * Math.min(t, Math.min(n, r));
3001
- return r = 1 - 1 / 255 * Math.max(t, Math.max(n, r)), [o, a * 100, r * 100];
3002
- };
3003
- g.rgb.cmyk = function(e) {
3004
- const t = e[0] / 255, n = e[1] / 255, r = e[2] / 255, o = Math.min(1 - t, 1 - n, 1 - r), a = (1 - t - o) / (1 - o) || 0, i = (1 - n - o) / (1 - o) || 0, s = (1 - r - o) / (1 - o) || 0;
3005
- return [a * 100, i * 100, s * 100, o * 100];
3006
- };
3007
- function Fs(e, t) {
3008
- return (e[0] - t[0]) ** 2 + (e[1] - t[1]) ** 2 + (e[2] - t[2]) ** 2;
3009
- }
3010
- g.rgb.keyword = function(e) {
3011
- const t = Zr[e];
3012
- if (t)
3013
- return t;
3014
- let n = 1 / 0, r;
3015
- for (const o of Object.keys(Re)) {
3016
- const a = Re[o], i = Fs(e, a);
3017
- i < n && (n = i, r = o);
3018
- }
3019
- return r;
3020
- };
3021
- g.keyword.rgb = function(e) {
3022
- return Re[e];
3023
- };
3024
- g.rgb.xyz = function(e) {
3025
- let t = e[0] / 255, n = e[1] / 255, r = e[2] / 255;
3026
- t = t > 0.04045 ? ((t + 0.055) / 1.055) ** 2.4 : t / 12.92, n = n > 0.04045 ? ((n + 0.055) / 1.055) ** 2.4 : n / 12.92, r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
3027
- const o = t * 0.4124 + n * 0.3576 + r * 0.1805, a = t * 0.2126 + n * 0.7152 + r * 0.0722, i = t * 0.0193 + n * 0.1192 + r * 0.9505;
3028
- return [o * 100, a * 100, i * 100];
3029
- };
3030
- g.rgb.lab = function(e) {
3031
- const t = g.rgb.xyz(e);
3032
- let n = t[0], r = t[1], o = t[2];
3033
- n /= 95.047, r /= 100, o /= 108.883, n = n > 8856e-6 ? n ** (1 / 3) : 7.787 * n + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116, o = o > 8856e-6 ? o ** (1 / 3) : 7.787 * o + 16 / 116;
3034
- const a = 116 * r - 16, i = 500 * (n - r), s = 200 * (r - o);
3035
- return [a, i, s];
3036
- };
3037
- g.hsl.rgb = function(e) {
3038
- const t = e[0] / 360, n = e[1] / 100, r = e[2] / 100;
3039
- let o, a, i;
3040
- if (n === 0)
3041
- return i = r * 255, [i, i, i];
3042
- r < 0.5 ? o = r * (1 + n) : o = r + n - r * n;
3043
- const s = 2 * r - o, c = [0, 0, 0];
3044
- for (let l = 0; l < 3; l++)
3045
- a = t + 1 / 3 * -(l - 1), a < 0 && a++, a > 1 && a--, 6 * a < 1 ? i = s + (o - s) * 6 * a : 2 * a < 1 ? i = o : 3 * a < 2 ? i = s + (o - s) * (2 / 3 - a) * 6 : i = s, c[l] = i * 255;
3046
- return c;
3047
- };
3048
- g.hsl.hsv = function(e) {
3049
- const t = e[0];
3050
- let n = e[1] / 100, r = e[2] / 100, o = n;
3051
- const a = Math.max(r, 0.01);
3052
- r *= 2, n *= r <= 1 ? r : 2 - r, o *= a <= 1 ? a : 2 - a;
3053
- const i = (r + n) / 2, s = r === 0 ? 2 * o / (a + o) : 2 * n / (r + n);
3054
- return [t, s * 100, i * 100];
3055
- };
3056
- g.hsv.rgb = function(e) {
3057
- const t = e[0] / 60, n = e[1] / 100;
3058
- let r = e[2] / 100;
3059
- const o = Math.floor(t) % 6, a = t - Math.floor(t), i = 255 * r * (1 - n), s = 255 * r * (1 - n * a), c = 255 * r * (1 - n * (1 - a));
3060
- switch (r *= 255, o) {
3061
- case 0:
3062
- return [r, c, i];
3063
- case 1:
3064
- return [s, r, i];
3065
- case 2:
3066
- return [i, r, c];
3067
- case 3:
3068
- return [i, s, r];
3069
- case 4:
3070
- return [c, i, r];
3071
- case 5:
3072
- return [r, i, s];
3073
- }
3074
- };
3075
- g.hsv.hsl = function(e) {
3076
- const t = e[0], n = e[1] / 100, r = e[2] / 100, o = Math.max(r, 0.01);
3077
- let a, i;
3078
- i = (2 - n) * r;
3079
- const s = (2 - n) * o;
3080
- return a = n * o, a /= s <= 1 ? s : 2 - s, a = a || 0, i /= 2, [t, a * 100, i * 100];
3081
- };
3082
- g.hwb.rgb = function(e) {
3083
- const t = e[0] / 360;
3084
- let n = e[1] / 100, r = e[2] / 100;
3085
- const o = n + r;
3086
- let a;
3087
- o > 1 && (n /= o, r /= o);
3088
- const i = Math.floor(6 * t), s = 1 - r;
3089
- a = 6 * t - i, i & 1 && (a = 1 - a);
3090
- const c = n + a * (s - n);
3091
- let l, d, u;
3092
- switch (i) {
3093
- default:
3094
- case 6:
3095
- case 0:
3096
- l = s, d = c, u = n;
3097
- break;
3098
- case 1:
3099
- l = c, d = s, u = n;
3100
- break;
3101
- case 2:
3102
- l = n, d = s, u = c;
3103
- break;
3104
- case 3:
3105
- l = n, d = c, u = s;
3106
- break;
3107
- case 4:
3108
- l = c, d = n, u = s;
3109
- break;
3110
- case 5:
3111
- l = s, d = n, u = c;
3112
- break;
3113
- }
3114
- return [l * 255, d * 255, u * 255];
3115
- };
3116
- g.cmyk.rgb = function(e) {
3117
- const t = e[0] / 100, n = e[1] / 100, r = e[2] / 100, o = e[3] / 100, a = 1 - Math.min(1, t * (1 - o) + o), i = 1 - Math.min(1, n * (1 - o) + o), s = 1 - Math.min(1, r * (1 - o) + o);
3118
- return [a * 255, i * 255, s * 255];
3119
- };
3120
- g.xyz.rgb = function(e) {
3121
- const t = e[0] / 100, n = e[1] / 100, r = e[2] / 100;
3122
- let o, a, i;
3123
- return o = t * 3.2406 + n * -1.5372 + r * -0.4986, a = t * -0.9689 + n * 1.8758 + r * 0.0415, i = t * 0.0557 + n * -0.204 + r * 1.057, o = o > 31308e-7 ? 1.055 * o ** (1 / 2.4) - 0.055 : o * 12.92, a = a > 31308e-7 ? 1.055 * a ** (1 / 2.4) - 0.055 : a * 12.92, i = i > 31308e-7 ? 1.055 * i ** (1 / 2.4) - 0.055 : i * 12.92, o = Math.min(Math.max(0, o), 1), a = Math.min(Math.max(0, a), 1), i = Math.min(Math.max(0, i), 1), [o * 255, a * 255, i * 255];
3124
- };
3125
- g.xyz.lab = function(e) {
3126
- let t = e[0], n = e[1], r = e[2];
3127
- t /= 95.047, n /= 100, r /= 108.883, t = t > 8856e-6 ? t ** (1 / 3) : 7.787 * t + 16 / 116, n = n > 8856e-6 ? n ** (1 / 3) : 7.787 * n + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116;
3128
- const o = 116 * n - 16, a = 500 * (t - n), i = 200 * (n - r);
3129
- return [o, a, i];
3130
- };
3131
- g.lab.xyz = function(e) {
3132
- const t = e[0], n = e[1], r = e[2];
3133
- let o, a, i;
3134
- a = (t + 16) / 116, o = n / 500 + a, i = a - r / 200;
3135
- const s = a ** 3, c = o ** 3, l = i ** 3;
3136
- return a = s > 8856e-6 ? s : (a - 16 / 116) / 7.787, o = c > 8856e-6 ? c : (o - 16 / 116) / 7.787, i = l > 8856e-6 ? l : (i - 16 / 116) / 7.787, o *= 95.047, a *= 100, i *= 108.883, [o, a, i];
3137
- };
3138
- g.lab.lch = function(e) {
3139
- const t = e[0], n = e[1], r = e[2];
3140
- let o;
3141
- o = Math.atan2(r, n) * 360 / 2 / Math.PI, o < 0 && (o += 360);
3142
- const i = Math.sqrt(n * n + r * r);
3143
- return [t, i, o];
3144
- };
3145
- g.lch.lab = function(e) {
3146
- const t = e[0], n = e[1], o = e[2] / 360 * 2 * Math.PI, a = n * Math.cos(o), i = n * Math.sin(o);
3147
- return [t, a, i];
3148
- };
3149
- g.rgb.ansi16 = function(e, t = null) {
3150
- const [n, r, o] = e;
3151
- let a = t === null ? g.rgb.hsv(e)[2] : t;
3152
- if (a = Math.round(a / 50), a === 0)
3153
- return 30;
3154
- let i = 30 + (Math.round(o / 255) << 2 | Math.round(r / 255) << 1 | Math.round(n / 255));
3155
- return a === 2 && (i += 60), i;
3156
- };
3157
- g.hsv.ansi16 = function(e) {
3158
- return g.rgb.ansi16(g.hsv.rgb(e), e[2]);
3159
- };
3160
- g.rgb.ansi256 = function(e) {
3161
- const t = e[0], n = e[1], r = e[2];
3162
- return t === n && n === r ? t < 8 ? 16 : t > 248 ? 231 : Math.round((t - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(t / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(r / 255 * 5);
3163
- };
3164
- g.ansi16.rgb = function(e) {
3165
- let t = e % 10;
3166
- if (t === 0 || t === 7)
3167
- return e > 50 && (t += 3.5), t = t / 10.5 * 255, [t, t, t];
3168
- const n = (~~(e > 50) + 1) * 0.5, r = (t & 1) * n * 255, o = (t >> 1 & 1) * n * 255, a = (t >> 2 & 1) * n * 255;
3169
- return [r, o, a];
3170
- };
3171
- g.ansi256.rgb = function(e) {
3172
- if (e >= 232) {
3173
- const a = (e - 232) * 10 + 8;
3174
- return [a, a, a];
3175
- }
3176
- e -= 16;
3177
- let t;
3178
- const n = Math.floor(e / 36) / 5 * 255, r = Math.floor((t = e % 36) / 6) / 5 * 255, o = t % 6 / 5 * 255;
3179
- return [n, r, o];
3180
- };
3181
- g.rgb.hex = function(e) {
3182
- const n = (((Math.round(e[0]) & 255) << 16) + ((Math.round(e[1]) & 255) << 8) + (Math.round(e[2]) & 255)).toString(16).toUpperCase();
3183
- return "000000".substring(n.length) + n;
3184
- };
3185
- g.hex.rgb = function(e) {
3186
- const t = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
3187
- if (!t)
3188
- return [0, 0, 0];
3189
- let n = t[0];
3190
- t[0].length === 3 && (n = n.split("").map((s) => s + s).join(""));
3191
- const r = parseInt(n, 16), o = r >> 16 & 255, a = r >> 8 & 255, i = r & 255;
3192
- return [o, a, i];
3193
- };
3194
- g.rgb.hcg = function(e) {
3195
- const t = e[0] / 255, n = e[1] / 255, r = e[2] / 255, o = Math.max(Math.max(t, n), r), a = Math.min(Math.min(t, n), r), i = o - a;
3196
- let s, c;
3197
- return i < 1 ? s = a / (1 - i) : s = 0, i <= 0 ? c = 0 : o === t ? c = (n - r) / i % 6 : o === n ? c = 2 + (r - t) / i : c = 4 + (t - n) / i, c /= 6, c %= 1, [c * 360, i * 100, s * 100];
3198
- };
3199
- g.hsl.hcg = function(e) {
3200
- const t = e[1] / 100, n = e[2] / 100, r = n < 0.5 ? 2 * t * n : 2 * t * (1 - n);
3201
- let o = 0;
3202
- return r < 1 && (o = (n - 0.5 * r) / (1 - r)), [e[0], r * 100, o * 100];
3203
- };
3204
- g.hsv.hcg = function(e) {
3205
- const t = e[1] / 100, n = e[2] / 100, r = t * n;
3206
- let o = 0;
3207
- return r < 1 && (o = (n - r) / (1 - r)), [e[0], r * 100, o * 100];
3208
- };
3209
- g.hcg.rgb = function(e) {
3210
- const t = e[0] / 360, n = e[1] / 100, r = e[2] / 100;
3211
- if (n === 0)
3212
- return [r * 255, r * 255, r * 255];
3213
- const o = [0, 0, 0], a = t % 1 * 6, i = a % 1, s = 1 - i;
3214
- let c = 0;
3215
- switch (Math.floor(a)) {
3216
- case 0:
3217
- o[0] = 1, o[1] = i, o[2] = 0;
3218
- break;
3219
- case 1:
3220
- o[0] = s, o[1] = 1, o[2] = 0;
3221
- break;
3222
- case 2:
3223
- o[0] = 0, o[1] = 1, o[2] = i;
3224
- break;
3225
- case 3:
3226
- o[0] = 0, o[1] = s, o[2] = 1;
3227
- break;
3228
- case 4:
3229
- o[0] = i, o[1] = 0, o[2] = 1;
3230
- break;
3231
- default:
3232
- o[0] = 1, o[1] = 0, o[2] = s;
3233
- }
3234
- return c = (1 - n) * r, [
3235
- (n * o[0] + c) * 255,
3236
- (n * o[1] + c) * 255,
3237
- (n * o[2] + c) * 255
3238
- ];
3239
- };
3240
- g.hcg.hsv = function(e) {
3241
- const t = e[1] / 100, n = e[2] / 100, r = t + n * (1 - t);
3242
- let o = 0;
3243
- return r > 0 && (o = t / r), [e[0], o * 100, r * 100];
3244
- };
3245
- g.hcg.hsl = function(e) {
3246
- const t = e[1] / 100, r = e[2] / 100 * (1 - t) + 0.5 * t;
3247
- let o = 0;
3248
- return r > 0 && r < 0.5 ? o = t / (2 * r) : r >= 0.5 && r < 1 && (o = t / (2 * (1 - r))), [e[0], o * 100, r * 100];
3249
- };
3250
- g.hcg.hwb = function(e) {
3251
- const t = e[1] / 100, n = e[2] / 100, r = t + n * (1 - t);
3252
- return [e[0], (r - t) * 100, (1 - r) * 100];
3253
- };
3254
- g.hwb.hcg = function(e) {
3255
- const t = e[1] / 100, r = 1 - e[2] / 100, o = r - t;
3256
- let a = 0;
3257
- return o < 1 && (a = (r - o) / (1 - o)), [e[0], o * 100, a * 100];
3258
- };
3259
- g.apple.rgb = function(e) {
3260
- return [e[0] / 65535 * 255, e[1] / 65535 * 255, e[2] / 65535 * 255];
3261
- };
3262
- g.rgb.apple = function(e) {
3263
- return [e[0] / 255 * 65535, e[1] / 255 * 65535, e[2] / 255 * 65535];
3264
- };
3265
- g.gray.rgb = function(e) {
3266
- return [e[0] / 100 * 255, e[0] / 100 * 255, e[0] / 100 * 255];
3267
- };
3268
- g.gray.hsl = function(e) {
3269
- return [0, 0, e[0]];
3270
- };
3271
- g.gray.hsv = g.gray.hsl;
3272
- g.gray.hwb = function(e) {
3273
- return [0, 100, e[0]];
3274
- };
3275
- g.gray.cmyk = function(e) {
3276
- return [0, 0, 0, e[0]];
3277
- };
3278
- g.gray.lab = function(e) {
3279
- return [e[0], 0, 0];
3280
- };
3281
- g.gray.hex = function(e) {
3282
- const t = Math.round(e[0] / 100 * 255) & 255, r = ((t << 16) + (t << 8) + t).toString(16).toUpperCase();
3283
- return "000000".substring(r.length) + r;
3284
- };
3285
- g.rgb.gray = function(e) {
3286
- return [(e[0] + e[1] + e[2]) / 3 / 255 * 100];
3287
- };
3288
- const st = Qr;
3289
- function Rs() {
3290
- const e = {}, t = Object.keys(st);
3291
- for (let n = t.length, r = 0; r < n; r++)
3292
- e[t[r]] = {
3293
- // http://jsperf.com/1-vs-infinity
3294
- // micro-opt, but this is simple.
3295
- distance: -1,
3296
- parent: null
3297
- };
3298
- return e;
3299
- }
3300
- function js(e) {
3301
- const t = Rs(), n = [e];
3302
- for (t[e].distance = 0; n.length; ) {
3303
- const r = n.pop(), o = Object.keys(st[r]);
3304
- for (let a = o.length, i = 0; i < a; i++) {
3305
- const s = o[i], c = t[s];
3306
- c.distance === -1 && (c.distance = t[r].distance + 1, c.parent = r, n.unshift(s));
3307
- }
3308
- }
3309
- return t;
3310
- }
3311
- function Ls(e, t) {
3312
- return function(n) {
3313
- return t(e(n));
3314
- };
3315
- }
3316
- function Gs(e, t) {
3317
- const n = [t[e].parent, e];
3318
- let r = st[t[e].parent][e], o = t[e].parent;
3319
- for (; t[o].parent; )
3320
- n.unshift(t[o].parent), r = Ls(st[t[o].parent][o], r), o = t[o].parent;
3321
- return r.conversion = n, r;
3322
- }
3323
- var qs = function(e) {
3324
- const t = js(e), n = {}, r = Object.keys(t);
3325
- for (let o = r.length, a = 0; a < o; a++) {
3326
- const i = r[a];
3327
- t[i].parent !== null && (n[i] = Gs(i, t));
3328
- }
3329
- return n;
3330
- };
3331
- const Xt = Qr, Bs = qs, ve = {}, Hs = Object.keys(Xt);
3332
- function Ws(e) {
3333
- const t = function(...n) {
3334
- const r = n[0];
3335
- return r == null ? r : (r.length > 1 && (n = r), e(n));
3336
- };
3337
- return "conversion" in e && (t.conversion = e.conversion), t;
3338
- }
3339
- function Us(e) {
3340
- const t = function(...n) {
3341
- const r = n[0];
3342
- if (r == null)
3343
- return r;
3344
- r.length > 1 && (n = r);
3345
- const o = e(n);
3346
- if (typeof o == "object")
3347
- for (let a = o.length, i = 0; i < a; i++)
3348
- o[i] = Math.round(o[i]);
3349
- return o;
3350
- };
3351
- return "conversion" in e && (t.conversion = e.conversion), t;
3352
- }
3353
- Hs.forEach((e) => {
3354
- ve[e] = {}, Object.defineProperty(ve[e], "channels", { value: Xt[e].channels }), Object.defineProperty(ve[e], "labels", { value: Xt[e].labels });
3355
- const t = Bs(e);
3356
- Object.keys(t).forEach((r) => {
3357
- const o = t[r];
3358
- ve[e][r] = Us(o), ve[e][r].raw = Ws(o);
3359
- });
3360
- });
3361
- var Vs = ve;
3362
- const we = _s, R = Vs, eo = [
3363
- // To be honest, I don't really feel like keyword belongs in color convert, but eh.
3364
- "keyword",
3365
- // Gray conflicts with some method names, and has its own method defined.
3366
- "gray",
3367
- // Shouldn't really be in color-convert either...
3368
- "hex"
3369
- ], Jt = {};
3370
- for (const e of Object.keys(R))
3371
- Jt[[...R[e].labels].sort().join("")] = e;
3372
- const ct = {};
3373
- function z(e, t) {
3374
- if (!(this instanceof z))
3375
- return new z(e, t);
3376
- if (t && t in eo && (t = null), t && !(t in R))
3377
- throw new Error("Unknown model: " + t);
3378
- let n, r;
3379
- if (e == null)
3380
- this.model = "rgb", this.color = [0, 0, 0], this.valpha = 1;
3381
- else if (e instanceof z)
3382
- this.model = e.model, this.color = [...e.color], this.valpha = e.valpha;
3383
- else if (typeof e == "string") {
3384
- const o = we.get(e);
3385
- if (o === null)
3386
- throw new Error("Unable to parse color from string: " + e);
3387
- this.model = o.model, r = R[this.model].channels, this.color = o.value.slice(0, r), this.valpha = typeof o.value[r] == "number" ? o.value[r] : 1;
3388
- } else if (e.length > 0) {
3389
- this.model = t || "rgb", r = R[this.model].channels;
3390
- const o = Array.prototype.slice.call(e, 0, r);
3391
- this.color = Zt(o, r), this.valpha = typeof e[r] == "number" ? e[r] : 1;
3392
- } else if (typeof e == "number")
3393
- this.model = "rgb", this.color = [
3394
- e >> 16 & 255,
3395
- e >> 8 & 255,
3396
- e & 255
3397
- ], this.valpha = 1;
3398
- else {
3399
- this.valpha = 1;
3400
- const o = Object.keys(e);
3401
- "alpha" in e && (o.splice(o.indexOf("alpha"), 1), this.valpha = typeof e.alpha == "number" ? e.alpha : 0);
3402
- const a = o.sort().join("");
3403
- if (!(a in Jt))
3404
- throw new Error("Unable to parse color from object: " + JSON.stringify(e));
3405
- this.model = Jt[a];
3406
- const { labels: i } = R[this.model], s = [];
3407
- for (n = 0; n < i.length; n++)
3408
- s.push(e[i[n]]);
3409
- this.color = Zt(s);
3410
- }
3411
- if (ct[this.model])
3412
- for (r = R[this.model].channels, n = 0; n < r; n++) {
3413
- const o = ct[this.model][n];
3414
- o && (this.color[n] = o(this.color[n]));
3415
- }
3416
- this.valpha = Math.max(0, Math.min(1, this.valpha)), Object.freeze && Object.freeze(this);
3417
- }
3418
- z.prototype = {
3419
- toString() {
3420
- return this.string();
3421
- },
3422
- toJSON() {
3423
- return this[this.model]();
3424
- },
3425
- string(e) {
3426
- let t = this.model in we.to ? this : this.rgb();
3427
- t = t.round(typeof e == "number" ? e : 1);
3428
- const n = t.valpha === 1 ? t.color : [...t.color, this.valpha];
3429
- return we.to[t.model](n);
3430
- },
3431
- percentString(e) {
3432
- const t = this.rgb().round(typeof e == "number" ? e : 1), n = t.valpha === 1 ? t.color : [...t.color, this.valpha];
3433
- return we.to.rgb.percent(n);
3434
- },
3435
- array() {
3436
- return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
3437
- },
3438
- object() {
3439
- const e = {}, { channels: t } = R[this.model], { labels: n } = R[this.model];
3440
- for (let r = 0; r < t; r++)
3441
- e[n[r]] = this.color[r];
3442
- return this.valpha !== 1 && (e.alpha = this.valpha), e;
3443
- },
3444
- unitArray() {
3445
- const e = this.rgb().color;
3446
- return e[0] /= 255, e[1] /= 255, e[2] /= 255, this.valpha !== 1 && e.push(this.valpha), e;
3447
- },
3448
- unitObject() {
3449
- const e = this.rgb().object();
3450
- return e.r /= 255, e.g /= 255, e.b /= 255, this.valpha !== 1 && (e.alpha = this.valpha), e;
3451
- },
3452
- round(e) {
3453
- return e = Math.max(e || 0, 0), new z([...this.color.map(Ys(e)), this.valpha], this.model);
3454
- },
3455
- alpha(e) {
3456
- return e !== void 0 ? new z([...this.color, Math.max(0, Math.min(1, e))], this.model) : this.valpha;
3457
- },
3458
- // Rgb
3459
- red: N("rgb", 0, I(255)),
3460
- green: N("rgb", 1, I(255)),
3461
- blue: N("rgb", 2, I(255)),
3462
- hue: N(["hsl", "hsv", "hsl", "hwb", "hcg"], 0, (e) => (e % 360 + 360) % 360),
3463
- saturationl: N("hsl", 1, I(100)),
3464
- lightness: N("hsl", 2, I(100)),
3465
- saturationv: N("hsv", 1, I(100)),
3466
- value: N("hsv", 2, I(100)),
3467
- chroma: N("hcg", 1, I(100)),
3468
- gray: N("hcg", 2, I(100)),
3469
- white: N("hwb", 1, I(100)),
3470
- wblack: N("hwb", 2, I(100)),
3471
- cyan: N("cmyk", 0, I(100)),
3472
- magenta: N("cmyk", 1, I(100)),
3473
- yellow: N("cmyk", 2, I(100)),
3474
- black: N("cmyk", 3, I(100)),
3475
- x: N("xyz", 0, I(95.047)),
3476
- y: N("xyz", 1, I(100)),
3477
- z: N("xyz", 2, I(108.833)),
3478
- l: N("lab", 0, I(100)),
3479
- a: N("lab", 1),
3480
- b: N("lab", 2),
3481
- keyword(e) {
3482
- return e !== void 0 ? new z(e) : R[this.model].keyword(this.color);
3483
- },
3484
- hex(e) {
3485
- return e !== void 0 ? new z(e) : we.to.hex(this.rgb().round().color);
3486
- },
3487
- hexa(e) {
3488
- if (e !== void 0)
3489
- return new z(e);
3490
- const t = this.rgb().round().color;
3491
- let n = Math.round(this.valpha * 255).toString(16).toUpperCase();
3492
- return n.length === 1 && (n = "0" + n), we.to.hex(t) + n;
3493
- },
3494
- rgbNumber() {
3495
- const e = this.rgb().color;
3496
- return (e[0] & 255) << 16 | (e[1] & 255) << 8 | e[2] & 255;
3497
- },
3498
- luminosity() {
3499
- const e = this.rgb().color, t = [];
3500
- for (const [n, r] of e.entries()) {
3501
- const o = r / 255;
3502
- t[n] = o <= 0.04045 ? o / 12.92 : ((o + 0.055) / 1.055) ** 2.4;
3503
- }
3504
- return 0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2];
3505
- },
3506
- contrast(e) {
3507
- const t = this.luminosity(), n = e.luminosity();
3508
- return t > n ? (t + 0.05) / (n + 0.05) : (n + 0.05) / (t + 0.05);
3509
- },
3510
- level(e) {
3511
- const t = this.contrast(e);
3512
- return t >= 7 ? "AAA" : t >= 4.5 ? "AA" : "";
3513
- },
3514
- isDark() {
3515
- const e = this.rgb().color;
3516
- return (e[0] * 2126 + e[1] * 7152 + e[2] * 722) / 1e4 < 128;
3517
- },
3518
- isLight() {
3519
- return !this.isDark();
3520
- },
3521
- negate() {
3522
- const e = this.rgb();
3523
- for (let t = 0; t < 3; t++)
3524
- e.color[t] = 255 - e.color[t];
3525
- return e;
3526
- },
3527
- lighten(e) {
3528
- const t = this.hsl();
3529
- return t.color[2] += t.color[2] * e, t;
3530
- },
3531
- darken(e) {
3532
- const t = this.hsl();
3533
- return t.color[2] -= t.color[2] * e, t;
3534
- },
3535
- saturate(e) {
3536
- const t = this.hsl();
3537
- return t.color[1] += t.color[1] * e, t;
3538
- },
3539
- desaturate(e) {
3540
- const t = this.hsl();
3541
- return t.color[1] -= t.color[1] * e, t;
3542
- },
3543
- whiten(e) {
3544
- const t = this.hwb();
3545
- return t.color[1] += t.color[1] * e, t;
3546
- },
3547
- blacken(e) {
3548
- const t = this.hwb();
3549
- return t.color[2] += t.color[2] * e, t;
3550
- },
3551
- grayscale() {
3552
- const e = this.rgb().color, t = e[0] * 0.3 + e[1] * 0.59 + e[2] * 0.11;
3553
- return z.rgb(t, t, t);
3554
- },
3555
- fade(e) {
3556
- return this.alpha(this.valpha - this.valpha * e);
3557
- },
3558
- opaquer(e) {
3559
- return this.alpha(this.valpha + this.valpha * e);
3560
- },
3561
- rotate(e) {
3562
- const t = this.hsl();
3563
- let n = t.color[0];
3564
- return n = (n + e) % 360, n = n < 0 ? 360 + n : n, t.color[0] = n, t;
3565
- },
3566
- mix(e, t) {
3567
- if (!e || !e.rgb)
3568
- throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof e);
3569
- const n = e.rgb(), r = this.rgb(), o = t === void 0 ? 0.5 : t, a = 2 * o - 1, i = n.alpha() - r.alpha(), s = ((a * i === -1 ? a : (a + i) / (1 + a * i)) + 1) / 2, c = 1 - s;
3570
- return z.rgb(
3571
- s * n.red() + c * r.red(),
3572
- s * n.green() + c * r.green(),
3573
- s * n.blue() + c * r.blue(),
3574
- n.alpha() * o + r.alpha() * (1 - o)
3575
- );
3576
- }
3577
- };
3578
- for (const e of Object.keys(R)) {
3579
- if (eo.includes(e))
3580
- continue;
3581
- const { channels: t } = R[e];
3582
- z.prototype[e] = function(...n) {
3583
- return this.model === e ? new z(this) : n.length > 0 ? new z(n, e) : new z([...Xs(R[this.model][e].raw(this.color)), this.valpha], e);
3584
- }, z[e] = function(...n) {
3585
- let r = n[0];
3586
- return typeof r == "number" && (r = Zt(n, t)), new z(r, e);
3587
- };
3588
- }
3589
- function Ks(e, t) {
3590
- return Number(e.toFixed(t));
3591
- }
3592
- function Ys(e) {
3593
- return function(t) {
3594
- return Ks(t, e);
3595
- };
3596
- }
3597
- function N(e, t, n) {
3598
- e = Array.isArray(e) ? e : [e];
3599
- for (const r of e)
3600
- (ct[r] || (ct[r] = []))[t] = n;
3601
- return e = e[0], function(r) {
3602
- let o;
3603
- return r !== void 0 ? (n && (r = n(r)), o = this[e](), o.color[t] = r, o) : (o = this[e]().color[t], n && (o = n(o)), o);
3604
- };
3605
- }
3606
- function I(e) {
3607
- return function(t) {
3608
- return Math.max(0, Math.min(e, t));
3609
- };
3610
- }
3611
- function Xs(e) {
3612
- return Array.isArray(e) ? e : [e];
3613
- }
3614
- function Zt(e, t) {
3615
- for (let n = 0; n < t; n++)
3616
- typeof e[n] != "number" && (e[n] = 0);
3617
- return e;
3618
- }
3619
- var Js = z;
3620
- const Zs = /* @__PURE__ */ rr(Js), Qs = K.div`
580
+ }, nt = y.div`
3621
581
  font-size: 14px;
3622
582
  background: #dae5f8;
3623
583
  padding: 0 4px;
@@ -3634,60 +594,60 @@ const Zs = /* @__PURE__ */ rr(Js), Qs = K.div`
3634
594
  &:active {
3635
595
  background-color: #9dbcf3;
3636
596
  }
3637
- `, ec = K.div`
597
+ `, ot = y.div`
3638
598
  min-height: 18px;
3639
- `, yc = ({
599
+ `, zt = ({
3640
600
  data: e = [],
3641
- onChange: t,
3642
- tableHeight: n,
601
+ onChange: n,
602
+ tableHeight: a,
3643
603
  limitation: r,
3644
- displayTitleMaxLength: o = 10,
3645
- displayMaxLength: a = 99,
3646
- SlotContentPrefixSlot: i,
3647
- SlotContentSuffixSlot: s,
604
+ displayTitleMaxLength: i = 10,
605
+ displayMaxLength: l = 99,
606
+ SlotContentPrefixSlot: u,
607
+ SlotContentSuffixSlot: f,
3648
608
  onSelect: c = () => {
3649
609
  }
3650
610
  }) => {
3651
- const [l, d] = V(!1), [u, f] = Ps(
611
+ const [d, x] = v(!1), [g, o] = We(
3652
612
  "__activeGroupId",
3653
613
  ""
3654
- ), { t: h } = Ae(), m = ce(() => e.find((v) => v.id === u), [u, e]), x = ce(() => m ? m.data : [], [m, e]), M = ce(() => e.length === 0, [e]);
3655
- return /* @__PURE__ */ P(Qt, { children: [
3656
- M ? /* @__PURE__ */ p(
3657
- Z,
614
+ ), { t: s } = z(), h = S(() => e.find((p) => p.id === g), [g, e]), k = S(() => h ? h.data : [], [h, e]), M = S(() => e.length === 0, [e]);
615
+ return /* @__PURE__ */ m(w, { children: [
616
+ M ? /* @__PURE__ */ t(
617
+ b,
3658
618
  {
3659
619
  size: "small",
3660
620
  type: "primary",
3661
- onClick: () => d(!0),
3662
- children: h("create")
621
+ onClick: () => x(!0),
622
+ children: s("create")
3663
623
  }
3664
- ) : /* @__PURE__ */ P($, { size: 2, direction: "vertical", children: [
3665
- /* @__PURE__ */ p(ec, { children: /* @__PURE__ */ p($, { size: 8, children: x.slice(0, a).map((v) => /* @__PURE__ */ p(
3666
- Jo,
624
+ ) : /* @__PURE__ */ m(C, { size: 2, direction: "vertical", children: [
625
+ /* @__PURE__ */ t(ot, { children: /* @__PURE__ */ t(C, { size: 8, children: k.slice(0, l).map((p) => /* @__PURE__ */ t(
626
+ Ne,
3667
627
  {
3668
- title: v.content,
628
+ title: p.content,
3669
629
  destroyTooltipOnHide: !0,
3670
- children: /* @__PURE__ */ P(
3671
- Qs,
630
+ children: /* @__PURE__ */ m(
631
+ nt,
3672
632
  {
3673
- onClick: (S) => {
3674
- S.target.closest("bdi") || c(v);
633
+ onClick: (ze) => {
634
+ ze.target.closest("bdi") || c(p);
3675
635
  },
3676
636
  children: [
3677
- i && /* @__PURE__ */ p("bdi", { children: /* @__PURE__ */ p(
3678
- i,
637
+ u && /* @__PURE__ */ t("bdi", { children: /* @__PURE__ */ t(
638
+ u,
3679
639
  {
3680
- group: m,
3681
- message: v
640
+ group: h,
641
+ message: p
3682
642
  }
3683
643
  ) }),
3684
- tr(v.label, o),
3685
- s && /* @__PURE__ */ P("bdi", { children: [
3686
- /* @__PURE__ */ p(
3687
- s,
644
+ B(p.label, i),
645
+ f && /* @__PURE__ */ m("bdi", { children: [
646
+ /* @__PURE__ */ t(
647
+ f,
3688
648
  {
3689
- group: m,
3690
- message: v
649
+ group: h,
650
+ message: p
3691
651
  }
3692
652
  ),
3693
653
  " "
@@ -3696,47 +656,47 @@ const Zs = /* @__PURE__ */ rr(Js), Qs = K.div`
3696
656
  }
3697
657
  )
3698
658
  },
3699
- v.label
659
+ p.label
3700
660
  )) }) }),
3701
- /* @__PURE__ */ P($, { size: 8, children: [
3702
- e.slice(0, a).map((v) => /* @__PURE__ */ p(
3703
- nc,
661
+ /* @__PURE__ */ m(C, { size: 8, children: [
662
+ e.slice(0, l).map((p) => /* @__PURE__ */ t(
663
+ it,
3704
664
  {
3705
- data: v,
3706
- active: u === v.id,
3707
- displayTitleMaxLength: o,
665
+ data: p,
666
+ active: g === p.id,
667
+ displayTitleMaxLength: i,
3708
668
  onClick: () => {
3709
- f(
3710
- u === v.id ? "" : v.id
669
+ o(
670
+ g === p.id ? "" : p.id
3711
671
  );
3712
672
  }
3713
673
  },
3714
- v.id
674
+ p.id
3715
675
  )),
3716
- /* @__PURE__ */ p(
3717
- Z,
676
+ /* @__PURE__ */ t(
677
+ b,
3718
678
  {
3719
679
  size: "small",
3720
680
  type: "text",
3721
- onClick: () => d(!0),
3722
- children: /* @__PURE__ */ p(vs, {})
681
+ onClick: () => x(!0),
682
+ children: /* @__PURE__ */ t(Pe, {})
3723
683
  }
3724
684
  )
3725
685
  ] })
3726
686
  ] }),
3727
- /* @__PURE__ */ p(
3728
- As,
687
+ /* @__PURE__ */ t(
688
+ tt,
3729
689
  {
3730
- open: l,
3731
- onOpenChange: d,
690
+ open: d,
691
+ onOpenChange: x,
3732
692
  data: e,
3733
- onChange: t,
3734
- tableHeight: n,
693
+ onChange: n,
694
+ tableHeight: a,
3735
695
  limitation: r
3736
696
  }
3737
697
  )
3738
698
  ] });
3739
- }, tc = K.div`
699
+ }, rt = y.div`
3740
700
  background-color: ${(e) => e.$backgroundColor};
3741
701
  color: ${(e) => e.$textColor};
3742
702
  border: 1px solid transparent;
@@ -3754,132 +714,132 @@ const Zs = /* @__PURE__ */ rr(Js), Qs = K.div`
3754
714
  opacity: 0.6;
3755
715
  }
3756
716
  `;
3757
- function nc(e) {
3758
- const t = ce(() => {
3759
- var a, i;
3760
- const n = Zs(e.data.color), r = n.isDark(), o = r ? (a = n.lighten(0.2)) == null ? void 0 : a.hex() : (i = n.darken(0.15)) == null ? void 0 : i.hex();
717
+ function it(e) {
718
+ const n = S(() => {
719
+ var l, u;
720
+ const a = Be(e.data.color), r = a.isDark(), i = r ? (l = a.lighten(0.2)) == null ? void 0 : l.hex() : (u = a.darken(0.15)) == null ? void 0 : u.hex();
3761
721
  return {
3762
722
  $textColor: r ? "#fff" : "#333",
3763
723
  $backgroundColor: e.data.color,
3764
- $hoverColor: o
724
+ $hoverColor: i
3765
725
  };
3766
726
  }, [e.data.color]);
3767
- return /* @__PURE__ */ p(
3768
- tc,
727
+ return /* @__PURE__ */ t(
728
+ rt,
3769
729
  {
3770
- ...t,
730
+ ...n,
3771
731
  $active: e.active,
3772
732
  "data-id": e.data.id,
3773
733
  onClick: e.onClick,
3774
734
  title: e.data.title,
3775
- children: tr(e.data.title, e.displayTitleMaxLength)
735
+ children: B(e.data.title, e.displayTitleMaxLength)
3776
736
  }
3777
737
  );
3778
738
  }
3779
739
  /*! This file was generated by vite-i18n-gen-resources-type check https://github.com/CRMChatReactComponent/vite-i18n-gen-resources-type. Please do not modify. */
3780
- var to = /* @__PURE__ */ ((e) => (e.ZH_CN = "zh-CN", e.EN_US = "en-US", e))(to || {});
3781
- const no = "Are you sure to delete it?", ro = "No data available", oo = "Select a Group first", ao = "Create a Group", io = "Edit Group", so = "Create Group", co = "Title", lo = "Color", uo = "Save", fo = "Create", ho = "Quick Messages Configs", po = "Created Successfully", go = "Cannot be saved: title already existing", mo = "Cannot be saved: title is empty", yo = "Cannot be saved: content is empty", bo = "Content", rc = {
3782
- confirmDelete: no,
3783
- noData: ro,
3784
- selectAGroupFirst: oo,
3785
- addNewGroup: ao,
3786
- editGroup: io,
3787
- createGroup: so,
3788
- titleFieldName: co,
3789
- colorFieldName: lo,
3790
- save: uo,
3791
- create: fo,
3792
- quickMessageConfigs: ho,
3793
- createSuccessfully: po,
3794
- cannotSavedMessageCuzLabelExisted: go,
3795
- cannotSavedMessageCuzLabelEmpty: mo,
3796
- cannotSavedMessageCuzContentEmpty: yo,
3797
- content: bo,
740
+ var R = /* @__PURE__ */ ((e) => (e.ZH_CN = "zh-CN", e.EN_US = "en-US", e))(R || {});
741
+ const q = "Are you sure to delete it?", U = "No data available", Q = "Select a Group first", V = "Create a Group", Z = "Edit Group", J = "Create Group", X = "Title", Y = "Color", ee = "Save", te = "Create", ne = "Quick Messages Configs", oe = "Created Successfully", re = "Cannot be saved: title already existing", ie = "Cannot be saved: title is empty", ae = "Cannot be saved: content is empty", le = "Content", at = {
742
+ confirmDelete: q,
743
+ noData: U,
744
+ selectAGroupFirst: Q,
745
+ addNewGroup: V,
746
+ editGroup: Z,
747
+ createGroup: J,
748
+ titleFieldName: X,
749
+ colorFieldName: Y,
750
+ save: ee,
751
+ create: te,
752
+ quickMessageConfigs: ne,
753
+ createSuccessfully: oe,
754
+ cannotSavedMessageCuzLabelExisted: re,
755
+ cannotSavedMessageCuzLabelEmpty: ie,
756
+ cannotSavedMessageCuzContentEmpty: ae,
757
+ content: le,
3798
758
  delete: "Delete"
3799
- }, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
759
+ }, lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3800
760
  __proto__: null,
3801
- addNewGroup: ao,
3802
- cannotSavedMessageCuzContentEmpty: yo,
3803
- cannotSavedMessageCuzLabelEmpty: mo,
3804
- cannotSavedMessageCuzLabelExisted: go,
3805
- colorFieldName: lo,
3806
- confirmDelete: no,
3807
- content: bo,
3808
- create: fo,
3809
- createGroup: so,
3810
- createSuccessfully: po,
3811
- default: rc,
3812
- editGroup: io,
3813
- noData: ro,
3814
- quickMessageConfigs: ho,
3815
- save: uo,
3816
- selectAGroupFirst: oo,
3817
- titleFieldName: co
3818
- }, Symbol.toStringTag, { value: "Module" })), vo = "确定删除吗?", wo = "没有数据", xo = "请在左侧选择一个分组", Co = "添加一个分组", ko = "编辑分组", So = "新建分组", Eo = "标题", Oo = "颜色", Ao = "保存", Mo = "创建", No = "快捷消息配置", Po = "创建成功", To = "无法保存: 标题重复", Io = "无法保存: 标题不能为空", Do = "无法保存: 内容不能为空", zo = "内容", ac = {
3819
- confirmDelete: vo,
3820
- noData: wo,
3821
- selectAGroupFirst: xo,
3822
- addNewGroup: Co,
3823
- editGroup: ko,
3824
- createGroup: So,
3825
- titleFieldName: Eo,
3826
- colorFieldName: Oo,
3827
- save: Ao,
3828
- create: Mo,
3829
- quickMessageConfigs: No,
3830
- createSuccessfully: Po,
3831
- cannotSavedMessageCuzLabelExisted: To,
3832
- cannotSavedMessageCuzLabelEmpty: Io,
3833
- cannotSavedMessageCuzContentEmpty: Do,
3834
- content: zo,
761
+ addNewGroup: V,
762
+ cannotSavedMessageCuzContentEmpty: ae,
763
+ cannotSavedMessageCuzLabelEmpty: ie,
764
+ cannotSavedMessageCuzLabelExisted: re,
765
+ colorFieldName: Y,
766
+ confirmDelete: q,
767
+ content: le,
768
+ create: te,
769
+ createGroup: J,
770
+ createSuccessfully: oe,
771
+ default: at,
772
+ editGroup: Z,
773
+ noData: U,
774
+ quickMessageConfigs: ne,
775
+ save: ee,
776
+ selectAGroupFirst: Q,
777
+ titleFieldName: X
778
+ }, Symbol.toStringTag, { value: "Module" })), ce = "确定删除吗?", se = "没有数据", de = "请在左侧选择一个分组", ue = "添加一个分组", fe = "编辑分组", he = "新建分组", me = "标题", ge = "颜色", pe = "保存", Ce = "创建", xe = "快捷消息配置", be = "创建成功", ve = "无法保存: 标题重复", ye = "无法保存: 标题不能为空", ke = "无法保存: 内容不能为空", Se = "内容", ct = {
779
+ confirmDelete: ce,
780
+ noData: se,
781
+ selectAGroupFirst: de,
782
+ addNewGroup: ue,
783
+ editGroup: fe,
784
+ createGroup: he,
785
+ titleFieldName: me,
786
+ colorFieldName: ge,
787
+ save: pe,
788
+ create: Ce,
789
+ quickMessageConfigs: xe,
790
+ createSuccessfully: be,
791
+ cannotSavedMessageCuzLabelExisted: ve,
792
+ cannotSavedMessageCuzLabelEmpty: ye,
793
+ cannotSavedMessageCuzContentEmpty: ke,
794
+ content: Se,
3835
795
  delete: "删除"
3836
- }, ic = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
796
+ }, st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3837
797
  __proto__: null,
3838
- addNewGroup: Co,
3839
- cannotSavedMessageCuzContentEmpty: Do,
3840
- cannotSavedMessageCuzLabelEmpty: Io,
3841
- cannotSavedMessageCuzLabelExisted: To,
3842
- colorFieldName: Oo,
3843
- confirmDelete: vo,
3844
- content: zo,
3845
- create: Mo,
3846
- createGroup: So,
3847
- createSuccessfully: Po,
3848
- default: ac,
3849
- editGroup: ko,
3850
- noData: wo,
3851
- quickMessageConfigs: No,
3852
- save: Ao,
3853
- selectAGroupFirst: xo,
3854
- titleFieldName: Eo
3855
- }, Symbol.toStringTag, { value: "Module" })), sc = /* @__PURE__ */ Object.assign({
3856
- "./locales/en-US/common.json": oc,
3857
- "./locales/zh-CN/common.json": ic
3858
- }), Xn = Object.entries(sc).reduce(
3859
- (e, t) => {
3860
- const [n, r] = t, o = n.match(/\/locales\/([\w-]+)\//), a = n.match(/\/([\w-_]+)\.json$/);
3861
- return a && o ? (e[o[1]] = e[o[1]] || {}, e[o[1]][a[1]] = r.default) : console.error(`无法解析文件名称 path:${n}`), e;
798
+ addNewGroup: ue,
799
+ cannotSavedMessageCuzContentEmpty: ke,
800
+ cannotSavedMessageCuzLabelEmpty: ye,
801
+ cannotSavedMessageCuzLabelExisted: ve,
802
+ colorFieldName: ge,
803
+ confirmDelete: ce,
804
+ content: Se,
805
+ create: Ce,
806
+ createGroup: he,
807
+ createSuccessfully: be,
808
+ default: ct,
809
+ editGroup: fe,
810
+ noData: se,
811
+ quickMessageConfigs: xe,
812
+ save: pe,
813
+ selectAGroupFirst: de,
814
+ titleFieldName: me
815
+ }, Symbol.toStringTag, { value: "Module" })), dt = /* @__PURE__ */ Object.assign({
816
+ "./locales/en-US/common.json": lt,
817
+ "./locales/zh-CN/common.json": st
818
+ }), O = Object.entries(dt).reduce(
819
+ (e, n) => {
820
+ const [a, r] = n, i = a.match(/\/locales\/([\w-]+)\//), l = a.match(/\/([\w-_]+)\.json$/);
821
+ return l && i ? (e[i[1]] = e[i[1]] || {}, e[i[1]][l[1]] = r.default) : console.error(`无法解析文件名称 path:${a}`), e;
3862
822
  },
3863
823
  {}
3864
- ), $o = ta.createInstance();
3865
- $o.init({
3866
- lng: to.ZH_CN,
824
+ ), De = He.createInstance();
825
+ De.init({
826
+ lng: R.ZH_CN,
3867
827
  debug: !1,
3868
- ns: Object.keys(Xn),
3869
- resources: Xn
828
+ ns: Object.keys(O),
829
+ resources: O
3870
830
  });
3871
- const cc = en(null);
3872
- function bc(e) {
3873
- return /* @__PURE__ */ p(ea, { i18n: $o, defaultNS: "common", children: /* @__PURE__ */ p(cc.Provider, { value: {}, children: e.children }) });
831
+ const ut = j(null);
832
+ function Mt(e) {
833
+ return /* @__PURE__ */ t(je, { i18n: De, defaultNS: "common", children: /* @__PURE__ */ t(ut.Provider, { value: {}, children: e.children }) });
3874
834
  }
3875
835
  export {
3876
- nr as AntdApiContext,
3877
- mc as AntdApiContextProviderCmp,
3878
- gc as EmojiPickerWrapper,
3879
- cc as I18nContext,
3880
- bc as I18nContextCmp,
3881
- Es as MessageConfigsPanel,
3882
- As as MessageConfigsPanelModalWrapper,
3883
- ui as MessagesEditTable,
3884
- yc as QuickMessages
836
+ H as AntdApiContext,
837
+ Dt as AntdApiContextProviderCmp,
838
+ St as EmojiPickerWrapper,
839
+ ut as I18nContext,
840
+ Mt as I18nContextCmp,
841
+ Ye as MessageConfigsPanel,
842
+ tt as MessageConfigsPanelModalWrapper,
843
+ qe as MessagesEditTable,
844
+ zt as QuickMessages
3885
845
  };