@univerjs/sheets-conditional-formatting-ui 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/lib/cjs/index.js +3 -3
  2. package/lib/es/index.js +1055 -892
  3. package/lib/types/commands/commands/add-average-cf.command.d.ts +1 -1
  4. package/lib/types/commands/commands/add-cf.command.d.ts +1 -1
  5. package/lib/types/commands/commands/add-color-scale-cf.command.d.ts +1 -1
  6. package/lib/types/commands/commands/add-data-bar-cf.command.d.ts +1 -1
  7. package/lib/types/commands/commands/add-duplicate-values-cf.command.d.ts +1 -1
  8. package/lib/types/commands/commands/add-number-cf.command.d.ts +1 -1
  9. package/lib/types/commands/commands/add-rank-cf.command.d.ts +1 -1
  10. package/lib/types/commands/commands/add-text-cf.command.d.ts +1 -1
  11. package/lib/types/commands/commands/add-time-period-cf.command.d.ts +1 -1
  12. package/lib/types/commands/commands/add-unique-values-cf.command.d.ts +1 -1
  13. package/lib/types/commands/commands/move-cf.command.d.ts +1 -1
  14. package/lib/types/commands/commands/set-cf.command.d.ts +1 -1
  15. package/lib/types/components/conditional-style-editor/index.d.ts +1 -1
  16. package/lib/types/components/panel/index.d.ts +1 -1
  17. package/lib/types/components/panel/rule-edit/colorScale.d.ts +1 -1
  18. package/lib/types/components/panel/rule-edit/dataBar.d.ts +1 -1
  19. package/lib/types/components/panel/rule-edit/formula.d.ts +1 -1
  20. package/lib/types/components/panel/rule-edit/highlightCell.d.ts +2 -2
  21. package/lib/types/components/panel/rule-edit/iconSet.d.ts +2 -2
  22. package/lib/types/components/panel/rule-edit/index.d.ts +1 -1
  23. package/lib/types/components/panel/rule-edit/rank.d.ts +1 -1
  24. package/lib/types/components/panel/rule-edit/type.d.ts +1 -1
  25. package/lib/types/components/panel/rule-list/index.d.ts +1 -1
  26. package/lib/types/components/preview/index.d.ts +1 -1
  27. package/lib/types/controllers/cf.auto-fill.controller.d.ts +3 -3
  28. package/lib/types/controllers/cf.clear.controller.d.ts +3 -3
  29. package/lib/types/controllers/cf.copy-paste.controller.d.ts +3 -3
  30. package/lib/types/controllers/cf.editor.controller.d.ts +2 -2
  31. package/lib/types/controllers/cf.i18n.controller.d.ts +1 -1
  32. package/lib/types/controllers/cf.menu.controller.d.ts +6 -4
  33. package/lib/types/controllers/cf.ref-range.controller.d.ts +4 -4
  34. package/lib/types/controllers/cf.render.controller.d.ts +4 -4
  35. package/lib/types/index.d.ts +1 -1
  36. package/lib/types/locale/index.d.ts +1 -0
  37. package/lib/types/locale/ru-RU.d.ts +4 -0
  38. package/lib/types/menu/manage-rule.d.ts +1 -1
  39. package/lib/types/plugin.d.ts +1 -1
  40. package/lib/umd/index.js +3 -3
  41. package/package.json +23 -23
package/lib/es/index.js CHANGED
@@ -1,20 +1,20 @@
1
- var za = Object.defineProperty;
2
- var Va = (e, t, n) => t in e ? za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var dt = (e, t, n) => (Va(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { CommandType as Ce, ICommandService as de, IUniverInstanceService as ne, IUndoRedoService as Wt, ObjectMatrix as zt, Range as ot, sequenceExecute as li, LocaleService as $e, UniverInstanceType as X, Rectangle as Ht, ColorKit as ci, BooleanNumber as Le, Disposable as it, OnLifecycle as at, LifecycleStages as st, createInterceptorKey as ui, createInternalEditorID as hn, Tools as di, InterceptorManager as Ha, DisposableCollection as ka, toDisposable as br, Plugin as Wa } from "@univerjs/core";
5
- import { Inject as B, Injector as At } from "@wendellhu/redi";
6
- import { ConditionalFormattingRuleModel as ue, CFRuleType as j, CFSubRuleType as $, AddConditionalRuleMutation as Oe, CFNumberOperator as H, setConditionalRuleMutationUndoFactory as Ft, SetConditionalRuleMutation as Je, DeleteConditionalRuleMutationUndoFactory as Ut, DeleteConditionalRuleMutation as Qe, MoveConditionalRuleMutation as Pn, transformSupportSymmetryAnchor as Aa, MoveConditionalRuleMutationUndoFactory as Fa, getColorScaleFromValue as Ua, iconMap as bt, DEFAULT_BG_COLOR as qa, DEFAULT_FONT_COLOR as Ba, AddConditionalRuleMutationUndoFactory as fi, CFValueType as A, createDefaultValueByValueType as sn, SHEET_CONDITIONAL_FORMATTING_PLUGIN as lt, removeUndefinedAttr as Ga, createDefaultValue as Sr, CFTextOperator as te, CFTimePeriodOperator as Ue, iconGroup as Xa, getOppositeOperator as Cr, compareWithNumber as Ya, EMPTY_ICON_TYPE as Ka, createDefaultRule as ft, DEFAULT_PADDING as Za, DEFAULT_WIDTH as Ja, ConditionalFormattingService as hi, ConditionalFormattingViewModel as Lr, dataBarUKey as Qa, DataBar as es, IconUKey as ts, ConditionalFormattingIcon as ns, isRangesEqual as rs, getStringFromDataStream as os, SheetsConditionalFormattingPlugin as xo } from "@univerjs/sheets-conditional-formatting";
7
- import { getSheetCommandTarget as _e, SelectionManagerService as qt, findAllRectangle as zr, createTopMatrixFromMatrix as Vr, SetWorksheetActiveOperation as Hr, SetSelectionsOperation as is, RemoveSheetMutation as as, setEndForRange as ss, INTERCEPTOR_POINT as ls, SheetInterceptorService as pi, RefRangeService as cs, handleDefaultRangeChangeWithEffectRefCommands as us, ClearSelectionFormatCommand as ds, ClearSelectionAllCommand as fs, RangeMergeUtil as hs } from "@univerjs/sheets";
8
- import { MenuItemType as ps, MenuGroup as gs, MenuPosition as ms, getMenuHiddenObservable as vs, ComponentManager as kr, TextEditor as zn, RangeSelector as ys, IMenuService as bs, ISidebarService as Ss } from "@univerjs/ui";
9
- import { Observable as nt, merge as wr, debounceTime as Ro } from "rxjs";
1
+ var Va = Object.defineProperty;
2
+ var za = (e, t, n) => t in e ? Va(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var et = (e, t, n) => (za(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { CommandType as Ce, ICommandService as de, IUniverInstanceService as ne, IUndoRedoService as At, ObjectMatrix as zt, Range as it, sequenceExecute as li, LocaleService as $e, UniverInstanceType as X, Rectangle as Ht, ColorKit as ci, BooleanNumber as Le, Disposable as at, OnLifecycle as st, LifecycleStages as lt, createInterceptorKey as ui, createInternalEditorID as hn, Tools as di, InterceptorManager as ka, DisposableCollection as Ha, toDisposable as br, Plugin as Wa } from "@univerjs/core";
5
+ import { Inject as B, Injector as Ft } from "@wendellhu/redi";
6
+ import { ConditionalFormattingRuleModel as ue, CFRuleType as j, CFSubRuleType as $, AddConditionalRuleMutation as Oe, CFNumberOperator as k, setConditionalRuleMutationUndoFactory as qt, SetConditionalRuleMutation as Je, DeleteConditionalRuleMutationUndoFactory as Ut, DeleteConditionalRuleMutation as Qe, MoveConditionalRuleMutation as Dn, transformSupportSymmetryAnchor as Aa, MoveConditionalRuleMutationUndoFactory as Fa, getColorScaleFromValue as qa, iconMap as bt, DEFAULT_BG_COLOR as Ua, DEFAULT_FONT_COLOR as Ba, AddConditionalRuleMutationUndoFactory as fi, CFValueType as A, createDefaultValueByValueType as sn, SHEET_CONDITIONAL_FORMATTING_PLUGIN as ct, removeUndefinedAttr as Ga, createDefaultValue as Sr, CFTextOperator as te, CFTimePeriodOperator as qe, iconGroup as Xa, getOppositeOperator as Cr, compareWithNumber as Ya, EMPTY_ICON_TYPE as Ka, createDefaultRule as ft, DEFAULT_PADDING as Za, DEFAULT_WIDTH as Ja, ConditionalFormattingService as hi, ConditionalFormattingViewModel as Lr, dataBarUKey as Qa, DataBar as es, IconUKey as ts, ConditionalFormattingIcon as ns, isRangesEqual as rs, getStringFromDataStream as os, SheetsConditionalFormattingPlugin as xo } from "@univerjs/sheets-conditional-formatting";
7
+ import { getSheetCommandTarget as _e, SelectionManagerService as Bt, findAllRectangle as Vr, createTopMatrixFromMatrix as zr, SetWorksheetActiveOperation as kr, SetSelectionsOperation as is, RemoveSheetMutation as as, setEndForRange as ss, INTERCEPTOR_POINT as ls, SheetInterceptorService as pi, RefRangeService as cs, handleDefaultRangeChangeWithEffectRefCommands as us, ClearSelectionFormatCommand as ds, ClearSelectionAllCommand as fs, RangeMergeUtil as hs } from "@univerjs/sheets";
8
+ import { MenuItemType as ps, MenuGroup as gs, MenuPosition as ms, getMenuHiddenObservable as vs, ComponentManager as Hr, TextEditor as Vn, RangeSelector as ys, IMenuService as bs, ISidebarService as Ss } from "@univerjs/ui";
9
+ import { Observable as rt, merge as wr, debounceTime as Ro } from "rxjs";
10
10
  import { debounceTime as To, bufferTime as rr, filter as or, map as Cs, distinctUntilChanged as ws, switchMap as _s } from "rxjs/operators";
11
- import Ve, { forwardRef as Rt, useRef as un, createElement as Tt, useMemo as ve, useEffect as me, useState as N } from "react";
12
- import { Select as ze, Tooltip as Io, Dropdown as Wr, ColorPicker as xs, InputNumber as St, RadioGroup as Rs, Radio as Eo, Checkbox as Dn, Input as Ts, Button as Oo } from "@univerjs/design";
11
+ import ze, { forwardRef as Rt, useRef as un, createElement as Tt, useMemo as ve, useEffect as me, useState as N } from "react";
12
+ import { Select as Ve, Tooltip as Io, Dropdown as Wr, ColorPicker as xs, InputNumber as St, RadioGroup as Rs, Radio as Eo, Checkbox as Pn, Input as Ts, Button as Oo } from "@univerjs/design";
13
13
  import { useDependency as oe } from "@wendellhu/redi/react-bindings";
14
14
  import { serializeRange as gi } from "@univerjs/engine-formula";
15
- import rt from "clsx";
15
+ import ot from "clsx";
16
16
  import mi from "react-dom";
17
- import { IMarkSelectionService as Is, SheetSkeletonManagerService as vi, COPY_TYPE as Po, rangeToDiscreteRange as Es, PREDEFINED_HOOK_NAME as ir, virtualizeDiscreteRanges as yi, getRepeatRange as Os, ISheetClipboardService as Ps, IAutoFillService as Ds, APPLY_TYPE as ar, getAutoFillRepeatRange as Ms, IEditorBridgeService as $s } from "@univerjs/sheets-ui";
17
+ import { IMarkSelectionService as Is, SheetSkeletonManagerService as vi, COPY_TYPE as Do, rangeToDiscreteRange as Es, PREDEFINED_HOOK_NAME as ir, virtualizeDiscreteRanges as yi, getRepeatRange as Os, ISheetClipboardService as Ds, IAutoFillService as Ps, APPLY_TYPE as ar, getAutoFillRepeatRange as Ms, IEditorBridgeService as $s } from "@univerjs/sheets-ui";
18
18
  import { IRenderManagerService as Ns } from "@univerjs/engine-render";
19
19
  const js = {
20
20
  type: Ce.COMMAND,
@@ -58,7 +58,7 @@ const js = {
58
58
  };
59
59
  return a.executeCommand(Oe.id, { unitId: c, subUnitId: u, rule: d });
60
60
  }
61
- }, zs = {
61
+ }, Vs = {
62
62
  type: Ce.COMMAND,
63
63
  id: "sheet.command.add-data-bar-conditional-rule",
64
64
  handler(e, t) {
@@ -85,7 +85,7 @@ const js = {
85
85
  };
86
86
  return b.executeCommand(Oe.id, { unitId: g, subUnitId: m, rule: w });
87
87
  }
88
- }, Vs = {
88
+ }, zs = {
89
89
  type: Ce.COMMAND,
90
90
  id: "sheet.command.add-duplicate-values-conditional-rule",
91
91
  handler(e, t) {
@@ -106,7 +106,7 @@ const js = {
106
106
  };
107
107
  return a.executeCommand(Oe.id, { unitId: c, subUnitId: u, rule: d });
108
108
  }
109
- }, Hs = {
109
+ }, ks = {
110
110
  type: Ce.COMMAND,
111
111
  id: "sheet.command.add-number-conditional-rule",
112
112
  handler(e, t) {
@@ -117,7 +117,7 @@ const js = {
117
117
  return !1;
118
118
  const { unitId: h, subUnitId: d } = u, g = l.createCfId(h, d);
119
119
  let m;
120
- if ([H.between, H.notBetween].includes(i)) {
120
+ if ([k.between, k.notBetween].includes(i)) {
121
121
  const b = a;
122
122
  if (b.length !== 2 || !Array.isArray(b))
123
123
  return !1;
@@ -152,7 +152,7 @@ const js = {
152
152
  }
153
153
  return s.executeCommand(Oe.id, { unitId: h, subUnitId: d, rule: m });
154
154
  }
155
- }, ks = {
155
+ }, Hs = {
156
156
  type: Ce.COMMAND,
157
157
  id: "sheet.command.add-rank-conditional-rule",
158
158
  handler(e, t) {
@@ -249,7 +249,7 @@ const js = {
249
249
  var b;
250
250
  if (!t)
251
251
  return !1;
252
- const n = e.get(ue), r = e.get(ne), o = e.get(de), i = e.get(Wt), a = e.get(qt), l = _e(r, t);
252
+ const n = e.get(ue), r = e.get(ne), o = e.get(de), i = e.get(At), a = e.get(Bt), l = _e(r, t);
253
253
  if (!l)
254
254
  return !1;
255
255
  const { unitId: s, subUnitId: c } = l, u = ((b = a.getSelections()) == null ? void 0 : b.map((x) => x.range)) || [], h = n.getSubunitRules(s, c);
@@ -259,17 +259,17 @@ const js = {
259
259
  h.forEach((x) => {
260
260
  const w = new zt();
261
261
  x.ranges.forEach((v) => {
262
- ot.foreach(v, (C, p) => {
262
+ it.foreach(v, (C, p) => {
263
263
  w.setValue(C, p, 1);
264
264
  });
265
265
  }), u.forEach((v) => {
266
- ot.foreach(v, (C, p) => {
266
+ it.foreach(v, (C, p) => {
267
267
  w.realDeleteValue(C, p);
268
268
  });
269
269
  });
270
- const y = zr(Vr(w));
270
+ const y = Vr(zr(w));
271
271
  if (y.length) {
272
- const v = { ...x, ranges: y }, C = { unitId: s, subUnitId: c, rule: v }, p = Ft(e, C);
272
+ const v = { ...x, ranges: y }, C = { unitId: s, subUnitId: c, rule: v }, p = qt(e, C);
273
273
  d.push({ id: Je.id, params: C }), g.push(...p);
274
274
  } else {
275
275
  const v = { unitId: s, subUnitId: c, cfId: x.cfId }, C = Ut(e, v);
@@ -287,7 +287,7 @@ const js = {
287
287
  type: Ce.COMMAND,
288
288
  id: "sheet.command.clear-worksheet-conditional-rule",
289
289
  handler(e, t) {
290
- const n = e.get(ue), r = e.get(ne), o = e.get(de), i = e.get(Wt), a = _e(r, t);
290
+ const n = e.get(ue), r = e.get(ne), o = e.get(de), i = e.get(At), a = _e(r, t);
291
291
  if (!a)
292
292
  return !1;
293
293
  const { unitId: l, subUnitId: s } = a, c = n.getSubunitRules(l, s);
@@ -310,7 +310,7 @@ var je = function() {
310
310
  }
311
311
  return e;
312
312
  }, je.apply(this, arguments);
313
- }, Us = function(e, t) {
313
+ }, qs = function(e, t) {
314
314
  var n = {};
315
315
  for (var r in e)
316
316
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -319,15 +319,15 @@ var je = function() {
319
319
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
320
320
  return n;
321
321
  }, It = Rt(function(e, t) {
322
- var n = e.icon, r = e.id, o = e.className, i = e.extend, a = Us(e, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(r, " ").concat(o || "").trim(), s = un("_".concat(Gs()));
322
+ var n = e.icon, r = e.id, o = e.className, i = e.extend, a = qs(e, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(r, " ").concat(o || "").trim(), s = un("_".concat(Gs()));
323
323
  return Si(n, "".concat(r), { defIds: n.defIds, idSuffix: s.current }, je({ ref: t, className: l }, a), i);
324
324
  });
325
325
  function Si(e, t, n, r, o) {
326
- return Tt(e.tag, je(je({ key: t }, qs(e, n, o)), r), (Bs(e, n).children || []).map(function(i, a) {
326
+ return Tt(e.tag, je(je({ key: t }, Us(e, n, o)), r), (Bs(e, n).children || []).map(function(i, a) {
327
327
  return Si(i, "".concat(t, "-").concat(e.tag, "-").concat(a), n, void 0, o);
328
328
  }));
329
329
  }
330
- function qs(e, t, n) {
330
+ function Us(e, t, n) {
331
331
  var r = je({}, e.attrs);
332
332
  n != null && n.colorChannel1 && r.fill === "colorChannel1" && (r.fill = n.colorChannel1);
333
333
  var o = t.defIds;
@@ -399,16 +399,16 @@ var nl = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em"
399
399
  }));
400
400
  });
401
401
  Ti.displayName = "SlashSingle";
402
- const Vn = Ti, Do = [Hr.id, Oe.id, Je.id, Qe.id, Pn.id], rl = (e) => {
402
+ const zn = Ti, Po = [kr.id, Oe.id, Je.id, Qe.id, Dn.id], rl = (e) => {
403
403
  const t = "conditional-formatting-menu-icon";
404
404
  return e.register(t, Ys), (n) => {
405
- const r = n.get($e), o = n.get(qt), i = n.get(de), a = n.get(ne), l = n.get(ue), s = new nt((h) => wr(
405
+ const r = n.get($e), o = n.get(Bt), i = n.get(de), a = n.get(ne), l = n.get(ue), s = new rt((h) => wr(
406
406
  o.selectionMoveEnd$,
407
- new nt((d) => {
407
+ new rt((d) => {
408
408
  const g = i.onCommandExecuted((m) => {
409
409
  var y;
410
410
  const { id: b, params: x } = m, w = (y = a.getCurrentUnitForType(X.UNIVER_SHEET)) == null ? void 0 : y.getUnitId();
411
- Do.includes(b) && x.unitId === w && d.next(null);
411
+ Po.includes(b) && x.unitId === w && d.next(null);
412
412
  });
413
413
  return () => g.dispose();
414
414
  })
@@ -419,14 +419,14 @@ const Vn = Ti, Do = [Hr.id, Oe.id, Je.id, Qe.id, Pn.id], rl = (e) => {
419
419
  return;
420
420
  const b = (l.getSubunitRules(g.getUnitId(), g.getActiveSheet().getSheetId()) || []).filter((w) => w.ranges.some((y) => d.some((v) => Ht.intersects(v, y))));
421
421
  h.next(!!b.length);
422
- })), c = new nt(
422
+ })), c = new rt(
423
423
  (h) => wr(
424
424
  o.selectionMoveEnd$,
425
- new nt((d) => {
425
+ new rt((d) => {
426
426
  const g = i.onCommandExecuted((m) => {
427
427
  var y;
428
428
  const { id: b, params: x } = m, w = (y = a.getCurrentUnitForType(X.UNIVER_SHEET)) == null ? void 0 : y.getUnitId();
429
- Do.includes(b) && x.unitId === w && d.next(null);
429
+ Po.includes(b) && x.unitId === w && d.next(null);
430
430
  });
431
431
  return () => g.dispose();
432
432
  })
@@ -437,13 +437,13 @@ const Vn = Ti, Do = [Hr.id, Oe.id, Je.id, Qe.id, Pn.id], rl = (e) => {
437
437
  const g = l.getSubunitRules(d.getUnitId(), d.getActiveSheet().getSheetId()) || [];
438
438
  h.next(!!g.length);
439
439
  })
440
- ), u = new nt((h) => {
440
+ ), u = new rt((h) => {
441
441
  const d = ol(r);
442
442
  s.subscribe((g) => {
443
- const m = d.find((b) => b.value === De.clearRangeRules);
443
+ const m = d.find((b) => b.value === Pe.clearRangeRules);
444
444
  m && (m.disabled = !g, h.next(d));
445
445
  }), c.subscribe((g) => {
446
- const m = d.find((b) => b.value === De.clearWorkSheetRules);
446
+ const m = d.find((b) => b.value === Pe.clearWorkSheetRules);
447
447
  m && (m.disabled = !g, h.next(d));
448
448
  }), h.next(d);
449
449
  });
@@ -463,49 +463,49 @@ function ol(e) {
463
463
  return [
464
464
  {
465
465
  label: e.t("sheet.cf.ruleType.highlightCell"),
466
- value: De.highlightCell
466
+ value: Pe.highlightCell
467
467
  },
468
468
  {
469
469
  label: e.t("sheet.cf.panel.rankAndAverage"),
470
- value: De.rank
470
+ value: Pe.rank
471
471
  },
472
472
  {
473
473
  label: e.t("sheet.cf.ruleType.formula"),
474
- value: De.formula
474
+ value: Pe.formula
475
475
  },
476
476
  {
477
477
  label: e.t("sheet.cf.ruleType.colorScale"),
478
- value: De.colorScale
478
+ value: Pe.colorScale
479
479
  },
480
480
  {
481
481
  label: e.t("sheet.cf.ruleType.dataBar"),
482
- value: De.dataBar
482
+ value: Pe.dataBar
483
483
  },
484
484
  {
485
485
  label: e.t("sheet.cf.ruleType.iconSet"),
486
- value: De.icon
486
+ value: Pe.icon
487
487
  },
488
488
  {
489
489
  label: e.t("sheet.cf.menu.manageConditionalFormatting"),
490
- value: De.viewRule
490
+ value: Pe.viewRule
491
491
  },
492
492
  {
493
493
  label: e.t("sheet.cf.menu.createConditionalFormatting"),
494
- value: De.createRule
494
+ value: Pe.createRule
495
495
  },
496
496
  {
497
497
  label: e.t("sheet.cf.menu.clearRangeRules"),
498
- value: De.clearRangeRules,
498
+ value: Pe.clearRangeRules,
499
499
  disabled: !1
500
500
  },
501
501
  {
502
502
  label: e.t("sheet.cf.menu.clearWorkSheetRules"),
503
- value: De.clearWorkSheetRules
503
+ value: Pe.clearWorkSheetRules
504
504
  }
505
505
  ];
506
506
  }
507
507
  var Ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
508
- function Ur(e) {
508
+ function qr(e) {
509
509
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
510
510
  }
511
511
  function il(e) {
@@ -529,7 +529,7 @@ function il(e) {
529
529
  });
530
530
  }), n;
531
531
  }
532
- var Ii = { exports: {} }, Hn = {};
532
+ var Ii = { exports: {} }, kn = {};
533
533
  /**
534
534
  * @license React
535
535
  * react-jsx-runtime.production.min.js
@@ -539,7 +539,7 @@ var Ii = { exports: {} }, Hn = {};
539
539
  * This source code is licensed under the MIT license found in the
540
540
  * LICENSE file in the root directory of this source tree.
541
541
  */
542
- var al = Ve, sl = Symbol.for("react.element"), ll = Symbol.for("react.fragment"), cl = Object.prototype.hasOwnProperty, ul = al.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, dl = { key: !0, ref: !0, __self: !0, __source: !0 };
542
+ var al = ze, sl = Symbol.for("react.element"), ll = Symbol.for("react.fragment"), cl = Object.prototype.hasOwnProperty, ul = al.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, dl = { key: !0, ref: !0, __self: !0, __source: !0 };
543
543
  function Ei(e, t, n) {
544
544
  var r, o = {}, i = null, a = null;
545
545
  n !== void 0 && (i = "" + n), t.key !== void 0 && (i = "" + t.key), t.ref !== void 0 && (a = t.ref);
@@ -550,10 +550,10 @@ function Ei(e, t, n) {
550
550
  o[r] === void 0 && (o[r] = t[r]);
551
551
  return { $$typeof: sl, type: e, key: i, ref: a, props: o, _owner: ul.current };
552
552
  }
553
- Hn.Fragment = ll;
554
- Hn.jsx = Ei;
555
- Hn.jsxs = Ei;
556
- Ii.exports = Hn;
553
+ kn.Fragment = ll;
554
+ kn.jsx = Ei;
555
+ kn.jsxs = Ei;
556
+ Ii.exports = kn;
557
557
  var f = Ii.exports;
558
558
  const fl = "univer-conditional-formatting-wrap", hl = "univer-cf-rule-item", pl = "univer-preview", gl = "univer-create-rule", ml = "univer-button", vl = "univer-title", yl = "univer-label", bl = "univer-label-container", Sl = "univer-input-width", Cl = "univer-m-t-base", wl = "univer-m-t-sm", _l = "univer-m-t-xl", xl = "univer-m-l-sm", Rl = "univer-m-l-xl", Tl = "univer-m-l-xxs", Il = "univer-m-l-0", El = "univer-m-r-0", E = {
559
559
  conditionalFormattingWrap: fl,
@@ -579,43 +579,43 @@ var Oi = { exports: {} }, pn = {}, _r = { exports: {} };
579
579
  (function(n, r) {
580
580
  r(t);
581
581
  })(Ke, function(n) {
582
- function r(P) {
582
+ function r(D) {
583
583
  return function(Q, K, Z, se, pe, Ne, le) {
584
- return P(Q, K, le);
584
+ return D(Q, K, le);
585
585
  };
586
586
  }
587
- function o(P) {
587
+ function o(D) {
588
588
  return function(Q, K, Z, se) {
589
589
  if (!Q || !K || typeof Q != "object" || typeof K != "object")
590
- return P(Q, K, Z, se);
590
+ return D(Q, K, Z, se);
591
591
  var pe = se.get(Q), Ne = se.get(K);
592
592
  if (pe && Ne)
593
593
  return pe === K && Ne === Q;
594
594
  se.set(Q, K), se.set(K, Q);
595
- var le = P(Q, K, Z, se);
595
+ var le = D(Q, K, Z, se);
596
596
  return se.delete(Q), se.delete(K), le;
597
597
  };
598
598
  }
599
- function i(P, k) {
599
+ function i(D, H) {
600
600
  var Q = {};
601
- for (var K in P)
602
- Q[K] = P[K];
603
- for (var K in k)
604
- Q[K] = k[K];
601
+ for (var K in D)
602
+ Q[K] = D[K];
603
+ for (var K in H)
604
+ Q[K] = H[K];
605
605
  return Q;
606
606
  }
607
- function a(P) {
608
- return P.constructor === Object || P.constructor == null;
607
+ function a(D) {
608
+ return D.constructor === Object || D.constructor == null;
609
609
  }
610
- function l(P) {
611
- return typeof P.then == "function";
610
+ function l(D) {
611
+ return typeof D.then == "function";
612
612
  }
613
- function s(P, k) {
614
- return P === k || P !== P && k !== k;
613
+ function s(D, H) {
614
+ return D === H || D !== D && H !== H;
615
615
  }
616
616
  var c = "[object Arguments]", u = "[object Boolean]", h = "[object Date]", d = "[object RegExp]", g = "[object Map]", m = "[object Number]", b = "[object Object]", x = "[object Set]", w = "[object String]", y = Object.prototype.toString;
617
- function v(P) {
618
- var k = P.areArraysEqual, Q = P.areDatesEqual, K = P.areMapsEqual, Z = P.areObjectsEqual, se = P.areRegExpsEqual, pe = P.areSetsEqual, Ne = P.createIsNestedEqual, le = Ne(We);
617
+ function v(D) {
618
+ var H = D.areArraysEqual, Q = D.areDatesEqual, K = D.areMapsEqual, Z = D.areObjectsEqual, se = D.areRegExpsEqual, pe = D.areSetsEqual, Ne = D.createIsNestedEqual, le = Ne(We);
619
619
  function We(ie, ce, Ae) {
620
620
  if (ie === ce)
621
621
  return !0;
@@ -625,73 +625,73 @@ var Oi = { exports: {} }, pn = {}, _r = { exports: {} };
625
625
  return Z(ie, ce, le, Ae);
626
626
  var wo = Array.isArray(ie), _o = Array.isArray(ce);
627
627
  if (wo || _o)
628
- return wo === _o && k(ie, ce, le, Ae);
628
+ return wo === _o && H(ie, ce, le, Ae);
629
629
  var Fe = y.call(ie);
630
630
  return Fe !== y.call(ce) ? !1 : Fe === h ? Q(ie, ce, le, Ae) : Fe === d ? se(ie, ce, le, Ae) : Fe === g ? K(ie, ce, le, Ae) : Fe === x ? pe(ie, ce, le, Ae) : Fe === b || Fe === c ? l(ie) || l(ce) ? !1 : Z(ie, ce, le, Ae) : Fe === u || Fe === m || Fe === w ? s(ie.valueOf(), ce.valueOf()) : !1;
631
631
  }
632
632
  return We;
633
633
  }
634
- function C(P, k, Q, K) {
635
- var Z = P.length;
636
- if (k.length !== Z)
634
+ function C(D, H, Q, K) {
635
+ var Z = D.length;
636
+ if (H.length !== Z)
637
637
  return !1;
638
638
  for (; Z-- > 0; )
639
- if (!Q(P[Z], k[Z], Z, Z, P, k, K))
639
+ if (!Q(D[Z], H[Z], Z, Z, D, H, K))
640
640
  return !1;
641
641
  return !0;
642
642
  }
643
643
  var p = o(C);
644
- function R(P, k) {
645
- return s(P.valueOf(), k.valueOf());
644
+ function R(D, H) {
645
+ return s(D.valueOf(), H.valueOf());
646
646
  }
647
- function I(P, k, Q, K) {
648
- var Z = P.size === k.size;
647
+ function I(D, H, Q, K) {
648
+ var Z = D.size === H.size;
649
649
  if (!Z)
650
650
  return !1;
651
- if (!P.size)
651
+ if (!D.size)
652
652
  return !0;
653
653
  var se = {}, pe = 0;
654
- return P.forEach(function(Ne, le) {
654
+ return D.forEach(function(Ne, le) {
655
655
  if (Z) {
656
656
  var We = !1, ie = 0;
657
- k.forEach(function(ce, Ae) {
658
- !We && !se[ie] && (We = Q(le, Ae, pe, ie, P, k, K) && Q(Ne, ce, le, Ae, P, k, K)) && (se[ie] = !0), ie++;
657
+ H.forEach(function(ce, Ae) {
658
+ !We && !se[ie] && (We = Q(le, Ae, pe, ie, D, H, K) && Q(Ne, ce, le, Ae, D, H, K)) && (se[ie] = !0), ie++;
659
659
  }), pe++, Z = We;
660
660
  }
661
661
  }), Z;
662
662
  }
663
- var _ = o(I), D = "_owner", M = Object.prototype.hasOwnProperty;
664
- function L(P, k, Q, K) {
665
- var Z = Object.keys(P), se = Z.length;
666
- if (Object.keys(k).length !== se)
663
+ var _ = o(I), P = "_owner", M = Object.prototype.hasOwnProperty;
664
+ function L(D, H, Q, K) {
665
+ var Z = Object.keys(D), se = Z.length;
666
+ if (Object.keys(H).length !== se)
667
667
  return !1;
668
668
  for (var pe; se-- > 0; ) {
669
- if (pe = Z[se], pe === D) {
670
- var Ne = !!P.$$typeof, le = !!k.$$typeof;
669
+ if (pe = Z[se], pe === P) {
670
+ var Ne = !!D.$$typeof, le = !!H.$$typeof;
671
671
  if ((Ne || le) && Ne !== le)
672
672
  return !1;
673
673
  }
674
- if (!M.call(k, pe) || !Q(P[pe], k[pe], pe, pe, P, k, K))
674
+ if (!M.call(H, pe) || !Q(D[pe], H[pe], pe, pe, D, H, K))
675
675
  return !1;
676
676
  }
677
677
  return !0;
678
678
  }
679
- var q = o(L);
680
- function S(P, k) {
681
- return P.source === k.source && P.flags === k.flags;
679
+ var U = o(L);
680
+ function S(D, H) {
681
+ return D.source === H.source && D.flags === H.flags;
682
682
  }
683
- function T(P, k, Q, K) {
684
- var Z = P.size === k.size;
683
+ function T(D, H, Q, K) {
684
+ var Z = D.size === H.size;
685
685
  if (!Z)
686
686
  return !1;
687
- if (!P.size)
687
+ if (!D.size)
688
688
  return !0;
689
689
  var se = {};
690
- return P.forEach(function(pe, Ne) {
690
+ return D.forEach(function(pe, Ne) {
691
691
  if (Z) {
692
692
  var le = !1, We = 0;
693
- k.forEach(function(ie, ce) {
694
- !le && !se[We] && (le = Q(pe, ie, Ne, ce, P, k, K)) && (se[We] = !0), We++;
693
+ H.forEach(function(ie, ce) {
694
+ !le && !se[We] && (le = Q(pe, ie, Ne, ce, D, H, K)) && (se[We] = !0), We++;
695
695
  }), Z = le;
696
696
  }
697
697
  }), Z;
@@ -704,85 +704,85 @@ var Oi = { exports: {} }, pn = {}, _r = { exports: {} };
704
704
  areRegExpsEqual: S,
705
705
  areSetsEqual: T,
706
706
  createIsNestedEqual: r
707
- }), z = Object.freeze({
707
+ }), V = Object.freeze({
708
708
  areArraysEqual: p,
709
709
  areDatesEqual: R,
710
710
  areMapsEqual: _,
711
- areObjectsEqual: q,
711
+ areObjectsEqual: U,
712
712
  areRegExpsEqual: S,
713
713
  areSetsEqual: J,
714
714
  createIsNestedEqual: r
715
715
  }), G = v(xe);
716
- function re(P, k) {
717
- return G(P, k, void 0);
716
+ function re(D, H) {
717
+ return G(D, H, void 0);
718
718
  }
719
719
  var fe = v(i(xe, { createIsNestedEqual: function() {
720
720
  return s;
721
721
  } }));
722
- function ye(P, k) {
723
- return fe(P, k, void 0);
722
+ function ye(D, H) {
723
+ return fe(D, H, void 0);
724
724
  }
725
- var Re = v(z);
726
- function Te(P, k) {
727
- return Re(P, k, /* @__PURE__ */ new WeakMap());
725
+ var Re = v(V);
726
+ function Te(D, H) {
727
+ return Re(D, H, /* @__PURE__ */ new WeakMap());
728
728
  }
729
- var ke = v(i(z, {
729
+ var He = v(i(V, {
730
730
  createIsNestedEqual: function() {
731
731
  return s;
732
732
  }
733
733
  }));
734
- function ut(P, k) {
735
- return ke(P, k, /* @__PURE__ */ new WeakMap());
734
+ function dt(D, H) {
735
+ return He(D, H, /* @__PURE__ */ new WeakMap());
736
736
  }
737
- function Yt(P) {
738
- return v(i(xe, P(xe)));
737
+ function Kt(D) {
738
+ return v(i(xe, D(xe)));
739
739
  }
740
- function La(P) {
741
- var k = v(i(z, P(z)));
740
+ function La(D) {
741
+ var H = v(i(V, D(V)));
742
742
  return function(Q, K, Z) {
743
- return Z === void 0 && (Z = /* @__PURE__ */ new WeakMap()), k(Q, K, Z);
743
+ return Z === void 0 && (Z = /* @__PURE__ */ new WeakMap()), H(Q, K, Z);
744
744
  };
745
745
  }
746
- n.circularDeepEqual = Te, n.circularShallowEqual = ut, n.createCustomCircularEqual = La, n.createCustomEqual = Yt, n.deepEqual = re, n.sameValueZeroEqual = s, n.shallowEqual = ye, Object.defineProperty(n, "__esModule", { value: !0 });
746
+ n.circularDeepEqual = Te, n.circularShallowEqual = dt, n.createCustomCircularEqual = La, n.createCustomEqual = Kt, n.deepEqual = re, n.sameValueZeroEqual = s, n.shallowEqual = ye, Object.defineProperty(n, "__esModule", { value: !0 });
747
747
  });
748
748
  })(_r, _r.exports);
749
- var qr = _r.exports, U = {}, Ol = function(t, n, r) {
749
+ var Ur = _r.exports, q = {}, Ol = function(t, n, r) {
750
750
  return t === n ? !0 : t.className === n.className && r(t.style, n.style) && t.width === n.width && t.autoSize === n.autoSize && t.cols === n.cols && t.draggableCancel === n.draggableCancel && t.draggableHandle === n.draggableHandle && r(t.verticalCompact, n.verticalCompact) && r(t.compactType, n.compactType) && r(t.layout, n.layout) && r(t.margin, n.margin) && r(t.containerPadding, n.containerPadding) && t.rowHeight === n.rowHeight && t.maxRows === n.maxRows && t.isBounded === n.isBounded && t.isDraggable === n.isDraggable && t.isResizable === n.isResizable && t.allowOverlap === n.allowOverlap && t.preventCollision === n.preventCollision && t.useCSSTransforms === n.useCSSTransforms && t.transformScale === n.transformScale && t.isDroppable === n.isDroppable && r(t.resizeHandles, n.resizeHandles) && r(t.resizeHandle, n.resizeHandle) && t.onLayoutChange === n.onLayoutChange && t.onDragStart === n.onDragStart && t.onDrag === n.onDrag && t.onDragStop === n.onDragStop && t.onResizeStart === n.onResizeStart && t.onResize === n.onResize && t.onResizeStop === n.onResizeStop && t.onDrop === n.onDrop && r(t.droppingItem, n.droppingItem) && r(t.innerRef, n.innerRef);
751
751
  };
752
- Object.defineProperty(U, "__esModule", {
752
+ Object.defineProperty(q, "__esModule", {
753
753
  value: !0
754
754
  });
755
- U.bottom = Br;
756
- U.childrenEqual = Ml;
757
- U.cloneLayout = Pi;
758
- U.cloneLayoutItem = Ct;
759
- U.collides = kn;
760
- U.compact = Mi;
761
- U.compactItem = $i;
762
- U.compactType = Bl;
763
- U.correctBounds = Ni;
764
- U.fastPositionEqual = $l;
765
- U.fastRGLPropsEqual = void 0;
766
- U.getAllCollisions = ji;
767
- U.getFirstCollision = vt;
768
- U.getLayoutItem = Gr;
769
- U.getStatics = Xr;
770
- U.modifyLayout = Di;
771
- U.moveElement = an;
772
- U.moveElementAwayFromCollision = Rr;
773
- U.noop = void 0;
774
- U.perc = jl;
775
- U.resizeItemInDirection = Wl;
776
- U.setTopLeft = Fl;
777
- U.setTransform = Al;
778
- U.sortLayoutItems = eo;
779
- U.sortLayoutItemsByColRow = ki;
780
- U.sortLayoutItemsByRowCol = Hi;
781
- U.synchronizeLayoutWithChildren = Ul;
782
- U.validateLayout = ql;
783
- U.withLayoutItem = Dl;
784
- var Mo = qr, on = Pl(Ve);
785
- function Pl(e) {
755
+ q.bottom = Br;
756
+ q.childrenEqual = Ml;
757
+ q.cloneLayout = Di;
758
+ q.cloneLayoutItem = Ct;
759
+ q.collides = Hn;
760
+ q.compact = Mi;
761
+ q.compactItem = $i;
762
+ q.compactType = Bl;
763
+ q.correctBounds = Ni;
764
+ q.fastPositionEqual = $l;
765
+ q.fastRGLPropsEqual = void 0;
766
+ q.getAllCollisions = ji;
767
+ q.getFirstCollision = vt;
768
+ q.getLayoutItem = Gr;
769
+ q.getStatics = Xr;
770
+ q.modifyLayout = Pi;
771
+ q.moveElement = an;
772
+ q.moveElementAwayFromCollision = Rr;
773
+ q.noop = void 0;
774
+ q.perc = jl;
775
+ q.resizeItemInDirection = Wl;
776
+ q.setTopLeft = Fl;
777
+ q.setTransform = Al;
778
+ q.sortLayoutItems = eo;
779
+ q.sortLayoutItemsByColRow = Hi;
780
+ q.sortLayoutItemsByRowCol = ki;
781
+ q.synchronizeLayoutWithChildren = ql;
782
+ q.validateLayout = Ul;
783
+ q.withLayoutItem = Pl;
784
+ var Mo = Ur, on = Dl(ze);
785
+ function Dl(e) {
786
786
  return e && e.__esModule ? e : { default: e };
787
787
  }
788
788
  function Br(e) {
@@ -791,21 +791,21 @@ function Br(e) {
791
791
  n = e[r].y + e[r].h, n > t && (t = n);
792
792
  return t;
793
793
  }
794
- function Pi(e) {
794
+ function Di(e) {
795
795
  const t = Array(e.length);
796
796
  for (let n = 0, r = e.length; n < r; n++)
797
797
  t[n] = Ct(e[n]);
798
798
  return t;
799
799
  }
800
- function Di(e, t) {
800
+ function Pi(e, t) {
801
801
  const n = Array(e.length);
802
802
  for (let r = 0, o = e.length; r < o; r++)
803
803
  t.i === e[r].i ? n[r] = t : n[r] = e[r];
804
804
  return n;
805
805
  }
806
- function Dl(e, t, n) {
806
+ function Pl(e, t, n) {
807
807
  let r = Gr(e, t);
808
- return r ? (r = n(Ct(r)), e = Di(e, r), [e, r]) : [e, null];
808
+ return r ? (r = n(Ct(r)), e = Pi(e, r), [e, r]) : [e, null];
809
809
  }
810
810
  function Ct(e) {
811
811
  return {
@@ -830,11 +830,11 @@ function Ct(e) {
830
830
  function Ml(e, t) {
831
831
  return (0, Mo.deepEqual)(on.default.Children.map(e, (n) => n == null ? void 0 : n.key), on.default.Children.map(t, (n) => n == null ? void 0 : n.key)) && (0, Mo.deepEqual)(on.default.Children.map(e, (n) => n == null ? void 0 : n.props["data-grid"]), on.default.Children.map(t, (n) => n == null ? void 0 : n.props["data-grid"]));
832
832
  }
833
- U.fastRGLPropsEqual = Ol;
833
+ q.fastRGLPropsEqual = Ol;
834
834
  function $l(e, t) {
835
835
  return e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height;
836
836
  }
837
- function kn(e, t) {
837
+ function Hn(e, t) {
838
838
  return !(e.i === t.i || e.x + e.w <= t.x || e.x >= t.x + t.w || e.y + e.h <= t.y || e.y >= t.y + t.h);
839
839
  }
840
840
  function Mi(e, t, n, r) {
@@ -858,7 +858,7 @@ function xr(e, t, n, r) {
858
858
  if (!l.static) {
859
859
  if (l.y > t.y + t.h)
860
860
  break;
861
- kn(t, l) && xr(e, l, n + t[o], r);
861
+ Hn(t, l) && xr(e, l, n + t[o], r);
862
862
  }
863
863
  }
864
864
  t[r] = n;
@@ -897,11 +897,11 @@ function Gr(e, t) {
897
897
  }
898
898
  function vt(e, t) {
899
899
  for (let n = 0, r = e.length; n < r; n++)
900
- if (kn(e[n], t))
900
+ if (Hn(e[n], t))
901
901
  return e[n];
902
902
  }
903
903
  function ji(e, t) {
904
- return e.filter((n) => kn(n, t));
904
+ return e.filter((n) => Hn(n, t));
905
905
  }
906
906
  function Xr(e) {
907
907
  return e.filter((t) => t.static);
@@ -916,7 +916,7 @@ function an(e, t, n, r, o, i, a, l, s) {
916
916
  (a === "vertical" && typeof r == "number" ? u >= r : a === "horizontal" && typeof n == "number" ? c >= n : !1) && (h = h.reverse());
917
917
  const g = ji(h, t), m = g.length > 0;
918
918
  if (m && s)
919
- return Pi(e);
919
+ return Di(e);
920
920
  if (m && i)
921
921
  return `${t.i}`, t.x = c, t.y = u, t.moved = !1, e;
922
922
  for (let b = 0, x = g.length; b < x; b++) {
@@ -952,7 +952,7 @@ function Rr(e, t, n, r, o, i) {
952
952
  function jl(e) {
953
953
  return e * 100 + "%";
954
954
  }
955
- const Li = (e, t, n, r) => e + n > r ? t : n, zi = (e, t, n) => e < 0 ? t : n, Vi = (e) => Math.max(0, e), Yr = (e) => Math.max(0, e), Kr = (e, t, n) => {
955
+ const Li = (e, t, n, r) => e + n > r ? t : n, Vi = (e, t, n) => e < 0 ? t : n, zi = (e) => Math.max(0, e), Yr = (e) => Math.max(0, e), Kr = (e, t, n) => {
956
956
  let {
957
957
  left: r,
958
958
  height: o,
@@ -962,7 +962,7 @@ const Li = (e, t, n, r) => e + n > r ? t : n, zi = (e, t, n) => e < 0 ? t : n, V
962
962
  return {
963
963
  left: r,
964
964
  width: i,
965
- height: zi(a, e.height, o),
965
+ height: Vi(a, e.height, o),
966
966
  top: Yr(a)
967
967
  };
968
968
  }, Zr = (e, t, n) => {
@@ -976,7 +976,7 @@ const Li = (e, t, n, r) => e + n > r ? t : n, zi = (e, t, n) => e < 0 ? t : n, V
976
976
  top: r,
977
977
  height: i,
978
978
  width: Li(e.left, e.width, a, n),
979
- left: Vi(o)
979
+ left: zi(o)
980
980
  };
981
981
  }, Jr = (e, t, n) => {
982
982
  let {
@@ -989,7 +989,7 @@ const Li = (e, t, n, r) => e + n > r ? t : n, zi = (e, t, n) => e < 0 ? t : n, V
989
989
  height: o,
990
990
  width: a < 0 ? e.width : Li(e.left, e.width, i, n),
991
991
  top: Yr(r),
992
- left: Vi(a)
992
+ left: zi(a)
993
993
  };
994
994
  }, Qr = (e, t, n) => {
995
995
  let {
@@ -1001,29 +1001,29 @@ const Li = (e, t, n, r) => e + n > r ? t : n, zi = (e, t, n) => e < 0 ? t : n, V
1001
1001
  return {
1002
1002
  width: a,
1003
1003
  left: o,
1004
- height: zi(r, e.height, i),
1004
+ height: Vi(r, e.height, i),
1005
1005
  top: Yr(r)
1006
1006
  };
1007
1007
  }, Ll = function() {
1008
1008
  return Kr(arguments.length <= 0 ? void 0 : arguments[0], Zr(...arguments));
1009
- }, zl = function() {
1010
- return Kr(arguments.length <= 0 ? void 0 : arguments[0], Jr(...arguments));
1011
1009
  }, Vl = function() {
1010
+ return Kr(arguments.length <= 0 ? void 0 : arguments[0], Jr(...arguments));
1011
+ }, zl = function() {
1012
1012
  return Qr(arguments.length <= 0 ? void 0 : arguments[0], Zr(...arguments));
1013
- }, Hl = function() {
1013
+ }, kl = function() {
1014
1014
  return Qr(arguments.length <= 0 ? void 0 : arguments[0], Jr(...arguments));
1015
- }, kl = {
1015
+ }, Hl = {
1016
1016
  n: Kr,
1017
1017
  ne: Ll,
1018
1018
  e: Zr,
1019
- se: Vl,
1019
+ se: zl,
1020
1020
  s: Qr,
1021
- sw: Hl,
1021
+ sw: kl,
1022
1022
  w: Jr,
1023
- nw: zl
1023
+ nw: Vl
1024
1024
  };
1025
1025
  function Wl(e, t, n, r) {
1026
- const o = kl[e];
1026
+ const o = Hl[e];
1027
1027
  return o ? o(t, {
1028
1028
  ...t,
1029
1029
  ...n
@@ -1064,19 +1064,19 @@ function Fl(e) {
1064
1064
  };
1065
1065
  }
1066
1066
  function eo(e, t) {
1067
- return t === "horizontal" ? ki(e) : t === "vertical" ? Hi(e) : e;
1067
+ return t === "horizontal" ? Hi(e) : t === "vertical" ? ki(e) : e;
1068
1068
  }
1069
- function Hi(e) {
1069
+ function ki(e) {
1070
1070
  return e.slice(0).sort(function(t, n) {
1071
1071
  return t.y > n.y || t.y === n.y && t.x > n.x ? 1 : t.y === n.y && t.x === n.x ? 0 : -1;
1072
1072
  });
1073
1073
  }
1074
- function ki(e) {
1074
+ function Hi(e) {
1075
1075
  return e.slice(0).sort(function(t, n) {
1076
1076
  return t.x > n.x || t.x === n.x && t.y > n.y ? 1 : -1;
1077
1077
  });
1078
1078
  }
1079
- function Ul(e, t, n, r, o) {
1079
+ function ql(e, t, n, r, o) {
1080
1080
  e = e || [];
1081
1081
  const i = [];
1082
1082
  on.default.Children.forEach(t, (l) => {
@@ -1099,7 +1099,7 @@ function Ul(e, t, n, r, o) {
1099
1099
  });
1100
1100
  return o ? a : Mi(a, r, n);
1101
1101
  }
1102
- function ql(e) {
1102
+ function Ul(e) {
1103
1103
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout";
1104
1104
  const n = ["x", "y", "w", "h"];
1105
1105
  if (!Array.isArray(e))
@@ -1120,7 +1120,7 @@ function Bl(e) {
1120
1120
  }
1121
1121
  const Gl = () => {
1122
1122
  };
1123
- U.noop = Gl;
1123
+ q.noop = Gl;
1124
1124
  var Be = {};
1125
1125
  Object.defineProperty(Be, "__esModule", {
1126
1126
  value: !0
@@ -1225,7 +1225,7 @@ var ec = function() {
1225
1225
  return n.PropTypes = n, n;
1226
1226
  };
1227
1227
  Wi.exports = ec();
1228
- var ct = Wi.exports, Fn = { exports: {} }, Ui = {}, ae = {}, Ge = {};
1228
+ var ut = Wi.exports, Fn = { exports: {} }, qi = {}, ae = {}, Ge = {};
1229
1229
  Object.defineProperty(Ge, "__esModule", {
1230
1230
  value: !0
1231
1231
  });
@@ -1259,9 +1259,9 @@ Object.defineProperty(Et, "__esModule", {
1259
1259
  Et.browserPrefixToKey = Bi;
1260
1260
  Et.browserPrefixToStyle = ac;
1261
1261
  Et.default = void 0;
1262
- Et.getPrefix = qi;
1262
+ Et.getPrefix = Ui;
1263
1263
  const lr = ["Moz", "Webkit", "O", "ms"];
1264
- function qi() {
1264
+ function Ui() {
1265
1265
  var e;
1266
1266
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
1267
1267
  if (typeof window > "u")
@@ -1286,7 +1286,7 @@ function sc(e) {
1286
1286
  n ? (t += e[r].toUpperCase(), n = !1) : e[r] === "-" ? n = !0 : t += e[r];
1287
1287
  return t;
1288
1288
  }
1289
- Et.default = qi();
1289
+ Et.default = Ui();
1290
1290
  Object.defineProperty(ae, "__esModule", {
1291
1291
  value: !0
1292
1292
  });
@@ -1464,14 +1464,14 @@ Xe.createDraggableData = Oc;
1464
1464
  Xe.getBoundPosition = _c;
1465
1465
  Xe.getControlPosition = Ic;
1466
1466
  Xe.snapToGrid = xc;
1467
- var Pe = Ge, Lt = ae;
1467
+ var De = Ge, Vt = ae;
1468
1468
  function _c(e, t, n) {
1469
1469
  if (!e.props.bounds)
1470
1470
  return [t, n];
1471
1471
  let {
1472
1472
  bounds: r
1473
1473
  } = e.props;
1474
- r = typeof r == "string" ? r : Pc(r);
1474
+ r = typeof r == "string" ? r : Dc(r);
1475
1475
  const o = no(e);
1476
1476
  if (typeof r == "string") {
1477
1477
  const {
@@ -1482,13 +1482,13 @@ function _c(e, t, n) {
1482
1482
  throw new Error('Bounds selector "' + r + '" could not find an element.');
1483
1483
  const s = l, c = a.getComputedStyle(o), u = a.getComputedStyle(s);
1484
1484
  r = {
1485
- left: -o.offsetLeft + (0, Pe.int)(u.paddingLeft) + (0, Pe.int)(c.marginLeft),
1486
- top: -o.offsetTop + (0, Pe.int)(u.paddingTop) + (0, Pe.int)(c.marginTop),
1487
- right: (0, Lt.innerWidth)(s) - (0, Lt.outerWidth)(o) - o.offsetLeft + (0, Pe.int)(u.paddingRight) - (0, Pe.int)(c.marginRight),
1488
- bottom: (0, Lt.innerHeight)(s) - (0, Lt.outerHeight)(o) - o.offsetTop + (0, Pe.int)(u.paddingBottom) - (0, Pe.int)(c.marginBottom)
1485
+ left: -o.offsetLeft + (0, De.int)(u.paddingLeft) + (0, De.int)(c.marginLeft),
1486
+ top: -o.offsetTop + (0, De.int)(u.paddingTop) + (0, De.int)(c.marginTop),
1487
+ right: (0, Vt.innerWidth)(s) - (0, Vt.outerWidth)(o) - o.offsetLeft + (0, De.int)(u.paddingRight) - (0, De.int)(c.marginRight),
1488
+ bottom: (0, Vt.innerHeight)(s) - (0, Vt.outerHeight)(o) - o.offsetTop + (0, De.int)(u.paddingBottom) - (0, De.int)(c.marginBottom)
1489
1489
  };
1490
1490
  }
1491
- return (0, Pe.isNum)(r.right) && (t = Math.min(t, r.right)), (0, Pe.isNum)(r.bottom) && (n = Math.min(n, r.bottom)), (0, Pe.isNum)(r.left) && (t = Math.max(t, r.left)), (0, Pe.isNum)(r.top) && (n = Math.max(n, r.top)), [t, n];
1491
+ return (0, De.isNum)(r.right) && (t = Math.min(t, r.right)), (0, De.isNum)(r.bottom) && (n = Math.min(n, r.bottom)), (0, De.isNum)(r.left) && (t = Math.max(t, r.left)), (0, De.isNum)(r.top) && (n = Math.max(n, r.top)), [t, n];
1492
1492
  }
1493
1493
  function xc(e, t, n) {
1494
1494
  const r = Math.round(t / e[0]) * e[0], o = Math.round(n / e[1]) * e[1];
@@ -1501,14 +1501,14 @@ function Tc(e) {
1501
1501
  return e.props.axis === "both" || e.props.axis === "y";
1502
1502
  }
1503
1503
  function Ic(e, t, n) {
1504
- const r = typeof t == "number" ? (0, Lt.getTouch)(e, t) : null;
1504
+ const r = typeof t == "number" ? (0, Vt.getTouch)(e, t) : null;
1505
1505
  if (typeof t == "number" && !r)
1506
1506
  return null;
1507
1507
  const o = no(n), i = n.props.offsetParent || o.offsetParent || o.ownerDocument.body;
1508
- return (0, Lt.offsetXYFromParent)(r || e, i, n.props.scale);
1508
+ return (0, Vt.offsetXYFromParent)(r || e, i, n.props.scale);
1509
1509
  }
1510
1510
  function Ec(e, t, n) {
1511
- const r = !(0, Pe.isNum)(e.lastX), o = no(e);
1511
+ const r = !(0, De.isNum)(e.lastX), o = no(e);
1512
1512
  return r ? {
1513
1513
  node: o,
1514
1514
  deltaX: 0,
@@ -1539,7 +1539,7 @@ function Oc(e, t) {
1539
1539
  lastY: e.state.y
1540
1540
  };
1541
1541
  }
1542
- function Pc(e) {
1542
+ function Dc(e) {
1543
1543
  return {
1544
1544
  left: e.left,
1545
1545
  top: e.top,
@@ -1553,18 +1553,18 @@ function no(e) {
1553
1553
  throw new Error("<DraggableCore>: Unmounted during event!");
1554
1554
  return t;
1555
1555
  }
1556
- var Un = {}, qn = {};
1557
- Object.defineProperty(qn, "__esModule", {
1556
+ var qn = {}, Un = {};
1557
+ Object.defineProperty(Un, "__esModule", {
1558
1558
  value: !0
1559
1559
  });
1560
- qn.default = Dc;
1561
- function Dc() {
1560
+ Un.default = Pc;
1561
+ function Pc() {
1562
1562
  }
1563
- Object.defineProperty(Un, "__esModule", {
1563
+ Object.defineProperty(qn, "__esModule", {
1564
1564
  value: !0
1565
1565
  });
1566
- Un.default = void 0;
1567
- var cr = $c(Ve), Ie = ro(ct), Mc = ro(mi), be = ae, et = Xe, ur = Ge, Kt = ro(qn);
1566
+ qn.default = void 0;
1567
+ var cr = $c(ze), Ie = ro(ut), Mc = ro(mi), be = ae, tt = Xe, ur = Ge, Zt = ro(Un);
1568
1568
  function ro(e) {
1569
1569
  return e && e.__esModule ? e : { default: e };
1570
1570
  }
@@ -1611,7 +1611,7 @@ function jc(e, t) {
1611
1611
  }
1612
1612
  return (t === "string" ? String : Number)(e);
1613
1613
  }
1614
- const He = {
1614
+ const ke = {
1615
1615
  touch: {
1616
1616
  start: "touchstart",
1617
1617
  move: "touchmove",
@@ -1623,7 +1623,7 @@ const He = {
1623
1623
  stop: "mouseup"
1624
1624
  }
1625
1625
  };
1626
- let tt = He.mouse, Bn = class extends cr.Component {
1626
+ let nt = ke.mouse, Bn = class extends cr.Component {
1627
1627
  constructor() {
1628
1628
  super(...arguments), we(this, "dragging", !1), we(this, "lastX", NaN), we(this, "lastY", NaN), we(this, "touchIdentifier", null), we(this, "mounted", !1), we(this, "handleDragStart", (t) => {
1629
1629
  if (this.props.onMouseDown(t), !this.props.allowAnyClick && typeof t.button == "number" && t.button !== 0)
@@ -1639,16 +1639,16 @@ let tt = He.mouse, Bn = class extends cr.Component {
1639
1639
  t.type === "touchstart" && t.preventDefault();
1640
1640
  const o = (0, be.getTouchIdentifier)(t);
1641
1641
  this.touchIdentifier = o;
1642
- const i = (0, et.getControlPosition)(t, o, this);
1642
+ const i = (0, tt.getControlPosition)(t, o, this);
1643
1643
  if (i == null)
1644
1644
  return;
1645
1645
  const {
1646
1646
  x: a,
1647
1647
  y: l
1648
- } = i, s = (0, et.createCoreData)(this, a, l);
1649
- (0, Kt.default)("DraggableCore: handleDragStart: %j", s), (0, Kt.default)("calling", this.props.onStart), !(this.props.onStart(t, s) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, be.addUserSelectStyles)(r), this.dragging = !0, this.lastX = a, this.lastY = l, (0, be.addEvent)(r, tt.move, this.handleDrag), (0, be.addEvent)(r, tt.stop, this.handleDragStop));
1648
+ } = i, s = (0, tt.createCoreData)(this, a, l);
1649
+ (0, Zt.default)("DraggableCore: handleDragStart: %j", s), (0, Zt.default)("calling", this.props.onStart), !(this.props.onStart(t, s) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, be.addUserSelectStyles)(r), this.dragging = !0, this.lastX = a, this.lastY = l, (0, be.addEvent)(r, nt.move, this.handleDrag), (0, be.addEvent)(r, nt.stop, this.handleDragStop));
1650
1650
  }), we(this, "handleDrag", (t) => {
1651
- const n = (0, et.getControlPosition)(t, this.touchIdentifier, this);
1651
+ const n = (0, tt.getControlPosition)(t, this.touchIdentifier, this);
1652
1652
  if (n == null)
1653
1653
  return;
1654
1654
  let {
@@ -1657,12 +1657,12 @@ let tt = He.mouse, Bn = class extends cr.Component {
1657
1657
  } = n;
1658
1658
  if (Array.isArray(this.props.grid)) {
1659
1659
  let l = r - this.lastX, s = o - this.lastY;
1660
- if ([l, s] = (0, et.snapToGrid)(this.props.grid, l, s), !l && !s)
1660
+ if ([l, s] = (0, tt.snapToGrid)(this.props.grid, l, s), !l && !s)
1661
1661
  return;
1662
1662
  r = this.lastX + l, o = this.lastY + s;
1663
1663
  }
1664
- const i = (0, et.createCoreData)(this, r, o);
1665
- if ((0, Kt.default)("DraggableCore: handleDrag: %j", i), this.props.onDrag(t, i) === !1 || this.mounted === !1) {
1664
+ const i = (0, tt.createCoreData)(this, r, o);
1665
+ if ((0, Zt.default)("DraggableCore: handleDrag: %j", i), this.props.onDrag(t, i) === !1 || this.mounted === !1) {
1666
1666
  try {
1667
1667
  this.handleDragStop(new MouseEvent("mouseup"));
1668
1668
  } catch {
@@ -1675,7 +1675,7 @@ let tt = He.mouse, Bn = class extends cr.Component {
1675
1675
  }), we(this, "handleDragStop", (t) => {
1676
1676
  if (!this.dragging)
1677
1677
  return;
1678
- const n = (0, et.getControlPosition)(t, this.touchIdentifier, this);
1678
+ const n = (0, tt.getControlPosition)(t, this.touchIdentifier, this);
1679
1679
  if (n == null)
1680
1680
  return;
1681
1681
  let {
@@ -1684,19 +1684,19 @@ let tt = He.mouse, Bn = class extends cr.Component {
1684
1684
  } = n;
1685
1685
  if (Array.isArray(this.props.grid)) {
1686
1686
  let s = r - this.lastX || 0, c = o - this.lastY || 0;
1687
- [s, c] = (0, et.snapToGrid)(this.props.grid, s, c), r = this.lastX + s, o = this.lastY + c;
1687
+ [s, c] = (0, tt.snapToGrid)(this.props.grid, s, c), r = this.lastX + s, o = this.lastY + c;
1688
1688
  }
1689
- const i = (0, et.createCoreData)(this, r, o);
1689
+ const i = (0, tt.createCoreData)(this, r, o);
1690
1690
  if (this.props.onStop(t, i) === !1 || this.mounted === !1)
1691
1691
  return !1;
1692
1692
  const l = this.findDOMNode();
1693
- l && this.props.enableUserSelectHack && (0, be.removeUserSelectStyles)(l.ownerDocument), (0, Kt.default)("DraggableCore: handleDragStop: %j", i), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, l && ((0, Kt.default)("DraggableCore: Removing handlers"), (0, be.removeEvent)(l.ownerDocument, tt.move, this.handleDrag), (0, be.removeEvent)(l.ownerDocument, tt.stop, this.handleDragStop));
1694
- }), we(this, "onMouseDown", (t) => (tt = He.mouse, this.handleDragStart(t))), we(this, "onMouseUp", (t) => (tt = He.mouse, this.handleDragStop(t))), we(this, "onTouchStart", (t) => (tt = He.touch, this.handleDragStart(t))), we(this, "onTouchEnd", (t) => (tt = He.touch, this.handleDragStop(t)));
1693
+ l && this.props.enableUserSelectHack && (0, be.removeUserSelectStyles)(l.ownerDocument), (0, Zt.default)("DraggableCore: handleDragStop: %j", i), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, l && ((0, Zt.default)("DraggableCore: Removing handlers"), (0, be.removeEvent)(l.ownerDocument, nt.move, this.handleDrag), (0, be.removeEvent)(l.ownerDocument, nt.stop, this.handleDragStop));
1694
+ }), we(this, "onMouseDown", (t) => (nt = ke.mouse, this.handleDragStart(t))), we(this, "onMouseUp", (t) => (nt = ke.mouse, this.handleDragStop(t))), we(this, "onTouchStart", (t) => (nt = ke.touch, this.handleDragStart(t))), we(this, "onTouchEnd", (t) => (nt = ke.touch, this.handleDragStop(t)));
1695
1695
  }
1696
1696
  componentDidMount() {
1697
1697
  this.mounted = !0;
1698
1698
  const t = this.findDOMNode();
1699
- t && (0, be.addEvent)(t, He.touch.start, this.onTouchStart, {
1699
+ t && (0, be.addEvent)(t, ke.touch.start, this.onTouchStart, {
1700
1700
  passive: !1
1701
1701
  });
1702
1702
  }
@@ -1707,7 +1707,7 @@ let tt = He.mouse, Bn = class extends cr.Component {
1707
1707
  const {
1708
1708
  ownerDocument: n
1709
1709
  } = t;
1710
- (0, be.removeEvent)(n, He.mouse.move, this.handleDrag), (0, be.removeEvent)(n, He.touch.move, this.handleDrag), (0, be.removeEvent)(n, He.mouse.stop, this.handleDragStop), (0, be.removeEvent)(n, He.touch.stop, this.handleDragStop), (0, be.removeEvent)(t, He.touch.start, this.onTouchStart, {
1710
+ (0, be.removeEvent)(n, ke.mouse.move, this.handleDrag), (0, be.removeEvent)(n, ke.touch.move, this.handleDrag), (0, be.removeEvent)(n, ke.mouse.stop, this.handleDragStop), (0, be.removeEvent)(n, ke.touch.stop, this.handleDragStop), (0, be.removeEvent)(t, ke.touch.start, this.onTouchStart, {
1711
1711
  passive: !1
1712
1712
  }), this.props.enableUserSelectHack && (0, be.removeUserSelectStyles)(n);
1713
1713
  }
@@ -1731,7 +1731,7 @@ let tt = He.mouse, Bn = class extends cr.Component {
1731
1731
  });
1732
1732
  }
1733
1733
  };
1734
- Un.default = Bn;
1734
+ qn.default = Bn;
1735
1735
  we(Bn, "displayName", "DraggableCore");
1736
1736
  we(Bn, "propTypes", {
1737
1737
  /**
@@ -1880,7 +1880,7 @@ we(Bn, "defaultProps", {
1880
1880
  return s.default;
1881
1881
  }
1882
1882
  }), e.default = void 0;
1883
- var t = d(Ve), n = u(ct), r = u(mi), o = u(rt), i = ae, a = Xe, l = Ge, s = u(Un), c = u(qn);
1883
+ var t = d(ze), n = u(ut), r = u(mi), o = u(ot), i = ae, a = Xe, l = Ge, s = u(qn), c = u(Un);
1884
1884
  function u(y) {
1885
1885
  return y && y.__esModule ? y : { default: y };
1886
1886
  }
@@ -1977,12 +1977,12 @@ we(Bn, "defaultProps", {
1977
1977
  };
1978
1978
  if (this.props.bounds) {
1979
1979
  const {
1980
- x: D,
1980
+ x: P,
1981
1981
  y: M
1982
1982
  } = I;
1983
1983
  I.x += this.state.slackX, I.y += this.state.slackY;
1984
- const [L, q] = (0, a.getBoundPosition)(this, I.x, I.y);
1985
- I.x = L, I.y = q, I.slackX = this.state.slackX + (D - I.x), I.slackY = this.state.slackY + (M - I.y), R.x = I.x, R.y = I.y, R.deltaX = I.x - this.state.x, R.deltaY = I.y - this.state.y;
1984
+ const [L, U] = (0, a.getBoundPosition)(this, I.x, I.y);
1985
+ I.x = L, I.y = U, I.slackX = this.state.slackX + (P - I.x), I.slackY = this.state.slackY + (M - I.y), R.x = I.x, R.y = I.y, R.deltaX = I.x - this.state.x, R.deltaY = I.y - this.state.y;
1986
1986
  }
1987
1987
  if (this.props.onDrag(C, R) === !1)
1988
1988
  return !1;
@@ -1998,10 +1998,10 @@ we(Bn, "defaultProps", {
1998
1998
  };
1999
1999
  if (!!this.props.position) {
2000
2000
  const {
2001
- x: D,
2001
+ x: P,
2002
2002
  y: M
2003
2003
  } = this.props.position;
2004
- I.x = D, I.y = M;
2004
+ I.x = P, I.y = M;
2005
2005
  }
2006
2006
  this.setState(I);
2007
2007
  }), this.state = {
@@ -2046,23 +2046,23 @@ we(Bn, "defaultProps", {
2046
2046
  defaultPosition: R,
2047
2047
  defaultClassName: I,
2048
2048
  defaultClassNameDragging: _,
2049
- defaultClassNameDragged: D,
2049
+ defaultClassNameDragged: P,
2050
2050
  position: M,
2051
2051
  positionOffset: L,
2052
- scale: q,
2052
+ scale: U,
2053
2053
  ...S
2054
2054
  } = this.props;
2055
2055
  let T = {}, J = null;
2056
- const z = !!!M || this.state.dragging, G = M || R, re = {
2056
+ const V = !!!M || this.state.dragging, G = M || R, re = {
2057
2057
  // Set left if horizontal drag is enabled
2058
- x: (0, a.canDragX)(this) && z ? this.state.x : G.x,
2058
+ x: (0, a.canDragX)(this) && V ? this.state.x : G.x,
2059
2059
  // Set top if vertical drag is enabled
2060
- y: (0, a.canDragY)(this) && z ? this.state.y : G.y
2060
+ y: (0, a.canDragY)(this) && V ? this.state.y : G.y
2061
2061
  };
2062
2062
  this.state.isElementSVG ? J = (0, i.createSVGTransform)(re, L) : T = (0, i.createCSSTransform)(re, L);
2063
2063
  const fe = (0, o.default)(p.props.className || "", I, {
2064
2064
  [_]: this.state.dragging,
2065
- [D]: this.state.dragged
2065
+ [P]: this.state.dragged
2066
2066
  });
2067
2067
  return /* @__PURE__ */ t.createElement(s.default, g({}, S, {
2068
2068
  onStart: this.onDragStart,
@@ -2198,19 +2198,19 @@ we(Bn, "defaultProps", {
2198
2198
  },
2199
2199
  scale: 1
2200
2200
  });
2201
- })(Ui);
2201
+ })(qi);
2202
2202
  const {
2203
2203
  default: Ji,
2204
2204
  DraggableCore: Lc
2205
- } = Ui;
2205
+ } = qi;
2206
2206
  Fn.exports = Ji;
2207
2207
  Fn.exports.default = Ji;
2208
2208
  Fn.exports.DraggableCore = Lc;
2209
2209
  var Qi = Fn.exports, Gn = { exports: {} }, gn = {}, oo = {};
2210
2210
  oo.__esModule = !0;
2211
2211
  oo.cloneElement = Ac;
2212
- var zc = Vc(Ve);
2213
- function Vc(e) {
2212
+ var Vc = zc(ze);
2213
+ function zc(e) {
2214
2214
  return e && e.__esModule ? e : { default: e };
2215
2215
  }
2216
2216
  function No(e, t) {
@@ -2227,17 +2227,17 @@ function jo(e) {
2227
2227
  for (var t = 1; t < arguments.length; t++) {
2228
2228
  var n = arguments[t] != null ? arguments[t] : {};
2229
2229
  t % 2 ? No(Object(n), !0).forEach(function(r) {
2230
- Hc(e, r, n[r]);
2230
+ kc(e, r, n[r]);
2231
2231
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : No(Object(n)).forEach(function(r) {
2232
2232
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
2233
2233
  });
2234
2234
  }
2235
2235
  return e;
2236
2236
  }
2237
- function Hc(e, t, n) {
2238
- return t = kc(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
2237
+ function kc(e, t, n) {
2238
+ return t = Hc(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
2239
2239
  }
2240
- function kc(e) {
2240
+ function Hc(e) {
2241
2241
  var t = Wc(e, "string");
2242
2242
  return typeof t == "symbol" ? t : String(t);
2243
2243
  }
@@ -2254,16 +2254,16 @@ function Wc(e, t) {
2254
2254
  return (t === "string" ? String : Number)(e);
2255
2255
  }
2256
2256
  function Ac(e, t) {
2257
- return t.style && e.props.style && (t.style = jo(jo({}, e.props.style), t.style)), t.className && e.props.className && (t.className = e.props.className + " " + t.className), /* @__PURE__ */ zc.default.cloneElement(e, t);
2257
+ return t.style && e.props.style && (t.style = jo(jo({}, e.props.style), t.style)), t.className && e.props.className && (t.className = e.props.className + " " + t.className), /* @__PURE__ */ Vc.default.cloneElement(e, t);
2258
2258
  }
2259
2259
  var mn = {};
2260
2260
  mn.__esModule = !0;
2261
2261
  mn.resizableProps = void 0;
2262
- var W = Fc(ct);
2262
+ var W = Fc(ut);
2263
2263
  function Fc(e) {
2264
2264
  return e && e.__esModule ? e : { default: e };
2265
2265
  }
2266
- var Uc = {
2266
+ var qc = {
2267
2267
  /*
2268
2268
  * Restricts resizing to a particular axis (default: 'both')
2269
2269
  * 'both' - allows resizing by width or height
@@ -2368,10 +2368,10 @@ var Uc = {
2368
2368
  return W.default.number.apply(W.default, n);
2369
2369
  }
2370
2370
  };
2371
- mn.resizableProps = Uc;
2371
+ mn.resizableProps = qc;
2372
2372
  gn.__esModule = !0;
2373
2373
  gn.default = void 0;
2374
- var Zt = Yc(Ve), qc = Qi, Bc = oo, Gc = mn, Xc = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
2374
+ var Jt = Yc(ze), Uc = Qi, Bc = oo, Gc = mn, Xc = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
2375
2375
  function ea(e) {
2376
2376
  if (typeof WeakMap != "function")
2377
2377
  return null;
@@ -2519,7 +2519,7 @@ var io = /* @__PURE__ */ function(e) {
2519
2519
  }, n.renderResizeHandle = function(o, i) {
2520
2520
  var a = this.props.handle;
2521
2521
  if (!a)
2522
- return /* @__PURE__ */ Zt.createElement("span", {
2522
+ return /* @__PURE__ */ Jt.createElement("span", {
2523
2523
  className: "react-resizable-handle react-resizable-handle-" + o,
2524
2524
  ref: i
2525
2525
  });
@@ -2530,7 +2530,7 @@ var io = /* @__PURE__ */ function(e) {
2530
2530
  }, l ? {} : {
2531
2531
  handleAxis: o
2532
2532
  });
2533
- return /* @__PURE__ */ Zt.cloneElement(a, s);
2533
+ return /* @__PURE__ */ Jt.cloneElement(a, s);
2534
2534
  }, n.render = function() {
2535
2535
  var o = this, i = this.props, a = i.children, l = i.className, s = i.draggableOpts;
2536
2536
  i.width, i.height, i.handle, i.handleSize, i.lockAspectRatio, i.axis, i.minConstraints, i.maxConstraints, i.onResize, i.onResizeStop, i.onResizeStart;
@@ -2540,8 +2540,8 @@ var io = /* @__PURE__ */ function(e) {
2540
2540
  return (0, Bc.cloneElement)(a, dr(dr({}, u), {}, {
2541
2541
  className: (l ? l + " " : "") + "react-resizable",
2542
2542
  children: [].concat(a.props.children, c.map(function(h) {
2543
- var d, g = (d = o.handleRefs[h]) != null ? d : o.handleRefs[h] = /* @__PURE__ */ Zt.createRef();
2544
- return /* @__PURE__ */ Zt.createElement(qc.DraggableCore, Ir({}, s, {
2543
+ var d, g = (d = o.handleRefs[h]) != null ? d : o.handleRefs[h] = /* @__PURE__ */ Jt.createRef();
2544
+ return /* @__PURE__ */ Jt.createElement(Uc.DraggableCore, Ir({}, s, {
2545
2545
  nodeRef: g,
2546
2546
  key: "resizableHandle-" + h,
2547
2547
  onStop: o.resizeHandler("onResizeStop", h),
@@ -2551,7 +2551,7 @@ var io = /* @__PURE__ */ function(e) {
2551
2551
  }))
2552
2552
  }));
2553
2553
  }, t;
2554
- }(Zt.Component);
2554
+ }(Jt.Component);
2555
2555
  gn.default = io;
2556
2556
  io.propTypes = Gc.resizableProps;
2557
2557
  io.defaultProps = {
@@ -2566,7 +2566,7 @@ io.defaultProps = {
2566
2566
  var Xn = {};
2567
2567
  Xn.__esModule = !0;
2568
2568
  Xn.default = void 0;
2569
- var fr = iu(Ve), tu = ta(ct), nu = ta(gn), ru = mn, ou = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
2569
+ var fr = iu(ze), tu = ta(ut), nu = ta(gn), ru = mn, ou = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
2570
2570
  function ta(e) {
2571
2571
  return e && e.__esModule ? e : { default: e };
2572
2572
  }
@@ -2604,7 +2604,7 @@ function Or() {
2604
2604
  return e;
2605
2605
  }, Or.apply(this, arguments);
2606
2606
  }
2607
- function zo(e, t) {
2607
+ function Vo(e, t) {
2608
2608
  var n = Object.keys(e);
2609
2609
  if (Object.getOwnPropertySymbols) {
2610
2610
  var r = Object.getOwnPropertySymbols(e);
@@ -2617,9 +2617,9 @@ function zo(e, t) {
2617
2617
  function Mn(e) {
2618
2618
  for (var t = 1; t < arguments.length; t++) {
2619
2619
  var n = arguments[t] != null ? arguments[t] : {};
2620
- t % 2 ? zo(Object(n), !0).forEach(function(r) {
2620
+ t % 2 ? Vo(Object(n), !0).forEach(function(r) {
2621
2621
  au(e, r, n[r]);
2622
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zo(Object(n)).forEach(function(r) {
2622
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Vo(Object(n)).forEach(function(r) {
2623
2623
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
2624
2624
  });
2625
2625
  }
@@ -2653,12 +2653,12 @@ function cu(e, t) {
2653
2653
  return n;
2654
2654
  }
2655
2655
  function uu(e, t) {
2656
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Pr(e, t);
2656
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Dr(e, t);
2657
2657
  }
2658
- function Pr(e, t) {
2659
- return Pr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) {
2658
+ function Dr(e, t) {
2659
+ return Dr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) {
2660
2660
  return r.__proto__ = o, r;
2661
- }, Pr(e, t);
2661
+ }, Dr(e, t);
2662
2662
  }
2663
2663
  var ra = /* @__PURE__ */ function(e) {
2664
2664
  uu(t, e);
@@ -2729,7 +2729,7 @@ Object.defineProperty(Ze, "__esModule", {
2729
2729
  value: !0
2730
2730
  });
2731
2731
  Ze.resizeHandleType = Ze.resizeHandleAxesType = Ze.default = void 0;
2732
- var F = oa(ct), fu = oa(Ve);
2732
+ var F = oa(ut), fu = oa(ze);
2733
2733
  function oa(e) {
2734
2734
  return e && e.__esModule ? e : { default: e };
2735
2735
  }
@@ -2762,7 +2762,7 @@ Ze.default = {
2762
2762
  // {x: Number, y: Number, w: Number, h: Number, i: String}
2763
2763
  layout: function(e) {
2764
2764
  var t = e.layout;
2765
- t !== void 0 && U.validateLayout(t, "layout");
2765
+ t !== void 0 && q.validateLayout(t, "layout");
2766
2766
  },
2767
2767
  //
2768
2768
  // Grid Dimensions
@@ -2844,11 +2844,11 @@ Object.defineProperty(An, "__esModule", {
2844
2844
  value: !0
2845
2845
  });
2846
2846
  An.default = void 0;
2847
- var Mt = ao(Ve), Y = ao(ct), gu = Qi, mu = du, $t = U, ge = Be, Vo = Ze, vu = ao(rt);
2847
+ var Mt = ao(ze), Y = ao(ut), gu = Qi, mu = du, $t = q, ge = Be, zo = Ze, vu = ao(ot);
2848
2848
  function ao(e) {
2849
2849
  return e && e.__esModule ? e : { default: e };
2850
2850
  }
2851
- function qe(e, t, n) {
2851
+ function Ue(e, t, n) {
2852
2852
  return t = yu(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
2853
2853
  }
2854
2854
  function yu(e) {
@@ -2869,11 +2869,11 @@ function bu(e, t) {
2869
2869
  }
2870
2870
  class so extends Mt.default.Component {
2871
2871
  constructor() {
2872
- super(...arguments), qe(this, "state", {
2872
+ super(...arguments), Ue(this, "state", {
2873
2873
  resizing: null,
2874
2874
  dragging: null,
2875
2875
  className: ""
2876
- }), qe(this, "elementRef", /* @__PURE__ */ Mt.default.createRef()), qe(this, "onDragStart", (t, n) => {
2876
+ }), Ue(this, "elementRef", /* @__PURE__ */ Mt.default.createRef()), Ue(this, "onDragStart", (t, n) => {
2877
2877
  let {
2878
2878
  node: r
2879
2879
  } = n;
@@ -2904,7 +2904,7 @@ class so extends Mt.default.Component {
2904
2904
  node: r,
2905
2905
  newPosition: a
2906
2906
  });
2907
- }), qe(this, "onDrag", (t, n) => {
2907
+ }), Ue(this, "onDrag", (t, n) => {
2908
2908
  let {
2909
2909
  node: r,
2910
2910
  deltaX: o,
@@ -2936,8 +2936,8 @@ class so extends Mt.default.Component {
2936
2936
  containerPadding: R
2937
2937
  } = this.props, I = v.clientHeight - (0, ge.calcGridItemWHPx)(d, p, C[1]);
2938
2938
  l = (0, ge.clamp)(l - R[1], 0, I);
2939
- const _ = (0, ge.calcGridColWidth)(m), D = g - (0, ge.calcGridItemWHPx)(h, _, C[0]);
2940
- s = (0, ge.clamp)(s - R[0], 0, D);
2939
+ const _ = (0, ge.calcGridColWidth)(m), P = g - (0, ge.calcGridItemWHPx)(h, _, C[0]);
2940
+ s = (0, ge.clamp)(s - R[0], 0, P);
2941
2941
  }
2942
2942
  }
2943
2943
  const b = {
@@ -2958,7 +2958,7 @@ class so extends Mt.default.Component {
2958
2958
  node: r,
2959
2959
  newPosition: b
2960
2960
  });
2961
- }), qe(this, "onDragStop", (t, n) => {
2961
+ }), Ue(this, "onDragStop", (t, n) => {
2962
2962
  let {
2963
2963
  node: r
2964
2964
  } = n;
@@ -2993,7 +2993,7 @@ class so extends Mt.default.Component {
2993
2993
  node: r,
2994
2994
  newPosition: h
2995
2995
  });
2996
- }), qe(this, "onResizeStop", (t, n, r) => this.onResizeHandler(t, n, r, "onResizeStop")), qe(this, "onResizeStart", (t, n, r) => this.onResizeHandler(t, n, r, "onResizeStart")), qe(this, "onResize", (t, n, r) => this.onResizeHandler(t, n, r, "onResize"));
2996
+ }), Ue(this, "onResizeStop", (t, n, r) => this.onResizeHandler(t, n, r, "onResizeStop")), Ue(this, "onResizeStart", (t, n, r) => this.onResizeHandler(t, n, r, "onResizeStart")), Ue(this, "onResize", (t, n, r) => this.onResizeHandler(t, n, r, "onResize"));
2997
2997
  }
2998
2998
  shouldComponentUpdate(t, n) {
2999
2999
  if (this.props.children !== t.children || this.props.droppingPosition !== t.droppingPosition)
@@ -3204,7 +3204,7 @@ class so extends Mt.default.Component {
3204
3204
  }
3205
3205
  }
3206
3206
  An.default = so;
3207
- qe(so, "propTypes", {
3207
+ Ue(so, "propTypes", {
3208
3208
  // Children must be only a single element
3209
3209
  children: Y.default.element,
3210
3210
  // General grid attributes
@@ -3251,8 +3251,8 @@ qe(so, "propTypes", {
3251
3251
  // ID is nice to have for callbacks
3252
3252
  i: Y.default.string.isRequired,
3253
3253
  // Resize handle options
3254
- resizeHandles: Vo.resizeHandleAxesType,
3255
- resizeHandle: Vo.resizeHandleType,
3254
+ resizeHandles: zo.resizeHandleAxesType,
3255
+ resizeHandle: zo.resizeHandleType,
3256
3256
  // Functions
3257
3257
  onDragStop: Y.default.func,
3258
3258
  onDragStart: Y.default.func,
@@ -3281,7 +3281,7 @@ qe(so, "propTypes", {
3281
3281
  top: Y.default.number.isRequired
3282
3282
  })
3283
3283
  });
3284
- qe(so, "defaultProps", {
3284
+ Ue(so, "defaultProps", {
3285
3285
  className: "",
3286
3286
  cancel: "",
3287
3287
  handle: "",
@@ -3295,7 +3295,7 @@ Object.defineProperty(pn, "__esModule", {
3295
3295
  value: !0
3296
3296
  });
3297
3297
  pn.default = void 0;
3298
- var ht = _u(Ve), hr = qr, Su = lo(rt), V = U, Cu = Be, Ho = lo(An), wu = lo(Ze);
3298
+ var ht = _u(ze), hr = Ur, Su = lo(ot), z = q, Cu = Be, ko = lo(An), wu = lo(Ze);
3299
3299
  function lo(e) {
3300
3300
  return e && e.__esModule ? e : { default: e };
3301
3301
  }
@@ -3342,7 +3342,7 @@ function Ru(e, t) {
3342
3342
  }
3343
3343
  return (t === "string" ? String : Number)(e);
3344
3344
  }
3345
- const ko = "react-grid-layout";
3345
+ const Ho = "react-grid-layout";
3346
3346
  let aa = !1;
3347
3347
  try {
3348
3348
  aa = /firefox/i.test(navigator.userAgent);
@@ -3352,12 +3352,12 @@ class Yn extends ht.Component {
3352
3352
  constructor() {
3353
3353
  super(...arguments), Se(this, "state", {
3354
3354
  activeDrag: null,
3355
- layout: (0, V.synchronizeLayoutWithChildren)(
3355
+ layout: (0, z.synchronizeLayoutWithChildren)(
3356
3356
  this.props.layout,
3357
3357
  this.props.children,
3358
3358
  this.props.cols,
3359
3359
  // Legacy support for verticalCompact: false
3360
- (0, V.compactType)(this.props),
3360
+ (0, z.compactType)(this.props),
3361
3361
  this.props.allowOverlap
3362
3362
  ),
3363
3363
  mounted: !1,
@@ -3374,7 +3374,7 @@ class Yn extends ht.Component {
3374
3374
  } = o;
3375
3375
  const {
3376
3376
  layout: l
3377
- } = this.state, s = (0, V.getLayoutItem)(l, t);
3377
+ } = this.state, s = (0, z.getLayoutItem)(l, t);
3378
3378
  if (!s)
3379
3379
  return;
3380
3380
  const c = {
@@ -3386,7 +3386,7 @@ class Yn extends ht.Component {
3386
3386
  i: t
3387
3387
  };
3388
3388
  return this.setState({
3389
- oldDragItem: (0, V.cloneLayoutItem)(s),
3389
+ oldDragItem: (0, z.cloneLayoutItem)(s),
3390
3390
  oldLayout: l,
3391
3391
  activeDrag: c
3392
3392
  }), this.props.onDragStart(l, s, s, null, i, a);
@@ -3405,7 +3405,7 @@ class Yn extends ht.Component {
3405
3405
  cols: c,
3406
3406
  allowOverlap: u,
3407
3407
  preventCollision: h
3408
- } = this.props, d = (0, V.getLayoutItem)(s, t);
3408
+ } = this.props, d = (0, z.getLayoutItem)(s, t);
3409
3409
  if (!d)
3410
3410
  return;
3411
3411
  const g = {
@@ -3416,8 +3416,8 @@ class Yn extends ht.Component {
3416
3416
  placeholder: !0,
3417
3417
  i: t
3418
3418
  };
3419
- s = (0, V.moveElement)(s, d, n, r, !0, h, (0, V.compactType)(this.props), c, u), this.props.onDrag(s, l, d, g, i, a), this.setState({
3420
- layout: u ? s : (0, V.compact)(s, (0, V.compactType)(this.props), c),
3419
+ s = (0, z.moveElement)(s, d, n, r, !0, h, (0, z.compactType)(this.props), c, u), this.props.onDrag(s, l, d, g, i, a), this.setState({
3420
+ layout: u ? s : (0, z.compact)(s, (0, z.compactType)(this.props), c),
3421
3421
  activeDrag: g
3422
3422
  });
3423
3423
  }), Se(this, "onDragStop", (t, n, r, o) => {
@@ -3437,11 +3437,11 @@ class Yn extends ht.Component {
3437
3437
  cols: c,
3438
3438
  preventCollision: u,
3439
3439
  allowOverlap: h
3440
- } = this.props, d = (0, V.getLayoutItem)(s, t);
3440
+ } = this.props, d = (0, z.getLayoutItem)(s, t);
3441
3441
  if (!d)
3442
3442
  return;
3443
- s = (0, V.moveElement)(s, d, n, r, !0, u, (0, V.compactType)(this.props), c, h);
3444
- const m = h ? s : (0, V.compact)(s, (0, V.compactType)(this.props), c);
3443
+ s = (0, z.moveElement)(s, d, n, r, !0, u, (0, z.compactType)(this.props), c, h);
3444
+ const m = h ? s : (0, z.compact)(s, (0, z.compactType)(this.props), c);
3445
3445
  this.props.onDragStop(m, l, d, null, i, a);
3446
3446
  const {
3447
3447
  oldLayout: b
@@ -3459,9 +3459,9 @@ class Yn extends ht.Component {
3459
3459
  } = o;
3460
3460
  const {
3461
3461
  layout: l
3462
- } = this.state, s = (0, V.getLayoutItem)(l, t);
3462
+ } = this.state, s = (0, z.getLayoutItem)(l, t);
3463
3463
  s && (this.setState({
3464
- oldResizeItem: (0, V.cloneLayoutItem)(s),
3464
+ oldResizeItem: (0, z.cloneLayoutItem)(s),
3465
3465
  oldLayout: this.state.layout,
3466
3466
  resizing: !0
3467
3467
  }), this.props.onResizeStart(l, s, s, null, i, a));
@@ -3482,9 +3482,9 @@ class Yn extends ht.Component {
3482
3482
  allowOverlap: g
3483
3483
  } = this.props;
3484
3484
  let m = !1, b, x, w;
3485
- const [y, v] = (0, V.withLayoutItem)(u, t, (p) => {
3485
+ const [y, v] = (0, z.withLayoutItem)(u, t, (p) => {
3486
3486
  let R;
3487
- return x = p.x, w = p.y, ["sw", "w", "nw", "n", "ne"].indexOf(s) !== -1 && (["sw", "nw", "w"].indexOf(s) !== -1 && (x = p.x + (p.w - n), n = p.x !== x && x < 0 ? p.w : n, x = x < 0 ? 0 : x), ["ne", "n", "nw"].indexOf(s) !== -1 && (w = p.y + (p.h - r), r = p.y !== w && w < 0 ? p.h : r, w = w < 0 ? 0 : w), m = !0), d && !g && (R = (0, V.getAllCollisions)(u, {
3487
+ return x = p.x, w = p.y, ["sw", "w", "nw", "n", "ne"].indexOf(s) !== -1 && (["sw", "nw", "w"].indexOf(s) !== -1 && (x = p.x + (p.w - n), n = p.x !== x && x < 0 ? p.w : n, x = x < 0 ? 0 : x), ["ne", "n", "nw"].indexOf(s) !== -1 && (w = p.y + (p.h - r), r = p.y !== w && w < 0 ? p.h : r, w = w < 0 ? 0 : w), m = !0), d && !g && (R = (0, z.getAllCollisions)(u, {
3488
3488
  ...p,
3489
3489
  w: n,
3490
3490
  h: r,
@@ -3494,7 +3494,7 @@ class Yn extends ht.Component {
3494
3494
  });
3495
3495
  if (!v)
3496
3496
  return;
3497
- b = y, m && (b = (0, V.moveElement)(y, v, x, w, !0, this.props.preventCollision, (0, V.compactType)(this.props), h, g));
3497
+ b = y, m && (b = (0, z.moveElement)(y, v, x, w, !0, this.props.preventCollision, (0, z.compactType)(this.props), h, g));
3498
3498
  const C = {
3499
3499
  w: v.w,
3500
3500
  h: v.h,
@@ -3504,7 +3504,7 @@ class Yn extends ht.Component {
3504
3504
  i: t
3505
3505
  };
3506
3506
  this.props.onResize(b, c, v, C, i, a), this.setState({
3507
- layout: g ? b : (0, V.compact)(b, (0, V.compactType)(this.props), h),
3507
+ layout: g ? b : (0, z.compact)(b, (0, z.compactType)(this.props), h),
3508
3508
  activeDrag: C
3509
3509
  });
3510
3510
  }), Se(this, "onResizeStop", (t, n, r, o) => {
@@ -3518,7 +3518,7 @@ class Yn extends ht.Component {
3518
3518
  } = this.state, {
3519
3519
  cols: c,
3520
3520
  allowOverlap: u
3521
- } = this.props, h = (0, V.getLayoutItem)(l, t), d = u ? l : (0, V.compact)(l, (0, V.compactType)(this.props), c);
3521
+ } = this.props, h = (0, z.getLayoutItem)(l, t), d = u ? l : (0, z.compact)(l, (0, z.compactType)(this.props), c);
3522
3522
  this.props.onResizeStop(d, s, h, null, i, a);
3523
3523
  const {
3524
3524
  oldLayout: g
@@ -3533,7 +3533,7 @@ class Yn extends ht.Component {
3533
3533
  }), Se(this, "onDragOver", (t) => {
3534
3534
  var y;
3535
3535
  if (t.preventDefault(), t.stopPropagation(), aa && // $FlowIgnore can't figure this out
3536
- !((y = t.nativeEvent.target) != null && y.classList.contains(ko)))
3536
+ !((y = t.nativeEvent.target) != null && y.classList.contains(Ho)))
3537
3537
  return !1;
3538
3538
  const {
3539
3539
  droppingItem: n,
@@ -3597,7 +3597,7 @@ class Yn extends ht.Component {
3597
3597
  cols: n
3598
3598
  } = this.props, {
3599
3599
  layout: r
3600
- } = this.state, o = (0, V.compact)(r.filter((i) => i.i !== t.i), (0, V.compactType)(this.props), n, this.props.allowOverlap);
3600
+ } = this.state, o = (0, z.compact)(r.filter((i) => i.i !== t.i), (0, z.compactType)(this.props), n, this.props.allowOverlap);
3601
3601
  this.setState({
3602
3602
  layout: o,
3603
3603
  droppingDOMNode: null,
@@ -3625,8 +3625,8 @@ class Yn extends ht.Component {
3625
3625
  }
3626
3626
  static getDerivedStateFromProps(t, n) {
3627
3627
  let r;
3628
- return n.activeDrag ? null : (!(0, hr.deepEqual)(t.layout, n.propsLayout) || t.compactType !== n.compactType ? r = t.layout : (0, V.childrenEqual)(t.children, n.children) || (r = n.layout), r ? {
3629
- layout: (0, V.synchronizeLayoutWithChildren)(r, t.children, t.cols, (0, V.compactType)(t), t.allowOverlap),
3628
+ return n.activeDrag ? null : (!(0, hr.deepEqual)(t.layout, n.propsLayout) || t.compactType !== n.compactType ? r = t.layout : (0, z.childrenEqual)(t.children, n.children) || (r = n.layout), r ? {
3629
+ layout: (0, z.synchronizeLayoutWithChildren)(r, t.children, t.cols, (0, z.compactType)(t), t.allowOverlap),
3630
3630
  // We need to save these props to state for using
3631
3631
  // getDerivedStateFromProps instead of componentDidMount (in which we would get extra rerender)
3632
3632
  compactType: t.compactType,
@@ -3639,7 +3639,7 @@ class Yn extends ht.Component {
3639
3639
  // NOTE: this is almost always unequal. Therefore the only way to get better performance
3640
3640
  // from SCU is if the user intentionally memoizes children. If they do, and they can
3641
3641
  // handle changes properly, performance will increase.
3642
- this.props.children !== t.children || !(0, V.fastRGLPropsEqual)(this.props, t, hr.deepEqual) || this.state.activeDrag !== n.activeDrag || this.state.mounted !== n.mounted || this.state.droppingPosition !== n.droppingPosition
3642
+ this.props.children !== t.children || !(0, z.fastRGLPropsEqual)(this.props, t, hr.deepEqual) || this.state.activeDrag !== n.activeDrag || this.state.mounted !== n.mounted || this.state.droppingPosition !== n.droppingPosition
3643
3643
  );
3644
3644
  }
3645
3645
  componentDidUpdate(t, n) {
@@ -3655,7 +3655,7 @@ class Yn extends ht.Component {
3655
3655
  containerHeight() {
3656
3656
  if (!this.props.autoSize)
3657
3657
  return;
3658
- const t = (0, V.bottom)(this.state.layout), n = this.props.containerPadding ? this.props.containerPadding[1] : this.props.margin[1];
3658
+ const t = (0, z.bottom)(this.state.layout), n = this.props.containerPadding ? this.props.containerPadding[1] : this.props.margin[1];
3659
3659
  return t * this.props.rowHeight + (t - 1) * this.props.margin[1] + n * 2 + "px";
3660
3660
  }
3661
3661
  onLayoutMaybeChanged(t, n) {
@@ -3681,7 +3681,7 @@ class Yn extends ht.Component {
3681
3681
  useCSSTransforms: s,
3682
3682
  transformScale: c
3683
3683
  } = this.props;
3684
- return /* @__PURE__ */ ht.createElement(Ho.default, {
3684
+ return /* @__PURE__ */ ht.createElement(ko.default, {
3685
3685
  w: t.w,
3686
3686
  h: t.h,
3687
3687
  x: t.x,
@@ -3709,7 +3709,7 @@ class Yn extends ht.Component {
3709
3709
  processGridItem(t, n) {
3710
3710
  if (!t || !t.key)
3711
3711
  return;
3712
- const r = (0, V.getLayoutItem)(this.state.layout, String(t.key));
3712
+ const r = (0, z.getLayoutItem)(this.state.layout, String(t.key));
3713
3713
  if (!r)
3714
3714
  return null;
3715
3715
  const {
@@ -3732,7 +3732,7 @@ class Yn extends ht.Component {
3732
3732
  mounted: v,
3733
3733
  droppingPosition: C
3734
3734
  } = this.state, p = typeof r.isDraggable == "boolean" ? r.isDraggable : !r.static && u, R = typeof r.isResizable == "boolean" ? r.isResizable : !r.static && h, I = r.resizeHandles || w, _ = p && d && r.isBounded !== !1;
3735
- return /* @__PURE__ */ ht.createElement(Ho.default, {
3735
+ return /* @__PURE__ */ ht.createElement(ko.default, {
3736
3736
  containerWidth: o,
3737
3737
  cols: i,
3738
3738
  margin: a,
@@ -3774,7 +3774,7 @@ class Yn extends ht.Component {
3774
3774
  style: n,
3775
3775
  isDroppable: r,
3776
3776
  innerRef: o
3777
- } = this.props, i = (0, Su.default)(ko, t), a = {
3777
+ } = this.props, i = (0, Su.default)(Ho, t), a = {
3778
3778
  height: this.containerHeight(),
3779
3779
  ...n
3780
3780
  };
@@ -3782,10 +3782,10 @@ class Yn extends ht.Component {
3782
3782
  ref: o,
3783
3783
  className: i,
3784
3784
  style: a,
3785
- onDrop: r ? this.onDrop : V.noop,
3786
- onDragLeave: r ? this.onDragLeave : V.noop,
3787
- onDragEnter: r ? this.onDragEnter : V.noop,
3788
- onDragOver: r ? this.onDragOver : V.noop
3785
+ onDrop: r ? this.onDrop : z.noop,
3786
+ onDragLeave: r ? this.onDragLeave : z.noop,
3787
+ onDragEnter: r ? this.onDragEnter : z.noop,
3788
+ onDragOver: r ? this.onDragOver : z.noop
3789
3789
  }, ht.Children.map(this.props.children, (l) => this.processGridItem(l)), r && this.state.droppingDOMNode && this.processGridItem(this.state.droppingDOMNode, !0), this.placeholder());
3790
3790
  }
3791
3791
  }
@@ -3821,15 +3821,15 @@ Se(Yn, "defaultProps", {
3821
3821
  w: 1
3822
3822
  },
3823
3823
  resizeHandles: ["se"],
3824
- onLayoutChange: V.noop,
3825
- onDragStart: V.noop,
3826
- onDrag: V.noop,
3827
- onDragStop: V.noop,
3828
- onResizeStart: V.noop,
3829
- onResize: V.noop,
3830
- onResizeStop: V.noop,
3831
- onDrop: V.noop,
3832
- onDropDragOver: V.noop
3824
+ onLayoutChange: z.noop,
3825
+ onDragStart: z.noop,
3826
+ onDrag: z.noop,
3827
+ onDragStop: z.noop,
3828
+ onResizeStart: z.noop,
3829
+ onResize: z.noop,
3830
+ onResizeStop: z.noop,
3831
+ onDrop: z.noop,
3832
+ onDropDragOver: z.noop
3833
3833
  });
3834
3834
  var Kn = {}, Ot = {};
3835
3835
  Object.defineProperty(Ot, "__esModule", {
@@ -3839,7 +3839,7 @@ Ot.findOrGenerateResponsiveLayout = Eu;
3839
3839
  Ot.getBreakpointFromWidth = Tu;
3840
3840
  Ot.getColsFromBreakpoint = Iu;
3841
3841
  Ot.sortBreakpoints = co;
3842
- var yn = U;
3842
+ var yn = q;
3843
3843
  function Tu(e, t) {
3844
3844
  const n = co(e);
3845
3845
  let r = n[0];
@@ -3879,7 +3879,7 @@ Object.defineProperty(Kn, "__esModule", {
3879
3879
  value: !0
3880
3880
  });
3881
3881
  Kn.default = void 0;
3882
- var Wo = Pu(Ve), Ee = sa(ct), pr = qr, Vt = U, pt = Ot, Ou = sa(pn);
3882
+ var Wo = Du(ze), Ee = sa(ut), pr = Ur, kt = q, pt = Ot, Ou = sa(pn);
3883
3883
  function sa(e) {
3884
3884
  return e && e.__esModule ? e : { default: e };
3885
3885
  }
@@ -3891,7 +3891,7 @@ function la(e) {
3891
3891
  return r ? n : t;
3892
3892
  })(e);
3893
3893
  }
3894
- function Pu(e, t) {
3894
+ function Du(e, t) {
3895
3895
  if (!t && e && e.__esModule)
3896
3896
  return e;
3897
3897
  if (e === null || typeof e != "object" && typeof e != "function")
@@ -3907,20 +3907,20 @@ function Pu(e, t) {
3907
3907
  }
3908
3908
  return r.default = e, n && n.set(e, r), r;
3909
3909
  }
3910
- function Dr() {
3911
- return Dr = Object.assign ? Object.assign.bind() : function(e) {
3910
+ function Pr() {
3911
+ return Pr = Object.assign ? Object.assign.bind() : function(e) {
3912
3912
  for (var t = 1; t < arguments.length; t++) {
3913
3913
  var n = arguments[t];
3914
3914
  for (var r in n)
3915
3915
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3916
3916
  }
3917
3917
  return e;
3918
- }, Dr.apply(this, arguments);
3918
+ }, Pr.apply(this, arguments);
3919
3919
  }
3920
3920
  function $n(e, t, n) {
3921
- return t = Du(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
3921
+ return t = Pu(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
3922
3922
  }
3923
- function Du(e) {
3923
+ function Pu(e) {
3924
3924
  var t = Mu(e, "string");
3925
3925
  return typeof t == "symbol" ? t : String(t);
3926
3926
  }
@@ -3992,9 +3992,9 @@ class uo extends Wo.Component {
3992
3992
  ...o
3993
3993
  };
3994
3994
  if (l !== a || t.breakpoints !== n || t.cols !== r) {
3995
- l in c || (c[l] = (0, Vt.cloneLayout)(this.state.layout));
3995
+ l in c || (c[l] = (0, kt.cloneLayout)(this.state.layout));
3996
3996
  let d = (0, pt.findOrGenerateResponsiveLayout)(c, n, a, l, s, i);
3997
- d = (0, Vt.synchronizeLayoutWithChildren)(d, this.props.children, s, i, this.props.allowOverlap), c[a] = d, this.props.onLayoutChange(d, c), this.props.onBreakpointChange(a, s), this.setState({
3997
+ d = (0, kt.synchronizeLayoutWithChildren)(d, this.props.children, s, i, this.props.allowOverlap), c[a] = d, this.props.onLayoutChange(d, c), this.props.onBreakpointChange(a, s), this.setState({
3998
3998
  breakpoint: a,
3999
3999
  layout: d,
4000
4000
  cols: s
@@ -4016,7 +4016,7 @@ class uo extends Wo.Component {
4016
4016
  onWidthChange: c,
4017
4017
  ...u
4018
4018
  } = this.props;
4019
- return /* @__PURE__ */ Wo.createElement(Ou.default, Dr({}, u, {
4019
+ return /* @__PURE__ */ Wo.createElement(Ou.default, Pr({}, u, {
4020
4020
  // $FlowIgnore should allow nullable here due to DefaultProps
4021
4021
  margin: bn(i, this.state.breakpoint),
4022
4022
  containerPadding: bn(a, this.state.breakpoint),
@@ -4057,7 +4057,7 @@ $n(uo, "propTypes", {
4057
4057
  Object.keys(e[t]).forEach((n) => {
4058
4058
  if (!(n in e.breakpoints))
4059
4059
  throw new Error("Each key in layouts must align with a key in breakpoints.");
4060
- (0, Vt.validateLayout)(e.layouts[n], "layouts." + n);
4060
+ (0, kt.validateLayout)(e.layouts[n], "layouts." + n);
4061
4061
  });
4062
4062
  },
4063
4063
  // The width of this component.
@@ -4099,9 +4099,9 @@ $n(uo, "defaultProps", {
4099
4099
  layouts: {},
4100
4100
  margin: [10, 10],
4101
4101
  allowOverlap: !1,
4102
- onBreakpointChange: Vt.noop,
4103
- onLayoutChange: Vt.noop,
4104
- onWidthChange: Vt.noop
4102
+ onBreakpointChange: kt.noop,
4103
+ onLayoutChange: kt.noop,
4104
+ onWidthChange: kt.noop
4105
4105
  });
4106
4106
  var fo = {}, ca = function() {
4107
4107
  if (typeof Map < "u")
@@ -4178,7 +4178,7 @@ function ju(e, t) {
4178
4178
  }
4179
4179
  return l;
4180
4180
  }
4181
- var Lu = 20, zu = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Vu = typeof MutationObserver < "u", Hu = (
4181
+ var Lu = 20, Vu = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], zu = typeof MutationObserver < "u", ku = (
4182
4182
  /** @class */
4183
4183
  function() {
4184
4184
  function e() {
@@ -4200,7 +4200,7 @@ var Lu = 20, zu = ["top", "right", "bottom", "left", "width", "height", "size",
4200
4200
  return n.broadcastActive();
4201
4201
  }), t.length > 0;
4202
4202
  }, e.prototype.connect_ = function() {
4203
- !Mr || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Vu ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
4203
+ !Mr || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), zu ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
4204
4204
  attributes: !0,
4205
4205
  childList: !0,
4206
4206
  characterData: !0,
@@ -4209,7 +4209,7 @@ var Lu = 20, zu = ["top", "right", "bottom", "left", "width", "height", "size",
4209
4209
  }, e.prototype.disconnect_ = function() {
4210
4210
  !Mr || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
4211
4211
  }, e.prototype.onTransitionEnd_ = function(t) {
4212
- var n = t.propertyName, r = n === void 0 ? "" : n, o = zu.some(function(i) {
4212
+ var n = t.propertyName, r = n === void 0 ? "" : n, o = Vu.some(function(i) {
4213
4213
  return !!~r.indexOf(i);
4214
4214
  });
4215
4215
  o && this.refresh();
@@ -4228,7 +4228,7 @@ var Lu = 20, zu = ["top", "right", "bottom", "left", "width", "height", "size",
4228
4228
  });
4229
4229
  }
4230
4230
  return e;
4231
- }, kt = function(e) {
4231
+ }, Wt = function(e) {
4232
4232
  var t = e && e.ownerDocument && e.ownerDocument.defaultView;
4233
4233
  return t || Nn;
4234
4234
  }, da = Zn(0, 0, 0, 0);
@@ -4243,7 +4243,7 @@ function Fo(e) {
4243
4243
  return r + jn(i);
4244
4244
  }, 0);
4245
4245
  }
4246
- function ku(e) {
4246
+ function Hu(e) {
4247
4247
  for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, o = t; r < o.length; r++) {
4248
4248
  var i = o[r], a = e["padding-" + i];
4249
4249
  n[i] = jn(a);
@@ -4258,8 +4258,8 @@ function Au(e) {
4258
4258
  var t = e.clientWidth, n = e.clientHeight;
4259
4259
  if (!t && !n)
4260
4260
  return da;
4261
- var r = kt(e).getComputedStyle(e), o = ku(r), i = o.left + o.right, a = o.top + o.bottom, l = jn(r.width), s = jn(r.height);
4262
- if (r.boxSizing === "border-box" && (Math.round(l + i) !== t && (l -= Fo(r, "left", "right") + i), Math.round(s + a) !== n && (s -= Fo(r, "top", "bottom") + a)), !Uu(e)) {
4261
+ var r = Wt(e).getComputedStyle(e), o = Hu(r), i = o.left + o.right, a = o.top + o.bottom, l = jn(r.width), s = jn(r.height);
4262
+ if (r.boxSizing === "border-box" && (Math.round(l + i) !== t && (l -= Fo(r, "left", "right") + i), Math.round(s + a) !== n && (s -= Fo(r, "top", "bottom") + a)), !qu(e)) {
4263
4263
  var c = Math.round(l + i) - t, u = Math.round(s + a) - n;
4264
4264
  Math.abs(c) !== 1 && (l -= c), Math.abs(u) !== 1 && (s -= u);
4265
4265
  }
@@ -4267,15 +4267,15 @@ function Au(e) {
4267
4267
  }
4268
4268
  var Fu = /* @__PURE__ */ function() {
4269
4269
  return typeof SVGGraphicsElement < "u" ? function(e) {
4270
- return e instanceof kt(e).SVGGraphicsElement;
4270
+ return e instanceof Wt(e).SVGGraphicsElement;
4271
4271
  } : function(e) {
4272
- return e instanceof kt(e).SVGElement && typeof e.getBBox == "function";
4272
+ return e instanceof Wt(e).SVGElement && typeof e.getBBox == "function";
4273
4273
  };
4274
4274
  }();
4275
- function Uu(e) {
4276
- return e === kt(e).document.documentElement;
4277
- }
4278
4275
  function qu(e) {
4276
+ return e === Wt(e).document.documentElement;
4277
+ }
4278
+ function Uu(e) {
4279
4279
  return Mr ? Fu(e) ? Wu(e) : Au(e) : da;
4280
4280
  }
4281
4281
  function Bu(e) {
@@ -4301,7 +4301,7 @@ var Gu = (
4301
4301
  this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Zn(0, 0, 0, 0), this.target = t;
4302
4302
  }
4303
4303
  return e.prototype.isActive = function() {
4304
- var t = qu(this.target);
4304
+ var t = Uu(this.target);
4305
4305
  return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
4306
4306
  }, e.prototype.broadcastRect = function() {
4307
4307
  var t = this.contentRect_;
@@ -4329,7 +4329,7 @@ var Gu = (
4329
4329
  if (!arguments.length)
4330
4330
  throw new TypeError("1 argument required, but only 0 present.");
4331
4331
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
4332
- if (!(t instanceof kt(t).Element))
4332
+ if (!(t instanceof Wt(t).Element))
4333
4333
  throw new TypeError('parameter 1 is not of type "Element".');
4334
4334
  var n = this.observations_;
4335
4335
  n.has(t) || (n.set(t, new Gu(t)), this.controller_.addObserver(this), this.controller_.refresh());
@@ -4338,7 +4338,7 @@ var Gu = (
4338
4338
  if (!arguments.length)
4339
4339
  throw new TypeError("1 argument required, but only 0 present.");
4340
4340
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
4341
- if (!(t instanceof kt(t).Element))
4341
+ if (!(t instanceof Wt(t).Element))
4342
4342
  throw new TypeError('parameter 1 is not of type "Element".');
4343
4343
  var n = this.observations_;
4344
4344
  n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
@@ -4371,7 +4371,7 @@ var Gu = (
4371
4371
  throw new TypeError("Cannot call a class as a function.");
4372
4372
  if (!arguments.length)
4373
4373
  throw new TypeError("1 argument required, but only 0 present.");
4374
- var n = Hu.getInstance(), r = new Yu(t, n, this);
4374
+ var n = ku.getInstance(), r = new Yu(t, n, this);
4375
4375
  fa.set(this, r);
4376
4376
  }
4377
4377
  return e;
@@ -4398,7 +4398,7 @@ Object.defineProperty(fo, "__esModule", {
4398
4398
  value: !0
4399
4399
  });
4400
4400
  fo.default = ad;
4401
- var Sn = nd(Ve), Qu = ho(ct), ed = ho(Ju), td = ho(rt);
4401
+ var Sn = nd(ze), Qu = ho(ut), ed = ho(Ju), td = ho(ot);
4402
4402
  function ho(e) {
4403
4403
  return e && e.__esModule ? e : { default: e };
4404
4404
  }
@@ -4503,16 +4503,16 @@ function ad(e) {
4503
4503
  }), t;
4504
4504
  }
4505
4505
  (function(e) {
4506
- e.exports = pn.default, e.exports.utils = U, e.exports.calculateUtils = Be, e.exports.Responsive = Kn.default, e.exports.Responsive.utils = Ot, e.exports.WidthProvider = fo.default;
4506
+ e.exports = pn.default, e.exports.utils = q, e.exports.calculateUtils = Be, e.exports.Responsive = Kn.default, e.exports.Responsive.utils = Ot, e.exports.WidthProvider = fo.default;
4507
4507
  })(Oi);
4508
4508
  var sd = Oi.exports;
4509
- const ld = /* @__PURE__ */ Ur(sd), Nr = {
4509
+ const ld = /* @__PURE__ */ qr(sd), Nr = {
4510
4510
  type: Ce.COMMAND,
4511
4511
  id: "sheet.command.delete-conditional-rule",
4512
4512
  handler(e, t) {
4513
4513
  if (!t)
4514
4514
  return !1;
4515
- const n = e.get(Wt), r = e.get(de), o = e.get(ne), i = _e(o, t);
4515
+ const n = e.get(At), r = e.get(de), o = e.get(ne), i = _e(o, t);
4516
4516
  if (!i)
4517
4517
  return !1;
4518
4518
  const { unitId: a, subUnitId: l } = i, s = { unitId: a, subUnitId: l, cfId: t.cfId }, c = Ut(e, s), u = r.syncExecuteCommand(Qe.id, s);
@@ -4524,22 +4524,22 @@ const ld = /* @__PURE__ */ Ur(sd), Nr = {
4524
4524
  handler(e, t) {
4525
4525
  if (!t)
4526
4526
  return !1;
4527
- const n = e.get(Wt), r = e.get(de), o = e.get(ne), i = e.get(ue), a = _e(o, t);
4527
+ const n = e.get(At), r = e.get(de), o = e.get(ne), i = e.get(ue), a = _e(o, t);
4528
4528
  if (!a)
4529
4529
  return !1;
4530
4530
  const { unitId: l, subUnitId: s } = a, c = Aa(t.start, t.end, i.getSubunitRules(l, s) || [], (b) => b.cfId);
4531
4531
  if (!c)
4532
4532
  return !1;
4533
- const [u, h] = c, d = { unitId: l, subUnitId: s, start: u, end: h }, g = Fa(d), m = r.syncExecuteCommand(Pn.id, d);
4533
+ const [u, h] = c, d = { unitId: l, subUnitId: s, start: u, end: h }, g = Fa(d), m = r.syncExecuteCommand(Dn.id, d);
4534
4534
  return m && n.pushUndoRedo({
4535
4535
  unitID: l,
4536
- redoMutations: [{ id: Pn.id, params: d }],
4536
+ redoMutations: [{ id: Dn.id, params: d }],
4537
4537
  undoMutations: g
4538
4538
  }), m;
4539
4539
  }
4540
4540
  }, cd = "univer-cf-preview", Cn = {
4541
4541
  cfPreview: cd
4542
- }, Bt = (e) => {
4542
+ }, Gt = (e) => {
4543
4543
  var o, i;
4544
4544
  const t = e.rule;
4545
4545
  if (!t)
@@ -4547,7 +4547,7 @@ const ld = /* @__PURE__ */ Ur(sd), Nr = {
4547
4547
  const n = ve(() => {
4548
4548
  if (t.type === j.colorScale) {
4549
4549
  const a = t.config.map((c, u) => ({ color: new ci(c.color), value: u })), l = a.length - 1;
4550
- return new Array(5).fill("").map((c, u, h) => u * l / (h.length - 1)).map((c) => Ua(a, c));
4550
+ return new Array(5).fill("").map((c, u, h) => u * l / (h.length - 1)).map((c) => qa(a, c));
4551
4551
  }
4552
4552
  return null;
4553
4553
  }, [t]), r = ve(() => {
@@ -4568,9 +4568,9 @@ const ld = /* @__PURE__ */ Ur(sd), Nr = {
4568
4568
  case j.colorScale:
4569
4569
  return n && /* @__PURE__ */ f.jsx("div", { className: Cn.cfPreview, children: n.map((a, l) => /* @__PURE__ */ f.jsx("div", { style: { width: `${100 / n.length}%`, height: "100%", background: a } }, l)) });
4570
4570
  case j.iconSet:
4571
- return r && /* @__PURE__ */ f.jsx("div", { className: Cn.cfPreview, children: r.map((a, l) => a ? /* @__PURE__ */ f.jsx("img", { style: { height: "100%" }, src: a }, l) : /* @__PURE__ */ f.jsx(Vn, {}, l)) });
4571
+ return r && /* @__PURE__ */ f.jsx("div", { className: Cn.cfPreview, children: r.map((a, l) => a ? /* @__PURE__ */ f.jsx("img", { style: { height: "100%" }, src: a }, l) : /* @__PURE__ */ f.jsx(zn, {}, l)) });
4572
4572
  case j.highlightCell: {
4573
- const { ul: a, st: l, it: s, bl: c, bg: u, cl: h } = t.style, d = (a == null ? void 0 : a.s) === Le.TRUE, g = (l == null ? void 0 : l.s) === Le.TRUE, m = s === Le.TRUE, b = c === Le.TRUE, x = (o = u == null ? void 0 : u.rgb) != null ? o : qa, w = (i = h == null ? void 0 : h.rgb) != null ? i : Ba, y = {
4573
+ const { ul: a, st: l, it: s, bl: c, bg: u, cl: h } = t.style, d = (a == null ? void 0 : a.s) === Le.TRUE, g = (l == null ? void 0 : l.s) === Le.TRUE, m = s === Le.TRUE, b = c === Le.TRUE, x = (o = u == null ? void 0 : u.rgb) != null ? o : Ua, w = (i = h == null ? void 0 : h.rgb) != null ? i : Ba, y = {
4574
4574
  fontWeight: b ? "bold" : void 0,
4575
4575
  fontStyle: m ? "italic" : void 0,
4576
4576
  textDecoration: `${d ? "underline" : ""} ${g ? "line-through" : ""}`.replace(/^ /, "") || void 0,
@@ -4734,7 +4734,7 @@ const ld = /* @__PURE__ */ Ur(sd), Nr = {
4734
4734
  }
4735
4735
  }
4736
4736
  }
4737
- }, bg = ud, dd = {
4737
+ }, Sg = ud, dd = {
4738
4738
  sheet: {
4739
4739
  cf: {
4740
4740
  title: "条件格式",
@@ -4887,19 +4887,172 @@ const ld = /* @__PURE__ */ Ur(sd), Nr = {
4887
4887
  }
4888
4888
  }
4889
4889
  }
4890
- }, fd = dd;
4891
- var hd = Object.defineProperty, pd = Object.getOwnPropertyDescriptor, gd = (e, t, n, r) => {
4892
- for (var o = r > 1 ? void 0 : r ? pd(t, n) : t, i = e.length - 1, a; i >= 0; i--)
4890
+ }, fd = dd, hd = {
4891
+ sheet: {
4892
+ cf: {
4893
+ title: "Условное форматирование",
4894
+ menu: {
4895
+ manageConditionalFormatting: "Управление условным форматированием",
4896
+ createConditionalFormatting: "Создание условного форматирования",
4897
+ clearRangeRules: "Очистить правила для выбранного диапазона",
4898
+ clearWorkSheetRules: "Очистить правила для всего листа"
4899
+ },
4900
+ form: {
4901
+ lessThan: "Значение должно быть меньше {0}",
4902
+ lessThanOrEqual: "Значение должно быть меньше или равно {0}",
4903
+ greaterThan: "Значение должно быть больше {0}",
4904
+ greaterThanOrEqual: "Значение должно быть больше или равно {0}",
4905
+ rangeSelector: "Выберите диапазон или введите значение"
4906
+ },
4907
+ iconSet: {
4908
+ direction: "Направление",
4909
+ shape: "Форма",
4910
+ mark: "Знак",
4911
+ rank: "Ранг",
4912
+ rule: "Правило",
4913
+ icon: "Иконка",
4914
+ type: "Тип",
4915
+ value: "Значение",
4916
+ reverseIconOrder: "Обратный порядок иконок",
4917
+ and: "И",
4918
+ when: "Когда",
4919
+ onlyShowIcon: "Показывать только иконку"
4920
+ },
4921
+ symbol: {
4922
+ greaterThan: ">",
4923
+ greaterThanOrEqual: ">=",
4924
+ lessThan: "<",
4925
+ lessThanOrEqual: "<="
4926
+ },
4927
+ panel: {
4928
+ createRule: "Создать правило",
4929
+ clear: "Очистить все правила",
4930
+ range: "Применить диапазон",
4931
+ styleType: "Тип стиля",
4932
+ submit: "Подтвердить",
4933
+ cancel: "Отменить",
4934
+ rankAndAverage: "Верх/Низ/Среднее",
4935
+ styleRule: "Правило стиля",
4936
+ isNotBottom: "Верх",
4937
+ isBottom: "Низ",
4938
+ greaterThanAverage: "Больше среднего",
4939
+ lessThanAverage: "Меньше среднего",
4940
+ medianValue: "Медианное значение",
4941
+ fillType: "Тип заполнения",
4942
+ pureColor: "Сплошной цвет",
4943
+ gradient: "Градиент",
4944
+ colorSet: "Набор цветов",
4945
+ positive: "Положительный",
4946
+ native: "Отрицательный",
4947
+ workSheet: "Весь лист",
4948
+ selectedRange: "Выбранный диапазон",
4949
+ managerRuleSelect: "Управление правилами {0}",
4950
+ onlyShowDataBar: "Показывать только гистограммы данных"
4951
+ },
4952
+ preview: {
4953
+ describe: {
4954
+ beginsWith: "Начинается с {0}",
4955
+ endsWith: "Заканчивается на {0}",
4956
+ containsText: "Содержит текст {0}",
4957
+ notContainsText: "Не содержит текст {0}",
4958
+ equal: "Равно {0}",
4959
+ notEqual: "Не равно {0}",
4960
+ containsBlanks: "Содержит пустые ячейки",
4961
+ notContainsBlanks: "Не содержит пустых ячеек",
4962
+ containsErrors: "Содержит ошибки",
4963
+ notContainsErrors: "Не содержит ошибок",
4964
+ greaterThan: "Больше чем {0}",
4965
+ greaterThanOrEqual: "Больше или равно {0}",
4966
+ lessThan: "Меньше чем {0}",
4967
+ lessThanOrEqual: "Меньше или равно {0}",
4968
+ notBetween: "Не между {0} и {1}",
4969
+ between: "Между {0} и {1}",
4970
+ yesterday: "Вчера",
4971
+ tomorrow: "Завтра",
4972
+ last7Days: "Последние 7 дней",
4973
+ thisMonth: "Этот месяц",
4974
+ lastMonth: "Прошлый месяц",
4975
+ nextMonth: "Следующий месяц",
4976
+ thisWeek: "Эта неделя",
4977
+ lastWeek: "Прошлая неделя",
4978
+ nextWeek: "Следующая неделя",
4979
+ today: "Сегодня",
4980
+ topN: "Топ {0}",
4981
+ bottomN: "Низ {0}",
4982
+ topNPercent: "Топ {0}%",
4983
+ bottomNPercent: "Низ {0}%"
4984
+ }
4985
+ },
4986
+ operator: {
4987
+ beginsWith: "Начинается с",
4988
+ endsWith: "Заканчивается на",
4989
+ containsText: "Содержит текст",
4990
+ notContainsText: "Не содержит текст",
4991
+ equal: "Равно",
4992
+ notEqual: "Не равно",
4993
+ containsBlanks: "Содержит пустые ячейки",
4994
+ notContainsBlanks: "Не содержит пустых ячеек",
4995
+ containsErrors: "Содержит ошибки",
4996
+ notContainsErrors: "Не содержит ошибок",
4997
+ greaterThan: "Больше чем",
4998
+ greaterThanOrEqual: "Больше или равно",
4999
+ lessThan: "Меньше чем",
5000
+ lessThanOrEqual: "Меньше или равно",
5001
+ notBetween: "Не между",
5002
+ between: "Между",
5003
+ yesterday: "Вчера",
5004
+ tomorrow: "Завтра",
5005
+ last7Days: "Последние 7 дней",
5006
+ thisMonth: "Этот месяц",
5007
+ lastMonth: "Прошлый месяц",
5008
+ nextMonth: "Следующий месяц",
5009
+ thisWeek: "Эта неделя",
5010
+ lastWeek: "Прошлая неделя",
5011
+ nextWeek: "Следующая неделя",
5012
+ today: "Сегодня"
5013
+ },
5014
+ ruleType: {
5015
+ highlightCell: "Выделение ячеек",
5016
+ dataBar: "Гистограмма данных",
5017
+ colorScale: "Цветовая шкала",
5018
+ formula: "Пользовательская формула",
5019
+ iconSet: "Набор иконок",
5020
+ duplicateValues: "Дублирующиеся значения",
5021
+ uniqueValues: "Уникальные значения"
5022
+ },
5023
+ subRuleType: {
5024
+ uniqueValues: "Уникальные значения",
5025
+ duplicateValues: "Дублирующиеся значения",
5026
+ rank: "Ранг",
5027
+ text: "Текст",
5028
+ timePeriod: "Период времени",
5029
+ number: "Число",
5030
+ average: "Среднее"
5031
+ },
5032
+ valueType: {
5033
+ num: "Число",
5034
+ min: "Минимум",
5035
+ max: "Максимум",
5036
+ percent: "Процент",
5037
+ percentile: "Процентиль",
5038
+ formula: "Формула",
5039
+ none: "Нет"
5040
+ }
5041
+ }
5042
+ }
5043
+ }, Cg = hd;
5044
+ var pd = Object.defineProperty, gd = Object.getOwnPropertyDescriptor, md = (e, t, n, r) => {
5045
+ for (var o = r > 1 ? void 0 : r ? gd(t, n) : t, i = e.length - 1, a; i >= 0; i--)
4893
5046
  (a = e[i]) && (o = (r ? a(t, n, o) : a(o)) || o);
4894
- return r && o && hd(t, n, o), o;
4895
- }, md = (e, t) => (n, r) => t(n, r, e);
4896
- let ln = class extends it {
5047
+ return r && o && pd(t, n, o), o;
5048
+ }, vd = (e, t) => (n, r) => t(n, r, e);
5049
+ let ln = class extends at {
4897
5050
  constructor(t) {
4898
5051
  super();
4899
- dt(this, "_initLocal", () => {
5052
+ et(this, "_initLocal", () => {
4900
5053
  this._localeService.load({ zhCN: fd });
4901
5054
  });
4902
- dt(this, "_findReplaceIndex", (t) => {
5055
+ et(this, "_findReplaceIndex", (t) => {
4903
5056
  const n = /\{([^}]+)?\}/g, r = [];
4904
5057
  let o = n.exec(t);
4905
5058
  for (; o; )
@@ -4931,11 +5084,11 @@ let ln = class extends it {
4931
5084
  return [];
4932
5085
  }
4933
5086
  };
4934
- ln = gd([
4935
- at(st.Rendered, ln),
4936
- md(0, B($e))
5087
+ ln = md([
5088
+ st(lt.Rendered, ln),
5089
+ vd(0, B($e))
4937
5090
  ], ln);
4938
- const vd = (e = []) => {
5091
+ const yd = (e = []) => {
4939
5092
  const t = oe(Is);
4940
5093
  me(() => {
4941
5094
  const n = e.map((r) => t.addShape({
@@ -4964,26 +5117,26 @@ const vd = (e = []) => {
4964
5117
  });
4965
5118
  };
4966
5119
  }, [e]);
4967
- }, yd = "univer-cf-rule-list", bd = "univer-rule-selector", Sd = "univer-select", Cd = "univer-select-selector", wd = "univer-select-selection-item", _d = "univer-select-selection-search-input", xd = "univer-btn-list", Rd = "univer-gap", Td = "univer-icon", Id = "univer-disabled", Ed = "univer-rule-item", Od = "univer-rule-describe", Pd = "univer-rule-type", Dd = "univer-rule-range", Md = "univer-active", $d = "univer-draggableHandle", Nd = "univer-delete-item", jd = "univer-grid-layout-wrap", Ld = "univer-react-grid-item", he = {
4968
- cfRuleList: yd,
4969
- ruleSelector: bd,
4970
- select: Sd,
4971
- selectSelector: Cd,
4972
- selectSelectionItem: wd,
4973
- selectSelectionSearchInput: _d,
4974
- btnList: xd,
4975
- gap: Rd,
4976
- icon: Td,
4977
- disabled: Id,
4978
- ruleItem: Ed,
4979
- ruleDescribe: Od,
5120
+ }, bd = "univer-cf-rule-list", Sd = "univer-rule-selector", Cd = "univer-select", wd = "univer-select-selector", _d = "univer-select-selection-item", xd = "univer-select-selection-search-input", Rd = "univer-btn-list", Td = "univer-gap", Id = "univer-icon", Ed = "univer-disabled", Od = "univer-rule-item", Dd = "univer-rule-describe", Pd = "univer-rule-type", Md = "univer-rule-range", $d = "univer-active", Nd = "univer-draggableHandle", jd = "univer-delete-item", Ld = "univer-grid-layout-wrap", Vd = "univer-react-grid-item", he = {
5121
+ cfRuleList: bd,
5122
+ ruleSelector: Sd,
5123
+ select: Cd,
5124
+ selectSelector: wd,
5125
+ selectSelectionItem: _d,
5126
+ selectSelectionSearchInput: xd,
5127
+ btnList: Rd,
5128
+ gap: Td,
5129
+ icon: Id,
5130
+ disabled: Ed,
5131
+ ruleItem: Od,
5132
+ ruleDescribe: Dd,
4980
5133
  ruleType: Pd,
4981
- ruleRange: Dd,
4982
- active: Md,
4983
- draggableHandle: $d,
4984
- deleteItem: Nd,
4985
- gridLayoutWrap: jd,
4986
- reactGridItem: Ld
5134
+ ruleRange: Md,
5135
+ active: $d,
5136
+ draggableHandle: Nd,
5137
+ deleteItem: jd,
5138
+ gridLayoutWrap: Ld,
5139
+ reactGridItem: Vd
4987
5140
  }, zd = (e, t) => {
4988
5141
  const n = e.rule;
4989
5142
  switch (n.type) {
@@ -5022,58 +5175,58 @@ const vd = (e = []) => {
5022
5175
  }
5023
5176
  }
5024
5177
  };
5025
- let Uo = 0;
5026
- const Vd = (e) => {
5027
- const { onClick: t } = e, n = oe(ue), r = oe(ne), o = oe(qt), i = oe(de), a = oe($e), l = oe(ln), s = r.getCurrentUnitForType(X.UNIVER_SHEET), c = s.getUnitId(), h = s.getActiveSheet().getSheetId(), [d, g] = N([]), [m, b] = N("2"), [x, w] = N(0), [y, v] = N(-1), [C, p] = N(Uo), R = un(null), I = [
5178
+ let qo = 0;
5179
+ const kd = (e) => {
5180
+ const { onClick: t } = e, n = oe(ue), r = oe(ne), o = oe(Bt), i = oe(de), a = oe($e), l = oe(ln), s = r.getCurrentUnitForType(X.UNIVER_SHEET), c = s.getUnitId(), h = s.getActiveSheet().getSheetId(), [d, g] = N([]), [m, b] = N("2"), [x, w] = N(0), [y, v] = N(-1), [C, p] = N(qo), R = un(null), I = [
5028
5181
  { label: a.t("sheet.cf.panel.workSheet"), value: "2" },
5029
5182
  { label: a.t("sheet.cf.panel.selectedRange"), value: "1" }
5030
5183
  ], _ = () => {
5031
- const z = n.getSubunitRules(c, h);
5032
- if (!z || !z.length)
5184
+ const V = n.getSubunitRules(c, h);
5185
+ if (!V || !V.length)
5033
5186
  return [];
5034
5187
  if (m === "1") {
5035
5188
  const G = o.getLast();
5036
5189
  if (!G)
5037
5190
  return [];
5038
5191
  const re = G.range;
5039
- return z.filter((ye) => ye.ranges.some((Re) => Ht.intersects(Re, re)));
5192
+ return V.filter((ye) => ye.ranges.some((Re) => Ht.intersects(Re, re)));
5040
5193
  } else if (m === "2")
5041
- return z;
5194
+ return V;
5042
5195
  return [];
5043
- }, [D, M] = N(_);
5044
- vd(d), me(() => {
5045
- const z = i.onCommandExecuted((G) => {
5046
- G.id === Hr.id && w(Math.random());
5196
+ }, [P, M] = N(_);
5197
+ yd(d), me(() => {
5198
+ const V = i.onCommandExecuted((G) => {
5199
+ G.id === kr.id && w(Math.random());
5047
5200
  });
5048
- return () => z.dispose();
5201
+ return () => V.dispose();
5049
5202
  }), me(() => {
5050
5203
  M(_);
5051
5204
  }, [m, x, c, h]), me(() => {
5052
5205
  if (m === "2")
5053
5206
  return;
5054
- const z = new nt((G) => {
5055
- const re = [is.id, Oe.id, Je.id, Qe.id, Pn.id], fe = i.onCommandExecuted((ye) => {
5056
- const { id: Re, params: Te } = ye, ke = r.getCurrentUnitForType(X.UNIVER_SHEET).getUnitId();
5057
- re.includes(Re) && Te.unitId === ke && G.next(null);
5207
+ const V = new rt((G) => {
5208
+ const re = [is.id, Oe.id, Je.id, Qe.id, Dn.id], fe = i.onCommandExecuted((ye) => {
5209
+ const { id: Re, params: Te } = ye, He = r.getCurrentUnitForType(X.UNIVER_SHEET).getUnitId();
5210
+ re.includes(Re) && Te.unitId === He && G.next(null);
5058
5211
  });
5059
5212
  return () => fe.dispose();
5060
5213
  }).pipe(Ro(16)).subscribe(() => {
5061
5214
  M(_);
5062
5215
  });
5063
5216
  return () => {
5064
- z.unsubscribe();
5217
+ V.unsubscribe();
5065
5218
  };
5066
5219
  }, [r, m, c, h]), me(() => {
5067
- const z = n.$ruleChange.subscribe(() => {
5220
+ const V = n.$ruleChange.subscribe(() => {
5068
5221
  w(Math.random());
5069
5222
  });
5070
- return () => z.unsubscribe();
5223
+ return () => V.unsubscribe();
5071
5224
  }, [n]), me(() => {
5072
- const z = () => {
5225
+ const V = () => {
5073
5226
  var ye;
5074
5227
  const fe = Math.max(0, (((ye = R.current) == null ? void 0 : ye.getBoundingClientRect().width) || 0) - 8);
5075
- return Uo = fe, fe;
5076
- }, re = new nt((fe) => {
5228
+ return qo = fe, fe;
5229
+ }, re = new rt((fe) => {
5077
5230
  const ye = document.querySelector(".univer-sidebar");
5078
5231
  if (ye) {
5079
5232
  let Re = setTimeout(() => {
@@ -5081,71 +5234,71 @@ const Vd = (e) => {
5081
5234
  }, 150);
5082
5235
  const Te = () => {
5083
5236
  Re && clearTimeout(Re), Re = null;
5084
- }, ke = (ut) => {
5085
- ut.propertyName === "width" && (Te(), fe.next());
5237
+ }, He = (dt) => {
5238
+ dt.propertyName === "width" && (Te(), fe.next());
5086
5239
  };
5087
- return ye.addEventListener("transitionend", ke), () => {
5088
- Te(), ye.removeEventListener("transitionend", ke);
5240
+ return ye.addEventListener("transitionend", He), () => {
5241
+ Te(), ye.removeEventListener("transitionend", He);
5089
5242
  };
5090
5243
  }
5091
5244
  }).pipe(Ro(16)).subscribe(() => {
5092
- p(z());
5245
+ p(V());
5093
5246
  });
5094
5247
  return () => {
5095
5248
  re.unsubscribe();
5096
5249
  };
5097
5250
  }, []);
5098
- const L = (z) => {
5251
+ const L = (V) => {
5099
5252
  const G = r.getCurrentUnitForType(X.UNIVER_SHEET).getUnitId(), re = r.getCurrentUnitForType(X.UNIVER_SHEET).getActiveSheet().getSheetId();
5100
- i.executeCommand(Nr.id, { unitId: G, subUnitId: re, cfId: z.cfId });
5101
- }, q = (z, G) => {
5253
+ i.executeCommand(Nr.id, { unitId: G, subUnitId: re, cfId: V.cfId });
5254
+ }, U = (V, G) => {
5102
5255
  v(G.y);
5103
- }, S = (z, G, re) => {
5256
+ }, S = (V, G, re) => {
5104
5257
  v(-1);
5105
- const fe = r.getCurrentUnitForType(X.UNIVER_SHEET).getUnitId(), ye = r.getCurrentUnitForType(X.UNIVER_SHEET).getActiveSheet().getSheetId(), Re = (ut) => {
5106
- const Yt = D.length;
5107
- return Math.min(Yt - 1, Math.max(0, ut));
5108
- }, Te = D[Re(G.y)].cfId, ke = D[Re(re.y)].cfId;
5109
- Te !== ke && i.executeCommand(ga.id, { unitId: fe, subUnitId: ye, start: { id: Te, type: "self" }, end: { id: ke, type: re.y > G.y ? "after" : "before" } });
5258
+ const fe = r.getCurrentUnitForType(X.UNIVER_SHEET).getUnitId(), ye = r.getCurrentUnitForType(X.UNIVER_SHEET).getActiveSheet().getSheetId(), Re = (dt) => {
5259
+ const Kt = P.length;
5260
+ return Math.min(Kt - 1, Math.max(0, dt));
5261
+ }, Te = P[Re(G.y)].cfId, He = P[Re(re.y)].cfId;
5262
+ Te !== He && i.executeCommand(ga.id, { unitId: fe, subUnitId: ye, start: { id: Te, type: "self" }, end: { id: He, type: re.y > G.y ? "after" : "before" } });
5110
5263
  }, T = () => {
5111
5264
  e.onCreate();
5112
5265
  }, J = () => {
5113
- m === "2" ? i.executeCommand(Ar.id) : m === "1" && D.map((G) => ({ unitId: c, subUnitId: h, cfId: G.cfId })).forEach((G) => {
5266
+ m === "2" ? i.executeCommand(Ar.id) : m === "1" && P.map((G) => ({ unitId: c, subUnitId: h, cfId: G.cfId })).forEach((G) => {
5114
5267
  i.executeCommand(Nr.id, G);
5115
5268
  });
5116
- }, xe = D.map((z, G) => ({ i: z.cfId, x: 0, w: 12, y: G, h: 1, isResizable: !1 }));
5269
+ }, xe = P.map((V, G) => ({ i: V.cfId, x: 0, w: 12, y: G, h: 1, isResizable: !1 }));
5117
5270
  return /* @__PURE__ */ f.jsxs("div", { className: he.cfRuleList, children: [
5118
5271
  /* @__PURE__ */ f.jsxs("div", { className: he.ruleSelector, children: [
5119
5272
  /* @__PURE__ */ f.jsx("div", { children: l.tWithReactNode(
5120
5273
  "sheet.cf.panel.managerRuleSelect",
5121
- /* @__PURE__ */ f.jsx(ze, { className: he.select, options: I, value: m, onChange: (z) => {
5122
- b(z);
5274
+ /* @__PURE__ */ f.jsx(Ve, { className: he.select, options: I, value: m, onChange: (V) => {
5275
+ b(V);
5123
5276
  } })
5124
- ).map((z, G) => /* @__PURE__ */ f.jsx("span", { children: z }, G)) }),
5277
+ ).map((V, G) => /* @__PURE__ */ f.jsx("span", { children: V }, G)) }),
5125
5278
  /* @__PURE__ */ f.jsxs("div", { className: he.btnList, children: [
5126
5279
  /* @__PURE__ */ f.jsx(Io, { title: a.t("sheet.cf.panel.createRule"), placement: "bottom", children: /* @__PURE__ */ f.jsx("div", { className: `${he.icon}`, onClick: T, children: /* @__PURE__ */ f.jsx(Js, {}) }) }),
5127
- D.length ? /* @__PURE__ */ f.jsx(Io, { title: a.t("sheet.cf.panel.clear"), placement: "bottom", children: /* @__PURE__ */ f.jsx("div", { className: `${he.gap} ${he.icon}`, onClick: J, children: /* @__PURE__ */ f.jsx(sr, {}) }) }) : /* @__PURE__ */ f.jsx("div", { className: `${he.gap} ${he.disabled}`, children: /* @__PURE__ */ f.jsx(sr, {}) })
5280
+ P.length ? /* @__PURE__ */ f.jsx(Io, { title: a.t("sheet.cf.panel.clear"), placement: "bottom", children: /* @__PURE__ */ f.jsx("div", { className: `${he.gap} ${he.icon}`, onClick: J, children: /* @__PURE__ */ f.jsx(sr, {}) }) }) : /* @__PURE__ */ f.jsx("div", { className: `${he.gap} ${he.disabled}`, children: /* @__PURE__ */ f.jsx(sr, {}) })
5128
5281
  ] })
5129
5282
  ] }),
5130
5283
  /* @__PURE__ */ f.jsx("div", { ref: R, className: he.gridLayoutWrap, children: C ? /* @__PURE__ */ f.jsx(
5131
5284
  ld,
5132
5285
  {
5133
5286
  onDragStop: S,
5134
- onDragStart: q,
5287
+ onDragStart: U,
5135
5288
  layout: xe,
5136
5289
  cols: 12,
5137
5290
  rowHeight: 60,
5138
5291
  width: C,
5139
5292
  margin: [0, 10],
5140
5293
  draggableHandle: ".draggableHandle",
5141
- children: D.map((z, G) => /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsxs(
5294
+ children: P.map((V, G) => /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsxs(
5142
5295
  "div",
5143
5296
  {
5144
5297
  onMouseMove: () => {
5145
- z.ranges !== d && g(z.ranges);
5298
+ V.ranges !== d && g(V.ranges);
5146
5299
  },
5147
5300
  onMouseLeave: () => g([]),
5148
- onClick: () => t(z),
5301
+ onClick: () => t(V),
5149
5302
  className: `${he.ruleItem} ${y === G ? he.active : ""}`,
5150
5303
  children: [
5151
5304
  /* @__PURE__ */ f.jsx(
@@ -5157,23 +5310,23 @@ const Vd = (e) => {
5157
5310
  }
5158
5311
  ),
5159
5312
  /* @__PURE__ */ f.jsxs("div", { className: he.ruleDescribe, children: [
5160
- /* @__PURE__ */ f.jsx("div", { className: he.ruleType, children: zd(z, a) }),
5161
- /* @__PURE__ */ f.jsx("div", { className: he.ruleRange, children: z.ranges.map((re) => gi(re)).join(",") })
5313
+ /* @__PURE__ */ f.jsx("div", { className: he.ruleType, children: zd(V, a) }),
5314
+ /* @__PURE__ */ f.jsx("div", { className: he.ruleRange, children: V.ranges.map((re) => gi(re)).join(",") })
5162
5315
  ] }),
5163
- /* @__PURE__ */ f.jsx("div", { className: he.preview, children: /* @__PURE__ */ f.jsx(Bt, { rule: z.rule }) }),
5316
+ /* @__PURE__ */ f.jsx("div", { className: he.preview, children: /* @__PURE__ */ f.jsx(Gt, { rule: V.rule }) }),
5164
5317
  /* @__PURE__ */ f.jsx(
5165
5318
  "div",
5166
5319
  {
5167
5320
  className: `${he.deleteItem} ${y === G ? he.active : ""}`,
5168
5321
  onClick: (re) => {
5169
- re.stopPropagation(), L(z);
5322
+ re.stopPropagation(), L(V);
5170
5323
  },
5171
5324
  children: /* @__PURE__ */ f.jsx(sr, {})
5172
5325
  }
5173
5326
  )
5174
5327
  ]
5175
5328
  }
5176
- ) }, `${z.cfId}`))
5329
+ ) }, `${V.cfId}`))
5177
5330
  }
5178
5331
  ) : null })
5179
5332
  ] });
@@ -5183,7 +5336,7 @@ const Vd = (e) => {
5183
5336
  handler(e, t) {
5184
5337
  if (!t)
5185
5338
  return !1;
5186
- const { rule: n } = t, r = e.get(Wt), o = e.get(de), i = e.get(ue), a = e.get(ne), l = _e(a);
5339
+ const { rule: n } = t, r = e.get(At), o = e.get(de), i = e.get(ue), a = e.get(ne), l = _e(a);
5187
5340
  if (!l)
5188
5341
  return !1;
5189
5342
  const { unitId: s, subUnitId: c } = l, u = i.createCfId(s, c), h = { unitId: s, subUnitId: c, rule: { ...n, cfId: n.cfId || u } }, d = fi(e, h), g = o.syncExecuteCommand(Oe.id, h);
@@ -5199,18 +5352,18 @@ const Vd = (e) => {
5199
5352
  handler(e, t) {
5200
5353
  if (!t)
5201
5354
  return !1;
5202
- const n = e.get(Wt), r = e.get(de), o = e.get(ne), i = _e(o, t);
5355
+ const n = e.get(At), r = e.get(de), o = e.get(ne), i = _e(o, t);
5203
5356
  if (!i)
5204
5357
  return !1;
5205
- const { unitId: a, subUnitId: l } = i, s = { unitId: a, subUnitId: l, rule: t.rule }, c = Ft(e, s), u = r.syncExecuteCommand(Je.id, s);
5358
+ const { unitId: a, subUnitId: l } = i, s = { unitId: a, subUnitId: l, rule: t.rule }, c = qt(e, s), u = r.syncExecuteCommand(Je.id, s);
5206
5359
  return u && n.pushUndoRedo({ unitID: a, undoMutations: c, redoMutations: [{ id: Je.id, params: s }] }), u;
5207
5360
  }
5208
- }, Hd = ui("beforeSubmit"), kd = ui("submit"), Wd = "univer-cf-color-picker", Ad = "univer-cf-color-picker-icon", Fd = "univer-icon-dropdown", gr = {
5209
- cfColorPicker: Wd,
5210
- cfColorPickerIcon: Ad,
5211
- iconDropdown: Fd
5361
+ }, Hd = ui("beforeSubmit"), Wd = ui("submit"), Ad = "univer-cf-color-picker", Fd = "univer-cf-color-picker-icon", qd = "univer-icon-dropdown", gr = {
5362
+ cfColorPicker: Ad,
5363
+ cfColorPickerIcon: Fd,
5364
+ iconDropdown: qd
5212
5365
  }, wt = (e) => {
5213
- const { color: t, onChange: n, disable: r = !1, iconId: o = "PaintBucket", className: i, isNeedDropdownIcon: a = !0 } = e, l = oe(kr), s = ve(() => new ci(t), [t]), c = l.get(o);
5366
+ const { color: t, onChange: n, disable: r = !1, iconId: o = "PaintBucket", className: i, isNeedDropdownIcon: a = !0 } = e, l = oe(Hr), s = ve(() => new ci(t), [t]), c = l.get(o);
5214
5367
  return c && (r ? /* @__PURE__ */ f.jsx(c, { className: i, extend: { colorChannel1: s.isValid ? t : "rgb(var(--primary-color))" } }) : /* @__PURE__ */ f.jsx(
5215
5368
  Wr,
5216
5369
  {
@@ -5221,33 +5374,33 @@ const Vd = (e) => {
5221
5374
  ] })
5222
5375
  }
5223
5376
  ));
5224
- }, Ud = "univer-cf-rule-style-editor", qd = "univer-cf-preview-wrap", Bd = "univer-text", Gd = "univer-position-relative", Xd = "univer-btn-list", Yd = "univer-util-item", Kd = "univer-icon-set", Zd = "univer-render-config", Jd = "univer-flex", Qd = "univer-width45", ef = "univer-icon-wrap", tf = "univer-icon", nf = "univer-dropdown-icon", rf = "univer-error-input", of = "univer-error-text", af = "univer-icon-group-list", sf = "univer-title", lf = "univer-group", cf = "univer-item-content", uf = "univer-item-wrap", df = "univer-item", ff = "univer-icon-item-list-wrap", hf = "univer-none", pf = "univer-icon-item-list", gf = "univer-width100", mf = "univer-stress", O = {
5377
+ }, Ud = "univer-cf-rule-style-editor", Bd = "univer-cf-preview-wrap", Gd = "univer-text", Xd = "univer-position-relative", Yd = "univer-btn-list", Kd = "univer-util-item", Zd = "univer-icon-set", Jd = "univer-render-config", Qd = "univer-flex", ef = "univer-width45", tf = "univer-icon-wrap", nf = "univer-icon", rf = "univer-dropdown-icon", of = "univer-error-input", af = "univer-error-text", sf = "univer-icon-group-list", lf = "univer-title", cf = "univer-group", uf = "univer-item-content", df = "univer-item-wrap", ff = "univer-item", hf = "univer-icon-item-list-wrap", pf = "univer-none", gf = "univer-icon-item-list", mf = "univer-width100", vf = "univer-stress", O = {
5225
5378
  cfRuleStyleEditor: Ud,
5226
- cfPreviewWrap: qd,
5227
- text: Bd,
5228
- positionRelative: Gd,
5229
- btnList: Xd,
5230
- utilItem: Yd,
5231
- iconSet: Kd,
5232
- renderConfig: Zd,
5233
- flex: Jd,
5234
- width45: Qd,
5235
- iconWrap: ef,
5236
- icon: tf,
5237
- dropdownIcon: nf,
5238
- errorInput: rf,
5239
- errorText: of,
5240
- iconGroupList: af,
5241
- title: sf,
5242
- group: lf,
5243
- itemContent: cf,
5244
- itemWrap: uf,
5245
- item: df,
5246
- iconItemListWrap: ff,
5247
- none: hf,
5248
- iconItemList: pf,
5249
- width100: gf,
5250
- stress: mf
5379
+ cfPreviewWrap: Bd,
5380
+ text: Gd,
5381
+ positionRelative: Xd,
5382
+ btnList: Yd,
5383
+ utilItem: Kd,
5384
+ iconSet: Zd,
5385
+ renderConfig: Jd,
5386
+ flex: Qd,
5387
+ width45: ef,
5388
+ iconWrap: tf,
5389
+ icon: nf,
5390
+ dropdownIcon: rf,
5391
+ errorInput: of,
5392
+ errorText: af,
5393
+ iconGroupList: sf,
5394
+ title: lf,
5395
+ group: cf,
5396
+ itemContent: uf,
5397
+ itemWrap: df,
5398
+ item: ff,
5399
+ iconItemListWrap: hf,
5400
+ none: pf,
5401
+ iconItemList: gf,
5402
+ width100: mf,
5403
+ stress: vf
5251
5404
  }, gt = (e, t) => ({ label: t.t(`sheet.cf.valueType.${e}`), value: e }), mr = (e) => {
5252
5405
  const { type: t, className: n, onChange: r, id: o, value: i } = e, a = oe(ne), l = a.getCurrentUnitForType(X.UNIVER_SHEET).getUnitId(), s = a.getCurrentUnitForType(X.UNIVER_SHEET).getActiveSheet().getSheetId(), c = ve(() => String(i).startsWith("=") ? String(i) : "=", [i]), u = ve(() => [A.max, A.min, "none"].includes(t) ? { disabled: !0 } : [A.percent, A.percentile].includes(t) ? {
5253
5406
  min: 0,
@@ -5257,11 +5410,11 @@ const Vd = (e) => {
5257
5410
  max: Number.MAX_SAFE_INTEGER
5258
5411
  }, [t]);
5259
5412
  return t === A.formula ? /* @__PURE__ */ f.jsx(
5260
- zn,
5413
+ Vn,
5261
5414
  {
5262
5415
  openForSheetSubUnitId: s,
5263
5416
  openForSheetUnitId: l,
5264
- id: hn(`${lt}_colo_scale_${o}`),
5417
+ id: hn(`${ct}_colo_scale_${o}`),
5265
5418
  value: c,
5266
5419
  style: { maxWidth: "50%", marginLeft: 4 },
5267
5420
  canvasStyle: { fontSize: 10 },
@@ -5271,9 +5424,9 @@ const Vd = (e) => {
5271
5424
  }
5272
5425
  }
5273
5426
  ) : /* @__PURE__ */ f.jsx(St, { className: n, value: Number(e.value) || 0, onChange: (h) => e.onChange(h || 0), ...u });
5274
- }, vf = (e) => {
5275
- var q;
5276
- const { interceptorManager: t } = e, n = oe($e), r = ((q = e.rule) == null ? void 0 : q.type) === j.colorScale ? e.rule : void 0, o = [gt(A.num, n), gt(A.percent, n), gt(A.percentile, n), gt(A.formula, n)], i = [gt(A.min, n), ...o], a = [gt("none", n), ...o], l = [gt(A.max, n), ...o], [s, c] = N(() => {
5427
+ }, yf = (e) => {
5428
+ var U;
5429
+ const { interceptorManager: t } = e, n = oe($e), r = ((U = e.rule) == null ? void 0 : U.type) === j.colorScale ? e.rule : void 0, o = [gt(A.num, n), gt(A.percent, n), gt(A.percentile, n), gt(A.formula, n)], i = [gt(A.min, n), ...o], a = [gt("none", n), ...o], l = [gt(A.max, n), ...o], [s, c] = N(() => {
5277
5430
  var T;
5278
5431
  const S = A.min;
5279
5432
  return r && ((T = r.config[0]) == null ? void 0 : T.value.type) || S;
@@ -5310,7 +5463,7 @@ const Vd = (e) => {
5310
5463
  var T;
5311
5464
  const S = "#7790f3";
5312
5465
  return !r || r.config.length !== 3 ? S : ((T = r.config[1]) == null ? void 0 : T.color) || S;
5313
- }), [_, D] = N(() => {
5466
+ }), [_, P] = N(() => {
5314
5467
  var T;
5315
5468
  const S = "#2e55ef";
5316
5469
  return r && ((T = r.config[r.config.length - 1]) == null ? void 0 : T.color) || S;
@@ -5319,14 +5472,14 @@ const Vd = (e) => {
5319
5472
  minType: T,
5320
5473
  medianType: J,
5321
5474
  maxType: xe,
5322
- minValue: z,
5475
+ minValue: V,
5323
5476
  medianValue: G,
5324
5477
  maxValue: re,
5325
5478
  minColor: fe,
5326
5479
  medianColor: ye,
5327
5480
  maxColor: Re
5328
5481
  } = S, Te = [];
5329
- return Te.push({ color: fe, value: { type: T, value: z } }), J !== "none" && Te.push({ color: ye, value: { type: J, value: G } }), Te.push({ color: Re, value: { type: xe, value: re } }), { config: Te.map((ut, Yt) => ({ ...ut, index: Yt })), type: j.colorScale };
5482
+ return Te.push({ color: fe, value: { type: T, value: V } }), J !== "none" && Te.push({ color: ye, value: { type: J, value: G } }), Te.push({ color: Re, value: { type: xe, value: re } }), { config: Te.map((dt, Kt) => ({ ...dt, index: Kt })), type: j.colorScale };
5330
5483
  }, []);
5331
5484
  me(() => t.intercept(t.getInterceptPoints().submit, {
5332
5485
  handler() {
@@ -5338,11 +5491,11 @@ const Vd = (e) => {
5338
5491
  };
5339
5492
  return /* @__PURE__ */ f.jsxs("div", { children: [
5340
5493
  /* @__PURE__ */ f.jsx("div", { className: E.title, children: n.t("sheet.cf.panel.styleRule") }),
5341
- /* @__PURE__ */ f.jsx("div", { className: `${O.cfPreviewWrap}`, children: /* @__PURE__ */ f.jsx(Bt, { rule: M({ minType: s, medianType: u, maxType: d, minValue: m, medianValue: x, maxValue: y, minColor: C, medianColor: R, maxColor: _ }) }) }),
5494
+ /* @__PURE__ */ f.jsx("div", { className: `${O.cfPreviewWrap}`, children: /* @__PURE__ */ f.jsx(Gt, { rule: M({ minType: s, medianType: u, maxType: d, minValue: m, medianValue: x, maxValue: y, minColor: C, medianColor: R, maxColor: _ }) }) }),
5342
5495
  /* @__PURE__ */ f.jsx("div", { className: E.label, children: n.t("sheet.cf.valueType.min") }),
5343
5496
  /* @__PURE__ */ f.jsxs("div", { className: `${E.labelContainer} ${E.mTSm}`, children: [
5344
5497
  /* @__PURE__ */ f.jsx(
5345
- ze,
5498
+ Ve,
5346
5499
  {
5347
5500
  options: i,
5348
5501
  value: s,
@@ -5379,7 +5532,7 @@ const Vd = (e) => {
5379
5532
  /* @__PURE__ */ f.jsx("div", { className: E.label, children: n.t("sheet.cf.panel.medianValue") }),
5380
5533
  /* @__PURE__ */ f.jsxs("div", { className: `${E.labelContainer} ${E.mTSm}`, children: [
5381
5534
  /* @__PURE__ */ f.jsx(
5382
- ze,
5535
+ Ve,
5383
5536
  {
5384
5537
  options: a,
5385
5538
  value: u,
@@ -5416,7 +5569,7 @@ const Vd = (e) => {
5416
5569
  /* @__PURE__ */ f.jsx("div", { className: E.label, children: n.t("sheet.cf.valueType.max") }),
5417
5570
  /* @__PURE__ */ f.jsxs("div", { className: `${E.labelContainer} ${E.mTSm}`, children: [
5418
5571
  /* @__PURE__ */ f.jsx(
5419
- ze,
5572
+ Ve,
5420
5573
  {
5421
5574
  options: l,
5422
5575
  value: d,
@@ -5445,13 +5598,13 @@ const Vd = (e) => {
5445
5598
  className: E.mLXxs,
5446
5599
  color: _,
5447
5600
  onChange: (S) => {
5448
- D(S), L({ minType: s, medianType: u, maxType: d, minValue: m, medianValue: x, maxValue: y, minColor: C, medianColor: R, maxColor: S });
5601
+ P(S), L({ minType: s, medianType: u, maxType: d, minValue: m, medianValue: x, maxValue: y, minColor: C, medianColor: R, maxColor: S });
5449
5602
  }
5450
5603
  }
5451
5604
  )
5452
5605
  ] })
5453
5606
  ] });
5454
- }, jt = (e, t) => ({ label: t.t(`sheet.cf.valueType.${e}`), value: e }), qo = (e) => {
5607
+ }, jt = (e, t) => ({ label: t.t(`sheet.cf.valueType.${e}`), value: e }), Uo = (e) => {
5455
5608
  const { onChange: t, className: n, value: r, type: o, id: i, disabled: a = !1 } = e, l = oe(ne), s = l.getCurrentUnitForType(X.UNIVER_SHEET).getUnitId(), c = l.getCurrentUnitForType(X.UNIVER_SHEET).getActiveSheet().getSheetId(), u = un(r), h = ve(() => [A.percentile, A.percent].includes(o) ? {
5456
5609
  max: 100,
5457
5610
  min: 0
@@ -5462,9 +5615,9 @@ const Vd = (e) => {
5462
5615
  if (o === A.formula) {
5463
5616
  const d = String(u.current).startsWith("=") ? String(u.current) || "" : "=";
5464
5617
  return /* @__PURE__ */ f.jsx(
5465
- zn,
5618
+ Vn,
5466
5619
  {
5467
- id: hn(`${lt}_data_bar_${i}`),
5620
+ id: hn(`${ct}_data_bar_${i}`),
5468
5621
  value: d,
5469
5622
  openForSheetSubUnitId: c,
5470
5623
  openForSheetUnitId: s,
@@ -5489,9 +5642,9 @@ const Vd = (e) => {
5489
5642
  ...h
5490
5643
  }
5491
5644
  );
5492
- }, yf = (e) => {
5493
- var q;
5494
- const { interceptorManager: t } = e, n = oe($e), r = ((q = e.rule) == null ? void 0 : q.type) === j.dataBar ? e.rule : void 0, [o, i] = N(() => {
5645
+ }, bf = (e) => {
5646
+ var U;
5647
+ const { interceptorManager: t } = e, n = oe($e), r = ((U = e.rule) == null ? void 0 : U.type) === j.dataBar ? e.rule : void 0, [o, i] = N(() => {
5495
5648
  var T;
5496
5649
  const S = "0";
5497
5650
  return r ? (T = r.config) != null && T.isGradient ? "1" : "0" : S;
@@ -5537,14 +5690,14 @@ const Vd = (e) => {
5537
5690
  }), [o, w, g, v, b, a, s, t, p]);
5538
5691
  const _ = (S) => {
5539
5692
  e.onChange(I(S));
5540
- }, D = (S) => {
5693
+ }, P = (S) => {
5541
5694
  l(S), _({ isGradient: o, minValue: w, minValueType: g, maxValue: v, maxValueType: b, positiveColor: S, nativeColor: s, isShowValue: p });
5542
5695
  }, M = (S) => {
5543
5696
  c(S), _({ isGradient: o, minValue: w, minValueType: g, maxValue: v, maxValueType: b, positiveColor: a, nativeColor: S, isShowValue: p });
5544
5697
  }, L = (S) => u.map((T) => T.value).includes(S);
5545
5698
  return /* @__PURE__ */ f.jsxs("div", { children: [
5546
5699
  /* @__PURE__ */ f.jsx("div", { className: E.title, children: n.t("sheet.cf.panel.styleRule") }),
5547
- /* @__PURE__ */ f.jsx("div", { className: `${O.cfPreviewWrap}`, children: /* @__PURE__ */ f.jsx(Bt, { rule: I({ isGradient: o, minValue: w, minValueType: g, maxValue: v, maxValueType: b, positiveColor: a, nativeColor: s, isShowValue: p }) }) }),
5700
+ /* @__PURE__ */ f.jsx("div", { className: `${O.cfPreviewWrap}`, children: /* @__PURE__ */ f.jsx(Gt, { rule: I({ isGradient: o, minValue: w, minValueType: g, maxValue: v, maxValueType: b, positiveColor: a, nativeColor: s, isShowValue: p }) }) }),
5548
5701
  /* @__PURE__ */ f.jsxs("div", { children: [
5549
5702
  /* @__PURE__ */ f.jsx("div", { className: E.label, children: n.t("sheet.cf.panel.fillType") }),
5550
5703
  /* @__PURE__ */ f.jsxs("div", { className: `${E.mTSm} ${E.mLXxs} ${E.labelContainer} `, children: [
@@ -5563,7 +5716,7 @@ const Vd = (e) => {
5563
5716
  ),
5564
5717
  /* @__PURE__ */ f.jsxs("div", { className: `${O.utilItem} ${E.mLXl}`, children: [
5565
5718
  /* @__PURE__ */ f.jsx(
5566
- Dn,
5719
+ Pn,
5567
5720
  {
5568
5721
  checked: !p,
5569
5722
  onChange: (S) => {
@@ -5594,7 +5747,7 @@ const Vd = (e) => {
5594
5747
  wt,
5595
5748
  {
5596
5749
  color: a,
5597
- onChange: D
5750
+ onChange: P
5598
5751
  }
5599
5752
  )
5600
5753
  ] })
@@ -5604,7 +5757,7 @@ const Vd = (e) => {
5604
5757
  /* @__PURE__ */ f.jsx("div", { className: E.label, children: n.t("sheet.cf.valueType.min") }),
5605
5758
  /* @__PURE__ */ f.jsxs("div", { className: `${E.mTSm} ${E.labelContainer}`, children: [
5606
5759
  /* @__PURE__ */ f.jsx(
5607
- ze,
5760
+ Ve,
5608
5761
  {
5609
5762
  options: h,
5610
5763
  value: g,
@@ -5616,7 +5769,7 @@ const Vd = (e) => {
5616
5769
  }
5617
5770
  ),
5618
5771
  /* @__PURE__ */ f.jsx(
5619
- qo,
5772
+ Uo,
5620
5773
  {
5621
5774
  disabled: !L(g),
5622
5775
  id: "min",
@@ -5632,7 +5785,7 @@ const Vd = (e) => {
5632
5785
  /* @__PURE__ */ f.jsx("div", { className: E.label, children: n.t("sheet.cf.valueType.max") }),
5633
5786
  /* @__PURE__ */ f.jsxs("div", { className: `${E.mTSm} ${E.labelContainer}`, children: [
5634
5787
  /* @__PURE__ */ f.jsx(
5635
- ze,
5788
+ Ve,
5636
5789
  {
5637
5790
  options: d,
5638
5791
  value: b,
@@ -5644,7 +5797,7 @@ const Vd = (e) => {
5644
5797
  }
5645
5798
  ),
5646
5799
  /* @__PURE__ */ f.jsx(
5647
- qo,
5800
+ Uo,
5648
5801
  {
5649
5802
  disabled: !L(b),
5650
5803
  id: "max",
@@ -5659,12 +5812,12 @@ const Vd = (e) => {
5659
5812
  ] })
5660
5813
  ] })
5661
5814
  ] });
5662
- }, bf = "univer-cf-style-edit", Sf = "univer-button-item", Cf = "univer-isActive", Ye = {
5663
- cfStyleEdit: bf,
5664
- buttonItem: Sf,
5665
- isActive: Cf
5815
+ }, Sf = "univer-cf-style-edit", Cf = "univer-button-item", wf = "univer-isActive", Ye = {
5816
+ cfStyleEdit: Sf,
5817
+ buttonItem: Cf,
5818
+ isActive: wf
5666
5819
  }, wn = (e) => [Le.FALSE, void 0].includes(e) ? Le.TRUE : Le.FALSE, _n = (e) => e !== Le.FALSE, po = (e) => {
5667
- const { style: t, onChange: n, className: r } = e, o = oe(kr), [i, a] = N(() => {
5820
+ const { style: t, onChange: n, className: r } = e, o = oe(Hr), [i, a] = N(() => {
5668
5821
  if (t != null && t.bl)
5669
5822
  return t.bl;
5670
5823
  }), [l, s] = N(() => {
@@ -5692,14 +5845,14 @@ const Vd = (e) => {
5692
5845
  };
5693
5846
  g !== void 0 && (p.cl = { rgb: g }), b !== void 0 && (p.bg = { rgb: b }), h !== void 0 && (p.st = { s: h }), c !== void 0 && (p.ul = { s: c }), n(Ga(p));
5694
5847
  }, [i, l, c, h, g, b]), /* @__PURE__ */ f.jsxs("div", { className: `${Ye.cfStyleEdit} ${r}`, children: [
5695
- w && /* @__PURE__ */ f.jsx("div", { className: rt({ [Ye.isActive]: _n(i || Le.FALSE) }, Ye.buttonItem), onClick: () => a(wn(i)), children: /* @__PURE__ */ f.jsx(w, {}) }),
5696
- y && /* @__PURE__ */ f.jsx("div", { className: rt({ [Ye.isActive]: _n(l || Le.FALSE) }, Ye.buttonItem), onClick: () => s(wn(l)), children: /* @__PURE__ */ f.jsx(y, {}) }),
5697
- v && /* @__PURE__ */ f.jsx("div", { className: rt({ [Ye.isActive]: _n(c || Le.FALSE) }, Ye.buttonItem), onClick: () => u(wn(c)), children: /* @__PURE__ */ f.jsx(v, {}) }),
5698
- C && /* @__PURE__ */ f.jsx("div", { className: rt({ [Ye.isActive]: _n(h || Le.FALSE) }, Ye.buttonItem), onClick: () => d(wn(h)), children: /* @__PURE__ */ f.jsx(C, {}) }),
5848
+ w && /* @__PURE__ */ f.jsx("div", { className: ot({ [Ye.isActive]: _n(i || Le.FALSE) }, Ye.buttonItem), onClick: () => a(wn(i)), children: /* @__PURE__ */ f.jsx(w, {}) }),
5849
+ y && /* @__PURE__ */ f.jsx("div", { className: ot({ [Ye.isActive]: _n(l || Le.FALSE) }, Ye.buttonItem), onClick: () => s(wn(l)), children: /* @__PURE__ */ f.jsx(y, {}) }),
5850
+ v && /* @__PURE__ */ f.jsx("div", { className: ot({ [Ye.isActive]: _n(c || Le.FALSE) }, Ye.buttonItem), onClick: () => u(wn(c)), children: /* @__PURE__ */ f.jsx(v, {}) }),
5851
+ C && /* @__PURE__ */ f.jsx("div", { className: ot({ [Ye.isActive]: _n(h || Le.FALSE) }, Ye.buttonItem), onClick: () => d(wn(h)), children: /* @__PURE__ */ f.jsx(C, {}) }),
5699
5852
  /* @__PURE__ */ f.jsx(wt, { color: g, onChange: m, iconId: "FontColor" }),
5700
5853
  /* @__PURE__ */ f.jsx(wt, { color: b, onChange: x, iconId: "PaintBucket" })
5701
5854
  ] });
5702
- }, wf = (e) => {
5855
+ }, _f = (e) => {
5703
5856
  var x;
5704
5857
  const { onChange: t, interceptorManager: n } = e, r = oe($e), o = ((x = e.rule) == null ? void 0 : x.type) === j.highlightCell ? e.rule : void 0, i = [
5705
5858
  { label: r.t("sheet.cf.panel.isNotBottom"), value: "isNotBottom" },
@@ -5714,7 +5867,7 @@ const Vd = (e) => {
5714
5867
  case j.highlightCell:
5715
5868
  switch (o.subType) {
5716
5869
  case $.average:
5717
- return [H.greaterThan, H.greaterThanOrEqual].includes(o.operator) ? "greaterThanAverage" : [H.lessThan, H.lessThanOrEqual].includes(o.operator) ? "lessThanAverage" : w;
5870
+ return [k.greaterThan, k.greaterThanOrEqual].includes(o.operator) ? "greaterThanAverage" : [k.lessThan, k.lessThanOrEqual].includes(o.operator) ? "lessThanAverage" : w;
5718
5871
  case $.rank:
5719
5872
  return o.isBottom ? "isBottom" : "isNotBottom";
5720
5873
  }
@@ -5751,9 +5904,9 @@ const Vd = (e) => {
5751
5904
  if (y === "isBottom")
5752
5905
  return { type: j.highlightCell, subType: $.rank, isPercent: v, isBottom: !0, value: C, style: p };
5753
5906
  if (y === "greaterThanAverage")
5754
- return { type: j.highlightCell, subType: $.average, operator: H.greaterThan, style: p };
5907
+ return { type: j.highlightCell, subType: $.average, operator: k.greaterThan, style: p };
5755
5908
  if (y === "lessThanAverage")
5756
- return { type: j.highlightCell, subType: $.average, operator: H.lessThan, style: p };
5909
+ return { type: j.highlightCell, subType: $.average, operator: k.lessThan, style: p };
5757
5910
  };
5758
5911
  me(() => n.intercept(n.getInterceptPoints().submit, {
5759
5912
  handler() {
@@ -5766,7 +5919,7 @@ const Vd = (e) => {
5766
5919
  return /* @__PURE__ */ f.jsxs("div", { children: [
5767
5920
  /* @__PURE__ */ f.jsx("div", { className: `${E.title} ${E.mTBase}`, children: r.t("sheet.cf.panel.styleRule") }),
5768
5921
  /* @__PURE__ */ f.jsx(
5769
- ze,
5922
+ Ve,
5770
5923
  {
5771
5924
  className: `${O.width100} ${E.mTSm}`,
5772
5925
  value: a,
@@ -5791,7 +5944,7 @@ const Vd = (e) => {
5791
5944
  ),
5792
5945
  /* @__PURE__ */ f.jsxs("div", { className: `${E.mLSm} ${E.labelContainer} ${O.text}`, children: [
5793
5946
  /* @__PURE__ */ f.jsx(
5794
- Dn,
5947
+ Pn,
5795
5948
  {
5796
5949
  checked: u,
5797
5950
  onChange: (w) => {
@@ -5802,7 +5955,7 @@ const Vd = (e) => {
5802
5955
  r.t("sheet.cf.valueType.percent")
5803
5956
  ] })
5804
5957
  ] }),
5805
- /* @__PURE__ */ f.jsx("div", { className: `${O.cfPreviewWrap} `, children: /* @__PURE__ */ f.jsx(Bt, { rule: m({ type: a, isPercent: u, value: s, style: d }) }) }),
5958
+ /* @__PURE__ */ f.jsx("div", { className: `${O.cfPreviewWrap} `, children: /* @__PURE__ */ f.jsx(Gt, { rule: m({ type: a, isPercent: u, value: s, style: d }) }) }),
5806
5959
  /* @__PURE__ */ f.jsx(
5807
5960
  po,
5808
5961
  {
@@ -5814,7 +5967,7 @@ const Vd = (e) => {
5814
5967
  }
5815
5968
  )
5816
5969
  ] });
5817
- }, ee = (e, t) => ({ label: t.t(`sheet.cf.operator.${e}`), value: e }), _f = (e) => {
5970
+ }, ee = (e, t) => ({ label: t.t(`sheet.cf.operator.${e}`), value: e }), xf = (e) => {
5818
5971
  const { type: t, operator: n, onChange: r, value: o } = e, [i, a] = N(() => typeof o == "number" ? o : 0), [l, s] = N(() => typeof o == "string" ? o : ""), [c, u] = N(() => Array.isArray(o) ? o[0] === void 0 ? 0 : o[0] : 0), [h, d] = N(() => Array.isArray(o) ? o[1] === void 0 ? 100 : o[1] : 100);
5819
5972
  switch (me(() => {
5820
5973
  switch (t) {
@@ -5831,13 +5984,13 @@ const Vd = (e) => {
5831
5984
  }
5832
5985
  case $.number: {
5833
5986
  [
5834
- H.equal,
5835
- H.notEqual,
5836
- H.greaterThan,
5837
- H.greaterThanOrEqual,
5838
- H.lessThan,
5839
- H.lessThanOrEqual
5840
- ].includes(n) && r(i), [H.between, H.notBetween].includes(n) && r([c, h]);
5987
+ k.equal,
5988
+ k.notEqual,
5989
+ k.greaterThan,
5990
+ k.greaterThanOrEqual,
5991
+ k.lessThan,
5992
+ k.lessThanOrEqual
5993
+ ].includes(n) && r(i), [k.between, k.notBetween].includes(n) && r([c, h]);
5841
5994
  break;
5842
5995
  }
5843
5996
  }
@@ -5860,19 +6013,19 @@ const Vd = (e) => {
5860
6013
  }
5861
6014
  case $.number: {
5862
6015
  if ([
5863
- H.equal,
5864
- H.notEqual,
5865
- H.greaterThan,
5866
- H.greaterThanOrEqual,
5867
- H.lessThan,
5868
- H.lessThanOrEqual
6016
+ k.equal,
6017
+ k.notEqual,
6018
+ k.greaterThan,
6019
+ k.greaterThanOrEqual,
6020
+ k.lessThan,
6021
+ k.lessThanOrEqual
5869
6022
  ].includes(n)) {
5870
6023
  const g = (m) => {
5871
6024
  a(m || 0), r(m || 0);
5872
6025
  };
5873
6026
  return /* @__PURE__ */ f.jsx("div", { className: `${E.mTSm}`, children: /* @__PURE__ */ f.jsx(St, { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER, className: O.width100, value: i, onChange: g }) });
5874
6027
  }
5875
- if ([H.between, H.notBetween].includes(n)) {
6028
+ if ([k.between, k.notBetween].includes(n)) {
5876
6029
  const g = (b) => {
5877
6030
  u(b || 0), r([b || 0, h]);
5878
6031
  }, m = (b) => {
@@ -5903,27 +6056,27 @@ const Vd = (e) => {
5903
6056
  ];
5904
6057
  case $.number:
5905
6058
  return [
5906
- ee(H.between, t),
5907
- ee(H.notBetween, t),
5908
- ee(H.equal, t),
5909
- ee(H.notEqual, t),
5910
- ee(H.greaterThan, t),
5911
- ee(H.greaterThanOrEqual, t),
5912
- ee(H.lessThan, t),
5913
- ee(H.lessThanOrEqual, t)
6059
+ ee(k.between, t),
6060
+ ee(k.notBetween, t),
6061
+ ee(k.equal, t),
6062
+ ee(k.notEqual, t),
6063
+ ee(k.greaterThan, t),
6064
+ ee(k.greaterThanOrEqual, t),
6065
+ ee(k.lessThan, t),
6066
+ ee(k.lessThanOrEqual, t)
5914
6067
  ];
5915
6068
  case $.timePeriod:
5916
6069
  return [
5917
- ee(Ue.yesterday, t),
5918
- ee(Ue.today, t),
5919
- ee(Ue.tomorrow, t),
5920
- ee(Ue.last7Days, t),
5921
- ee(Ue.lastWeek, t),
5922
- ee(Ue.thisWeek, t),
5923
- ee(Ue.nextWeek, t),
5924
- ee(Ue.lastMonth, t),
5925
- ee(Ue.thisMonth, t),
5926
- ee(Ue.nextMonth, t)
6070
+ ee(qe.yesterday, t),
6071
+ ee(qe.today, t),
6072
+ ee(qe.tomorrow, t),
6073
+ ee(qe.last7Days, t),
6074
+ ee(qe.lastWeek, t),
6075
+ ee(qe.thisWeek, t),
6076
+ ee(qe.nextWeek, t),
6077
+ ee(qe.lastMonth, t),
6078
+ ee(qe.thisMonth, t),
6079
+ ee(qe.nextMonth, t)
5927
6080
  ];
5928
6081
  }
5929
6082
  }, Go = (e) => {
@@ -5960,7 +6113,7 @@ const Vd = (e) => {
5960
6113
  const p = "";
5961
6114
  return o ? (I = o.value) != null ? I : Sr(o.subType, o.operator) : p;
5962
6115
  }), [g, m] = N({}), b = ve(() => (p) => {
5963
- var R, I, _, D, M, L, q, S, T, J, xe, z, G, re, fe;
6116
+ var R, I, _, P, M, L, U, S, T, J, xe, V, G, re, fe;
5964
6117
  switch (p.subType || i) {
5965
6118
  case $.text: {
5966
6119
  if ([
@@ -5976,33 +6129,33 @@ const Vd = (e) => {
5976
6129
  subType: (R = p.subType) != null ? R : i,
5977
6130
  operator: (I = p.operator) != null ? I : c,
5978
6131
  style: (_ = p.style) != null ? _ : g,
5979
- value: (D = p.value) != null ? D : h
6132
+ value: (P = p.value) != null ? P : h
5980
6133
  };
5981
6134
  break;
5982
6135
  }
5983
6136
  case $.number: {
5984
6137
  if ([
5985
- H.equal,
5986
- H.notEqual,
5987
- H.greaterThan,
5988
- H.greaterThanOrEqual,
5989
- H.lessThan,
5990
- H.lessThanOrEqual
6138
+ k.equal,
6139
+ k.notEqual,
6140
+ k.greaterThan,
6141
+ k.greaterThanOrEqual,
6142
+ k.lessThan,
6143
+ k.lessThanOrEqual
5991
6144
  ].includes(c))
5992
6145
  return {
5993
6146
  type: j.highlightCell,
5994
6147
  subType: (M = p.subType) != null ? M : i,
5995
6148
  operator: (L = p.operator) != null ? L : c,
5996
- style: (q = p.style) != null ? q : g,
6149
+ style: (U = p.style) != null ? U : g,
5997
6150
  value: (S = p.value) != null ? S : h
5998
6151
  };
5999
- if ([H.between, H.notBetween].includes(c))
6152
+ if ([k.between, k.notBetween].includes(c))
6000
6153
  return {
6001
6154
  type: j.highlightCell,
6002
6155
  subType: (T = p.subType) != null ? T : i,
6003
6156
  operator: (J = p.operator) != null ? J : c,
6004
6157
  style: (xe = p.style) != null ? xe : g,
6005
- value: (z = p.value) != null ? z : h
6158
+ value: (V = p.value) != null ? V : h
6006
6159
  };
6007
6160
  break;
6008
6161
  }
@@ -6032,10 +6185,10 @@ const Vd = (e) => {
6032
6185
  }, v = ve(() => `${i}_${c}_${Math.random()}`, [i, c]);
6033
6186
  return /* @__PURE__ */ f.jsxs("div", { children: [
6034
6187
  /* @__PURE__ */ f.jsx("div", { className: `${E.title} ${E.mTBase}`, children: r.t("sheet.cf.panel.styleRule") }),
6035
- /* @__PURE__ */ f.jsx(ze, { className: `${E.mTSm} ${O.width100}`, onChange: x, value: i, options: l }),
6036
- (s == null ? void 0 : s.length) && /* @__PURE__ */ f.jsx(ze, { className: `${E.mTSm} ${O.width100}`, onChange: w, value: c || "", options: s }),
6037
- /* @__PURE__ */ f.jsx(_f, { value: h, interceptorManager: t, type: i, operator: c, rule: o, onChange: y }, v),
6038
- /* @__PURE__ */ f.jsx("div", { className: `${O.cfPreviewWrap}`, children: /* @__PURE__ */ f.jsx(Bt, { rule: b({}) }) }),
6188
+ /* @__PURE__ */ f.jsx(Ve, { className: `${E.mTSm} ${O.width100}`, onChange: x, value: i, options: l }),
6189
+ (s == null ? void 0 : s.length) && /* @__PURE__ */ f.jsx(Ve, { className: `${E.mTSm} ${O.width100}`, onChange: w, value: c || "", options: s }),
6190
+ /* @__PURE__ */ f.jsx(xf, { value: h, interceptorManager: t, type: i, operator: c, rule: o, onChange: y }, v),
6191
+ /* @__PURE__ */ f.jsx("div", { className: `${O.cfPreviewWrap}`, children: /* @__PURE__ */ f.jsx(Gt, { rule: b({}) }) }),
6039
6192
  /* @__PURE__ */ f.jsx(
6040
6193
  po,
6041
6194
  {
@@ -6047,7 +6200,7 @@ const Vd = (e) => {
6047
6200
  }
6048
6201
  )
6049
6202
  ] });
6050
- }, xf = (e) => {
6203
+ }, Rf = (e) => {
6051
6204
  var m;
6052
6205
  const { onChange: t, interceptorManager: n } = e, r = oe($e), i = oe(ne).getCurrentUnitForType(X.UNIVER_SHEET), a = i.getActiveSheet(), l = ((m = e.rule) == null ? void 0 : m.type) === j.highlightCell ? e.rule : void 0, [s, c] = N({}), [u, h] = N(() => (l == null ? void 0 : l.subType) === $.formula ? l.value : "="), d = (b) => ({
6053
6206
  style: b.style,
@@ -6066,9 +6219,9 @@ const Vd = (e) => {
6066
6219
  return /* @__PURE__ */ f.jsxs("div", { children: [
6067
6220
  /* @__PURE__ */ f.jsx("div", { className: `${E.title} ${E.mTBase}`, children: r.t("sheet.cf.panel.styleRule") }),
6068
6221
  /* @__PURE__ */ f.jsx("div", { className: `${E.mTSm}`, children: /* @__PURE__ */ f.jsx(
6069
- zn,
6222
+ Vn,
6070
6223
  {
6071
- id: hn(`${lt}_formula`),
6224
+ id: hn(`${ct}_formula`),
6072
6225
  openForSheetSubUnitId: a.getSheetId(),
6073
6226
  openForSheetUnitId: i.getUnitId(),
6074
6227
  value: u,
@@ -6080,7 +6233,7 @@ const Vd = (e) => {
6080
6233
  }
6081
6234
  }
6082
6235
  ) }),
6083
- /* @__PURE__ */ f.jsx("div", { className: `${O.cfPreviewWrap} `, children: /* @__PURE__ */ f.jsx(Bt, { rule: d({ style: s, formula: u }) }) }),
6236
+ /* @__PURE__ */ f.jsx("div", { className: `${O.cfPreviewWrap} `, children: /* @__PURE__ */ f.jsx(Gt, { rule: d({ style: s, formula: u }) }) }),
6084
6237
  /* @__PURE__ */ f.jsx(
6085
6238
  po,
6086
6239
  {
@@ -6093,11 +6246,11 @@ const Vd = (e) => {
6093
6246
  )
6094
6247
  ] });
6095
6248
  };
6096
- var Rf = "Expected a function", ya = "__lodash_hash_undefined__", ba = 1 / 0, Tf = 9007199254740991, If = "[object Function]", Ef = "[object GeneratorFunction]", Of = "[object Symbol]", Pf = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Df = /^\w*$/, Mf = /^\./, $f = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Nf = /[\\^$.*+?()[\]{}|]/g, jf = /\\(\\)?/g, Lf = /^\[object .+?Constructor\]$/, zf = /^(?:0|[1-9]\d*)$/, Vf = typeof Ke == "object" && Ke && Ke.Object === Object && Ke, Hf = typeof self == "object" && self && self.Object === Object && self, go = Vf || Hf || Function("return this")();
6097
- function kf(e, t) {
6249
+ var Tf = "Expected a function", ya = "__lodash_hash_undefined__", ba = 1 / 0, If = 9007199254740991, Ef = "[object Function]", Of = "[object GeneratorFunction]", Df = "[object Symbol]", Pf = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Mf = /^\w*$/, $f = /^\./, Nf = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, jf = /[\\^$.*+?()[\]{}|]/g, Lf = /\\(\\)?/g, Vf = /^\[object .+?Constructor\]$/, zf = /^(?:0|[1-9]\d*)$/, kf = typeof Ke == "object" && Ke && Ke.Object === Object && Ke, Hf = typeof self == "object" && self && self.Object === Object && self, go = kf || Hf || Function("return this")();
6250
+ function Wf(e, t) {
6098
6251
  return e == null ? void 0 : e[t];
6099
6252
  }
6100
- function Wf(e) {
6253
+ function Af(e) {
6101
6254
  var t = !1;
6102
6255
  if (e != null && typeof e.toString != "function")
6103
6256
  try {
@@ -6106,12 +6259,12 @@ function Wf(e) {
6106
6259
  }
6107
6260
  return t;
6108
6261
  }
6109
- var Af = Array.prototype, Ff = Function.prototype, Sa = Object.prototype, vr = go["__core-js_shared__"], Xo = function() {
6262
+ var Ff = Array.prototype, qf = Function.prototype, Sa = Object.prototype, vr = go["__core-js_shared__"], Xo = function() {
6110
6263
  var e = /[^.]+$/.exec(vr && vr.keys && vr.keys.IE_PROTO || "");
6111
6264
  return e ? "Symbol(src)_1." + e : "";
6112
- }(), Ca = Ff.toString, Jn = Sa.hasOwnProperty, wa = Sa.toString, Uf = RegExp(
6113
- "^" + Ca.call(Jn).replace(Nf, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6114
- ), Yo = go.Symbol, qf = Af.splice, Bf = _a(go, "Map"), dn = _a(Object, "create"), Ko = Yo ? Yo.prototype : void 0, Zo = Ko ? Ko.toString : void 0;
6265
+ }(), Ca = qf.toString, Jn = Sa.hasOwnProperty, wa = Sa.toString, Uf = RegExp(
6266
+ "^" + Ca.call(Jn).replace(jf, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6267
+ ), Yo = go.Symbol, Bf = Ff.splice, Gf = _a(go, "Map"), dn = _a(Object, "create"), Ko = Yo ? Yo.prototype : void 0, Zo = Ko ? Ko.toString : void 0;
6115
6268
  function _t(e) {
6116
6269
  var t = -1, n = e ? e.length : 0;
6117
6270
  for (this.clear(); ++t < n; ) {
@@ -6119,13 +6272,13 @@ function _t(e) {
6119
6272
  this.set(r[0], r[1]);
6120
6273
  }
6121
6274
  }
6122
- function Gf() {
6275
+ function Xf() {
6123
6276
  this.__data__ = dn ? dn(null) : {};
6124
6277
  }
6125
- function Xf(e) {
6278
+ function Yf(e) {
6126
6279
  return this.has(e) && delete this.__data__[e];
6127
6280
  }
6128
- function Yf(e) {
6281
+ function Kf(e) {
6129
6282
  var t = this.__data__;
6130
6283
  if (dn) {
6131
6284
  var n = t[e];
@@ -6133,84 +6286,84 @@ function Yf(e) {
6133
6286
  }
6134
6287
  return Jn.call(t, e) ? t[e] : void 0;
6135
6288
  }
6136
- function Kf(e) {
6289
+ function Zf(e) {
6137
6290
  var t = this.__data__;
6138
6291
  return dn ? t[e] !== void 0 : Jn.call(t, e);
6139
6292
  }
6140
- function Zf(e, t) {
6293
+ function Jf(e, t) {
6141
6294
  var n = this.__data__;
6142
6295
  return n[e] = dn && t === void 0 ? ya : t, this;
6143
6296
  }
6144
- _t.prototype.clear = Gf;
6145
- _t.prototype.delete = Xf;
6146
- _t.prototype.get = Yf;
6147
- _t.prototype.has = Kf;
6148
- _t.prototype.set = Zf;
6149
- function Gt(e) {
6297
+ _t.prototype.clear = Xf;
6298
+ _t.prototype.delete = Yf;
6299
+ _t.prototype.get = Kf;
6300
+ _t.prototype.has = Zf;
6301
+ _t.prototype.set = Jf;
6302
+ function Xt(e) {
6150
6303
  var t = -1, n = e ? e.length : 0;
6151
6304
  for (this.clear(); ++t < n; ) {
6152
6305
  var r = e[t];
6153
6306
  this.set(r[0], r[1]);
6154
6307
  }
6155
6308
  }
6156
- function Jf() {
6309
+ function Qf() {
6157
6310
  this.__data__ = [];
6158
6311
  }
6159
- function Qf(e) {
6312
+ function eh(e) {
6160
6313
  var t = this.__data__, n = Qn(t, e);
6161
6314
  if (n < 0)
6162
6315
  return !1;
6163
6316
  var r = t.length - 1;
6164
- return n == r ? t.pop() : qf.call(t, n, 1), !0;
6317
+ return n == r ? t.pop() : Bf.call(t, n, 1), !0;
6165
6318
  }
6166
- function eh(e) {
6319
+ function th(e) {
6167
6320
  var t = this.__data__, n = Qn(t, e);
6168
6321
  return n < 0 ? void 0 : t[n][1];
6169
6322
  }
6170
- function th(e) {
6323
+ function nh(e) {
6171
6324
  return Qn(this.__data__, e) > -1;
6172
6325
  }
6173
- function nh(e, t) {
6326
+ function rh(e, t) {
6174
6327
  var n = this.__data__, r = Qn(n, e);
6175
6328
  return r < 0 ? n.push([e, t]) : n[r][1] = t, this;
6176
6329
  }
6177
- Gt.prototype.clear = Jf;
6178
- Gt.prototype.delete = Qf;
6179
- Gt.prototype.get = eh;
6180
- Gt.prototype.has = th;
6181
- Gt.prototype.set = nh;
6182
- function Pt(e) {
6330
+ Xt.prototype.clear = Qf;
6331
+ Xt.prototype.delete = eh;
6332
+ Xt.prototype.get = th;
6333
+ Xt.prototype.has = nh;
6334
+ Xt.prototype.set = rh;
6335
+ function Dt(e) {
6183
6336
  var t = -1, n = e ? e.length : 0;
6184
6337
  for (this.clear(); ++t < n; ) {
6185
6338
  var r = e[t];
6186
6339
  this.set(r[0], r[1]);
6187
6340
  }
6188
6341
  }
6189
- function rh() {
6342
+ function oh() {
6190
6343
  this.__data__ = {
6191
6344
  hash: new _t(),
6192
- map: new (Bf || Gt)(),
6345
+ map: new (Gf || Xt)(),
6193
6346
  string: new _t()
6194
6347
  };
6195
6348
  }
6196
- function oh(e) {
6349
+ function ih(e) {
6197
6350
  return er(this, e).delete(e);
6198
6351
  }
6199
- function ih(e) {
6352
+ function ah(e) {
6200
6353
  return er(this, e).get(e);
6201
6354
  }
6202
- function ah(e) {
6355
+ function sh(e) {
6203
6356
  return er(this, e).has(e);
6204
6357
  }
6205
- function sh(e, t) {
6358
+ function lh(e, t) {
6206
6359
  return er(this, e).set(e, t), this;
6207
6360
  }
6208
- Pt.prototype.clear = rh;
6209
- Pt.prototype.delete = oh;
6210
- Pt.prototype.get = ih;
6211
- Pt.prototype.has = ah;
6212
- Pt.prototype.set = sh;
6213
- function lh(e, t, n) {
6361
+ Dt.prototype.clear = oh;
6362
+ Dt.prototype.delete = ih;
6363
+ Dt.prototype.get = ah;
6364
+ Dt.prototype.has = sh;
6365
+ Dt.prototype.set = lh;
6366
+ function ch(e, t, n) {
6214
6367
  var r = e[t];
6215
6368
  (!(Jn.call(e, t) && xa(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
6216
6369
  }
@@ -6220,27 +6373,27 @@ function Qn(e, t) {
6220
6373
  return n;
6221
6374
  return -1;
6222
6375
  }
6223
- function ch(e) {
6224
- if (!Ln(e) || mh(e))
6376
+ function uh(e) {
6377
+ if (!Ln(e) || vh(e))
6225
6378
  return !1;
6226
- var t = Sh(e) || Wf(e) ? Uf : Lf;
6227
- return t.test(bh(e));
6379
+ var t = Ch(e) || Af(e) ? Uf : Vf;
6380
+ return t.test(Sh(e));
6228
6381
  }
6229
- function uh(e, t, n, r) {
6382
+ function dh(e, t, n, r) {
6230
6383
  if (!Ln(e))
6231
6384
  return e;
6232
- t = ph(t, e) ? [t] : fh(t);
6385
+ t = gh(t, e) ? [t] : hh(t);
6233
6386
  for (var o = -1, i = t.length, a = i - 1, l = e; l != null && ++o < i; ) {
6234
- var s = yh(t[o]), c = n;
6387
+ var s = bh(t[o]), c = n;
6235
6388
  if (o != a) {
6236
6389
  var u = l[s];
6237
- c = r ? r(u, s, l) : void 0, c === void 0 && (c = Ln(u) ? u : hh(t[o + 1]) ? [] : {});
6390
+ c = r ? r(u, s, l) : void 0, c === void 0 && (c = Ln(u) ? u : ph(t[o + 1]) ? [] : {});
6238
6391
  }
6239
- lh(l, s, c), l = l[s];
6392
+ ch(l, s, c), l = l[s];
6240
6393
  }
6241
6394
  return e;
6242
6395
  }
6243
- function dh(e) {
6396
+ function fh(e) {
6244
6397
  if (typeof e == "string")
6245
6398
  return e;
6246
6399
  if (vo(e))
@@ -6248,47 +6401,47 @@ function dh(e) {
6248
6401
  var t = e + "";
6249
6402
  return t == "0" && 1 / e == -ba ? "-0" : t;
6250
6403
  }
6251
- function fh(e) {
6252
- return Ra(e) ? e : vh(e);
6404
+ function hh(e) {
6405
+ return Ra(e) ? e : yh(e);
6253
6406
  }
6254
6407
  function er(e, t) {
6255
6408
  var n = e.__data__;
6256
- return gh(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
6409
+ return mh(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
6257
6410
  }
6258
6411
  function _a(e, t) {
6259
- var n = kf(e, t);
6260
- return ch(n) ? n : void 0;
6261
- }
6262
- function hh(e, t) {
6263
- return t = t == null ? Tf : t, !!t && (typeof e == "number" || zf.test(e)) && e > -1 && e % 1 == 0 && e < t;
6412
+ var n = Wf(e, t);
6413
+ return uh(n) ? n : void 0;
6264
6414
  }
6265
6415
  function ph(e, t) {
6416
+ return t = t == null ? If : t, !!t && (typeof e == "number" || zf.test(e)) && e > -1 && e % 1 == 0 && e < t;
6417
+ }
6418
+ function gh(e, t) {
6266
6419
  if (Ra(e))
6267
6420
  return !1;
6268
6421
  var n = typeof e;
6269
- return n == "number" || n == "symbol" || n == "boolean" || e == null || vo(e) ? !0 : Df.test(e) || !Pf.test(e) || t != null && e in Object(t);
6422
+ return n == "number" || n == "symbol" || n == "boolean" || e == null || vo(e) ? !0 : Mf.test(e) || !Pf.test(e) || t != null && e in Object(t);
6270
6423
  }
6271
- function gh(e) {
6424
+ function mh(e) {
6272
6425
  var t = typeof e;
6273
6426
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
6274
6427
  }
6275
- function mh(e) {
6428
+ function vh(e) {
6276
6429
  return !!Xo && Xo in e;
6277
6430
  }
6278
- var vh = mo(function(e) {
6279
- e = wh(e);
6431
+ var yh = mo(function(e) {
6432
+ e = _h(e);
6280
6433
  var t = [];
6281
- return Mf.test(e) && t.push(""), e.replace($f, function(n, r, o, i) {
6282
- t.push(o ? i.replace(jf, "$1") : r || n);
6434
+ return $f.test(e) && t.push(""), e.replace(Nf, function(n, r, o, i) {
6435
+ t.push(o ? i.replace(Lf, "$1") : r || n);
6283
6436
  }), t;
6284
6437
  });
6285
- function yh(e) {
6438
+ function bh(e) {
6286
6439
  if (typeof e == "string" || vo(e))
6287
6440
  return e;
6288
6441
  var t = e + "";
6289
6442
  return t == "0" && 1 / e == -ba ? "-0" : t;
6290
6443
  }
6291
- function bh(e) {
6444
+ function Sh(e) {
6292
6445
  if (e != null) {
6293
6446
  try {
6294
6447
  return Ca.call(e);
@@ -6303,7 +6456,7 @@ function bh(e) {
6303
6456
  }
6304
6457
  function mo(e, t) {
6305
6458
  if (typeof e != "function" || t && typeof t != "function")
6306
- throw new TypeError(Rf);
6459
+ throw new TypeError(Tf);
6307
6460
  var n = function() {
6308
6461
  var r = arguments, o = t ? t.apply(this, r) : r[0], i = n.cache;
6309
6462
  if (i.has(o))
@@ -6311,40 +6464,40 @@ function mo(e, t) {
6311
6464
  var a = e.apply(this, r);
6312
6465
  return n.cache = i.set(o, a), a;
6313
6466
  };
6314
- return n.cache = new (mo.Cache || Pt)(), n;
6467
+ return n.cache = new (mo.Cache || Dt)(), n;
6315
6468
  }
6316
- mo.Cache = Pt;
6469
+ mo.Cache = Dt;
6317
6470
  function xa(e, t) {
6318
6471
  return e === t || e !== e && t !== t;
6319
6472
  }
6320
6473
  var Ra = Array.isArray;
6321
- function Sh(e) {
6474
+ function Ch(e) {
6322
6475
  var t = Ln(e) ? wa.call(e) : "";
6323
- return t == If || t == Ef;
6476
+ return t == Ef || t == Of;
6324
6477
  }
6325
6478
  function Ln(e) {
6326
6479
  var t = typeof e;
6327
6480
  return !!e && (t == "object" || t == "function");
6328
6481
  }
6329
- function Ch(e) {
6482
+ function wh(e) {
6330
6483
  return !!e && typeof e == "object";
6331
6484
  }
6332
6485
  function vo(e) {
6333
- return typeof e == "symbol" || Ch(e) && wa.call(e) == Of;
6486
+ return typeof e == "symbol" || wh(e) && wa.call(e) == Df;
6334
6487
  }
6335
- function wh(e) {
6336
- return e == null ? "" : dh(e);
6488
+ function _h(e) {
6489
+ return e == null ? "" : fh(e);
6337
6490
  }
6338
- function _h(e, t, n) {
6339
- return e == null ? e : uh(e, t, n);
6491
+ function xh(e, t, n) {
6492
+ return e == null ? e : dh(e, t, n);
6340
6493
  }
6341
- var xh = _h;
6342
- const Rh = /* @__PURE__ */ Ur(xh);
6343
- var Th = "Expected a function", Ta = "__lodash_hash_undefined__", Ia = 1 / 0, Ih = "[object Function]", Eh = "[object GeneratorFunction]", Oh = "[object Symbol]", Ph = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Dh = /^\w*$/, Mh = /^\./, $h = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Nh = /[\\^$.*+?()[\]{}|]/g, jh = /\\(\\)?/g, Lh = /^\[object .+?Constructor\]$/, zh = typeof Ke == "object" && Ke && Ke.Object === Object && Ke, Vh = typeof self == "object" && self && self.Object === Object && self, yo = zh || Vh || Function("return this")();
6494
+ var Rh = xh;
6495
+ const Th = /* @__PURE__ */ qr(Rh);
6496
+ var Ih = "Expected a function", Ta = "__lodash_hash_undefined__", Ia = 1 / 0, Eh = "[object Function]", Oh = "[object GeneratorFunction]", Dh = "[object Symbol]", Ph = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Mh = /^\w*$/, $h = /^\./, Nh = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, jh = /[\\^$.*+?()[\]{}|]/g, Lh = /\\(\\)?/g, Vh = /^\[object .+?Constructor\]$/, zh = typeof Ke == "object" && Ke && Ke.Object === Object && Ke, kh = typeof self == "object" && self && self.Object === Object && self, yo = zh || kh || Function("return this")();
6344
6497
  function Hh(e, t) {
6345
6498
  return e == null ? void 0 : e[t];
6346
6499
  }
6347
- function kh(e) {
6500
+ function Wh(e) {
6348
6501
  var t = !1;
6349
6502
  if (e != null && typeof e.toString != "function")
6350
6503
  try {
@@ -6353,12 +6506,12 @@ function kh(e) {
6353
6506
  }
6354
6507
  return t;
6355
6508
  }
6356
- var Wh = Array.prototype, Ah = Function.prototype, Ea = Object.prototype, yr = yo["__core-js_shared__"], Jo = function() {
6509
+ var Ah = Array.prototype, Fh = Function.prototype, Ea = Object.prototype, yr = yo["__core-js_shared__"], Jo = function() {
6357
6510
  var e = /[^.]+$/.exec(yr && yr.keys && yr.keys.IE_PROTO || "");
6358
6511
  return e ? "Symbol(src)_1." + e : "";
6359
- }(), Oa = Ah.toString, bo = Ea.hasOwnProperty, Pa = Ea.toString, Fh = RegExp(
6360
- "^" + Oa.call(bo).replace(Nh, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6361
- ), Qo = yo.Symbol, Uh = Wh.splice, qh = Da(yo, "Map"), fn = Da(Object, "create"), ei = Qo ? Qo.prototype : void 0, ti = ei ? ei.toString : void 0;
6512
+ }(), Oa = Fh.toString, bo = Ea.hasOwnProperty, Da = Ea.toString, qh = RegExp(
6513
+ "^" + Oa.call(bo).replace(jh, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6514
+ ), Qo = yo.Symbol, Uh = Ah.splice, Bh = Pa(yo, "Map"), fn = Pa(Object, "create"), ei = Qo ? Qo.prototype : void 0, ti = ei ? ei.toString : void 0;
6362
6515
  function xt(e) {
6363
6516
  var t = -1, n = e ? e.length : 0;
6364
6517
  for (this.clear(); ++t < n; ) {
@@ -6366,13 +6519,13 @@ function xt(e) {
6366
6519
  this.set(r[0], r[1]);
6367
6520
  }
6368
6521
  }
6369
- function Bh() {
6522
+ function Gh() {
6370
6523
  this.__data__ = fn ? fn(null) : {};
6371
6524
  }
6372
- function Gh(e) {
6525
+ function Xh(e) {
6373
6526
  return this.has(e) && delete this.__data__[e];
6374
6527
  }
6375
- function Xh(e) {
6528
+ function Yh(e) {
6376
6529
  var t = this.__data__;
6377
6530
  if (fn) {
6378
6531
  var n = t[e];
@@ -6380,102 +6533,102 @@ function Xh(e) {
6380
6533
  }
6381
6534
  return bo.call(t, e) ? t[e] : void 0;
6382
6535
  }
6383
- function Yh(e) {
6536
+ function Kh(e) {
6384
6537
  var t = this.__data__;
6385
6538
  return fn ? t[e] !== void 0 : bo.call(t, e);
6386
6539
  }
6387
- function Kh(e, t) {
6540
+ function Zh(e, t) {
6388
6541
  var n = this.__data__;
6389
6542
  return n[e] = fn && t === void 0 ? Ta : t, this;
6390
6543
  }
6391
- xt.prototype.clear = Bh;
6392
- xt.prototype.delete = Gh;
6393
- xt.prototype.get = Xh;
6394
- xt.prototype.has = Yh;
6395
- xt.prototype.set = Kh;
6396
- function Xt(e) {
6544
+ xt.prototype.clear = Gh;
6545
+ xt.prototype.delete = Xh;
6546
+ xt.prototype.get = Yh;
6547
+ xt.prototype.has = Kh;
6548
+ xt.prototype.set = Zh;
6549
+ function Yt(e) {
6397
6550
  var t = -1, n = e ? e.length : 0;
6398
6551
  for (this.clear(); ++t < n; ) {
6399
6552
  var r = e[t];
6400
6553
  this.set(r[0], r[1]);
6401
6554
  }
6402
6555
  }
6403
- function Zh() {
6556
+ function Jh() {
6404
6557
  this.__data__ = [];
6405
6558
  }
6406
- function Jh(e) {
6559
+ function Qh(e) {
6407
6560
  var t = this.__data__, n = tr(t, e);
6408
6561
  if (n < 0)
6409
6562
  return !1;
6410
6563
  var r = t.length - 1;
6411
6564
  return n == r ? t.pop() : Uh.call(t, n, 1), !0;
6412
6565
  }
6413
- function Qh(e) {
6566
+ function ep(e) {
6414
6567
  var t = this.__data__, n = tr(t, e);
6415
6568
  return n < 0 ? void 0 : t[n][1];
6416
6569
  }
6417
- function ep(e) {
6570
+ function tp(e) {
6418
6571
  return tr(this.__data__, e) > -1;
6419
6572
  }
6420
- function tp(e, t) {
6573
+ function np(e, t) {
6421
6574
  var n = this.__data__, r = tr(n, e);
6422
6575
  return r < 0 ? n.push([e, t]) : n[r][1] = t, this;
6423
6576
  }
6424
- Xt.prototype.clear = Zh;
6425
- Xt.prototype.delete = Jh;
6426
- Xt.prototype.get = Qh;
6427
- Xt.prototype.has = ep;
6428
- Xt.prototype.set = tp;
6429
- function Dt(e) {
6577
+ Yt.prototype.clear = Jh;
6578
+ Yt.prototype.delete = Qh;
6579
+ Yt.prototype.get = ep;
6580
+ Yt.prototype.has = tp;
6581
+ Yt.prototype.set = np;
6582
+ function Pt(e) {
6430
6583
  var t = -1, n = e ? e.length : 0;
6431
6584
  for (this.clear(); ++t < n; ) {
6432
6585
  var r = e[t];
6433
6586
  this.set(r[0], r[1]);
6434
6587
  }
6435
6588
  }
6436
- function np() {
6589
+ function rp() {
6437
6590
  this.__data__ = {
6438
6591
  hash: new xt(),
6439
- map: new (qh || Xt)(),
6592
+ map: new (Bh || Yt)(),
6440
6593
  string: new xt()
6441
6594
  };
6442
6595
  }
6443
- function rp(e) {
6596
+ function op(e) {
6444
6597
  return nr(this, e).delete(e);
6445
6598
  }
6446
- function op(e) {
6599
+ function ip(e) {
6447
6600
  return nr(this, e).get(e);
6448
6601
  }
6449
- function ip(e) {
6602
+ function ap(e) {
6450
6603
  return nr(this, e).has(e);
6451
6604
  }
6452
- function ap(e, t) {
6605
+ function sp(e, t) {
6453
6606
  return nr(this, e).set(e, t), this;
6454
6607
  }
6455
- Dt.prototype.clear = np;
6456
- Dt.prototype.delete = rp;
6457
- Dt.prototype.get = op;
6458
- Dt.prototype.has = ip;
6459
- Dt.prototype.set = ap;
6608
+ Pt.prototype.clear = rp;
6609
+ Pt.prototype.delete = op;
6610
+ Pt.prototype.get = ip;
6611
+ Pt.prototype.has = ap;
6612
+ Pt.prototype.set = sp;
6460
6613
  function tr(e, t) {
6461
6614
  for (var n = e.length; n--; )
6462
- if (vp(e[n][0], t))
6615
+ if (yp(e[n][0], t))
6463
6616
  return n;
6464
6617
  return -1;
6465
6618
  }
6466
- function sp(e, t) {
6467
- t = dp(t, e) ? [t] : up(t);
6619
+ function lp(e, t) {
6620
+ t = fp(t, e) ? [t] : dp(t);
6468
6621
  for (var n = 0, r = t.length; e != null && n < r; )
6469
- e = e[gp(t[n++])];
6622
+ e = e[mp(t[n++])];
6470
6623
  return n && n == r ? e : void 0;
6471
6624
  }
6472
- function lp(e) {
6473
- if (!$a(e) || hp(e))
6625
+ function cp(e) {
6626
+ if (!$a(e) || pp(e))
6474
6627
  return !1;
6475
- var t = yp(e) || kh(e) ? Fh : Lh;
6476
- return t.test(mp(e));
6628
+ var t = bp(e) || Wh(e) ? qh : Vh;
6629
+ return t.test(vp(e));
6477
6630
  }
6478
- function cp(e) {
6631
+ function up(e) {
6479
6632
  if (typeof e == "string")
6480
6633
  return e;
6481
6634
  if (Co(e))
@@ -6483,44 +6636,44 @@ function cp(e) {
6483
6636
  var t = e + "";
6484
6637
  return t == "0" && 1 / e == -Ia ? "-0" : t;
6485
6638
  }
6486
- function up(e) {
6487
- return Ma(e) ? e : pp(e);
6639
+ function dp(e) {
6640
+ return Ma(e) ? e : gp(e);
6488
6641
  }
6489
6642
  function nr(e, t) {
6490
6643
  var n = e.__data__;
6491
- return fp(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
6644
+ return hp(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
6492
6645
  }
6493
- function Da(e, t) {
6646
+ function Pa(e, t) {
6494
6647
  var n = Hh(e, t);
6495
- return lp(n) ? n : void 0;
6648
+ return cp(n) ? n : void 0;
6496
6649
  }
6497
- function dp(e, t) {
6650
+ function fp(e, t) {
6498
6651
  if (Ma(e))
6499
6652
  return !1;
6500
6653
  var n = typeof e;
6501
- return n == "number" || n == "symbol" || n == "boolean" || e == null || Co(e) ? !0 : Dh.test(e) || !Ph.test(e) || t != null && e in Object(t);
6654
+ return n == "number" || n == "symbol" || n == "boolean" || e == null || Co(e) ? !0 : Mh.test(e) || !Ph.test(e) || t != null && e in Object(t);
6502
6655
  }
6503
- function fp(e) {
6656
+ function hp(e) {
6504
6657
  var t = typeof e;
6505
6658
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
6506
6659
  }
6507
- function hp(e) {
6660
+ function pp(e) {
6508
6661
  return !!Jo && Jo in e;
6509
6662
  }
6510
- var pp = So(function(e) {
6511
- e = Sp(e);
6663
+ var gp = So(function(e) {
6664
+ e = Cp(e);
6512
6665
  var t = [];
6513
- return Mh.test(e) && t.push(""), e.replace($h, function(n, r, o, i) {
6514
- t.push(o ? i.replace(jh, "$1") : r || n);
6666
+ return $h.test(e) && t.push(""), e.replace(Nh, function(n, r, o, i) {
6667
+ t.push(o ? i.replace(Lh, "$1") : r || n);
6515
6668
  }), t;
6516
6669
  });
6517
- function gp(e) {
6670
+ function mp(e) {
6518
6671
  if (typeof e == "string" || Co(e))
6519
6672
  return e;
6520
6673
  var t = e + "";
6521
6674
  return t == "0" && 1 / e == -Ia ? "-0" : t;
6522
6675
  }
6523
- function mp(e) {
6676
+ function vp(e) {
6524
6677
  if (e != null) {
6525
6678
  try {
6526
6679
  return Oa.call(e);
@@ -6535,7 +6688,7 @@ function mp(e) {
6535
6688
  }
6536
6689
  function So(e, t) {
6537
6690
  if (typeof e != "function" || t && typeof t != "function")
6538
- throw new TypeError(Th);
6691
+ throw new TypeError(Ih);
6539
6692
  var n = function() {
6540
6693
  var r = arguments, o = t ? t.apply(this, r) : r[0], i = n.cache;
6541
6694
  if (i.has(o))
@@ -6543,44 +6696,44 @@ function So(e, t) {
6543
6696
  var a = e.apply(this, r);
6544
6697
  return n.cache = i.set(o, a), a;
6545
6698
  };
6546
- return n.cache = new (So.Cache || Dt)(), n;
6699
+ return n.cache = new (So.Cache || Pt)(), n;
6547
6700
  }
6548
- So.Cache = Dt;
6549
- function vp(e, t) {
6701
+ So.Cache = Pt;
6702
+ function yp(e, t) {
6550
6703
  return e === t || e !== e && t !== t;
6551
6704
  }
6552
6705
  var Ma = Array.isArray;
6553
- function yp(e) {
6554
- var t = $a(e) ? Pa.call(e) : "";
6555
- return t == Ih || t == Eh;
6706
+ function bp(e) {
6707
+ var t = $a(e) ? Da.call(e) : "";
6708
+ return t == Eh || t == Oh;
6556
6709
  }
6557
6710
  function $a(e) {
6558
6711
  var t = typeof e;
6559
6712
  return !!e && (t == "object" || t == "function");
6560
6713
  }
6561
- function bp(e) {
6714
+ function Sp(e) {
6562
6715
  return !!e && typeof e == "object";
6563
6716
  }
6564
6717
  function Co(e) {
6565
- return typeof e == "symbol" || bp(e) && Pa.call(e) == Oh;
6718
+ return typeof e == "symbol" || Sp(e) && Da.call(e) == Dh;
6566
6719
  }
6567
- function Sp(e) {
6568
- return e == null ? "" : cp(e);
6720
+ function Cp(e) {
6721
+ return e == null ? "" : up(e);
6569
6722
  }
6570
- function Cp(e, t, n) {
6571
- var r = e == null ? void 0 : sp(e, t);
6723
+ function wp(e, t, n) {
6724
+ var r = e == null ? void 0 : lp(e, t);
6572
6725
  return r === void 0 ? n : r;
6573
6726
  }
6574
- var wp = Cp;
6575
- const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || "", xp = (e) => {
6727
+ var _p = wp;
6728
+ const xp = /* @__PURE__ */ qr(_p), Na = (e, t) => (bt[e] || [])[Number(t)] || "", Rp = (e) => {
6576
6729
  const t = oe(ne), n = t.getCurrentUnitForType(X.UNIVER_SHEET).getUnitId(), r = t.getCurrentUnitForType(X.UNIVER_SHEET).getActiveSheet().getSheetId(), o = ve(() => e.error ? O.errorInput : "", [e.error]);
6577
6730
  return /* @__PURE__ */ f.jsx("div", { className: O.positionRelative, children: e.type !== A.formula ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
6578
6731
  /* @__PURE__ */ f.jsx(St, { className: o, value: Number(e.value) || 0, onChange: (i) => e.onChange(i != null ? i : 0) }),
6579
6732
  e.error && /* @__PURE__ */ f.jsx("div", { className: O.errorText, children: e.error })
6580
6733
  ] }) : /* @__PURE__ */ f.jsx(
6581
- zn,
6734
+ Vn,
6582
6735
  {
6583
- id: hn(`${lt}_icon_set_${e.id}`),
6736
+ id: hn(`${ct}_icon_set_${e.id}`),
6584
6737
  value: String(e.value).startsWith("=") ? String(e.value) : "=",
6585
6738
  openForSheetSubUnitId: r,
6586
6739
  openForSheetUnitId: n,
@@ -6593,11 +6746,11 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6593
6746
  }
6594
6747
  ) });
6595
6748
  }, ni = (e, t, n) => ({
6596
- operator: H.greaterThan,
6749
+ operator: k.greaterThan,
6597
6750
  value: { type: A.num, value: (n.length - 1 - t) * 10 },
6598
6751
  iconType: e,
6599
6752
  iconId: String(t)
6600
- }), Rp = (e) => {
6753
+ }), Tp = (e) => {
6601
6754
  const t = oe($e), n = (r) => {
6602
6755
  e.onClick(r);
6603
6756
  };
@@ -6607,7 +6760,7 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6607
6760
  n(i.name);
6608
6761
  }, children: /* @__PURE__ */ f.jsx("div", { className: O.item, children: i.list.map((a, l) => /* @__PURE__ */ f.jsx("img", { className: O.icon, src: a }, l)) }) }, i.name)) })
6609
6762
  ] }, o)) });
6610
- }, Tp = (e) => {
6763
+ }, Ip = (e) => {
6611
6764
  const t = ve(() => {
6612
6765
  const r = [];
6613
6766
  for (const o in bt) {
@@ -6626,15 +6779,15 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6626
6779
  };
6627
6780
  return /* @__PURE__ */ f.jsxs("div", { className: O.iconItemListWrap, children: [
6628
6781
  /* @__PURE__ */ f.jsxs("div", { className: O.none, onClick: () => n({ iconType: Ka, iconId: "", base64: "" }), children: [
6629
- /* @__PURE__ */ f.jsx(Vn, { className: O.icon }),
6782
+ /* @__PURE__ */ f.jsx(zn, { className: O.icon }),
6630
6783
  /* @__PURE__ */ f.jsx("span", { children: "无单元格图标" })
6631
6784
  ] }),
6632
6785
  /* @__PURE__ */ f.jsx("div", { className: O.iconItemList, children: t.map((r) => /* @__PURE__ */ f.jsx("div", { className: O.item, children: /* @__PURE__ */ f.jsx("img", { onClick: () => n(r), className: `${O.icon}`, src: r.base64 }) }, `${r.iconType}_${r.iconId}`)) })
6633
6786
  ] });
6634
- }, Ip = (e) => {
6787
+ }, Ep = (e) => {
6635
6788
  const { onChange: t, configList: n, errorMap: r = {} } = e, o = oe($e), i = [
6636
- { label: o.t(`sheet.cf.symbol.${H.greaterThan}`), value: H.greaterThan },
6637
- { label: o.t(`sheet.cf.symbol.${H.greaterThanOrEqual}`), value: H.greaterThanOrEqual }
6789
+ { label: o.t(`sheet.cf.symbol.${k.greaterThan}`), value: k.greaterThan },
6790
+ { label: o.t(`sheet.cf.symbol.${k.greaterThanOrEqual}`), value: k.greaterThanOrEqual }
6638
6791
  ], a = [
6639
6792
  { label: o.t(`sheet.cf.valueType.${A.num}`), value: A.num },
6640
6793
  { label: o.t(`sheet.cf.valueType.${A.percent}`), value: A.percent },
@@ -6673,8 +6826,8 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6673
6826
  ] }) })
6674
6827
  ] }),
6675
6828
  /* @__PURE__ */ f.jsxs("div", { className: `${O.flex} ${E.mTSm}`, children: [
6676
- /* @__PURE__ */ f.jsx("div", { className: `${O.iconWrap} ${O.width45}`, children: /* @__PURE__ */ f.jsx(Wr, { overlay: /* @__PURE__ */ f.jsx(Tp, { onClick: v, iconId: h.iconId, iconType: h.iconType }), children: /* @__PURE__ */ f.jsxs("div", { className: O.dropdownIcon, children: [
6677
- m ? /* @__PURE__ */ f.jsx("img", { src: m, className: O.icon }) : /* @__PURE__ */ f.jsx(Vn, { className: O.icon }),
6829
+ /* @__PURE__ */ f.jsx("div", { className: `${O.iconWrap} ${O.width45}`, children: /* @__PURE__ */ f.jsx(Wr, { overlay: /* @__PURE__ */ f.jsx(Ip, { onClick: v, iconId: h.iconId, iconType: h.iconType }), children: /* @__PURE__ */ f.jsxs("div", { className: O.dropdownIcon, children: [
6830
+ m ? /* @__PURE__ */ f.jsx("img", { src: m, className: O.icon }) : /* @__PURE__ */ f.jsx(zn, { className: O.icon }),
6678
6831
  /* @__PURE__ */ f.jsx(Fr, {})
6679
6832
  ] }) }) }),
6680
6833
  b ? /* @__PURE__ */ f.jsxs("div", { className: `${O.width45} ${E.label}`, style: { marginTop: 0 }, children: [
@@ -6687,7 +6840,7 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6687
6840
  b ? "" : ` ${o.t("sheet.cf.iconSet.and")} `,
6688
6841
  ")"
6689
6842
  ] })
6690
- ] }) : /* @__PURE__ */ f.jsx(ze, { className: `${E.mL0} ${O.width45} ${E.mR0}`, options: i, value: h.operator, onChange: (C) => {
6843
+ ] }) : /* @__PURE__ */ f.jsx(Ve, { className: `${E.mL0} ${O.width45} ${E.mR0}`, options: i, value: h.operator, onChange: (C) => {
6691
6844
  s(C, d);
6692
6845
  } })
6693
6846
  ] }),
@@ -6697,15 +6850,15 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6697
6850
  /* @__PURE__ */ f.jsx("div", { className: `${O.width45}`, children: o.t("sheet.cf.iconSet.value") })
6698
6851
  ] }),
6699
6852
  /* @__PURE__ */ f.jsxs("div", { className: `${E.mTSm} ${O.flex}`, children: [
6700
- /* @__PURE__ */ f.jsx(ze, { className: `${O.width45} ${E.mL0}`, options: a, value: h.value.type, onChange: (C) => {
6853
+ /* @__PURE__ */ f.jsx(Ve, { className: `${O.width45} ${E.mL0}`, options: a, value: h.value.type, onChange: (C) => {
6701
6854
  c(C, d);
6702
6855
  } }),
6703
- /* @__PURE__ */ f.jsx("div", { className: `${E.mL0} ${O.width45}`, children: /* @__PURE__ */ f.jsx(xp, { id: d, type: h.value.type, error: g, value: h.value.value || "", onChange: (C) => l(C, d) }) })
6856
+ /* @__PURE__ */ f.jsx("div", { className: `${E.mL0} ${O.width45}`, children: /* @__PURE__ */ f.jsx(Rp, { id: d, type: h.value.type, error: g, value: h.value.value || "", onChange: (C) => l(C, d) }) })
6704
6857
  ] })
6705
6858
  ] })
6706
6859
  ] }, d);
6707
6860
  }), [n, r]);
6708
- }, Ep = (e) => {
6861
+ }, Op = (e) => {
6709
6862
  var w;
6710
6863
  const { interceptorManager: t } = e, n = ((w = e.rule) == null ? void 0 : w.type) === j.iconSet ? e.rule : void 0, r = oe($e), [o, i] = N({}), [a, l] = N(() => {
6711
6864
  const y = Object.keys(bt)[0];
@@ -6720,14 +6873,14 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6720
6873
  return di.deepClone(n == null ? void 0 : n.config);
6721
6874
  const y = bt[a] || [];
6722
6875
  return new Array(y.length).fill("").map((v, C, p) => C === p.length - 1 ? {
6723
- operator: H.lessThanOrEqual,
6876
+ operator: k.lessThanOrEqual,
6724
6877
  value: { type: A.num, value: Number.MAX_SAFE_INTEGER },
6725
6878
  iconType: a,
6726
6879
  iconId: String(C)
6727
6880
  } : ni(a, C, p));
6728
6881
  }), [u, h] = N(() => n ? !!n.isShowValue : !0), d = ve(() => {
6729
6882
  const y = s.map((v) => Na(v.iconType, v.iconId));
6730
- return /* @__PURE__ */ f.jsx("div", { className: O.iconWrap, children: y.map((v, C) => v ? /* @__PURE__ */ f.jsx("img", { className: O.icon, src: v }, C) : /* @__PURE__ */ f.jsx(Vn, { className: O.icon }, C)) });
6883
+ return /* @__PURE__ */ f.jsx("div", { className: O.iconWrap, children: y.map((v, C) => v ? /* @__PURE__ */ f.jsx("img", { className: O.icon, src: v }, C) : /* @__PURE__ */ f.jsx(zn, { className: O.icon }, C)) });
6731
6884
  }, [s]), g = (y) => {
6732
6885
  if (y.reduce((C, p, R) => C.preType && !C.result || y.length - 1 === R ? C : p.value.type === A.formula ? {
6733
6886
  preType: A.formula,
@@ -6743,13 +6896,13 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6743
6896
  return y.forEach((p, R, I) => {
6744
6897
  if (R - 1 < 0 || R === I.length - 1)
6745
6898
  return;
6746
- const D = y[R - 1], M = Cr(D.operator);
6747
- Ya({ operator: M, value: D.value.value }, p.value.value) || (C[R] = `${r.t(`sheet.cf.form.${M}`, String(D.value.value))} `);
6899
+ const P = y[R - 1], M = Cr(P.operator);
6900
+ Ya({ operator: M, value: P.value.value }, p.value.value) || (C[R] = `${r.t(`sheet.cf.form.${M}`, String(P.value.value))} `);
6748
6901
  }), C;
6749
6902
  }
6750
6903
  return {};
6751
6904
  }, m = (y, v) => {
6752
- _p(s, y) !== v && (Rh(s, y, v), c([...s]), i(g(s)));
6905
+ xp(s, y) !== v && (Th(s, y, v), c([...s]), i(g(s)));
6753
6906
  }, b = (y) => {
6754
6907
  l(y);
6755
6908
  const v = bt[y] || [], C = new Array(v.length).fill("").map((p, R, I) => ni(y, R, I));
@@ -6779,32 +6932,32 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6779
6932
  };
6780
6933
  return /* @__PURE__ */ f.jsxs("div", { className: O.iconSet, children: [
6781
6934
  /* @__PURE__ */ f.jsx("div", { className: E.title, children: r.t("sheet.cf.panel.styleRule") }),
6782
- /* @__PURE__ */ f.jsx("div", { className: `${E.mTSm}`, children: /* @__PURE__ */ f.jsx(Wr, { overlay: /* @__PURE__ */ f.jsx(Rp, { iconType: a, onClick: b }), children: /* @__PURE__ */ f.jsxs("div", { className: O.dropdownIcon, style: { width: "unset" }, children: [
6935
+ /* @__PURE__ */ f.jsx("div", { className: `${E.mTSm}`, children: /* @__PURE__ */ f.jsx(Wr, { overlay: /* @__PURE__ */ f.jsx(Tp, { iconType: a, onClick: b }), children: /* @__PURE__ */ f.jsxs("div", { className: O.dropdownIcon, style: { width: "unset" }, children: [
6783
6936
  d,
6784
6937
  /* @__PURE__ */ f.jsx(Fr, {})
6785
6938
  ] }) }) }),
6786
6939
  /* @__PURE__ */ f.jsxs("div", { className: `${E.mTSm} ${O.renderConfig}`, children: [
6787
6940
  /* @__PURE__ */ f.jsxs("div", { className: O.utilItem, children: [
6788
- /* @__PURE__ */ f.jsx(Dn, { onChange: x }),
6941
+ /* @__PURE__ */ f.jsx(Pn, { onChange: x }),
6789
6942
  r.t("sheet.cf.iconSet.reverseIconOrder")
6790
6943
  ] }),
6791
6944
  /* @__PURE__ */ f.jsxs("div", { className: `${O.utilItem} ${E.mLXl}`, children: [
6792
- /* @__PURE__ */ f.jsx(Dn, { checked: !u, onChange: (y) => {
6945
+ /* @__PURE__ */ f.jsx(Pn, { checked: !u, onChange: (y) => {
6793
6946
  h(!y);
6794
6947
  } }),
6795
6948
  r.t("sheet.cf.iconSet.onlyShowIcon")
6796
6949
  ] })
6797
6950
  ] }),
6798
- /* @__PURE__ */ f.jsx(Ip, { errorMap: o, onChange: m, configList: s })
6951
+ /* @__PURE__ */ f.jsx(Ep, { errorMap: o, onChange: m, configList: s })
6799
6952
  ] });
6800
- }, ri = (e) => e.getCurrentUnitForType(X.UNIVER_SHEET).getUnitId(), oi = (e) => e.getCurrentUnitForType(X.UNIVER_SHEET).getActiveSheet().getSheetId(), Op = (e) => {
6953
+ }, ri = (e) => e.getCurrentUnitForType(X.UNIVER_SHEET).getUnitId(), oi = (e) => e.getCurrentUnitForType(X.UNIVER_SHEET).getActiveSheet().getSheetId(), Dp = (e) => {
6801
6954
  var C, p, R, I;
6802
- const t = oe($e), n = oe(de), r = oe(ne), o = oe(ue), i = oe(qt), a = ri(r), l = oi(r), s = un((p = (C = e.rule) == null ? void 0 : C.ranges) != null ? p : []), c = ve(() => {
6803
- var D, M;
6804
- let _ = (D = e.rule) == null ? void 0 : D.ranges;
6955
+ const t = oe($e), n = oe(de), r = oe(ne), o = oe(ue), i = oe(Bt), a = ri(r), l = oi(r), s = un((p = (C = e.rule) == null ? void 0 : C.ranges) != null ? p : []), c = ve(() => {
6956
+ var P, M;
6957
+ let _ = (P = e.rule) == null ? void 0 : P.ranges;
6805
6958
  return _ != null && _.length || (_ = (M = i.getSelectionRanges()) != null ? M : []), s.current = _, _ != null && _.length ? _.map((L) => {
6806
- const q = gi(L);
6807
- return q === "NaN" ? "" : q;
6959
+ const U = gi(L);
6960
+ return U === "NaN" ? "" : U;
6808
6961
  }).filter((L) => !!L).join(",") : "";
6809
6962
  }, [e.rule]), u = [
6810
6963
  { label: t.t("sheet.cf.ruleType.highlightCell"), value: "1" },
@@ -6815,9 +6968,9 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6815
6968
  { label: t.t("sheet.cf.ruleType.iconSet"), value: "6" }
6816
6969
  ], [h, d] = N(() => {
6817
6970
  var M, L;
6818
- const _ = (M = e.rule) == null ? void 0 : M.rule.type, D = u[0].value;
6971
+ const _ = (M = e.rule) == null ? void 0 : M.rule.type, P = u[0].value;
6819
6972
  if (!_)
6820
- return D;
6973
+ return P;
6821
6974
  switch (_) {
6822
6975
  case j.highlightCell: {
6823
6976
  switch ((L = e.rule) == null ? void 0 : L.rule.subType) {
@@ -6842,21 +6995,21 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6842
6995
  case j.iconSet:
6843
6996
  return "6";
6844
6997
  }
6845
- return D;
6846
- }), g = un(), m = ve(() => new Ha({ beforeSubmit: Hd, submit: kd }), []), b = ve(() => {
6998
+ return P;
6999
+ }), g = un(), m = ve(() => new ka({ beforeSubmit: Hd, submit: Wd }), []), b = ve(() => {
6847
7000
  switch (h) {
6848
7001
  case "1":
6849
7002
  return Go;
6850
7003
  case "2":
6851
- return wf;
7004
+ return _f;
6852
7005
  case "3":
6853
- return yf;
7006
+ return bf;
6854
7007
  case "4":
6855
- return vf;
7008
+ return yf;
6856
7009
  case "5":
6857
- return xf;
7010
+ return Rf;
6858
7011
  case "6":
6859
- return Ep;
7012
+ return Op;
6860
7013
  default:
6861
7014
  return Go;
6862
7015
  }
@@ -6864,31 +7017,31 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6864
7017
  me(() => {
6865
7018
  var _;
6866
7019
  if (((_ = e.rule) == null ? void 0 : _.cfId) !== void 0) {
6867
- const D = n.onCommandExecuted((M) => {
7020
+ const P = n.onCommandExecuted((M) => {
6868
7021
  if (M.id === as.id) {
6869
7022
  const L = M.params;
6870
7023
  L.subUnitId === l && L.unitId === a && e.onCancel();
6871
7024
  }
6872
- M.id === Hr.id && e.onCancel();
7025
+ M.id === kr.id && e.onCancel();
6873
7026
  });
6874
- return () => D.dispose();
7027
+ return () => P.dispose();
6875
7028
  }
6876
7029
  }, [(R = e.rule) == null ? void 0 : R.cfId]);
6877
7030
  const x = (_) => {
6878
7031
  g.current = _;
6879
7032
  }, w = (_) => {
6880
- s.current = _.map((D) => D.range);
7033
+ s.current = _.map((P) => P.range);
6881
7034
  }, y = () => {
6882
- const _ = m.fetchThroughInterceptors(m.getInterceptPoints().beforeSubmit)(!0, null), D = () => {
7035
+ const _ = m.fetchThroughInterceptors(m.getInterceptPoints().beforeSubmit)(!0, null), P = () => {
6883
7036
  const M = r.getCurrentUnitForType(X.UNIVER_SHEET).getActiveSheet();
6884
7037
  return s.current.map((S) => ss(S, M.getRowCount(), M.getColumnCount())).filter((S) => !(Number.isNaN(S.startRow) || Number.isNaN(S.startColumn)));
6885
7038
  };
6886
7039
  if (_) {
6887
- const M = m.fetchThroughInterceptors(m.getInterceptPoints().submit)(null, null), L = D();
7040
+ const M = m.fetchThroughInterceptors(m.getInterceptPoints().submit)(null, null), L = P();
6888
7041
  if (M && L.length) {
6889
- const q = ri(r), S = oi(r);
7042
+ const U = ri(r), S = oi(r);
6890
7043
  let T = {};
6891
- e.rule && e.rule.cfId ? (T = { ...e.rule, ranges: L, rule: M }, n.executeCommand(va.id, { unitId: q, subUnitId: S, rule: T }), e.onCancel()) : (T = { cfId: o.createCfId(q, S), ranges: L, rule: M, stopIfTrue: !1 }, n.executeCommand(ma.id, { unitId: q, subUnitId: S, rule: T }), e.onCancel());
7044
+ e.rule && e.rule.cfId ? (T = { ...e.rule, ranges: L, rule: M }, n.executeCommand(va.id, { unitId: U, subUnitId: S, rule: T }), e.onCancel()) : (T = { cfId: o.createCfId(U, S), ranges: L, rule: M, stopIfTrue: !1 }, n.executeCommand(ma.id, { unitId: U, subUnitId: S, rule: T }), e.onCancel());
6892
7045
  }
6893
7046
  }
6894
7047
  }, v = () => {
@@ -6896,9 +7049,9 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6896
7049
  };
6897
7050
  return /* @__PURE__ */ f.jsxs("div", { className: O.cfRuleStyleEditor, children: [
6898
7051
  /* @__PURE__ */ f.jsx("div", { className: E.title, children: t.t("sheet.cf.panel.range") }),
6899
- /* @__PURE__ */ f.jsx("div", { className: `${E.mTBase}`, children: /* @__PURE__ */ f.jsx(ys, { placeholder: t.t("sheet.cf.form.rangeSelector"), width: "100%", openForSheetSubUnitId: l, openForSheetUnitId: a, value: c, id: hn(`${lt}_rangeSelector`), onChange: w }) }),
7052
+ /* @__PURE__ */ f.jsx("div", { className: `${E.mTBase}`, children: /* @__PURE__ */ f.jsx(ys, { placeholder: t.t("sheet.cf.form.rangeSelector"), width: "100%", openForSheetSubUnitId: l, openForSheetUnitId: a, value: c, id: hn(`${ct}_rangeSelector`), onChange: w }) }),
6900
7053
  /* @__PURE__ */ f.jsx("div", { className: E.title, children: t.t("sheet.cf.panel.styleType") }),
6901
- /* @__PURE__ */ f.jsx("div", { className: E.mTBase, children: /* @__PURE__ */ f.jsx(ze, { className: O.width100, value: h, options: u, onChange: (_) => d(_) }) }),
7054
+ /* @__PURE__ */ f.jsx("div", { className: E.mTBase, children: /* @__PURE__ */ f.jsx(Ve, { className: O.width100, value: h, options: u, onChange: (_) => d(_) }) }),
6902
7055
  /* @__PURE__ */ f.jsx(b, { interceptorManager: m, rule: (I = e.rule) == null ? void 0 : I.rule, onChange: x }),
6903
7056
  /* @__PURE__ */ f.jsxs("div", { className: `${E.mTBase} ${O.btnList}`, children: [
6904
7057
  /* @__PURE__ */ f.jsx(Oo, { size: "small", onClick: v, children: t.t("sheet.cf.panel.cancel") }),
@@ -6913,27 +7066,35 @@ const _p = /* @__PURE__ */ Ur(wp), Na = (e, t) => (bt[e] || [])[Number(t)] || ""
6913
7066
  }, l = (s) => {
6914
7067
  n(s), o(!0);
6915
7068
  };
6916
- return /* @__PURE__ */ f.jsx("div", { className: E.conditionalFormattingWrap, children: r ? /* @__PURE__ */ f.jsx(Op, { onCancel: a, rule: t }) : /* @__PURE__ */ f.jsx(Vd, { onClick: l, onCreate: i }) });
7069
+ return /* @__PURE__ */ f.jsx("div", { className: E.conditionalFormattingWrap, children: r ? /* @__PURE__ */ f.jsx(Dp, { onCancel: a, rule: t }) : /* @__PURE__ */ f.jsx(kd, { onClick: l, onCreate: i }) });
6917
7070
  };
6918
- var Dp = Object.defineProperty, Mp = Object.getOwnPropertyDescriptor, $p = (e, t, n, r) => {
6919
- for (var o = r > 1 ? void 0 : r ? Mp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7071
+ var Mp = Object.defineProperty, $p = Object.getOwnPropertyDescriptor, Np = (e, t, n, r) => {
7072
+ for (var o = r > 1 ? void 0 : r ? $p(t, n) : t, i = e.length - 1, a; i >= 0; i--)
6920
7073
  (a = e[i]) && (o = (r ? a(t, n, o) : a(o)) || o);
6921
- return r && o && Dp(t, n, o), o;
6922
- }, Jt = (e, t) => (n, r) => t(n, r, e);
7074
+ return r && o && Mp(t, n, o), o;
7075
+ }, Lt = (e, t) => (n, r) => t(n, r, e);
6923
7076
  const ii = "sheet.conditional.formatting.panel";
6924
- let cn = class extends it {
6925
- constructor(e, t, n, r, o) {
6926
- super(), this._injector = e, this._componentManager = t, this._menuService = n, this._sidebarService = r, this._localeService = o, this._initMenu(), this._initPanel();
7077
+ let cn = class extends at {
7078
+ constructor(t, n, r, o, i, a) {
7079
+ super();
7080
+ et(this, "_sidebarDisposable", null);
7081
+ this._univerInstanceService = t, this._injector = n, this._componentManager = r, this._menuService = o, this._sidebarService = i, this._localeService = a, this._initMenu(), this._initPanel(), this.disposeWithMe(
7082
+ this._univerInstanceService.getCurrentTypeOfUnit$(X.UNIVER_SHEET).subscribe((l) => {
7083
+ var s;
7084
+ l || (s = this._sidebarDisposable) == null || s.dispose();
7085
+ })
7086
+ );
6927
7087
  }
6928
- openPanel(e) {
6929
- const t = {
7088
+ openPanel(t) {
7089
+ const n = {
6930
7090
  header: { title: this._localeService.t("sheet.cf.title") },
6931
7091
  children: {
6932
7092
  label: ii,
6933
- rule: e
6934
- }
7093
+ rule: t
7094
+ },
7095
+ onClose: () => this._sidebarDisposable = null
6935
7096
  };
6936
- this._sidebarService.open(t);
7097
+ this._sidebarDisposable = this._sidebarService.open(n);
6937
7098
  }
6938
7099
  _initMenu() {
6939
7100
  this._menuService.addMenuItem(rl(this._componentManager)(this._injector));
@@ -6942,20 +7103,21 @@ let cn = class extends it {
6942
7103
  this._componentManager.register(ii, Pp);
6943
7104
  }
6944
7105
  };
6945
- cn = $p([
6946
- at(st.Ready, cn),
6947
- Jt(0, B(At)),
6948
- Jt(1, B(kr)),
6949
- Jt(2, B(bs)),
6950
- Jt(3, B(Ss)),
6951
- Jt(4, B($e))
7106
+ cn = Np([
7107
+ st(lt.Ready, cn),
7108
+ Lt(0, ne),
7109
+ Lt(1, B(Ft)),
7110
+ Lt(2, B(Hr)),
7111
+ Lt(3, B(bs)),
7112
+ Lt(4, B(Ss)),
7113
+ Lt(5, B($e))
6952
7114
  ], cn);
6953
- var De = /* @__PURE__ */ ((e) => (e[e.createRule = 1] = "createRule", e[e.viewRule = 2] = "viewRule", e[e.highlightCell = 3] = "highlightCell", e[e.rank = 4] = "rank", e[e.formula = 5] = "formula", e[e.colorScale = 6] = "colorScale", e[e.dataBar = 7] = "dataBar", e[e.icon = 8] = "icon", e[e.clearRangeRules = 9] = "clearRangeRules", e[e.clearWorkSheetRules = 10] = "clearWorkSheetRules", e))(De || {});
7115
+ var Pe = /* @__PURE__ */ ((e) => (e[e.createRule = 1] = "createRule", e[e.viewRule = 2] = "viewRule", e[e.highlightCell = 3] = "highlightCell", e[e.rank = 4] = "rank", e[e.formula = 5] = "formula", e[e.colorScale = 6] = "colorScale", e[e.dataBar = 7] = "dataBar", e[e.icon = 8] = "icon", e[e.clearRangeRules = 9] = "clearRangeRules", e[e.clearWorkSheetRules = 10] = "clearWorkSheetRules", e))(Pe || {});
6954
7116
  const ja = {
6955
7117
  id: "sheet.operation.open.conditional.formatting.panel",
6956
7118
  type: Ce.OPERATION,
6957
7119
  handler: (e, t) => {
6958
- const n = e.get(cn), r = e.get(qt), o = e.get(de), i = r.getSelectionRanges() || [];
7120
+ const n = e.get(cn), r = e.get(Bt), o = e.get(de), i = r.getSelectionRanges() || [];
6959
7121
  switch (t.value) {
6960
7122
  case 3: {
6961
7123
  n.openPanel({ ...ft(), ranges: i });
@@ -7043,12 +7205,12 @@ const ja = {
7043
7205
  return !0;
7044
7206
  }
7045
7207
  };
7046
- var Np = Object.defineProperty, jp = Object.getOwnPropertyDescriptor, Lp = (e, t, n, r) => {
7047
- for (var o = r > 1 ? void 0 : r ? jp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7208
+ var jp = Object.defineProperty, Lp = Object.getOwnPropertyDescriptor, Vp = (e, t, n, r) => {
7209
+ for (var o = r > 1 ? void 0 : r ? Lp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7048
7210
  (a = e[i]) && (o = (r ? a(t, n, o) : a(o)) || o);
7049
- return r && o && Np(t, n, o), o;
7211
+ return r && o && jp(t, n, o), o;
7050
7212
  }, mt = (e, t) => (n, r) => t(n, r, e);
7051
- let xn = class extends it {
7213
+ let xn = class extends at {
7052
7214
  constructor(e, t, n, r, o, i, a) {
7053
7215
  super(), this._sheetInterceptorService = e, this._conditionalFormattingService = t, this._univerInstanceService = n, this._renderManagerService = r, this._conditionalFormattingViewModel = o, this._conditionalFormattingRuleModel = i, this._sheetSkeletonManagerService = a, this._initViewModelInterceptor(), this._initSkeleton(), this._initRender();
7054
7216
  }
@@ -7104,8 +7266,8 @@ let xn = class extends it {
7104
7266
  }));
7105
7267
  }
7106
7268
  };
7107
- xn = Lp([
7108
- at(st.Rendered, xn),
7269
+ xn = Vp([
7270
+ st(lt.Rendered, xn),
7109
7271
  mt(0, B(pi)),
7110
7272
  mt(1, B(hi)),
7111
7273
  mt(2, B(ne)),
@@ -7114,24 +7276,24 @@ xn = Lp([
7114
7276
  mt(5, B(ue)),
7115
7277
  mt(6, B(vi))
7116
7278
  ], xn);
7117
- var zp = Object.defineProperty, Vp = Object.getOwnPropertyDescriptor, Hp = (e, t, n, r) => {
7118
- for (var o = r > 1 ? void 0 : r ? Vp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7279
+ var zp = Object.defineProperty, kp = Object.getOwnPropertyDescriptor, Hp = (e, t, n, r) => {
7280
+ for (var o = r > 1 ? void 0 : r ? kp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7119
7281
  (a = e[i]) && (o = (r ? a(t, n, o) : a(o)) || o);
7120
7282
  return r && o && zp(t, n, o), o;
7121
7283
  }, Qt = (e, t) => (n, r) => t(n, r, e);
7122
- let Rn = class extends it {
7284
+ let Rn = class extends at {
7123
7285
  constructor(t, n, r, o, i) {
7124
7286
  super();
7125
- dt(this, "_copyInfo");
7287
+ et(this, "_copyInfo");
7126
7288
  this._sheetClipboardService = t, this._conditionalFormattingRuleModel = n, this._injector = r, this._conditionalFormattingViewModel = o, this._univerInstanceService = i, this._initClipboardHook();
7127
7289
  }
7128
7290
  _initClipboardHook() {
7129
7291
  this.disposeWithMe(
7130
7292
  this._sheetClipboardService.addClipboardHook({
7131
- id: lt,
7293
+ id: ct,
7132
7294
  onBeforeCopy: (t, n, r) => this._collectConditionalRule(t, n, r),
7133
7295
  onPasteCells: (t, n, r, o) => {
7134
- const { copyType: i = Po.COPY, pasteType: a } = o, { range: l } = t || {}, { range: s } = n;
7296
+ const { copyType: i = Do.COPY, pasteType: a } = o, { range: l } = t || {}, { range: s } = n;
7135
7297
  return this._generateConditionalFormattingMutations(s, { copyType: i, pasteType: a, copyRange: l });
7136
7298
  }
7137
7299
  })
@@ -7168,7 +7330,7 @@ let Rn = class extends it {
7168
7330
  }
7169
7331
  _generateConditionalFormattingMutations(t, n) {
7170
7332
  const r = this._univerInstanceService.getCurrentUnitForType(X.UNIVER_SHEET), o = r.getActiveSheet(), i = r.getUnitId(), a = o.getSheetId();
7171
- if (n.copyType === Po.CUT)
7333
+ if (n.copyType === Do.CUT)
7172
7334
  return this._copyInfo = null, { redos: [], undos: [] };
7173
7335
  if (!this._copyInfo || !n.copyRange)
7174
7336
  return { redos: [], undos: [] };
@@ -7177,15 +7339,15 @@ let Rn = class extends it {
7177
7339
  ))
7178
7340
  return { redos: [], undos: [] };
7179
7341
  const { ranges: [l, s], mapFunc: c } = yi([n.copyRange, t]), u = Os(l, s, !0), h = this._conditionalFormattingViewModel.getMatrix(i, a), d = {};
7180
- ot.foreach(s, (p, R) => {
7181
- const { row: I, col: _ } = c(p, R), D = this._conditionalFormattingViewModel.getCellCf(i, a, I, _, h);
7182
- D && D.cfList.forEach((M) => {
7342
+ it.foreach(s, (p, R) => {
7343
+ const { row: I, col: _ } = c(p, R), P = this._conditionalFormattingViewModel.getCellCf(i, a, I, _, h);
7344
+ P && P.cfList.forEach((M) => {
7183
7345
  if (!d[M.cfId]) {
7184
7346
  const L = new zt();
7185
7347
  d[M.cfId] = L;
7186
- const q = this._conditionalFormattingRuleModel.getRule(i, a, M.cfId);
7187
- q == null || q.ranges.forEach((S) => {
7188
- ot.foreach(S, (T, J) => {
7348
+ const U = this._conditionalFormattingRuleModel.getRule(i, a, M.cfId);
7349
+ U == null || U.ranges.forEach((S) => {
7350
+ it.foreach(S, (T, J) => {
7189
7351
  L.setValue(T, J, 1);
7190
7352
  });
7191
7353
  });
@@ -7213,7 +7375,7 @@ let Rn = class extends it {
7213
7375
  };
7214
7376
  u.forEach((p) => {
7215
7377
  g && g.forValue((R, I, _) => {
7216
- const D = Ht.getPositionRange(
7378
+ const P = Ht.getPositionRange(
7217
7379
  {
7218
7380
  startRow: R,
7219
7381
  endRow: R,
@@ -7221,23 +7383,23 @@ let Rn = class extends it {
7221
7383
  endColumn: I
7222
7384
  },
7223
7385
  p.startRange
7224
- ), { row: M, col: L } = c(D.startRow, D.startColumn);
7225
- _.forEach((q) => {
7226
- if (!d[q]) {
7227
- const S = y(q), T = new zt();
7228
- d[q] = T, S.ranges.forEach((J) => {
7229
- ot.foreach(J, (xe, z) => {
7230
- T.setValue(xe, z, 1);
7386
+ ), { row: M, col: L } = c(P.startRow, P.startColumn);
7387
+ _.forEach((U) => {
7388
+ if (!d[U]) {
7389
+ const S = y(U), T = new zt();
7390
+ d[U] = T, S.ranges.forEach((J) => {
7391
+ it.foreach(J, (xe, V) => {
7392
+ T.setValue(xe, V, 1);
7231
7393
  });
7232
7394
  });
7233
7395
  }
7234
- d[q].setValue(M, L, 1);
7396
+ d[U].setValue(M, L, 1);
7235
7397
  });
7236
7398
  });
7237
7399
  });
7238
7400
  const v = [], C = [];
7239
7401
  for (const p in d) {
7240
- const R = d[p], I = zr(Vr(R));
7402
+ const R = d[p], I = Vr(zr(R));
7241
7403
  if (!I.length) {
7242
7404
  const _ = {
7243
7405
  unitId: i,
@@ -7247,22 +7409,22 @@ let Rn = class extends it {
7247
7409
  v.push({ id: Qe.id, params: _ }), C.push(...Ut(this._injector, _));
7248
7410
  }
7249
7411
  if (b.some((_) => _.cfId === p)) {
7250
- const _ = y(p), D = {
7412
+ const _ = y(p), P = {
7251
7413
  unitId: i,
7252
7414
  subUnitId: a,
7253
7415
  rule: { ..._, ranges: I }
7254
7416
  };
7255
- v.push({ id: Oe.id, params: D }), C.push(fi(this._injector, D));
7417
+ v.push({ id: Oe.id, params: P }), C.push(fi(this._injector, P));
7256
7418
  } else {
7257
7419
  const _ = this._conditionalFormattingRuleModel.getRule(i, a, p);
7258
7420
  if (!_)
7259
7421
  continue;
7260
- const D = {
7422
+ const P = {
7261
7423
  unitId: i,
7262
7424
  subUnitId: a,
7263
7425
  rule: { ..._, ranges: I }
7264
7426
  };
7265
- v.push({ id: Je.id, params: D }), C.push(...Ft(this._injector, D));
7427
+ v.push({ id: Je.id, params: P }), C.push(...qt(this._injector, P));
7266
7428
  }
7267
7429
  }
7268
7430
  return {
@@ -7272,19 +7434,19 @@ let Rn = class extends it {
7272
7434
  }
7273
7435
  };
7274
7436
  Rn = Hp([
7275
- at(st.Rendered, Rn),
7276
- Qt(0, B(Ps)),
7437
+ st(lt.Rendered, Rn),
7438
+ Qt(0, B(Ds)),
7277
7439
  Qt(1, B(ue)),
7278
- Qt(2, B(At)),
7440
+ Qt(2, B(Ft)),
7279
7441
  Qt(3, B(Lr)),
7280
7442
  Qt(4, B(ne))
7281
7443
  ], Rn);
7282
- var kp = Object.defineProperty, Wp = Object.getOwnPropertyDescriptor, Ap = (e, t, n, r) => {
7283
- for (var o = r > 1 ? void 0 : r ? Wp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7444
+ var Wp = Object.defineProperty, Ap = Object.getOwnPropertyDescriptor, Fp = (e, t, n, r) => {
7445
+ for (var o = r > 1 ? void 0 : r ? Ap(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7284
7446
  (a = e[i]) && (o = (r ? a(t, n, o) : a(o)) || o);
7285
- return r && o && kp(t, n, o), o;
7447
+ return r && o && Wp(t, n, o), o;
7286
7448
  }, en = (e, t) => (n, r) => t(n, r, e);
7287
- let Tn = class extends it {
7449
+ let Tn = class extends at {
7288
7450
  constructor(e, t, n, r, o) {
7289
7451
  super(), this._injector = e, this._univerInstanceService = t, this._autoFillService = n, this._conditionalFormattingRuleModel = r, this._conditionalFormattingViewModel = o, this._initAutoFill();
7290
7452
  }
@@ -7302,7 +7464,7 @@ let Tn = class extends it {
7302
7464
  endColumn: i.col,
7303
7465
  endRow: i.row
7304
7466
  };
7305
- ot.foreach(a, (g, m) => {
7467
+ it.foreach(a, (g, m) => {
7306
7468
  const b = Ht.getPositionRange(
7307
7469
  {
7308
7470
  startRow: g,
@@ -7333,12 +7495,12 @@ let Tn = class extends it {
7333
7495
  R && R.cfList.forEach((I) => {
7334
7496
  let _ = l.get(I.cfId);
7335
7497
  if (!l.get(I.cfId)) {
7336
- const D = this._conditionalFormattingRuleModel.getRule(c, u, I.cfId);
7337
- if (!D)
7498
+ const P = this._conditionalFormattingRuleModel.getRule(c, u, I.cfId);
7499
+ if (!P)
7338
7500
  return;
7339
- _ = new zt(), D.ranges.forEach((M) => {
7340
- ot.foreach(M, (L, q) => {
7341
- _.setValue(L, q, 1);
7501
+ _ = new zt(), P.ranges.forEach((M) => {
7502
+ it.foreach(M, (L, U) => {
7503
+ _.setValue(L, U, 1);
7342
7504
  });
7343
7505
  }), l.set(I.cfId, _);
7344
7506
  }
@@ -7346,12 +7508,12 @@ let Tn = class extends it {
7346
7508
  }), v && v.cfList.forEach((I) => {
7347
7509
  let _ = l.get(I.cfId);
7348
7510
  if (!l.get(I.cfId)) {
7349
- const D = this._conditionalFormattingRuleModel.getRule(c, u, I.cfId);
7350
- if (!D)
7511
+ const P = this._conditionalFormattingRuleModel.getRule(c, u, I.cfId);
7512
+ if (!P)
7351
7513
  return;
7352
- _ = new zt(), D.ranges.forEach((M) => {
7353
- ot.foreach(M, (L, q) => {
7354
- _.setValue(L, q, 1);
7514
+ _ = new zt(), P.ranges.forEach((M) => {
7515
+ it.foreach(M, (L, U) => {
7516
+ _.setValue(L, U, 1);
7355
7517
  });
7356
7518
  }), l.set(I.cfId, _);
7357
7519
  }
@@ -7373,18 +7535,18 @@ let Tn = class extends it {
7373
7535
  const p = this._conditionalFormattingRuleModel.getRule(a, l, C);
7374
7536
  if (!p)
7375
7537
  return;
7376
- const R = zr(Vr(v)), I = {
7538
+ const R = Vr(zr(v)), I = {
7377
7539
  unitId: a,
7378
7540
  subUnitId: l,
7379
7541
  rule: { ...p, ranges: R }
7380
7542
  };
7381
- c.push({ id: Je.id, params: I }), u.push(...Ft(this._injector, I));
7543
+ c.push({ id: Je.id, params: I }), u.push(...qt(this._injector, I));
7382
7544
  }), {
7383
7545
  undos: u,
7384
7546
  redos: c
7385
7547
  };
7386
7548
  }, r = {
7387
- id: lt,
7549
+ id: ct,
7388
7550
  onFillData: (o, i, a) => {
7389
7551
  if (a === ar.COPY || a === ar.ONLY_FORMAT || a === ar.SERIES) {
7390
7552
  const { source: l, target: s } = o;
@@ -7396,20 +7558,20 @@ let Tn = class extends it {
7396
7558
  this.disposeWithMe(this._autoFillService.addHook(r));
7397
7559
  }
7398
7560
  };
7399
- Tn = Ap([
7400
- at(st.Rendered, Tn),
7401
- en(0, B(At)),
7561
+ Tn = Fp([
7562
+ st(lt.Rendered, Tn),
7563
+ en(0, B(Ft)),
7402
7564
  en(1, B(ne)),
7403
- en(2, B(Ds)),
7565
+ en(2, B(Ps)),
7404
7566
  en(3, B(ue)),
7405
7567
  en(4, B(Lr))
7406
7568
  ], Tn);
7407
- var Fp = Object.defineProperty, Up = Object.getOwnPropertyDescriptor, qp = (e, t, n, r) => {
7569
+ var qp = Object.defineProperty, Up = Object.getOwnPropertyDescriptor, Bp = (e, t, n, r) => {
7408
7570
  for (var o = r > 1 ? void 0 : r ? Up(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7409
7571
  (a = e[i]) && (o = (r ? a(t, n, o) : a(o)) || o);
7410
- return r && o && Fp(t, n, o), o;
7572
+ return r && o && qp(t, n, o), o;
7411
7573
  }, tn = (e, t) => (n, r) => t(n, r, e);
7412
- let In = class extends it {
7574
+ let In = class extends at {
7413
7575
  constructor(e, t, n, r, o) {
7414
7576
  super(), this._conditionalFormattingRuleModel = e, this._univerInstanceService = t, this._injector = n, this._sheetSkeletonManagerService = r, this._refRangeService = o, this._initRefRange();
7415
7577
  }
@@ -7420,7 +7582,7 @@ let In = class extends it {
7420
7582
  if (rs(u, c))
7421
7583
  return { redos: [], undos: [] };
7422
7584
  if (u.length) {
7423
- const d = { unitId: r, subUnitId: o, rule: { ...i, ranges: u } }, g = [{ id: Je.id, params: d }], m = Ft(this._injector, d);
7585
+ const d = { unitId: r, subUnitId: o, rule: { ...i, ranges: u } }, g = [{ id: Je.id, params: d }], m = qt(this._injector, d);
7424
7586
  return { redos: g, undos: m };
7425
7587
  } else {
7426
7588
  const d = { unitId: r, subUnitId: o, cfId: i.cfId }, g = [{ id: Qe.id, params: d }], m = Ut(this._injector, d);
@@ -7440,8 +7602,8 @@ let In = class extends it {
7440
7602
  )
7441
7603
  ).pipe(
7442
7604
  _s(
7443
- () => new nt((r) => {
7444
- const o = new ka();
7605
+ () => new rt((r) => {
7606
+ const o = new Ha();
7445
7607
  return r.next(o), () => {
7446
7608
  o.dispose();
7447
7609
  };
@@ -7479,20 +7641,20 @@ let In = class extends it {
7479
7641
  }));
7480
7642
  }
7481
7643
  };
7482
- In = qp([
7483
- at(st.Rendered, In),
7644
+ In = Bp([
7645
+ st(lt.Rendered, In),
7484
7646
  tn(0, B(ue)),
7485
7647
  tn(1, B(ne)),
7486
- tn(2, B(At)),
7648
+ tn(2, B(Ft)),
7487
7649
  tn(3, B(vi)),
7488
7650
  tn(4, B(cs))
7489
7651
  ], In);
7490
- var Bp = Object.defineProperty, Gp = Object.getOwnPropertyDescriptor, Xp = (e, t, n, r) => {
7491
- for (var o = r > 1 ? void 0 : r ? Gp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7652
+ var Gp = Object.defineProperty, Xp = Object.getOwnPropertyDescriptor, Yp = (e, t, n, r) => {
7653
+ for (var o = r > 1 ? void 0 : r ? Xp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7492
7654
  (a = e[i]) && (o = (r ? a(t, n, o) : a(o)) || o);
7493
- return r && o && Bp(t, n, o), o;
7655
+ return r && o && Gp(t, n, o), o;
7494
7656
  }, ai = (e, t) => (n, r) => t(n, r, e);
7495
- let En = class extends it {
7657
+ let En = class extends at {
7496
7658
  constructor(e, t) {
7497
7659
  super(), this._editorBridgeService = e, this._conditionalFormattingService = t, this._initInterceptorEditorEnd();
7498
7660
  }
@@ -7528,17 +7690,17 @@ let En = class extends it {
7528
7690
  );
7529
7691
  }
7530
7692
  };
7531
- En = Xp([
7532
- at(st.Rendered, En),
7693
+ En = Yp([
7694
+ st(lt.Rendered, En),
7533
7695
  ai(0, B($s)),
7534
7696
  ai(1, B(hi))
7535
7697
  ], En);
7536
- var Yp = Object.defineProperty, Kp = Object.getOwnPropertyDescriptor, Zp = (e, t, n, r) => {
7537
- for (var o = r > 1 ? void 0 : r ? Kp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7698
+ var Kp = Object.defineProperty, Zp = Object.getOwnPropertyDescriptor, Jp = (e, t, n, r) => {
7699
+ for (var o = r > 1 ? void 0 : r ? Zp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7538
7700
  (a = e[i]) && (o = (r ? a(t, n, o) : a(o)) || o);
7539
- return r && o && Yp(t, n, o), o;
7701
+ return r && o && Kp(t, n, o), o;
7540
7702
  }, nn = (e, t) => (n, r) => t(n, r, e);
7541
- let On = class extends it {
7703
+ let On = class extends at {
7542
7704
  constructor(e, t, n, r, o) {
7543
7705
  super(), this._injector = e, this._univerInstanceService = t, this._sheetInterceptorService = n, this._selectionManagerService = r, this._conditionalFormattingRuleModel = o, this._init();
7544
7706
  }
@@ -7562,7 +7724,7 @@ let On = class extends it {
7562
7724
  subUnitId: a.getSheetId(),
7563
7725
  rule: { ...s, ranges: u }
7564
7726
  }
7565
- }, d = Ft(this._injector, h.params);
7727
+ }, d = qt(this._injector, h.params);
7566
7728
  t.push(h), n.push(...d);
7567
7729
  } else {
7568
7730
  const h = {
@@ -7581,18 +7743,18 @@ let On = class extends it {
7581
7743
  } }));
7582
7744
  }
7583
7745
  };
7584
- On = Zp([
7585
- at(st.Rendered, On),
7586
- nn(0, B(At)),
7746
+ On = Jp([
7747
+ st(lt.Rendered, On),
7748
+ nn(0, B(Ft)),
7587
7749
  nn(1, B(ne)),
7588
7750
  nn(2, B(pi)),
7589
- nn(3, B(qt)),
7751
+ nn(3, B(Bt)),
7590
7752
  nn(4, B(ue))
7591
7753
  ], On);
7592
- var Jp = Object.defineProperty, Qp = Object.getOwnPropertyDescriptor, eg = (e, t, n, r) => {
7593
- for (var o = r > 1 ? void 0 : r ? Qp(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7754
+ var Qp = Object.defineProperty, eg = Object.getOwnPropertyDescriptor, tg = (e, t, n, r) => {
7755
+ for (var o = r > 1 ? void 0 : r ? eg(t, n) : t, i = e.length - 1, a; i >= 0; i--)
7594
7756
  (a = e[i]) && (o = (r ? a(t, n, o) : a(o)) || o);
7595
- return r && o && Jp(t, n, o), o;
7757
+ return r && o && Qp(t, n, o), o;
7596
7758
  }, si = (e, t) => (n, r) => t(n, r, e), rn;
7597
7759
  let jr = (rn = class extends Wa {
7598
7760
  constructor(e, t, n) {
@@ -7605,13 +7767,13 @@ let jr = (rn = class extends Wa {
7605
7767
  this._commandService.registerCommand(e);
7606
7768
  });
7607
7769
  }
7608
- }, dt(rn, "pluginName", lt), dt(rn, "type", X.UNIVER_SHEET), dt(rn, "commandList", [
7770
+ }, et(rn, "pluginName", ct), et(rn, "type", X.UNIVER_SHEET), et(rn, "commandList", [
7609
7771
  js,
7610
7772
  Ls,
7611
- zs,
7612
7773
  Vs,
7613
- Hs,
7774
+ zs,
7614
7775
  ks,
7776
+ Hs,
7615
7777
  Ws,
7616
7778
  As,
7617
7779
  Fs,
@@ -7623,12 +7785,13 @@ let jr = (rn = class extends Wa {
7623
7785
  bi,
7624
7786
  Ar
7625
7787
  ]), rn);
7626
- jr = eg([
7627
- si(1, B(At)),
7788
+ jr = tg([
7789
+ si(1, B(Ft)),
7628
7790
  si(2, B(de))
7629
7791
  ], jr);
7630
7792
  export {
7631
7793
  jr as UniverSheetsConditionalFormattingUIPlugin,
7632
- bg as enUS,
7794
+ Sg as enUS,
7795
+ Cg as ruRU,
7633
7796
  fd as zhCN
7634
7797
  };